@commercelayer/sdk 7.0.0-rc.4 → 7.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.cjs +397 -521
- package/lib/api.cjs.map +1 -1
- package/lib/api.js +141 -131
- package/lib/api.js.map +1 -1
- package/lib/bundle.cjs +276 -155
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.js +276 -135
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-227VGGA2.cjs +47 -0
- package/lib/chunk-227VGGA2.cjs.map +1 -0
- package/lib/chunk-24QWQZWL.cjs +51 -0
- package/lib/chunk-24QWQZWL.cjs.map +1 -0
- package/lib/chunk-267DJ4MS.js +49 -0
- package/lib/chunk-267DJ4MS.js.map +1 -0
- package/lib/chunk-26A7O7WA.cjs +55 -0
- package/lib/chunk-26A7O7WA.cjs.map +1 -0
- package/lib/chunk-27XEREH6.cjs +46 -0
- package/lib/chunk-27XEREH6.cjs.map +1 -0
- package/lib/chunk-2BM2HCOW.js +40 -0
- package/lib/chunk-2BM2HCOW.js.map +1 -0
- package/lib/chunk-2E7PSICR.cjs +47 -0
- package/lib/chunk-2E7PSICR.cjs.map +1 -0
- package/lib/chunk-2RBF6QOC.cjs +53 -0
- package/lib/chunk-2RBF6QOC.cjs.map +1 -0
- package/lib/chunk-2TIOMQ3F.js +27 -0
- package/lib/chunk-2TIOMQ3F.js.map +1 -0
- package/lib/chunk-2VBIYZJ5.cjs +39 -0
- package/lib/chunk-2VBIYZJ5.cjs.map +1 -0
- package/lib/chunk-2YMDVSY6.cjs +95 -0
- package/lib/chunk-2YMDVSY6.cjs.map +1 -0
- package/lib/chunk-32FLT6EU.cjs +42 -0
- package/lib/chunk-32FLT6EU.cjs.map +1 -0
- package/lib/chunk-37S6ZTHC.cjs +38 -0
- package/lib/chunk-37S6ZTHC.cjs.map +1 -0
- package/lib/chunk-3AWJFCM6.js +33 -0
- package/lib/chunk-3AWJFCM6.js.map +1 -0
- package/lib/chunk-3EX76AZW.js +3 -0
- package/lib/chunk-3EX76AZW.js.map +1 -0
- package/lib/chunk-3SJEK6QW.cjs +47 -0
- package/lib/chunk-3SJEK6QW.cjs.map +1 -0
- package/lib/chunk-3XWRLB2B.js +44 -0
- package/lib/chunk-3XWRLB2B.js.map +1 -0
- package/lib/chunk-3XZDDKD7.js +52 -0
- package/lib/chunk-3XZDDKD7.js.map +1 -0
- package/lib/chunk-4E5DMBYD.js +27 -0
- package/lib/chunk-4E5DMBYD.js.map +1 -0
- package/lib/chunk-4FIUTSQX.cjs +50 -0
- package/lib/chunk-4FIUTSQX.cjs.map +1 -0
- package/lib/chunk-4IUCSBQJ.cjs +39 -0
- package/lib/chunk-4IUCSBQJ.cjs.map +1 -0
- package/lib/chunk-4YEJIBQ5.cjs +66 -0
- package/lib/chunk-4YEJIBQ5.cjs.map +1 -0
- package/lib/chunk-4YNKD3VT.cjs +51 -0
- package/lib/chunk-4YNKD3VT.cjs.map +1 -0
- package/lib/chunk-54CK7T4R.cjs +34 -0
- package/lib/chunk-54CK7T4R.cjs.map +1 -0
- package/lib/chunk-5DI3O5RJ.cjs +126 -0
- package/lib/chunk-5DI3O5RJ.cjs.map +1 -0
- package/lib/chunk-5DWYCGHP.cjs +47 -0
- package/lib/chunk-5DWYCGHP.cjs.map +1 -0
- package/lib/chunk-5JUWNHQ5.js +59 -0
- package/lib/chunk-5JUWNHQ5.js.map +1 -0
- package/lib/chunk-5NWRLZGC.js +49 -0
- package/lib/chunk-5NWRLZGC.js.map +1 -0
- package/lib/chunk-5PV4P3JM.js +61 -0
- package/lib/chunk-5PV4P3JM.js.map +1 -0
- package/lib/chunk-5RKGQCKX.js +105 -0
- package/lib/chunk-5RKGQCKX.js.map +1 -0
- package/lib/chunk-5YMHXTJG.cjs +4 -0
- package/lib/chunk-5YMHXTJG.cjs.map +1 -0
- package/lib/chunk-6HZYZZJ7.cjs +110 -0
- package/lib/chunk-6HZYZZJ7.cjs.map +1 -0
- package/lib/chunk-6RKVARIW.cjs +63 -0
- package/lib/chunk-6RKVARIW.cjs.map +1 -0
- package/lib/chunk-6T2NL26W.cjs +47 -0
- package/lib/chunk-6T2NL26W.cjs.map +1 -0
- package/lib/chunk-6XSQFXZG.js +48 -0
- package/lib/chunk-6XSQFXZG.js.map +1 -0
- package/lib/chunk-75Z4NSV3.js +48 -0
- package/lib/chunk-75Z4NSV3.js.map +1 -0
- package/lib/chunk-76KPAY2S.cjs +34 -0
- package/lib/chunk-76KPAY2S.cjs.map +1 -0
- package/lib/chunk-77TSOEKD.cjs +38 -0
- package/lib/chunk-77TSOEKD.cjs.map +1 -0
- package/lib/chunk-7ECXQJP2.cjs +42 -0
- package/lib/chunk-7ECXQJP2.cjs.map +1 -0
- package/lib/chunk-7FLESQUJ.js +55 -0
- package/lib/chunk-7FLESQUJ.js.map +1 -0
- package/lib/chunk-7FO2TNRH.js +45 -0
- package/lib/chunk-7FO2TNRH.js.map +1 -0
- package/lib/chunk-7JXR2VV3.cjs +47 -0
- package/lib/chunk-7JXR2VV3.cjs.map +1 -0
- package/lib/chunk-7KJ2OKSK.cjs +59 -0
- package/lib/chunk-7KJ2OKSK.cjs.map +1 -0
- package/lib/chunk-7KU4M5DS.cjs +57 -0
- package/lib/chunk-7KU4M5DS.cjs.map +1 -0
- package/lib/chunk-7PE6JN7I.js +48 -0
- package/lib/chunk-7PE6JN7I.js.map +1 -0
- package/lib/chunk-7RRTHZZC.cjs +75 -0
- package/lib/chunk-7RRTHZZC.cjs.map +1 -0
- package/lib/chunk-7TNL5VT5.js +38 -0
- package/lib/chunk-7TNL5VT5.js.map +1 -0
- package/lib/chunk-7UH4JAMB.js +54 -0
- package/lib/chunk-7UH4JAMB.js.map +1 -0
- package/lib/chunk-7ZCJTSYR.js +48 -0
- package/lib/chunk-7ZCJTSYR.js.map +1 -0
- package/lib/chunk-7ZGZN42S.cjs +30 -0
- package/lib/chunk-7ZGZN42S.cjs.map +1 -0
- package/lib/chunk-A2RAUGGE.js +93 -0
- package/lib/chunk-A2RAUGGE.js.map +1 -0
- package/lib/chunk-ACTS2OQX.cjs +95 -0
- package/lib/chunk-ACTS2OQX.cjs.map +1 -0
- package/lib/chunk-AHIMATNV.cjs +61 -0
- package/lib/chunk-AHIMATNV.cjs.map +1 -0
- package/lib/chunk-AIXOGHCK.cjs +51 -0
- package/lib/chunk-AIXOGHCK.cjs.map +1 -0
- package/lib/chunk-AKL5XTMU.cjs +85 -0
- package/lib/chunk-AKL5XTMU.cjs.map +1 -0
- package/lib/chunk-ANSRMBAE.cjs +42 -0
- package/lib/chunk-ANSRMBAE.cjs.map +1 -0
- package/lib/chunk-AOD4FQNI.cjs +47 -0
- package/lib/chunk-AOD4FQNI.cjs.map +1 -0
- package/lib/chunk-APIZA2AG.cjs +47 -0
- package/lib/chunk-APIZA2AG.cjs.map +1 -0
- package/lib/chunk-AU5NYIYK.js +36 -0
- package/lib/chunk-AU5NYIYK.js.map +1 -0
- package/lib/chunk-AV47JRSS.js +44 -0
- package/lib/chunk-AV47JRSS.js.map +1 -0
- package/lib/chunk-AX2EM527.js +37 -0
- package/lib/chunk-AX2EM527.js.map +1 -0
- package/lib/chunk-AYTBSAHY.js +20 -0
- package/lib/chunk-AYTBSAHY.js.map +1 -0
- package/lib/chunk-BCUQHA7L.js +45 -0
- package/lib/chunk-BCUQHA7L.js.map +1 -0
- package/lib/chunk-BHR6XP7Y.js +36 -0
- package/lib/chunk-BHR6XP7Y.js.map +1 -0
- package/lib/chunk-BNK4C2OU.cjs +84 -0
- package/lib/chunk-BNK4C2OU.cjs.map +1 -0
- package/lib/chunk-BPKDEM3O.cjs +47 -0
- package/lib/chunk-BPKDEM3O.cjs.map +1 -0
- package/lib/chunk-BVDBKLNZ.cjs +47 -0
- package/lib/chunk-BVDBKLNZ.cjs.map +1 -0
- package/lib/chunk-BW5JTJIL.cjs +47 -0
- package/lib/chunk-BW5JTJIL.cjs.map +1 -0
- package/lib/chunk-BZKSL26S.js +53 -0
- package/lib/chunk-BZKSL26S.js.map +1 -0
- package/lib/chunk-BZVA4RAA.cjs +47 -0
- package/lib/chunk-BZVA4RAA.cjs.map +1 -0
- package/lib/chunk-C3BQCKAK.cjs +43 -0
- package/lib/chunk-C3BQCKAK.cjs.map +1 -0
- package/lib/chunk-C4M7LJ7I.cjs +68 -0
- package/lib/chunk-C4M7LJ7I.cjs.map +1 -0
- package/lib/chunk-CHYP5F26.js +59 -0
- package/lib/chunk-CHYP5F26.js.map +1 -0
- package/lib/chunk-CS2C7ZYR.cjs +660 -0
- package/lib/chunk-CS2C7ZYR.cjs.map +1 -0
- package/lib/chunk-CUS55PHR.cjs +43 -0
- package/lib/chunk-CUS55PHR.cjs.map +1 -0
- package/lib/chunk-CXZQVDNF.js +45 -0
- package/lib/chunk-CXZQVDNF.js.map +1 -0
- package/lib/chunk-DAAWFJS2.js +45 -0
- package/lib/chunk-DAAWFJS2.js.map +1 -0
- package/lib/chunk-DAS7YWSF.cjs +156 -0
- package/lib/chunk-DAS7YWSF.cjs.map +1 -0
- package/lib/chunk-DBNYBJ5C.cjs +51 -0
- package/lib/chunk-DBNYBJ5C.cjs.map +1 -0
- package/lib/chunk-DF2BVTTZ.cjs +43 -0
- package/lib/chunk-DF2BVTTZ.cjs.map +1 -0
- package/lib/chunk-DGUM43GV.js +10 -0
- package/lib/chunk-DGUM43GV.js.map +1 -0
- package/lib/chunk-DP4RFJ2I.cjs +68 -0
- package/lib/chunk-DP4RFJ2I.cjs.map +1 -0
- package/lib/chunk-DX4DDLBS.js +83 -0
- package/lib/chunk-DX4DDLBS.js.map +1 -0
- package/lib/chunk-E2YLM3RR.js +51 -0
- package/lib/chunk-E2YLM3RR.js.map +1 -0
- package/lib/chunk-E4B3ANB5.js +93 -0
- package/lib/chunk-E4B3ANB5.js.map +1 -0
- package/lib/chunk-E4VBPMFD.js +73 -0
- package/lib/chunk-E4VBPMFD.js.map +1 -0
- package/lib/chunk-EBKU6FT5.js +103 -0
- package/lib/chunk-EBKU6FT5.js.map +1 -0
- package/lib/chunk-ECTCGSXW.js +40 -0
- package/lib/chunk-ECTCGSXW.js.map +1 -0
- package/lib/chunk-EGSJ6YKA.js +44 -0
- package/lib/chunk-EGSJ6YKA.js.map +1 -0
- package/lib/chunk-EMO3ZC2O.js +45 -0
- package/lib/chunk-EMO3ZC2O.js.map +1 -0
- package/lib/chunk-ERBAOD7L.cjs +47 -0
- package/lib/chunk-ERBAOD7L.cjs.map +1 -0
- package/lib/chunk-EXPAMTHI.js +68 -0
- package/lib/chunk-EXPAMTHI.js.map +1 -0
- package/lib/chunk-F7PE7QO2.cjs +29 -0
- package/lib/chunk-F7PE7QO2.cjs.map +1 -0
- package/lib/chunk-FBIUMJFR.js +75 -0
- package/lib/chunk-FBIUMJFR.js.map +1 -0
- package/lib/chunk-FBUFUXLX.js +99 -0
- package/lib/chunk-FBUFUXLX.js.map +1 -0
- package/lib/chunk-FG4NTGK6.js +41 -0
- package/lib/chunk-FG4NTGK6.js.map +1 -0
- package/lib/chunk-FGNIX3MU.cjs +47 -0
- package/lib/chunk-FGNIX3MU.cjs.map +1 -0
- package/lib/chunk-FIXXXEQQ.cjs +43 -0
- package/lib/chunk-FIXXXEQQ.cjs.map +1 -0
- package/lib/chunk-FKIGOMPV.js +41 -0
- package/lib/chunk-FKIGOMPV.js.map +1 -0
- package/lib/chunk-FKYM2RDC.cjs +46 -0
- package/lib/chunk-FKYM2RDC.cjs.map +1 -0
- package/lib/chunk-FMHMXRK5.js +49 -0
- package/lib/chunk-FMHMXRK5.js.map +1 -0
- package/lib/chunk-FN45EIWJ.cjs +75 -0
- package/lib/chunk-FN45EIWJ.cjs.map +1 -0
- package/lib/chunk-FYJO5RU5.js +33 -0
- package/lib/chunk-FYJO5RU5.js.map +1 -0
- package/lib/chunk-FZBFCMQZ.cjs +51 -0
- package/lib/chunk-FZBFCMQZ.cjs.map +1 -0
- package/lib/chunk-G2V76FJE.js +43 -0
- package/lib/chunk-G2V76FJE.js.map +1 -0
- package/lib/chunk-G6WGGNBM.cjs +26 -0
- package/lib/chunk-G6WGGNBM.cjs.map +1 -0
- package/lib/chunk-GMECYB3A.js +24 -0
- package/lib/chunk-GMECYB3A.js.map +1 -0
- package/lib/chunk-GRKFJOVR.js +154 -0
- package/lib/chunk-GRKFJOVR.js.map +1 -0
- package/lib/chunk-GTYAKU2E.cjs +29 -0
- package/lib/chunk-GTYAKU2E.cjs.map +1 -0
- package/lib/chunk-GTYSDD6X.js +37 -0
- package/lib/chunk-GTYSDD6X.js.map +1 -0
- package/lib/chunk-GZ6PQ7EP.cjs +65 -0
- package/lib/chunk-GZ6PQ7EP.cjs.map +1 -0
- package/lib/chunk-H4MXQKQI.cjs +47 -0
- package/lib/chunk-H4MXQKQI.cjs.map +1 -0
- package/lib/chunk-H4SVEI6E.js +151 -0
- package/lib/chunk-H4SVEI6E.js.map +1 -0
- package/lib/chunk-H7ZT6QLT.cjs +47 -0
- package/lib/chunk-H7ZT6QLT.cjs.map +1 -0
- package/lib/chunk-HBEUVQK5.js +87 -0
- package/lib/chunk-HBEUVQK5.js.map +1 -0
- package/lib/chunk-HBRJBDHB.cjs +50 -0
- package/lib/chunk-HBRJBDHB.cjs.map +1 -0
- package/lib/chunk-HHUXVDBF.js +37 -0
- package/lib/chunk-HHUXVDBF.js.map +1 -0
- package/lib/chunk-HIUMWBCO.cjs +86 -0
- package/lib/chunk-HIUMWBCO.cjs.map +1 -0
- package/lib/chunk-HLXVKH3U.js +53 -0
- package/lib/chunk-HLXVKH3U.js.map +1 -0
- package/lib/chunk-HM7D3KXS.js +644 -0
- package/lib/chunk-HM7D3KXS.js.map +1 -0
- package/lib/chunk-HMIISZ5U.js +59 -0
- package/lib/chunk-HMIISZ5U.js.map +1 -0
- package/lib/chunk-HMVRDAEV.js +48 -0
- package/lib/chunk-HMVRDAEV.js.map +1 -0
- package/lib/chunk-HR2AUHMN.cjs +101 -0
- package/lib/chunk-HR2AUHMN.cjs.map +1 -0
- package/lib/chunk-I3LB2N5Z.js +45 -0
- package/lib/chunk-I3LB2N5Z.js.map +1 -0
- package/lib/chunk-I3RBJRZV.js +45 -0
- package/lib/chunk-I3RBJRZV.js.map +1 -0
- package/lib/chunk-IDNK372S.js +52 -0
- package/lib/chunk-IDNK372S.js.map +1 -0
- package/lib/chunk-IFAZBYOS.cjs +45 -0
- package/lib/chunk-IFAZBYOS.cjs.map +1 -0
- package/lib/chunk-IGOQEXAJ.cjs +35 -0
- package/lib/chunk-IGOQEXAJ.cjs.map +1 -0
- package/lib/chunk-IKHD5UQP.cjs +163 -0
- package/lib/chunk-IKHD5UQP.cjs.map +1 -0
- package/lib/chunk-IMKKKS3E.js +44 -0
- package/lib/chunk-IMKKKS3E.js.map +1 -0
- package/lib/chunk-IU7GTZZ2.cjs +51 -0
- package/lib/chunk-IU7GTZZ2.cjs.map +1 -0
- package/lib/chunk-IWRJZHIZ.js +41 -0
- package/lib/chunk-IWRJZHIZ.js.map +1 -0
- package/lib/chunk-IYCV54XR.cjs +51 -0
- package/lib/chunk-IYCV54XR.cjs.map +1 -0
- package/lib/chunk-IZXPVIGP.js +67 -0
- package/lib/chunk-IZXPVIGP.js.map +1 -0
- package/lib/chunk-J7Z7GIWP.cjs +95 -0
- package/lib/chunk-J7Z7GIWP.cjs.map +1 -0
- package/lib/chunk-JDXVL7EK.cjs +26 -0
- package/lib/chunk-JDXVL7EK.cjs.map +1 -0
- package/lib/chunk-JEQ2X3Z6.cjs +12 -0
- package/lib/chunk-JEQ2X3Z6.cjs.map +1 -0
- package/lib/chunk-JGKX4WVT.cjs +56 -0
- package/lib/chunk-JGKX4WVT.cjs.map +1 -0
- package/lib/chunk-JIJYTTWF.js +45 -0
- package/lib/chunk-JIJYTTWF.js.map +1 -0
- package/lib/chunk-JOVN55GM.js +93 -0
- package/lib/chunk-JOVN55GM.js.map +1 -0
- package/lib/chunk-JSRPPOQC.js +24 -0
- package/lib/chunk-JSRPPOQC.js.map +1 -0
- package/lib/chunk-JVF5KY2J.cjs +22 -0
- package/lib/chunk-JVF5KY2J.cjs.map +1 -0
- package/lib/chunk-JWB7A2P7.cjs +101 -0
- package/lib/chunk-JWB7A2P7.cjs.map +1 -0
- package/lib/chunk-JWO5TMOF.cjs +50 -0
- package/lib/chunk-JWO5TMOF.cjs.map +1 -0
- package/lib/chunk-JY75GB6J.js +45 -0
- package/lib/chunk-JY75GB6J.js.map +1 -0
- package/lib/chunk-JYVDZNYF.cjs +53 -0
- package/lib/chunk-JYVDZNYF.cjs.map +1 -0
- package/lib/chunk-K23MEZLJ.js +45 -0
- package/lib/chunk-K23MEZLJ.js.map +1 -0
- package/lib/chunk-K3QWUNID.cjs +105 -0
- package/lib/chunk-K3QWUNID.cjs.map +1 -0
- package/lib/chunk-K4TU3W2I.cjs +89 -0
- package/lib/chunk-K4TU3W2I.cjs.map +1 -0
- package/lib/chunk-K5M43K4M.js +28 -0
- package/lib/chunk-K5M43K4M.js.map +1 -0
- package/lib/chunk-KE2LKPT2.cjs +282 -0
- package/lib/chunk-KE2LKPT2.cjs.map +1 -0
- package/lib/chunk-KJEWYPKL.js +50 -0
- package/lib/chunk-KJEWYPKL.js.map +1 -0
- package/lib/chunk-KJZPFUCB.js +66 -0
- package/lib/chunk-KJZPFUCB.js.map +1 -0
- package/lib/chunk-KOJCFM4J.js +32 -0
- package/lib/chunk-KOJCFM4J.js.map +1 -0
- package/lib/chunk-KZVXL7XT.js +49 -0
- package/lib/chunk-KZVXL7XT.js.map +1 -0
- package/lib/chunk-L3MQUI2T.js +66 -0
- package/lib/chunk-L3MQUI2T.js.map +1 -0
- package/lib/chunk-LEBNVRZK.js +45 -0
- package/lib/chunk-LEBNVRZK.js.map +1 -0
- package/lib/chunk-LIHR6VSF.js +45 -0
- package/lib/chunk-LIHR6VSF.js.map +1 -0
- package/lib/chunk-LIXIL2W7.js +45 -0
- package/lib/chunk-LIXIL2W7.js.map +1 -0
- package/lib/chunk-LORMBCWI.cjs +77 -0
- package/lib/chunk-LORMBCWI.cjs.map +1 -0
- package/lib/chunk-LURXD472.cjs +54 -0
- package/lib/chunk-LURXD472.cjs.map +1 -0
- package/lib/chunk-LVNRKSSK.js +45 -0
- package/lib/chunk-LVNRKSSK.js.map +1 -0
- package/lib/chunk-M7VMF7DL.cjs +53 -0
- package/lib/chunk-M7VMF7DL.cjs.map +1 -0
- package/lib/chunk-MB2XHINV.cjs +42 -0
- package/lib/chunk-MB2XHINV.cjs.map +1 -0
- package/lib/chunk-MHZVSLOZ.js +69 -0
- package/lib/chunk-MHZVSLOZ.js.map +1 -0
- package/lib/chunk-MKYGCFFQ.cjs +55 -0
- package/lib/chunk-MKYGCFFQ.cjs.map +1 -0
- package/lib/chunk-MSW4UY65.cjs +50 -0
- package/lib/chunk-MSW4UY65.cjs.map +1 -0
- package/lib/chunk-MT62MFPF.js +84 -0
- package/lib/chunk-MT62MFPF.js.map +1 -0
- package/lib/chunk-MUGXSQGM.cjs +47 -0
- package/lib/chunk-MUGXSQGM.cjs.map +1 -0
- package/lib/chunk-N4AVJLPU.cjs +43 -0
- package/lib/chunk-N4AVJLPU.cjs.map +1 -0
- package/lib/chunk-N753UD4K.cjs +22 -0
- package/lib/chunk-N753UD4K.cjs.map +1 -0
- package/lib/chunk-N7GFZRXD.js +82 -0
- package/lib/chunk-N7GFZRXD.js.map +1 -0
- package/lib/chunk-N7PW3QAD.js +49 -0
- package/lib/chunk-N7PW3QAD.js.map +1 -0
- package/lib/chunk-NADXAHTL.js +49 -0
- package/lib/chunk-NADXAHTL.js.map +1 -0
- package/lib/chunk-NAJ5XC7F.cjs +47 -0
- package/lib/chunk-NAJ5XC7F.cjs.map +1 -0
- package/lib/chunk-NCKKWNLW.js +59 -0
- package/lib/chunk-NCKKWNLW.js.map +1 -0
- package/lib/chunk-NE24VBE2.js +55 -0
- package/lib/chunk-NE24VBE2.js.map +1 -0
- package/lib/chunk-NLEKIRTR.js +45 -0
- package/lib/chunk-NLEKIRTR.js.map +1 -0
- package/lib/chunk-NNQNIEWL.js +99 -0
- package/lib/chunk-NNQNIEWL.js.map +1 -0
- package/lib/chunk-NR2UE6JA.cjs +47 -0
- package/lib/chunk-NR2UE6JA.cjs.map +1 -0
- package/lib/chunk-NUYUBR2T.js +40 -0
- package/lib/chunk-NUYUBR2T.js.map +1 -0
- package/lib/chunk-NVWV2DB7.js +41 -0
- package/lib/chunk-NVWV2DB7.js.map +1 -0
- package/lib/chunk-O5PJZWBH.js +93 -0
- package/lib/chunk-O5PJZWBH.js.map +1 -0
- package/lib/chunk-O7BKHNXP.cjs +46 -0
- package/lib/chunk-O7BKHNXP.cjs.map +1 -0
- package/lib/chunk-OAVJPQOW.js +61 -0
- package/lib/chunk-OAVJPQOW.js.map +1 -0
- package/lib/chunk-OBUF6TTM.cjs +39 -0
- package/lib/chunk-OBUF6TTM.cjs.map +1 -0
- package/lib/chunk-OER5YD2H.js +50 -0
- package/lib/chunk-OER5YD2H.js.map +1 -0
- package/lib/chunk-OF35HBQQ.js +280 -0
- package/lib/chunk-OF35HBQQ.js.map +1 -0
- package/lib/chunk-OFLCORLR.cjs +51 -0
- package/lib/chunk-OFLCORLR.cjs.map +1 -0
- package/lib/chunk-OIZGUEIJ.js +48 -0
- package/lib/chunk-OIZGUEIJ.js.map +1 -0
- package/lib/chunk-OKHXQNDT.js +36 -0
- package/lib/chunk-OKHXQNDT.js.map +1 -0
- package/lib/chunk-OPBVUQV2.js +51 -0
- package/lib/chunk-OPBVUQV2.js.map +1 -0
- package/lib/chunk-P4M5UAZM.js +45 -0
- package/lib/chunk-P4M5UAZM.js.map +1 -0
- package/lib/chunk-P5V4XO4C.js +41 -0
- package/lib/chunk-P5V4XO4C.js.map +1 -0
- package/lib/chunk-P6STDLMB.cjs +52 -0
- package/lib/chunk-P6STDLMB.cjs.map +1 -0
- package/lib/chunk-PBZHKR34.cjs +63 -0
- package/lib/chunk-PBZHKR34.cjs.map +1 -0
- package/lib/chunk-PJ55VLJG.cjs +54 -0
- package/lib/chunk-PJ55VLJG.cjs.map +1 -0
- package/lib/chunk-PMKK6RAV.js +64 -0
- package/lib/chunk-PMKK6RAV.js.map +1 -0
- package/lib/chunk-PQE6TCTR.js +124 -0
- package/lib/chunk-PQE6TCTR.js.map +1 -0
- package/lib/chunk-PQVYOUBP.cjs +43 -0
- package/lib/chunk-PQVYOUBP.cjs.map +1 -0
- package/lib/chunk-PYFJA7OD.cjs +50 -0
- package/lib/chunk-PYFJA7OD.cjs.map +1 -0
- package/lib/chunk-Q2J67HA3.cjs +38 -0
- package/lib/chunk-Q2J67HA3.cjs.map +1 -0
- package/lib/chunk-Q5XVEESL.cjs +61 -0
- package/lib/chunk-Q5XVEESL.cjs.map +1 -0
- package/lib/chunk-Q64YHPFK.cjs +47 -0
- package/lib/chunk-Q64YHPFK.cjs.map +1 -0
- package/lib/chunk-Q7PILATE.cjs +38 -0
- package/lib/chunk-Q7PILATE.cjs.map +1 -0
- package/lib/chunk-QAQU6OIM.js +49 -0
- package/lib/chunk-QAQU6OIM.js.map +1 -0
- package/lib/chunk-QFXJXWXT.js +55 -0
- package/lib/chunk-QFXJXWXT.js.map +1 -0
- package/lib/chunk-QIUMAA5U.cjs +95 -0
- package/lib/chunk-QIUMAA5U.cjs.map +1 -0
- package/lib/chunk-QJYTWO2A.js +57 -0
- package/lib/chunk-QJYTWO2A.js.map +1 -0
- package/lib/chunk-QMDQ73MJ.cjs +61 -0
- package/lib/chunk-QMDQ73MJ.cjs.map +1 -0
- package/lib/chunk-QQOJXI6Z.cjs +51 -0
- package/lib/chunk-QQOJXI6Z.cjs.map +1 -0
- package/lib/chunk-QSX5V6NO.js +36 -0
- package/lib/chunk-QSX5V6NO.js.map +1 -0
- package/lib/chunk-QT3SZ2S3.cjs +50 -0
- package/lib/chunk-QT3SZ2S3.cjs.map +1 -0
- package/lib/chunk-QT6CTYDI.js +41 -0
- package/lib/chunk-QT6CTYDI.js.map +1 -0
- package/lib/chunk-QWTTKALU.cjs +40 -0
- package/lib/chunk-QWTTKALU.cjs.map +1 -0
- package/lib/chunk-QZESYVCV.cjs +52 -0
- package/lib/chunk-QZESYVCV.cjs.map +1 -0
- package/lib/chunk-R2LRLUUY.js +35 -0
- package/lib/chunk-R2LRLUUY.js.map +1 -0
- package/lib/chunk-R6D4PVKX.cjs +35 -0
- package/lib/chunk-R6D4PVKX.cjs.map +1 -0
- package/lib/chunk-R6RTXRXP.js +89 -0
- package/lib/chunk-R6RTXRXP.js.map +1 -0
- package/lib/chunk-RIMHFMLM.js +28 -0
- package/lib/chunk-RIMHFMLM.js.map +1 -0
- package/lib/chunk-RLZUBO2G.cjs +51 -0
- package/lib/chunk-RLZUBO2G.cjs.map +1 -0
- package/lib/chunk-RRO546HE.js +45 -0
- package/lib/chunk-RRO546HE.js.map +1 -0
- package/lib/chunk-RS3CY7RY.js +53 -0
- package/lib/chunk-RS3CY7RY.js.map +1 -0
- package/lib/chunk-RT5FL7XE.js +41 -0
- package/lib/chunk-RT5FL7XE.js.map +1 -0
- package/lib/chunk-S6YAGIA2.cjs +43 -0
- package/lib/chunk-S6YAGIA2.cjs.map +1 -0
- package/lib/chunk-SJKKZJFB.js +45 -0
- package/lib/chunk-SJKKZJFB.js.map +1 -0
- package/lib/chunk-SM2NGL5E.js +45 -0
- package/lib/chunk-SM2NGL5E.js.map +1 -0
- package/lib/chunk-SPG7F6W2.cjs +55 -0
- package/lib/chunk-SPG7F6W2.cjs.map +1 -0
- package/lib/chunk-SRW7OWVS.cjs +40 -0
- package/lib/chunk-SRW7OWVS.cjs.map +1 -0
- package/lib/chunk-SZW75RX5.js +93 -0
- package/lib/chunk-SZW75RX5.js.map +1 -0
- package/lib/chunk-T4SIZV7L.cjs +57 -0
- package/lib/chunk-T4SIZV7L.cjs.map +1 -0
- package/lib/chunk-T52QAZNX.cjs +35 -0
- package/lib/chunk-T52QAZNX.cjs.map +1 -0
- package/lib/chunk-TBRWZGNA.js +45 -0
- package/lib/chunk-TBRWZGNA.js.map +1 -0
- package/lib/chunk-TDK6MSPY.js +45 -0
- package/lib/chunk-TDK6MSPY.js.map +1 -0
- package/lib/chunk-TQ5EVIGW.js +49 -0
- package/lib/chunk-TQ5EVIGW.js.map +1 -0
- package/lib/chunk-U2PEG3HM.js +45 -0
- package/lib/chunk-U2PEG3HM.js.map +1 -0
- package/lib/chunk-U7IZGAMR.js +49 -0
- package/lib/chunk-U7IZGAMR.js.map +1 -0
- package/lib/chunk-UBFCVEI3.js +45 -0
- package/lib/chunk-UBFCVEI3.js.map +1 -0
- package/lib/chunk-UDHY2MB5.cjs +51 -0
- package/lib/chunk-UDHY2MB5.cjs.map +1 -0
- package/lib/chunk-UN7V5GMB.cjs +91 -0
- package/lib/chunk-UN7V5GMB.cjs.map +1 -0
- package/lib/chunk-UOBOW5IB.js +45 -0
- package/lib/chunk-UOBOW5IB.js.map +1 -0
- package/lib/chunk-UOUMLS42.cjs +47 -0
- package/lib/chunk-UOUMLS42.cjs.map +1 -0
- package/lib/chunk-UPT6VVOV.cjs +98 -0
- package/lib/chunk-UPT6VVOV.cjs.map +1 -0
- package/lib/chunk-UR4EQ5TD.cjs +95 -0
- package/lib/chunk-UR4EQ5TD.cjs.map +1 -0
- package/lib/chunk-URXE6C3U.js +60 -0
- package/lib/chunk-URXE6C3U.js.map +1 -0
- package/lib/chunk-VB2QSU5M.cjs +69 -0
- package/lib/chunk-VB2QSU5M.cjs.map +1 -0
- package/lib/chunk-VD236VYU.cjs +47 -0
- package/lib/chunk-VD236VYU.cjs.map +1 -0
- package/lib/chunk-VKEYQUCF.js +36 -0
- package/lib/chunk-VKEYQUCF.js.map +1 -0
- package/lib/chunk-VP7I376Q.js +40 -0
- package/lib/chunk-VP7I376Q.js.map +1 -0
- package/lib/chunk-VRU2UGPN.cjs +46 -0
- package/lib/chunk-VRU2UGPN.cjs.map +1 -0
- package/lib/chunk-VRXXWQRL.cjs +282 -0
- package/lib/chunk-VRXXWQRL.cjs.map +1 -0
- package/lib/chunk-VV4DII4R.cjs +70 -0
- package/lib/chunk-VV4DII4R.cjs.map +1 -0
- package/lib/chunk-VX5APQQJ.js +73 -0
- package/lib/chunk-VX5APQQJ.js.map +1 -0
- package/lib/chunk-W3SYTX6F.js +49 -0
- package/lib/chunk-W3SYTX6F.js.map +1 -0
- package/lib/chunk-W4ZTXJH3.js +96 -0
- package/lib/chunk-W4ZTXJH3.js.map +1 -0
- package/lib/chunk-WAL76UPE.cjs +153 -0
- package/lib/chunk-WAL76UPE.cjs.map +1 -0
- package/lib/chunk-WLNQ5IJG.cjs +47 -0
- package/lib/chunk-WLNQ5IJG.cjs.map +1 -0
- package/lib/chunk-WWUILZ4S.cjs +57 -0
- package/lib/chunk-WWUILZ4S.cjs.map +1 -0
- package/lib/chunk-XAABBRMY.js +274 -0
- package/lib/chunk-XAABBRMY.js.map +1 -0
- package/lib/chunk-XCY643SK.cjs +38 -0
- package/lib/chunk-XCY643SK.cjs.map +1 -0
- package/lib/chunk-XD7GS4QW.js +20 -0
- package/lib/chunk-XD7GS4QW.js.map +1 -0
- package/lib/chunk-XEQPW7EY.cjs +67 -0
- package/lib/chunk-XEQPW7EY.cjs.map +1 -0
- package/lib/chunk-XG3BBOQC.js +33 -0
- package/lib/chunk-XG3BBOQC.js.map +1 -0
- package/lib/chunk-XIDAGHQ3.js +45 -0
- package/lib/chunk-XIDAGHQ3.js.map +1 -0
- package/lib/chunk-XNQHTNRU.js +65 -0
- package/lib/chunk-XNQHTNRU.js.map +1 -0
- package/lib/chunk-XUDOA53I.cjs +30 -0
- package/lib/chunk-XUDOA53I.cjs.map +1 -0
- package/lib/chunk-XV7JPEMC.js +53 -0
- package/lib/chunk-XV7JPEMC.js.map +1 -0
- package/lib/chunk-XZVEHDCJ.js +49 -0
- package/lib/chunk-XZVEHDCJ.js.map +1 -0
- package/lib/chunk-Y63HZGYO.js +32 -0
- package/lib/chunk-Y63HZGYO.js.map +1 -0
- package/lib/chunk-YEAWOUGM.cjs +51 -0
- package/lib/chunk-YEAWOUGM.cjs.map +1 -0
- package/lib/chunk-YFDW473C.cjs +71 -0
- package/lib/chunk-YFDW473C.cjs.map +1 -0
- package/lib/chunk-YGRMZILG.cjs +62 -0
- package/lib/chunk-YGRMZILG.cjs.map +1 -0
- package/lib/chunk-YJ76LM3Y.cjs +47 -0
- package/lib/chunk-YJ76LM3Y.cjs.map +1 -0
- package/lib/chunk-YORWAYDL.cjs +47 -0
- package/lib/chunk-YORWAYDL.cjs.map +1 -0
- package/lib/chunk-YVFBCUQ6.cjs +47 -0
- package/lib/chunk-YVFBCUQ6.cjs.map +1 -0
- package/lib/chunk-YW72SW25.js +63 -0
- package/lib/chunk-YW72SW25.js.map +1 -0
- package/lib/chunk-YWLWTQ5X.js +49 -0
- package/lib/chunk-YWLWTQ5X.js.map +1 -0
- package/lib/chunk-YXDNZZT7.js +45 -0
- package/lib/chunk-YXDNZZT7.js.map +1 -0
- package/lib/chunk-YY5ENJSH.cjs +63 -0
- package/lib/chunk-YY5ENJSH.cjs.map +1 -0
- package/lib/chunk-Z4BLXS3O.js +45 -0
- package/lib/chunk-Z4BLXS3O.js.map +1 -0
- package/lib/chunk-ZHKKNAPU.cjs +42 -0
- package/lib/chunk-ZHKKNAPU.cjs.map +1 -0
- package/lib/chunk-ZHM3FU7I.cjs +47 -0
- package/lib/chunk-ZHM3FU7I.cjs.map +1 -0
- package/lib/chunk-ZJC6ALGW.js +51 -0
- package/lib/chunk-ZJC6ALGW.js.map +1 -0
- package/lib/chunk-ZONTQPPL.js +40 -0
- package/lib/chunk-ZONTQPPL.js.map +1 -0
- package/lib/chunk-ZU7GFVQ6.js +153 -0
- package/lib/chunk-ZU7GFVQ6.js.map +1 -0
- package/lib/chunk-ZZAXYDCE.cjs +55 -0
- package/lib/chunk-ZZAXYDCE.cjs.map +1 -0
- package/lib/client.cjs +7 -151
- package/lib/client.cjs.map +1 -1
- package/lib/client.js +6 -149
- package/lib/client.js.map +1 -1
- package/lib/commercelayer.cjs +26 -106
- package/lib/commercelayer.cjs.map +1 -1
- package/lib/commercelayer.js +10 -102
- package/lib/commercelayer.js.map +1 -1
- package/lib/config.cjs +5 -16
- package/lib/config.cjs.map +1 -1
- package/lib/config.js +2 -17
- package/lib/config.js.map +1 -1
- package/lib/debug.cjs +5 -14
- package/lib/debug.cjs.map +1 -1
- package/lib/debug.js +2 -15
- package/lib/debug.js.map +1 -1
- package/lib/enum.cjs +64 -654
- package/lib/enum.cjs.map +1 -1
- package/lib/enum.js +2 -641
- package/lib/enum.js.map +1 -1
- package/lib/error.cjs +32 -95
- package/lib/error.cjs.map +1 -1
- package/lib/error.js +3 -91
- package/lib/error.js.map +1 -1
- package/lib/fetch.cjs +11 -64
- package/lib/fetch.cjs.map +1 -1
- package/lib/fetch.js +3 -62
- package/lib/fetch.js.map +1 -1
- package/lib/index.cjs +672 -18
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +143 -3
- package/lib/index.js.map +1 -1
- package/lib/jsonapi.cjs +17 -74
- package/lib/jsonapi.cjs.map +1 -1
- package/lib/jsonapi.js +9 -71
- package/lib/jsonapi.js.map +1 -1
- package/lib/query.cjs +16 -59
- package/lib/query.cjs.map +1 -1
- package/lib/query.js +4 -56
- package/lib/query.js.map +1 -1
- package/lib/resource.cjs +29 -212
- package/lib/resource.cjs.map +1 -1
- package/lib/resource.js +9 -205
- package/lib/resource.js.map +1 -1
- package/lib/resources/addresses.cjs +12 -50
- package/lib/resources/addresses.cjs.map +1 -1
- package/lib/resources/addresses.js +10 -52
- package/lib/resources/addresses.js.map +1 -1
- package/lib/resources/adjustments.cjs +12 -32
- package/lib/resources/adjustments.cjs.map +1 -1
- package/lib/resources/adjustments.js +10 -34
- package/lib/resources/adjustments.js.map +1 -1
- package/lib/resources/adyen_gateways.cjs +12 -40
- package/lib/resources/adyen_gateways.cjs.map +1 -1
- package/lib/resources/adyen_gateways.js +10 -42
- package/lib/resources/adyen_gateways.js.map +1 -1
- package/lib/resources/adyen_payments.cjs +12 -46
- package/lib/resources/adyen_payments.cjs.map +1 -1
- package/lib/resources/adyen_payments.js +10 -48
- package/lib/resources/adyen_payments.js.map +1 -1
- package/lib/resources/applications.cjs +12 -22
- package/lib/resources/applications.cjs.map +1 -1
- package/lib/resources/applications.js +10 -24
- package/lib/resources/applications.js.map +1 -1
- package/lib/resources/attachments.cjs +12 -28
- package/lib/resources/attachments.cjs.map +1 -1
- package/lib/resources/attachments.js +10 -30
- package/lib/resources/attachments.js.map +1 -1
- package/lib/resources/authorizations.cjs +12 -61
- package/lib/resources/authorizations.cjs.map +1 -1
- package/lib/resources/authorizations.js +10 -63
- package/lib/resources/authorizations.js.map +1 -1
- package/lib/resources/avalara_accounts.cjs +12 -48
- package/lib/resources/avalara_accounts.cjs.map +1 -1
- package/lib/resources/avalara_accounts.js +10 -50
- package/lib/resources/avalara_accounts.js.map +1 -1
- package/lib/resources/axerve_gateways.cjs +12 -40
- package/lib/resources/axerve_gateways.cjs.map +1 -1
- package/lib/resources/axerve_gateways.js +10 -42
- package/lib/resources/axerve_gateways.js.map +1 -1
- package/lib/resources/axerve_payments.cjs +12 -43
- package/lib/resources/axerve_payments.cjs.map +1 -1
- package/lib/resources/axerve_payments.js +10 -45
- package/lib/resources/axerve_payments.js.map +1 -1
- package/lib/resources/bing_geocoders.cjs +12 -40
- package/lib/resources/bing_geocoders.cjs.map +1 -1
- package/lib/resources/bing_geocoders.js +10 -42
- package/lib/resources/bing_geocoders.js.map +1 -1
- package/lib/resources/braintree_gateways.cjs +12 -40
- package/lib/resources/braintree_gateways.cjs.map +1 -1
- package/lib/resources/braintree_gateways.js +10 -42
- package/lib/resources/braintree_gateways.js.map +1 -1
- package/lib/resources/braintree_payments.cjs +12 -40
- package/lib/resources/braintree_payments.cjs.map +1 -1
- package/lib/resources/braintree_payments.js +10 -42
- package/lib/resources/braintree_payments.js.map +1 -1
- package/lib/resources/bundles.cjs +12 -68
- package/lib/resources/bundles.cjs.map +1 -1
- package/lib/resources/bundles.js +10 -70
- package/lib/resources/bundles.js.map +1 -1
- package/lib/resources/buy_x_pay_y_promotions.cjs +12 -88
- package/lib/resources/buy_x_pay_y_promotions.cjs.map +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +10 -90
- package/lib/resources/buy_x_pay_y_promotions.js.map +1 -1
- package/lib/resources/captures.cjs +12 -62
- package/lib/resources/captures.cjs.map +1 -1
- package/lib/resources/captures.js +10 -64
- package/lib/resources/captures.js.map +1 -1
- package/lib/resources/carrier_accounts.cjs +12 -40
- package/lib/resources/carrier_accounts.cjs.map +1 -1
- package/lib/resources/carrier_accounts.js +10 -42
- package/lib/resources/carrier_accounts.js.map +1 -1
- package/lib/resources/checkout_com_gateways.cjs +12 -40
- package/lib/resources/checkout_com_gateways.cjs.map +1 -1
- package/lib/resources/checkout_com_gateways.js +10 -42
- package/lib/resources/checkout_com_gateways.js.map +1 -1
- package/lib/resources/checkout_com_payments.cjs +12 -46
- package/lib/resources/checkout_com_payments.cjs.map +1 -1
- package/lib/resources/checkout_com_payments.js +10 -48
- package/lib/resources/checkout_com_payments.js.map +1 -1
- package/lib/resources/cleanups.cjs +12 -39
- package/lib/resources/cleanups.cjs.map +1 -1
- package/lib/resources/cleanups.js +10 -41
- package/lib/resources/cleanups.js.map +1 -1
- package/lib/resources/coupon_codes_promotion_rules.cjs +12 -36
- package/lib/resources/coupon_codes_promotion_rules.cjs.map +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +10 -38
- package/lib/resources/coupon_codes_promotion_rules.js.map +1 -1
- package/lib/resources/coupon_recipients.cjs +12 -40
- package/lib/resources/coupon_recipients.cjs.map +1 -1
- package/lib/resources/coupon_recipients.js +10 -42
- package/lib/resources/coupon_recipients.js.map +1 -1
- package/lib/resources/coupons.cjs +12 -54
- package/lib/resources/coupons.cjs.map +1 -1
- package/lib/resources/coupons.js +10 -56
- package/lib/resources/coupons.js.map +1 -1
- package/lib/resources/custom_promotion_rules.cjs +12 -32
- package/lib/resources/custom_promotion_rules.cjs.map +1 -1
- package/lib/resources/custom_promotion_rules.js +10 -34
- package/lib/resources/custom_promotion_rules.js.map +1 -1
- package/lib/resources/customer_addresses.cjs +12 -44
- package/lib/resources/customer_addresses.cjs.map +1 -1
- package/lib/resources/customer_addresses.js +10 -46
- package/lib/resources/customer_addresses.js.map +1 -1
- package/lib/resources/customer_groups.cjs +12 -44
- package/lib/resources/customer_groups.cjs.map +1 -1
- package/lib/resources/customer_groups.js +10 -46
- package/lib/resources/customer_groups.js.map +1 -1
- package/lib/resources/customer_password_resets.cjs +12 -39
- package/lib/resources/customer_password_resets.cjs.map +1 -1
- package/lib/resources/customer_password_resets.js +10 -41
- package/lib/resources/customer_password_resets.js.map +1 -1
- package/lib/resources/customer_payment_sources.cjs +12 -40
- package/lib/resources/customer_payment_sources.cjs.map +1 -1
- package/lib/resources/customer_payment_sources.js +10 -42
- package/lib/resources/customer_payment_sources.js.map +1 -1
- package/lib/resources/customer_subscriptions.cjs +12 -40
- package/lib/resources/customer_subscriptions.cjs.map +1 -1
- package/lib/resources/customer_subscriptions.js +10 -42
- package/lib/resources/customer_subscriptions.js.map +1 -1
- package/lib/resources/customers.cjs +12 -78
- package/lib/resources/customers.cjs.map +1 -1
- package/lib/resources/customers.js +10 -80
- package/lib/resources/customers.js.map +1 -1
- package/lib/resources/delivery_lead_times.cjs +12 -44
- package/lib/resources/delivery_lead_times.cjs.map +1 -1
- package/lib/resources/delivery_lead_times.js +10 -46
- package/lib/resources/delivery_lead_times.js.map +1 -1
- package/lib/resources/discount_engine_items.cjs +12 -27
- package/lib/resources/discount_engine_items.cjs.map +1 -1
- package/lib/resources/discount_engine_items.js +10 -29
- package/lib/resources/discount_engine_items.js.map +1 -1
- package/lib/resources/discount_engines.cjs +12 -35
- package/lib/resources/discount_engines.cjs.map +1 -1
- package/lib/resources/discount_engines.js +10 -37
- package/lib/resources/discount_engines.js.map +1 -1
- package/lib/resources/easypost_pickups.cjs +12 -43
- package/lib/resources/easypost_pickups.cjs.map +1 -1
- package/lib/resources/easypost_pickups.js +10 -45
- package/lib/resources/easypost_pickups.js.map +1 -1
- package/lib/resources/event_callbacks.cjs +12 -23
- package/lib/resources/event_callbacks.cjs.map +1 -1
- package/lib/resources/event_callbacks.js +10 -25
- package/lib/resources/event_callbacks.js.map +1 -1
- package/lib/resources/events.cjs +12 -33
- package/lib/resources/events.cjs.map +1 -1
- package/lib/resources/events.js +10 -35
- package/lib/resources/events.js.map +1 -1
- package/lib/resources/exports.cjs +12 -39
- package/lib/resources/exports.cjs.map +1 -1
- package/lib/resources/exports.js +10 -41
- package/lib/resources/exports.js.map +1 -1
- package/lib/resources/external_gateways.cjs +12 -43
- package/lib/resources/external_gateways.cjs.map +1 -1
- package/lib/resources/external_gateways.js +10 -45
- package/lib/resources/external_gateways.js.map +1 -1
- package/lib/resources/external_payments.cjs +12 -44
- package/lib/resources/external_payments.cjs.map +1 -1
- package/lib/resources/external_payments.js +10 -46
- package/lib/resources/external_payments.js.map +1 -1
- package/lib/resources/external_promotions.cjs +12 -91
- package/lib/resources/external_promotions.cjs.map +1 -1
- package/lib/resources/external_promotions.js +10 -93
- package/lib/resources/external_promotions.js.map +1 -1
- package/lib/resources/external_tax_calculators.cjs +12 -47
- package/lib/resources/external_tax_calculators.cjs.map +1 -1
- package/lib/resources/external_tax_calculators.js +10 -49
- package/lib/resources/external_tax_calculators.js.map +1 -1
- package/lib/resources/fixed_amount_promotions.cjs +12 -88
- package/lib/resources/fixed_amount_promotions.cjs.map +1 -1
- package/lib/resources/fixed_amount_promotions.js +10 -90
- package/lib/resources/fixed_amount_promotions.js.map +1 -1
- package/lib/resources/fixed_price_promotions.cjs +12 -88
- package/lib/resources/fixed_price_promotions.cjs.map +1 -1
- package/lib/resources/fixed_price_promotions.js +10 -90
- package/lib/resources/fixed_price_promotions.js.map +1 -1
- package/lib/resources/flex_promotions.cjs +12 -64
- package/lib/resources/flex_promotions.cjs.map +1 -1
- package/lib/resources/flex_promotions.js +10 -66
- package/lib/resources/flex_promotions.js.map +1 -1
- package/lib/resources/free_gift_promotions.cjs +12 -88
- package/lib/resources/free_gift_promotions.cjs.map +1 -1
- package/lib/resources/free_gift_promotions.js +10 -90
- package/lib/resources/free_gift_promotions.js.map +1 -1
- package/lib/resources/free_shipping_promotions.cjs +12 -84
- package/lib/resources/free_shipping_promotions.cjs.map +1 -1
- package/lib/resources/free_shipping_promotions.js +10 -86
- package/lib/resources/free_shipping_promotions.js.map +1 -1
- package/lib/resources/geocoders.cjs +12 -31
- package/lib/resources/geocoders.cjs.map +1 -1
- package/lib/resources/geocoders.js +10 -33
- package/lib/resources/geocoders.js.map +1 -1
- package/lib/resources/gift_card_recipients.cjs +12 -40
- package/lib/resources/gift_card_recipients.cjs.map +1 -1
- package/lib/resources/gift_card_recipients.js +10 -42
- package/lib/resources/gift_card_recipients.js.map +1 -1
- package/lib/resources/gift_cards.cjs +12 -70
- package/lib/resources/gift_cards.cjs.map +1 -1
- package/lib/resources/gift_cards.js +10 -72
- package/lib/resources/gift_cards.js.map +1 -1
- package/lib/resources/google_geocoders.cjs +12 -40
- package/lib/resources/google_geocoders.cjs.map +1 -1
- package/lib/resources/google_geocoders.js +10 -42
- package/lib/resources/google_geocoders.js.map +1 -1
- package/lib/resources/imports.cjs +12 -35
- package/lib/resources/imports.cjs.map +1 -1
- package/lib/resources/imports.js +10 -37
- package/lib/resources/imports.js.map +1 -1
- package/lib/resources/in_stock_subscriptions.cjs +12 -54
- package/lib/resources/in_stock_subscriptions.cjs.map +1 -1
- package/lib/resources/in_stock_subscriptions.js +10 -56
- package/lib/resources/in_stock_subscriptions.js.map +1 -1
- package/lib/resources/inventory_models.cjs +12 -44
- package/lib/resources/inventory_models.cjs.map +1 -1
- package/lib/resources/inventory_models.js +10 -46
- package/lib/resources/inventory_models.js.map +1 -1
- package/lib/resources/inventory_return_locations.cjs +12 -40
- package/lib/resources/inventory_return_locations.cjs.map +1 -1
- package/lib/resources/inventory_return_locations.js +10 -42
- package/lib/resources/inventory_return_locations.js.map +1 -1
- package/lib/resources/inventory_stock_locations.cjs +12 -40
- package/lib/resources/inventory_stock_locations.cjs.map +1 -1
- package/lib/resources/inventory_stock_locations.js +10 -42
- package/lib/resources/inventory_stock_locations.js.map +1 -1
- package/lib/resources/klarna_gateways.cjs +12 -40
- package/lib/resources/klarna_gateways.cjs.map +1 -1
- package/lib/resources/klarna_gateways.js +10 -42
- package/lib/resources/klarna_gateways.js.map +1 -1
- package/lib/resources/klarna_payments.cjs +12 -43
- package/lib/resources/klarna_payments.cjs.map +1 -1
- package/lib/resources/klarna_payments.js +10 -45
- package/lib/resources/klarna_payments.js.map +1 -1
- package/lib/resources/line_item_options.cjs +12 -50
- package/lib/resources/line_item_options.cjs.map +1 -1
- package/lib/resources/line_item_options.js +10 -52
- package/lib/resources/line_item_options.js.map +1 -1
- package/lib/resources/line_items.cjs +12 -79
- package/lib/resources/line_items.cjs.map +1 -1
- package/lib/resources/line_items.js +10 -81
- package/lib/resources/line_items.js.map +1 -1
- package/lib/resources/links.cjs +12 -38
- package/lib/resources/links.cjs.map +1 -1
- package/lib/resources/links.js +10 -40
- package/lib/resources/links.js.map +1 -1
- package/lib/resources/manual_gateways.cjs +12 -36
- package/lib/resources/manual_gateways.cjs.map +1 -1
- package/lib/resources/manual_gateways.js +10 -38
- package/lib/resources/manual_gateways.js.map +1 -1
- package/lib/resources/manual_tax_calculators.cjs +12 -48
- package/lib/resources/manual_tax_calculators.cjs.map +1 -1
- package/lib/resources/manual_tax_calculators.js +10 -50
- package/lib/resources/manual_tax_calculators.js.map +1 -1
- package/lib/resources/markets.cjs +12 -94
- package/lib/resources/markets.cjs.map +1 -1
- package/lib/resources/markets.js +10 -96
- package/lib/resources/markets.js.map +1 -1
- package/lib/resources/merchants.cjs +12 -40
- package/lib/resources/merchants.cjs.map +1 -1
- package/lib/resources/merchants.js +10 -42
- package/lib/resources/merchants.js.map +1 -1
- package/lib/resources/notifications.cjs +12 -28
- package/lib/resources/notifications.cjs.map +1 -1
- package/lib/resources/notifications.js +10 -30
- package/lib/resources/notifications.js.map +1 -1
- package/lib/resources/order_amount_promotion_rules.cjs +12 -32
- package/lib/resources/order_amount_promotion_rules.cjs.map +1 -1
- package/lib/resources/order_amount_promotion_rules.js +10 -34
- package/lib/resources/order_amount_promotion_rules.js.map +1 -1
- package/lib/resources/order_copies.cjs +12 -44
- package/lib/resources/order_copies.cjs.map +1 -1
- package/lib/resources/order_copies.js +10 -46
- package/lib/resources/order_copies.js.map +1 -1
- package/lib/resources/order_factories.cjs +12 -31
- package/lib/resources/order_factories.cjs.map +1 -1
- package/lib/resources/order_factories.js +10 -33
- package/lib/resources/order_factories.js.map +1 -1
- package/lib/resources/order_subscription_items.cjs +12 -36
- package/lib/resources/order_subscription_items.cjs.map +1 -1
- package/lib/resources/order_subscription_items.js +10 -38
- package/lib/resources/order_subscription_items.js.map +1 -1
- package/lib/resources/order_subscriptions.cjs +12 -94
- package/lib/resources/order_subscriptions.cjs.map +1 -1
- package/lib/resources/order_subscriptions.js +10 -96
- package/lib/resources/order_subscriptions.js.map +1 -1
- package/lib/resources/orders.cjs +12 -275
- package/lib/resources/orders.cjs.map +1 -1
- package/lib/resources/orders.js +10 -277
- package/lib/resources/orders.js.map +1 -1
- package/lib/resources/organizations.cjs +12 -22
- package/lib/resources/organizations.cjs.map +1 -1
- package/lib/resources/organizations.js +10 -24
- package/lib/resources/organizations.js.map +1 -1
- package/lib/resources/packages.cjs +12 -44
- package/lib/resources/packages.cjs.map +1 -1
- package/lib/resources/packages.js +10 -46
- package/lib/resources/packages.js.map +1 -1
- package/lib/resources/parcel_line_items.cjs +12 -40
- package/lib/resources/parcel_line_items.cjs.map +1 -1
- package/lib/resources/parcel_line_items.js +10 -42
- package/lib/resources/parcel_line_items.js.map +1 -1
- package/lib/resources/parcels.cjs +12 -52
- package/lib/resources/parcels.cjs.map +1 -1
- package/lib/resources/parcels.js +10 -54
- package/lib/resources/parcels.js.map +1 -1
- package/lib/resources/payment_gateways.cjs +12 -27
- package/lib/resources/payment_gateways.cjs.map +1 -1
- package/lib/resources/payment_gateways.js +10 -29
- package/lib/resources/payment_gateways.js.map +1 -1
- package/lib/resources/payment_methods.cjs +12 -58
- package/lib/resources/payment_methods.cjs.map +1 -1
- package/lib/resources/payment_methods.js +10 -60
- package/lib/resources/payment_methods.js.map +1 -1
- package/lib/resources/payment_options.cjs +12 -36
- package/lib/resources/payment_options.cjs.map +1 -1
- package/lib/resources/payment_options.js +10 -38
- package/lib/resources/payment_options.js.map +1 -1
- package/lib/resources/paypal_gateways.cjs +12 -40
- package/lib/resources/paypal_gateways.cjs.map +1 -1
- package/lib/resources/paypal_gateways.js +10 -42
- package/lib/resources/paypal_gateways.js.map +1 -1
- package/lib/resources/paypal_payments.cjs +12 -40
- package/lib/resources/paypal_payments.cjs.map +1 -1
- package/lib/resources/paypal_payments.js +10 -42
- package/lib/resources/paypal_payments.js.map +1 -1
- package/lib/resources/percentage_discount_promotions.cjs +12 -88
- package/lib/resources/percentage_discount_promotions.cjs.map +1 -1
- package/lib/resources/percentage_discount_promotions.js +10 -90
- package/lib/resources/percentage_discount_promotions.js.map +1 -1
- package/lib/resources/pickups.cjs +12 -31
- package/lib/resources/pickups.cjs.map +1 -1
- package/lib/resources/pickups.js +10 -33
- package/lib/resources/pickups.js.map +1 -1
- package/lib/resources/price_frequency_tiers.cjs +12 -44
- package/lib/resources/price_frequency_tiers.cjs.map +1 -1
- package/lib/resources/price_frequency_tiers.js +10 -46
- package/lib/resources/price_frequency_tiers.js.map +1 -1
- package/lib/resources/price_list_schedulers.cjs +12 -50
- package/lib/resources/price_list_schedulers.cjs.map +1 -1
- package/lib/resources/price_list_schedulers.js +10 -52
- package/lib/resources/price_list_schedulers.js.map +1 -1
- package/lib/resources/price_lists.cjs +12 -44
- package/lib/resources/price_lists.cjs.map +1 -1
- package/lib/resources/price_lists.js +10 -46
- package/lib/resources/price_lists.js.map +1 -1
- package/lib/resources/price_tiers.cjs +12 -31
- package/lib/resources/price_tiers.cjs.map +1 -1
- package/lib/resources/price_tiers.js +10 -33
- package/lib/resources/price_tiers.js.map +1 -1
- package/lib/resources/price_volume_tiers.cjs +12 -44
- package/lib/resources/price_volume_tiers.cjs.map +1 -1
- package/lib/resources/price_volume_tiers.js +10 -46
- package/lib/resources/price_volume_tiers.js.map +1 -1
- package/lib/resources/prices.cjs +12 -68
- package/lib/resources/prices.cjs.map +1 -1
- package/lib/resources/prices.js +10 -70
- package/lib/resources/prices.js.map +1 -1
- package/lib/resources/promotion_rules.cjs +12 -23
- package/lib/resources/promotion_rules.cjs.map +1 -1
- package/lib/resources/promotion_rules.js +10 -25
- package/lib/resources/promotion_rules.js.map +1 -1
- package/lib/resources/promotions.cjs +12 -63
- package/lib/resources/promotions.cjs.map +1 -1
- package/lib/resources/promotions.js +10 -65
- package/lib/resources/promotions.js.map +1 -1
- package/lib/resources/recurring_order_copies.cjs +12 -44
- package/lib/resources/recurring_order_copies.cjs.map +1 -1
- package/lib/resources/recurring_order_copies.js +10 -46
- package/lib/resources/recurring_order_copies.js.map +1 -1
- package/lib/resources/refunds.cjs +12 -49
- package/lib/resources/refunds.cjs.map +1 -1
- package/lib/resources/refunds.js +10 -51
- package/lib/resources/refunds.js.map +1 -1
- package/lib/resources/reserved_stocks.cjs +12 -35
- package/lib/resources/reserved_stocks.cjs.map +1 -1
- package/lib/resources/reserved_stocks.js +10 -37
- package/lib/resources/reserved_stocks.js.map +1 -1
- package/lib/resources/resource_errors.cjs +12 -19
- package/lib/resources/resource_errors.cjs.map +1 -1
- package/lib/resources/resource_errors.js +10 -21
- package/lib/resources/resource_errors.js.map +1 -1
- package/lib/resources/return_line_items.cjs +12 -39
- package/lib/resources/return_line_items.cjs.map +1 -1
- package/lib/resources/return_line_items.js +10 -41
- package/lib/resources/return_line_items.js.map +1 -1
- package/lib/resources/returns.cjs +12 -119
- package/lib/resources/returns.cjs.map +1 -1
- package/lib/resources/returns.js +10 -121
- package/lib/resources/returns.js.map +1 -1
- package/lib/resources/satispay_gateways.cjs +12 -40
- package/lib/resources/satispay_gateways.cjs.map +1 -1
- package/lib/resources/satispay_gateways.js +10 -42
- package/lib/resources/satispay_gateways.js.map +1 -1
- package/lib/resources/satispay_payments.cjs +12 -43
- package/lib/resources/satispay_payments.cjs.map +1 -1
- package/lib/resources/satispay_payments.js +10 -45
- package/lib/resources/satispay_payments.js.map +1 -1
- package/lib/resources/shipments.cjs +12 -149
- package/lib/resources/shipments.cjs.map +1 -1
- package/lib/resources/shipments.js +10 -151
- package/lib/resources/shipments.js.map +1 -1
- package/lib/resources/shipping_categories.cjs +12 -40
- package/lib/resources/shipping_categories.cjs.map +1 -1
- package/lib/resources/shipping_categories.js +10 -42
- package/lib/resources/shipping_categories.js.map +1 -1
- package/lib/resources/shipping_method_tiers.cjs +12 -31
- package/lib/resources/shipping_method_tiers.cjs.map +1 -1
- package/lib/resources/shipping_method_tiers.js +10 -33
- package/lib/resources/shipping_method_tiers.js.map +1 -1
- package/lib/resources/shipping_methods.cjs +12 -77
- package/lib/resources/shipping_methods.cjs.map +1 -1
- package/lib/resources/shipping_methods.js +10 -79
- package/lib/resources/shipping_methods.js.map +1 -1
- package/lib/resources/shipping_weight_tiers.cjs +12 -40
- package/lib/resources/shipping_weight_tiers.cjs.map +1 -1
- package/lib/resources/shipping_weight_tiers.js +10 -42
- package/lib/resources/shipping_weight_tiers.js.map +1 -1
- package/lib/resources/shipping_zones.cjs +12 -36
- package/lib/resources/shipping_zones.cjs.map +1 -1
- package/lib/resources/shipping_zones.js +10 -38
- package/lib/resources/shipping_zones.js.map +1 -1
- package/lib/resources/sku_list_items.cjs +12 -40
- package/lib/resources/sku_list_items.cjs.map +1 -1
- package/lib/resources/sku_list_items.js +10 -42
- package/lib/resources/sku_list_items.js.map +1 -1
- package/lib/resources/sku_list_promotion_rules.cjs +12 -40
- package/lib/resources/sku_list_promotion_rules.cjs.map +1 -1
- package/lib/resources/sku_list_promotion_rules.js +10 -42
- package/lib/resources/sku_list_promotion_rules.js.map +1 -1
- package/lib/resources/sku_lists.cjs +12 -56
- package/lib/resources/sku_lists.cjs.map +1 -1
- package/lib/resources/sku_lists.js +10 -58
- package/lib/resources/sku_lists.js.map +1 -1
- package/lib/resources/sku_options.cjs +12 -54
- package/lib/resources/sku_options.cjs.map +1 -1
- package/lib/resources/sku_options.js +10 -56
- package/lib/resources/sku_options.js.map +1 -1
- package/lib/resources/skus.cjs +12 -98
- package/lib/resources/skus.cjs.map +1 -1
- package/lib/resources/skus.js +10 -100
- package/lib/resources/skus.js.map +1 -1
- package/lib/resources/stock_items.cjs +12 -55
- package/lib/resources/stock_items.cjs.map +1 -1
- package/lib/resources/stock_items.js +10 -57
- package/lib/resources/stock_items.js.map +1 -1
- package/lib/resources/stock_line_items.cjs +12 -61
- package/lib/resources/stock_line_items.cjs.map +1 -1
- package/lib/resources/stock_line_items.js +10 -63
- package/lib/resources/stock_line_items.js.map +1 -1
- package/lib/resources/stock_locations.cjs +12 -60
- package/lib/resources/stock_locations.cjs.map +1 -1
- package/lib/resources/stock_locations.js +10 -62
- package/lib/resources/stock_locations.js.map +1 -1
- package/lib/resources/stock_reservations.cjs +12 -59
- package/lib/resources/stock_reservations.cjs.map +1 -1
- package/lib/resources/stock_reservations.js +10 -61
- package/lib/resources/stock_reservations.js.map +1 -1
- package/lib/resources/stock_transfers.cjs +12 -82
- package/lib/resources/stock_transfers.cjs.map +1 -1
- package/lib/resources/stock_transfers.js +10 -84
- package/lib/resources/stock_transfers.js.map +1 -1
- package/lib/resources/stores.cjs +12 -56
- package/lib/resources/stores.cjs.map +1 -1
- package/lib/resources/stores.js +10 -58
- package/lib/resources/stores.js.map +1 -1
- package/lib/resources/stripe_gateways.cjs +12 -40
- package/lib/resources/stripe_gateways.cjs.map +1 -1
- package/lib/resources/stripe_gateways.js +10 -42
- package/lib/resources/stripe_gateways.js.map +1 -1
- package/lib/resources/stripe_payments.cjs +12 -46
- package/lib/resources/stripe_payments.cjs.map +1 -1
- package/lib/resources/stripe_payments.js +10 -48
- package/lib/resources/stripe_payments.js.map +1 -1
- package/lib/resources/stripe_tax_accounts.cjs +12 -48
- package/lib/resources/stripe_tax_accounts.cjs.map +1 -1
- package/lib/resources/stripe_tax_accounts.js +10 -50
- package/lib/resources/stripe_tax_accounts.js.map +1 -1
- package/lib/resources/subscription_models.cjs +12 -40
- package/lib/resources/subscription_models.cjs.map +1 -1
- package/lib/resources/subscription_models.js +10 -42
- package/lib/resources/subscription_models.js.map +1 -1
- package/lib/resources/tags.cjs +12 -28
- package/lib/resources/tags.cjs.map +1 -1
- package/lib/resources/tags.js +10 -30
- package/lib/resources/tags.js.map +1 -1
- package/lib/resources/talon_one_accounts.cjs +12 -44
- package/lib/resources/talon_one_accounts.cjs.map +1 -1
- package/lib/resources/talon_one_accounts.js +10 -46
- package/lib/resources/talon_one_accounts.js.map +1 -1
- package/lib/resources/tax_calculators.cjs +12 -35
- package/lib/resources/tax_calculators.cjs.map +1 -1
- package/lib/resources/tax_calculators.js +10 -37
- package/lib/resources/tax_calculators.js.map +1 -1
- package/lib/resources/tax_categories.cjs +12 -40
- package/lib/resources/tax_categories.cjs.map +1 -1
- package/lib/resources/tax_categories.js +10 -42
- package/lib/resources/tax_categories.js.map +1 -1
- package/lib/resources/tax_rules.cjs +12 -36
- package/lib/resources/tax_rules.cjs.map +1 -1
- package/lib/resources/tax_rules.js +10 -38
- package/lib/resources/tax_rules.js.map +1 -1
- package/lib/resources/taxjar_accounts.cjs +12 -48
- package/lib/resources/taxjar_accounts.cjs.map +1 -1
- package/lib/resources/taxjar_accounts.js +10 -50
- package/lib/resources/taxjar_accounts.js.map +1 -1
- package/lib/resources/transactions.cjs +12 -35
- package/lib/resources/transactions.cjs.map +1 -1
- package/lib/resources/transactions.js +10 -37
- package/lib/resources/transactions.js.map +1 -1
- package/lib/resources/versions.cjs +12 -19
- package/lib/resources/versions.cjs.map +1 -1
- package/lib/resources/versions.js +10 -21
- package/lib/resources/versions.js.map +1 -1
- package/lib/resources/vertex_accounts.cjs +12 -47
- package/lib/resources/vertex_accounts.cjs.map +1 -1
- package/lib/resources/vertex_accounts.js +10 -49
- package/lib/resources/vertex_accounts.js.map +1 -1
- package/lib/resources/voids.cjs +12 -45
- package/lib/resources/voids.cjs.map +1 -1
- package/lib/resources/voids.js +10 -47
- package/lib/resources/voids.js.map +1 -1
- package/lib/resources/webhooks.cjs +12 -45
- package/lib/resources/webhooks.cjs.map +1 -1
- package/lib/resources/webhooks.js +10 -47
- package/lib/resources/webhooks.js.map +1 -1
- package/lib/resources/wire_transfers.cjs +12 -36
- package/lib/resources/wire_transfers.cjs.map +1 -1
- package/lib/resources/wire_transfers.js +10 -38
- package/lib/resources/wire_transfers.js.map +1 -1
- package/lib/static.cjs +16 -43
- package/lib/static.cjs.map +1 -1
- package/lib/static.js +11 -45
- package/lib/static.js.map +1 -1
- package/lib/util.cjs +20 -34
- package/lib/util.cjs.map +1 -1
- package/lib/util.js +2 -32
- package/lib/util.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/adyen_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAuLA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAA0B,CAAA;AAAA,EAErD,OAAgB,IAAyB,GAAA,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAA8B,EAAA,MAAA,EAA4C,OAAkD,EAAA;AACxI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAyC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,cAAc,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAA,CAAO,QAA8B,EAAA,MAAA,EAA4C,OAAkD,EAAA;AACxI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAyC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,cAAc,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CA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,CAAM,qBAAsC,EAAE,CAAA;AAAA;AACtD,EAEA,sBAAsB,GAAkC,EAAA;AACvD,IAAO,OAAA,KAAA,CAAM,qBAAuC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC3D,EAGA,IAAyB,GAAA;AACxB,IAAA,OAAO,cAAc,CAAA,IAAA;AAAA;AAGvB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAc,EAAA;AACnC,IAAO,sBAAQ,GAAA","file":"chunk-H7ZT6QLT.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { AdyenPayment, AdyenPaymentType } from './adyen_payments'\n\n\ntype AdyenGatewayType = 'adyen_gateways'\ntype AdyenGatewayRel = ResourceRel & { type: AdyenGatewayType }\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\n\n\nexport type AdyenGatewaySort = Pick<AdyenGateway, 'id' | 'name'> & ResourceSort\n// export type AdyenGatewayFilter = Pick<AdyenGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface AdyenGateway extends Resource {\n\t\n\treadonly type: AdyenGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/adyen_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tadyen_payments?: AdyenPayment[] | null\n\n}\n\n\ninterface AdyenGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\ninterface AdyenGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix?: string | null\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\nclass AdyenGateways extends ApiResource<AdyenGateway> {\n\n\tstatic readonly TYPE: AdyenGatewayType = 'adyen_gateways' as const\n\n\tasync create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.create<AdyenGatewayCreate, AdyenGateway>({ ...resource, type: AdyenGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ ...resource, type: AdyenGateways.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: AdyenGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `adyen_gateways/${_adyenGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adyen_gateways/${_adyenGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<AdyenPayment>, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<AdyenPayment>({ type: 'adyen_payments' }, `adyen_gateways/${_adyenGatewayId}/adyen_payments`, params, options) as unknown as ListResponse<AdyenPayment>\n\t}\n\n\n\tisAdyenGateway(resource: any): resource is AdyenGateway {\n\t\treturn resource.type && (resource.type === AdyenGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenGatewayRel {\n\t\treturn super.relationshipOneToOne<AdyenGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenGatewayRel[] {\n\t\treturn super.relationshipOneToMany<AdyenGatewayRel>(...ids)\n\t}\n\n\n\ttype(): AdyenGatewayType {\n\t\treturn AdyenGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenGateways()\nexport default instance\n\nexport type { AdyenGateways, AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate, AdyenGatewayType }\n"]}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { ApiResource } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/stock_transfers.ts
|
4
|
+
var StockTransfers = class _StockTransfers extends ApiResource {
|
5
|
+
static TYPE = "stock_transfers";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _StockTransfers.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _StockTransfers.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _StockTransfers.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async sku(stockTransferId, params, options) {
|
16
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
17
|
+
return this.resources.fetch({ type: "skus" }, `stock_transfers/${_stockTransferId}/sku`, params, options);
|
18
|
+
}
|
19
|
+
async origin_stock_location(stockTransferId, params, options) {
|
20
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
21
|
+
return this.resources.fetch({ type: "stock_locations" }, `stock_transfers/${_stockTransferId}/origin_stock_location`, params, options);
|
22
|
+
}
|
23
|
+
async destination_stock_location(stockTransferId, params, options) {
|
24
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
25
|
+
return this.resources.fetch({ type: "stock_locations" }, `stock_transfers/${_stockTransferId}/destination_stock_location`, params, options);
|
26
|
+
}
|
27
|
+
async shipment(stockTransferId, params, options) {
|
28
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
29
|
+
return this.resources.fetch({ type: "shipments" }, `stock_transfers/${_stockTransferId}/shipment`, params, options);
|
30
|
+
}
|
31
|
+
async line_item(stockTransferId, params, options) {
|
32
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
33
|
+
return this.resources.fetch({ type: "line_items" }, `stock_transfers/${_stockTransferId}/line_item`, params, options);
|
34
|
+
}
|
35
|
+
async stock_reservation(stockTransferId, params, options) {
|
36
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
37
|
+
return this.resources.fetch({ type: "stock_reservations" }, `stock_transfers/${_stockTransferId}/stock_reservation`, params, options);
|
38
|
+
}
|
39
|
+
async attachments(stockTransferId, params, options) {
|
40
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
41
|
+
return this.resources.fetch({ type: "attachments" }, `stock_transfers/${_stockTransferId}/attachments`, params, options);
|
42
|
+
}
|
43
|
+
async events(stockTransferId, params, options) {
|
44
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
45
|
+
return this.resources.fetch({ type: "events" }, `stock_transfers/${_stockTransferId}/events`, params, options);
|
46
|
+
}
|
47
|
+
async versions(stockTransferId, params, options) {
|
48
|
+
const _stockTransferId = stockTransferId.id || stockTransferId;
|
49
|
+
return this.resources.fetch({ type: "versions" }, `stock_transfers/${_stockTransferId}/versions`, params, options);
|
50
|
+
}
|
51
|
+
async _upcoming(id, params, options) {
|
52
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _upcoming: true }, params, options);
|
53
|
+
}
|
54
|
+
async _on_hold(id, params, options) {
|
55
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _on_hold: true }, params, options);
|
56
|
+
}
|
57
|
+
async _picking(id, params, options) {
|
58
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _picking: true }, params, options);
|
59
|
+
}
|
60
|
+
async _in_transit(id, params, options) {
|
61
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _in_transit: true }, params, options);
|
62
|
+
}
|
63
|
+
async _complete(id, params, options) {
|
64
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _complete: true }, params, options);
|
65
|
+
}
|
66
|
+
async _cancel(id, params, options) {
|
67
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockTransfers.TYPE, _cancel: true }, params, options);
|
68
|
+
}
|
69
|
+
isStockTransfer(resource) {
|
70
|
+
return resource.type && resource.type === _StockTransfers.TYPE;
|
71
|
+
}
|
72
|
+
relationship(id) {
|
73
|
+
return super.relationshipOneToOne(id);
|
74
|
+
}
|
75
|
+
relationshipToMany(...ids) {
|
76
|
+
return super.relationshipOneToMany(...ids);
|
77
|
+
}
|
78
|
+
type() {
|
79
|
+
return _StockTransfers.TYPE;
|
80
|
+
}
|
81
|
+
};
|
82
|
+
var instance = new StockTransfers();
|
83
|
+
var stock_transfers_default = instance;
|
84
|
+
|
85
|
+
export { stock_transfers_default };
|
86
|
+
//# sourceMappingURL=chunk-HBEUVQK5.js.map
|
87
|
+
//# sourceMappingURL=chunk-HBEUVQK5.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/stock_transfers.ts"],"names":[],"mappings":";;;AA6KA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAA2B,CAAA;AAAA,EAEvD,OAAgB,IAA0B,GAAA,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAA+B,EAAA,MAAA,EAA6C,OAAmD,EAAA;AAC3I,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA2C,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,eAAe,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC7H,EAEA,MAAM,MAAA,CAAO,QAA+B,EAAA,MAAA,EAA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,CAAA,IAAA,KAAS,eAAe,CAAA,IAAA;AAAA;AAC3D,EAGA,aAAa,EAAkD,EAAA;AAC9D,IAAO,OAAA,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA;AACvD,EAEA,sBAAsB,GAAmC,EAAA;AACxD,IAAO,OAAA,KAAA,CAAM,qBAAwC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC5D,EAGA,IAA0B,GAAA;AACzB,IAAA,OAAO,eAAe,CAAA,IAAA;AAAA;AAGxB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAe,EAAA;AACpC,IAAO,uBAAQ,GAAA","file":"chunk-HBEUVQK5.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Sku, SkuType } from './skus'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { LineItem, LineItemType } from './line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype StockTransferType = 'stock_transfers'\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype LineItemRel = ResourceRel & { type: LineItemType }\n\n\nexport type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceSort\n// export type StockTransferFilter = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceFilter\n\n\ninterface StockTransfer extends Resource {\n\t\n\treadonly type: StockTransferType\n\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock transfer status. One of 'draft' (default), 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled'\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * Time at which the stock transfer was put on hold.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ton_hold_at?: string | null\n\t/** \n\t * Time at which the stock transfer was picking.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpicking_at?: string | null\n\t/** \n\t * Time at which the stock transfer was in transit.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tin_transit_at?: string | null\n\t/** \n\t * Time at which the stock transfer was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the stock transfer was cancelled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcancelled_at?: string | null\n\n\tsku?: Sku | null\n\torigin_stock_location?: StockLocation | null\n\tdestination_stock_location?: StockLocation | null\n\tshipment?: Shipment | null\n\tline_item?: LineItem | null\n\tstock_reservation?: StockReservation | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface StockTransferCreate extends ResourceCreate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\n\tsku: SkuRel\n\torigin_stock_location: StockLocationRel\n\tdestination_stock_location: StockLocationRel\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\ninterface StockTransferUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as upcoming.\n\t * @example ```true```\n\t */\n\t_upcoming?: boolean | null\n\t/** \n\t * Send this attribute if you want to put this stock transfer on hold.\n\t * @example ```true```\n\t */\n\t_on_hold?: boolean | null\n\t/** \n\t * Send this attribute if you want to start picking this stock transfer.\n\t * @example ```true```\n\t */\n\t_picking?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as in transit.\n\t * @example ```true```\n\t */\n\t_in_transit?: boolean | null\n\t/** \n\t * Send this attribute if you want to complete this stock transfer.\n\t * @example ```true```\n\t */\n\t_complete?: boolean | null\n\t/** \n\t * Send this attribute if you want to cancel this stock transfer.\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\n\tsku?: SkuRel | null\n\torigin_stock_location?: StockLocationRel | null\n\tdestination_stock_location?: StockLocationRel | null\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\nclass StockTransfers extends ApiResource<StockTransfer> {\n\n\tstatic readonly TYPE: StockTransferType = 'stock_transfers' as const\n\n\tasync create(resource: StockTransferCreate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.create<StockTransferCreate, StockTransfer>({ ...resource, type: StockTransfers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockTransferUpdate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ ...resource, type: StockTransfers.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: StockTransfers.TYPE } : id, options)\n\t}\n\n\tasync sku(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_transfers/${_stockTransferId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync origin_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/origin_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync destination_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/destination_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `stock_transfers/${_stockTransferId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_transfers/${_stockTransferId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync stock_reservation(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `stock_transfers/${_stockTransferId}/stock_reservation`, params, options) as unknown as StockReservation\n\t}\n\n\tasync attachments(stockTransferId: string | StockTransfer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `stock_transfers/${_stockTransferId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(stockTransferId: string | StockTransfer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `stock_transfers/${_stockTransferId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(stockTransferId: string | StockTransfer, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stock_transfers/${_stockTransferId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _upcoming: true }, params, options)\n\t}\n\n\tasync _on_hold(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _on_hold: true }, params, options)\n\t}\n\n\tasync _picking(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _picking: true }, params, options)\n\t}\n\n\tasync _in_transit(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _in_transit: true }, params, options)\n\t}\n\n\tasync _complete(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _complete: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisStockTransfer(resource: any): resource is StockTransfer {\n\t\treturn resource.type && (resource.type === StockTransfers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockTransferRel {\n\t\treturn super.relationshipOneToOne<StockTransferRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockTransferRel[] {\n\t\treturn super.relationshipOneToMany<StockTransferRel>(...ids)\n\t}\n\n\n\ttype(): StockTransferType {\n\t\treturn StockTransfers.TYPE\n\t}\n\n}\n\n\nconst instance = new StockTransfers()\nexport default instance\n\nexport type { StockTransfers, StockTransfer, StockTransferCreate, StockTransferUpdate, StockTransferType }\n"]}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunk6HZYZZJ7_cjs = require('./chunk-6HZYZZJ7.cjs');
|
4
|
+
var chunkSRW7OWVS_cjs = require('./chunk-SRW7OWVS.cjs');
|
5
|
+
var chunkCS2C7ZYR_cjs = require('./chunk-CS2C7ZYR.cjs');
|
6
|
+
var chunkIKHD5UQP_cjs = require('./chunk-IKHD5UQP.cjs');
|
7
|
+
|
8
|
+
// src/static.ts
|
9
|
+
var CommerceLayerStatic = {
|
10
|
+
resources: (sort) => {
|
11
|
+
return chunkCS2C7ZYR_cjs.getResources(sort);
|
12
|
+
},
|
13
|
+
singletons: (sort) => {
|
14
|
+
return chunkCS2C7ZYR_cjs.getSingletons(sort);
|
15
|
+
},
|
16
|
+
isSingleton: (resource) => {
|
17
|
+
return chunkCS2C7ZYR_cjs.isSingleton(resource);
|
18
|
+
},
|
19
|
+
isCreatable: (resource) => {
|
20
|
+
return chunkCS2C7ZYR_cjs.isCreatable(resource);
|
21
|
+
},
|
22
|
+
isUpdatable: (resource) => {
|
23
|
+
return chunkCS2C7ZYR_cjs.isUpdatable(resource);
|
24
|
+
},
|
25
|
+
isDeletable: (resource) => {
|
26
|
+
return chunkCS2C7ZYR_cjs.isDeletable(resource);
|
27
|
+
},
|
28
|
+
isTaggable: (resource) => {
|
29
|
+
return chunkCS2C7ZYR_cjs.isTaggable(resource);
|
30
|
+
},
|
31
|
+
isVersionable: (resource) => {
|
32
|
+
return chunkCS2C7ZYR_cjs.isVersionable(resource);
|
33
|
+
},
|
34
|
+
isSdkError: (error) => {
|
35
|
+
return chunkIKHD5UQP_cjs.isSdkError(error);
|
36
|
+
},
|
37
|
+
isApiError: (error) => {
|
38
|
+
return chunkIKHD5UQP_cjs.isApiError(error);
|
39
|
+
},
|
40
|
+
isTokenExpired: (token) => {
|
41
|
+
return chunkSRW7OWVS_cjs.isTokenExpired(token);
|
42
|
+
},
|
43
|
+
get schemaVersion() {
|
44
|
+
return chunk6HZYZZJ7_cjs.OPEN_API_SCHEMA_VERSION;
|
45
|
+
}
|
46
|
+
};
|
47
|
+
|
48
|
+
exports.CommerceLayerStatic = CommerceLayerStatic;
|
49
|
+
//# sourceMappingURL=chunk-HBRJBDHB.cjs.map
|
50
|
+
//# sourceMappingURL=chunk-HBRJBDHB.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/static.ts"],"names":["getResources","getSingletons","isSingleton","isCreatable","isUpdatable","isDeletable","isTaggable","isVersionable","isSdkError","isApiError","isTokenExpired","OPEN_API_SCHEMA_VERSION"],"mappings":";;;;;;;;AASO,IAAM,mBAAsB,GAAA;AAAA,EAElC,SAAA,EAAW,CAAC,IAAsC,KAAA;AACjD,IAAA,OAAOA,+BAAa,IAAI,CAAA;AAAA,GACzB;AAAA,EAEA,UAAA,EAAY,CAAC,IAAsC,KAAA;AAClD,IAAA,OAAOC,gCAAc,IAAI,CAAA;AAAA,GAC1B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,WAAA,EAAa,CAAC,QAAwC,KAAA;AACrD,IAAA,OAAOC,8BAAY,QAAQ,CAAA;AAAA,GAC5B;AAAA,EAEA,UAAA,EAAY,CAAC,QAAwC,KAAA;AACpD,IAAA,OAAOC,6BAAW,QAAQ,CAAA;AAAA,GAC3B;AAAA,EAEA,aAAA,EAAe,CAAC,QAAwC,KAAA;AACvD,IAAA,OAAOC,gCAAc,QAAQ,CAAA;AAAA,GAC9B;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,UAAA,EAAY,CAAC,KAAsC,KAAA;AAClD,IAAA,OAAOC,6BAAW,KAAK,CAAA;AAAA,GACxB;AAAA,EAEA,cAAA,EAAgB,CAAC,KAA2B,KAAA;AAC3C,IAAA,OAAOC,iCAAe,KAAK,CAAA;AAAA,GAC5B;AAAA,EAEA,IAAI,aAAwB,GAAA;AAAE,IAAO,OAAAC,yCAAA;AAAA;AAEtC","file":"chunk-HBRJBDHB.cjs","sourcesContent":["\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable, isVersionable } from './enum'\nimport { OPEN_API_SCHEMA_VERSION } from './commercelayer'\nimport { SdkError, ApiError, isSdkError, isApiError} from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisVersionable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isVersionable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return OPEN_API_SCHEMA_VERSION }\n\n}\n"]}
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { ApiResource } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/adjustments.ts
|
4
|
+
var Adjustments = class _Adjustments extends ApiResource {
|
5
|
+
static TYPE = "adjustments";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _Adjustments.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _Adjustments.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Adjustments.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async versions(adjustmentId, params, options) {
|
16
|
+
const _adjustmentId = adjustmentId.id || adjustmentId;
|
17
|
+
return this.resources.fetch({ type: "versions" }, `adjustments/${_adjustmentId}/versions`, params, options);
|
18
|
+
}
|
19
|
+
isAdjustment(resource) {
|
20
|
+
return resource.type && resource.type === _Adjustments.TYPE;
|
21
|
+
}
|
22
|
+
relationship(id) {
|
23
|
+
return super.relationshipOneToOne(id);
|
24
|
+
}
|
25
|
+
relationshipToMany(...ids) {
|
26
|
+
return super.relationshipOneToMany(...ids);
|
27
|
+
}
|
28
|
+
type() {
|
29
|
+
return _Adjustments.TYPE;
|
30
|
+
}
|
31
|
+
};
|
32
|
+
var instance = new Adjustments();
|
33
|
+
var adjustments_default = instance;
|
34
|
+
|
35
|
+
export { adjustments_default };
|
36
|
+
//# sourceMappingURL=chunk-HHUXVDBF.js.map
|
37
|
+
//# sourceMappingURL=chunk-HHUXVDBF.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src/resources/adjustments.ts"],"names":[],"mappings":";;;AA2GA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoB,WAAwB,CAAA;AAAA,EAEjD,OAAgB,IAAuB,GAAA,aAAA;AAAA,EAEvC,MAAM,MAAA,CAAO,QAA4B,EAAA,MAAA,EAA0C,OAAgD,EAAA;AAClI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAqC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,YAAY,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACpH,EAEA,MAAM,MAAA,CAAO,QAA4B,EAAA,MAAA,EAA0C,OAAgD,EAAA;AAClI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAqC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,YAAY,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACpH,EAEA,MAAM,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CAAA,SAAA,CAAU,MAAQ,CAAA,OAAO,EAAO,KAAA,QAAA,GAAW,EAAE,EAAA,EAAI,IAAM,EAAA,YAAA,CAAY,IAAK,EAAA,GAAI,IAAI,OAAO,CAAA;AAAA;AACnG,EAEA,MAAM,QAAA,CAAS,YAAmC,EAAA,MAAA,EAAmC,OAA2D,EAAA;AAC/I,IAAM,MAAA,aAAA,GAAiB,aAA4B,EAAM,IAAA,YAAA;AACzD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,UAAW,EAAA,EAAG,CAAe,YAAA,EAAA,aAAa,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACpH,EAGA,aAAa,QAAuC,EAAA;AACnD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,YAAY,CAAA,IAAA;AAAA;AACxD,EAGA,aAAa,EAA+C,EAAA;AAC3D,IAAO,OAAA,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA;AACpD,EAEA,sBAAsB,GAAgC,EAAA;AACrD,IAAO,OAAA,KAAA,CAAM,qBAAqC,CAAA,GAAG,GAAG,CAAA;AAAA;AACzD,EAGA,IAAuB,GAAA;AACtB,IAAA,OAAO,YAAY,CAAA,IAAA;AAAA;AAGrB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAY,EAAA;AACjC,IAAO,mBAAQ,GAAA","file":"chunk-HHUXVDBF.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Version } from './versions'\n\n\ntype AdjustmentType = 'adjustments'\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\n\n\nexport type AdjustmentSort = Pick<Adjustment, 'id' | 'name' | 'currency_code' | 'amount_cents'> & ResourceSort\n// export type AdjustmentFilter = Pick<Adjustment, 'id' | 'name' | 'currency_code' | 'amount_cents'> & ResourceFilter\n\n\ninterface Adjustment extends Resource {\n\t\n\treadonly type: AdjustmentType\n\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The adjustment amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The adjustment amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\n\tversions?: Version[] | null\n\n}\n\n\ninterface AdjustmentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t\n}\n\n\ninterface AdjustmentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents?: number | null\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t\n}\n\n\nclass Adjustments extends ApiResource<Adjustment> {\n\n\tstatic readonly TYPE: AdjustmentType = 'adjustments' as const\n\n\tasync create(resource: AdjustmentCreate, params?: QueryParamsRetrieve<Adjustment>, options?: ResourcesConfig): Promise<Adjustment> {\n\t\treturn this.resources.create<AdjustmentCreate, Adjustment>({ ...resource, type: Adjustments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve<Adjustment>, options?: ResourcesConfig): Promise<Adjustment> {\n\t\treturn this.resources.update<AdjustmentUpdate, Adjustment>({ ...resource, type: Adjustments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Adjustments.TYPE } : id, options)\n\t}\n\n\tasync versions(adjustmentId: string | Adjustment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adjustmentId = (adjustmentId as Adjustment).id || adjustmentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adjustments/${_adjustmentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisAdjustment(resource: any): resource is Adjustment {\n\t\treturn resource.type && (resource.type === Adjustments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdjustmentRel {\n\t\treturn super.relationshipOneToOne<AdjustmentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdjustmentRel[] {\n\t\treturn super.relationshipOneToMany<AdjustmentRel>(...ids)\n\t}\n\n\n\ttype(): AdjustmentType {\n\t\treturn Adjustments.TYPE\n\t}\n\n}\n\n\nconst instance = new Adjustments()\nexport default instance\n\nexport type { Adjustments, Adjustment, AdjustmentCreate, AdjustmentUpdate, AdjustmentType }\n"]}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
var chunkVRXXWQRL_cjs = require('./chunk-VRXXWQRL.cjs');
|
4
|
+
|
5
|
+
// src/resources/line_items.ts
|
6
|
+
var LineItems = class _LineItems extends chunkVRXXWQRL_cjs.ApiResource {
|
7
|
+
static TYPE = "line_items";
|
8
|
+
async create(resource, params, options) {
|
9
|
+
return this.resources.create({ ...resource, type: _LineItems.TYPE }, params, options);
|
10
|
+
}
|
11
|
+
async update(resource, params, options) {
|
12
|
+
return this.resources.update({ ...resource, type: _LineItems.TYPE }, params, options);
|
13
|
+
}
|
14
|
+
async delete(id, options) {
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _LineItems.TYPE } : id, options);
|
16
|
+
}
|
17
|
+
async order(lineItemId, params, options) {
|
18
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
19
|
+
return this.resources.fetch({ type: "orders" }, `line_items/${_lineItemId}/order`, params, options);
|
20
|
+
}
|
21
|
+
async line_item_options(lineItemId, params, options) {
|
22
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
23
|
+
return this.resources.fetch({ type: "line_item_options" }, `line_items/${_lineItemId}/line_item_options`, params, options);
|
24
|
+
}
|
25
|
+
async return_line_items(lineItemId, params, options) {
|
26
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
27
|
+
return this.resources.fetch({ type: "return_line_items" }, `line_items/${_lineItemId}/return_line_items`, params, options);
|
28
|
+
}
|
29
|
+
async stock_reservations(lineItemId, params, options) {
|
30
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
31
|
+
return this.resources.fetch({ type: "stock_reservations" }, `line_items/${_lineItemId}/stock_reservations`, params, options);
|
32
|
+
}
|
33
|
+
async stock_line_items(lineItemId, params, options) {
|
34
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
35
|
+
return this.resources.fetch({ type: "stock_line_items" }, `line_items/${_lineItemId}/stock_line_items`, params, options);
|
36
|
+
}
|
37
|
+
async stock_transfers(lineItemId, params, options) {
|
38
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
39
|
+
return this.resources.fetch({ type: "stock_transfers" }, `line_items/${_lineItemId}/stock_transfers`, params, options);
|
40
|
+
}
|
41
|
+
async notifications(lineItemId, params, options) {
|
42
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
43
|
+
return this.resources.fetch({ type: "notifications" }, `line_items/${_lineItemId}/notifications`, params, options);
|
44
|
+
}
|
45
|
+
async events(lineItemId, params, options) {
|
46
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
47
|
+
return this.resources.fetch({ type: "events" }, `line_items/${_lineItemId}/events`, params, options);
|
48
|
+
}
|
49
|
+
async tags(lineItemId, params, options) {
|
50
|
+
const _lineItemId = lineItemId.id || lineItemId;
|
51
|
+
return this.resources.fetch({ type: "tags" }, `line_items/${_lineItemId}/tags`, params, options);
|
52
|
+
}
|
53
|
+
async _external_price(id, params, options) {
|
54
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _external_price: true }, params, options);
|
55
|
+
}
|
56
|
+
async _reserve_stock(id, params, options) {
|
57
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reserve_stock: true }, params, options);
|
58
|
+
}
|
59
|
+
async _reset_circuit(id, params, options) {
|
60
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_circuit: true }, params, options);
|
61
|
+
}
|
62
|
+
async _add_tags(id, triggerValue, params, options) {
|
63
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _add_tags: triggerValue }, params, options);
|
64
|
+
}
|
65
|
+
async _remove_tags(id, triggerValue, params, options) {
|
66
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _remove_tags: triggerValue }, params, options);
|
67
|
+
}
|
68
|
+
isLineItem(resource) {
|
69
|
+
return resource.type && resource.type === _LineItems.TYPE;
|
70
|
+
}
|
71
|
+
relationship(id) {
|
72
|
+
return super.relationshipOneToOne(id);
|
73
|
+
}
|
74
|
+
relationshipToMany(...ids) {
|
75
|
+
return super.relationshipOneToMany(...ids);
|
76
|
+
}
|
77
|
+
type() {
|
78
|
+
return _LineItems.TYPE;
|
79
|
+
}
|
80
|
+
};
|
81
|
+
var instance = new LineItems();
|
82
|
+
var line_items_default = instance;
|
83
|
+
|
84
|
+
exports.line_items_default = line_items_default;
|
85
|
+
//# sourceMappingURL=chunk-HIUMWBCO.cjs.map
|
86
|
+
//# sourceMappingURL=chunk-HIUMWBCO.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3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,OAAO,CAAA;AAAA;AACtK,EAGA,WAAW,QAAqC,EAAA;AAC/C,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,UAAU,CAAA,IAAA;AAAA;AACtD,EAGA,aAAa,EAA6C,EAAA;AACzD,IAAO,OAAA,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA;AAClD,EAEA,sBAAsB,GAA8B,EAAA;AACnD,IAAO,OAAA,KAAA,CAAM,qBAAmC,CAAA,GAAG,GAAG,CAAA;AAAA;AACvD,EAGA,IAAqB,GAAA;AACpB,IAAA,OAAO,UAAU,CAAA,IAAA;AAAA;AAGnB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAU,EAAA;AAC/B,IAAO,kBAAQ,GAAA","file":"chunk-HIUMWBCO.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order, OrderType } from './orders'\nimport type { LineItemOption } from './line_item_options'\nimport type { ReturnLineItem } from './return_line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockTransfer } from './stock_transfers'\nimport type { Notification } from './notifications'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Sku, SkuType } from './skus'\nimport type { Bundle, BundleType } from './bundles'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { Adjustment, AdjustmentType } from './adjustments'\nimport type { DiscountEngineItem, DiscountEngineItemType } from './discount_engine_items'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\n\n\ntype LineItemType = 'line_items'\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\ntype DiscountEngineItemRel = ResourceRel & { type: DiscountEngineItemType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type LineItemSort = Pick<LineItem, 'id' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type LineItemFilter = Pick<LineItem, 'id' | 'sku_code' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'image_url' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface LineItem extends Resource {\n\t\n\treadonly type: LineItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```100```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_unit_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 options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, float.\n\t * @example ```10```\n\t */\n\toptions_amount_float?: number | null\n\t/** \n\t * The options amount of the line item, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_options_amount?: string | null\n\t/** \n\t * The discount applied to the line item, in cents. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```-1000```\n\t */\n\tdiscount_cents?: number | null\n\t/** \n\t * The discount applied to the line item, float. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```10```\n\t */\n\tdiscount_float?: number | null\n\t/** \n\t * The discount applied to the line item, fromatted. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_discount?: string | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, in cents.\n\t * @example ```18800```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```188```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * Calculated as unit amount x quantity + options amount, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€188,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, in cents.\n\t * @example ```1880```\n\t */\n\ttax_amount_cents?: number | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, float.\n\t * @example ```18.8```\n\t */\n\ttax_amount_float: number\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, formatted.\n\t * @example ```\"€18,80\"```\n\t */\n\tformatted_tax_amount?: string | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The discount breakdown for this line item (if calculated).\n\t * @example ```{\"41\":{\"name\":\"10% ALL\",\"cents\":-900,\"weight\":0.416,\"coupon_code\":\"XXXXXXXX\"}}```\n\t */\n\tdiscount_breakdown?: Record<string, any> | null\n\t/** \n\t * The tax rate for this line item (if calculated).\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * The tax breakdown for this line item (if calculated).\n\t * @example ```{\"id\":\"1234\",\"city_amount\":\"0.0\",\"state_amount\":6.6,\"city_tax_rate\":0,\"county_amount\":2.78,\"taxable_amount\":139,\"county_tax_rate\":0.02,\"tax_collectable\":10.08,\"special_tax_rate\":0.005,\"combined_tax_rate\":0.0725,\"city_taxable_amount\":0,\"state_sales_tax_rate\":0.0475,\"state_taxable_amount\":139,\"county_taxable_amount\":139,\"special_district_amount\":0.7,\"special_district_taxable_amount\":139}```\n\t */\n\ttax_breakdown?: Record<string, any> | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: 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\n\torder?: Order | null\n\titem?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | DiscountEngineItem | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tsku?: Sku | null\n\tbundle?: Bundle | null\n\tadjustment?: Adjustment | null\n\tgift_card?: GiftCard | null\n\tshipment?: Shipment | null\n\tpayment_method?: PaymentMethod | null\n\tline_item_options?: LineItemOption[] | null\n\treturn_line_items?: ReturnLineItem[] | null\n\tstock_reservations?: StockReservation[] | null\n\tstock_line_items?: StockLineItem[] | null\n\tstock_transfers?: StockTransfer[] | null\n\tnotifications?: Notification[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\n}\n\n\ninterface LineItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU.\n\t * @example ```true```\n\t */\n\t_update_quantity?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\n\torder: OrderRel\n\titem?: SkuRel | BundleRel | GiftCardRel | ShipmentRel | PaymentMethodRel | AdjustmentRel | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface LineItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: 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 * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\ttags?: TagRel[] | null\n\n}\n\n\nclass LineItems extends ApiResource<LineItem> {\n\n\tstatic readonly TYPE: LineItemType = 'line_items' as const\n\n\tasync create(resource: LineItemCreate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.create<LineItemCreate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LineItemUpdate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ ...resource, type: LineItems.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: LineItems.TYPE } : id, options)\n\t}\n\n\tasync order(lineItemId: string | LineItem, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `line_items/${_lineItemId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync line_item_options(lineItemId: string | LineItem, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<LineItemOption>({ type: 'line_item_options' }, `line_items/${_lineItemId}/line_item_options`, params, options) as unknown as ListResponse<LineItemOption>\n\t}\n\n\tasync return_line_items(lineItemId: string | LineItem, params?: QueryParamsList<ReturnLineItem>, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<ReturnLineItem>({ type: 'return_line_items' }, `line_items/${_lineItemId}/return_line_items`, params, options) as unknown as ListResponse<ReturnLineItem>\n\t}\n\n\tasync stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `line_items/${_lineItemId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `line_items/${_lineItemId}/stock_line_items`, params, options) as unknown as ListResponse<StockLineItem>\n\t}\n\n\tasync stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `line_items/${_lineItemId}/stock_transfers`, params, options) as unknown as ListResponse<StockTransfer>\n\t}\n\n\tasync notifications(lineItemId: string | LineItem, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Notification>({ type: 'notifications' }, `line_items/${_lineItemId}/notifications`, params, options) as unknown as ListResponse<Notification>\n\t}\n\n\tasync events(lineItemId: string | LineItem, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `line_items/${_lineItemId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(lineItemId: string | LineItem, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `line_items/${_lineItemId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync _external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _external_price: true }, params, options)\n\t}\n\n\tasync _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reserve_stock: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisLineItem(resource: any): resource is LineItem {\n\t\treturn resource.type && (resource.type === LineItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LineItemRel {\n\t\treturn super.relationshipOneToOne<LineItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LineItemRel[] {\n\t\treturn super.relationshipOneToMany<LineItemRel>(...ids)\n\t}\n\n\n\ttype(): LineItemType {\n\t\treturn LineItems.TYPE\n\t}\n\n}\n\n\nconst instance = new LineItems()\nexport default instance\n\nexport type { LineItems, LineItem, LineItemCreate, LineItemUpdate, LineItemType }\n"]}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import { ApiResource } from './chunk-XAABBRMY.js';
|
2
|
+
|
3
|
+
// src/resources/avalara_accounts.ts
|
4
|
+
var AvalaraAccounts = class _AvalaraAccounts extends ApiResource {
|
5
|
+
static TYPE = "avalara_accounts";
|
6
|
+
async create(resource, params, options) {
|
7
|
+
return this.resources.create({ ...resource, type: _AvalaraAccounts.TYPE }, params, options);
|
8
|
+
}
|
9
|
+
async update(resource, params, options) {
|
10
|
+
return this.resources.update({ ...resource, type: _AvalaraAccounts.TYPE }, params, options);
|
11
|
+
}
|
12
|
+
async delete(id, options) {
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _AvalaraAccounts.TYPE } : id, options);
|
14
|
+
}
|
15
|
+
async markets(avalaraAccountId, params, options) {
|
16
|
+
const _avalaraAccountId = avalaraAccountId.id || avalaraAccountId;
|
17
|
+
return this.resources.fetch({ type: "markets" }, `avalara_accounts/${_avalaraAccountId}/markets`, params, options);
|
18
|
+
}
|
19
|
+
async attachments(avalaraAccountId, params, options) {
|
20
|
+
const _avalaraAccountId = avalaraAccountId.id || avalaraAccountId;
|
21
|
+
return this.resources.fetch({ type: "attachments" }, `avalara_accounts/${_avalaraAccountId}/attachments`, params, options);
|
22
|
+
}
|
23
|
+
async events(avalaraAccountId, params, options) {
|
24
|
+
const _avalaraAccountId = avalaraAccountId.id || avalaraAccountId;
|
25
|
+
return this.resources.fetch({ type: "events" }, `avalara_accounts/${_avalaraAccountId}/events`, params, options);
|
26
|
+
}
|
27
|
+
async versions(avalaraAccountId, params, options) {
|
28
|
+
const _avalaraAccountId = avalaraAccountId.id || avalaraAccountId;
|
29
|
+
return this.resources.fetch({ type: "versions" }, `avalara_accounts/${_avalaraAccountId}/versions`, params, options);
|
30
|
+
}
|
31
|
+
async tax_categories(avalaraAccountId, params, options) {
|
32
|
+
const _avalaraAccountId = avalaraAccountId.id || avalaraAccountId;
|
33
|
+
return this.resources.fetch({ type: "tax_categories" }, `avalara_accounts/${_avalaraAccountId}/tax_categories`, params, options);
|
34
|
+
}
|
35
|
+
isAvalaraAccount(resource) {
|
36
|
+
return resource.type && resource.type === _AvalaraAccounts.TYPE;
|
37
|
+
}
|
38
|
+
relationship(id) {
|
39
|
+
return super.relationshipOneToOne(id);
|
40
|
+
}
|
41
|
+
relationshipToMany(...ids) {
|
42
|
+
return super.relationshipOneToMany(...ids);
|
43
|
+
}
|
44
|
+
type() {
|
45
|
+
return _AvalaraAccounts.TYPE;
|
46
|
+
}
|
47
|
+
};
|
48
|
+
var instance = new AvalaraAccounts();
|
49
|
+
var avalara_accounts_default = instance;
|
50
|
+
|
51
|
+
export { avalara_accounts_default };
|
52
|
+
//# sourceMappingURL=chunk-HLXVKH3U.js.map
|
53
|
+
//# sourceMappingURL=chunk-HLXVKH3U.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../src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,gBAAgB,CAAA,IAAA;AAAA;AAC5D,EAGA,aAAa,EAAmD,EAAA;AAC/D,IAAO,OAAA,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA;AACxD,EAEA,sBAAsB,GAAoC,EAAA;AACzD,IAAO,OAAA,KAAA,CAAM,qBAAyC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC7D,EAGA,IAA2B,GAAA;AAC1B,IAAA,OAAO,gBAAgB,CAAA,IAAA;AAAA;AAGzB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAgB,EAAA;AACrC,IAAO,wBAAQ,GAAA","file":"chunk-HLXVKH3U.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market } from './markets'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { TaxCategory, TaxCategoryType } from './tax_categories'\n\n\ntype AvalaraAccountType = 'avalara_accounts'\ntype AvalaraAccountRel = ResourceRel & { type: AvalaraAccountType }\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\n\n\nexport type AvalaraAccountSort = Pick<AvalaraAccount, 'id' | 'name'> & ResourceSort\n// export type AvalaraAccountFilter = Pick<AvalaraAccount, 'id' | 'name'> & ResourceFilter\n\n\ninterface AvalaraAccount extends Resource {\n\t\n\treadonly type: AvalaraAccountType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Avalara account username.\n\t * @example ```\"user@mydomain.com\"```\n\t */\n\tusername: string\n\t/** \n\t * The Avalara company code.\n\t * @example ```\"MYCOMPANY\"```\n\t */\n\tcompany_code: string\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Avalara website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities.\n\t * @example ```true```\n\t */\n\tddp?: boolean | null\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\ttax_categories?: TaxCategory[] | null\n\n}\n\n\ninterface AvalaraAccountCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Avalara account username.\n\t * @example ```\"user@mydomain.com\"```\n\t */\n\tusername: string\n\t/** \n\t * The Avalara account password.\n\t * @example ```\"secret\"```\n\t */\n\tpassword: string\n\t/** \n\t * The Avalara company code.\n\t * @example ```\"MYCOMPANY\"```\n\t */\n\tcompany_code: string\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Avalara website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities.\n\t * @example ```true```\n\t */\n\tddp?: boolean | null\n\n\ttax_categories?: TaxCategoryRel[] | null\n\n}\n\n\ninterface AvalaraAccountUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The Avalara account username.\n\t * @example ```\"user@mydomain.com\"```\n\t */\n\tusername?: string | null\n\t/** \n\t * The Avalara account password.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * The Avalara company code.\n\t * @example ```\"MYCOMPANY\"```\n\t */\n\tcompany_code?: string | null\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Avalara website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * Indicates if the seller is responsible for paying/remitting the customs duty & import tax to the customs authorities.\n\t * @example ```true```\n\t */\n\tddp?: boolean | null\n\n\ttax_categories?: TaxCategoryRel[] | null\n\n}\n\n\nclass AvalaraAccounts extends ApiResource<AvalaraAccount> {\n\n\tstatic readonly TYPE: AvalaraAccountType = 'avalara_accounts' as const\n\n\tasync create(resource: AvalaraAccountCreate, params?: QueryParamsRetrieve<AvalaraAccount>, options?: ResourcesConfig): Promise<AvalaraAccount> {\n\t\treturn this.resources.create<AvalaraAccountCreate, AvalaraAccount>({ ...resource, type: AvalaraAccounts.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AvalaraAccountUpdate, params?: QueryParamsRetrieve<AvalaraAccount>, options?: ResourcesConfig): Promise<AvalaraAccount> {\n\t\treturn this.resources.update<AvalaraAccountUpdate, AvalaraAccount>({ ...resource, type: AvalaraAccounts.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: AvalaraAccounts.TYPE } : id, options)\n\t}\n\n\tasync markets(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _avalaraAccountId = (avalaraAccountId as AvalaraAccount).id || avalaraAccountId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `avalara_accounts/${_avalaraAccountId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _avalaraAccountId = (avalaraAccountId as AvalaraAccount).id || avalaraAccountId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `avalara_accounts/${_avalaraAccountId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _avalaraAccountId = (avalaraAccountId as AvalaraAccount).id || avalaraAccountId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `avalara_accounts/${_avalaraAccountId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _avalaraAccountId = (avalaraAccountId as AvalaraAccount).id || avalaraAccountId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `avalara_accounts/${_avalaraAccountId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync tax_categories(avalaraAccountId: string | AvalaraAccount, params?: QueryParamsList<TaxCategory>, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>> {\n\t\tconst _avalaraAccountId = (avalaraAccountId as AvalaraAccount).id || avalaraAccountId as string\n\t\treturn this.resources.fetch<TaxCategory>({ type: 'tax_categories' }, `avalara_accounts/${_avalaraAccountId}/tax_categories`, params, options) as unknown as ListResponse<TaxCategory>\n\t}\n\n\n\tisAvalaraAccount(resource: any): resource is AvalaraAccount {\n\t\treturn resource.type && (resource.type === AvalaraAccounts.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AvalaraAccountRel {\n\t\treturn super.relationshipOneToOne<AvalaraAccountRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AvalaraAccountRel[] {\n\t\treturn super.relationshipOneToMany<AvalaraAccountRel>(...ids)\n\t}\n\n\n\ttype(): AvalaraAccountType {\n\t\treturn AvalaraAccounts.TYPE\n\t}\n\n}\n\n\nconst instance = new AvalaraAccounts()\nexport default instance\n\nexport type { AvalaraAccounts, AvalaraAccount, AvalaraAccountCreate, AvalaraAccountUpdate, AvalaraAccountType }\n"]}
|