@commercelayer/sdk 8.0.0-beta.7 → 8.0.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -8
- package/lib/api-B89jsST3.d.cts +18490 -0
- package/lib/api-DVobTSjQ.d.ts +18490 -0
- package/lib/api.cjs +356 -340
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +144 -140
- package/lib/bundle-compat.cjs +160 -0
- package/lib/bundle-compat.cjs.map +1 -0
- package/lib/bundle-compat.d.cts +24 -0
- package/lib/bundle-compat.d.ts +22 -0
- package/lib/bundle-compat.js +155 -0
- package/lib/bundle-compat.js.map +1 -0
- package/lib/bundle.cjs +157 -561
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +10 -2
- package/lib/bundle.d.ts +9 -3
- package/lib/bundle.js +146 -563
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-235HO65F.cjs +75 -0
- package/lib/chunk-235HO65F.cjs.map +1 -0
- package/lib/chunk-2BRGAZ4X.js +68 -0
- package/lib/chunk-2BRGAZ4X.js.map +1 -0
- package/lib/chunk-2GRDW45N.cjs +70 -0
- package/lib/chunk-2GRDW45N.cjs.map +1 -0
- package/lib/chunk-2MI5Z7VJ.js +78 -0
- package/lib/chunk-2MI5Z7VJ.js.map +1 -0
- package/lib/chunk-2NEP5PSK.js +100 -0
- package/lib/chunk-2NEP5PSK.js.map +1 -0
- package/lib/chunk-2OYKT3RR.js +77 -0
- package/lib/chunk-2OYKT3RR.js.map +1 -0
- package/lib/chunk-2PQAQHJI.js +177 -0
- package/lib/chunk-2PQAQHJI.js.map +1 -0
- package/lib/chunk-2QQF3ZMT.cjs +79 -0
- package/lib/chunk-2QQF3ZMT.cjs.map +1 -0
- package/lib/chunk-2UKLZ4EG.js +36 -0
- package/lib/chunk-2UKLZ4EG.js.map +1 -0
- package/lib/chunk-2VUXKS2F.js +73 -0
- package/lib/chunk-2VUXKS2F.js.map +1 -0
- package/lib/chunk-2VZ3GTLB.js +89 -0
- package/lib/chunk-2VZ3GTLB.js.map +1 -0
- package/lib/chunk-36PT4X6A.cjs +62 -0
- package/lib/chunk-36PT4X6A.cjs.map +1 -0
- package/lib/chunk-37NI4FHX.js +68 -0
- package/lib/chunk-37NI4FHX.js.map +1 -0
- package/lib/chunk-3BHI5VNM.js +68 -0
- package/lib/chunk-3BHI5VNM.js.map +1 -0
- package/lib/chunk-3DMYHXGB.js +20 -0
- package/lib/chunk-3DMYHXGB.js.map +1 -0
- package/lib/chunk-3VR5QCJN.cjs +79 -0
- package/lib/chunk-3VR5QCJN.cjs.map +1 -0
- package/lib/chunk-42DVUIC3.cjs +69 -0
- package/lib/chunk-42DVUIC3.cjs.map +1 -0
- package/lib/chunk-446RVIXA.js +196 -0
- package/lib/chunk-446RVIXA.js.map +1 -0
- package/lib/chunk-46MXNGIX.cjs +67 -0
- package/lib/chunk-46MXNGIX.cjs.map +1 -0
- package/lib/chunk-4COAM2UE.cjs +44 -0
- package/lib/chunk-4COAM2UE.cjs.map +1 -0
- package/lib/chunk-4DTC6Q55.cjs +77 -0
- package/lib/chunk-4DTC6Q55.cjs.map +1 -0
- package/lib/chunk-4M5WDVHU.cjs +62 -0
- package/lib/chunk-4M5WDVHU.cjs.map +1 -0
- package/lib/chunk-4NJX5DTP.cjs +193 -0
- package/lib/chunk-4NJX5DTP.cjs.map +1 -0
- package/lib/chunk-4T2SG77Z.js +89 -0
- package/lib/chunk-4T2SG77Z.js.map +1 -0
- package/lib/chunk-4U6G25RN.js +91 -0
- package/lib/chunk-4U6G25RN.js.map +1 -0
- package/lib/chunk-4W2XRXKH.js +84 -0
- package/lib/chunk-4W2XRXKH.js.map +1 -0
- package/lib/chunk-4X4HMQC7.cjs +70 -0
- package/lib/chunk-4X4HMQC7.cjs.map +1 -0
- package/lib/chunk-4XCA5IXW.js +180 -0
- package/lib/chunk-4XCA5IXW.js.map +1 -0
- package/lib/chunk-5247NHKP.js +88 -0
- package/lib/chunk-5247NHKP.js.map +1 -0
- package/lib/chunk-57TABMO5.cjs +71 -0
- package/lib/chunk-57TABMO5.cjs.map +1 -0
- package/lib/chunk-5LWXBEM2.js +59 -0
- package/lib/chunk-5LWXBEM2.js.map +1 -0
- package/lib/chunk-5OBEOAVA.cjs +179 -0
- package/lib/chunk-5OBEOAVA.cjs.map +1 -0
- package/lib/chunk-5QZBWB7E.cjs +93 -0
- package/lib/chunk-5QZBWB7E.cjs.map +1 -0
- package/lib/chunk-5SCGD2SM.js +60 -0
- package/lib/chunk-5SCGD2SM.js.map +1 -0
- package/lib/chunk-5YXCRSRV.cjs +91 -0
- package/lib/chunk-5YXCRSRV.cjs.map +1 -0
- package/lib/chunk-676BTCSC.cjs +70 -0
- package/lib/chunk-676BTCSC.cjs.map +1 -0
- package/lib/chunk-67UKEI4Q.js +77 -0
- package/lib/chunk-67UKEI4Q.js.map +1 -0
- package/lib/chunk-6CI5PFOJ.cjs +84 -0
- package/lib/chunk-6CI5PFOJ.cjs.map +1 -0
- package/lib/chunk-6KUTNI4L.cjs +70 -0
- package/lib/chunk-6KUTNI4L.cjs.map +1 -0
- package/lib/chunk-6TJJD77K.cjs +40 -0
- package/lib/chunk-6TJJD77K.cjs.map +1 -0
- package/lib/chunk-6VEXYG3T.js +123 -0
- package/lib/chunk-6VEXYG3T.js.map +1 -0
- package/lib/chunk-6VWPITQA.cjs +165 -0
- package/lib/chunk-6VWPITQA.cjs.map +1 -0
- package/lib/chunk-6WIZIPTT.js +60 -0
- package/lib/chunk-6WIZIPTT.js.map +1 -0
- package/lib/chunk-6YI7SUXL.js +42 -0
- package/lib/chunk-6YI7SUXL.js.map +1 -0
- package/lib/chunk-6ZEDHYE7.js +68 -0
- package/lib/chunk-6ZEDHYE7.js.map +1 -0
- package/lib/chunk-75CGJHAH.js +163 -0
- package/lib/chunk-75CGJHAH.js.map +1 -0
- package/lib/chunk-767AGYG7.cjs +62 -0
- package/lib/chunk-767AGYG7.cjs.map +1 -0
- package/lib/chunk-76C7DJD6.cjs +91 -0
- package/lib/chunk-76C7DJD6.cjs.map +1 -0
- package/lib/chunk-76KIQ66Q.js +68 -0
- package/lib/chunk-76KIQ66Q.js.map +1 -0
- package/lib/chunk-7BI3E7HL.cjs +79 -0
- package/lib/chunk-7BI3E7HL.cjs.map +1 -0
- package/lib/chunk-7MAOZTJA.cjs +35 -0
- package/lib/chunk-7MAOZTJA.cjs.map +1 -0
- package/lib/chunk-7MSAW7UA.js +89 -0
- package/lib/chunk-7MSAW7UA.js.map +1 -0
- package/lib/chunk-7RGN2RV2.cjs +60 -0
- package/lib/chunk-7RGN2RV2.cjs.map +1 -0
- package/lib/chunk-7SDKOZQE.cjs +79 -0
- package/lib/chunk-7SDKOZQE.cjs.map +1 -0
- package/lib/chunk-A4RURV7K.cjs +53 -0
- package/lib/chunk-A4RURV7K.cjs.map +1 -0
- package/lib/chunk-A6SPZ23B.js +75 -0
- package/lib/chunk-A6SPZ23B.js.map +1 -0
- package/lib/chunk-AALFYYOS.js +177 -0
- package/lib/chunk-AALFYYOS.js.map +1 -0
- package/lib/chunk-ABFJHOWD.js +68 -0
- package/lib/chunk-ABFJHOWD.js.map +1 -0
- package/lib/chunk-AHD4BYFN.cjs +243 -0
- package/lib/chunk-AHD4BYFN.cjs.map +1 -0
- package/lib/chunk-ARM7D4MZ.cjs +53 -0
- package/lib/chunk-ARM7D4MZ.cjs.map +1 -0
- package/lib/chunk-ARRZDPYJ.cjs +82 -0
- package/lib/chunk-ARRZDPYJ.cjs.map +1 -0
- package/lib/chunk-AY6EM77P.js +58 -0
- package/lib/chunk-AY6EM77P.js.map +1 -0
- package/lib/chunk-B2NRMWAL.js +69 -0
- package/lib/chunk-B2NRMWAL.js.map +1 -0
- package/lib/chunk-BAROX6BR.js +92 -0
- package/lib/chunk-BAROX6BR.js.map +1 -0
- package/lib/chunk-BNJ6YNOM.cjs +94 -0
- package/lib/chunk-BNJ6YNOM.cjs.map +1 -0
- package/lib/chunk-BNJVH4IU.js +51 -0
- package/lib/chunk-BNJVH4IU.js.map +1 -0
- package/lib/chunk-BPANUY47.cjs +22 -0
- package/lib/chunk-BPANUY47.cjs.map +1 -0
- package/lib/chunk-BR2HYHSI.js +82 -0
- package/lib/chunk-BR2HYHSI.js.map +1 -0
- package/lib/chunk-BRQPZWVK.js +68 -0
- package/lib/chunk-BRQPZWVK.js.map +1 -0
- package/lib/chunk-BUKBRSD5.cjs +86 -0
- package/lib/chunk-BUKBRSD5.cjs.map +1 -0
- package/lib/chunk-C6GJIIFQ.js +42 -0
- package/lib/chunk-C6GJIIFQ.js.map +1 -0
- package/lib/chunk-CAYOO3JS.cjs +44 -0
- package/lib/chunk-CAYOO3JS.cjs.map +1 -0
- package/lib/chunk-CEU5RCUI.js +79 -0
- package/lib/chunk-CEU5RCUI.js.map +1 -0
- package/lib/chunk-CGTNH6IV.js +50 -0
- package/lib/chunk-CGTNH6IV.js.map +1 -0
- package/lib/chunk-CGVELRN7.cjs +91 -0
- package/lib/chunk-CGVELRN7.cjs.map +1 -0
- package/lib/chunk-CIBE2CZX.cjs +52 -0
- package/lib/chunk-CIBE2CZX.cjs.map +1 -0
- package/lib/chunk-CPLBLR4E.js +612 -0
- package/lib/chunk-CPLBLR4E.js.map +1 -0
- package/lib/chunk-CTNIVLTY.cjs +205 -0
- package/lib/chunk-CTNIVLTY.cjs.map +1 -0
- package/lib/chunk-CUTRMHSG.js +89 -0
- package/lib/chunk-CUTRMHSG.js.map +1 -0
- package/lib/chunk-CVABRGXH.cjs +90 -0
- package/lib/chunk-CVABRGXH.cjs.map +1 -0
- package/lib/chunk-CW2AOHY4.cjs +88 -0
- package/lib/chunk-CW2AOHY4.cjs.map +1 -0
- package/lib/chunk-D2YPSUY4.cjs +61 -0
- package/lib/chunk-D2YPSUY4.cjs.map +1 -0
- package/lib/chunk-DDRL7ERF.js +68 -0
- package/lib/chunk-DDRL7ERF.js.map +1 -0
- package/lib/chunk-DKUQ6K6B.cjs +88 -0
- package/lib/chunk-DKUQ6K6B.cjs.map +1 -0
- package/lib/chunk-DNTDADTR.js +68 -0
- package/lib/chunk-DNTDADTR.js.map +1 -0
- package/lib/chunk-DTOF2RPL.js +77 -0
- package/lib/chunk-DTOF2RPL.js.map +1 -0
- package/lib/chunk-DU6GNBT4.js +50 -0
- package/lib/chunk-DU6GNBT4.js.map +1 -0
- package/lib/chunk-EBQ2K7TQ.js +33 -0
- package/lib/chunk-EBQ2K7TQ.js.map +1 -0
- package/lib/chunk-ECBKFTAK.cjs +61 -0
- package/lib/chunk-ECBKFTAK.cjs.map +1 -0
- package/lib/chunk-ENFK5CSE.js +118 -0
- package/lib/chunk-ENFK5CSE.js.map +1 -0
- package/lib/chunk-EOU6MO6H.cjs +70 -0
- package/lib/chunk-EOU6MO6H.cjs.map +1 -0
- package/lib/chunk-EUBNM3ZO.js +132 -0
- package/lib/chunk-EUBNM3ZO.js.map +1 -0
- package/lib/chunk-EUETC74Z.cjs +79 -0
- package/lib/chunk-EUETC74Z.cjs.map +1 -0
- package/lib/chunk-EVDBBPVM.js +68 -0
- package/lib/chunk-EVDBBPVM.js.map +1 -0
- package/lib/chunk-EXDJVWKS.js +79 -0
- package/lib/chunk-EXDJVWKS.js.map +1 -0
- package/lib/chunk-EXJAC7CY.cjs +94 -0
- package/lib/chunk-EXJAC7CY.cjs.map +1 -0
- package/lib/chunk-EY6KN5IF.cjs +60 -0
- package/lib/chunk-EY6KN5IF.cjs.map +1 -0
- package/lib/chunk-EZ32PKLC.cjs +70 -0
- package/lib/chunk-EZ32PKLC.cjs.map +1 -0
- package/lib/chunk-F5A5D4S3.cjs +102 -0
- package/lib/chunk-F5A5D4S3.cjs.map +1 -0
- package/lib/chunk-FB355ROS.js +60 -0
- package/lib/chunk-FB355ROS.js.map +1 -0
- package/lib/chunk-FEZTHTWY.cjs +120 -0
- package/lib/chunk-FEZTHTWY.cjs.map +1 -0
- package/lib/chunk-FG5OAZGV.cjs +85 -0
- package/lib/chunk-FG5OAZGV.cjs.map +1 -0
- package/lib/chunk-FNFCD7PC.cjs +98 -0
- package/lib/chunk-FNFCD7PC.cjs.map +1 -0
- package/lib/chunk-FNWLI3ZP.js +42 -0
- package/lib/chunk-FNWLI3ZP.js.map +1 -0
- package/lib/chunk-FOGC3CFK.cjs +81 -0
- package/lib/chunk-FOGC3CFK.cjs.map +1 -0
- package/lib/chunk-G4HHEC6Y.js +68 -0
- package/lib/chunk-G4HHEC6Y.js.map +1 -0
- package/lib/chunk-G4LTWX4G.cjs +62 -0
- package/lib/chunk-G4LTWX4G.cjs.map +1 -0
- package/lib/chunk-GCG5LC5E.js +86 -0
- package/lib/chunk-GCG5LC5E.js.map +1 -0
- package/lib/chunk-GEXJ2VE2.cjs +91 -0
- package/lib/chunk-GEXJ2VE2.cjs.map +1 -0
- package/lib/chunk-GGQ6AIVP.cjs +88 -0
- package/lib/chunk-GGQ6AIVP.cjs.map +1 -0
- package/lib/chunk-GIFJ76X2.cjs +47 -0
- package/lib/chunk-GIFJ76X2.cjs.map +1 -0
- package/lib/chunk-GIJ3WM7Y.js +38 -0
- package/lib/chunk-GIJ3WM7Y.js.map +1 -0
- package/lib/chunk-GMIHCHTG.js +124 -0
- package/lib/chunk-GMIHCHTG.js.map +1 -0
- package/lib/chunk-GMNK6R5J.cjs +79 -0
- package/lib/chunk-GMNK6R5J.cjs.map +1 -0
- package/lib/chunk-GS6WJNM7.cjs +166 -0
- package/lib/chunk-GS6WJNM7.cjs.map +1 -0
- package/lib/chunk-GWXMGS75.cjs +44 -0
- package/lib/chunk-GWXMGS75.cjs.map +1 -0
- package/lib/chunk-GZZXSIB2.js +61 -0
- package/lib/chunk-GZZXSIB2.js.map +1 -0
- package/lib/chunk-H3VW56K5.js +86 -0
- package/lib/chunk-H3VW56K5.js.map +1 -0
- package/lib/chunk-H4HF6EEU.js +77 -0
- package/lib/chunk-H4HF6EEU.js.map +1 -0
- package/lib/chunk-H4HUFIWL.cjs +84 -0
- package/lib/chunk-H4HUFIWL.cjs.map +1 -0
- package/lib/chunk-HHVBAXKQ.js +75 -0
- package/lib/chunk-HHVBAXKQ.js.map +1 -0
- package/lib/chunk-HIXXUB6L.js +100 -0
- package/lib/chunk-HIXXUB6L.js.map +1 -0
- package/lib/chunk-HPPLGWM2.cjs +70 -0
- package/lib/chunk-HPPLGWM2.cjs.map +1 -0
- package/lib/chunk-HTIOMBO7.js +116 -0
- package/lib/chunk-HTIOMBO7.js.map +1 -0
- package/lib/chunk-HTXJD6EN.cjs +115 -0
- package/lib/chunk-HTXJD6EN.cjs.map +1 -0
- package/lib/chunk-I3WRPA4J.cjs +77 -0
- package/lib/chunk-I3WRPA4J.cjs.map +1 -0
- package/lib/chunk-I6SL6R6A.cjs +62 -0
- package/lib/chunk-I6SL6R6A.cjs.map +1 -0
- package/lib/chunk-I7BELWOZ.cjs +29 -0
- package/lib/chunk-I7BELWOZ.cjs.map +1 -0
- package/lib/chunk-IODO3GRL.cjs +170 -0
- package/lib/chunk-IODO3GRL.cjs.map +1 -0
- package/lib/chunk-IWIVCJZP.cjs +102 -0
- package/lib/chunk-IWIVCJZP.cjs.map +1 -0
- package/lib/chunk-J2Y6T6IN.js +120 -0
- package/lib/chunk-J2Y6T6IN.js.map +1 -0
- package/lib/chunk-J6K7L5VW.cjs +126 -0
- package/lib/chunk-J6K7L5VW.cjs.map +1 -0
- package/lib/chunk-JCHHPOT7.js +75 -0
- package/lib/chunk-JCHHPOT7.js.map +1 -0
- package/lib/chunk-JDEZCM7S.cjs +70 -0
- package/lib/chunk-JDEZCM7S.cjs.map +1 -0
- package/lib/chunk-JF57GVB2.cjs +193 -0
- package/lib/chunk-JF57GVB2.cjs.map +1 -0
- package/lib/chunk-JFSUTJFF.js +79 -0
- package/lib/chunk-JFSUTJFF.js.map +1 -0
- package/lib/chunk-JLJE2LDY.js +68 -0
- package/lib/chunk-JLJE2LDY.js.map +1 -0
- package/lib/chunk-JRT3ACN7.js +80 -0
- package/lib/chunk-JRT3ACN7.js.map +1 -0
- package/lib/chunk-JUAEZTVG.js +68 -0
- package/lib/chunk-JUAEZTVG.js.map +1 -0
- package/lib/chunk-JXGFGLHJ.js +59 -0
- package/lib/chunk-JXGFGLHJ.js.map +1 -0
- package/lib/chunk-K2XM5WOD.js +77 -0
- package/lib/chunk-K2XM5WOD.js.map +1 -0
- package/lib/chunk-K7ACN66H.js +60 -0
- package/lib/chunk-K7ACN66H.js.map +1 -0
- package/lib/chunk-KAMEZEWA.js +96 -0
- package/lib/chunk-KAMEZEWA.js.map +1 -0
- package/lib/chunk-KCJ5Q3RC.js +77 -0
- package/lib/chunk-KCJ5Q3RC.js.map +1 -0
- package/lib/chunk-KDT2QFFT.cjs +81 -0
- package/lib/chunk-KDT2QFFT.cjs.map +1 -0
- package/lib/chunk-KHWZJWFV.cjs +80 -0
- package/lib/chunk-KHWZJWFV.cjs.map +1 -0
- package/lib/chunk-KKCUNEDC.js +709 -0
- package/lib/chunk-KKCUNEDC.js.map +1 -0
- package/lib/chunk-KKFPVGSR.cjs +80 -0
- package/lib/chunk-KKFPVGSR.cjs.map +1 -0
- package/lib/chunk-KKHJJLMA.js +27 -0
- package/lib/chunk-KKHJJLMA.js.map +1 -0
- package/lib/chunk-KLKK2HYA.cjs +70 -0
- package/lib/chunk-KLKK2HYA.cjs.map +1 -0
- package/lib/chunk-KSBHVLHJ.js +321 -0
- package/lib/chunk-KSBHVLHJ.js.map +1 -0
- package/lib/chunk-KVSFJGOA.js +129 -0
- package/lib/chunk-KVSFJGOA.js.map +1 -0
- package/lib/chunk-KX5YC4QE.cjs +120 -0
- package/lib/chunk-KX5YC4QE.cjs.map +1 -0
- package/lib/chunk-L2I4FREQ.js +77 -0
- package/lib/chunk-L2I4FREQ.js.map +1 -0
- package/lib/chunk-L5LKAYAB.js +177 -0
- package/lib/chunk-L5LKAYAB.js.map +1 -0
- package/lib/chunk-L7PKARTY.cjs +79 -0
- package/lib/chunk-L7PKARTY.cjs.map +1 -0
- package/lib/chunk-LKRQUDCQ.js +51 -0
- package/lib/chunk-LKRQUDCQ.js.map +1 -0
- package/lib/chunk-LKYITM53.cjs +88 -0
- package/lib/chunk-LKYITM53.cjs.map +1 -0
- package/lib/chunk-LOCGW4UZ.js +68 -0
- package/lib/chunk-LOCGW4UZ.js.map +1 -0
- package/lib/chunk-LRQC72OM.js +87 -0
- package/lib/chunk-LRQC72OM.js.map +1 -0
- package/lib/chunk-LSQVELFQ.cjs +313 -0
- package/lib/chunk-LSQVELFQ.cjs.map +1 -0
- package/lib/chunk-LTUUDUV4.js +24 -0
- package/lib/chunk-LTUUDUV4.js.map +1 -0
- package/lib/chunk-LUAW6PVB.cjs +52 -0
- package/lib/chunk-LUAW6PVB.cjs.map +1 -0
- package/lib/chunk-LWMBA3O2.js +82 -0
- package/lib/chunk-LWMBA3O2.js.map +1 -0
- package/lib/chunk-M4RBYRV3.js +67 -0
- package/lib/chunk-M4RBYRV3.js.map +1 -0
- package/lib/chunk-M6EAUX5W.js +35 -0
- package/lib/chunk-M6EAUX5W.js.map +1 -0
- package/lib/chunk-M6OJPQJ4.js +77 -0
- package/lib/chunk-M6OJPQJ4.js.map +1 -0
- package/lib/chunk-M7J2SDJC.cjs +53 -0
- package/lib/chunk-M7J2SDJC.cjs.map +1 -0
- package/lib/chunk-MBJR7LV2.cjs +77 -0
- package/lib/chunk-MBJR7LV2.cjs.map +1 -0
- package/lib/chunk-MCODGGUN.js +60 -0
- package/lib/chunk-MCODGGUN.js.map +1 -0
- package/lib/chunk-MEZMS5RE.cjs +86 -0
- package/lib/chunk-MEZMS5RE.cjs.map +1 -0
- package/lib/chunk-MIREPRUH.js +86 -0
- package/lib/chunk-MIREPRUH.js.map +1 -0
- package/lib/chunk-MOHY2GQS.js +78 -0
- package/lib/chunk-MOHY2GQS.js.map +1 -0
- package/lib/chunk-MQ43UMAN.js +191 -0
- package/lib/chunk-MQ43UMAN.js.map +1 -0
- package/lib/chunk-MUWHE7HE.cjs +61 -0
- package/lib/chunk-MUWHE7HE.cjs.map +1 -0
- package/lib/chunk-MWRGTRKR.js +241 -0
- package/lib/chunk-MWRGTRKR.js.map +1 -0
- package/lib/chunk-MZAPRZJ5.cjs +91 -0
- package/lib/chunk-MZAPRZJ5.cjs.map +1 -0
- package/lib/chunk-N37YHRKP.js +58 -0
- package/lib/chunk-N37YHRKP.js.map +1 -0
- package/lib/chunk-NCDURU7R.js +51 -0
- package/lib/chunk-NCDURU7R.js.map +1 -0
- package/lib/chunk-NGFQ7KED.js +92 -0
- package/lib/chunk-NGFQ7KED.js.map +1 -0
- package/lib/chunk-NIGW2WJZ.js +100 -0
- package/lib/chunk-NIGW2WJZ.js.map +1 -0
- package/lib/chunk-NOEFPOPE.js +77 -0
- package/lib/chunk-NOEFPOPE.js.map +1 -0
- package/lib/chunk-NPES3RMM.cjs +98 -0
- package/lib/chunk-NPES3RMM.cjs.map +1 -0
- package/lib/chunk-O533BGM3.cjs +323 -0
- package/lib/chunk-O533BGM3.cjs.map +1 -0
- package/lib/chunk-O6SULED7.js +191 -0
- package/lib/chunk-O6SULED7.js.map +1 -0
- package/lib/chunk-OGTS3FUY.cjs +67 -0
- package/lib/chunk-OGTS3FUY.cjs.map +1 -0
- package/lib/chunk-OH4R7NRW.cjs +556 -0
- package/lib/chunk-OH4R7NRW.cjs.map +1 -0
- package/lib/chunk-OOHRQZZD.cjs +84 -0
- package/lib/chunk-OOHRQZZD.cjs.map +1 -0
- package/lib/chunk-OOL5BY5X.js +96 -0
- package/lib/chunk-OOL5BY5X.js.map +1 -0
- package/lib/chunk-OS6CCKJ2.cjs +55 -0
- package/lib/chunk-OS6CCKJ2.cjs.map +1 -0
- package/lib/chunk-OVVCRTP7.js +203 -0
- package/lib/chunk-OVVCRTP7.js.map +1 -0
- package/lib/chunk-OWHODKLW.cjs +614 -0
- package/lib/chunk-OWHODKLW.cjs.map +1 -0
- package/lib/chunk-OXGUUNU2.js +68 -0
- package/lib/chunk-OXGUUNU2.js.map +1 -0
- package/lib/chunk-OXHQKMPQ.js +20 -0
- package/lib/chunk-OXHQKMPQ.js.map +1 -0
- package/lib/chunk-P6LNSPOI.cjs +53 -0
- package/lib/chunk-P6LNSPOI.cjs.map +1 -0
- package/lib/chunk-PHBLKRKQ.cjs +70 -0
- package/lib/chunk-PHBLKRKQ.cjs.map +1 -0
- package/lib/chunk-PHYWUU7V.js +84 -0
- package/lib/chunk-PHYWUU7V.js.map +1 -0
- package/lib/chunk-PIPNMGPH.cjs +79 -0
- package/lib/chunk-PIPNMGPH.cjs.map +1 -0
- package/lib/chunk-PSLEKRZK.cjs +198 -0
- package/lib/chunk-PSLEKRZK.cjs.map +1 -0
- package/lib/chunk-PX7JHWRT.js +65 -0
- package/lib/chunk-PX7JHWRT.js.map +1 -0
- package/lib/chunk-PXI3FFHR.js +542 -0
- package/lib/chunk-PXI3FFHR.js.map +1 -0
- package/lib/chunk-Q6VOWBEQ.cjs +125 -0
- package/lib/chunk-Q6VOWBEQ.cjs.map +1 -0
- package/lib/chunk-QHRU26FW.js +75 -0
- package/lib/chunk-QHRU26FW.js.map +1 -0
- package/lib/chunk-QJ7CAGZ5.js +83 -0
- package/lib/chunk-QJ7CAGZ5.js.map +1 -0
- package/lib/chunk-QMN65ZNB.js +77 -0
- package/lib/chunk-QMN65ZNB.js.map +1 -0
- package/lib/chunk-QORYWNNP.cjs +63 -0
- package/lib/chunk-QORYWNNP.cjs.map +1 -0
- package/lib/chunk-QTGLEGGW.cjs +89 -0
- package/lib/chunk-QTGLEGGW.cjs.map +1 -0
- package/lib/chunk-QWN7WOZ5.cjs +79 -0
- package/lib/chunk-QWN7WOZ5.cjs.map +1 -0
- package/lib/chunk-QX7FGLBA.js +60 -0
- package/lib/chunk-QX7FGLBA.js.map +1 -0
- package/lib/chunk-QYNCY3YO.js +51 -0
- package/lib/chunk-QYNCY3YO.js.map +1 -0
- package/lib/chunk-QZUT3LHW.cjs +70 -0
- package/lib/chunk-QZUT3LHW.cjs.map +1 -0
- package/lib/chunk-R5TTR22O.cjs +81 -0
- package/lib/chunk-R5TTR22O.cjs.map +1 -0
- package/lib/chunk-RBVNKEEP.cjs +79 -0
- package/lib/chunk-RBVNKEEP.cjs.map +1 -0
- package/lib/chunk-RDB6NEE4.cjs +98 -0
- package/lib/chunk-RDB6NEE4.cjs.map +1 -0
- package/lib/chunk-RGVEG53S.js +168 -0
- package/lib/chunk-RGVEG53S.js.map +1 -0
- package/lib/chunk-RKMVLTAY.cjs +70 -0
- package/lib/chunk-RKMVLTAY.cjs.map +1 -0
- package/lib/chunk-RMANZCYG.cjs +70 -0
- package/lib/chunk-RMANZCYG.cjs.map +1 -0
- package/lib/chunk-RPRYQAVD.js +69 -0
- package/lib/chunk-RPRYQAVD.js.map +1 -0
- package/lib/chunk-RQ5M3VRG.js +118 -0
- package/lib/chunk-RQ5M3VRG.js.map +1 -0
- package/lib/chunk-RQRSN6GK.cjs +70 -0
- package/lib/chunk-RQRSN6GK.cjs.map +1 -0
- package/lib/chunk-RTLI25A2.cjs +118 -0
- package/lib/chunk-RTLI25A2.cjs.map +1 -0
- package/lib/chunk-RXSGRNKJ.js +50 -0
- package/lib/chunk-RXSGRNKJ.js.map +1 -0
- package/lib/chunk-S5LBERKZ.cjs +79 -0
- package/lib/chunk-S5LBERKZ.cjs.map +1 -0
- package/lib/chunk-S7AZ2CAV.cjs +62 -0
- package/lib/chunk-S7AZ2CAV.cjs.map +1 -0
- package/lib/chunk-SBCHXAFH.js +77 -0
- package/lib/chunk-SBCHXAFH.js.map +1 -0
- package/lib/chunk-SG6BDPDG.js +177 -0
- package/lib/chunk-SG6BDPDG.js.map +1 -0
- package/lib/chunk-SH2MT5YH.js +59 -0
- package/lib/chunk-SH2MT5YH.js.map +1 -0
- package/lib/chunk-SJAPPBAX.cjs +84 -0
- package/lib/chunk-SJAPPBAX.cjs.map +1 -0
- package/lib/chunk-SNYNOS4X.js +89 -0
- package/lib/chunk-SNYNOS4X.js.map +1 -0
- package/lib/chunk-SRUNHFBP.cjs +179 -0
- package/lib/chunk-SRUNHFBP.cjs.map +1 -0
- package/lib/chunk-T2QY74EE.cjs +122 -0
- package/lib/chunk-T2QY74EE.cjs.map +1 -0
- package/lib/chunk-T33HICMW.cjs +53 -0
- package/lib/chunk-T33HICMW.cjs.map +1 -0
- package/lib/chunk-T44NBZHI.cjs +134 -0
- package/lib/chunk-T44NBZHI.cjs.map +1 -0
- package/lib/chunk-T5HTYZIG.cjs +120 -0
- package/lib/chunk-T5HTYZIG.cjs.map +1 -0
- package/lib/chunk-TLA45WNE.js +53 -0
- package/lib/chunk-TLA45WNE.js.map +1 -0
- package/lib/chunk-TLYNUT46.js +191 -0
- package/lib/chunk-TLYNUT46.js.map +1 -0
- package/lib/chunk-TQJXJSPS.js +77 -0
- package/lib/chunk-TQJXJSPS.js.map +1 -0
- package/lib/chunk-TR7P3VDX.js +96 -0
- package/lib/chunk-TR7P3VDX.js.map +1 -0
- package/lib/chunk-TVRITF4Q.cjs +164 -0
- package/lib/chunk-TVRITF4Q.cjs.map +1 -0
- package/lib/chunk-TXK5K43E.js +82 -0
- package/lib/chunk-TXK5K43E.js.map +1 -0
- package/lib/chunk-TZICXIFV.js +113 -0
- package/lib/chunk-TZICXIFV.js.map +1 -0
- package/lib/chunk-TZXOKIVJ.js +86 -0
- package/lib/chunk-TZXOKIVJ.js.map +1 -0
- package/lib/chunk-UIXOF5WD.js +60 -0
- package/lib/chunk-UIXOF5WD.js.map +1 -0
- package/lib/chunk-UL36HJRH.cjs +179 -0
- package/lib/chunk-UL36HJRH.cjs.map +1 -0
- package/lib/chunk-UN5ADA3I.js +89 -0
- package/lib/chunk-UN5ADA3I.js.map +1 -0
- package/lib/chunk-UQA3V7EQ.cjs +193 -0
- package/lib/chunk-UQA3V7EQ.cjs.map +1 -0
- package/lib/chunk-US3S3AKJ.cjs +77 -0
- package/lib/chunk-US3S3AKJ.cjs.map +1 -0
- package/lib/chunk-UT5ALTP2.js +164 -0
- package/lib/chunk-UT5ALTP2.js.map +1 -0
- package/lib/chunk-UT7EZWLA.cjs +71 -0
- package/lib/chunk-UT7EZWLA.cjs.map +1 -0
- package/lib/chunk-UZZEUGAU.cjs +88 -0
- package/lib/chunk-UZZEUGAU.cjs.map +1 -0
- package/lib/chunk-V6ZTOCIP.cjs +44 -0
- package/lib/chunk-V6ZTOCIP.cjs.map +1 -0
- package/lib/chunk-VALGSE43.cjs +38 -0
- package/lib/chunk-VALGSE43.cjs.map +1 -0
- package/lib/chunk-VF2O2LL2.cjs +91 -0
- package/lib/chunk-VF2O2LL2.cjs.map +1 -0
- package/lib/chunk-VKKABEIF.js +91 -0
- package/lib/chunk-VKKABEIF.js.map +1 -0
- package/lib/chunk-VMIJFFMR.cjs +98 -0
- package/lib/chunk-VMIJFFMR.cjs.map +1 -0
- package/lib/chunk-VQL2GDOC.js +65 -0
- package/lib/chunk-VQL2GDOC.js.map +1 -0
- package/lib/chunk-W3DJZSUC.js +68 -0
- package/lib/chunk-W3DJZSUC.js.map +1 -0
- package/lib/chunk-W4TRA2O2.cjs +102 -0
- package/lib/chunk-W4TRA2O2.cjs.map +1 -0
- package/lib/chunk-W7HLFWQY.cjs +182 -0
- package/lib/chunk-W7HLFWQY.cjs.map +1 -0
- package/lib/chunk-WBWYSOBQ.js +177 -0
- package/lib/chunk-WBWYSOBQ.js.map +1 -0
- package/lib/chunk-WGBYJEHX.cjs +179 -0
- package/lib/chunk-WGBYJEHX.cjs.map +1 -0
- package/lib/chunk-WGJFSDBA.cjs +93 -0
- package/lib/chunk-WGJFSDBA.cjs.map +1 -0
- package/lib/chunk-WHX5YI6H.js +51 -0
- package/lib/chunk-WHX5YI6H.js.map +1 -0
- package/lib/chunk-WIDPMSU4.cjs +179 -0
- package/lib/chunk-WIDPMSU4.cjs.map +1 -0
- package/lib/chunk-WISBTS3C.cjs +79 -0
- package/lib/chunk-WISBTS3C.cjs.map +1 -0
- package/lib/chunk-WLKLPLXH.cjs +70 -0
- package/lib/chunk-WLKLPLXH.cjs.map +1 -0
- package/lib/chunk-WNCRJM76.js +120 -0
- package/lib/chunk-WNCRJM76.js.map +1 -0
- package/lib/chunk-WO5LQQSK.cjs +4 -0
- package/lib/chunk-WO5LQQSK.cjs.map +1 -0
- package/lib/chunk-WOD46TWU.js +96 -0
- package/lib/chunk-WOD46TWU.js.map +1 -0
- package/lib/chunk-WOVCY6ON.cjs +22 -0
- package/lib/chunk-WOVCY6ON.cjs.map +1 -0
- package/lib/chunk-WROORM6M.js +116 -0
- package/lib/chunk-WROORM6M.js.map +1 -0
- package/lib/chunk-WSSSFMLB.cjs +131 -0
- package/lib/chunk-WSSSFMLB.cjs.map +1 -0
- package/lib/chunk-WYHWZDME.js +82 -0
- package/lib/chunk-WYHWZDME.js.map +1 -0
- package/lib/chunk-WZKYHIUM.cjs +52 -0
- package/lib/chunk-WZKYHIUM.cjs.map +1 -0
- package/lib/chunk-X3NJTGAQ.js +45 -0
- package/lib/chunk-X3NJTGAQ.js.map +1 -0
- package/lib/chunk-X7J5ETGR.cjs +96 -0
- package/lib/chunk-X7J5ETGR.cjs.map +1 -0
- package/lib/chunk-XEZW6I2I.js +42 -0
- package/lib/chunk-XEZW6I2I.js.map +1 -0
- package/lib/chunk-XFFPZEJQ.cjs +40 -0
- package/lib/chunk-XFFPZEJQ.cjs.map +1 -0
- package/lib/chunk-XVMHGTZT.js +11 -0
- package/lib/chunk-XVMHGTZT.js.map +1 -0
- package/lib/chunk-Y7FJ5Q2J.cjs +72 -0
- package/lib/chunk-Y7FJ5Q2J.cjs.map +1 -0
- package/lib/chunk-YD6OZ4RO.cjs +712 -0
- package/lib/chunk-YD6OZ4RO.cjs.map +1 -0
- package/lib/chunk-YJ3O5XLC.js +3 -0
- package/lib/chunk-YJ3O5XLC.js.map +1 -0
- package/lib/chunk-YTWBZTJI.js +94 -0
- package/lib/chunk-YTWBZTJI.js.map +1 -0
- package/lib/chunk-YV756IAI.cjs +62 -0
- package/lib/chunk-YV756IAI.cjs.map +1 -0
- package/lib/chunk-YVX5EI7G.cjs +122 -0
- package/lib/chunk-YVX5EI7G.cjs.map +1 -0
- package/lib/chunk-YX2YHZDI.cjs +70 -0
- package/lib/chunk-YX2YHZDI.cjs.map +1 -0
- package/lib/chunk-YXCYLDXT.cjs +179 -0
- package/lib/chunk-YXCYLDXT.cjs.map +1 -0
- package/lib/chunk-YXFYXDGG.js +154 -0
- package/lib/chunk-YXFYXDGG.js.map +1 -0
- package/lib/chunk-YYOW53OQ.js +68 -0
- package/lib/chunk-YYOW53OQ.js.map +1 -0
- package/lib/chunk-Z3KQDJAD.cjs +26 -0
- package/lib/chunk-Z3KQDJAD.cjs.map +1 -0
- package/lib/chunk-ZCQOTKMF.js +177 -0
- package/lib/chunk-ZCQOTKMF.js.map +1 -0
- package/lib/chunk-ZDBMDLOT.js +86 -0
- package/lib/chunk-ZDBMDLOT.js.map +1 -0
- package/lib/chunk-ZQY6GVML.cjs +14 -0
- package/lib/chunk-ZQY6GVML.cjs.map +1 -0
- package/lib/chunk-ZYT2EPDD.js +305 -0
- package/lib/chunk-ZYT2EPDD.js.map +1 -0
- package/lib/client.cjs +7 -6
- package/lib/client.d.cts +2 -1
- package/lib/client.d.ts +2 -1
- package/lib/client.js +6 -5
- package/lib/commercelayer.cjs +21 -16
- package/lib/commercelayer.d.cts +11 -6
- package/lib/commercelayer.d.ts +11 -6
- package/lib/commercelayer.js +10 -9
- package/lib/config.cjs +2 -2
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +14 -14
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-D4JGyBOl.d.cts +55 -0
- package/lib/fetch-D4JGyBOl.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +155 -671
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +17 -6
- package/lib/index.d.ts +15 -3
- package/lib/index.js +154 -142
- package/lib/index.js.map +1 -1
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +11 -10
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +9 -8
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +6 -6
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +3 -3
- package/lib/resource.cjs +14 -13
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +9 -8
- package/lib/resources/addresses.cjs +11 -10
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +10 -9
- package/lib/resources/adjustments.cjs +11 -10
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +10 -9
- package/lib/resources/adyen_gateways.cjs +11 -10
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +10 -9
- package/lib/resources/adyen_payments.cjs +11 -10
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +10 -9
- package/lib/resources/applications.cjs +11 -10
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +10 -9
- package/lib/resources/attachments.cjs +11 -10
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +10 -9
- package/lib/resources/authorizations.cjs +11 -10
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +10 -9
- package/lib/resources/avalara_accounts.cjs +11 -10
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +10 -9
- package/lib/resources/axerve_gateways.cjs +11 -10
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +10 -9
- package/lib/resources/axerve_payments.cjs +11 -10
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +10 -9
- package/lib/resources/billing_info_validation_rules.cjs +21 -0
- package/lib/resources/billing_info_validation_rules.cjs.map +1 -0
- package/lib/resources/billing_info_validation_rules.d.cts +7 -0
- package/lib/resources/billing_info_validation_rules.d.ts +4 -0
- package/lib/resources/billing_info_validation_rules.js +13 -0
- package/lib/resources/billing_info_validation_rules.js.map +1 -0
- package/lib/resources/bing_geocoders.cjs +11 -10
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +10 -9
- package/lib/resources/braintree_gateways.cjs +11 -10
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +10 -9
- package/lib/resources/braintree_payments.cjs +11 -10
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +10 -9
- package/lib/resources/bundles.cjs +11 -10
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +10 -9
- package/lib/resources/buy_x_pay_y_promotions.cjs +11 -10
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +10 -9
- package/lib/resources/captures.cjs +11 -10
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +10 -9
- package/lib/resources/carrier_accounts.cjs +11 -10
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +10 -9
- package/lib/resources/checkout_com_gateways.cjs +11 -10
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +10 -9
- package/lib/resources/checkout_com_payments.cjs +11 -10
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +10 -9
- package/lib/resources/cleanups.cjs +11 -10
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +10 -9
- package/lib/resources/coupon_codes_promotion_rules.cjs +11 -10
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +10 -9
- package/lib/resources/coupon_recipients.cjs +11 -10
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +10 -9
- package/lib/resources/coupons.cjs +11 -10
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +10 -9
- package/lib/resources/custom_promotion_rules.cjs +11 -10
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +10 -9
- package/lib/resources/customer_addresses.cjs +11 -10
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +10 -9
- package/lib/resources/customer_groups.cjs +11 -10
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +10 -9
- package/lib/resources/customer_password_resets.cjs +11 -10
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +10 -9
- package/lib/resources/customer_payment_sources.cjs +11 -10
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +10 -9
- package/lib/resources/customer_subscriptions.cjs +11 -10
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +10 -9
- package/lib/resources/customers.cjs +11 -10
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +10 -9
- package/lib/resources/delivery_lead_times.cjs +11 -10
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +10 -9
- package/lib/resources/discount_engine_items.cjs +11 -10
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +10 -9
- package/lib/resources/discount_engines.cjs +11 -10
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +10 -9
- package/lib/resources/easypost_pickups.cjs +11 -10
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +10 -9
- package/lib/resources/event_callbacks.cjs +11 -10
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +10 -9
- package/lib/resources/event_stores.cjs +11 -10
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/event_stores.js +10 -9
- package/lib/resources/events.cjs +11 -10
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +10 -9
- package/lib/resources/exports.cjs +11 -10
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +10 -9
- package/lib/resources/external_gateways.cjs +11 -10
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +10 -9
- package/lib/resources/external_payments.cjs +11 -10
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +10 -9
- package/lib/resources/external_promotions.cjs +11 -10
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +10 -9
- package/lib/resources/external_tax_calculators.cjs +11 -10
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +10 -9
- package/lib/resources/fixed_amount_promotions.cjs +11 -10
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +10 -9
- package/lib/resources/fixed_price_promotions.cjs +11 -10
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +10 -9
- package/lib/resources/flex_promotions.cjs +11 -10
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +10 -9
- package/lib/resources/free_gift_promotions.cjs +11 -10
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +10 -9
- package/lib/resources/free_shipping_promotions.cjs +11 -10
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +10 -9
- package/lib/resources/geocoders.cjs +11 -10
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +10 -9
- package/lib/resources/gift_card_recipients.cjs +11 -10
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +10 -9
- package/lib/resources/gift_cards.cjs +11 -10
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +10 -9
- package/lib/resources/google_geocoders.cjs +11 -10
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +10 -9
- package/lib/resources/imports.cjs +11 -10
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +10 -9
- package/lib/resources/in_stock_subscriptions.cjs +11 -10
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +10 -9
- package/lib/resources/inventory_models.cjs +11 -10
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +10 -9
- package/lib/resources/inventory_return_locations.cjs +11 -10
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +10 -9
- package/lib/resources/inventory_stock_locations.cjs +11 -10
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +10 -9
- package/lib/resources/klarna_gateways.cjs +11 -10
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +10 -9
- package/lib/resources/klarna_payments.cjs +11 -10
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +10 -9
- package/lib/resources/line_item_options.cjs +11 -10
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +10 -9
- package/lib/resources/line_items.cjs +11 -10
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +10 -9
- package/lib/resources/links.cjs +11 -10
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +10 -9
- package/lib/resources/manual_gateways.cjs +11 -10
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +10 -9
- package/lib/resources/manual_tax_calculators.cjs +11 -10
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +10 -9
- package/lib/resources/markets.cjs +11 -10
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +10 -9
- package/lib/resources/merchants.cjs +11 -10
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +10 -9
- package/lib/resources/notifications.cjs +11 -10
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +10 -9
- package/lib/resources/order_amount_promotion_rules.cjs +11 -10
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +10 -9
- package/lib/resources/order_copies.cjs +11 -10
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +10 -9
- package/lib/resources/order_factories.cjs +11 -10
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +10 -9
- package/lib/resources/order_subscription_items.cjs +11 -10
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +10 -9
- package/lib/resources/order_subscriptions.cjs +11 -10
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +10 -9
- package/lib/resources/order_validation_rules.cjs +21 -0
- package/lib/resources/order_validation_rules.cjs.map +1 -0
- package/lib/resources/order_validation_rules.d.cts +7 -0
- package/lib/resources/order_validation_rules.d.ts +4 -0
- package/lib/resources/order_validation_rules.js +13 -0
- package/lib/resources/order_validation_rules.js.map +1 -0
- package/lib/resources/orders.cjs +11 -10
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +10 -9
- package/lib/resources/organizations.cjs +11 -10
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +10 -9
- package/lib/resources/packages.cjs +11 -10
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +10 -9
- package/lib/resources/parcel_line_items.cjs +11 -10
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +10 -9
- package/lib/resources/parcels.cjs +11 -10
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +10 -9
- package/lib/resources/payment_gateways.cjs +11 -10
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +10 -9
- package/lib/resources/payment_methods.cjs +11 -10
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +10 -9
- package/lib/resources/payment_options.cjs +11 -10
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +10 -9
- package/lib/resources/paypal_gateways.cjs +11 -10
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +10 -9
- package/lib/resources/paypal_payments.cjs +11 -10
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +10 -9
- package/lib/resources/percentage_discount_promotions.cjs +11 -10
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +10 -9
- package/lib/resources/pickups.cjs +11 -10
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +10 -9
- package/lib/resources/price_frequency_tiers.cjs +11 -10
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +10 -9
- package/lib/resources/price_list_schedulers.cjs +11 -10
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +10 -9
- package/lib/resources/price_lists.cjs +11 -10
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +10 -9
- package/lib/resources/price_tiers.cjs +11 -10
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +10 -9
- package/lib/resources/price_volume_tiers.cjs +11 -10
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +10 -9
- package/lib/resources/prices.cjs +11 -10
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +10 -9
- package/lib/resources/promotion_rules.cjs +11 -10
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +10 -9
- package/lib/resources/promotions.cjs +11 -10
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +10 -9
- package/lib/resources/recurring_order_copies.cjs +11 -10
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +10 -9
- package/lib/resources/refunds.cjs +11 -10
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +10 -9
- package/lib/resources/reserved_stocks.cjs +11 -10
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +10 -9
- package/lib/resources/resource_errors.cjs +11 -10
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +10 -9
- package/lib/resources/return_line_items.cjs +11 -10
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +10 -9
- package/lib/resources/returns.cjs +11 -10
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +10 -9
- package/lib/resources/satispay_gateways.cjs +11 -10
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +10 -9
- package/lib/resources/satispay_payments.cjs +11 -10
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +10 -9
- package/lib/resources/shipment_line_items.cjs +21 -0
- package/lib/resources/shipment_line_items.cjs.map +1 -0
- package/lib/resources/shipment_line_items.d.cts +7 -0
- package/lib/resources/shipment_line_items.d.ts +4 -0
- package/lib/resources/shipment_line_items.js +13 -0
- package/lib/resources/shipment_line_items.js.map +1 -0
- package/lib/resources/shipments.cjs +11 -10
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +10 -9
- package/lib/resources/shipping_categories.cjs +11 -10
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +10 -9
- package/lib/resources/shipping_method_tiers.cjs +11 -10
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +10 -9
- package/lib/resources/shipping_methods.cjs +11 -10
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +10 -9
- package/lib/resources/shipping_weight_tiers.cjs +11 -10
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +10 -9
- package/lib/resources/shipping_zones.cjs +11 -10
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +10 -9
- package/lib/resources/sku_list_items.cjs +11 -10
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +10 -9
- package/lib/resources/sku_list_promotion_rules.cjs +11 -10
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +10 -9
- package/lib/resources/sku_lists.cjs +11 -10
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +10 -9
- package/lib/resources/sku_options.cjs +11 -10
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +10 -9
- package/lib/resources/skus.cjs +11 -10
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +10 -9
- package/lib/resources/stock_items.cjs +11 -10
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +10 -9
- package/lib/resources/stock_line_items.cjs +11 -10
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +10 -9
- package/lib/resources/stock_locations.cjs +11 -10
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +10 -9
- package/lib/resources/stock_reservations.cjs +11 -10
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +10 -9
- package/lib/resources/stock_transfers.cjs +11 -10
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +10 -9
- package/lib/resources/stores.cjs +11 -10
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +10 -9
- package/lib/resources/stripe_gateways.cjs +11 -10
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +10 -9
- package/lib/resources/stripe_payments.cjs +11 -10
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +10 -9
- package/lib/resources/stripe_tax_accounts.cjs +11 -10
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +10 -9
- package/lib/resources/subscription_models.cjs +11 -10
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +10 -9
- package/lib/resources/tags.cjs +11 -10
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +10 -9
- package/lib/resources/talon_one_accounts.cjs +11 -10
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +10 -9
- package/lib/resources/tax_calculators.cjs +11 -10
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +10 -9
- package/lib/resources/tax_categories.cjs +11 -10
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +10 -9
- package/lib/resources/tax_rules.cjs +11 -10
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +10 -9
- package/lib/resources/taxjar_accounts.cjs +11 -10
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +10 -9
- package/lib/resources/transactions.cjs +11 -10
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +10 -9
- package/lib/resources/vertex_accounts.cjs +11 -10
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +10 -9
- package/lib/resources/voids.cjs +11 -10
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +10 -9
- package/lib/resources/webhooks.cjs +11 -10
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +10 -9
- package/lib/resources/wire_transfers.cjs +11 -10
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +10 -9
- package/lib/single-client.cjs +707 -0
- package/lib/single-client.cjs.map +1 -0
- package/lib/single-client.d.cts +21 -0
- package/lib/single-client.d.ts +19 -0
- package/lib/single-client.js +156 -0
- package/lib/single-client.js.map +1 -0
- package/lib/static.cjs +12 -11
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +11 -10
- package/lib/util.cjs +5 -5
- package/lib/util.js +1 -1
- package/lib/version.cjs +17 -0
- package/lib/version.cjs.map +1 -0
- package/lib/version.d.cts +4 -0
- package/lib/version.d.ts +4 -0
- package/lib/version.js +4 -0
- package/lib/version.js.map +1 -0
- package/package.json +27 -17
- package/lib/api--5wB5Y2R.d.ts +0 -18326
- package/lib/api-D_vKsy0h.d.cts +0 -18326
- package/lib/chunk-22RVT2J2.js +0 -20
- package/lib/chunk-22RVT2J2.js.map +0 -1
- package/lib/chunk-24HV4EKV.js +0 -45
- package/lib/chunk-24HV4EKV.js.map +0 -1
- package/lib/chunk-2BYCZUKD.cjs +0 -47
- package/lib/chunk-2BYCZUKD.cjs.map +0 -1
- package/lib/chunk-2C5TBSGQ.cjs +0 -56
- package/lib/chunk-2C5TBSGQ.cjs.map +0 -1
- package/lib/chunk-2D7XHAVQ.js +0 -59
- package/lib/chunk-2D7XHAVQ.js.map +0 -1
- package/lib/chunk-2LDIS6UA.js +0 -53
- package/lib/chunk-2LDIS6UA.js.map +0 -1
- package/lib/chunk-2MSLSBHY.js +0 -57
- package/lib/chunk-2MSLSBHY.js.map +0 -1
- package/lib/chunk-2O5WYDVL.js +0 -37
- package/lib/chunk-2O5WYDVL.js.map +0 -1
- package/lib/chunk-2WHGIJGU.js +0 -54
- package/lib/chunk-2WHGIJGU.js.map +0 -1
- package/lib/chunk-35ININM5.js +0 -54
- package/lib/chunk-35ININM5.js.map +0 -1
- package/lib/chunk-376W3RHK.js +0 -27
- package/lib/chunk-376W3RHK.js.map +0 -1
- package/lib/chunk-3DEA3IGY.cjs +0 -47
- package/lib/chunk-3DEA3IGY.cjs.map +0 -1
- package/lib/chunk-3EX76AZW.js +0 -3
- package/lib/chunk-3EX76AZW.js.map +0 -1
- package/lib/chunk-3GOADUES.cjs +0 -63
- package/lib/chunk-3GOADUES.cjs.map +0 -1
- package/lib/chunk-3MGWBMJ2.cjs +0 -68
- package/lib/chunk-3MGWBMJ2.cjs.map +0 -1
- package/lib/chunk-3P4FFWTQ.cjs +0 -56
- package/lib/chunk-3P4FFWTQ.cjs.map +0 -1
- package/lib/chunk-3U7MK4SX.js +0 -68
- package/lib/chunk-3U7MK4SX.js.map +0 -1
- package/lib/chunk-3VI355UT.cjs +0 -62
- package/lib/chunk-3VI355UT.cjs.map +0 -1
- package/lib/chunk-3VVT6CKA.cjs +0 -70
- package/lib/chunk-3VVT6CKA.cjs.map +0 -1
- package/lib/chunk-3XGAVG4L.cjs +0 -34
- package/lib/chunk-3XGAVG4L.cjs.map +0 -1
- package/lib/chunk-3XSYH6SE.cjs +0 -38
- package/lib/chunk-3XSYH6SE.cjs.map +0 -1
- package/lib/chunk-3YIYVGMM.cjs +0 -42
- package/lib/chunk-3YIYVGMM.cjs.map +0 -1
- package/lib/chunk-4474ZEVS.js +0 -124
- package/lib/chunk-4474ZEVS.js.map +0 -1
- package/lib/chunk-4BE3G6GK.js +0 -51
- package/lib/chunk-4BE3G6GK.js.map +0 -1
- package/lib/chunk-4CLAI7ZC.cjs +0 -47
- package/lib/chunk-4CLAI7ZC.cjs.map +0 -1
- package/lib/chunk-4FW3MLHR.js +0 -53
- package/lib/chunk-4FW3MLHR.js.map +0 -1
- package/lib/chunk-4LAL3DCH.cjs +0 -55
- package/lib/chunk-4LAL3DCH.cjs.map +0 -1
- package/lib/chunk-4MV6VICV.js +0 -35
- package/lib/chunk-4MV6VICV.js.map +0 -1
- package/lib/chunk-53GWR3UF.js +0 -99
- package/lib/chunk-53GWR3UF.js.map +0 -1
- package/lib/chunk-5JDGRW3K.cjs +0 -47
- package/lib/chunk-5JDGRW3K.cjs.map +0 -1
- package/lib/chunk-5QFBTA7C.cjs +0 -61
- package/lib/chunk-5QFBTA7C.cjs.map +0 -1
- package/lib/chunk-5UISCFSR.cjs +0 -50
- package/lib/chunk-5UISCFSR.cjs.map +0 -1
- package/lib/chunk-5YMHXTJG.cjs +0 -4
- package/lib/chunk-5YMHXTJG.cjs.map +0 -1
- package/lib/chunk-62GRSGIA.js +0 -45
- package/lib/chunk-62GRSGIA.js.map +0 -1
- package/lib/chunk-64ENQFIL.cjs +0 -63
- package/lib/chunk-64ENQFIL.cjs.map +0 -1
- package/lib/chunk-6CE3DQTO.js +0 -53
- package/lib/chunk-6CE3DQTO.js.map +0 -1
- package/lib/chunk-6KXZ76ZM.js +0 -49
- package/lib/chunk-6KXZ76ZM.js.map +0 -1
- package/lib/chunk-6OF4JUHR.js +0 -45
- package/lib/chunk-6OF4JUHR.js.map +0 -1
- package/lib/chunk-6P72FNDJ.js +0 -53
- package/lib/chunk-6P72FNDJ.js.map +0 -1
- package/lib/chunk-73YM5XTA.cjs +0 -38
- package/lib/chunk-73YM5XTA.cjs.map +0 -1
- package/lib/chunk-74WLCRAL.cjs +0 -34
- package/lib/chunk-74WLCRAL.cjs.map +0 -1
- package/lib/chunk-7E73FXEL.cjs +0 -53
- package/lib/chunk-7E73FXEL.cjs.map +0 -1
- package/lib/chunk-7GSZFUJV.cjs +0 -59
- package/lib/chunk-7GSZFUJV.cjs.map +0 -1
- package/lib/chunk-7OUZNR45.js +0 -54
- package/lib/chunk-7OUZNR45.js.map +0 -1
- package/lib/chunk-7RZTCBDR.cjs +0 -22
- package/lib/chunk-7RZTCBDR.cjs.map +0 -1
- package/lib/chunk-7TGNLLZ4.js +0 -105
- package/lib/chunk-7TGNLLZ4.js.map +0 -1
- package/lib/chunk-7TM7YEPY.js +0 -89
- package/lib/chunk-7TM7YEPY.js.map +0 -1
- package/lib/chunk-A2CJAI7L.js +0 -24
- package/lib/chunk-A2CJAI7L.js.map +0 -1
- package/lib/chunk-A6DVFU4I.cjs +0 -46
- package/lib/chunk-A6DVFU4I.cjs.map +0 -1
- package/lib/chunk-A7NVPT5R.cjs +0 -55
- package/lib/chunk-A7NVPT5R.cjs.map +0 -1
- package/lib/chunk-A7ZFL7GH.js +0 -54
- package/lib/chunk-A7ZFL7GH.js.map +0 -1
- package/lib/chunk-AINFK7XE.js +0 -50
- package/lib/chunk-AINFK7XE.js.map +0 -1
- package/lib/chunk-AORS3S6A.js +0 -99
- package/lib/chunk-AORS3S6A.js.map +0 -1
- package/lib/chunk-APVQZ7L7.js +0 -48
- package/lib/chunk-APVQZ7L7.js.map +0 -1
- package/lib/chunk-ATT2PKKW.cjs +0 -95
- package/lib/chunk-ATT2PKKW.cjs.map +0 -1
- package/lib/chunk-AW6TSK6S.cjs +0 -42
- package/lib/chunk-AW6TSK6S.cjs.map +0 -1
- package/lib/chunk-AYKGUDP3.cjs +0 -285
- package/lib/chunk-AYKGUDP3.cjs.map +0 -1
- package/lib/chunk-AYPMKIN6.js +0 -51
- package/lib/chunk-AYPMKIN6.js.map +0 -1
- package/lib/chunk-B2MBAQSE.js +0 -41
- package/lib/chunk-B2MBAQSE.js.map +0 -1
- package/lib/chunk-BB3CT6HZ.js +0 -45
- package/lib/chunk-BB3CT6HZ.js.map +0 -1
- package/lib/chunk-BHLODYAT.js +0 -28
- package/lib/chunk-BHLODYAT.js.map +0 -1
- package/lib/chunk-BLI75VEN.cjs +0 -51
- package/lib/chunk-BLI75VEN.cjs.map +0 -1
- package/lib/chunk-BMO7YKG5.js +0 -60
- package/lib/chunk-BMO7YKG5.js.map +0 -1
- package/lib/chunk-BMOWFIX5.js +0 -45
- package/lib/chunk-BMOWFIX5.js.map +0 -1
- package/lib/chunk-BNCF46ZI.js +0 -61
- package/lib/chunk-BNCF46ZI.js.map +0 -1
- package/lib/chunk-BSXJPL6J.cjs +0 -55
- package/lib/chunk-BSXJPL6J.cjs.map +0 -1
- package/lib/chunk-BVQ2UTRP.cjs +0 -39
- package/lib/chunk-BVQ2UTRP.cjs.map +0 -1
- package/lib/chunk-BYDZPVOJ.js +0 -75
- package/lib/chunk-BYDZPVOJ.js.map +0 -1
- package/lib/chunk-C3I7H3HE.js +0 -49
- package/lib/chunk-C3I7H3HE.js.map +0 -1
- package/lib/chunk-C3UX7IBG.cjs +0 -59
- package/lib/chunk-C3UX7IBG.cjs.map +0 -1
- package/lib/chunk-C7OXTOX3.js +0 -36
- package/lib/chunk-C7OXTOX3.js.map +0 -1
- package/lib/chunk-CB5HXUPC.js +0 -31
- package/lib/chunk-CB5HXUPC.js.map +0 -1
- package/lib/chunk-CBFT5GYL.js +0 -103
- package/lib/chunk-CBFT5GYL.js.map +0 -1
- package/lib/chunk-D3LM2KQW.cjs +0 -47
- package/lib/chunk-D3LM2KQW.cjs.map +0 -1
- package/lib/chunk-D3ZUNI32.js +0 -67
- package/lib/chunk-D3ZUNI32.js.map +0 -1
- package/lib/chunk-D6CUKQZS.cjs +0 -55
- package/lib/chunk-D6CUKQZS.cjs.map +0 -1
- package/lib/chunk-DCEUM6EI.cjs +0 -30
- package/lib/chunk-DCEUM6EI.cjs.map +0 -1
- package/lib/chunk-DDV3U4FY.js +0 -48
- package/lib/chunk-DDV3U4FY.js.map +0 -1
- package/lib/chunk-DEQMKHOP.js +0 -40
- package/lib/chunk-DEQMKHOP.js.map +0 -1
- package/lib/chunk-DVDWNVCT.cjs +0 -49
- package/lib/chunk-DVDWNVCT.cjs.map +0 -1
- package/lib/chunk-DZP3JVEB.js +0 -45
- package/lib/chunk-DZP3JVEB.js.map +0 -1
- package/lib/chunk-E6MUVI6C.cjs +0 -51
- package/lib/chunk-E6MUVI6C.cjs.map +0 -1
- package/lib/chunk-E7GTEUA7.js +0 -49
- package/lib/chunk-E7GTEUA7.js.map +0 -1
- package/lib/chunk-EHEMWPTO.js +0 -102
- package/lib/chunk-EHEMWPTO.js.map +0 -1
- package/lib/chunk-EINVA4BK.cjs +0 -61
- package/lib/chunk-EINVA4BK.cjs.map +0 -1
- package/lib/chunk-EK7QE2CA.cjs +0 -47
- package/lib/chunk-EK7QE2CA.cjs.map +0 -1
- package/lib/chunk-EMD66UZY.cjs +0 -156
- package/lib/chunk-EMD66UZY.cjs.map +0 -1
- package/lib/chunk-ESJGAJ3L.js +0 -48
- package/lib/chunk-ESJGAJ3L.js.map +0 -1
- package/lib/chunk-EVFHODWY.js +0 -45
- package/lib/chunk-EVFHODWY.js.map +0 -1
- package/lib/chunk-F5GFKBDK.cjs +0 -95
- package/lib/chunk-F5GFKBDK.cjs.map +0 -1
- package/lib/chunk-F6REPWKJ.cjs +0 -77
- package/lib/chunk-F6REPWKJ.cjs.map +0 -1
- package/lib/chunk-F7F4VRB2.js +0 -45
- package/lib/chunk-F7F4VRB2.js.map +0 -1
- package/lib/chunk-FDLALORX.cjs +0 -47
- package/lib/chunk-FDLALORX.cjs.map +0 -1
- package/lib/chunk-FDTEUCMP.cjs +0 -26
- package/lib/chunk-FDTEUCMP.cjs.map +0 -1
- package/lib/chunk-FIRCMJCB.js +0 -93
- package/lib/chunk-FIRCMJCB.js.map +0 -1
- package/lib/chunk-FK3XYZ3Q.js +0 -45
- package/lib/chunk-FK3XYZ3Q.js.map +0 -1
- package/lib/chunk-FLOVFVKA.cjs +0 -51
- package/lib/chunk-FLOVFVKA.cjs.map +0 -1
- package/lib/chunk-FMQ5JHN6.cjs +0 -51
- package/lib/chunk-FMQ5JHN6.cjs.map +0 -1
- package/lib/chunk-FNIFFIDD.cjs +0 -39
- package/lib/chunk-FNIFFIDD.cjs.map +0 -1
- package/lib/chunk-FON2463F.js +0 -99
- package/lib/chunk-FON2463F.js.map +0 -1
- package/lib/chunk-G4GV5S6R.js +0 -283
- package/lib/chunk-G4GV5S6R.js.map +0 -1
- package/lib/chunk-G6BY3EA3.cjs +0 -51
- package/lib/chunk-G6BY3EA3.cjs.map +0 -1
- package/lib/chunk-GB23LWF6.js +0 -36
- package/lib/chunk-GB23LWF6.js.map +0 -1
- package/lib/chunk-GBM34MD2.cjs +0 -107
- package/lib/chunk-GBM34MD2.cjs.map +0 -1
- package/lib/chunk-GDD5SAYK.js +0 -36
- package/lib/chunk-GDD5SAYK.js.map +0 -1
- package/lib/chunk-GDPBS2DA.js +0 -154
- package/lib/chunk-GDPBS2DA.js.map +0 -1
- package/lib/chunk-GHJDV7RE.js +0 -59
- package/lib/chunk-GHJDV7RE.js.map +0 -1
- package/lib/chunk-GVVAHJ7J.cjs +0 -55
- package/lib/chunk-GVVAHJ7J.cjs.map +0 -1
- package/lib/chunk-GYCMQIMO.cjs +0 -550
- package/lib/chunk-GYCMQIMO.cjs.map +0 -1
- package/lib/chunk-H35WD77K.js +0 -49
- package/lib/chunk-H35WD77K.js.map +0 -1
- package/lib/chunk-H4OZFLUI.js +0 -37
- package/lib/chunk-H4OZFLUI.js.map +0 -1
- package/lib/chunk-HAF3NSFM.js +0 -93
- package/lib/chunk-HAF3NSFM.js.map +0 -1
- package/lib/chunk-HBEFGWUI.cjs +0 -49
- package/lib/chunk-HBEFGWUI.cjs.map +0 -1
- package/lib/chunk-HCK6NM5P.cjs +0 -47
- package/lib/chunk-HCK6NM5P.cjs.map +0 -1
- package/lib/chunk-HE4KWG6X.js +0 -55
- package/lib/chunk-HE4KWG6X.js.map +0 -1
- package/lib/chunk-HG36VCO5.js +0 -28
- package/lib/chunk-HG36VCO5.js.map +0 -1
- package/lib/chunk-HHOMPSSL.js +0 -91
- package/lib/chunk-HHOMPSSL.js.map +0 -1
- package/lib/chunk-HK6PGHU6.js +0 -57
- package/lib/chunk-HK6PGHU6.js.map +0 -1
- package/lib/chunk-HLI7KDN3.js +0 -45
- package/lib/chunk-HLI7KDN3.js.map +0 -1
- package/lib/chunk-HOQPWW7K.js +0 -40
- package/lib/chunk-HOQPWW7K.js.map +0 -1
- package/lib/chunk-HP6ZFYAJ.js +0 -37
- package/lib/chunk-HP6ZFYAJ.js.map +0 -1
- package/lib/chunk-HQZKODMU.js +0 -57
- package/lib/chunk-HQZKODMU.js.map +0 -1
- package/lib/chunk-HYO7YG3G.js +0 -45
- package/lib/chunk-HYO7YG3G.js.map +0 -1
- package/lib/chunk-HZ555CAY.js +0 -48
- package/lib/chunk-HZ555CAY.js.map +0 -1
- package/lib/chunk-IANMFIQD.js +0 -45
- package/lib/chunk-IANMFIQD.js.map +0 -1
- package/lib/chunk-IBXRFMT6.js +0 -69
- package/lib/chunk-IBXRFMT6.js.map +0 -1
- package/lib/chunk-IIWTNBRQ.cjs +0 -50
- package/lib/chunk-IIWTNBRQ.cjs.map +0 -1
- package/lib/chunk-IKCYKGYL.js +0 -151
- package/lib/chunk-IKCYKGYL.js.map +0 -1
- package/lib/chunk-IWC4U5GF.js +0 -49
- package/lib/chunk-IWC4U5GF.js.map +0 -1
- package/lib/chunk-IXLAN7TH.cjs +0 -61
- package/lib/chunk-IXLAN7TH.cjs.map +0 -1
- package/lib/chunk-JDAGKW5W.js +0 -44
- package/lib/chunk-JDAGKW5W.js.map +0 -1
- package/lib/chunk-JEWF32HM.js +0 -41
- package/lib/chunk-JEWF32HM.js.map +0 -1
- package/lib/chunk-JKO7QP65.cjs +0 -93
- package/lib/chunk-JKO7QP65.cjs.map +0 -1
- package/lib/chunk-JLC6MA4J.js +0 -65
- package/lib/chunk-JLC6MA4J.js.map +0 -1
- package/lib/chunk-JNXHE7P7.cjs +0 -42
- package/lib/chunk-JNXHE7P7.cjs.map +0 -1
- package/lib/chunk-JRMNMJVD.js +0 -61
- package/lib/chunk-JRMNMJVD.js.map +0 -1
- package/lib/chunk-JRUC5BXS.cjs +0 -42
- package/lib/chunk-JRUC5BXS.cjs.map +0 -1
- package/lib/chunk-JWPPED4R.js +0 -47
- package/lib/chunk-JWPPED4R.js.map +0 -1
- package/lib/chunk-K277GYCD.cjs +0 -40
- package/lib/chunk-K277GYCD.cjs.map +0 -1
- package/lib/chunk-K577VLOE.js +0 -45
- package/lib/chunk-K577VLOE.js.map +0 -1
- package/lib/chunk-K5YQI6TW.cjs +0 -47
- package/lib/chunk-K5YQI6TW.cjs.map +0 -1
- package/lib/chunk-KAMFWXPM.cjs +0 -51
- package/lib/chunk-KAMFWXPM.cjs.map +0 -1
- package/lib/chunk-KKB2YNT3.cjs +0 -100
- package/lib/chunk-KKB2YNT3.cjs.map +0 -1
- package/lib/chunk-KLPFAEV7.js +0 -55
- package/lib/chunk-KLPFAEV7.js.map +0 -1
- package/lib/chunk-KR3CTO6J.js +0 -53
- package/lib/chunk-KR3CTO6J.js.map +0 -1
- package/lib/chunk-KU43R6UR.js +0 -49
- package/lib/chunk-KU43R6UR.js.map +0 -1
- package/lib/chunk-L25AS3VU.cjs +0 -61
- package/lib/chunk-L25AS3VU.cjs.map +0 -1
- package/lib/chunk-L3ZQAILV.js +0 -45
- package/lib/chunk-L3ZQAILV.js.map +0 -1
- package/lib/chunk-LFPSATJW.js +0 -40
- package/lib/chunk-LFPSATJW.js.map +0 -1
- package/lib/chunk-LGYQGCME.cjs +0 -61
- package/lib/chunk-LGYQGCME.cjs.map +0 -1
- package/lib/chunk-LIWSHAZ4.cjs +0 -43
- package/lib/chunk-LIWSHAZ4.cjs.map +0 -1
- package/lib/chunk-LPHKPEHK.cjs +0 -69
- package/lib/chunk-LPHKPEHK.cjs.map +0 -1
- package/lib/chunk-LQ5GKVLT.cjs +0 -163
- package/lib/chunk-LQ5GKVLT.cjs.map +0 -1
- package/lib/chunk-LSWGTCTI.js +0 -59
- package/lib/chunk-LSWGTCTI.js.map +0 -1
- package/lib/chunk-LXVXNCLG.cjs +0 -71
- package/lib/chunk-LXVXNCLG.cjs.map +0 -1
- package/lib/chunk-M377L2KC.cjs +0 -59
- package/lib/chunk-M377L2KC.cjs.map +0 -1
- package/lib/chunk-MEN4RRXP.js +0 -41
- package/lib/chunk-MEN4RRXP.js.map +0 -1
- package/lib/chunk-MEZO63WH.js +0 -49
- package/lib/chunk-MEZO63WH.js.map +0 -1
- package/lib/chunk-ML4B3K2M.cjs +0 -126
- package/lib/chunk-ML4B3K2M.cjs.map +0 -1
- package/lib/chunk-NFJG6NQJ.cjs +0 -57
- package/lib/chunk-NFJG6NQJ.cjs.map +0 -1
- package/lib/chunk-NKXOTCMF.js +0 -42
- package/lib/chunk-NKXOTCMF.js.map +0 -1
- package/lib/chunk-NQW3T4PY.js +0 -40
- package/lib/chunk-NQW3T4PY.js.map +0 -1
- package/lib/chunk-NSLBPISG.cjs +0 -51
- package/lib/chunk-NSLBPISG.cjs.map +0 -1
- package/lib/chunk-NTPA4Q5S.js +0 -40
- package/lib/chunk-NTPA4Q5S.js.map +0 -1
- package/lib/chunk-NW4PT4NA.cjs +0 -75
- package/lib/chunk-NW4PT4NA.cjs.map +0 -1
- package/lib/chunk-NWDZHCQQ.cjs +0 -50
- package/lib/chunk-NWDZHCQQ.cjs.map +0 -1
- package/lib/chunk-O3GDTCML.cjs +0 -101
- package/lib/chunk-O3GDTCML.cjs.map +0 -1
- package/lib/chunk-O5452XSG.js +0 -41
- package/lib/chunk-O5452XSG.js.map +0 -1
- package/lib/chunk-OE4JCN6L.cjs +0 -47
- package/lib/chunk-OE4JCN6L.cjs.map +0 -1
- package/lib/chunk-OESVAYOY.cjs +0 -44
- package/lib/chunk-OESVAYOY.cjs.map +0 -1
- package/lib/chunk-OFXYCDYF.js +0 -44
- package/lib/chunk-OFXYCDYF.js.map +0 -1
- package/lib/chunk-ONK4A4VG.js +0 -49
- package/lib/chunk-ONK4A4VG.js.map +0 -1
- package/lib/chunk-OOJKRV4I.js +0 -93
- package/lib/chunk-OOJKRV4I.js.map +0 -1
- package/lib/chunk-OXGE4UIS.cjs +0 -51
- package/lib/chunk-OXGE4UIS.cjs.map +0 -1
- package/lib/chunk-P2SHNYXZ.cjs +0 -47
- package/lib/chunk-P2SHNYXZ.cjs.map +0 -1
- package/lib/chunk-P3SFKEXE.js +0 -37
- package/lib/chunk-P3SFKEXE.js.map +0 -1
- package/lib/chunk-P7TCVHNF.cjs +0 -56
- package/lib/chunk-P7TCVHNF.cjs.map +0 -1
- package/lib/chunk-PE4GN5GN.cjs +0 -39
- package/lib/chunk-PE4GN5GN.cjs.map +0 -1
- package/lib/chunk-PEC5CKS7.cjs +0 -22
- package/lib/chunk-PEC5CKS7.cjs.map +0 -1
- package/lib/chunk-PERRXGB6.js +0 -52
- package/lib/chunk-PERRXGB6.js.map +0 -1
- package/lib/chunk-PHTOGAMR.js +0 -93
- package/lib/chunk-PHTOGAMR.js.map +0 -1
- package/lib/chunk-PIHQS6OG.js +0 -153
- package/lib/chunk-PIHQS6OG.js.map +0 -1
- package/lib/chunk-PKRD2QKS.js +0 -51
- package/lib/chunk-PKRD2QKS.js.map +0 -1
- package/lib/chunk-PLWDHUYW.cjs +0 -95
- package/lib/chunk-PLWDHUYW.cjs.map +0 -1
- package/lib/chunk-PX5VMNOJ.cjs +0 -39
- package/lib/chunk-PX5VMNOJ.cjs.map +0 -1
- package/lib/chunk-PYJG4KKQ.js +0 -49
- package/lib/chunk-PYJG4KKQ.js.map +0 -1
- package/lib/chunk-Q3NXEKVS.cjs +0 -51
- package/lib/chunk-Q3NXEKVS.cjs.map +0 -1
- package/lib/chunk-Q3QW53MA.js +0 -53
- package/lib/chunk-Q3QW53MA.js.map +0 -1
- package/lib/chunk-QIL2RRUJ.cjs +0 -54
- package/lib/chunk-QIL2RRUJ.cjs.map +0 -1
- package/lib/chunk-QQU5KYKX.cjs +0 -33
- package/lib/chunk-QQU5KYKX.cjs.map +0 -1
- package/lib/chunk-QQZRPK6S.js +0 -536
- package/lib/chunk-QQZRPK6S.js.map +0 -1
- package/lib/chunk-QTXR3MOC.cjs +0 -51
- package/lib/chunk-QTXR3MOC.cjs.map +0 -1
- package/lib/chunk-QURTUQAU.cjs +0 -43
- package/lib/chunk-QURTUQAU.cjs.map +0 -1
- package/lib/chunk-QVFORRXP.cjs +0 -51
- package/lib/chunk-QVFORRXP.cjs.map +0 -1
- package/lib/chunk-QWW2P4EV.js +0 -68
- package/lib/chunk-QWW2P4EV.js.map +0 -1
- package/lib/chunk-R5RAVJU6.cjs +0 -53
- package/lib/chunk-R5RAVJU6.cjs.map +0 -1
- package/lib/chunk-R7ZZCZYK.cjs +0 -55
- package/lib/chunk-R7ZZCZYK.cjs.map +0 -1
- package/lib/chunk-REV57I2G.cjs +0 -56
- package/lib/chunk-REV57I2G.cjs.map +0 -1
- package/lib/chunk-RG2NWGVK.cjs +0 -101
- package/lib/chunk-RG2NWGVK.cjs.map +0 -1
- package/lib/chunk-RKP2R57M.js +0 -48
- package/lib/chunk-RKP2R57M.js.map +0 -1
- package/lib/chunk-RLR77QCI.cjs +0 -70
- package/lib/chunk-RLR77QCI.cjs.map +0 -1
- package/lib/chunk-RMNQWTPJ.cjs +0 -54
- package/lib/chunk-RMNQWTPJ.cjs.map +0 -1
- package/lib/chunk-ROXM5D5R.cjs +0 -50
- package/lib/chunk-ROXM5D5R.cjs.map +0 -1
- package/lib/chunk-RQ2EM4Q3.cjs +0 -56
- package/lib/chunk-RQ2EM4Q3.cjs.map +0 -1
- package/lib/chunk-RSLLFTPW.js +0 -49
- package/lib/chunk-RSLLFTPW.js.map +0 -1
- package/lib/chunk-S2BT3STJ.js +0 -32
- package/lib/chunk-S2BT3STJ.js.map +0 -1
- package/lib/chunk-S5DFPL4R.cjs +0 -91
- package/lib/chunk-S5DFPL4R.cjs.map +0 -1
- package/lib/chunk-S7RDGMD4.cjs +0 -55
- package/lib/chunk-S7RDGMD4.cjs.map +0 -1
- package/lib/chunk-SEHGRWGG.js +0 -66
- package/lib/chunk-SEHGRWGG.js.map +0 -1
- package/lib/chunk-SFMVCOGC.cjs +0 -47
- package/lib/chunk-SFMVCOGC.cjs.map +0 -1
- package/lib/chunk-SP4HOXSO.js +0 -45
- package/lib/chunk-SP4HOXSO.js.map +0 -1
- package/lib/chunk-TDLRTDXU.cjs +0 -89
- package/lib/chunk-TDLRTDXU.cjs.map +0 -1
- package/lib/chunk-TFCFXW7O.cjs +0 -101
- package/lib/chunk-TFCFXW7O.cjs.map +0 -1
- package/lib/chunk-TGFLFIXT.cjs +0 -47
- package/lib/chunk-TGFLFIXT.cjs.map +0 -1
- package/lib/chunk-TKDL7G4N.cjs +0 -53
- package/lib/chunk-TKDL7G4N.cjs.map +0 -1
- package/lib/chunk-TKZJTEON.cjs +0 -57
- package/lib/chunk-TKZJTEON.cjs.map +0 -1
- package/lib/chunk-TLYGE3RY.cjs +0 -38
- package/lib/chunk-TLYGE3RY.cjs.map +0 -1
- package/lib/chunk-TORNEVKC.js +0 -32
- package/lib/chunk-TORNEVKC.js.map +0 -1
- package/lib/chunk-TTE2YUFU.js +0 -54
- package/lib/chunk-TTE2YUFU.js.map +0 -1
- package/lib/chunk-TUANHZ5V.cjs +0 -56
- package/lib/chunk-TUANHZ5V.cjs.map +0 -1
- package/lib/chunk-TXH5CJLS.cjs +0 -49
- package/lib/chunk-TXH5CJLS.cjs.map +0 -1
- package/lib/chunk-TZ3RWTTE.cjs +0 -51
- package/lib/chunk-TZ3RWTTE.cjs.map +0 -1
- package/lib/chunk-UAYQ3LTT.cjs +0 -43
- package/lib/chunk-UAYQ3LTT.cjs.map +0 -1
- package/lib/chunk-UP7FMESP.js +0 -55
- package/lib/chunk-UP7FMESP.js.map +0 -1
- package/lib/chunk-UQQTNQX3.cjs +0 -153
- package/lib/chunk-UQQTNQX3.cjs.map +0 -1
- package/lib/chunk-URD6KUKM.js +0 -49
- package/lib/chunk-URD6KUKM.js.map +0 -1
- package/lib/chunk-USIBTSYD.js +0 -276
- package/lib/chunk-USIBTSYD.js.map +0 -1
- package/lib/chunk-V5S4O57M.js +0 -45
- package/lib/chunk-V5S4O57M.js.map +0 -1
- package/lib/chunk-VAZIDWSC.js +0 -87
- package/lib/chunk-VAZIDWSC.js.map +0 -1
- package/lib/chunk-VEPFANF7.js +0 -53
- package/lib/chunk-VEPFANF7.js.map +0 -1
- package/lib/chunk-VII4ZVM7.cjs +0 -42
- package/lib/chunk-VII4ZVM7.cjs.map +0 -1
- package/lib/chunk-VMKHXGVC.js +0 -73
- package/lib/chunk-VMKHXGVC.js.map +0 -1
- package/lib/chunk-VODDUQ3X.js +0 -49
- package/lib/chunk-VODDUQ3X.js.map +0 -1
- package/lib/chunk-VVY3GX6X.cjs +0 -56
- package/lib/chunk-VVY3GX6X.cjs.map +0 -1
- package/lib/chunk-WCZEGCEC.js +0 -37
- package/lib/chunk-WCZEGCEC.js.map +0 -1
- package/lib/chunk-WHLOYOJC.cjs +0 -107
- package/lib/chunk-WHLOYOJC.cjs.map +0 -1
- package/lib/chunk-WOZH2ZEF.js +0 -51
- package/lib/chunk-WOZH2ZEF.js.map +0 -1
- package/lib/chunk-WQICC32S.js +0 -59
- package/lib/chunk-WQICC32S.js.map +0 -1
- package/lib/chunk-WQLPOO4N.js +0 -45
- package/lib/chunk-WQLPOO4N.js.map +0 -1
- package/lib/chunk-WQOB2KER.js +0 -37
- package/lib/chunk-WQOB2KER.js.map +0 -1
- package/lib/chunk-WQSPNJNP.cjs +0 -63
- package/lib/chunk-WQSPNJNP.cjs.map +0 -1
- package/lib/chunk-WUI2XWKI.cjs +0 -47
- package/lib/chunk-WUI2XWKI.cjs.map +0 -1
- package/lib/chunk-WW7C4RZJ.js +0 -59
- package/lib/chunk-WW7C4RZJ.js.map +0 -1
- package/lib/chunk-WYUB5WZL.js +0 -98
- package/lib/chunk-WYUB5WZL.js.map +0 -1
- package/lib/chunk-WZV2V6IT.cjs +0 -39
- package/lib/chunk-WZV2V6IT.cjs.map +0 -1
- package/lib/chunk-X5V7ZUU7.js +0 -49
- package/lib/chunk-X5V7ZUU7.js.map +0 -1
- package/lib/chunk-X6RCAGFS.cjs +0 -67
- package/lib/chunk-X6RCAGFS.cjs.map +0 -1
- package/lib/chunk-XBXDURPZ.js +0 -93
- package/lib/chunk-XBXDURPZ.js.map +0 -1
- package/lib/chunk-XEAHROOE.cjs +0 -95
- package/lib/chunk-XEAHROOE.cjs.map +0 -1
- package/lib/chunk-XEPHQGPG.cjs +0 -57
- package/lib/chunk-XEPHQGPG.cjs.map +0 -1
- package/lib/chunk-XI6YNNGF.js +0 -52
- package/lib/chunk-XI6YNNGF.js.map +0 -1
- package/lib/chunk-XJ5QSB4X.js +0 -45
- package/lib/chunk-XJ5QSB4X.js.map +0 -1
- package/lib/chunk-XJHXJ2X2.js +0 -47
- package/lib/chunk-XJHXJ2X2.js.map +0 -1
- package/lib/chunk-XJP7O6DK.cjs +0 -53
- package/lib/chunk-XJP7O6DK.cjs.map +0 -1
- package/lib/chunk-XJUQEJMI.js +0 -40
- package/lib/chunk-XJUQEJMI.js.map +0 -1
- package/lib/chunk-XMRYT2R6.cjs +0 -29
- package/lib/chunk-XMRYT2R6.cjs.map +0 -1
- package/lib/chunk-XMWIRROB.cjs +0 -43
- package/lib/chunk-XMWIRROB.cjs.map +0 -1
- package/lib/chunk-XP4BWHD3.cjs +0 -47
- package/lib/chunk-XP4BWHD3.cjs.map +0 -1
- package/lib/chunk-XVLKPTNO.cjs +0 -68
- package/lib/chunk-XVLKPTNO.cjs.map +0 -1
- package/lib/chunk-XZB5NHLE.cjs +0 -42
- package/lib/chunk-XZB5NHLE.cjs.map +0 -1
- package/lib/chunk-Y56DKJ4Z.cjs +0 -284
- package/lib/chunk-Y56DKJ4Z.cjs.map +0 -1
- package/lib/chunk-Y5HM4EFJ.js +0 -54
- package/lib/chunk-Y5HM4EFJ.js.map +0 -1
- package/lib/chunk-Y7NYGZPZ.cjs +0 -95
- package/lib/chunk-Y7NYGZPZ.cjs.map +0 -1
- package/lib/chunk-Y7W5KVDM.cjs +0 -105
- package/lib/chunk-Y7W5KVDM.cjs.map +0 -1
- package/lib/chunk-YADXOWEP.cjs +0 -51
- package/lib/chunk-YADXOWEP.cjs.map +0 -1
- package/lib/chunk-YAVBHKRL.js +0 -49
- package/lib/chunk-YAVBHKRL.js.map +0 -1
- package/lib/chunk-YBHKXAWG.js +0 -66
- package/lib/chunk-YBHKXAWG.js.map +0 -1
- package/lib/chunk-YEFSXXFU.cjs +0 -52
- package/lib/chunk-YEFSXXFU.cjs.map +0 -1
- package/lib/chunk-YJ5ZKAK5.cjs +0 -42
- package/lib/chunk-YJ5ZKAK5.cjs.map +0 -1
- package/lib/chunk-YJTJJDRF.cjs +0 -46
- package/lib/chunk-YJTJJDRF.cjs.map +0 -1
- package/lib/chunk-YNVTCQEO.js +0 -54
- package/lib/chunk-YNVTCQEO.js.map +0 -1
- package/lib/chunk-YQNDMEVM.cjs +0 -50
- package/lib/chunk-YQNDMEVM.cjs.map +0 -1
- package/lib/chunk-YW5OSIBL.cjs +0 -30
- package/lib/chunk-YW5OSIBL.cjs.map +0 -1
- package/lib/chunk-YYJATDDO.js +0 -47
- package/lib/chunk-YYJATDDO.js.map +0 -1
- package/lib/chunk-Z22N4HZK.cjs +0 -47
- package/lib/chunk-Z22N4HZK.cjs.map +0 -1
- package/lib/chunk-Z4LKTHPE.js +0 -20
- package/lib/chunk-Z4LKTHPE.js.map +0 -1
- package/lib/chunk-ZADQ5IPG.js +0 -59
- package/lib/chunk-ZADQ5IPG.js.map +0 -1
- package/lib/chunk-ZAFMNQT3.cjs +0 -75
- package/lib/chunk-ZAFMNQT3.cjs.map +0 -1
- package/lib/chunk-ZCPDCC6N.js +0 -40
- package/lib/chunk-ZCPDCC6N.js.map +0 -1
- package/lib/chunk-ZFKOVGKA.js +0 -73
- package/lib/chunk-ZFKOVGKA.js.map +0 -1
- package/lib/chunk-ZGM7TVRO.cjs +0 -51
- package/lib/chunk-ZGM7TVRO.cjs.map +0 -1
- package/lib/chunk-ZJGCKI5T.cjs +0 -47
- package/lib/chunk-ZJGCKI5T.cjs.map +0 -1
- package/lib/chunk-ZK6DZMC3.cjs +0 -47
- package/lib/chunk-ZK6DZMC3.cjs.map +0 -1
- package/lib/chunk-ZZ6FBYJX.cjs +0 -39
- package/lib/chunk-ZZ6FBYJX.cjs.map +0 -1
- package/lib/fetch-B8-kP4X0.d.cts +0 -55
- package/lib/fetch-B8-kP4X0.d.ts +0 -55
package/lib/chunk-NW4PT4NA.cjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/prices.ts
|
|
6
|
-
var Prices = class _Prices extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "prices";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _Prices.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _Prices.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Prices.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async price_list(priceId, params, options) {
|
|
18
|
-
const _priceId = priceId.id || priceId;
|
|
19
|
-
return this.resources.fetch({ type: "price_lists" }, `prices/${_priceId}/price_list`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async sku(priceId, params, options) {
|
|
22
|
-
const _priceId = priceId.id || priceId;
|
|
23
|
-
return this.resources.fetch({ type: "skus" }, `prices/${_priceId}/sku`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async price_tiers(priceId, params, options) {
|
|
26
|
-
const _priceId = priceId.id || priceId;
|
|
27
|
-
return this.resources.fetch({ type: "price_tiers" }, `prices/${_priceId}/price_tiers`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async price_volume_tiers(priceId, params, options) {
|
|
30
|
-
const _priceId = priceId.id || priceId;
|
|
31
|
-
return this.resources.fetch({ type: "price_volume_tiers" }, `prices/${_priceId}/price_volume_tiers`, params, options);
|
|
32
|
-
}
|
|
33
|
-
async price_frequency_tiers(priceId, params, options) {
|
|
34
|
-
const _priceId = priceId.id || priceId;
|
|
35
|
-
return this.resources.fetch({ type: "price_frequency_tiers" }, `prices/${_priceId}/price_frequency_tiers`, params, options);
|
|
36
|
-
}
|
|
37
|
-
async attachments(priceId, params, options) {
|
|
38
|
-
const _priceId = priceId.id || priceId;
|
|
39
|
-
return this.resources.fetch({ type: "attachments" }, `prices/${_priceId}/attachments`, params, options);
|
|
40
|
-
}
|
|
41
|
-
async jwt_customer(priceId, params, options) {
|
|
42
|
-
const _priceId = priceId.id || priceId;
|
|
43
|
-
return this.resources.fetch({ type: "customers" }, `prices/${_priceId}/jwt_customer`, params, options);
|
|
44
|
-
}
|
|
45
|
-
async jwt_markets(priceId, params, options) {
|
|
46
|
-
const _priceId = priceId.id || priceId;
|
|
47
|
-
return this.resources.fetch({ type: "markets" }, `prices/${_priceId}/jwt_markets`, params, options);
|
|
48
|
-
}
|
|
49
|
-
async jwt_stock_locations(priceId, params, options) {
|
|
50
|
-
const _priceId = priceId.id || priceId;
|
|
51
|
-
return this.resources.fetch({ type: "stock_locations" }, `prices/${_priceId}/jwt_stock_locations`, params, options);
|
|
52
|
-
}
|
|
53
|
-
async event_stores(priceId, params, options) {
|
|
54
|
-
const _priceId = priceId.id || priceId;
|
|
55
|
-
return this.resources.fetch({ type: "event_stores" }, `prices/${_priceId}/event_stores`, params, options);
|
|
56
|
-
}
|
|
57
|
-
isPrice(resource) {
|
|
58
|
-
return resource.type && resource.type === _Prices.TYPE;
|
|
59
|
-
}
|
|
60
|
-
relationship(id) {
|
|
61
|
-
return super.relationshipOneToOne(id);
|
|
62
|
-
}
|
|
63
|
-
relationshipToMany(...ids) {
|
|
64
|
-
return super.relationshipOneToMany(...ids);
|
|
65
|
-
}
|
|
66
|
-
type() {
|
|
67
|
-
return _Prices.TYPE;
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
var instance = new Prices();
|
|
71
|
-
var prices_default = instance;
|
|
72
|
-
|
|
73
|
-
exports.prices_default = prices_default;
|
|
74
|
-
//# sourceMappingURL=chunk-NW4PT4NA.cjs.map
|
|
75
|
-
//# sourceMappingURL=chunk-NW4PT4NA.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/prices.ts"],"names":["ApiResource"],"mappings":";;;;;AAyLA,IAAM,MAAA,GAAN,MAAM,OAAA,SAAeA,6BAAA,CAAmB;AAAA,EAEvC,OAAgB,IAAA,GAAkB,QAAA;AAAA,EAElC,MAAM,MAAA,CAAO,QAAA,EAAuB,MAAA,EAAqC,OAAA,EAA2C;AACnH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,OAAA,CAAO,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAuB,MAAA,EAAqC,OAAA,EAA2C;AACnH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,OAAA,CAAO,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrG;AAAA,EAEA,MAAM,M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EACf;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,MAAA,EAAO;AAC5B,IAAO,cAAA,GAAQ","file":"chunk-NW4PT4NA.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 { Customer } from './customers'\nimport type { EventStore } from './event_stores'\nimport type { Market } from './markets'\nimport type { PriceFrequencyTier } from './price_frequency_tiers'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { PriceTier, PriceTierType } from './price_tiers'\nimport type { PriceVolumeTier } from './price_volume_tiers'\nimport type { Sku, SkuType } from './skus'\nimport type { StockLocation } from './stock_locations'\n\n\ntype PriceType = 'prices'\ntype PriceRel = ResourceRel & { type: PriceType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype PriceTierRel = ResourceRel & { type: PriceTierType }\n\n\nexport type PriceSort = Pick<Price, 'id' | 'amount_cents' | 'compare_at_amount_cents'> & ResourceSort\n// export type PriceFilter = Pick<Price, 'id' | 'amount_cents' | 'compare_at_amount_cents' | 'rules'> & ResourceFilter\n\n\ninterface Price extends Resource {\n\t\n\treadonly type: PriceType\n\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated price list.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The code of the associated SKU. When creating a price, either a valid sku_code or a SKU relationship must be present.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU price amount for the associated price list, in cents.\n\t * @example ```10000```\n\t */\n\tamount_cents: number\n\t/** \n\t * The SKU price amount for the associated price list, float.\n\t * @example ```100```\n\t */\n\tamount_float?: number | null\n\t/** \n\t * The SKU price amount for the associated price list, formatted.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_amount?: string | null\n\t/** \n\t * The SKU price amount for the associated price list, in cents before any applied rule.\n\t * @example ```10000```\n\t */\n\toriginal_amount_cents?: number | null\n\t/** \n\t * The SKU price amount for the associated price list, in cents before any applied rule, formatted.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_original_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 rule outcomes.\n\t * @example ```[]```\n\t */\n\trule_outcomes?: Record<string, any> | null\n\t/** \n\t * Time at which the resource was processed by API.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tprocessed_at?: string | null\n\t/** \n\t * The rules (using Rules Engine) to be applied.\n\t * @example ```{}```\n\t */\n\trules?: Record<string, any> | null\n\t/** \n\t * The payload used to evaluate the rules.\n\t * @example ```{}```\n\t */\n\tresource_payload?: Record<string, any> | null\n\t/** \n\t * The custom_claim attached to the current JWT (if any).\n\t * @example ```{}```\n\t */\n\tjwt_custom_claim?: Record<string, any> | null\n\n\tprice_list?: PriceList | null\n\tsku?: Sku | null\n\tprice_tiers?: PriceTier[] | null\n\tprice_volume_tiers?: PriceVolumeTier[] | null\n\tprice_frequency_tiers?: PriceFrequencyTier[] | null\n\tattachments?: Attachment[] | null\n\tjwt_customer?: Customer | null\n\tjwt_markets?: Market[] | null\n\tjwt_stock_locations?: StockLocation[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface PriceCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU. When creating a price, either a valid sku_code or a SKU relationship must be present.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU price amount for the associated price list, in cents.\n\t * @example ```10000```\n\t */\n\tamount_cents: number\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 rules (using Rules Engine) to be applied.\n\t * @example ```{}```\n\t */\n\trules?: Record<string, any> | null\n\n\tprice_list: PriceListRel\n\tsku: SkuRel\n\tprice_tiers?: PriceTierRel[] | null\n\n}\n\n\ninterface PriceUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU. When creating a price, either a valid sku_code or a SKU relationship must be present.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The SKU price amount for the associated price list, in cents.\n\t * @example ```10000```\n\t */\n\tamount_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 * Time at which the resource was processed by API.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tprocessed_at?: string | null\n\t/** \n\t * The rules (using Rules Engine) to be applied.\n\t * @example ```{}```\n\t */\n\trules?: Record<string, any> | null\n\n\tprice_list?: PriceListRel | null\n\tsku?: SkuRel | null\n\tprice_tiers?: PriceTierRel[] | null\n\n}\n\n\nclass Prices extends ApiResource<Price> {\n\n\tstatic readonly TYPE: PriceType = 'prices' as const\n\n\tasync create(resource: PriceCreate, params?: QueryParamsRetrieve<Price>, options?: ResourcesConfig): Promise<Price> {\n\t\treturn this.resources.create<PriceCreate, Price>({ ...resource, type: Prices.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceUpdate, params?: QueryParamsRetrieve<Price>, options?: ResourcesConfig): Promise<Price> {\n\t\treturn this.resources.update<PriceUpdate, Price>({ ...resource, type: Prices.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: Prices.TYPE } : id, options)\n\t}\n\n\tasync price_list(priceId: string | Price, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `prices/${_priceId}/price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync sku(priceId: string | Price, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `prices/${_priceId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync price_tiers(priceId: string | Price, params?: QueryParamsList<PriceTier>, options?: ResourcesConfig): Promise<ListResponse<PriceTier>> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<PriceTier>({ type: 'price_tiers' }, `prices/${_priceId}/price_tiers`, params, options) as unknown as ListResponse<PriceTier>\n\t}\n\n\tasync price_volume_tiers(priceId: string | Price, params?: QueryParamsList<PriceVolumeTier>, options?: ResourcesConfig): Promise<ListResponse<PriceVolumeTier>> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<PriceVolumeTier>({ type: 'price_volume_tiers' }, `prices/${_priceId}/price_volume_tiers`, params, options) as unknown as ListResponse<PriceVolumeTier>\n\t}\n\n\tasync price_frequency_tiers(priceId: string | Price, params?: QueryParamsList<PriceFrequencyTier>, options?: ResourcesConfig): Promise<ListResponse<PriceFrequencyTier>> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<PriceFrequencyTier>({ type: 'price_frequency_tiers' }, `prices/${_priceId}/price_frequency_tiers`, params, options) as unknown as ListResponse<PriceFrequencyTier>\n\t}\n\n\tasync attachments(priceId: string | Price, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `prices/${_priceId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync jwt_customer(priceId: string | Price, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `prices/${_priceId}/jwt_customer`, params, options) as unknown as Customer\n\t}\n\n\tasync jwt_markets(priceId: string | Price, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `prices/${_priceId}/jwt_markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync jwt_stock_locations(priceId: string | Price, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `prices/${_priceId}/jwt_stock_locations`, params, options) as unknown as ListResponse<StockLocation>\n\t}\n\n\tasync event_stores(priceId: string | Price, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _priceId = (priceId as Price).id || priceId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `prices/${_priceId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPrice(resource: any): resource is Price {\n\t\treturn resource.type && (resource.type === Prices.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceRel {\n\t\treturn super.relationshipOneToOne<PriceRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceRel[] {\n\t\treturn super.relationshipOneToMany<PriceRel>(...ids)\n\t}\n\n\n\ttype(): PriceType {\n\t\treturn Prices.TYPE\n\t}\n\n}\n\n\nconst instance = new Prices()\nexport default instance\n\nexport type { Price, PriceCreate, Prices, PriceType, PriceUpdate }\n"]}
|
package/lib/chunk-NWDZHCQQ.cjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/customer_password_resets.ts
|
|
6
|
-
var CustomerPasswordResets = class _CustomerPasswordResets extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "customer_password_resets";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _CustomerPasswordResets.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _CustomerPasswordResets.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _CustomerPasswordResets.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async customer(customerPasswordResetId, params, options) {
|
|
18
|
-
const _customerPasswordResetId = customerPasswordResetId.id || customerPasswordResetId;
|
|
19
|
-
return this.resources.fetch({ type: "customers" }, `customer_password_resets/${_customerPasswordResetId}/customer`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async events(customerPasswordResetId, params, options) {
|
|
22
|
-
const _customerPasswordResetId = customerPasswordResetId.id || customerPasswordResetId;
|
|
23
|
-
return this.resources.fetch({ type: "events" }, `customer_password_resets/${_customerPasswordResetId}/events`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async event_stores(customerPasswordResetId, params, options) {
|
|
26
|
-
const _customerPasswordResetId = customerPasswordResetId.id || customerPasswordResetId;
|
|
27
|
-
return this.resources.fetch({ type: "event_stores" }, `customer_password_resets/${_customerPasswordResetId}/event_stores`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async _reset_password_token(id, triggerValue, params, options) {
|
|
30
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _CustomerPasswordResets.TYPE, _reset_password_token: triggerValue }, params, options);
|
|
31
|
-
}
|
|
32
|
-
isCustomerPasswordReset(resource) {
|
|
33
|
-
return resource.type && resource.type === _CustomerPasswordResets.TYPE;
|
|
34
|
-
}
|
|
35
|
-
relationship(id) {
|
|
36
|
-
return super.relationshipOneToOne(id);
|
|
37
|
-
}
|
|
38
|
-
relationshipToMany(...ids) {
|
|
39
|
-
return super.relationshipOneToMany(...ids);
|
|
40
|
-
}
|
|
41
|
-
type() {
|
|
42
|
-
return _CustomerPasswordResets.TYPE;
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
var instance = new CustomerPasswordResets();
|
|
46
|
-
var customer_password_resets_default = instance;
|
|
47
|
-
|
|
48
|
-
exports.customer_password_resets_default = customer_password_resets_default;
|
|
49
|
-
//# sourceMappingURL=chunk-NWDZHCQQ.cjs.map
|
|
50
|
-
//# sourceMappingURL=chunk-NWDZHCQQ.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/customer_password_resets.ts"],"names":["ApiResource"],"mappings":";;;;;AAuEA,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,S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AAA,EAA4B,wBAAwB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvJ;AAAA,EAEA,MAAM,qBAAA,CAAsB,EAAA,EAAoC,YAAA,EAAsB,QAAqD,OAAA,EAA2D;AACrM,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,uBAAA,CAAuB,IAAA,EAAM,uBAAuB,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtN;AAAA,EAGA,wBAAwB,QAAA,EAAkD;AACzE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAGA,aAAa,EAAA,EAA0D;AACtE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAGA,IAAA,GAAkC;AACjC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-NWDZHCQQ.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'\n\nimport type { Customer } from './customers'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype CustomerPasswordResetType = 'customer_password_resets'\ntype CustomerPasswordResetRel = ResourceRel & { type: CustomerPasswordResetType }\n\n\nexport type CustomerPasswordResetSort = Pick<CustomerPasswordReset, 'id'> & ResourceSort\n// export type CustomerPasswordResetFilter = Pick<CustomerPasswordReset, 'id' | 'reset_password_token' | 'reset_password_at'> & ResourceFilter\n\n\ninterface CustomerPasswordReset extends Resource {\n\t\n\treadonly type: CustomerPasswordResetType\n\n\t/** \n\t * The email of the customer that requires a password reset.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email: string\n\t/** \n\t * Automatically generated on create. Send its value as the '_reset_password_token' argument when updating the customer password.\n\t * @example ```\"xhFfkmfybsLxzaAP6xcs\"```\n\t */\n\treset_password_token?: string | null\n\t/** \n\t * Time at which the password was reset.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\treset_password_at?: string | null\n\n\tcustomer?: Customer | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CustomerPasswordResetCreate extends ResourceCreate {\n\t\n\t/** \n\t * The email of the customer that requires a password reset.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email: string\n\t\n}\n\n\ninterface CustomerPasswordResetUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The customer new password. This will be accepted only if a valid '_reset_password_token' is sent with the request.\n\t * @example ```\"secret\"```\n\t */\n\tcustomer_password?: string | null\n\t/** \n\t * Send the 'reset_password_token' that you got on create when updating the customer password.\n\t * @example ```\"xhFfkmfybsLxzaAP6xcs\"```\n\t */\n\t_reset_password_token?: string | null\n\t\n}\n\n\nclass CustomerPasswordResets extends ApiResource<CustomerPasswordReset> {\n\n\tstatic readonly TYPE: CustomerPasswordResetType = 'customer_password_resets' as const\n\n\tasync create(resource: CustomerPasswordResetCreate, params?: QueryParamsRetrieve<CustomerPasswordReset>, options?: ResourcesConfig): Promise<CustomerPasswordReset> {\n\t\treturn this.resources.create<CustomerPasswordResetCreate, CustomerPasswordReset>({ ...resource, type: CustomerPasswordResets.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CustomerPasswordResetUpdate, params?: QueryParamsRetrieve<CustomerPasswordReset>, options?: ResourcesConfig): Promise<CustomerPasswordReset> {\n\t\treturn this.resources.update<CustomerPasswordResetUpdate, CustomerPasswordReset>({ ...resource, type: CustomerPasswordResets.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: CustomerPasswordResets.TYPE } : id, options)\n\t}\n\n\tasync customer(customerPasswordResetId: string | CustomerPasswordReset, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _customerPasswordResetId = (customerPasswordResetId as CustomerPasswordReset).id || customerPasswordResetId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `customer_password_resets/${_customerPasswordResetId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync events(customerPasswordResetId: string | CustomerPasswordReset, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _customerPasswordResetId = (customerPasswordResetId as CustomerPasswordReset).id || customerPasswordResetId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `customer_password_resets/${_customerPasswordResetId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(customerPasswordResetId: string | CustomerPasswordReset, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _customerPasswordResetId = (customerPasswordResetId as CustomerPasswordReset).id || customerPasswordResetId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `customer_password_resets/${_customerPasswordResetId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _reset_password_token(id: string | CustomerPasswordReset, triggerValue: string, params?: QueryParamsRetrieve<CustomerPasswordReset>, options?: ResourcesConfig): Promise<CustomerPasswordReset> {\n\t\treturn this.resources.update<CustomerPasswordResetUpdate, CustomerPasswordReset>({ id: (typeof id === 'string')? id: id.id, type: CustomerPasswordResets.TYPE, _reset_password_token: triggerValue }, params, options)\n\t}\n\n\n\tisCustomerPasswordReset(resource: any): resource is CustomerPasswordReset {\n\t\treturn resource.type && (resource.type === CustomerPasswordResets.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CustomerPasswordResetRel {\n\t\treturn super.relationshipOneToOne<CustomerPasswordResetRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CustomerPasswordResetRel[] {\n\t\treturn super.relationshipOneToMany<CustomerPasswordResetRel>(...ids)\n\t}\n\n\n\ttype(): CustomerPasswordResetType {\n\t\treturn CustomerPasswordResets.TYPE\n\t}\n\n}\n\n\nconst instance = new CustomerPasswordResets()\nexport default instance\n\nexport type { CustomerPasswordReset, CustomerPasswordResetCreate, CustomerPasswordResets, CustomerPasswordResetType, CustomerPasswordResetUpdate }\n"]}
|
package/lib/chunk-O3GDTCML.cjs
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/external_promotions.ts
|
|
6
|
-
var ExternalPromotions = class _ExternalPromotions extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "external_promotions";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPromotions.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async market(externalPromotionId, params, options) {
|
|
18
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
19
|
-
return this.resources.fetch({ type: "markets" }, `external_promotions/${_externalPromotionId}/market`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async order_amount_promotion_rule(externalPromotionId, params, options) {
|
|
22
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
23
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async sku_list_promotion_rule(externalPromotionId, params, options) {
|
|
26
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
27
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async coupon_codes_promotion_rule(externalPromotionId, params, options) {
|
|
30
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
31
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
32
|
-
}
|
|
33
|
-
async custom_promotion_rule(externalPromotionId, params, options) {
|
|
34
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
35
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options);
|
|
36
|
-
}
|
|
37
|
-
async sku_list(externalPromotionId, params, options) {
|
|
38
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
39
|
-
return this.resources.fetch({ type: "sku_lists" }, `external_promotions/${_externalPromotionId}/sku_list`, params, options);
|
|
40
|
-
}
|
|
41
|
-
async coupons(externalPromotionId, params, options) {
|
|
42
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
43
|
-
return this.resources.fetch({ type: "coupons" }, `external_promotions/${_externalPromotionId}/coupons`, params, options);
|
|
44
|
-
}
|
|
45
|
-
async attachments(externalPromotionId, params, options) {
|
|
46
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
47
|
-
return this.resources.fetch({ type: "attachments" }, `external_promotions/${_externalPromotionId}/attachments`, params, options);
|
|
48
|
-
}
|
|
49
|
-
async events(externalPromotionId, params, options) {
|
|
50
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
51
|
-
return this.resources.fetch({ type: "events" }, `external_promotions/${_externalPromotionId}/events`, params, options);
|
|
52
|
-
}
|
|
53
|
-
async tags(externalPromotionId, params, options) {
|
|
54
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
55
|
-
return this.resources.fetch({ type: "tags" }, `external_promotions/${_externalPromotionId}/tags`, params, options);
|
|
56
|
-
}
|
|
57
|
-
async event_stores(externalPromotionId, params, options) {
|
|
58
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
59
|
-
return this.resources.fetch({ type: "event_stores" }, `external_promotions/${_externalPromotionId}/event_stores`, params, options);
|
|
60
|
-
}
|
|
61
|
-
async skus(externalPromotionId, params, options) {
|
|
62
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
63
|
-
return this.resources.fetch({ type: "skus" }, `external_promotions/${_externalPromotionId}/skus`, params, options);
|
|
64
|
-
}
|
|
65
|
-
async _disable(id, params, options) {
|
|
66
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _disable: true }, params, options);
|
|
67
|
-
}
|
|
68
|
-
async _enable(id, params, options) {
|
|
69
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _enable: true }, params, options);
|
|
70
|
-
}
|
|
71
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
72
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
73
|
-
}
|
|
74
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
75
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
76
|
-
}
|
|
77
|
-
async _reset_circuit(id, params, options) {
|
|
78
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _reset_circuit: true }, params, options);
|
|
79
|
-
}
|
|
80
|
-
async _regenerate_shared_secret(id, params, options) {
|
|
81
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _regenerate_shared_secret: true }, params, options);
|
|
82
|
-
}
|
|
83
|
-
isExternalPromotion(resource) {
|
|
84
|
-
return resource.type && resource.type === _ExternalPromotions.TYPE;
|
|
85
|
-
}
|
|
86
|
-
relationship(id) {
|
|
87
|
-
return super.relationshipOneToOne(id);
|
|
88
|
-
}
|
|
89
|
-
relationshipToMany(...ids) {
|
|
90
|
-
return super.relationshipOneToMany(...ids);
|
|
91
|
-
}
|
|
92
|
-
type() {
|
|
93
|
-
return _ExternalPromotions.TYPE;
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var instance = new ExternalPromotions();
|
|
97
|
-
var external_promotions_default = instance;
|
|
98
|
-
|
|
99
|
-
exports.external_promotions_default = external_promotions_default;
|
|
100
|
-
//# sourceMappingURL=chunk-O3GDTCML.cjs.map
|
|
101
|
-
//# sourceMappingURL=chunk-O3GDTCML.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/external_promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AAiTA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2BA,6BAAA,CAA+B;AAAA,EAE/D,OAAgB,IAAA,GAA8B,qBAAA;AAAA,EAE9C,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OAAA,EAAuD;AACvJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzI;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,EAGA,aAAa,EAAA,EAAsD;AAClE,IAAA,OAAO,KAAA,CAAM,qBAA2C,EAAE,CAAA;AAAA,EAC3D;AAAA,EAEA,sBAAsB,GAAA,EAAuC;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA4C,GAAG,GAAG,CAAA;AAAA,EAChE;AAAA,EAGA,IAAA,GAA8B;AAC7B,IAAA,OAAO,mBAAA,CAAmB,IAAA;AAAA,EAC3B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,2BAAA,GAAQ","file":"chunk-O3GDTCML.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 { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\n\ntype ExternalPromotionType = 'external_promotions'\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\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 ExternalPromotionSort = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalPromotionFilter = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalPromotion extends Resource {\n\t\n\treadonly type: ExternalPromotionType\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\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\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\tskus?: Sku[] | null\n\n}\n\n\ninterface ExternalPromotionCreate 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\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\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 ExternalPromotionUpdate 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\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * Send this attribute if you want to regenerate the shared secret.\n\t * @example ```true```\n\t */\n\t_regenerate_shared_secret?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url?: 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 ExternalPromotions extends ApiResource<ExternalPromotion> {\n\n\tstatic readonly TYPE: ExternalPromotionType = 'external_promotions' as const\n\n\tasync create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.create<ExternalPromotionCreate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ ...resource, type: ExternalPromotions.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: ExternalPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_promotions/${_externalPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `external_promotions/${_externalPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_promotions/${_externalPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_promotions/${_externalPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `external_promotions/${_externalPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_promotions/${_externalPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `external_promotions/${_externalPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _regenerate_shared_secret(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _regenerate_shared_secret: true }, params, options)\n\t}\n\n\n\tisExternalPromotion(resource: any): resource is ExternalPromotion {\n\t\treturn resource.type && (resource.type === ExternalPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalPromotionRel {\n\t\treturn super.relationshipOneToOne<ExternalPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalPromotionRel[] {\n\t\treturn super.relationshipOneToMany<ExternalPromotionRel>(...ids)\n\t}\n\n\n\ttype(): ExternalPromotionType {\n\t\treturn ExternalPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalPromotions()\nexport default instance\n\nexport type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotions, ExternalPromotionType, ExternalPromotionUpdate }\n"]}
|
package/lib/chunk-O5452XSG.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/shipping_zones.ts
|
|
4
|
-
var ShippingZones = class _ShippingZones extends ApiResource {
|
|
5
|
-
static TYPE = "shipping_zones";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _ShippingZones.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _ShippingZones.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _ShippingZones.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async attachments(shippingZoneId, params, options) {
|
|
16
|
-
const _shippingZoneId = shippingZoneId.id || shippingZoneId;
|
|
17
|
-
return this.resources.fetch({ type: "attachments" }, `shipping_zones/${_shippingZoneId}/attachments`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async event_stores(shippingZoneId, params, options) {
|
|
20
|
-
const _shippingZoneId = shippingZoneId.id || shippingZoneId;
|
|
21
|
-
return this.resources.fetch({ type: "event_stores" }, `shipping_zones/${_shippingZoneId}/event_stores`, params, options);
|
|
22
|
-
}
|
|
23
|
-
isShippingZone(resource) {
|
|
24
|
-
return resource.type && resource.type === _ShippingZones.TYPE;
|
|
25
|
-
}
|
|
26
|
-
relationship(id) {
|
|
27
|
-
return super.relationshipOneToOne(id);
|
|
28
|
-
}
|
|
29
|
-
relationshipToMany(...ids) {
|
|
30
|
-
return super.relationshipOneToMany(...ids);
|
|
31
|
-
}
|
|
32
|
-
type() {
|
|
33
|
-
return _ShippingZones.TYPE;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var instance = new ShippingZones();
|
|
37
|
-
var shipping_zones_default = instance;
|
|
38
|
-
|
|
39
|
-
export { shipping_zones_default };
|
|
40
|
-
//# sourceMappingURL=chunk-O5452XSG.js.map
|
|
41
|
-
//# sourceMappingURL=chunk-O5452XSG.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/shipping_zones.ts"],"names":[],"mappings":";;;AAgJA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,WAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;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,EACpI;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-O5452XSG.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 { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\n\n\ntype ShippingZoneType = 'shipping_zones'\ntype ShippingZoneRel = ResourceRel & { type: ShippingZoneType }\n\n\nexport type ShippingZoneSort = Pick<ShippingZone, 'id' | 'name'> & ResourceSort\n// export type ShippingZoneFilter = Pick<ShippingZone, 'id' | 'name'> & ResourceFilter\n\n\ninterface ShippingZone extends Resource {\n\t\n\treadonly type: ShippingZoneType\n\n\t/** \n\t * The shipping zone's internal name.\n\t * @example ```\"Europe (main countries)\"```\n\t */\n\tname: string\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ShippingZoneCreate extends ResourceCreate {\n\t\n\t/** \n\t * The shipping zone's internal name.\n\t * @example ```\"Europe (main countries)\"```\n\t */\n\tname: string\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\t\n}\n\n\ninterface ShippingZoneUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The shipping zone's internal name.\n\t * @example ```\"Europe (main countries)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\t\n}\n\n\nclass ShippingZones extends ApiResource<ShippingZone> {\n\n\tstatic readonly TYPE: ShippingZoneType = 'shipping_zones' as const\n\n\tasync create(resource: ShippingZoneCreate, params?: QueryParamsRetrieve<ShippingZone>, options?: ResourcesConfig): Promise<ShippingZone> {\n\t\treturn this.resources.create<ShippingZoneCreate, ShippingZone>({ ...resource, type: ShippingZones.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ShippingZoneUpdate, params?: QueryParamsRetrieve<ShippingZone>, options?: ResourcesConfig): Promise<ShippingZone> {\n\t\treturn this.resources.update<ShippingZoneUpdate, ShippingZone>({ ...resource, type: ShippingZones.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: ShippingZones.TYPE } : id, options)\n\t}\n\n\tasync attachments(shippingZoneId: string | ShippingZone, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _shippingZoneId = (shippingZoneId as ShippingZone).id || shippingZoneId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `shipping_zones/${_shippingZoneId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(shippingZoneId: string | ShippingZone, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _shippingZoneId = (shippingZoneId as ShippingZone).id || shippingZoneId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `shipping_zones/${_shippingZoneId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisShippingZone(resource: any): resource is ShippingZone {\n\t\treturn resource.type && (resource.type === ShippingZones.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ShippingZoneRel {\n\t\treturn super.relationshipOneToOne<ShippingZoneRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ShippingZoneRel[] {\n\t\treturn super.relationshipOneToMany<ShippingZoneRel>(...ids)\n\t}\n\n\n\ttype(): ShippingZoneType {\n\t\treturn ShippingZones.TYPE\n\t}\n\n}\n\n\nconst instance = new ShippingZones()\nexport default instance\n\nexport type { ShippingZone, ShippingZoneCreate, ShippingZones, ShippingZoneType, ShippingZoneUpdate }\n"]}
|
package/lib/chunk-OE4JCN6L.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/payment_options.ts
|
|
6
|
-
var PaymentOptions = class _PaymentOptions extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "payment_options";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _PaymentOptions.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _PaymentOptions.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PaymentOptions.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async order(paymentOptionId, params, options) {
|
|
18
|
-
const _paymentOptionId = paymentOptionId.id || paymentOptionId;
|
|
19
|
-
return this.resources.fetch({ type: "orders" }, `payment_options/${_paymentOptionId}/order`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async attachments(paymentOptionId, params, options) {
|
|
22
|
-
const _paymentOptionId = paymentOptionId.id || paymentOptionId;
|
|
23
|
-
return this.resources.fetch({ type: "attachments" }, `payment_options/${_paymentOptionId}/attachments`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async event_stores(paymentOptionId, params, options) {
|
|
26
|
-
const _paymentOptionId = paymentOptionId.id || paymentOptionId;
|
|
27
|
-
return this.resources.fetch({ type: "event_stores" }, `payment_options/${_paymentOptionId}/event_stores`, params, options);
|
|
28
|
-
}
|
|
29
|
-
isPaymentOption(resource) {
|
|
30
|
-
return resource.type && resource.type === _PaymentOptions.TYPE;
|
|
31
|
-
}
|
|
32
|
-
relationship(id) {
|
|
33
|
-
return super.relationshipOneToOne(id);
|
|
34
|
-
}
|
|
35
|
-
relationshipToMany(...ids) {
|
|
36
|
-
return super.relationshipOneToMany(...ids);
|
|
37
|
-
}
|
|
38
|
-
type() {
|
|
39
|
-
return _PaymentOptions.TYPE;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var instance = new PaymentOptions();
|
|
43
|
-
var payment_options_default = instance;
|
|
44
|
-
|
|
45
|
-
exports.payment_options_default = payment_options_default;
|
|
46
|
-
//# sourceMappingURL=chunk-OE4JCN6L.cjs.map
|
|
47
|
-
//# sourceMappingURL=chunk-OE4JCN6L.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/payment_options.ts"],"names":["ApiResource"],"mappings":";;;;;AAqFA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;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,eAAA,CAAe,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACtG;AAAA,EAEA,MAAM,KAAA,CAAM,eAAA,EAAyC,MAAA,EAAqC,OAAA,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;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-OE4JCN6L.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 { Order, OrderType } from './orders'\n\n\ntype PaymentOptionType = 'payment_options'\ntype PaymentOptionRel = ResourceRel & { type: PaymentOptionType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type PaymentOptionSort = Pick<PaymentOption, 'id' | 'name' | 'payment_source_type'> & ResourceSort\n// export type PaymentOptionFilter = Pick<PaymentOption, 'id' | 'name' | 'payment_source_type' | 'data'> & ResourceFilter\n\n\ninterface PaymentOption extends Resource {\n\t\n\treadonly type: PaymentOptionType\n\n\t/** \n\t * The payment option's name. Wehn blank is inherited by payment source type.\n\t * @example ```\"Stripe Payment Option\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The payment options data to be added to the payment source payload. Check payment specific API for more details.\n\t * @example ```{\"application_fee_amount\":1000,\"on_behalf_of\":\"pm_xxx\"}```\n\t */\n\tdata: Record<string, any>\n\n\torder?: Order | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface PaymentOptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment option's name. Wehn blank is inherited by payment source type.\n\t * @example ```\"Stripe Payment Option\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment source type. One of 'adyen_payments', 'axerve_payments', 'braintree_payments', 'checkout_com_payments', 'external_payments', 'klarna_payments', 'paypal_payments', 'satispay_payments', 'stripe_payments', or 'wire_transfers'.\n\t * @example ```\"stripe_payments\"```\n\t */\n\tpayment_source_type: 'adyen_payments' | 'axerve_payments' | 'braintree_payments' | 'checkout_com_payments' | 'external_payments' | 'klarna_payments' | 'paypal_payments' | 'satispay_payments' | 'stripe_payments' | 'wire_transfers'\n\t/** \n\t * The payment options data to be added to the payment source payload. Check payment specific API for more details.\n\t * @example ```{\"application_fee_amount\":1000,\"on_behalf_of\":\"pm_xxx\"}```\n\t */\n\tdata: Record<string, any>\n\n\torder: OrderRel\n\n}\n\n\ninterface PaymentOptionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment option's name. Wehn blank is inherited by payment source type.\n\t * @example ```\"Stripe Payment Option\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The payment options data to be added to the payment source payload. Check payment specific API for more details.\n\t * @example ```{\"application_fee_amount\":1000,\"on_behalf_of\":\"pm_xxx\"}```\n\t */\n\tdata?: Record<string, any> | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass PaymentOptions extends ApiResource<PaymentOption> {\n\n\tstatic readonly TYPE: PaymentOptionType = 'payment_options' as const\n\n\tasync create(resource: PaymentOptionCreate, params?: QueryParamsRetrieve<PaymentOption>, options?: ResourcesConfig): Promise<PaymentOption> {\n\t\treturn this.resources.create<PaymentOptionCreate, PaymentOption>({ ...resource, type: PaymentOptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PaymentOptionUpdate, params?: QueryParamsRetrieve<PaymentOption>, options?: ResourcesConfig): Promise<PaymentOption> {\n\t\treturn this.resources.update<PaymentOptionUpdate, PaymentOption>({ ...resource, type: PaymentOptions.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: PaymentOptions.TYPE } : id, options)\n\t}\n\n\tasync order(paymentOptionId: string | PaymentOption, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _paymentOptionId = (paymentOptionId as PaymentOption).id || paymentOptionId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `payment_options/${_paymentOptionId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(paymentOptionId: string | PaymentOption, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _paymentOptionId = (paymentOptionId as PaymentOption).id || paymentOptionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `payment_options/${_paymentOptionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(paymentOptionId: string | PaymentOption, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _paymentOptionId = (paymentOptionId as PaymentOption).id || paymentOptionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `payment_options/${_paymentOptionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPaymentOption(resource: any): resource is PaymentOption {\n\t\treturn resource.type && (resource.type === PaymentOptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentOptionRel {\n\t\treturn super.relationshipOneToOne<PaymentOptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentOptionRel[] {\n\t\treturn super.relationshipOneToMany<PaymentOptionRel>(...ids)\n\t}\n\n\n\ttype(): PaymentOptionType {\n\t\treturn PaymentOptions.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentOptions()\nexport default instance\n\nexport type { PaymentOption, PaymentOptionCreate, PaymentOptions, PaymentOptionType, PaymentOptionUpdate }\n"]}
|
package/lib/chunk-OESVAYOY.cjs
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/events.ts
|
|
6
|
-
var Events = class _Events extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "events";
|
|
8
|
-
async update(resource, params, options) {
|
|
9
|
-
return this.resources.update({ ...resource, type: _Events.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async webhooks(eventId, params, options) {
|
|
12
|
-
const _eventId = eventId.id || eventId;
|
|
13
|
-
return this.resources.fetch({ type: "webhooks" }, `events/${_eventId}/webhooks`, params, options);
|
|
14
|
-
}
|
|
15
|
-
async last_event_callbacks(eventId, params, options) {
|
|
16
|
-
const _eventId = eventId.id || eventId;
|
|
17
|
-
return this.resources.fetch({ type: "event_callbacks" }, `events/${_eventId}/last_event_callbacks`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async event_stores(eventId, params, options) {
|
|
20
|
-
const _eventId = eventId.id || eventId;
|
|
21
|
-
return this.resources.fetch({ type: "event_stores" }, `events/${_eventId}/event_stores`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async _trigger(id, params, options) {
|
|
24
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Events.TYPE, _trigger: true }, params, options);
|
|
25
|
-
}
|
|
26
|
-
isEvent(resource) {
|
|
27
|
-
return resource.type && resource.type === _Events.TYPE;
|
|
28
|
-
}
|
|
29
|
-
relationship(id) {
|
|
30
|
-
return super.relationshipOneToOne(id);
|
|
31
|
-
}
|
|
32
|
-
relationshipToMany(...ids) {
|
|
33
|
-
return super.relationshipOneToMany(...ids);
|
|
34
|
-
}
|
|
35
|
-
type() {
|
|
36
|
-
return _Events.TYPE;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var instance = new Events();
|
|
40
|
-
var events_default = instance;
|
|
41
|
-
|
|
42
|
-
exports.events_default = events_default;
|
|
43
|
-
//# sourceMappingURL=chunk-OESVAYOY.cjs.map
|
|
44
|
-
//# sourceMappingURL=chunk-OESVAYOY.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/events.ts"],"names":["ApiResource"],"mappings":";;;;;AA4CA,IAAM,MAAA,GAAN,MAAM,OAAA,SAAeA,6BAAA,CAAmB;AAAA,EAEvC,OAAgB,IAAA,GAAkB,QAAA;AAAA,EAElC,MAAM,MAAA,CAAO,QAAA,EAAuB,MAAA,EAAqC,OAAA,EAA2C;AACnH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,OAAA,CAAO,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrG;AAAA,EAEA,MAAM,QAAA,CAAS,OAAA,EAAyB,MAAA,EAAmC,OAAA,EAA2D;AACrI,IAAA,MAAM,QAAA,GAAY,QAAkB,EAAA,IAAM,OAAA;AAC1C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,OAAA,EAAU,QAAQ,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1G;AAAA,EAEA,MAAM,oBAAA,CAAqB,OAAA,EAAyB,MAAA,EAAyC,OAAA,EAAiE;AAC7J,IAAA,MAAM,QAAA,GAAY,QAAkB,EAAA,IAAM,OAAA;AAC1C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,OAAA,EAAU,QAAQ,CAAA,qBAAA,CAAA,EAAyB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,YAAA,CAAa,OAAA,EAAyB,MAAA,EAAsC,OAAA,EAA8D;AAC/I,IAAA,MAAM,QAAA,GAAY,QAAkB,EAAA,IAAM,OAAA;AAC1C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,OAAA,EAAU,QAAQ,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrH;AAAA,EAEA,MAAM,QAAA,CAAS,EAAA,EAAoB,MAAA,EAAqC,OAAA,EAA2C;AAClH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,OAAA,CAAO,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACjJ;AAAA,EAGA,QAAQ,QAAA,EAAkC;AACzC,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,OAAA,CAAO,IAAA;AAAA,EACnD;AAAA,EAGA,aAAa,EAAA,EAA0C;AACtD,IAAA,OAAO,KAAA,CAAM,qBAA+B,EAAE,CAAA;AAAA,EAC/C;AAAA,EAEA,sBAAsB,GAAA,EAA2B;AAChD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgC,GAAG,GAAG,CAAA;AAAA,EACpD;AAAA,EAGA,IAAA,GAAkB;AACjB,IAAA,OAAO,OAAA,CAAO,IAAA;AAAA,EACf;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,MAAA,EAAO;AAC5B,IAAO,cAAA,GAAQ","file":"chunk-OESVAYOY.cjs","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 { EventCallback } from './event_callbacks'\nimport type { EventStore } from './event_stores'\nimport type { Webhook } from './webhooks'\n\n\ntype EventType = 'events'\ntype EventRel = ResourceRel & { type: EventType }\n\n\nexport type EventSort = Pick<Event, 'id' | 'name'> & ResourceSort\n// export type EventFilter = Pick<Event, 'id' | 'name'> & ResourceFilter\n\n\ninterface Event extends Resource {\n\t\n\treadonly type: EventType\n\n\t/** \n\t * The event's internal name.\n\t * @example ```\"orders.create\"```\n\t */\n\tname: string\n\n\twebhooks?: Webhook[] | null\n\tlast_event_callbacks?: EventCallback[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface EventUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to force webhooks execution for this event. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_trigger?: boolean | null\n\t\n}\n\n\nclass Events extends ApiResource<Event> {\n\n\tstatic readonly TYPE: EventType = 'events' as const\n\n\tasync update(resource: EventUpdate, params?: QueryParamsRetrieve<Event>, options?: ResourcesConfig): Promise<Event> {\n\t\treturn this.resources.update<EventUpdate, Event>({ ...resource, type: Events.TYPE }, params, options)\n\t}\n\n\tasync webhooks(eventId: string | Event, params?: QueryParamsList<Webhook>, options?: ResourcesConfig): Promise<ListResponse<Webhook>> {\n\t\tconst _eventId = (eventId as Event).id || eventId as string\n\t\treturn this.resources.fetch<Webhook>({ type: 'webhooks' }, `events/${_eventId}/webhooks`, params, options) as unknown as ListResponse<Webhook>\n\t}\n\n\tasync last_event_callbacks(eventId: string | Event, params?: QueryParamsList<EventCallback>, options?: ResourcesConfig): Promise<ListResponse<EventCallback>> {\n\t\tconst _eventId = (eventId as Event).id || eventId as string\n\t\treturn this.resources.fetch<EventCallback>({ type: 'event_callbacks' }, `events/${_eventId}/last_event_callbacks`, params, options) as unknown as ListResponse<EventCallback>\n\t}\n\n\tasync event_stores(eventId: string | Event, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _eventId = (eventId as Event).id || eventId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `events/${_eventId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _trigger(id: string | Event, params?: QueryParamsRetrieve<Event>, options?: ResourcesConfig): Promise<Event> {\n\t\treturn this.resources.update<EventUpdate, Event>({ id: (typeof id === 'string')? id: id.id, type: Events.TYPE, _trigger: true }, params, options)\n\t}\n\n\n\tisEvent(resource: any): resource is Event {\n\t\treturn resource.type && (resource.type === Events.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): EventRel {\n\t\treturn super.relationshipOneToOne<EventRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): EventRel[] {\n\t\treturn super.relationshipOneToMany<EventRel>(...ids)\n\t}\n\n\n\ttype(): EventType {\n\t\treturn Events.TYPE\n\t}\n\n}\n\n\nconst instance = new Events()\nexport default instance\n\nexport type { Event, Events, EventType, EventUpdate }\n"]}
|
package/lib/chunk-OFXYCDYF.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/imports.ts
|
|
4
|
-
var Imports = class _Imports extends ApiResource {
|
|
5
|
-
static TYPE = "imports";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _Imports.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _Imports.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Imports.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async events(importId, params, options) {
|
|
16
|
-
const _importId = importId.id || importId;
|
|
17
|
-
return this.resources.fetch({ type: "events" }, `imports/${_importId}/events`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async event_stores(importId, params, options) {
|
|
20
|
-
const _importId = importId.id || importId;
|
|
21
|
-
return this.resources.fetch({ type: "event_stores" }, `imports/${_importId}/event_stores`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async _interrupt(id, params, options) {
|
|
24
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Imports.TYPE, _interrupt: true }, params, options);
|
|
25
|
-
}
|
|
26
|
-
isImport(resource) {
|
|
27
|
-
return resource.type && resource.type === _Imports.TYPE;
|
|
28
|
-
}
|
|
29
|
-
relationship(id) {
|
|
30
|
-
return super.relationshipOneToOne(id);
|
|
31
|
-
}
|
|
32
|
-
relationshipToMany(...ids) {
|
|
33
|
-
return super.relationshipOneToMany(...ids);
|
|
34
|
-
}
|
|
35
|
-
type() {
|
|
36
|
-
return _Imports.TYPE;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
var instance = new Imports();
|
|
40
|
-
var imports_default = instance;
|
|
41
|
-
|
|
42
|
-
export { imports_default };
|
|
43
|
-
//# sourceMappingURL=chunk-OFXYCDYF.js.map
|
|
44
|
-
//# sourceMappingURL=chunk-OFXYCDYF.js.map
|