@commercelayer/sdk 8.0.0-beta.6 → 8.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -20
- package/lib/api-BrD0VGs7.d.ts +18490 -0
- package/lib/api-p_JJnFXy.d.cts +18490 -0
- package/lib/api.cjs +356 -340
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +144 -140
- package/lib/bundle-compat.cjs +160 -0
- package/lib/bundle-compat.cjs.map +1 -0
- package/lib/bundle-compat.d.cts +24 -0
- package/lib/bundle-compat.d.ts +22 -0
- package/lib/bundle-compat.js +155 -0
- package/lib/bundle-compat.js.map +1 -0
- package/lib/bundle.cjs +157 -561
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +26 -18
- package/lib/bundle.d.ts +25 -19
- package/lib/bundle.js +146 -563
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-27JY4ULD.js +45 -0
- package/lib/chunk-27JY4ULD.js.map +1 -0
- package/lib/chunk-2A2L2CKF.js +75 -0
- package/lib/chunk-2A2L2CKF.js.map +1 -0
- package/lib/chunk-2FPWAQJJ.js +96 -0
- package/lib/chunk-2FPWAQJJ.js.map +1 -0
- package/lib/chunk-2KTN65O5.cjs +70 -0
- package/lib/chunk-2KTN65O5.cjs.map +1 -0
- package/lib/chunk-2PFTQHFT.js +79 -0
- package/lib/chunk-2PFTQHFT.js.map +1 -0
- package/lib/chunk-2SPJZDGK.js +80 -0
- package/lib/chunk-2SPJZDGK.js.map +1 -0
- package/lib/chunk-2YNRSRZU.cjs +102 -0
- package/lib/chunk-2YNRSRZU.cjs.map +1 -0
- package/lib/chunk-32JKZIM5.js +68 -0
- package/lib/chunk-32JKZIM5.js.map +1 -0
- package/lib/chunk-36O6EEZT.cjs +53 -0
- package/lib/chunk-36O6EEZT.cjs.map +1 -0
- package/lib/chunk-37KCG4S4.cjs +79 -0
- package/lib/chunk-37KCG4S4.cjs.map +1 -0
- package/lib/chunk-3DMYHXGB.js +20 -0
- package/lib/chunk-3DMYHXGB.js.map +1 -0
- package/lib/chunk-3DQIXZAG.js +129 -0
- package/lib/chunk-3DQIXZAG.js.map +1 -0
- package/lib/chunk-3FZPEWUV.cjs +91 -0
- package/lib/chunk-3FZPEWUV.cjs.map +1 -0
- package/lib/chunk-3M6XJ7NN.js +100 -0
- package/lib/chunk-3M6XJ7NN.js.map +1 -0
- package/lib/chunk-3NBRFRLX.cjs +125 -0
- package/lib/chunk-3NBRFRLX.cjs.map +1 -0
- package/lib/chunk-3OLFEEMC.js +100 -0
- package/lib/chunk-3OLFEEMC.js.map +1 -0
- package/lib/chunk-3QD74K3Q.cjs +53 -0
- package/lib/chunk-3QD74K3Q.cjs.map +1 -0
- package/lib/chunk-3SW2ASSY.js +60 -0
- package/lib/chunk-3SW2ASSY.js.map +1 -0
- package/lib/chunk-3XPISUB4.js +42 -0
- package/lib/chunk-3XPISUB4.js.map +1 -0
- package/lib/chunk-47ZNGHD4.js +77 -0
- package/lib/chunk-47ZNGHD4.js.map +1 -0
- package/lib/chunk-4PQ23R44.cjs +62 -0
- package/lib/chunk-4PQ23R44.cjs.map +1 -0
- package/lib/chunk-4VNGP4WP.js +100 -0
- package/lib/chunk-4VNGP4WP.js.map +1 -0
- package/lib/chunk-4XVOXNET.cjs +70 -0
- package/lib/chunk-4XVOXNET.cjs.map +1 -0
- package/lib/chunk-4YWYHTLB.js +68 -0
- package/lib/chunk-4YWYHTLB.js.map +1 -0
- package/lib/chunk-55KBBWVE.cjs +62 -0
- package/lib/chunk-55KBBWVE.cjs.map +1 -0
- package/lib/chunk-5BZCMLOG.cjs +38 -0
- package/lib/chunk-5BZCMLOG.cjs.map +1 -0
- package/lib/chunk-5DKOODMA.cjs +91 -0
- package/lib/chunk-5DKOODMA.cjs.map +1 -0
- package/lib/chunk-5MSW2F5A.js +58 -0
- package/lib/chunk-5MSW2F5A.js.map +1 -0
- package/lib/chunk-5NDRJ2CN.cjs +79 -0
- package/lib/chunk-5NDRJ2CN.cjs.map +1 -0
- package/lib/chunk-5RDGD6N2.js +82 -0
- package/lib/chunk-5RDGD6N2.js.map +1 -0
- package/lib/chunk-5TLQ5NEK.js +60 -0
- package/lib/chunk-5TLQ5NEK.js.map +1 -0
- package/lib/chunk-5WLJRGB6.cjs +89 -0
- package/lib/chunk-5WLJRGB6.cjs.map +1 -0
- package/lib/chunk-5WSJNCYM.cjs +44 -0
- package/lib/chunk-5WSJNCYM.cjs.map +1 -0
- package/lib/chunk-5YY7PVEO.js +191 -0
- package/lib/chunk-5YY7PVEO.js.map +1 -0
- package/lib/chunk-5Z5QSUVM.cjs +71 -0
- package/lib/chunk-5Z5QSUVM.cjs.map +1 -0
- package/lib/chunk-5ZPUTH6R.cjs +62 -0
- package/lib/chunk-5ZPUTH6R.cjs.map +1 -0
- package/lib/chunk-65HWKNSV.cjs +71 -0
- package/lib/chunk-65HWKNSV.cjs.map +1 -0
- package/lib/chunk-6BUTICKQ.js +75 -0
- package/lib/chunk-6BUTICKQ.js.map +1 -0
- package/lib/chunk-6F3SJXD3.cjs +62 -0
- package/lib/chunk-6F3SJXD3.cjs.map +1 -0
- package/lib/chunk-6JIKAK5C.js +77 -0
- package/lib/chunk-6JIKAK5C.js.map +1 -0
- package/lib/chunk-6JP6GEER.cjs +70 -0
- package/lib/chunk-6JP6GEER.cjs.map +1 -0
- package/lib/chunk-6L3AE23J.cjs +193 -0
- package/lib/chunk-6L3AE23J.cjs.map +1 -0
- package/lib/chunk-6NPLS5UO.cjs +60 -0
- package/lib/chunk-6NPLS5UO.cjs.map +1 -0
- package/lib/chunk-6R6A75PL.cjs +712 -0
- package/lib/chunk-6R6A75PL.cjs.map +1 -0
- package/lib/chunk-6TJJD77K.cjs +40 -0
- package/lib/chunk-6TJJD77K.cjs.map +1 -0
- package/lib/chunk-6UATBFH6.cjs +614 -0
- package/lib/chunk-6UATBFH6.cjs.map +1 -0
- package/lib/chunk-7CMX56OH.cjs +62 -0
- package/lib/chunk-7CMX56OH.cjs.map +1 -0
- package/lib/chunk-7CZ5BGBN.js +60 -0
- package/lib/chunk-7CZ5BGBN.js.map +1 -0
- package/lib/chunk-7EGB7KLE.cjs +70 -0
- package/lib/chunk-7EGB7KLE.cjs.map +1 -0
- package/lib/chunk-7FXEYH5P.js +77 -0
- package/lib/chunk-7FXEYH5P.js.map +1 -0
- package/lib/chunk-7HJJTBA5.cjs +88 -0
- package/lib/chunk-7HJJTBA5.cjs.map +1 -0
- package/lib/chunk-7J7U2OVV.cjs +44 -0
- package/lib/chunk-7J7U2OVV.cjs.map +1 -0
- package/lib/chunk-7KAEFUHR.js +58 -0
- package/lib/chunk-7KAEFUHR.js.map +1 -0
- package/lib/chunk-7LWJU3MC.js +77 -0
- package/lib/chunk-7LWJU3MC.js.map +1 -0
- package/lib/chunk-7MKSY64F.cjs +77 -0
- package/lib/chunk-7MKSY64F.cjs.map +1 -0
- package/lib/chunk-7NXUTO5Z.cjs +70 -0
- package/lib/chunk-7NXUTO5Z.cjs.map +1 -0
- package/lib/chunk-7YLXO22M.js +78 -0
- package/lib/chunk-7YLXO22M.js.map +1 -0
- package/lib/chunk-7ZNP5ZRX.cjs +182 -0
- package/lib/chunk-7ZNP5ZRX.cjs.map +1 -0
- package/lib/chunk-A5MOUKBT.cjs +81 -0
- package/lib/chunk-A5MOUKBT.cjs.map +1 -0
- package/lib/chunk-ACLWKVZH.cjs +179 -0
- package/lib/chunk-ACLWKVZH.cjs.map +1 -0
- package/lib/chunk-AH4P3KIO.cjs +198 -0
- package/lib/chunk-AH4P3KIO.cjs.map +1 -0
- package/lib/chunk-AIQS4XI7.cjs +70 -0
- package/lib/chunk-AIQS4XI7.cjs.map +1 -0
- package/lib/chunk-AQ6OHDUF.js +709 -0
- package/lib/chunk-AQ6OHDUF.js.map +1 -0
- package/lib/chunk-ARM4HSQI.cjs +98 -0
- package/lib/chunk-ARM4HSQI.cjs.map +1 -0
- package/lib/chunk-AUQHYYKJ.cjs +60 -0
- package/lib/chunk-AUQHYYKJ.cjs.map +1 -0
- package/lib/chunk-AXXSDR45.js +96 -0
- package/lib/chunk-AXXSDR45.js.map +1 -0
- package/lib/chunk-AYXJJKWA.js +75 -0
- package/lib/chunk-AYXJJKWA.js.map +1 -0
- package/lib/chunk-B5P3GWI5.js +67 -0
- package/lib/chunk-B5P3GWI5.js.map +1 -0
- package/lib/chunk-B5XPPQC7.cjs +70 -0
- package/lib/chunk-B5XPPQC7.cjs.map +1 -0
- package/lib/chunk-BD3ASC6K.cjs +84 -0
- package/lib/chunk-BD3ASC6K.cjs.map +1 -0
- package/lib/chunk-BDZQCGCJ.cjs +77 -0
- package/lib/chunk-BDZQCGCJ.cjs.map +1 -0
- package/lib/chunk-BEANHXLX.js +612 -0
- package/lib/chunk-BEANHXLX.js.map +1 -0
- package/lib/chunk-BF5HDO3M.cjs +70 -0
- package/lib/chunk-BF5HDO3M.cjs.map +1 -0
- package/lib/chunk-BFQFVHLA.cjs +94 -0
- package/lib/chunk-BFQFVHLA.cjs.map +1 -0
- package/lib/chunk-BPANUY47.cjs +22 -0
- package/lib/chunk-BPANUY47.cjs.map +1 -0
- package/lib/chunk-BTFN2FBP.js +69 -0
- package/lib/chunk-BTFN2FBP.js.map +1 -0
- package/lib/chunk-BY57BZ6S.cjs +79 -0
- package/lib/chunk-BY57BZ6S.cjs.map +1 -0
- package/lib/chunk-CDWXHURD.js +96 -0
- package/lib/chunk-CDWXHURD.js.map +1 -0
- package/lib/chunk-CEAYZF3Z.js +120 -0
- package/lib/chunk-CEAYZF3Z.js.map +1 -0
- package/lib/chunk-CEBLLOSH.cjs +79 -0
- package/lib/chunk-CEBLLOSH.cjs.map +1 -0
- package/lib/chunk-CEZGXW2V.cjs +102 -0
- package/lib/chunk-CEZGXW2V.cjs.map +1 -0
- package/lib/chunk-CITYMGFY.js +78 -0
- package/lib/chunk-CITYMGFY.js.map +1 -0
- package/lib/chunk-CK2UROFT.js +68 -0
- package/lib/chunk-CK2UROFT.js.map +1 -0
- package/lib/chunk-CMQ4CS3C.cjs +84 -0
- package/lib/chunk-CMQ4CS3C.cjs.map +1 -0
- package/lib/chunk-CMRTIKRS.cjs +98 -0
- package/lib/chunk-CMRTIKRS.cjs.map +1 -0
- package/lib/chunk-COCVOAAR.js +168 -0
- package/lib/chunk-COCVOAAR.js.map +1 -0
- package/lib/chunk-CPC4EDUN.js +60 -0
- package/lib/chunk-CPC4EDUN.js.map +1 -0
- package/lib/chunk-CQMGOKLY.js +89 -0
- package/lib/chunk-CQMGOKLY.js.map +1 -0
- package/lib/chunk-D433AVZU.cjs +61 -0
- package/lib/chunk-D433AVZU.cjs.map +1 -0
- package/lib/chunk-DGMBHG2D.cjs +122 -0
- package/lib/chunk-DGMBHG2D.cjs.map +1 -0
- package/lib/chunk-DH4T5JRD.cjs +47 -0
- package/lib/chunk-DH4T5JRD.cjs.map +1 -0
- package/lib/chunk-DIDUU3HJ.cjs +98 -0
- package/lib/chunk-DIDUU3HJ.cjs.map +1 -0
- package/lib/chunk-DJRBZJME.js +116 -0
- package/lib/chunk-DJRBZJME.js.map +1 -0
- package/lib/chunk-DN2TPVPQ.js +84 -0
- package/lib/chunk-DN2TPVPQ.js.map +1 -0
- package/lib/chunk-DVXTCITU.js +86 -0
- package/lib/chunk-DVXTCITU.js.map +1 -0
- package/lib/chunk-DXMFGRLZ.js +83 -0
- package/lib/chunk-DXMFGRLZ.js.map +1 -0
- package/lib/chunk-E5XRQXA3.cjs +193 -0
- package/lib/chunk-E5XRQXA3.cjs.map +1 -0
- package/lib/chunk-E6G7T2X4.cjs +14 -0
- package/lib/chunk-E6G7T2X4.cjs.map +1 -0
- package/lib/chunk-ECE464P6.js +68 -0
- package/lib/chunk-ECE464P6.js.map +1 -0
- package/lib/chunk-ECFID6YL.cjs +179 -0
- package/lib/chunk-ECFID6YL.cjs.map +1 -0
- package/lib/chunk-EG2D35UQ.js +77 -0
- package/lib/chunk-EG2D35UQ.js.map +1 -0
- package/lib/chunk-EIPT5P4Q.cjs +120 -0
- package/lib/chunk-EIPT5P4Q.cjs.map +1 -0
- package/lib/chunk-EJXIWONM.cjs +88 -0
- package/lib/chunk-EJXIWONM.cjs.map +1 -0
- package/lib/chunk-ELXHUTOX.js +82 -0
- package/lib/chunk-ELXHUTOX.js.map +1 -0
- package/lib/chunk-ENLBWOGO.cjs +86 -0
- package/lib/chunk-ENLBWOGO.cjs.map +1 -0
- package/lib/chunk-ENY5ZEDH.js +65 -0
- package/lib/chunk-ENY5ZEDH.js.map +1 -0
- package/lib/chunk-EQQVT4VQ.js +77 -0
- package/lib/chunk-EQQVT4VQ.js.map +1 -0
- package/lib/chunk-ESIW5CXF.js +91 -0
- package/lib/chunk-ESIW5CXF.js.map +1 -0
- package/lib/chunk-EWUUQ4L5.cjs +62 -0
- package/lib/chunk-EWUUQ4L5.cjs.map +1 -0
- package/lib/chunk-F5BYJ3P2.js +59 -0
- package/lib/chunk-F5BYJ3P2.js.map +1 -0
- package/lib/chunk-F7QAC5GG.js +33 -0
- package/lib/chunk-F7QAC5GG.js.map +1 -0
- package/lib/chunk-F7T5ONOF.js +163 -0
- package/lib/chunk-F7T5ONOF.js.map +1 -0
- package/lib/chunk-FCBQU5M7.js +79 -0
- package/lib/chunk-FCBQU5M7.js.map +1 -0
- package/lib/chunk-FCHVA2JJ.cjs +70 -0
- package/lib/chunk-FCHVA2JJ.cjs.map +1 -0
- package/lib/chunk-FEANKEWU.cjs +52 -0
- package/lib/chunk-FEANKEWU.cjs.map +1 -0
- package/lib/chunk-FHZ4JRXD.js +118 -0
- package/lib/chunk-FHZ4JRXD.js.map +1 -0
- package/lib/chunk-FIFWQWWX.js +79 -0
- package/lib/chunk-FIFWQWWX.js.map +1 -0
- package/lib/chunk-FIOQCCDK.js +53 -0
- package/lib/chunk-FIOQCCDK.js.map +1 -0
- package/lib/chunk-FJUOPWWJ.js +77 -0
- package/lib/chunk-FJUOPWWJ.js.map +1 -0
- package/lib/chunk-FKZUAC4B.cjs +79 -0
- package/lib/chunk-FKZUAC4B.cjs.map +1 -0
- package/lib/chunk-FRDOPI4T.cjs +79 -0
- package/lib/chunk-FRDOPI4T.cjs.map +1 -0
- package/lib/chunk-FVWXA45V.cjs +179 -0
- package/lib/chunk-FVWXA45V.cjs.map +1 -0
- package/lib/chunk-G2AIQH2C.js +60 -0
- package/lib/chunk-G2AIQH2C.js.map +1 -0
- package/lib/chunk-G34UCKUZ.cjs +91 -0
- package/lib/chunk-G34UCKUZ.cjs.map +1 -0
- package/lib/chunk-G4LJVHIH.js +42 -0
- package/lib/chunk-G4LJVHIH.js.map +1 -0
- package/lib/chunk-G6D5G6IF.cjs +166 -0
- package/lib/chunk-G6D5G6IF.cjs.map +1 -0
- package/lib/chunk-GGISBFEU.cjs +69 -0
- package/lib/chunk-GGISBFEU.cjs.map +1 -0
- package/lib/chunk-GGZNCXGR.js +24 -0
- package/lib/chunk-GGZNCXGR.js.map +1 -0
- package/lib/chunk-GINNGSFR.cjs +120 -0
- package/lib/chunk-GINNGSFR.cjs.map +1 -0
- package/lib/chunk-GNSSCO7B.js +38 -0
- package/lib/chunk-GNSSCO7B.js.map +1 -0
- package/lib/chunk-GOF6YS2G.js +241 -0
- package/lib/chunk-GOF6YS2G.js.map +1 -0
- package/lib/chunk-GOK6KXUU.cjs +52 -0
- package/lib/chunk-GOK6KXUU.cjs.map +1 -0
- package/lib/chunk-GQNMEV3Q.cjs +243 -0
- package/lib/chunk-GQNMEV3Q.cjs.map +1 -0
- package/lib/chunk-GQU2VL6D.js +59 -0
- package/lib/chunk-GQU2VL6D.js.map +1 -0
- package/lib/chunk-GU6AYW56.cjs +118 -0
- package/lib/chunk-GU6AYW56.cjs.map +1 -0
- package/lib/chunk-GYKGN67Z.cjs +70 -0
- package/lib/chunk-GYKGN67Z.cjs.map +1 -0
- package/lib/chunk-H2SPYNQJ.js +68 -0
- package/lib/chunk-H2SPYNQJ.js.map +1 -0
- package/lib/chunk-H3JUBJ6N.js +68 -0
- package/lib/chunk-H3JUBJ6N.js.map +1 -0
- package/lib/chunk-HBQRDVGM.cjs +79 -0
- package/lib/chunk-HBQRDVGM.cjs.map +1 -0
- package/lib/chunk-HEL2QWYR.js +196 -0
- package/lib/chunk-HEL2QWYR.js.map +1 -0
- package/lib/chunk-HFIPME7H.cjs +86 -0
- package/lib/chunk-HFIPME7H.cjs.map +1 -0
- package/lib/chunk-HI4ESMWV.cjs +44 -0
- package/lib/chunk-HI4ESMWV.cjs.map +1 -0
- package/lib/chunk-HKHSTGP4.cjs +120 -0
- package/lib/chunk-HKHSTGP4.cjs.map +1 -0
- package/lib/chunk-HLMRSUWY.cjs +88 -0
- package/lib/chunk-HLMRSUWY.cjs.map +1 -0
- package/lib/chunk-HXHL7HRZ.cjs +179 -0
- package/lib/chunk-HXHL7HRZ.cjs.map +1 -0
- package/lib/chunk-HZMMDAUQ.cjs +179 -0
- package/lib/chunk-HZMMDAUQ.cjs.map +1 -0
- package/lib/chunk-I2JMQPUT.js +42 -0
- package/lib/chunk-I2JMQPUT.js.map +1 -0
- package/lib/chunk-I5EJCLGC.js +51 -0
- package/lib/chunk-I5EJCLGC.js.map +1 -0
- package/lib/chunk-I6QTNC6Y.cjs +81 -0
- package/lib/chunk-I6QTNC6Y.cjs.map +1 -0
- package/lib/chunk-IBQCEBT3.cjs +96 -0
- package/lib/chunk-IBQCEBT3.cjs.map +1 -0
- package/lib/chunk-IC7XKJ55.cjs +61 -0
- package/lib/chunk-IC7XKJ55.cjs.map +1 -0
- package/lib/chunk-ICFJKNCL.js +89 -0
- package/lib/chunk-ICFJKNCL.js.map +1 -0
- package/lib/chunk-IJS5RGNW.js +77 -0
- package/lib/chunk-IJS5RGNW.js.map +1 -0
- package/lib/chunk-ISR6D4PG.js +68 -0
- package/lib/chunk-ISR6D4PG.js.map +1 -0
- package/lib/chunk-IXKNMEYJ.js +82 -0
- package/lib/chunk-IXKNMEYJ.js.map +1 -0
- package/lib/chunk-J6K5KGCO.js +84 -0
- package/lib/chunk-J6K5KGCO.js.map +1 -0
- package/lib/chunk-JBZ3YPHB.js +60 -0
- package/lib/chunk-JBZ3YPHB.js.map +1 -0
- package/lib/chunk-JGMO7E75.cjs +193 -0
- package/lib/chunk-JGMO7E75.cjs.map +1 -0
- package/lib/chunk-JHK2ADFO.js +116 -0
- package/lib/chunk-JHK2ADFO.js.map +1 -0
- package/lib/chunk-JO3634ZB.cjs +84 -0
- package/lib/chunk-JO3634ZB.cjs.map +1 -0
- package/lib/chunk-JUZQNX6I.js +42 -0
- package/lib/chunk-JUZQNX6I.js.map +1 -0
- package/lib/chunk-JYEJBSLC.cjs +91 -0
- package/lib/chunk-JYEJBSLC.cjs.map +1 -0
- package/lib/chunk-K4W33IZP.cjs +70 -0
- package/lib/chunk-K4W33IZP.cjs.map +1 -0
- package/lib/chunk-KBQOXEYZ.cjs +81 -0
- package/lib/chunk-KBQOXEYZ.cjs.map +1 -0
- package/lib/chunk-KIYHIGIY.cjs +179 -0
- package/lib/chunk-KIYHIGIY.cjs.map +1 -0
- package/lib/chunk-KN6QR2VT.cjs +79 -0
- package/lib/chunk-KN6QR2VT.cjs.map +1 -0
- package/lib/chunk-LEVF3A5F.cjs +93 -0
- package/lib/chunk-LEVF3A5F.cjs.map +1 -0
- package/lib/chunk-LMJZ2K6P.js +77 -0
- package/lib/chunk-LMJZ2K6P.js.map +1 -0
- package/lib/chunk-LSBBCEX5.js +305 -0
- package/lib/chunk-LSBBCEX5.js.map +1 -0
- package/lib/chunk-LSH2CQLI.js +68 -0
- package/lib/chunk-LSH2CQLI.js.map +1 -0
- package/lib/chunk-LV5MM4CO.js +118 -0
- package/lib/chunk-LV5MM4CO.js.map +1 -0
- package/lib/chunk-LVETDD3O.cjs +67 -0
- package/lib/chunk-LVETDD3O.cjs.map +1 -0
- package/lib/chunk-LYKCJHYR.js +94 -0
- package/lib/chunk-LYKCJHYR.js.map +1 -0
- package/lib/chunk-M2L4OZJ6.cjs +88 -0
- package/lib/chunk-M2L4OZJ6.cjs.map +1 -0
- package/lib/chunk-M6EAUX5W.js +35 -0
- package/lib/chunk-M6EAUX5W.js.map +1 -0
- package/lib/chunk-MF5IYI5N.js +11 -0
- package/lib/chunk-MF5IYI5N.js.map +1 -0
- package/lib/chunk-MFEIFGUU.js +124 -0
- package/lib/chunk-MFEIFGUU.js.map +1 -0
- package/lib/chunk-MIJ6DRSS.js +51 -0
- package/lib/chunk-MIJ6DRSS.js.map +1 -0
- package/lib/chunk-MLMK3BYP.js +27 -0
- package/lib/chunk-MLMK3BYP.js.map +1 -0
- package/lib/chunk-MN7T5QVU.cjs +70 -0
- package/lib/chunk-MN7T5QVU.cjs.map +1 -0
- package/lib/chunk-MO3ADFGB.js +50 -0
- package/lib/chunk-MO3ADFGB.js.map +1 -0
- package/lib/chunk-MWQLDBWJ.js +51 -0
- package/lib/chunk-MWQLDBWJ.js.map +1 -0
- package/lib/chunk-N25XG3WB.cjs +77 -0
- package/lib/chunk-N25XG3WB.cjs.map +1 -0
- package/lib/chunk-N7HMWUKO.js +177 -0
- package/lib/chunk-N7HMWUKO.js.map +1 -0
- package/lib/chunk-N7RIOQEE.cjs +205 -0
- package/lib/chunk-N7RIOQEE.cjs.map +1 -0
- package/lib/chunk-NCHSV74A.js +180 -0
- package/lib/chunk-NCHSV74A.js.map +1 -0
- package/lib/chunk-NHCNGRUW.js +321 -0
- package/lib/chunk-NHCNGRUW.js.map +1 -0
- package/lib/chunk-NJJ3AQFY.cjs +75 -0
- package/lib/chunk-NJJ3AQFY.cjs.map +1 -0
- package/lib/chunk-NL47AA7V.cjs +323 -0
- package/lib/chunk-NL47AA7V.cjs.map +1 -0
- package/lib/chunk-NXWBNR4A.js +75 -0
- package/lib/chunk-NXWBNR4A.js.map +1 -0
- package/lib/chunk-NZ5R6RZP.js +113 -0
- package/lib/chunk-NZ5R6RZP.js.map +1 -0
- package/lib/chunk-O4UBVFXZ.cjs +80 -0
- package/lib/chunk-O4UBVFXZ.cjs.map +1 -0
- package/lib/chunk-O5NLCRMD.cjs +131 -0
- package/lib/chunk-O5NLCRMD.cjs.map +1 -0
- package/lib/chunk-O7ZCUDYF.js +191 -0
- package/lib/chunk-O7ZCUDYF.js.map +1 -0
- package/lib/chunk-OGZMICIO.cjs +62 -0
- package/lib/chunk-OGZMICIO.cjs.map +1 -0
- package/lib/chunk-OH4R7NRW.cjs +556 -0
- package/lib/chunk-OH4R7NRW.cjs.map +1 -0
- package/lib/chunk-OI4ZCY65.js +68 -0
- package/lib/chunk-OI4ZCY65.js.map +1 -0
- package/lib/chunk-OJGNL5XA.js +87 -0
- package/lib/chunk-OJGNL5XA.js.map +1 -0
- package/lib/chunk-OKXSPFSZ.js +65 -0
- package/lib/chunk-OKXSPFSZ.js.map +1 -0
- package/lib/chunk-OOS4I2K6.cjs +70 -0
- package/lib/chunk-OOS4I2K6.cjs.map +1 -0
- package/lib/chunk-OTRQ6CRD.cjs +94 -0
- package/lib/chunk-OTRQ6CRD.cjs.map +1 -0
- package/lib/chunk-OVAMOIAR.js +51 -0
- package/lib/chunk-OVAMOIAR.js.map +1 -0
- package/lib/chunk-OXGJX4G5.cjs +79 -0
- package/lib/chunk-OXGJX4G5.cjs.map +1 -0
- package/lib/chunk-OXHQKMPQ.js +20 -0
- package/lib/chunk-OXHQKMPQ.js.map +1 -0
- package/lib/chunk-OXLZLXNI.js +86 -0
- package/lib/chunk-OXLZLXNI.js.map +1 -0
- package/lib/chunk-OXTZP6XB.js +123 -0
- package/lib/chunk-OXTZP6XB.js.map +1 -0
- package/lib/chunk-OZ6L33P7.cjs +40 -0
- package/lib/chunk-OZ6L33P7.cjs.map +1 -0
- package/lib/chunk-P2IUL4K4.cjs +52 -0
- package/lib/chunk-P2IUL4K4.cjs.map +1 -0
- package/lib/chunk-P7FIQR6P.cjs +91 -0
- package/lib/chunk-P7FIQR6P.cjs.map +1 -0
- package/lib/chunk-PA3XKIYI.cjs +98 -0
- package/lib/chunk-PA3XKIYI.cjs.map +1 -0
- package/lib/chunk-PXI3FFHR.js +542 -0
- package/lib/chunk-PXI3FFHR.js.map +1 -0
- package/lib/chunk-QELDOHCC.cjs +63 -0
- package/lib/chunk-QELDOHCC.cjs.map +1 -0
- package/lib/chunk-QHJ6WOJI.js +69 -0
- package/lib/chunk-QHJ6WOJI.js.map +1 -0
- package/lib/chunk-QIYG7O7V.js +77 -0
- package/lib/chunk-QIYG7O7V.js.map +1 -0
- package/lib/chunk-QM3JEWRN.cjs +93 -0
- package/lib/chunk-QM3JEWRN.cjs.map +1 -0
- package/lib/chunk-QQAD7R24.js +61 -0
- package/lib/chunk-QQAD7R24.js.map +1 -0
- package/lib/chunk-QX4Z7FX4.js +177 -0
- package/lib/chunk-QX4Z7FX4.js.map +1 -0
- package/lib/chunk-QZBOTY6C.js +203 -0
- package/lib/chunk-QZBOTY6C.js.map +1 -0
- package/lib/chunk-R4LYMSQW.cjs +61 -0
- package/lib/chunk-R4LYMSQW.cjs.map +1 -0
- package/lib/chunk-R7MCKMYA.js +177 -0
- package/lib/chunk-R7MCKMYA.js.map +1 -0
- package/lib/chunk-R7PD7BIN.js +164 -0
- package/lib/chunk-R7PD7BIN.js.map +1 -0
- package/lib/chunk-RHVGUEEZ.cjs +82 -0
- package/lib/chunk-RHVGUEEZ.cjs.map +1 -0
- package/lib/chunk-RNVBXM52.cjs +79 -0
- package/lib/chunk-RNVBXM52.cjs.map +1 -0
- package/lib/chunk-ROIDGFBH.js +68 -0
- package/lib/chunk-ROIDGFBH.js.map +1 -0
- package/lib/chunk-RT6CH7MF.js +120 -0
- package/lib/chunk-RT6CH7MF.js.map +1 -0
- package/lib/chunk-RZXG6SYW.js +50 -0
- package/lib/chunk-RZXG6SYW.js.map +1 -0
- package/lib/chunk-S2E6K3CX.js +88 -0
- package/lib/chunk-S2E6K3CX.js.map +1 -0
- package/lib/chunk-S3KPKHRF.cjs +79 -0
- package/lib/chunk-S3KPKHRF.cjs.map +1 -0
- package/lib/chunk-S3PPZ4MN.cjs +170 -0
- package/lib/chunk-S3PPZ4MN.cjs.map +1 -0
- package/lib/chunk-S4N7TNLE.js +132 -0
- package/lib/chunk-S4N7TNLE.js.map +1 -0
- package/lib/chunk-S6LUE4BK.cjs +35 -0
- package/lib/chunk-S6LUE4BK.cjs.map +1 -0
- package/lib/chunk-SAU26L56.js +91 -0
- package/lib/chunk-SAU26L56.js.map +1 -0
- package/lib/chunk-SB36RX2R.cjs +85 -0
- package/lib/chunk-SB36RX2R.cjs.map +1 -0
- package/lib/chunk-SD6TP5QY.cjs +29 -0
- package/lib/chunk-SD6TP5QY.cjs.map +1 -0
- package/lib/chunk-SITF5ZAC.js +68 -0
- package/lib/chunk-SITF5ZAC.js.map +1 -0
- package/lib/chunk-SQTCUWGR.cjs +67 -0
- package/lib/chunk-SQTCUWGR.cjs.map +1 -0
- package/lib/chunk-SSXDR6PH.js +86 -0
- package/lib/chunk-SSXDR6PH.js.map +1 -0
- package/lib/chunk-SYRDEPVH.js +68 -0
- package/lib/chunk-SYRDEPVH.js.map +1 -0
- package/lib/chunk-TBRFFV55.cjs +53 -0
- package/lib/chunk-TBRFFV55.cjs.map +1 -0
- package/lib/chunk-TEOE3WNS.cjs +102 -0
- package/lib/chunk-TEOE3WNS.cjs.map +1 -0
- package/lib/chunk-TI5JILQ4.cjs +134 -0
- package/lib/chunk-TI5JILQ4.cjs.map +1 -0
- package/lib/chunk-TVRITF4Q.cjs +164 -0
- package/lib/chunk-TVRITF4Q.cjs.map +1 -0
- package/lib/chunk-U222MLC5.cjs +88 -0
- package/lib/chunk-U222MLC5.cjs.map +1 -0
- package/lib/chunk-UARW4YQW.cjs +70 -0
- package/lib/chunk-UARW4YQW.cjs.map +1 -0
- package/lib/chunk-UCTSAXGF.cjs +122 -0
- package/lib/chunk-UCTSAXGF.cjs.map +1 -0
- package/lib/chunk-UE2ALA2G.js +36 -0
- package/lib/chunk-UE2ALA2G.js.map +1 -0
- package/lib/chunk-UEXD6ROE.cjs +44 -0
- package/lib/chunk-UEXD6ROE.cjs.map +1 -0
- package/lib/chunk-ULS6IZPC.js +86 -0
- package/lib/chunk-ULS6IZPC.js.map +1 -0
- package/lib/chunk-UUEYW4SI.cjs +55 -0
- package/lib/chunk-UUEYW4SI.cjs.map +1 -0
- package/lib/chunk-V3NFJBSM.js +50 -0
- package/lib/chunk-V3NFJBSM.js.map +1 -0
- package/lib/chunk-V4KUITPI.js +86 -0
- package/lib/chunk-V4KUITPI.js.map +1 -0
- package/lib/chunk-VBQSG5M5.js +92 -0
- package/lib/chunk-VBQSG5M5.js.map +1 -0
- package/lib/chunk-VCRPNIEH.cjs +70 -0
- package/lib/chunk-VCRPNIEH.cjs.map +1 -0
- package/lib/chunk-VE3SPP3G.js +177 -0
- package/lib/chunk-VE3SPP3G.js.map +1 -0
- package/lib/chunk-VNBY6YSL.js +82 -0
- package/lib/chunk-VNBY6YSL.js.map +1 -0
- package/lib/chunk-VNML47KB.js +59 -0
- package/lib/chunk-VNML47KB.js.map +1 -0
- package/lib/chunk-VP4IZXYD.cjs +26 -0
- package/lib/chunk-VP4IZXYD.cjs.map +1 -0
- package/lib/chunk-VVZDCEJY.js +68 -0
- package/lib/chunk-VVZDCEJY.js.map +1 -0
- package/lib/chunk-VWLPSTPL.cjs +91 -0
- package/lib/chunk-VWLPSTPL.cjs.map +1 -0
- package/lib/chunk-VY2QQ6GL.cjs +126 -0
- package/lib/chunk-VY2QQ6GL.cjs.map +1 -0
- package/lib/chunk-VZPW7ARO.cjs +90 -0
- package/lib/chunk-VZPW7ARO.cjs.map +1 -0
- package/lib/chunk-W35HDHDU.js +191 -0
- package/lib/chunk-W35HDHDU.js.map +1 -0
- package/lib/chunk-W3DJZSUC.js +68 -0
- package/lib/chunk-W3DJZSUC.js.map +1 -0
- package/lib/chunk-WCBPR2FU.js +177 -0
- package/lib/chunk-WCBPR2FU.js.map +1 -0
- package/lib/chunk-WJLT2Q6F.cjs +79 -0
- package/lib/chunk-WJLT2Q6F.cjs.map +1 -0
- package/lib/chunk-WKDK4TTS.cjs +80 -0
- package/lib/chunk-WKDK4TTS.cjs.map +1 -0
- package/lib/chunk-WMDLFAGR.cjs +53 -0
- package/lib/chunk-WMDLFAGR.cjs.map +1 -0
- package/lib/chunk-WO5LQQSK.cjs +4 -0
- package/lib/chunk-WO5LQQSK.cjs.map +1 -0
- package/lib/chunk-WOVCY6ON.cjs +22 -0
- package/lib/chunk-WOVCY6ON.cjs.map +1 -0
- package/lib/chunk-WTD6QSTI.js +89 -0
- package/lib/chunk-WTD6QSTI.js.map +1 -0
- package/lib/chunk-WVVUEB6A.cjs +70 -0
- package/lib/chunk-WVVUEB6A.cjs.map +1 -0
- package/lib/chunk-X6J7WQEA.js +89 -0
- package/lib/chunk-X6J7WQEA.js.map +1 -0
- package/lib/chunk-XE46YXZW.js +51 -0
- package/lib/chunk-XE46YXZW.js.map +1 -0
- package/lib/chunk-XGCAYVWC.js +73 -0
- package/lib/chunk-XGCAYVWC.js.map +1 -0
- package/lib/chunk-XKFKPTKY.cjs +115 -0
- package/lib/chunk-XKFKPTKY.cjs.map +1 -0
- package/lib/chunk-XS3PGMW7.cjs +77 -0
- package/lib/chunk-XS3PGMW7.cjs.map +1 -0
- package/lib/chunk-XUIGE5EC.js +68 -0
- package/lib/chunk-XUIGE5EC.js.map +1 -0
- package/lib/chunk-Y6XMMFGD.js +68 -0
- package/lib/chunk-Y6XMMFGD.js.map +1 -0
- package/lib/chunk-Y7FJ5Q2J.cjs +72 -0
- package/lib/chunk-Y7FJ5Q2J.cjs.map +1 -0
- package/lib/chunk-YJ3O5XLC.js +3 -0
- package/lib/chunk-YJ3O5XLC.js.map +1 -0
- package/lib/chunk-YKSGPQWF.cjs +165 -0
- package/lib/chunk-YKSGPQWF.cjs.map +1 -0
- package/lib/chunk-YLGAEBN4.js +96 -0
- package/lib/chunk-YLGAEBN4.js.map +1 -0
- package/lib/chunk-YOTHMSEP.js +68 -0
- package/lib/chunk-YOTHMSEP.js.map +1 -0
- package/lib/chunk-YPAKLMVE.js +60 -0
- package/lib/chunk-YPAKLMVE.js.map +1 -0
- package/lib/chunk-YQLZRFYW.js +77 -0
- package/lib/chunk-YQLZRFYW.js.map +1 -0
- package/lib/chunk-YXFYXDGG.js +154 -0
- package/lib/chunk-YXFYXDGG.js.map +1 -0
- package/lib/chunk-YZDBPUNJ.cjs +313 -0
- package/lib/chunk-YZDBPUNJ.cjs.map +1 -0
- package/lib/chunk-Z3LIS3PJ.js +77 -0
- package/lib/chunk-Z3LIS3PJ.js.map +1 -0
- package/lib/chunk-ZI7VCQUJ.cjs +84 -0
- package/lib/chunk-ZI7VCQUJ.cjs.map +1 -0
- package/lib/chunk-ZJX6FYOO.cjs +53 -0
- package/lib/chunk-ZJX6FYOO.cjs.map +1 -0
- package/lib/chunk-ZMIDBZVE.js +89 -0
- package/lib/chunk-ZMIDBZVE.js.map +1 -0
- package/lib/chunk-ZTDGE4FR.js +92 -0
- package/lib/chunk-ZTDGE4FR.js.map +1 -0
- package/lib/chunk-ZV322LW2.js +89 -0
- package/lib/chunk-ZV322LW2.js.map +1 -0
- package/lib/chunk-ZX75XWHD.js +177 -0
- package/lib/chunk-ZX75XWHD.js.map +1 -0
- package/lib/client.cjs +7 -6
- package/lib/client.d.cts +2 -1
- package/lib/client.d.ts +2 -1
- package/lib/client.js +6 -5
- package/lib/commercelayer.cjs +20 -15
- package/lib/commercelayer.d.cts +11 -6
- package/lib/commercelayer.d.ts +11 -6
- package/lib/commercelayer.js +10 -9
- package/lib/config.cjs +2 -2
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +14 -14
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-D4JGyBOl.d.cts +55 -0
- package/lib/fetch-D4JGyBOl.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +154 -669
- package/lib/index.d.cts +6 -4
- package/lib/index.d.ts +5 -3
- package/lib/index.js +147 -142
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +11 -10
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +9 -8
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +6 -6
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +3 -3
- package/lib/resource.cjs +14 -13
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +9 -8
- package/lib/resources/addresses.cjs +11 -10
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +10 -9
- package/lib/resources/adjustments.cjs +11 -10
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +10 -9
- package/lib/resources/adyen_gateways.cjs +11 -10
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +10 -9
- package/lib/resources/adyen_payments.cjs +11 -10
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +10 -9
- package/lib/resources/applications.cjs +11 -10
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +10 -9
- package/lib/resources/attachments.cjs +11 -10
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +10 -9
- package/lib/resources/authorizations.cjs +11 -10
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +10 -9
- package/lib/resources/avalara_accounts.cjs +11 -10
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +10 -9
- package/lib/resources/axerve_gateways.cjs +11 -10
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +10 -9
- package/lib/resources/axerve_payments.cjs +11 -10
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +10 -9
- package/lib/resources/billing_info_validation_rules.cjs +21 -0
- package/lib/resources/billing_info_validation_rules.cjs.map +1 -0
- package/lib/resources/billing_info_validation_rules.d.cts +7 -0
- package/lib/resources/billing_info_validation_rules.d.ts +4 -0
- package/lib/resources/billing_info_validation_rules.js +13 -0
- package/lib/resources/billing_info_validation_rules.js.map +1 -0
- package/lib/resources/bing_geocoders.cjs +11 -10
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +10 -9
- package/lib/resources/braintree_gateways.cjs +11 -10
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +10 -9
- package/lib/resources/braintree_payments.cjs +11 -10
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +10 -9
- package/lib/resources/bundles.cjs +11 -10
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +10 -9
- package/lib/resources/buy_x_pay_y_promotions.cjs +11 -10
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +10 -9
- package/lib/resources/captures.cjs +11 -10
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +10 -9
- package/lib/resources/carrier_accounts.cjs +11 -10
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +10 -9
- package/lib/resources/checkout_com_gateways.cjs +11 -10
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +10 -9
- package/lib/resources/checkout_com_payments.cjs +11 -10
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +10 -9
- package/lib/resources/cleanups.cjs +11 -10
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +10 -9
- package/lib/resources/coupon_codes_promotion_rules.cjs +11 -10
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +10 -9
- package/lib/resources/coupon_recipients.cjs +11 -10
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +10 -9
- package/lib/resources/coupons.cjs +11 -10
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +10 -9
- package/lib/resources/custom_promotion_rules.cjs +11 -10
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +10 -9
- package/lib/resources/customer_addresses.cjs +11 -10
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +10 -9
- package/lib/resources/customer_groups.cjs +11 -10
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +10 -9
- package/lib/resources/customer_password_resets.cjs +11 -10
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +10 -9
- package/lib/resources/customer_payment_sources.cjs +11 -10
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +10 -9
- package/lib/resources/customer_subscriptions.cjs +11 -10
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +10 -9
- package/lib/resources/customers.cjs +11 -10
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +10 -9
- package/lib/resources/delivery_lead_times.cjs +11 -10
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +10 -9
- package/lib/resources/discount_engine_items.cjs +11 -10
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +10 -9
- package/lib/resources/discount_engines.cjs +11 -10
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +10 -9
- package/lib/resources/easypost_pickups.cjs +11 -10
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +10 -9
- package/lib/resources/event_callbacks.cjs +11 -10
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +10 -9
- package/lib/resources/event_stores.cjs +11 -10
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/event_stores.js +10 -9
- package/lib/resources/events.cjs +11 -10
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +10 -9
- package/lib/resources/exports.cjs +11 -10
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +10 -9
- package/lib/resources/external_gateways.cjs +11 -10
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +10 -9
- package/lib/resources/external_payments.cjs +11 -10
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +10 -9
- package/lib/resources/external_promotions.cjs +11 -10
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +10 -9
- package/lib/resources/external_tax_calculators.cjs +11 -10
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +10 -9
- package/lib/resources/fixed_amount_promotions.cjs +11 -10
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +10 -9
- package/lib/resources/fixed_price_promotions.cjs +11 -10
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +10 -9
- package/lib/resources/flex_promotions.cjs +11 -10
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +10 -9
- package/lib/resources/free_gift_promotions.cjs +11 -10
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +10 -9
- package/lib/resources/free_shipping_promotions.cjs +11 -10
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +10 -9
- package/lib/resources/geocoders.cjs +11 -10
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +10 -9
- package/lib/resources/gift_card_recipients.cjs +11 -10
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +10 -9
- package/lib/resources/gift_cards.cjs +11 -10
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +10 -9
- package/lib/resources/google_geocoders.cjs +11 -10
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +10 -9
- package/lib/resources/imports.cjs +11 -10
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +10 -9
- package/lib/resources/in_stock_subscriptions.cjs +11 -10
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +10 -9
- package/lib/resources/inventory_models.cjs +11 -10
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +10 -9
- package/lib/resources/inventory_return_locations.cjs +11 -10
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +10 -9
- package/lib/resources/inventory_stock_locations.cjs +11 -10
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +10 -9
- package/lib/resources/klarna_gateways.cjs +11 -10
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +10 -9
- package/lib/resources/klarna_payments.cjs +11 -10
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +10 -9
- package/lib/resources/line_item_options.cjs +11 -10
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +10 -9
- package/lib/resources/line_items.cjs +11 -10
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +10 -9
- package/lib/resources/links.cjs +11 -10
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +10 -9
- package/lib/resources/manual_gateways.cjs +11 -10
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +10 -9
- package/lib/resources/manual_tax_calculators.cjs +11 -10
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +10 -9
- package/lib/resources/markets.cjs +11 -10
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +10 -9
- package/lib/resources/merchants.cjs +11 -10
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +10 -9
- package/lib/resources/notifications.cjs +11 -10
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +10 -9
- package/lib/resources/order_amount_promotion_rules.cjs +11 -10
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +10 -9
- package/lib/resources/order_copies.cjs +11 -10
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +10 -9
- package/lib/resources/order_factories.cjs +11 -10
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +10 -9
- package/lib/resources/order_subscription_items.cjs +11 -10
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +10 -9
- package/lib/resources/order_subscriptions.cjs +11 -10
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +10 -9
- package/lib/resources/order_validation_rules.cjs +21 -0
- package/lib/resources/order_validation_rules.cjs.map +1 -0
- package/lib/resources/order_validation_rules.d.cts +7 -0
- package/lib/resources/order_validation_rules.d.ts +4 -0
- package/lib/resources/order_validation_rules.js +13 -0
- package/lib/resources/order_validation_rules.js.map +1 -0
- package/lib/resources/orders.cjs +11 -10
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +10 -9
- package/lib/resources/organizations.cjs +11 -10
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +10 -9
- package/lib/resources/packages.cjs +11 -10
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +10 -9
- package/lib/resources/parcel_line_items.cjs +11 -10
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +10 -9
- package/lib/resources/parcels.cjs +11 -10
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +10 -9
- package/lib/resources/payment_gateways.cjs +11 -10
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +10 -9
- package/lib/resources/payment_methods.cjs +11 -10
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +10 -9
- package/lib/resources/payment_options.cjs +11 -10
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +10 -9
- package/lib/resources/paypal_gateways.cjs +11 -10
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +10 -9
- package/lib/resources/paypal_payments.cjs +11 -10
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +10 -9
- package/lib/resources/percentage_discount_promotions.cjs +11 -10
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +10 -9
- package/lib/resources/pickups.cjs +11 -10
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +10 -9
- package/lib/resources/price_frequency_tiers.cjs +11 -10
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +10 -9
- package/lib/resources/price_list_schedulers.cjs +11 -10
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +10 -9
- package/lib/resources/price_lists.cjs +11 -10
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +10 -9
- package/lib/resources/price_tiers.cjs +11 -10
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +10 -9
- package/lib/resources/price_volume_tiers.cjs +11 -10
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +10 -9
- package/lib/resources/prices.cjs +11 -10
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +10 -9
- package/lib/resources/promotion_rules.cjs +11 -10
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +10 -9
- package/lib/resources/promotions.cjs +11 -10
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +10 -9
- package/lib/resources/recurring_order_copies.cjs +11 -10
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +10 -9
- package/lib/resources/refunds.cjs +11 -10
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +10 -9
- package/lib/resources/reserved_stocks.cjs +11 -10
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +10 -9
- package/lib/resources/resource_errors.cjs +11 -10
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +10 -9
- package/lib/resources/return_line_items.cjs +11 -10
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +10 -9
- package/lib/resources/returns.cjs +11 -10
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +10 -9
- package/lib/resources/satispay_gateways.cjs +11 -10
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +10 -9
- package/lib/resources/satispay_payments.cjs +11 -10
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +10 -9
- package/lib/resources/shipment_line_items.cjs +21 -0
- package/lib/resources/shipment_line_items.cjs.map +1 -0
- package/lib/resources/shipment_line_items.d.cts +7 -0
- package/lib/resources/shipment_line_items.d.ts +4 -0
- package/lib/resources/shipment_line_items.js +13 -0
- package/lib/resources/shipment_line_items.js.map +1 -0
- package/lib/resources/shipments.cjs +11 -10
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +10 -9
- package/lib/resources/shipping_categories.cjs +11 -10
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +10 -9
- package/lib/resources/shipping_method_tiers.cjs +11 -10
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +10 -9
- package/lib/resources/shipping_methods.cjs +11 -10
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +10 -9
- package/lib/resources/shipping_weight_tiers.cjs +11 -10
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +10 -9
- package/lib/resources/shipping_zones.cjs +11 -10
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +10 -9
- package/lib/resources/sku_list_items.cjs +11 -10
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +10 -9
- package/lib/resources/sku_list_promotion_rules.cjs +11 -10
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +10 -9
- package/lib/resources/sku_lists.cjs +11 -10
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +10 -9
- package/lib/resources/sku_options.cjs +11 -10
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +10 -9
- package/lib/resources/skus.cjs +11 -10
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +10 -9
- package/lib/resources/stock_items.cjs +11 -10
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +10 -9
- package/lib/resources/stock_line_items.cjs +11 -10
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +10 -9
- package/lib/resources/stock_locations.cjs +11 -10
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +10 -9
- package/lib/resources/stock_reservations.cjs +11 -10
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +10 -9
- package/lib/resources/stock_transfers.cjs +11 -10
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +10 -9
- package/lib/resources/stores.cjs +11 -10
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +10 -9
- package/lib/resources/stripe_gateways.cjs +11 -10
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +10 -9
- package/lib/resources/stripe_payments.cjs +11 -10
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +10 -9
- package/lib/resources/stripe_tax_accounts.cjs +11 -10
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +10 -9
- package/lib/resources/subscription_models.cjs +11 -10
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +10 -9
- package/lib/resources/tags.cjs +11 -10
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +10 -9
- package/lib/resources/talon_one_accounts.cjs +11 -10
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +10 -9
- package/lib/resources/tax_calculators.cjs +11 -10
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +10 -9
- package/lib/resources/tax_categories.cjs +11 -10
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +10 -9
- package/lib/resources/tax_rules.cjs +11 -10
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +10 -9
- package/lib/resources/taxjar_accounts.cjs +11 -10
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +10 -9
- package/lib/resources/transactions.cjs +11 -10
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +10 -9
- package/lib/resources/vertex_accounts.cjs +11 -10
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +10 -9
- package/lib/resources/voids.cjs +11 -10
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +10 -9
- package/lib/resources/webhooks.cjs +11 -10
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +10 -9
- package/lib/resources/wire_transfers.cjs +11 -10
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +10 -9
- package/lib/single-client.cjs +708 -0
- package/lib/single-client.cjs.map +1 -0
- package/lib/single-client.d.cts +11 -0
- package/lib/single-client.d.ts +8 -0
- package/lib/single-client.js +149 -0
- package/lib/single-client.js.map +1 -0
- package/lib/static.cjs +12 -11
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +11 -10
- package/lib/util.cjs +5 -5
- package/lib/util.js +1 -1
- package/lib/version.cjs +17 -0
- package/lib/version.cjs.map +1 -0
- package/lib/version.d.cts +4 -0
- package/lib/version.d.ts +4 -0
- package/lib/version.js +4 -0
- package/lib/version.js.map +1 -0
- package/package.json +27 -15
- package/lib/api-DB1n06hG.d.ts +0 -18181
- package/lib/api-DFBhmbb1.d.cts +0 -18181
- package/lib/chunk-22RVT2J2.js +0 -20
- package/lib/chunk-22RVT2J2.js.map +0 -1
- package/lib/chunk-26Q2QNAQ.cjs +0 -30
- package/lib/chunk-26Q2QNAQ.cjs.map +0 -1
- package/lib/chunk-27YKND3S.js +0 -93
- package/lib/chunk-27YKND3S.js.map +0 -1
- package/lib/chunk-2CMJ2SZM.cjs +0 -57
- package/lib/chunk-2CMJ2SZM.cjs.map +0 -1
- package/lib/chunk-2D7XHAVQ.js +0 -59
- package/lib/chunk-2D7XHAVQ.js.map +0 -1
- package/lib/chunk-2HNW5KNF.js +0 -45
- package/lib/chunk-2HNW5KNF.js.map +0 -1
- package/lib/chunk-2NWYRIJZ.js +0 -41
- package/lib/chunk-2NWYRIJZ.js.map +0 -1
- package/lib/chunk-2QXENUO7.cjs +0 -51
- package/lib/chunk-2QXENUO7.cjs.map +0 -1
- package/lib/chunk-2TOLW3UO.cjs +0 -56
- package/lib/chunk-2TOLW3UO.cjs.map +0 -1
- package/lib/chunk-2VI6OWLV.cjs +0 -61
- package/lib/chunk-2VI6OWLV.cjs.map +0 -1
- package/lib/chunk-2WVBEUMO.js +0 -53
- package/lib/chunk-2WVBEUMO.js.map +0 -1
- package/lib/chunk-2XDVUDJS.cjs +0 -34
- package/lib/chunk-2XDVUDJS.cjs.map +0 -1
- package/lib/chunk-35Q3ZTZC.js +0 -75
- package/lib/chunk-35Q3ZTZC.js.map +0 -1
- package/lib/chunk-3EX76AZW.js +0 -3
- package/lib/chunk-3EX76AZW.js.map +0 -1
- package/lib/chunk-3GOADUES.cjs +0 -63
- package/lib/chunk-3GOADUES.cjs.map +0 -1
- package/lib/chunk-3PAID2YG.cjs +0 -54
- package/lib/chunk-3PAID2YG.cjs.map +0 -1
- package/lib/chunk-3PXZUPZE.cjs +0 -43
- package/lib/chunk-3PXZUPZE.cjs.map +0 -1
- package/lib/chunk-3YS6NHUH.cjs +0 -50
- package/lib/chunk-3YS6NHUH.cjs.map +0 -1
- package/lib/chunk-43JU63UQ.js +0 -51
- package/lib/chunk-43JU63UQ.js.map +0 -1
- package/lib/chunk-47OW2LZH.cjs +0 -47
- package/lib/chunk-47OW2LZH.cjs.map +0 -1
- package/lib/chunk-47UCMORS.cjs +0 -51
- package/lib/chunk-47UCMORS.cjs.map +0 -1
- package/lib/chunk-4C55SMIS.js +0 -55
- package/lib/chunk-4C55SMIS.js.map +0 -1
- package/lib/chunk-4E5BE47D.cjs +0 -61
- package/lib/chunk-4E5BE47D.cjs.map +0 -1
- package/lib/chunk-4MV6VICV.js +0 -35
- package/lib/chunk-4MV6VICV.js.map +0 -1
- package/lib/chunk-4OM2Y7BS.cjs +0 -46
- package/lib/chunk-4OM2Y7BS.cjs.map +0 -1
- package/lib/chunk-4P3MBQVY.cjs +0 -156
- package/lib/chunk-4P3MBQVY.cjs.map +0 -1
- package/lib/chunk-4PNXT6OT.js +0 -36
- package/lib/chunk-4PNXT6OT.js.map +0 -1
- package/lib/chunk-4S3I222F.cjs +0 -285
- package/lib/chunk-4S3I222F.cjs.map +0 -1
- package/lib/chunk-4YR6JIEN.js +0 -154
- package/lib/chunk-4YR6JIEN.js.map +0 -1
- package/lib/chunk-4ZIGP3FO.cjs +0 -59
- package/lib/chunk-4ZIGP3FO.cjs.map +0 -1
- package/lib/chunk-54VT56WS.cjs +0 -126
- package/lib/chunk-54VT56WS.cjs.map +0 -1
- package/lib/chunk-56324YRB.js +0 -54
- package/lib/chunk-56324YRB.js.map +0 -1
- package/lib/chunk-5AFBGKJ4.js +0 -53
- package/lib/chunk-5AFBGKJ4.js.map +0 -1
- package/lib/chunk-5P67UEWW.cjs +0 -56
- package/lib/chunk-5P67UEWW.cjs.map +0 -1
- package/lib/chunk-5RJW5RAK.js +0 -40
- package/lib/chunk-5RJW5RAK.js.map +0 -1
- package/lib/chunk-5TLVMKOO.cjs +0 -52
- package/lib/chunk-5TLVMKOO.cjs.map +0 -1
- package/lib/chunk-5YMHXTJG.cjs +0 -4
- package/lib/chunk-5YMHXTJG.cjs.map +0 -1
- package/lib/chunk-6BXCQFTI.js +0 -37
- package/lib/chunk-6BXCQFTI.js.map +0 -1
- package/lib/chunk-6EUKX4RC.cjs +0 -47
- package/lib/chunk-6EUKX4RC.cjs.map +0 -1
- package/lib/chunk-6SQ4LNTP.js +0 -54
- package/lib/chunk-6SQ4LNTP.js.map +0 -1
- package/lib/chunk-73P72ADW.js +0 -54
- package/lib/chunk-73P72ADW.js.map +0 -1
- package/lib/chunk-7473V4XD.js +0 -59
- package/lib/chunk-7473V4XD.js.map +0 -1
- package/lib/chunk-74JBCKFT.cjs +0 -30
- package/lib/chunk-74JBCKFT.cjs.map +0 -1
- package/lib/chunk-77HRCSA5.cjs +0 -55
- package/lib/chunk-77HRCSA5.cjs.map +0 -1
- package/lib/chunk-7B46YAQU.cjs +0 -98
- package/lib/chunk-7B46YAQU.cjs.map +0 -1
- package/lib/chunk-7GP6774Q.js +0 -45
- package/lib/chunk-7GP6774Q.js.map +0 -1
- package/lib/chunk-7P36FTRX.js +0 -44
- package/lib/chunk-7P36FTRX.js.map +0 -1
- package/lib/chunk-7RZTCBDR.cjs +0 -22
- package/lib/chunk-7RZTCBDR.cjs.map +0 -1
- package/lib/chunk-7TVIC5GW.cjs +0 -56
- package/lib/chunk-7TVIC5GW.cjs.map +0 -1
- package/lib/chunk-7ZBEKCA5.cjs +0 -75
- package/lib/chunk-7ZBEKCA5.cjs.map +0 -1
- package/lib/chunk-A6E33WC3.cjs +0 -53
- package/lib/chunk-A6E33WC3.cjs.map +0 -1
- package/lib/chunk-A7BK3Z22.cjs +0 -38
- package/lib/chunk-A7BK3Z22.cjs.map +0 -1
- package/lib/chunk-AEP6D5QV.cjs +0 -38
- package/lib/chunk-AEP6D5QV.cjs.map +0 -1
- package/lib/chunk-AN2Y6XMS.js +0 -28
- package/lib/chunk-AN2Y6XMS.js.map +0 -1
- package/lib/chunk-AP5WOJMJ.js +0 -49
- package/lib/chunk-AP5WOJMJ.js.map +0 -1
- package/lib/chunk-APMYXRFX.js +0 -96
- package/lib/chunk-APMYXRFX.js.map +0 -1
- package/lib/chunk-APTNONWZ.js +0 -40
- package/lib/chunk-APTNONWZ.js.map +0 -1
- package/lib/chunk-AS6CAIIM.js +0 -65
- package/lib/chunk-AS6CAIIM.js.map +0 -1
- package/lib/chunk-ATK6TFVA.cjs +0 -43
- package/lib/chunk-ATK6TFVA.cjs.map +0 -1
- package/lib/chunk-AVYPSM4A.cjs +0 -43
- package/lib/chunk-AVYPSM4A.cjs.map +0 -1
- package/lib/chunk-AWEYC4IM.js +0 -45
- package/lib/chunk-AWEYC4IM.js.map +0 -1
- package/lib/chunk-AWLS4LR4.cjs +0 -53
- package/lib/chunk-AWLS4LR4.cjs.map +0 -1
- package/lib/chunk-AY7MWZ7Y.js +0 -48
- package/lib/chunk-AY7MWZ7Y.js.map +0 -1
- package/lib/chunk-BANZUNLK.js +0 -40
- package/lib/chunk-BANZUNLK.js.map +0 -1
- package/lib/chunk-BQE56RMQ.js +0 -45
- package/lib/chunk-BQE56RMQ.js.map +0 -1
- package/lib/chunk-BRWPB33S.cjs +0 -56
- package/lib/chunk-BRWPB33S.cjs.map +0 -1
- package/lib/chunk-C7AHHS53.cjs +0 -51
- package/lib/chunk-C7AHHS53.cjs.map +0 -1
- package/lib/chunk-CDFM6RPB.cjs +0 -63
- package/lib/chunk-CDFM6RPB.cjs.map +0 -1
- package/lib/chunk-CH4K74JN.cjs +0 -55
- package/lib/chunk-CH4K74JN.cjs.map +0 -1
- package/lib/chunk-CJPAOOG5.cjs +0 -34
- package/lib/chunk-CJPAOOG5.cjs.map +0 -1
- package/lib/chunk-CKSLVNN7.js +0 -45
- package/lib/chunk-CKSLVNN7.js.map +0 -1
- package/lib/chunk-CM4DAVO4.js +0 -40
- package/lib/chunk-CM4DAVO4.js.map +0 -1
- package/lib/chunk-CNMMWVI6.js +0 -48
- package/lib/chunk-CNMMWVI6.js.map +0 -1
- package/lib/chunk-CQXW23HJ.cjs +0 -56
- package/lib/chunk-CQXW23HJ.cjs.map +0 -1
- package/lib/chunk-CTTA6S5K.cjs +0 -61
- package/lib/chunk-CTTA6S5K.cjs.map +0 -1
- package/lib/chunk-CUYSBPPJ.js +0 -45
- package/lib/chunk-CUYSBPPJ.js.map +0 -1
- package/lib/chunk-D3VJO4HP.js +0 -40
- package/lib/chunk-D3VJO4HP.js.map +0 -1
- package/lib/chunk-D3YQS6YA.js +0 -66
- package/lib/chunk-D3YQS6YA.js.map +0 -1
- package/lib/chunk-DBJEPEBT.js +0 -45
- package/lib/chunk-DBJEPEBT.js.map +0 -1
- package/lib/chunk-DFUIO6OY.js +0 -53
- package/lib/chunk-DFUIO6OY.js.map +0 -1
- package/lib/chunk-DJRBEANR.js +0 -57
- package/lib/chunk-DJRBEANR.js.map +0 -1
- package/lib/chunk-DNVIOKDM.cjs +0 -55
- package/lib/chunk-DNVIOKDM.cjs.map +0 -1
- package/lib/chunk-DQUGPCYZ.js +0 -37
- package/lib/chunk-DQUGPCYZ.js.map +0 -1
- package/lib/chunk-E2UP2BWG.cjs +0 -39
- package/lib/chunk-E2UP2BWG.cjs.map +0 -1
- package/lib/chunk-E5G3LS6Y.js +0 -53
- package/lib/chunk-E5G3LS6Y.js.map +0 -1
- package/lib/chunk-EEXXJFJO.cjs +0 -47
- package/lib/chunk-EEXXJFJO.cjs.map +0 -1
- package/lib/chunk-EI2KOTCG.js +0 -37
- package/lib/chunk-EI2KOTCG.js.map +0 -1
- package/lib/chunk-ELTYSKHB.js +0 -68
- package/lib/chunk-ELTYSKHB.js.map +0 -1
- package/lib/chunk-EO7RCCV2.js +0 -45
- package/lib/chunk-EO7RCCV2.js.map +0 -1
- package/lib/chunk-EOV3GRPM.js +0 -27
- package/lib/chunk-EOV3GRPM.js.map +0 -1
- package/lib/chunk-EQ5ASSXQ.cjs +0 -95
- package/lib/chunk-EQ5ASSXQ.cjs.map +0 -1
- package/lib/chunk-EQZMPSGR.js +0 -55
- package/lib/chunk-EQZMPSGR.js.map +0 -1
- package/lib/chunk-ESI7A34I.js +0 -52
- package/lib/chunk-ESI7A34I.js.map +0 -1
- package/lib/chunk-EWFAT7KA.js +0 -283
- package/lib/chunk-EWFAT7KA.js.map +0 -1
- package/lib/chunk-F2PKXIJQ.js +0 -52
- package/lib/chunk-F2PKXIJQ.js.map +0 -1
- package/lib/chunk-F6OOTDNW.js +0 -49
- package/lib/chunk-F6OOTDNW.js.map +0 -1
- package/lib/chunk-FANJUOI3.cjs +0 -51
- package/lib/chunk-FANJUOI3.cjs.map +0 -1
- package/lib/chunk-FECG6WIR.js +0 -96
- package/lib/chunk-FECG6WIR.js.map +0 -1
- package/lib/chunk-FRVEAP6J.js +0 -73
- package/lib/chunk-FRVEAP6J.js.map +0 -1
- package/lib/chunk-FUQA5XT7.cjs +0 -47
- package/lib/chunk-FUQA5XT7.cjs.map +0 -1
- package/lib/chunk-FVRWASHH.js +0 -32
- package/lib/chunk-FVRWASHH.js.map +0 -1
- package/lib/chunk-FZKENL3J.js +0 -53
- package/lib/chunk-FZKENL3J.js.map +0 -1
- package/lib/chunk-GCY5B73J.cjs +0 -47
- package/lib/chunk-GCY5B73J.cjs.map +0 -1
- package/lib/chunk-GIZE32ZY.js +0 -73
- package/lib/chunk-GIZE32ZY.js.map +0 -1
- package/lib/chunk-GZPZZ262.js +0 -49
- package/lib/chunk-GZPZZ262.js.map +0 -1
- package/lib/chunk-H6K62JGC.cjs +0 -47
- package/lib/chunk-H6K62JGC.cjs.map +0 -1
- package/lib/chunk-H7J2F6QG.cjs +0 -47
- package/lib/chunk-H7J2F6QG.cjs.map +0 -1
- package/lib/chunk-H7KZGQXZ.cjs +0 -71
- package/lib/chunk-H7KZGQXZ.cjs.map +0 -1
- package/lib/chunk-HFKNOYWV.cjs +0 -98
- package/lib/chunk-HFKNOYWV.cjs.map +0 -1
- package/lib/chunk-HLR5KZ6S.js +0 -51
- package/lib/chunk-HLR5KZ6S.js.map +0 -1
- package/lib/chunk-HZYPMFTS.cjs +0 -49
- package/lib/chunk-HZYPMFTS.cjs.map +0 -1
- package/lib/chunk-I2E2P72P.cjs +0 -70
- package/lib/chunk-I2E2P72P.cjs.map +0 -1
- package/lib/chunk-I64ZCB4W.cjs +0 -55
- package/lib/chunk-I64ZCB4W.cjs.map +0 -1
- package/lib/chunk-IG2P6JOK.js +0 -40
- package/lib/chunk-IG2P6JOK.js.map +0 -1
- package/lib/chunk-IG6UCDED.js +0 -59
- package/lib/chunk-IG6UCDED.js.map +0 -1
- package/lib/chunk-IIUBCLDN.js +0 -47
- package/lib/chunk-IIUBCLDN.js.map +0 -1
- package/lib/chunk-IKCYKGYL.js +0 -151
- package/lib/chunk-IKCYKGYL.js.map +0 -1
- package/lib/chunk-IKU3CD3A.cjs +0 -75
- package/lib/chunk-IKU3CD3A.cjs.map +0 -1
- package/lib/chunk-IL2AXMUE.js +0 -45
- package/lib/chunk-IL2AXMUE.js.map +0 -1
- package/lib/chunk-IL66CF3O.js +0 -105
- package/lib/chunk-IL66CF3O.js.map +0 -1
- package/lib/chunk-ILAFDO4M.js +0 -36
- package/lib/chunk-ILAFDO4M.js.map +0 -1
- package/lib/chunk-INBIEH6H.cjs +0 -44
- package/lib/chunk-INBIEH6H.cjs.map +0 -1
- package/lib/chunk-IOSR7D3F.cjs +0 -47
- package/lib/chunk-IOSR7D3F.cjs.map +0 -1
- package/lib/chunk-IOYGVLML.js +0 -41
- package/lib/chunk-IOYGVLML.js.map +0 -1
- package/lib/chunk-IP5G2VCS.cjs +0 -38
- package/lib/chunk-IP5G2VCS.cjs.map +0 -1
- package/lib/chunk-IUGXRDL5.js +0 -102
- package/lib/chunk-IUGXRDL5.js.map +0 -1
- package/lib/chunk-IWH7CXBG.js +0 -124
- package/lib/chunk-IWH7CXBG.js.map +0 -1
- package/lib/chunk-IYGFGGZR.js +0 -59
- package/lib/chunk-IYGFGGZR.js.map +0 -1
- package/lib/chunk-IYQFTOVG.cjs +0 -39
- package/lib/chunk-IYQFTOVG.cjs.map +0 -1
- package/lib/chunk-J2ULMBWQ.js +0 -89
- package/lib/chunk-J2ULMBWQ.js.map +0 -1
- package/lib/chunk-JARZZUPY.js +0 -93
- package/lib/chunk-JARZZUPY.js.map +0 -1
- package/lib/chunk-JBKJAYRL.cjs +0 -50
- package/lib/chunk-JBKJAYRL.cjs.map +0 -1
- package/lib/chunk-JE3P5NJP.cjs +0 -56
- package/lib/chunk-JE3P5NJP.cjs.map +0 -1
- package/lib/chunk-JGTC32IT.cjs +0 -69
- package/lib/chunk-JGTC32IT.cjs.map +0 -1
- package/lib/chunk-JHYHQV3E.js +0 -67
- package/lib/chunk-JHYHQV3E.js.map +0 -1
- package/lib/chunk-JIDX6RAT.js +0 -103
- package/lib/chunk-JIDX6RAT.js.map +0 -1
- package/lib/chunk-JIQRQ5TK.cjs +0 -39
- package/lib/chunk-JIQRQ5TK.cjs.map +0 -1
- package/lib/chunk-JMKSIDZI.cjs +0 -51
- package/lib/chunk-JMKSIDZI.cjs.map +0 -1
- package/lib/chunk-JR6TYHVG.js +0 -41
- package/lib/chunk-JR6TYHVG.js.map +0 -1
- package/lib/chunk-JRVZ4JQI.js +0 -32
- package/lib/chunk-JRVZ4JQI.js.map +0 -1
- package/lib/chunk-JSHKAVYF.js +0 -45
- package/lib/chunk-JSHKAVYF.js.map +0 -1
- package/lib/chunk-K277GYCD.cjs +0 -40
- package/lib/chunk-K277GYCD.cjs.map +0 -1
- package/lib/chunk-K3GPCGMJ.cjs +0 -47
- package/lib/chunk-K3GPCGMJ.cjs.map +0 -1
- package/lib/chunk-KATZAZKF.cjs +0 -56
- package/lib/chunk-KATZAZKF.cjs.map +0 -1
- package/lib/chunk-KC46F2PJ.cjs +0 -47
- package/lib/chunk-KC46F2PJ.cjs.map +0 -1
- package/lib/chunk-KJWEQIEM.js +0 -54
- package/lib/chunk-KJWEQIEM.js.map +0 -1
- package/lib/chunk-KLO6RFMQ.cjs +0 -89
- package/lib/chunk-KLO6RFMQ.cjs.map +0 -1
- package/lib/chunk-KN2KHVGW.js +0 -93
- package/lib/chunk-KN2KHVGW.js.map +0 -1
- package/lib/chunk-KU5M6CZ5.js +0 -48
- package/lib/chunk-KU5M6CZ5.js.map +0 -1
- package/lib/chunk-KUZBO6ZM.js +0 -54
- package/lib/chunk-KUZBO6ZM.js.map +0 -1
- package/lib/chunk-KZDGS2SG.cjs +0 -70
- package/lib/chunk-KZDGS2SG.cjs.map +0 -1
- package/lib/chunk-L4PEYYXQ.cjs +0 -51
- package/lib/chunk-L4PEYYXQ.cjs.map +0 -1
- package/lib/chunk-L7FT6NDZ.cjs +0 -284
- package/lib/chunk-L7FT6NDZ.cjs.map +0 -1
- package/lib/chunk-LHESCZ5L.cjs +0 -39
- package/lib/chunk-LHESCZ5L.cjs.map +0 -1
- package/lib/chunk-LP52UBLY.js +0 -54
- package/lib/chunk-LP52UBLY.js.map +0 -1
- package/lib/chunk-LPP7TYFN.js +0 -45
- package/lib/chunk-LPP7TYFN.js.map +0 -1
- package/lib/chunk-LQ5GKVLT.cjs +0 -163
- package/lib/chunk-LQ5GKVLT.cjs.map +0 -1
- package/lib/chunk-LS7VSSB4.js +0 -49
- package/lib/chunk-LS7VSSB4.js.map +0 -1
- package/lib/chunk-LSISPTNQ.cjs +0 -47
- package/lib/chunk-LSISPTNQ.cjs.map +0 -1
- package/lib/chunk-LZO46NMA.js +0 -60
- package/lib/chunk-LZO46NMA.js.map +0 -1
- package/lib/chunk-M22WZEWB.js +0 -37
- package/lib/chunk-M22WZEWB.js.map +0 -1
- package/lib/chunk-M63P3MQC.cjs +0 -51
- package/lib/chunk-M63P3MQC.cjs.map +0 -1
- package/lib/chunk-M7EUSLT2.js +0 -51
- package/lib/chunk-M7EUSLT2.js.map +0 -1
- package/lib/chunk-M7SVKQ7R.cjs +0 -51
- package/lib/chunk-M7SVKQ7R.cjs.map +0 -1
- package/lib/chunk-MFDKS22G.js +0 -536
- package/lib/chunk-MFDKS22G.js.map +0 -1
- package/lib/chunk-MHNJALUB.cjs +0 -42
- package/lib/chunk-MHNJALUB.cjs.map +0 -1
- package/lib/chunk-MOYV2F4C.js +0 -50
- package/lib/chunk-MOYV2F4C.js.map +0 -1
- package/lib/chunk-MVXKHM42.cjs +0 -47
- package/lib/chunk-MVXKHM42.cjs.map +0 -1
- package/lib/chunk-N2TACGKJ.js +0 -59
- package/lib/chunk-N2TACGKJ.js.map +0 -1
- package/lib/chunk-NGJN2PES.cjs +0 -95
- package/lib/chunk-NGJN2PES.cjs.map +0 -1
- package/lib/chunk-NIFNQI3P.js +0 -49
- package/lib/chunk-NIFNQI3P.js.map +0 -1
- package/lib/chunk-NLL7EH7Y.cjs +0 -42
- package/lib/chunk-NLL7EH7Y.cjs.map +0 -1
- package/lib/chunk-NOGYLNW5.cjs +0 -49
- package/lib/chunk-NOGYLNW5.cjs.map +0 -1
- package/lib/chunk-NPZA6AMN.js +0 -95
- package/lib/chunk-NPZA6AMN.js.map +0 -1
- package/lib/chunk-NSMPVEO4.js +0 -49
- package/lib/chunk-NSMPVEO4.js.map +0 -1
- package/lib/chunk-NURW5BJN.js +0 -37
- package/lib/chunk-NURW5BJN.js.map +0 -1
- package/lib/chunk-NV364EJH.js +0 -47
- package/lib/chunk-NV364EJH.js.map +0 -1
- package/lib/chunk-NWPF43O7.js +0 -50
- package/lib/chunk-NWPF43O7.js.map +0 -1
- package/lib/chunk-O3UJT5JJ.cjs +0 -54
- package/lib/chunk-O3UJT5JJ.cjs.map +0 -1
- package/lib/chunk-O6QJMGK7.cjs +0 -56
- package/lib/chunk-O6QJMGK7.cjs.map +0 -1
- package/lib/chunk-OBNGBDLS.js +0 -47
- package/lib/chunk-OBNGBDLS.js.map +0 -1
- package/lib/chunk-OEMRZEYB.js +0 -45
- package/lib/chunk-OEMRZEYB.js.map +0 -1
- package/lib/chunk-OF4M6NEX.cjs +0 -46
- package/lib/chunk-OF4M6NEX.cjs.map +0 -1
- package/lib/chunk-OLJT7GB7.js +0 -31
- package/lib/chunk-OLJT7GB7.js.map +0 -1
- package/lib/chunk-ONVG32V5.cjs +0 -63
- package/lib/chunk-ONVG32V5.cjs.map +0 -1
- package/lib/chunk-P2IDAXTS.cjs +0 -62
- package/lib/chunk-P2IDAXTS.cjs.map +0 -1
- package/lib/chunk-P47JG2WA.js +0 -48
- package/lib/chunk-P47JG2WA.js.map +0 -1
- package/lib/chunk-P5EEPVZA.cjs +0 -77
- package/lib/chunk-P5EEPVZA.cjs.map +0 -1
- package/lib/chunk-PB6VKR7P.js +0 -49
- package/lib/chunk-PB6VKR7P.js.map +0 -1
- package/lib/chunk-PBEQTSJS.cjs +0 -47
- package/lib/chunk-PBEQTSJS.cjs.map +0 -1
- package/lib/chunk-PEC5CKS7.cjs +0 -22
- package/lib/chunk-PEC5CKS7.cjs.map +0 -1
- package/lib/chunk-PIHQS6OG.js +0 -153
- package/lib/chunk-PIHQS6OG.js.map +0 -1
- package/lib/chunk-PL6A37WA.js +0 -45
- package/lib/chunk-PL6A37WA.js.map +0 -1
- package/lib/chunk-PMV3JPUR.cjs +0 -51
- package/lib/chunk-PMV3JPUR.cjs.map +0 -1
- package/lib/chunk-PQJ2ODW3.cjs +0 -67
- package/lib/chunk-PQJ2ODW3.cjs.map +0 -1
- package/lib/chunk-PUBFRIEQ.cjs +0 -95
- package/lib/chunk-PUBFRIEQ.cjs.map +0 -1
- package/lib/chunk-PULH7AI4.cjs +0 -68
- package/lib/chunk-PULH7AI4.cjs.map +0 -1
- package/lib/chunk-PUTVVRLC.js +0 -69
- package/lib/chunk-PUTVVRLC.js.map +0 -1
- package/lib/chunk-PVBBO54F.js +0 -49
- package/lib/chunk-PVBBO54F.js.map +0 -1
- package/lib/chunk-Q3WUCLM5.js +0 -37
- package/lib/chunk-Q3WUCLM5.js.map +0 -1
- package/lib/chunk-QDZI3I46.cjs +0 -43
- package/lib/chunk-QDZI3I46.cjs.map +0 -1
- package/lib/chunk-QF6DOS2C.js +0 -42
- package/lib/chunk-QF6DOS2C.js.map +0 -1
- package/lib/chunk-QI4UFW5A.js +0 -59
- package/lib/chunk-QI4UFW5A.js.map +0 -1
- package/lib/chunk-QJDQS6PE.cjs +0 -107
- package/lib/chunk-QJDQS6PE.cjs.map +0 -1
- package/lib/chunk-QTBUH3V7.js +0 -61
- package/lib/chunk-QTBUH3V7.js.map +0 -1
- package/lib/chunk-QVJZ2PSX.cjs +0 -51
- package/lib/chunk-QVJZ2PSX.cjs.map +0 -1
- package/lib/chunk-QXXLGQVN.js +0 -45
- package/lib/chunk-QXXLGQVN.js.map +0 -1
- package/lib/chunk-RDXEF27B.js +0 -44
- package/lib/chunk-RDXEF27B.js.map +0 -1
- package/lib/chunk-RDZZJ22W.cjs +0 -39
- package/lib/chunk-RDZZJ22W.cjs.map +0 -1
- package/lib/chunk-RGGHPNOB.js +0 -49
- package/lib/chunk-RGGHPNOB.js.map +0 -1
- package/lib/chunk-RKD7U6QH.cjs +0 -51
- package/lib/chunk-RKD7U6QH.cjs.map +0 -1
- package/lib/chunk-RMTTRB7R.js +0 -51
- package/lib/chunk-RMTTRB7R.js.map +0 -1
- package/lib/chunk-RNJOCB3T.cjs +0 -42
- package/lib/chunk-RNJOCB3T.cjs.map +0 -1
- package/lib/chunk-RQAOPSUW.cjs +0 -47
- package/lib/chunk-RQAOPSUW.cjs.map +0 -1
- package/lib/chunk-RW4KKMPX.js +0 -93
- package/lib/chunk-RW4KKMPX.js.map +0 -1
- package/lib/chunk-SGXMH2JP.cjs +0 -29
- package/lib/chunk-SGXMH2JP.cjs.map +0 -1
- package/lib/chunk-SOOB4KI7.cjs +0 -53
- package/lib/chunk-SOOB4KI7.cjs.map +0 -1
- package/lib/chunk-SSHXUS6Q.js +0 -49
- package/lib/chunk-SSHXUS6Q.js.map +0 -1
- package/lib/chunk-STQYJKBK.cjs +0 -55
- package/lib/chunk-STQYJKBK.cjs.map +0 -1
- package/lib/chunk-SZARKLAL.js +0 -68
- package/lib/chunk-SZARKLAL.js.map +0 -1
- package/lib/chunk-SZM64XMO.cjs +0 -68
- package/lib/chunk-SZM64XMO.cjs.map +0 -1
- package/lib/chunk-T2DEYIX6.cjs +0 -57
- package/lib/chunk-T2DEYIX6.cjs.map +0 -1
- package/lib/chunk-T2YGQC4C.js +0 -61
- package/lib/chunk-T2YGQC4C.js.map +0 -1
- package/lib/chunk-T5OEKW7A.cjs +0 -55
- package/lib/chunk-T5OEKW7A.cjs.map +0 -1
- package/lib/chunk-T6CBFUT6.cjs +0 -51
- package/lib/chunk-T6CBFUT6.cjs.map +0 -1
- package/lib/chunk-TGINKJDS.cjs +0 -49
- package/lib/chunk-TGINKJDS.cjs.map +0 -1
- package/lib/chunk-TMSNRZEW.cjs +0 -50
- package/lib/chunk-TMSNRZEW.cjs.map +0 -1
- package/lib/chunk-TRDTLOUY.js +0 -66
- package/lib/chunk-TRDTLOUY.js.map +0 -1
- package/lib/chunk-TTVTRX76.cjs +0 -93
- package/lib/chunk-TTVTRX76.cjs.map +0 -1
- package/lib/chunk-TUKV2ZIA.cjs +0 -52
- package/lib/chunk-TUKV2ZIA.cjs.map +0 -1
- package/lib/chunk-TVKGUM2Z.js +0 -99
- package/lib/chunk-TVKGUM2Z.js.map +0 -1
- package/lib/chunk-U6G7T5WX.cjs +0 -47
- package/lib/chunk-U6G7T5WX.cjs.map +0 -1
- package/lib/chunk-UFUZNSZI.cjs +0 -61
- package/lib/chunk-UFUZNSZI.cjs.map +0 -1
- package/lib/chunk-UFW7KJWK.js +0 -54
- package/lib/chunk-UFW7KJWK.js.map +0 -1
- package/lib/chunk-UHZABEQZ.js +0 -45
- package/lib/chunk-UHZABEQZ.js.map +0 -1
- package/lib/chunk-UIRXTLC6.cjs +0 -61
- package/lib/chunk-UIRXTLC6.cjs.map +0 -1
- package/lib/chunk-UJ4OEOZA.js +0 -87
- package/lib/chunk-UJ4OEOZA.js.map +0 -1
- package/lib/chunk-UL4JQZUD.cjs +0 -42
- package/lib/chunk-UL4JQZUD.cjs.map +0 -1
- package/lib/chunk-UNPVTCLZ.cjs +0 -47
- package/lib/chunk-UNPVTCLZ.cjs.map +0 -1
- package/lib/chunk-UQQTNQX3.cjs +0 -153
- package/lib/chunk-UQQTNQX3.cjs.map +0 -1
- package/lib/chunk-USP4O34Q.js +0 -28
- package/lib/chunk-USP4O34Q.js.map +0 -1
- package/lib/chunk-UTQEHWH2.js +0 -54
- package/lib/chunk-UTQEHWH2.js.map +0 -1
- package/lib/chunk-UV6BETTC.js +0 -48
- package/lib/chunk-UV6BETTC.js.map +0 -1
- package/lib/chunk-UXLDPLOA.js +0 -45
- package/lib/chunk-UXLDPLOA.js.map +0 -1
- package/lib/chunk-V6VQMQQX.js +0 -91
- package/lib/chunk-V6VQMQQX.js.map +0 -1
- package/lib/chunk-V74OBMS3.cjs +0 -95
- package/lib/chunk-V74OBMS3.cjs.map +0 -1
- package/lib/chunk-VA6VDBQS.js +0 -41
- package/lib/chunk-VA6VDBQS.js.map +0 -1
- package/lib/chunk-VB7XUWBF.cjs +0 -47
- package/lib/chunk-VB7XUWBF.cjs.map +0 -1
- package/lib/chunk-VESU72KU.js +0 -93
- package/lib/chunk-VESU72KU.js.map +0 -1
- package/lib/chunk-VEV4DZKI.cjs +0 -51
- package/lib/chunk-VEV4DZKI.cjs.map +0 -1
- package/lib/chunk-VI2NCCWC.js +0 -49
- package/lib/chunk-VI2NCCWC.js.map +0 -1
- package/lib/chunk-VTSEVEKJ.cjs +0 -53
- package/lib/chunk-VTSEVEKJ.cjs.map +0 -1
- package/lib/chunk-VUEZCOXT.cjs +0 -33
- package/lib/chunk-VUEZCOXT.cjs.map +0 -1
- package/lib/chunk-VVS2M4QH.js +0 -53
- package/lib/chunk-VVS2M4QH.js.map +0 -1
- package/lib/chunk-VWUS4YUX.js +0 -49
- package/lib/chunk-VWUS4YUX.js.map +0 -1
- package/lib/chunk-VXXJ3CIC.js +0 -49
- package/lib/chunk-VXXJ3CIC.js.map +0 -1
- package/lib/chunk-VZQLDW2G.cjs +0 -95
- package/lib/chunk-VZQLDW2G.cjs.map +0 -1
- package/lib/chunk-WMM5EI62.js +0 -24
- package/lib/chunk-WMM5EI62.js.map +0 -1
- package/lib/chunk-WO5PFLID.js +0 -45
- package/lib/chunk-WO5PFLID.js.map +0 -1
- package/lib/chunk-WWUZP5BE.cjs +0 -50
- package/lib/chunk-WWUZP5BE.cjs.map +0 -1
- package/lib/chunk-X55DEMOC.js +0 -45
- package/lib/chunk-X55DEMOC.js.map +0 -1
- package/lib/chunk-X5TTCMYD.cjs +0 -105
- package/lib/chunk-X5TTCMYD.cjs.map +0 -1
- package/lib/chunk-XEAXNFP4.js +0 -49
- package/lib/chunk-XEAXNFP4.js.map +0 -1
- package/lib/chunk-XK7ZO7EI.js +0 -40
- package/lib/chunk-XK7ZO7EI.js.map +0 -1
- package/lib/chunk-XPPCVN6T.cjs +0 -53
- package/lib/chunk-XPPCVN6T.cjs.map +0 -1
- package/lib/chunk-XREISFN4.cjs +0 -42
- package/lib/chunk-XREISFN4.cjs.map +0 -1
- package/lib/chunk-XU6ZCB7C.cjs +0 -47
- package/lib/chunk-XU6ZCB7C.cjs.map +0 -1
- package/lib/chunk-XWBNNCYU.cjs +0 -97
- package/lib/chunk-XWBNNCYU.cjs.map +0 -1
- package/lib/chunk-XWIVM4OM.cjs +0 -42
- package/lib/chunk-XWIVM4OM.cjs.map +0 -1
- package/lib/chunk-Y35I6KPP.js +0 -52
- package/lib/chunk-Y35I6KPP.js.map +0 -1
- package/lib/chunk-Y4GGZ4EQ.cjs +0 -101
- package/lib/chunk-Y4GGZ4EQ.cjs.map +0 -1
- package/lib/chunk-YBX7UV5N.cjs +0 -91
- package/lib/chunk-YBX7UV5N.cjs.map +0 -1
- package/lib/chunk-YEMLHMYR.cjs +0 -107
- package/lib/chunk-YEMLHMYR.cjs.map +0 -1
- package/lib/chunk-YETXFXFO.cjs +0 -550
- package/lib/chunk-YETXFXFO.cjs.map +0 -1
- package/lib/chunk-YFTJA634.js +0 -36
- package/lib/chunk-YFTJA634.js.map +0 -1
- package/lib/chunk-YNWHCH2N.cjs +0 -26
- package/lib/chunk-YNWHCH2N.cjs.map +0 -1
- package/lib/chunk-YRCCY6RV.js +0 -276
- package/lib/chunk-YRCCY6RV.js.map +0 -1
- package/lib/chunk-YYAEAKBO.cjs +0 -51
- package/lib/chunk-YYAEAKBO.cjs.map +0 -1
- package/lib/chunk-Z4LKTHPE.js +0 -20
- package/lib/chunk-Z4LKTHPE.js.map +0 -1
- package/lib/chunk-ZGX3A2OH.cjs +0 -42
- package/lib/chunk-ZGX3A2OH.cjs.map +0 -1
- package/lib/chunk-ZJE7A6E6.cjs +0 -39
- package/lib/chunk-ZJE7A6E6.cjs.map +0 -1
- package/lib/chunk-ZJGFUHDX.cjs +0 -54
- package/lib/chunk-ZJGFUHDX.cjs.map +0 -1
- package/lib/chunk-ZM2HKUHW.cjs +0 -50
- package/lib/chunk-ZM2HKUHW.cjs.map +0 -1
- package/lib/chunk-ZVSNJOYP.js +0 -51
- package/lib/chunk-ZVSNJOYP.js.map +0 -1
- package/lib/fetch-DQyRNxTg.d.cts +0 -55
- package/lib/fetch-DQyRNxTg.d.ts +0 -55
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/exports.ts"],"names":[],"mappings":"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","file":"chunk-ENY5ZEDH.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\nexport type ExportSort = Pick<\n Export,\n | 'id'\n | 'resource_type'\n | 'format'\n | 'status'\n | 'started_at'\n | 'completed_at'\n | 'interrupted_at'\n | 'records_count'\n | 'processed_count'\n | 'attachment_url'\n> &\n ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\ninterface Export extends Resource {\n readonly type: ExportType\n\n /**\n * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n * @example ```\"skus\"```\n */\n resource_type:\n | 'applications'\n | 'event_stores'\n | 'organizations'\n | 'addresses'\n | 'geocoders'\n | 'events'\n | 'tags'\n | 'adjustments'\n | 'price_lists'\n | 'payment_gateways'\n | 'payment_methods'\n | 'markets'\n | 'customer_groups'\n | 'line_items'\n | 'discount_engine_items'\n | 'promotions'\n | 'adyen_payments'\n | 'orders'\n | 'transactions'\n | 'order_factories'\n | 'attachments'\n | 'tax_calculators'\n | 'tax_categories'\n | 'skus'\n | 'shipping_categories'\n | 'axerve_payments'\n | 'order_validation_rules'\n | 'braintree_payments'\n | 'bundles'\n | 'sku_lists'\n | 'sku_list_items'\n | 'stock_items'\n | 'stock_locations'\n | 'promotion_rules'\n | 'coupons'\n | 'returns'\n | 'carrier_accounts'\n | 'checkout_com_payments'\n | 'customers'\n | 'customer_addresses'\n | 'customer_payment_sources'\n | 'customer_subscriptions'\n | 'order_subscriptions'\n | 'customer_password_resets'\n | 'delivery_lead_times'\n | 'shipping_methods'\n | 'shipments'\n | 'discount_engines'\n | 'pickups'\n | 'parcels'\n | 'webhooks'\n | 'event_callbacks'\n | 'external_payments'\n | 'gift_cards'\n | 'in_stock_subscriptions'\n | 'inventory_models'\n | 'inventory_stock_locations'\n | 'inventory_return_locations'\n | 'klarna_payments'\n | 'line_item_options'\n | 'return_line_items'\n | 'stock_line_items'\n | 'stock_reservations'\n | 'stock_transfers'\n | 'notifications'\n | 'sku_options'\n | 'links'\n | 'tax_rules'\n | 'merchants'\n | 'subscription_models'\n | 'stores'\n | 'price_list_schedulers'\n | 'order_subscription_items'\n | 'payment_options'\n | 'resource_errors'\n | 'paypal_payments'\n | 'packages'\n | 'parcel_line_items'\n | 'prices'\n | 'price_tiers'\n | 'reserved_stocks'\n | 'satispay_payments'\n | 'shipping_method_tiers'\n | 'shipping_zones'\n | 'stripe_payments'\n | 'wire_transfers'\n /**\n * The format of the export. One of 'csv', or 'json' (default).\n * @example ```\"json\"```\n */\n format?: 'csv' | 'json' | null\n /**\n * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.\n * @example ```\"in_progress\"```\n */\n status: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'\n /**\n * List of related resources that should be included in the export (redundant when 'fields' are specified).\n * @example ```[\"prices.price_tiers\"]```\n */\n includes?: string[] | null\n /**\n * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n */\n fields?: string[] | null\n /**\n * The filters used to select the records to be exported.\n * @example ```{\"code_eq\":\"AAA\"}```\n */\n filters?: Record<string, any> | null\n /**\n * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n */\n dry_data?: boolean | null\n /**\n * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n * @example ```true```\n */\n jwt_filters?: boolean | null\n /**\n * Time at which the export was started.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n started_at?: string | null\n /**\n * Time at which the export was completed.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n completed_at?: string | null\n /**\n * Estimated time at which the export should complete (dynamically refres^hed).\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n estimated_completion_at?: string | null\n /**\n * Time at which the export was interrupted.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n interrupted_at?: string | null\n /**\n * Indicates the number of records to be exported.\n * @example ```300```\n */\n records_count?: number | null\n /**\n * Indicates how many records have been processed in real time.\n * @example ```270```\n */\n processed_count?: number | null\n /**\n * The percentage of progress of the export.\n * @example ```30```\n */\n progress?: number | null\n /**\n * The URL to the output file, which will be generated upon export completion.\n * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n */\n attachment_url?: string | null\n /**\n * Contains the exports errors, if any.\n * @example ```{\"RuntimeError\":\"query timeout\"}```\n */\n errors_log?: Record<string, any> | null\n\n events?: Event[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface ExportCreate extends ResourceCreate {\n /**\n * The type of resource being exported. One of 'applications', 'event_stores', 'organizations', 'addresses', 'geocoders', 'events', 'tags', 'adjustments', 'price_lists', 'payment_gateways', 'payment_methods', 'markets', 'customer_groups', 'line_items', 'discount_engine_items', 'promotions', 'adyen_payments', 'orders', 'transactions', 'order_factories', 'attachments', 'tax_calculators', 'tax_categories', 'skus', 'shipping_categories', 'axerve_payments', 'order_validation_rules', 'braintree_payments', 'bundles', 'sku_lists', 'sku_list_items', 'stock_items', 'stock_locations', 'promotion_rules', 'coupons', 'returns', 'carrier_accounts', 'checkout_com_payments', 'customers', 'customer_addresses', 'customer_payment_sources', 'customer_subscriptions', 'order_subscriptions', 'customer_password_resets', 'delivery_lead_times', 'shipping_methods', 'shipments', 'discount_engines', 'pickups', 'parcels', 'webhooks', 'event_callbacks', 'external_payments', 'gift_cards', 'in_stock_subscriptions', 'inventory_models', 'inventory_stock_locations', 'inventory_return_locations', 'klarna_payments', 'line_item_options', 'return_line_items', 'stock_line_items', 'stock_reservations', 'stock_transfers', 'notifications', 'sku_options', 'links', 'tax_rules', 'merchants', 'subscription_models', 'stores', 'price_list_schedulers', 'order_subscription_items', 'payment_options', 'resource_errors', 'paypal_payments', 'packages', 'parcel_line_items', 'prices', 'price_tiers', 'reserved_stocks', 'satispay_payments', 'shipping_method_tiers', 'shipping_zones', 'stripe_payments', or 'wire_transfers'.\n * @example ```\"skus\"```\n */\n resource_type:\n | 'applications'\n | 'event_stores'\n | 'organizations'\n | 'addresses'\n | 'geocoders'\n | 'events'\n | 'tags'\n | 'adjustments'\n | 'price_lists'\n | 'payment_gateways'\n | 'payment_methods'\n | 'markets'\n | 'customer_groups'\n | 'line_items'\n | 'discount_engine_items'\n | 'promotions'\n | 'adyen_payments'\n | 'orders'\n | 'transactions'\n | 'order_factories'\n | 'attachments'\n | 'tax_calculators'\n | 'tax_categories'\n | 'skus'\n | 'shipping_categories'\n | 'axerve_payments'\n | 'order_validation_rules'\n | 'braintree_payments'\n | 'bundles'\n | 'sku_lists'\n | 'sku_list_items'\n | 'stock_items'\n | 'stock_locations'\n | 'promotion_rules'\n | 'coupons'\n | 'returns'\n | 'carrier_accounts'\n | 'checkout_com_payments'\n | 'customers'\n | 'customer_addresses'\n | 'customer_payment_sources'\n | 'customer_subscriptions'\n | 'order_subscriptions'\n | 'customer_password_resets'\n | 'delivery_lead_times'\n | 'shipping_methods'\n | 'shipments'\n | 'discount_engines'\n | 'pickups'\n | 'parcels'\n | 'webhooks'\n | 'event_callbacks'\n | 'external_payments'\n | 'gift_cards'\n | 'in_stock_subscriptions'\n | 'inventory_models'\n | 'inventory_stock_locations'\n | 'inventory_return_locations'\n | 'klarna_payments'\n | 'line_item_options'\n | 'return_line_items'\n | 'stock_line_items'\n | 'stock_reservations'\n | 'stock_transfers'\n | 'notifications'\n | 'sku_options'\n | 'links'\n | 'tax_rules'\n | 'merchants'\n | 'subscription_models'\n | 'stores'\n | 'price_list_schedulers'\n | 'order_subscription_items'\n | 'payment_options'\n | 'resource_errors'\n | 'paypal_payments'\n | 'packages'\n | 'parcel_line_items'\n | 'prices'\n | 'price_tiers'\n | 'reserved_stocks'\n | 'satispay_payments'\n | 'shipping_method_tiers'\n | 'shipping_zones'\n | 'stripe_payments'\n | 'wire_transfers'\n /**\n * The format of the export. One of 'csv', or 'json' (default).\n * @example ```\"json\"```\n */\n format?: 'csv' | 'json' | null\n /**\n * List of related resources that should be included in the export (redundant when 'fields' are specified).\n * @example ```[\"prices.price_tiers\"]```\n */\n includes?: string[] | null\n /**\n * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n */\n fields?: string[] | null\n /**\n * The filters used to select the records to be exported.\n * @example ```{\"code_eq\":\"AAA\"}```\n */\n filters?: Record<string, any> | null\n /**\n * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n */\n dry_data?: boolean | null\n /**\n * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n * @example ```true```\n */\n jwt_filters?: boolean | null\n}\n\ninterface ExportUpdate extends ResourceUpdate {\n /**\n * Send this attribute if you want to restart an 'interrupted' export.\n * @example ```true```\n */\n _start?: boolean | null\n /**\n * Send this attribute if you want to mark status as 'interrupted'.\n * @example ```true```\n */\n _interrupt?: boolean | null\n}\n\nclass Exports extends ApiResource<Export> {\n static readonly TYPE: ExportType = 'exports' as const\n\n async create(\n resource: ExportCreate,\n params?: QueryParamsRetrieve<Export>,\n options?: ResourcesConfig,\n ): Promise<Export> {\n return this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n }\n\n async update(\n resource: ExportUpdate,\n params?: QueryParamsRetrieve<Export>,\n options?: ResourcesConfig,\n ): Promise<Export> {\n return this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: Exports.TYPE } : id, options)\n }\n\n async events(\n exportId: string | Export,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _exportId = (exportId as Export).id || (exportId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `exports/${_exportId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async event_stores(\n exportId: string | Export,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _exportId = (exportId as Export).id || (exportId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `exports/${_exportId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async _start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n return this.resources.update<ExportUpdate, Export>(\n { id: typeof id === 'string' ? id : id.id, type: Exports.TYPE, _start: true },\n params,\n options,\n )\n }\n\n async _interrupt(\n id: string | Export,\n params?: QueryParamsRetrieve<Export>,\n options?: ResourcesConfig,\n ): Promise<Export> {\n return this.resources.update<ExportUpdate, Export>(\n { id: typeof id === 'string' ? id : id.id, type: Exports.TYPE, _interrupt: true },\n params,\n options,\n )\n }\n\n isExport(resource: any): resource is Export {\n return resource.type && resource.type === Exports.TYPE\n }\n\n relationship(id: string | ResourceId | null): ExportRel {\n return super.relationshipOneToOne<ExportRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ExportRel[] {\n return super.relationshipOneToMany<ExportRel>(...ids)\n }\n\n type(): ExportType {\n return Exports.TYPE\n }\n}\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Export, ExportCreate, Exports, ExportType, ExportUpdate }\n"]}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-LSBBCEX5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/price_volume_tiers.ts
|
|
4
|
+
var PriceVolumeTiers = class _PriceVolumeTiers extends ApiResource {
|
|
5
|
+
static TYPE = "price_volume_tiers";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create(
|
|
8
|
+
{ ...resource, type: _PriceVolumeTiers.TYPE },
|
|
9
|
+
params,
|
|
10
|
+
options
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
async update(resource, params, options) {
|
|
14
|
+
return this.resources.update(
|
|
15
|
+
{ ...resource, type: _PriceVolumeTiers.TYPE },
|
|
16
|
+
params,
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
async delete(id, options) {
|
|
21
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _PriceVolumeTiers.TYPE } : id, options);
|
|
22
|
+
}
|
|
23
|
+
async price(priceVolumeTierId, params, options) {
|
|
24
|
+
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
|
25
|
+
return this.resources.fetch(
|
|
26
|
+
{ type: "prices" },
|
|
27
|
+
`price_volume_tiers/${_priceVolumeTierId}/price`,
|
|
28
|
+
params,
|
|
29
|
+
options
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
async attachments(priceVolumeTierId, params, options) {
|
|
33
|
+
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
|
34
|
+
return this.resources.fetch(
|
|
35
|
+
{ type: "attachments" },
|
|
36
|
+
`price_volume_tiers/${_priceVolumeTierId}/attachments`,
|
|
37
|
+
params,
|
|
38
|
+
options
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
async event_stores(priceVolumeTierId, params, options) {
|
|
42
|
+
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
|
43
|
+
return this.resources.fetch(
|
|
44
|
+
{ type: "event_stores" },
|
|
45
|
+
`price_volume_tiers/${_priceVolumeTierId}/event_stores`,
|
|
46
|
+
params,
|
|
47
|
+
options
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
async events(priceVolumeTierId, params, options) {
|
|
51
|
+
const _priceVolumeTierId = priceVolumeTierId.id || priceVolumeTierId;
|
|
52
|
+
return this.resources.fetch(
|
|
53
|
+
{ type: "events" },
|
|
54
|
+
`price_volume_tiers/${_priceVolumeTierId}/events`,
|
|
55
|
+
params,
|
|
56
|
+
options
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
isPriceVolumeTier(resource) {
|
|
60
|
+
return resource.type && resource.type === _PriceVolumeTiers.TYPE;
|
|
61
|
+
}
|
|
62
|
+
relationship(id) {
|
|
63
|
+
return super.relationshipOneToOne(id);
|
|
64
|
+
}
|
|
65
|
+
relationshipToMany(...ids) {
|
|
66
|
+
return super.relationshipOneToMany(...ids);
|
|
67
|
+
}
|
|
68
|
+
type() {
|
|
69
|
+
return _PriceVolumeTiers.TYPE;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
var instance = new PriceVolumeTiers();
|
|
73
|
+
var price_volume_tiers_default = instance;
|
|
74
|
+
|
|
75
|
+
export { price_volume_tiers_default };
|
|
76
|
+
//# sourceMappingURL=chunk-EQQVT4VQ.js.map
|
|
77
|
+
//# sourceMappingURL=chunk-EQQVT4VQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/price_volume_tiers.ts"],"names":[],"mappings":"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","file":"chunk-EQQVT4VQ.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Price, PriceType } from './prices'\n\ntype PriceVolumeTierType = 'price_volume_tiers'\ntype PriceVolumeTierRel = ResourceRel & { type: PriceVolumeTierType }\ntype PriceRel = ResourceRel & { type: PriceType }\n\nexport type PriceVolumeTierSort = Pick<PriceVolumeTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type PriceVolumeTierFilter = Pick<PriceVolumeTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\ninterface PriceVolumeTier extends Resource {\n readonly type: PriceVolumeTierType\n\n /**\n * The price tier's name.\n * @example ```\"six pack\"```\n */\n name: string\n /**\n * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier).\n * @example ```15```\n */\n up_to?: number | null\n /**\n * The price of this price tier, in cents.\n * @example ```1000```\n */\n price_amount_cents: number\n /**\n * The price of this price tier, float.\n * @example ```10```\n */\n price_amount_float?: number | null\n /**\n * The price of this price tier, formatted.\n * @example ```\"€10,00\"```\n */\n formatted_price_amount?: string | null\n\n price?: Price | null\n attachments?: Attachment[] | null\n event_stores?: EventStore[] | null\n events?: Event[] | null\n}\n\ninterface PriceVolumeTierCreate extends ResourceCreate {\n /**\n * The price tier's name.\n * @example ```\"six pack\"```\n */\n name: string\n /**\n * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier).\n * @example ```15```\n */\n up_to?: number | null\n /**\n * The price of this price tier, in cents.\n * @example ```1000```\n */\n price_amount_cents: number\n\n price: PriceRel\n}\n\ninterface PriceVolumeTierUpdate extends ResourceUpdate {\n /**\n * The price tier's name.\n * @example ```\"six pack\"```\n */\n name?: string | null\n /**\n * The tier upper limit, expressed as the line item quantity. When 'null' it means infinity (useful to have an always matching tier).\n * @example ```15```\n */\n up_to?: number | null\n /**\n * The price of this price tier, in cents.\n * @example ```1000```\n */\n price_amount_cents?: number | null\n\n price?: PriceRel | null\n}\n\nclass PriceVolumeTiers extends ApiResource<PriceVolumeTier> {\n static readonly TYPE: PriceVolumeTierType = 'price_volume_tiers' as const\n\n async create(\n resource: PriceVolumeTierCreate,\n params?: QueryParamsRetrieve<PriceVolumeTier>,\n options?: ResourcesConfig,\n ): Promise<PriceVolumeTier> {\n return this.resources.create<PriceVolumeTierCreate, PriceVolumeTier>(\n { ...resource, type: PriceVolumeTiers.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: PriceVolumeTierUpdate,\n params?: QueryParamsRetrieve<PriceVolumeTier>,\n options?: ResourcesConfig,\n ): Promise<PriceVolumeTier> {\n return this.resources.update<PriceVolumeTierUpdate, PriceVolumeTier>(\n { ...resource, type: PriceVolumeTiers.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: PriceVolumeTiers.TYPE } : id, options)\n }\n\n async price(\n priceVolumeTierId: string | PriceVolumeTier,\n params?: QueryParamsRetrieve<Price>,\n options?: ResourcesConfig,\n ): Promise<Price> {\n const _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || (priceVolumeTierId as string)\n return this.resources.fetch<Price>(\n { type: 'prices' },\n `price_volume_tiers/${_priceVolumeTierId}/price`,\n params,\n options,\n ) as unknown as Price\n }\n\n async attachments(\n priceVolumeTierId: string | PriceVolumeTier,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || (priceVolumeTierId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `price_volume_tiers/${_priceVolumeTierId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async event_stores(\n priceVolumeTierId: string | PriceVolumeTier,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || (priceVolumeTierId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `price_volume_tiers/${_priceVolumeTierId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async events(\n priceVolumeTierId: string | PriceVolumeTier,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _priceVolumeTierId = (priceVolumeTierId as PriceVolumeTier).id || (priceVolumeTierId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `price_volume_tiers/${_priceVolumeTierId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n isPriceVolumeTier(resource: any): resource is PriceVolumeTier {\n return resource.type && resource.type === PriceVolumeTiers.TYPE\n }\n\n relationship(id: string | ResourceId | null): PriceVolumeTierRel {\n return super.relationshipOneToOne<PriceVolumeTierRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PriceVolumeTierRel[] {\n return super.relationshipOneToMany<PriceVolumeTierRel>(...ids)\n }\n\n type(): PriceVolumeTierType {\n return PriceVolumeTiers.TYPE\n }\n}\n\nconst instance = new PriceVolumeTiers()\nexport default instance\n\nexport type { PriceVolumeTier, PriceVolumeTierCreate, PriceVolumeTiers, PriceVolumeTierType, PriceVolumeTierUpdate }\n"]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-LSBBCEX5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/external_tax_calculators.ts
|
|
4
|
+
var ExternalTaxCalculators = class _ExternalTaxCalculators extends ApiResource {
|
|
5
|
+
static TYPE = "external_tax_calculators";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create(
|
|
8
|
+
{ ...resource, type: _ExternalTaxCalculators.TYPE },
|
|
9
|
+
params,
|
|
10
|
+
options
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
async update(resource, params, options) {
|
|
14
|
+
return this.resources.update(
|
|
15
|
+
{ ...resource, type: _ExternalTaxCalculators.TYPE },
|
|
16
|
+
params,
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
async delete(id, options) {
|
|
21
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalTaxCalculators.TYPE } : id, options);
|
|
22
|
+
}
|
|
23
|
+
async markets(externalTaxCalculatorId, params, options) {
|
|
24
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
25
|
+
return this.resources.fetch(
|
|
26
|
+
{ type: "markets" },
|
|
27
|
+
`external_tax_calculators/${_externalTaxCalculatorId}/markets`,
|
|
28
|
+
params,
|
|
29
|
+
options
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
async attachments(externalTaxCalculatorId, params, options) {
|
|
33
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
34
|
+
return this.resources.fetch(
|
|
35
|
+
{ type: "attachments" },
|
|
36
|
+
`external_tax_calculators/${_externalTaxCalculatorId}/attachments`,
|
|
37
|
+
params,
|
|
38
|
+
options
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
async events(externalTaxCalculatorId, params, options) {
|
|
42
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
43
|
+
return this.resources.fetch(
|
|
44
|
+
{ type: "events" },
|
|
45
|
+
`external_tax_calculators/${_externalTaxCalculatorId}/events`,
|
|
46
|
+
params,
|
|
47
|
+
options
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
async event_stores(externalTaxCalculatorId, params, options) {
|
|
51
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
52
|
+
return this.resources.fetch(
|
|
53
|
+
{ type: "event_stores" },
|
|
54
|
+
`external_tax_calculators/${_externalTaxCalculatorId}/event_stores`,
|
|
55
|
+
params,
|
|
56
|
+
options
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
async _reset_circuit(id, params, options) {
|
|
60
|
+
return this.resources.update(
|
|
61
|
+
{ id: typeof id === "string" ? id : id.id, type: _ExternalTaxCalculators.TYPE, _reset_circuit: true },
|
|
62
|
+
params,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
async _regenerate_shared_secret(id, params, options) {
|
|
67
|
+
return this.resources.update(
|
|
68
|
+
{ id: typeof id === "string" ? id : id.id, type: _ExternalTaxCalculators.TYPE, _regenerate_shared_secret: true },
|
|
69
|
+
params,
|
|
70
|
+
options
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
isExternalTaxCalculator(resource) {
|
|
74
|
+
return resource.type && resource.type === _ExternalTaxCalculators.TYPE;
|
|
75
|
+
}
|
|
76
|
+
relationship(id) {
|
|
77
|
+
return super.relationshipOneToOne(id);
|
|
78
|
+
}
|
|
79
|
+
relationshipToMany(...ids) {
|
|
80
|
+
return super.relationshipOneToMany(...ids);
|
|
81
|
+
}
|
|
82
|
+
type() {
|
|
83
|
+
return _ExternalTaxCalculators.TYPE;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var instance = new ExternalTaxCalculators();
|
|
87
|
+
var external_tax_calculators_default = instance;
|
|
88
|
+
|
|
89
|
+
export { external_tax_calculators_default };
|
|
90
|
+
//# sourceMappingURL=chunk-ESIW5CXF.js.map
|
|
91
|
+
//# sourceMappingURL=chunk-ESIW5CXF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/external_tax_calculators.ts"],"names":[],"mappings":"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","file":"chunk-ESIW5CXF.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\n\ntype ExternalTaxCalculatorType = 'external_tax_calculators'\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\n\nexport type ExternalTaxCalculatorSort = Pick<\n ExternalTaxCalculator,\n 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'\n> &\n ResourceSort\n// export type ExternalTaxCalculatorFilter = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\ninterface ExternalTaxCalculator extends Resource {\n readonly type: ExternalTaxCalculatorType\n\n /**\n * The tax calculator's internal name.\n * @example ```\"Personal tax calculator\"```\n */\n name: string\n /**\n * 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 * @example ```\"closed\"```\n */\n circuit_state?: string | null\n /**\n * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n * @example ```5```\n */\n circuit_failure_count?: number | null\n /**\n * The shared secret used to sign the external request payload.\n * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n */\n shared_secret: string\n /**\n * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n * @example ```[\"order.line_item_options\"]```\n */\n external_includes?: string[] | null\n /**\n * The URL to the service that will compute the taxes.\n * @example ```\"https://external_calculator.yourbrand.com\"```\n */\n tax_calculator_url: string\n\n markets?: Market[] | null\n attachments?: Attachment[] | null\n events?: Event[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface ExternalTaxCalculatorCreate extends ResourceCreate {\n /**\n * The tax calculator's internal name.\n * @example ```\"Personal tax calculator\"```\n */\n name: string\n /**\n * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n * @example ```[\"order.line_item_options\"]```\n */\n external_includes?: string[] | null\n /**\n * The URL to the service that will compute the taxes.\n * @example ```\"https://external_calculator.yourbrand.com\"```\n */\n tax_calculator_url: string\n}\n\ninterface ExternalTaxCalculatorUpdate extends ResourceUpdate {\n /**\n * The tax calculator's internal name.\n * @example ```\"Personal tax calculator\"```\n */\n name?: string | null\n /**\n * 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 * @example ```true```\n */\n _reset_circuit?: boolean | null\n /**\n * Send this attribute if you want to regenerate the shared secret.\n * @example ```true```\n */\n _regenerate_shared_secret?: boolean | null\n /**\n * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n * @example ```[\"order.line_item_options\"]```\n */\n external_includes?: string[] | null\n /**\n * The URL to the service that will compute the taxes.\n * @example ```\"https://external_calculator.yourbrand.com\"```\n */\n tax_calculator_url?: string | null\n}\n\nclass ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator> {\n static readonly TYPE: ExternalTaxCalculatorType = 'external_tax_calculators' as const\n\n async create(\n resource: ExternalTaxCalculatorCreate,\n params?: QueryParamsRetrieve<ExternalTaxCalculator>,\n options?: ResourcesConfig,\n ): Promise<ExternalTaxCalculator> {\n return this.resources.create<ExternalTaxCalculatorCreate, ExternalTaxCalculator>(\n { ...resource, type: ExternalTaxCalculators.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: ExternalTaxCalculatorUpdate,\n params?: QueryParamsRetrieve<ExternalTaxCalculator>,\n options?: ResourcesConfig,\n ): Promise<ExternalTaxCalculator> {\n return this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>(\n { ...resource, type: ExternalTaxCalculators.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: ExternalTaxCalculators.TYPE } : id, options)\n }\n\n async markets(\n externalTaxCalculatorId: string | ExternalTaxCalculator,\n params?: QueryParamsList<Market>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Market>> {\n const _externalTaxCalculatorId =\n (externalTaxCalculatorId as ExternalTaxCalculator).id || (externalTaxCalculatorId as string)\n return this.resources.fetch<Market>(\n { type: 'markets' },\n `external_tax_calculators/${_externalTaxCalculatorId}/markets`,\n params,\n options,\n ) as unknown as ListResponse<Market>\n }\n\n async attachments(\n externalTaxCalculatorId: string | ExternalTaxCalculator,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _externalTaxCalculatorId =\n (externalTaxCalculatorId as ExternalTaxCalculator).id || (externalTaxCalculatorId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `external_tax_calculators/${_externalTaxCalculatorId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async events(\n externalTaxCalculatorId: string | ExternalTaxCalculator,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _externalTaxCalculatorId =\n (externalTaxCalculatorId as ExternalTaxCalculator).id || (externalTaxCalculatorId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `external_tax_calculators/${_externalTaxCalculatorId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async event_stores(\n externalTaxCalculatorId: string | ExternalTaxCalculator,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _externalTaxCalculatorId =\n (externalTaxCalculatorId as ExternalTaxCalculator).id || (externalTaxCalculatorId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `external_tax_calculators/${_externalTaxCalculatorId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async _reset_circuit(\n id: string | ExternalTaxCalculator,\n params?: QueryParamsRetrieve<ExternalTaxCalculator>,\n options?: ResourcesConfig,\n ): Promise<ExternalTaxCalculator> {\n return this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalTaxCalculators.TYPE, _reset_circuit: true },\n params,\n options,\n )\n }\n\n async _regenerate_shared_secret(\n id: string | ExternalTaxCalculator,\n params?: QueryParamsRetrieve<ExternalTaxCalculator>,\n options?: ResourcesConfig,\n ): Promise<ExternalTaxCalculator> {\n return this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalTaxCalculators.TYPE, _regenerate_shared_secret: true },\n params,\n options,\n )\n }\n\n isExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator {\n return resource.type && resource.type === ExternalTaxCalculators.TYPE\n }\n\n relationship(id: string | ResourceId | null): ExternalTaxCalculatorRel {\n return super.relationshipOneToOne<ExternalTaxCalculatorRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ExternalTaxCalculatorRel[] {\n return super.relationshipOneToMany<ExternalTaxCalculatorRel>(...ids)\n }\n\n type(): ExternalTaxCalculatorType {\n return ExternalTaxCalculators.TYPE\n }\n}\n\nconst instance = new ExternalTaxCalculators()\nexport default instance\n\nexport type {\n ExternalTaxCalculator,\n ExternalTaxCalculatorCreate,\n ExternalTaxCalculators,\n ExternalTaxCalculatorType,\n ExternalTaxCalculatorUpdate,\n}\n"]}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkYZDBPUNJ_cjs = require('./chunk-YZDBPUNJ.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/order_factories.ts
|
|
6
|
+
var OrderFactories = class _OrderFactories extends chunkYZDBPUNJ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "order_factories";
|
|
8
|
+
async source_order(orderFactoryId, params, options) {
|
|
9
|
+
const _orderFactoryId = orderFactoryId.id || orderFactoryId;
|
|
10
|
+
return this.resources.fetch(
|
|
11
|
+
{ type: "orders" },
|
|
12
|
+
`order_factories/${_orderFactoryId}/source_order`,
|
|
13
|
+
params,
|
|
14
|
+
options
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
async target_order(orderFactoryId, params, options) {
|
|
18
|
+
const _orderFactoryId = orderFactoryId.id || orderFactoryId;
|
|
19
|
+
return this.resources.fetch(
|
|
20
|
+
{ type: "orders" },
|
|
21
|
+
`order_factories/${_orderFactoryId}/target_order`,
|
|
22
|
+
params,
|
|
23
|
+
options
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
async events(orderFactoryId, params, options) {
|
|
27
|
+
const _orderFactoryId = orderFactoryId.id || orderFactoryId;
|
|
28
|
+
return this.resources.fetch(
|
|
29
|
+
{ type: "events" },
|
|
30
|
+
`order_factories/${_orderFactoryId}/events`,
|
|
31
|
+
params,
|
|
32
|
+
options
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
async event_stores(orderFactoryId, params, options) {
|
|
36
|
+
const _orderFactoryId = orderFactoryId.id || orderFactoryId;
|
|
37
|
+
return this.resources.fetch(
|
|
38
|
+
{ type: "event_stores" },
|
|
39
|
+
`order_factories/${_orderFactoryId}/event_stores`,
|
|
40
|
+
params,
|
|
41
|
+
options
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
isOrderFactory(resource) {
|
|
45
|
+
return !!resource.type && (resource.type === _OrderFactories.TYPE || ["order_copies", "recurring_order_copies"].includes(resource.type));
|
|
46
|
+
}
|
|
47
|
+
relationship(id) {
|
|
48
|
+
return super.relationshipOneToOne(id);
|
|
49
|
+
}
|
|
50
|
+
relationshipToMany(...ids) {
|
|
51
|
+
return super.relationshipOneToMany(...ids);
|
|
52
|
+
}
|
|
53
|
+
type() {
|
|
54
|
+
return _OrderFactories.TYPE;
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
var instance = new OrderFactories();
|
|
58
|
+
var order_factories_default = instance;
|
|
59
|
+
|
|
60
|
+
exports.order_factories_default = order_factories_default;
|
|
61
|
+
//# sourceMappingURL=chunk-EWUUQ4L5.cjs.map
|
|
62
|
+
//# sourceMappingURL=chunk-EWUUQ4L5.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/order_factories.ts"],"names":["ApiResource"],"mappings":";;;;;AA8EA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAAA,CAA0B;AAAA,EACrD,OAAgB,IAAA,GAAyB,iBAAA;AAAA,EAEzC,MAAM,YAAA,CACJ,cAAA,EACA,MAAA,EACA,OAAA,EACgB;AAChB,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAO,cAAA;AAChE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,QAAA,EAAS;AAAA,MACjB,mBAAmB,eAAe,CAAA,aAAA,CAAA;AAAA,MAClC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,cAAA,EACA,MAAA,EACA,OAAA,EACgB;AAChB,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAO,cAAA;AAChE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,QAAA,EAAS;AAAA,MACjB,mBAAmB,eAAe,CAAA,aAAA,CAAA;AAAA,MAClC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,cAAA,EACA,MAAA,EACA,OAAA,EAC8B;AAC9B,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAO,cAAA;AAChE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,QAAA,EAAS;AAAA,MACjB,mBAAmB,eAAe,CAAA,OAAA,CAAA;AAAA,MAClC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,cAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAO,cAAA;AAChE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,mBAAmB,eAAe,CAAA,aAAA,CAAA;AAAA,MAClC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,eAAe,QAAA,EAAyC;AACtD,IAAA,OACE,CAAC,CAAC,QAAA,CAAS,IAAA,KACV,SAAS,IAAA,KAAS,eAAA,CAAe,IAAA,IAAQ,CAAC,cAAA,EAAgB,wBAAwB,CAAA,CAAE,QAAA,CAAS,SAAS,IAAI,CAAA,CAAA;AAAA,EAE/G;AAAA,EAEA,aAAa,EAAA,EAAiD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAEA,IAAA,GAAyB;AACvB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACxB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-EWUUQ4L5.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { OrderCopy } from './order_copies'\nimport type { Order } from './orders'\nimport type { RecurringOrderCopy } from './recurring_order_copies'\n\ntype OrderFactoryType = 'order_factories'\ntype OrderFactoryRel = ResourceRel & { type: OrderFactoryType }\n\nexport type OrderFactorySort = Pick<\n OrderFactoryBase,\n 'id' | 'status' | 'started_at' | 'completed_at' | 'failed_at' | 'errors_count'\n> &\n ResourceSort\n// export type OrderFactoryFilter = Pick<OrderFactory, 'id' | 'status' | 'started_at' | 'completed_at' | 'failed_at' | 'errors_count'> & ResourceFilter\n\ntype OrderFactory = OrderCopy | RecurringOrderCopy\n\ninterface OrderFactoryBase extends Resource {\n readonly type: OrderFactoryType\n\n /**\n * The order factory status. One of 'pending' (default), 'in_progress', 'aborted', 'failed', or 'completed'.\n * @example ```\"in_progress\"```\n */\n status: 'pending' | 'in_progress' | 'aborted' | 'failed' | 'completed'\n /**\n * Time at which the order copy was started.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n started_at?: string | null\n /**\n * Time at which the order copy was completed.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n completed_at?: string | null\n /**\n * Time at which the order copy has failed.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n failed_at?: string | null\n /**\n * Contains the order copy errors, if any.\n * @example ```{\"status\":[\"cannot transition from draft to placed\"]}```\n */\n errors_log?: Record<string, any> | null\n /**\n * Indicates the number of copy errors, if any.\n * @example ```2```\n */\n errors_count?: number | null\n /**\n * Indicates if the target order must be placed upon copy.\n * @example ```true```\n */\n place_target_order?: boolean | null\n /**\n * Indicates if the payment source within the source order customer's wallet must be copied.\n * @example ```true```\n */\n reuse_wallet?: boolean | null\n\n source_order?: Order | null\n target_order?: Order | null\n events?: Event[] | null\n event_stores?: EventStore[] | null\n}\n\nclass OrderFactories extends ApiResource<OrderFactory> {\n static readonly TYPE: OrderFactoryType = 'order_factories' as const\n\n async source_order(\n orderFactoryId: string | OrderFactory,\n params?: QueryParamsRetrieve<Order>,\n options?: ResourcesConfig,\n ): Promise<Order> {\n const _orderFactoryId = (orderFactoryId as OrderFactory).id || (orderFactoryId as string)\n return this.resources.fetch<Order>(\n { type: 'orders' },\n `order_factories/${_orderFactoryId}/source_order`,\n params,\n options,\n ) as unknown as Order\n }\n\n async target_order(\n orderFactoryId: string | OrderFactory,\n params?: QueryParamsRetrieve<Order>,\n options?: ResourcesConfig,\n ): Promise<Order> {\n const _orderFactoryId = (orderFactoryId as OrderFactory).id || (orderFactoryId as string)\n return this.resources.fetch<Order>(\n { type: 'orders' },\n `order_factories/${_orderFactoryId}/target_order`,\n params,\n options,\n ) as unknown as Order\n }\n\n async events(\n orderFactoryId: string | OrderFactory,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _orderFactoryId = (orderFactoryId as OrderFactory).id || (orderFactoryId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `order_factories/${_orderFactoryId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async event_stores(\n orderFactoryId: string | OrderFactory,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _orderFactoryId = (orderFactoryId as OrderFactory).id || (orderFactoryId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `order_factories/${_orderFactoryId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isOrderFactory(resource: any): resource is OrderFactory {\n return (\n !!resource.type &&\n (resource.type === OrderFactories.TYPE || ['order_copies', 'recurring_order_copies'].includes(resource.type))\n )\n }\n\n relationship(id: string | ResourceId | null): OrderFactoryRel {\n return super.relationshipOneToOne<OrderFactoryRel>(id)\n }\n\n relationshipToMany(...ids: string[]): OrderFactoryRel[] {\n return super.relationshipOneToMany<OrderFactoryRel>(...ids)\n }\n\n type(): OrderFactoryType {\n return OrderFactories.TYPE\n }\n}\n\nconst instance = new OrderFactories()\nexport default instance\n\nexport type { OrderFactories, OrderFactory, OrderFactoryType }\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-LSBBCEX5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/coupon_codes_promotion_rules.ts
|
|
4
|
+
var CouponCodesPromotionRules = class _CouponCodesPromotionRules extends ApiResource {
|
|
5
|
+
static TYPE = "coupon_codes_promotion_rules";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create(
|
|
8
|
+
{ ...resource, type: _CouponCodesPromotionRules.TYPE },
|
|
9
|
+
params,
|
|
10
|
+
options
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
async update(resource, params, options) {
|
|
14
|
+
return this.resources.update(
|
|
15
|
+
{ ...resource, type: _CouponCodesPromotionRules.TYPE },
|
|
16
|
+
params,
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
async delete(id, options) {
|
|
21
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _CouponCodesPromotionRules.TYPE } : id, options);
|
|
22
|
+
}
|
|
23
|
+
async event_stores(couponCodesPromotionRuleId, params, options) {
|
|
24
|
+
const _couponCodesPromotionRuleId = couponCodesPromotionRuleId.id || couponCodesPromotionRuleId;
|
|
25
|
+
return this.resources.fetch(
|
|
26
|
+
{ type: "event_stores" },
|
|
27
|
+
`coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/event_stores`,
|
|
28
|
+
params,
|
|
29
|
+
options
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
async coupons(couponCodesPromotionRuleId, params, options) {
|
|
33
|
+
const _couponCodesPromotionRuleId = couponCodesPromotionRuleId.id || couponCodesPromotionRuleId;
|
|
34
|
+
return this.resources.fetch(
|
|
35
|
+
{ type: "coupons" },
|
|
36
|
+
`coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/coupons`,
|
|
37
|
+
params,
|
|
38
|
+
options
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
isCouponCodesPromotionRule(resource) {
|
|
42
|
+
return resource.type && resource.type === _CouponCodesPromotionRules.TYPE;
|
|
43
|
+
}
|
|
44
|
+
relationship(id) {
|
|
45
|
+
return super.relationshipOneToOne(id);
|
|
46
|
+
}
|
|
47
|
+
relationshipToMany(...ids) {
|
|
48
|
+
return super.relationshipOneToMany(...ids);
|
|
49
|
+
}
|
|
50
|
+
type() {
|
|
51
|
+
return _CouponCodesPromotionRules.TYPE;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var instance = new CouponCodesPromotionRules();
|
|
55
|
+
var coupon_codes_promotion_rules_default = instance;
|
|
56
|
+
|
|
57
|
+
export { coupon_codes_promotion_rules_default };
|
|
58
|
+
//# sourceMappingURL=chunk-F5BYJ3P2.js.map
|
|
59
|
+
//# sourceMappingURL=chunk-F5BYJ3P2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/coupon_codes_promotion_rules.ts"],"names":[],"mappings":";;;AAkFA,IAAM,yBAAA,GAAN,MAAM,0BAAA,SAAkC,WAAA,CAAsC;AAAA,EAC5E,OAAgB,IAAA,GAAqC,8BAAA;AAAA,EAErD,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,2BAA0B,IAAA,EAAK;AAAA,MACpD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,2BAA0B,IAAA,EAAK;AAAA,MACpD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACjH;AAAA,EAEA,MAAM,YAAA,CACJ,0BAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,2BAAA,GACH,2BAAwD,EAAA,IAAO,0BAAA;AAClE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,gCAAgC,2BAA2B,CAAA,aAAA,CAAA;AAAA,MAC3D,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,OAAA,CACJ,0BAAA,EACA,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,MAAM,2BAAA,GACH,2BAAwD,EAAA,IAAO,0BAAA;AAClE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,SAAA,EAAU;AAAA,MAClB,gCAAgC,2BAA2B,CAAA,QAAA,CAAA;AAAA,MAC3D,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,2BAA2B,QAAA,EAAqD;AAC9E,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,0BAAA,CAA0B,IAAA;AAAA,EACtE;AAAA,EAEA,aAAa,EAAA,EAA6D;AACxE,IAAA,OAAO,KAAA,CAAM,qBAAkD,EAAE,CAAA;AAAA,EACnE;AAAA,EAEA,sBAAsB,GAAA,EAA8C;AAClE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmD,GAAG,GAAG,CAAA;AAAA,EACxE;AAAA,EAEA,IAAA,GAAqC;AACnC,IAAA,OAAO,0BAAA,CAA0B,IAAA;AAAA,EACnC;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,yBAAA,EAA0B;AAC/C,IAAO,oCAAA,GAAQ","file":"chunk-F5BYJ3P2.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { Coupon, CouponType } from './coupons'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\n\ntype CouponCodesPromotionRuleType = 'coupon_codes_promotion_rules'\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\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 CouponRel = ResourceRel & { type: CouponType }\n\nexport type CouponCodesPromotionRuleSort = Pick<CouponCodesPromotionRule, 'id'> & ResourceSort\n// export type CouponCodesPromotionRuleFilter = Pick<CouponCodesPromotionRule, 'id'> & ResourceFilter\n\ninterface CouponCodesPromotionRule extends Resource {\n readonly type: CouponCodesPromotionRuleType\n\n promotion?:\n | PercentageDiscountPromotion\n | FreeShippingPromotion\n | BuyXPayYPromotion\n | FreeGiftPromotion\n | FixedPricePromotion\n | ExternalPromotion\n | FixedAmountPromotion\n | FlexPromotion\n | null\n event_stores?: EventStore[] | null\n coupons?: Coupon[] | null\n}\n\ninterface CouponCodesPromotionRuleCreate extends ResourceCreate {\n promotion:\n | PercentageDiscountPromotionRel\n | FreeShippingPromotionRel\n | BuyXPayYPromotionRel\n | FreeGiftPromotionRel\n | FixedPricePromotionRel\n | ExternalPromotionRel\n | FixedAmountPromotionRel\n | FlexPromotionRel\n coupons?: CouponRel[] | null\n}\n\ninterface CouponCodesPromotionRuleUpdate extends ResourceUpdate {\n promotion?:\n | PercentageDiscountPromotionRel\n | FreeShippingPromotionRel\n | BuyXPayYPromotionRel\n | FreeGiftPromotionRel\n | FixedPricePromotionRel\n | ExternalPromotionRel\n | FixedAmountPromotionRel\n | FlexPromotionRel\n | null\n coupons?: CouponRel[] | null\n}\n\nclass CouponCodesPromotionRules extends ApiResource<CouponCodesPromotionRule> {\n static readonly TYPE: CouponCodesPromotionRuleType = 'coupon_codes_promotion_rules' as const\n\n async create(\n resource: CouponCodesPromotionRuleCreate,\n params?: QueryParamsRetrieve<CouponCodesPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CouponCodesPromotionRule> {\n return this.resources.create<CouponCodesPromotionRuleCreate, CouponCodesPromotionRule>(\n { ...resource, type: CouponCodesPromotionRules.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: CouponCodesPromotionRuleUpdate,\n params?: QueryParamsRetrieve<CouponCodesPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CouponCodesPromotionRule> {\n return this.resources.update<CouponCodesPromotionRuleUpdate, CouponCodesPromotionRule>(\n { ...resource, type: CouponCodesPromotionRules.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: CouponCodesPromotionRules.TYPE } : id, options)\n }\n\n async event_stores(\n couponCodesPromotionRuleId: string | CouponCodesPromotionRule,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _couponCodesPromotionRuleId =\n (couponCodesPromotionRuleId as CouponCodesPromotionRule).id || (couponCodesPromotionRuleId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async coupons(\n couponCodesPromotionRuleId: string | CouponCodesPromotionRule,\n params?: QueryParamsList<Coupon>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Coupon>> {\n const _couponCodesPromotionRuleId =\n (couponCodesPromotionRuleId as CouponCodesPromotionRule).id || (couponCodesPromotionRuleId as string)\n return this.resources.fetch<Coupon>(\n { type: 'coupons' },\n `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/coupons`,\n params,\n options,\n ) as unknown as ListResponse<Coupon>\n }\n\n isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule {\n return resource.type && resource.type === CouponCodesPromotionRules.TYPE\n }\n\n relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel {\n return super.relationshipOneToOne<CouponCodesPromotionRuleRel>(id)\n }\n\n relationshipToMany(...ids: string[]): CouponCodesPromotionRuleRel[] {\n return super.relationshipOneToMany<CouponCodesPromotionRuleRel>(...ids)\n }\n\n type(): CouponCodesPromotionRuleType {\n return CouponCodesPromotionRules.TYPE\n }\n}\n\nconst instance = new CouponCodesPromotionRules()\nexport default instance\n\nexport type {\n CouponCodesPromotionRule,\n CouponCodesPromotionRuleCreate,\n CouponCodesPromotionRules,\n CouponCodesPromotionRuleType,\n CouponCodesPromotionRuleUpdate,\n}\n"]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-LSBBCEX5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/resource_errors.ts
|
|
4
|
+
var ResourceErrors = class _ResourceErrors extends ApiResource {
|
|
5
|
+
static TYPE = "resource_errors";
|
|
6
|
+
async event_stores(resourceErrorId, params, options) {
|
|
7
|
+
const _resourceErrorId = resourceErrorId.id || resourceErrorId;
|
|
8
|
+
return this.resources.fetch(
|
|
9
|
+
{ type: "event_stores" },
|
|
10
|
+
`resource_errors/${_resourceErrorId}/event_stores`,
|
|
11
|
+
params,
|
|
12
|
+
options
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
isResourceError(resource) {
|
|
16
|
+
return resource.type && resource.type === _ResourceErrors.TYPE;
|
|
17
|
+
}
|
|
18
|
+
relationship(id) {
|
|
19
|
+
return super.relationshipOneToOne(id);
|
|
20
|
+
}
|
|
21
|
+
relationshipToMany(...ids) {
|
|
22
|
+
return super.relationshipOneToMany(...ids);
|
|
23
|
+
}
|
|
24
|
+
type() {
|
|
25
|
+
return _ResourceErrors.TYPE;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
var instance = new ResourceErrors();
|
|
29
|
+
var resource_errors_default = instance;
|
|
30
|
+
|
|
31
|
+
export { resource_errors_default };
|
|
32
|
+
//# sourceMappingURL=chunk-F7QAC5GG.js.map
|
|
33
|
+
//# sourceMappingURL=chunk-F7QAC5GG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/resource_errors.ts"],"names":[],"mappings":";;;AA4CA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EACtD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,YAAA,CACJ,eAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAO,eAAA;AACnE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,mBAAmB,gBAAgB,CAAA,aAAA,CAAA;AAAA,MACnC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,gBAAgB,QAAA,EAA0C;AACxD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAEA,aAAa,EAAA,EAAkD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACxD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC7D;AAAA,EAEA,IAAA,GAA0B;AACxB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACxB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-F7QAC5GG.js","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n} from '../resource'\nimport { ApiResource } from '../resource'\n\nimport type { EventStore } from './event_stores'\nimport type { Order } from './orders'\nimport type { Return } from './returns'\n\ntype ResourceErrorType = 'resource_errors'\ntype ResourceErrorRel = ResourceRel & { type: ResourceErrorType }\n\nexport type ResourceErrorSort = Pick<ResourceError, 'id' | 'name' | 'code'> & ResourceSort\n// export type ResourceErrorFilter = Pick<ResourceError, 'id' | 'name' | 'code' | 'message'> & ResourceFilter\n\ninterface ResourceError extends Resource {\n readonly type: ResourceErrorType\n\n /**\n * The resource attribute name related to the error.\n * @example ```\"number\"```\n */\n name: string\n /**\n * The error code.\n * @example ```\"BLANK\"```\n */\n code: string\n /**\n * The error message.\n * @example ```\"can't be blank\"```\n */\n message: string\n\n resource?: Order | Return | null\n event_stores?: EventStore[] | null\n}\n\nclass ResourceErrors extends ApiResource<ResourceError> {\n static readonly TYPE: ResourceErrorType = 'resource_errors' as const\n\n async event_stores(\n resourceErrorId: string | ResourceError,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _resourceErrorId = (resourceErrorId as ResourceError).id || (resourceErrorId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `resource_errors/${_resourceErrorId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isResourceError(resource: any): resource is ResourceError {\n return resource.type && resource.type === ResourceErrors.TYPE\n }\n\n relationship(id: string | ResourceId | null): ResourceErrorRel {\n return super.relationshipOneToOne<ResourceErrorRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ResourceErrorRel[] {\n return super.relationshipOneToMany<ResourceErrorRel>(...ids)\n }\n\n type(): ResourceErrorType {\n return ResourceErrors.TYPE\n }\n}\n\nconst instance = new ResourceErrors()\nexport default instance\n\nexport type { ResourceError, ResourceErrors, ResourceErrorType }\n"]}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { extractTokenData, isTokenExpired } from './chunk-M6EAUX5W.js';
|
|
2
|
+
import { SDK_VERSION, API_SCHEMA_VERSION } from './chunk-MF5IYI5N.js';
|
|
3
|
+
import { SdkError, fetchURL, handleError, isExpiredTokenError } from './chunk-YXFYXDGG.js';
|
|
4
|
+
import { config_default } from './chunk-3DMYHXGB.js';
|
|
5
|
+
import { debug_default } from './chunk-OXHQKMPQ.js';
|
|
6
|
+
|
|
7
|
+
// src/client.ts
|
|
8
|
+
var CLIENT_HEADER_NAME = "X-CL-SDK";
|
|
9
|
+
var debug = debug_default("client");
|
|
10
|
+
var URL_VERSION_SEGMENT = API_SCHEMA_VERSION === "latest" ? "" : `/${API_SCHEMA_VERSION}`;
|
|
11
|
+
var baseURL = (organization, domain) => {
|
|
12
|
+
return `https://${organization.toLowerCase()}.${domain || config_default.default.domain}/api${URL_VERSION_SEGMENT}`;
|
|
13
|
+
};
|
|
14
|
+
var ApiClient = class _ApiClient {
|
|
15
|
+
static create(options) {
|
|
16
|
+
if ((!options.organization || !options.domain) && options.accessToken) {
|
|
17
|
+
const tokenData = extractTokenData(options.accessToken);
|
|
18
|
+
if (!options.organization && tokenData?.organization) options.organization = tokenData.organization;
|
|
19
|
+
if (!options.domain && tokenData?.domain) options.domain = tokenData.domain;
|
|
20
|
+
}
|
|
21
|
+
for (const attr of config_default.client.requiredAttributes)
|
|
22
|
+
if (!options[attr]) throw new SdkError({ message: `Undefined '${attr}' parameter` });
|
|
23
|
+
return new _ApiClient(options);
|
|
24
|
+
}
|
|
25
|
+
#baseUrl;
|
|
26
|
+
#accessToken;
|
|
27
|
+
#organization;
|
|
28
|
+
#domain;
|
|
29
|
+
#clientConfig;
|
|
30
|
+
#interceptors;
|
|
31
|
+
constructor(options) {
|
|
32
|
+
debug("new client instance %O", options);
|
|
33
|
+
this.#baseUrl = baseURL(options.organization ?? "", options.domain);
|
|
34
|
+
this.#accessToken = options.accessToken;
|
|
35
|
+
this.#organization = options.organization ?? "";
|
|
36
|
+
this.#domain = options.domain;
|
|
37
|
+
const fetchConfig = {
|
|
38
|
+
timeout: options.timeout || config_default.client.timeout,
|
|
39
|
+
fetch: options.fetch,
|
|
40
|
+
refreshToken: options.refreshToken
|
|
41
|
+
};
|
|
42
|
+
const customHeaders = this.customHeaders(options.headers);
|
|
43
|
+
const headers = {
|
|
44
|
+
...customHeaders,
|
|
45
|
+
Accept: "application/vnd.api+json",
|
|
46
|
+
"Content-Type": "application/vnd.api+json",
|
|
47
|
+
Authorization: "Bearer " + this.#accessToken
|
|
48
|
+
};
|
|
49
|
+
if (options.telemetry !== false) headers[CLIENT_HEADER_NAME] = `js/${SDK_VERSION}`;
|
|
50
|
+
if (options.userAgent) headers["User-Agent"] = options.userAgent;
|
|
51
|
+
fetchConfig.headers = headers;
|
|
52
|
+
this.#clientConfig = fetchConfig;
|
|
53
|
+
debug("fetch config: %O", fetchConfig);
|
|
54
|
+
this.#interceptors = {};
|
|
55
|
+
}
|
|
56
|
+
get interceptors() {
|
|
57
|
+
return this.#interceptors;
|
|
58
|
+
}
|
|
59
|
+
get requestHeaders() {
|
|
60
|
+
if (!this.#clientConfig.headers) this.#clientConfig.headers = {};
|
|
61
|
+
return this.#clientConfig.headers;
|
|
62
|
+
}
|
|
63
|
+
/*
|
|
64
|
+
set requestHeaders(headers: RequestHeaders) {
|
|
65
|
+
this.#clientConfig.headers = { ...this.#clientConfig.headers, ...headers }
|
|
66
|
+
}
|
|
67
|
+
*/
|
|
68
|
+
config(config) {
|
|
69
|
+
debug("config %o", config);
|
|
70
|
+
const def = this.#clientConfig;
|
|
71
|
+
if (!def.headers) def.headers = {};
|
|
72
|
+
if (config.timeout) def.timeout = config.timeout;
|
|
73
|
+
if (config.userAgent) this.userAgent(config.userAgent);
|
|
74
|
+
if (config.fetch) this.#clientConfig.fetch = config.fetch;
|
|
75
|
+
if (config.refreshToken) this.#clientConfig.refreshToken = config.refreshToken;
|
|
76
|
+
if (config.organization || config.domain)
|
|
77
|
+
this.#baseUrl = baseURL(config.organization || this.#organization, config.domain || this.#domain);
|
|
78
|
+
if (config.organization) this.#organization = config.organization;
|
|
79
|
+
if (config.domain) this.#domain = config.domain;
|
|
80
|
+
if (config.accessToken) {
|
|
81
|
+
this.#accessToken = config.accessToken;
|
|
82
|
+
def.headers.Authorization = "Bearer " + this.#accessToken;
|
|
83
|
+
}
|
|
84
|
+
if (config.headers) def.headers = { ...def.headers, ...this.customHeaders(config.headers) };
|
|
85
|
+
return this;
|
|
86
|
+
}
|
|
87
|
+
userAgent(userAgent) {
|
|
88
|
+
if (userAgent) this.requestHeaders["User-Agent"] = userAgent;
|
|
89
|
+
return this;
|
|
90
|
+
}
|
|
91
|
+
async request(method, path, body, options) {
|
|
92
|
+
debug("request %s %s, %O, %O", method, path, body || {}, options || {});
|
|
93
|
+
if (options?.userAgent) debug("User-Agent header ignored in request config");
|
|
94
|
+
const baseUrl = options?.organization ? baseURL(options.organization, options.domain) : this.#baseUrl;
|
|
95
|
+
const url = new URL(`${baseUrl}/${path}`);
|
|
96
|
+
const bodyData = body ? JSON.stringify({ data: body }) : void 0;
|
|
97
|
+
const headers = { ...this.requestHeaders, ...this.customHeaders(options?.headers) };
|
|
98
|
+
const accessToken = options?.accessToken || this.#accessToken;
|
|
99
|
+
if (accessToken) headers.Authorization = "Bearer " + accessToken;
|
|
100
|
+
const refreshToken = options?.refreshToken || this.#clientConfig.refreshToken;
|
|
101
|
+
const fetchFunction = options?.fetch || this.#clientConfig.fetch;
|
|
102
|
+
const requestOptions = { method, body: bodyData, headers };
|
|
103
|
+
const timeout = options?.timeout || this.#clientConfig.timeout;
|
|
104
|
+
if (timeout) {
|
|
105
|
+
if (AbortSignal?.timeout) requestOptions.signal = AbortSignal.timeout(timeout);
|
|
106
|
+
else debug("Timeout not set. Undefined function: %s", "AbortSignal.timeout");
|
|
107
|
+
}
|
|
108
|
+
if (options?.params)
|
|
109
|
+
Object.entries(options?.params).forEach(([name, value]) => {
|
|
110
|
+
url.searchParams.append(name, String(value));
|
|
111
|
+
});
|
|
112
|
+
const clientOptions = {
|
|
113
|
+
interceptors: this.interceptors,
|
|
114
|
+
fetch: fetchFunction
|
|
115
|
+
};
|
|
116
|
+
try {
|
|
117
|
+
return await fetchURL(url, requestOptions, clientOptions).catch((error) => handleError(error));
|
|
118
|
+
} catch (err) {
|
|
119
|
+
if (isExpiredTokenError(err) && refreshToken && isTokenExpired(accessToken)) {
|
|
120
|
+
debug("Access token has expired");
|
|
121
|
+
const newAccessToken = await refreshToken(this.#accessToken).catch((e) => {
|
|
122
|
+
debug("Refresh token error: %s", e.message);
|
|
123
|
+
const tokenError = new SdkError({ message: "Error refreshing access token", type: "token-refresh" /* TOKEN_REFRESH */ });
|
|
124
|
+
tokenError.source = e;
|
|
125
|
+
throw tokenError;
|
|
126
|
+
});
|
|
127
|
+
if (newAccessToken) {
|
|
128
|
+
debug("Access token refreshed");
|
|
129
|
+
this.config({ accessToken: newAccessToken });
|
|
130
|
+
this.#accessToken = newAccessToken;
|
|
131
|
+
if (requestOptions.headers)
|
|
132
|
+
requestOptions.headers.Authorization = `Bearer ${newAccessToken}`;
|
|
133
|
+
const response = await fetchURL(url, requestOptions, clientOptions).catch(
|
|
134
|
+
(error) => handleError(error)
|
|
135
|
+
);
|
|
136
|
+
return response;
|
|
137
|
+
}
|
|
138
|
+
} else throw err;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
customHeaders(headers) {
|
|
142
|
+
const customHeaders = {};
|
|
143
|
+
if (headers) {
|
|
144
|
+
for (const [name, value] of Object.entries(headers))
|
|
145
|
+
if (!["accept", "content-type", "authorization", "user-agent", CLIENT_HEADER_NAME.toLowerCase()].includes(
|
|
146
|
+
name.toLowerCase()
|
|
147
|
+
))
|
|
148
|
+
customHeaders[name] = value;
|
|
149
|
+
}
|
|
150
|
+
return customHeaders;
|
|
151
|
+
}
|
|
152
|
+
get currentAccessToken() {
|
|
153
|
+
return this.#accessToken;
|
|
154
|
+
}
|
|
155
|
+
get currentOrganization() {
|
|
156
|
+
return this.#organization;
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
var client_default = ApiClient;
|
|
160
|
+
|
|
161
|
+
export { client_default };
|
|
162
|
+
//# sourceMappingURL=chunk-F7T5ONOF.js.map
|
|
163
|
+
//# sourceMappingURL=chunk-F7T5ONOF.js.map
|