@commercelayer/sdk 8.0.0-beta.7 → 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/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 +10 -2
- package/lib/bundle.d.ts +9 -3
- package/lib/bundle.js +146 -563
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-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 +21 -16
- package/lib/commercelayer.d.cts +11 -6
- package/lib/commercelayer.d.ts +11 -6
- package/lib/commercelayer.js +10 -9
- package/lib/config.cjs +2 -2
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +14 -14
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-D4JGyBOl.d.cts +55 -0
- package/lib/fetch-D4JGyBOl.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +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 -17
- package/lib/api--5wB5Y2R.d.ts +0 -18326
- package/lib/api-D_vKsy0h.d.cts +0 -18326
- package/lib/chunk-22RVT2J2.js +0 -20
- package/lib/chunk-22RVT2J2.js.map +0 -1
- package/lib/chunk-24HV4EKV.js +0 -45
- package/lib/chunk-24HV4EKV.js.map +0 -1
- package/lib/chunk-2BYCZUKD.cjs +0 -47
- package/lib/chunk-2BYCZUKD.cjs.map +0 -1
- package/lib/chunk-2C5TBSGQ.cjs +0 -56
- package/lib/chunk-2C5TBSGQ.cjs.map +0 -1
- package/lib/chunk-2D7XHAVQ.js +0 -59
- package/lib/chunk-2D7XHAVQ.js.map +0 -1
- package/lib/chunk-2LDIS6UA.js +0 -53
- package/lib/chunk-2LDIS6UA.js.map +0 -1
- package/lib/chunk-2MSLSBHY.js +0 -57
- package/lib/chunk-2MSLSBHY.js.map +0 -1
- package/lib/chunk-2O5WYDVL.js +0 -37
- package/lib/chunk-2O5WYDVL.js.map +0 -1
- package/lib/chunk-2WHGIJGU.js +0 -54
- package/lib/chunk-2WHGIJGU.js.map +0 -1
- package/lib/chunk-35ININM5.js +0 -54
- package/lib/chunk-35ININM5.js.map +0 -1
- package/lib/chunk-376W3RHK.js +0 -27
- package/lib/chunk-376W3RHK.js.map +0 -1
- package/lib/chunk-3DEA3IGY.cjs +0 -47
- package/lib/chunk-3DEA3IGY.cjs.map +0 -1
- package/lib/chunk-3EX76AZW.js +0 -3
- package/lib/chunk-3EX76AZW.js.map +0 -1
- package/lib/chunk-3GOADUES.cjs +0 -63
- package/lib/chunk-3GOADUES.cjs.map +0 -1
- package/lib/chunk-3MGWBMJ2.cjs +0 -68
- package/lib/chunk-3MGWBMJ2.cjs.map +0 -1
- package/lib/chunk-3P4FFWTQ.cjs +0 -56
- package/lib/chunk-3P4FFWTQ.cjs.map +0 -1
- package/lib/chunk-3U7MK4SX.js +0 -68
- package/lib/chunk-3U7MK4SX.js.map +0 -1
- package/lib/chunk-3VI355UT.cjs +0 -62
- package/lib/chunk-3VI355UT.cjs.map +0 -1
- package/lib/chunk-3VVT6CKA.cjs +0 -70
- package/lib/chunk-3VVT6CKA.cjs.map +0 -1
- package/lib/chunk-3XGAVG4L.cjs +0 -34
- package/lib/chunk-3XGAVG4L.cjs.map +0 -1
- package/lib/chunk-3XSYH6SE.cjs +0 -38
- package/lib/chunk-3XSYH6SE.cjs.map +0 -1
- package/lib/chunk-3YIYVGMM.cjs +0 -42
- package/lib/chunk-3YIYVGMM.cjs.map +0 -1
- package/lib/chunk-4474ZEVS.js +0 -124
- package/lib/chunk-4474ZEVS.js.map +0 -1
- package/lib/chunk-4BE3G6GK.js +0 -51
- package/lib/chunk-4BE3G6GK.js.map +0 -1
- package/lib/chunk-4CLAI7ZC.cjs +0 -47
- package/lib/chunk-4CLAI7ZC.cjs.map +0 -1
- package/lib/chunk-4FW3MLHR.js +0 -53
- package/lib/chunk-4FW3MLHR.js.map +0 -1
- package/lib/chunk-4LAL3DCH.cjs +0 -55
- package/lib/chunk-4LAL3DCH.cjs.map +0 -1
- package/lib/chunk-4MV6VICV.js +0 -35
- package/lib/chunk-4MV6VICV.js.map +0 -1
- package/lib/chunk-53GWR3UF.js +0 -99
- package/lib/chunk-53GWR3UF.js.map +0 -1
- package/lib/chunk-5JDGRW3K.cjs +0 -47
- package/lib/chunk-5JDGRW3K.cjs.map +0 -1
- package/lib/chunk-5QFBTA7C.cjs +0 -61
- package/lib/chunk-5QFBTA7C.cjs.map +0 -1
- package/lib/chunk-5UISCFSR.cjs +0 -50
- package/lib/chunk-5UISCFSR.cjs.map +0 -1
- package/lib/chunk-5YMHXTJG.cjs +0 -4
- package/lib/chunk-5YMHXTJG.cjs.map +0 -1
- package/lib/chunk-62GRSGIA.js +0 -45
- package/lib/chunk-62GRSGIA.js.map +0 -1
- package/lib/chunk-64ENQFIL.cjs +0 -63
- package/lib/chunk-64ENQFIL.cjs.map +0 -1
- package/lib/chunk-6CE3DQTO.js +0 -53
- package/lib/chunk-6CE3DQTO.js.map +0 -1
- package/lib/chunk-6KXZ76ZM.js +0 -49
- package/lib/chunk-6KXZ76ZM.js.map +0 -1
- package/lib/chunk-6OF4JUHR.js +0 -45
- package/lib/chunk-6OF4JUHR.js.map +0 -1
- package/lib/chunk-6P72FNDJ.js +0 -53
- package/lib/chunk-6P72FNDJ.js.map +0 -1
- package/lib/chunk-73YM5XTA.cjs +0 -38
- package/lib/chunk-73YM5XTA.cjs.map +0 -1
- package/lib/chunk-74WLCRAL.cjs +0 -34
- package/lib/chunk-74WLCRAL.cjs.map +0 -1
- package/lib/chunk-7E73FXEL.cjs +0 -53
- package/lib/chunk-7E73FXEL.cjs.map +0 -1
- package/lib/chunk-7GSZFUJV.cjs +0 -59
- package/lib/chunk-7GSZFUJV.cjs.map +0 -1
- package/lib/chunk-7OUZNR45.js +0 -54
- package/lib/chunk-7OUZNR45.js.map +0 -1
- package/lib/chunk-7RZTCBDR.cjs +0 -22
- package/lib/chunk-7RZTCBDR.cjs.map +0 -1
- package/lib/chunk-7TGNLLZ4.js +0 -105
- package/lib/chunk-7TGNLLZ4.js.map +0 -1
- package/lib/chunk-7TM7YEPY.js +0 -89
- package/lib/chunk-7TM7YEPY.js.map +0 -1
- package/lib/chunk-A2CJAI7L.js +0 -24
- package/lib/chunk-A2CJAI7L.js.map +0 -1
- package/lib/chunk-A6DVFU4I.cjs +0 -46
- package/lib/chunk-A6DVFU4I.cjs.map +0 -1
- package/lib/chunk-A7NVPT5R.cjs +0 -55
- package/lib/chunk-A7NVPT5R.cjs.map +0 -1
- package/lib/chunk-A7ZFL7GH.js +0 -54
- package/lib/chunk-A7ZFL7GH.js.map +0 -1
- package/lib/chunk-AINFK7XE.js +0 -50
- package/lib/chunk-AINFK7XE.js.map +0 -1
- package/lib/chunk-AORS3S6A.js +0 -99
- package/lib/chunk-AORS3S6A.js.map +0 -1
- package/lib/chunk-APVQZ7L7.js +0 -48
- package/lib/chunk-APVQZ7L7.js.map +0 -1
- package/lib/chunk-ATT2PKKW.cjs +0 -95
- package/lib/chunk-ATT2PKKW.cjs.map +0 -1
- package/lib/chunk-AW6TSK6S.cjs +0 -42
- package/lib/chunk-AW6TSK6S.cjs.map +0 -1
- package/lib/chunk-AYKGUDP3.cjs +0 -285
- package/lib/chunk-AYKGUDP3.cjs.map +0 -1
- package/lib/chunk-AYPMKIN6.js +0 -51
- package/lib/chunk-AYPMKIN6.js.map +0 -1
- package/lib/chunk-B2MBAQSE.js +0 -41
- package/lib/chunk-B2MBAQSE.js.map +0 -1
- package/lib/chunk-BB3CT6HZ.js +0 -45
- package/lib/chunk-BB3CT6HZ.js.map +0 -1
- package/lib/chunk-BHLODYAT.js +0 -28
- package/lib/chunk-BHLODYAT.js.map +0 -1
- package/lib/chunk-BLI75VEN.cjs +0 -51
- package/lib/chunk-BLI75VEN.cjs.map +0 -1
- package/lib/chunk-BMO7YKG5.js +0 -60
- package/lib/chunk-BMO7YKG5.js.map +0 -1
- package/lib/chunk-BMOWFIX5.js +0 -45
- package/lib/chunk-BMOWFIX5.js.map +0 -1
- package/lib/chunk-BNCF46ZI.js +0 -61
- package/lib/chunk-BNCF46ZI.js.map +0 -1
- package/lib/chunk-BSXJPL6J.cjs +0 -55
- package/lib/chunk-BSXJPL6J.cjs.map +0 -1
- package/lib/chunk-BVQ2UTRP.cjs +0 -39
- package/lib/chunk-BVQ2UTRP.cjs.map +0 -1
- package/lib/chunk-BYDZPVOJ.js +0 -75
- package/lib/chunk-BYDZPVOJ.js.map +0 -1
- package/lib/chunk-C3I7H3HE.js +0 -49
- package/lib/chunk-C3I7H3HE.js.map +0 -1
- package/lib/chunk-C3UX7IBG.cjs +0 -59
- package/lib/chunk-C3UX7IBG.cjs.map +0 -1
- package/lib/chunk-C7OXTOX3.js +0 -36
- package/lib/chunk-C7OXTOX3.js.map +0 -1
- package/lib/chunk-CB5HXUPC.js +0 -31
- package/lib/chunk-CB5HXUPC.js.map +0 -1
- package/lib/chunk-CBFT5GYL.js +0 -103
- package/lib/chunk-CBFT5GYL.js.map +0 -1
- package/lib/chunk-D3LM2KQW.cjs +0 -47
- package/lib/chunk-D3LM2KQW.cjs.map +0 -1
- package/lib/chunk-D3ZUNI32.js +0 -67
- package/lib/chunk-D3ZUNI32.js.map +0 -1
- package/lib/chunk-D6CUKQZS.cjs +0 -55
- package/lib/chunk-D6CUKQZS.cjs.map +0 -1
- package/lib/chunk-DCEUM6EI.cjs +0 -30
- package/lib/chunk-DCEUM6EI.cjs.map +0 -1
- package/lib/chunk-DDV3U4FY.js +0 -48
- package/lib/chunk-DDV3U4FY.js.map +0 -1
- package/lib/chunk-DEQMKHOP.js +0 -40
- package/lib/chunk-DEQMKHOP.js.map +0 -1
- package/lib/chunk-DVDWNVCT.cjs +0 -49
- package/lib/chunk-DVDWNVCT.cjs.map +0 -1
- package/lib/chunk-DZP3JVEB.js +0 -45
- package/lib/chunk-DZP3JVEB.js.map +0 -1
- package/lib/chunk-E6MUVI6C.cjs +0 -51
- package/lib/chunk-E6MUVI6C.cjs.map +0 -1
- package/lib/chunk-E7GTEUA7.js +0 -49
- package/lib/chunk-E7GTEUA7.js.map +0 -1
- package/lib/chunk-EHEMWPTO.js +0 -102
- package/lib/chunk-EHEMWPTO.js.map +0 -1
- package/lib/chunk-EINVA4BK.cjs +0 -61
- package/lib/chunk-EINVA4BK.cjs.map +0 -1
- package/lib/chunk-EK7QE2CA.cjs +0 -47
- package/lib/chunk-EK7QE2CA.cjs.map +0 -1
- package/lib/chunk-EMD66UZY.cjs +0 -156
- package/lib/chunk-EMD66UZY.cjs.map +0 -1
- package/lib/chunk-ESJGAJ3L.js +0 -48
- package/lib/chunk-ESJGAJ3L.js.map +0 -1
- package/lib/chunk-EVFHODWY.js +0 -45
- package/lib/chunk-EVFHODWY.js.map +0 -1
- package/lib/chunk-F5GFKBDK.cjs +0 -95
- package/lib/chunk-F5GFKBDK.cjs.map +0 -1
- package/lib/chunk-F6REPWKJ.cjs +0 -77
- package/lib/chunk-F6REPWKJ.cjs.map +0 -1
- package/lib/chunk-F7F4VRB2.js +0 -45
- package/lib/chunk-F7F4VRB2.js.map +0 -1
- package/lib/chunk-FDLALORX.cjs +0 -47
- package/lib/chunk-FDLALORX.cjs.map +0 -1
- package/lib/chunk-FDTEUCMP.cjs +0 -26
- package/lib/chunk-FDTEUCMP.cjs.map +0 -1
- package/lib/chunk-FIRCMJCB.js +0 -93
- package/lib/chunk-FIRCMJCB.js.map +0 -1
- package/lib/chunk-FK3XYZ3Q.js +0 -45
- package/lib/chunk-FK3XYZ3Q.js.map +0 -1
- package/lib/chunk-FLOVFVKA.cjs +0 -51
- package/lib/chunk-FLOVFVKA.cjs.map +0 -1
- package/lib/chunk-FMQ5JHN6.cjs +0 -51
- package/lib/chunk-FMQ5JHN6.cjs.map +0 -1
- package/lib/chunk-FNIFFIDD.cjs +0 -39
- package/lib/chunk-FNIFFIDD.cjs.map +0 -1
- package/lib/chunk-FON2463F.js +0 -99
- package/lib/chunk-FON2463F.js.map +0 -1
- package/lib/chunk-G4GV5S6R.js +0 -283
- package/lib/chunk-G4GV5S6R.js.map +0 -1
- package/lib/chunk-G6BY3EA3.cjs +0 -51
- package/lib/chunk-G6BY3EA3.cjs.map +0 -1
- package/lib/chunk-GB23LWF6.js +0 -36
- package/lib/chunk-GB23LWF6.js.map +0 -1
- package/lib/chunk-GBM34MD2.cjs +0 -107
- package/lib/chunk-GBM34MD2.cjs.map +0 -1
- package/lib/chunk-GDD5SAYK.js +0 -36
- package/lib/chunk-GDD5SAYK.js.map +0 -1
- package/lib/chunk-GDPBS2DA.js +0 -154
- package/lib/chunk-GDPBS2DA.js.map +0 -1
- package/lib/chunk-GHJDV7RE.js +0 -59
- package/lib/chunk-GHJDV7RE.js.map +0 -1
- package/lib/chunk-GVVAHJ7J.cjs +0 -55
- package/lib/chunk-GVVAHJ7J.cjs.map +0 -1
- package/lib/chunk-GYCMQIMO.cjs +0 -550
- package/lib/chunk-GYCMQIMO.cjs.map +0 -1
- package/lib/chunk-H35WD77K.js +0 -49
- package/lib/chunk-H35WD77K.js.map +0 -1
- package/lib/chunk-H4OZFLUI.js +0 -37
- package/lib/chunk-H4OZFLUI.js.map +0 -1
- package/lib/chunk-HAF3NSFM.js +0 -93
- package/lib/chunk-HAF3NSFM.js.map +0 -1
- package/lib/chunk-HBEFGWUI.cjs +0 -49
- package/lib/chunk-HBEFGWUI.cjs.map +0 -1
- package/lib/chunk-HCK6NM5P.cjs +0 -47
- package/lib/chunk-HCK6NM5P.cjs.map +0 -1
- package/lib/chunk-HE4KWG6X.js +0 -55
- package/lib/chunk-HE4KWG6X.js.map +0 -1
- package/lib/chunk-HG36VCO5.js +0 -28
- package/lib/chunk-HG36VCO5.js.map +0 -1
- package/lib/chunk-HHOMPSSL.js +0 -91
- package/lib/chunk-HHOMPSSL.js.map +0 -1
- package/lib/chunk-HK6PGHU6.js +0 -57
- package/lib/chunk-HK6PGHU6.js.map +0 -1
- package/lib/chunk-HLI7KDN3.js +0 -45
- package/lib/chunk-HLI7KDN3.js.map +0 -1
- package/lib/chunk-HOQPWW7K.js +0 -40
- package/lib/chunk-HOQPWW7K.js.map +0 -1
- package/lib/chunk-HP6ZFYAJ.js +0 -37
- package/lib/chunk-HP6ZFYAJ.js.map +0 -1
- package/lib/chunk-HQZKODMU.js +0 -57
- package/lib/chunk-HQZKODMU.js.map +0 -1
- package/lib/chunk-HYO7YG3G.js +0 -45
- package/lib/chunk-HYO7YG3G.js.map +0 -1
- package/lib/chunk-HZ555CAY.js +0 -48
- package/lib/chunk-HZ555CAY.js.map +0 -1
- package/lib/chunk-IANMFIQD.js +0 -45
- package/lib/chunk-IANMFIQD.js.map +0 -1
- package/lib/chunk-IBXRFMT6.js +0 -69
- package/lib/chunk-IBXRFMT6.js.map +0 -1
- package/lib/chunk-IIWTNBRQ.cjs +0 -50
- package/lib/chunk-IIWTNBRQ.cjs.map +0 -1
- package/lib/chunk-IKCYKGYL.js +0 -151
- package/lib/chunk-IKCYKGYL.js.map +0 -1
- package/lib/chunk-IWC4U5GF.js +0 -49
- package/lib/chunk-IWC4U5GF.js.map +0 -1
- package/lib/chunk-IXLAN7TH.cjs +0 -61
- package/lib/chunk-IXLAN7TH.cjs.map +0 -1
- package/lib/chunk-JDAGKW5W.js +0 -44
- package/lib/chunk-JDAGKW5W.js.map +0 -1
- package/lib/chunk-JEWF32HM.js +0 -41
- package/lib/chunk-JEWF32HM.js.map +0 -1
- package/lib/chunk-JKO7QP65.cjs +0 -93
- package/lib/chunk-JKO7QP65.cjs.map +0 -1
- package/lib/chunk-JLC6MA4J.js +0 -65
- package/lib/chunk-JLC6MA4J.js.map +0 -1
- package/lib/chunk-JNXHE7P7.cjs +0 -42
- package/lib/chunk-JNXHE7P7.cjs.map +0 -1
- package/lib/chunk-JRMNMJVD.js +0 -61
- package/lib/chunk-JRMNMJVD.js.map +0 -1
- package/lib/chunk-JRUC5BXS.cjs +0 -42
- package/lib/chunk-JRUC5BXS.cjs.map +0 -1
- package/lib/chunk-JWPPED4R.js +0 -47
- package/lib/chunk-JWPPED4R.js.map +0 -1
- package/lib/chunk-K277GYCD.cjs +0 -40
- package/lib/chunk-K277GYCD.cjs.map +0 -1
- package/lib/chunk-K577VLOE.js +0 -45
- package/lib/chunk-K577VLOE.js.map +0 -1
- package/lib/chunk-K5YQI6TW.cjs +0 -47
- package/lib/chunk-K5YQI6TW.cjs.map +0 -1
- package/lib/chunk-KAMFWXPM.cjs +0 -51
- package/lib/chunk-KAMFWXPM.cjs.map +0 -1
- package/lib/chunk-KKB2YNT3.cjs +0 -100
- package/lib/chunk-KKB2YNT3.cjs.map +0 -1
- package/lib/chunk-KLPFAEV7.js +0 -55
- package/lib/chunk-KLPFAEV7.js.map +0 -1
- package/lib/chunk-KR3CTO6J.js +0 -53
- package/lib/chunk-KR3CTO6J.js.map +0 -1
- package/lib/chunk-KU43R6UR.js +0 -49
- package/lib/chunk-KU43R6UR.js.map +0 -1
- package/lib/chunk-L25AS3VU.cjs +0 -61
- package/lib/chunk-L25AS3VU.cjs.map +0 -1
- package/lib/chunk-L3ZQAILV.js +0 -45
- package/lib/chunk-L3ZQAILV.js.map +0 -1
- package/lib/chunk-LFPSATJW.js +0 -40
- package/lib/chunk-LFPSATJW.js.map +0 -1
- package/lib/chunk-LGYQGCME.cjs +0 -61
- package/lib/chunk-LGYQGCME.cjs.map +0 -1
- package/lib/chunk-LIWSHAZ4.cjs +0 -43
- package/lib/chunk-LIWSHAZ4.cjs.map +0 -1
- package/lib/chunk-LPHKPEHK.cjs +0 -69
- package/lib/chunk-LPHKPEHK.cjs.map +0 -1
- package/lib/chunk-LQ5GKVLT.cjs +0 -163
- package/lib/chunk-LQ5GKVLT.cjs.map +0 -1
- package/lib/chunk-LSWGTCTI.js +0 -59
- package/lib/chunk-LSWGTCTI.js.map +0 -1
- package/lib/chunk-LXVXNCLG.cjs +0 -71
- package/lib/chunk-LXVXNCLG.cjs.map +0 -1
- package/lib/chunk-M377L2KC.cjs +0 -59
- package/lib/chunk-M377L2KC.cjs.map +0 -1
- package/lib/chunk-MEN4RRXP.js +0 -41
- package/lib/chunk-MEN4RRXP.js.map +0 -1
- package/lib/chunk-MEZO63WH.js +0 -49
- package/lib/chunk-MEZO63WH.js.map +0 -1
- package/lib/chunk-ML4B3K2M.cjs +0 -126
- package/lib/chunk-ML4B3K2M.cjs.map +0 -1
- package/lib/chunk-NFJG6NQJ.cjs +0 -57
- package/lib/chunk-NFJG6NQJ.cjs.map +0 -1
- package/lib/chunk-NKXOTCMF.js +0 -42
- package/lib/chunk-NKXOTCMF.js.map +0 -1
- package/lib/chunk-NQW3T4PY.js +0 -40
- package/lib/chunk-NQW3T4PY.js.map +0 -1
- package/lib/chunk-NSLBPISG.cjs +0 -51
- package/lib/chunk-NSLBPISG.cjs.map +0 -1
- package/lib/chunk-NTPA4Q5S.js +0 -40
- package/lib/chunk-NTPA4Q5S.js.map +0 -1
- package/lib/chunk-NW4PT4NA.cjs +0 -75
- package/lib/chunk-NW4PT4NA.cjs.map +0 -1
- package/lib/chunk-NWDZHCQQ.cjs +0 -50
- package/lib/chunk-NWDZHCQQ.cjs.map +0 -1
- package/lib/chunk-O3GDTCML.cjs +0 -101
- package/lib/chunk-O3GDTCML.cjs.map +0 -1
- package/lib/chunk-O5452XSG.js +0 -41
- package/lib/chunk-O5452XSG.js.map +0 -1
- package/lib/chunk-OE4JCN6L.cjs +0 -47
- package/lib/chunk-OE4JCN6L.cjs.map +0 -1
- package/lib/chunk-OESVAYOY.cjs +0 -44
- package/lib/chunk-OESVAYOY.cjs.map +0 -1
- package/lib/chunk-OFXYCDYF.js +0 -44
- package/lib/chunk-OFXYCDYF.js.map +0 -1
- package/lib/chunk-ONK4A4VG.js +0 -49
- package/lib/chunk-ONK4A4VG.js.map +0 -1
- package/lib/chunk-OOJKRV4I.js +0 -93
- package/lib/chunk-OOJKRV4I.js.map +0 -1
- package/lib/chunk-OXGE4UIS.cjs +0 -51
- package/lib/chunk-OXGE4UIS.cjs.map +0 -1
- package/lib/chunk-P2SHNYXZ.cjs +0 -47
- package/lib/chunk-P2SHNYXZ.cjs.map +0 -1
- package/lib/chunk-P3SFKEXE.js +0 -37
- package/lib/chunk-P3SFKEXE.js.map +0 -1
- package/lib/chunk-P7TCVHNF.cjs +0 -56
- package/lib/chunk-P7TCVHNF.cjs.map +0 -1
- package/lib/chunk-PE4GN5GN.cjs +0 -39
- package/lib/chunk-PE4GN5GN.cjs.map +0 -1
- package/lib/chunk-PEC5CKS7.cjs +0 -22
- package/lib/chunk-PEC5CKS7.cjs.map +0 -1
- package/lib/chunk-PERRXGB6.js +0 -52
- package/lib/chunk-PERRXGB6.js.map +0 -1
- package/lib/chunk-PHTOGAMR.js +0 -93
- package/lib/chunk-PHTOGAMR.js.map +0 -1
- package/lib/chunk-PIHQS6OG.js +0 -153
- package/lib/chunk-PIHQS6OG.js.map +0 -1
- package/lib/chunk-PKRD2QKS.js +0 -51
- package/lib/chunk-PKRD2QKS.js.map +0 -1
- package/lib/chunk-PLWDHUYW.cjs +0 -95
- package/lib/chunk-PLWDHUYW.cjs.map +0 -1
- package/lib/chunk-PX5VMNOJ.cjs +0 -39
- package/lib/chunk-PX5VMNOJ.cjs.map +0 -1
- package/lib/chunk-PYJG4KKQ.js +0 -49
- package/lib/chunk-PYJG4KKQ.js.map +0 -1
- package/lib/chunk-Q3NXEKVS.cjs +0 -51
- package/lib/chunk-Q3NXEKVS.cjs.map +0 -1
- package/lib/chunk-Q3QW53MA.js +0 -53
- package/lib/chunk-Q3QW53MA.js.map +0 -1
- package/lib/chunk-QIL2RRUJ.cjs +0 -54
- package/lib/chunk-QIL2RRUJ.cjs.map +0 -1
- package/lib/chunk-QQU5KYKX.cjs +0 -33
- package/lib/chunk-QQU5KYKX.cjs.map +0 -1
- package/lib/chunk-QQZRPK6S.js +0 -536
- package/lib/chunk-QQZRPK6S.js.map +0 -1
- package/lib/chunk-QTXR3MOC.cjs +0 -51
- package/lib/chunk-QTXR3MOC.cjs.map +0 -1
- package/lib/chunk-QURTUQAU.cjs +0 -43
- package/lib/chunk-QURTUQAU.cjs.map +0 -1
- package/lib/chunk-QVFORRXP.cjs +0 -51
- package/lib/chunk-QVFORRXP.cjs.map +0 -1
- package/lib/chunk-QWW2P4EV.js +0 -68
- package/lib/chunk-QWW2P4EV.js.map +0 -1
- package/lib/chunk-R5RAVJU6.cjs +0 -53
- package/lib/chunk-R5RAVJU6.cjs.map +0 -1
- package/lib/chunk-R7ZZCZYK.cjs +0 -55
- package/lib/chunk-R7ZZCZYK.cjs.map +0 -1
- package/lib/chunk-REV57I2G.cjs +0 -56
- package/lib/chunk-REV57I2G.cjs.map +0 -1
- package/lib/chunk-RG2NWGVK.cjs +0 -101
- package/lib/chunk-RG2NWGVK.cjs.map +0 -1
- package/lib/chunk-RKP2R57M.js +0 -48
- package/lib/chunk-RKP2R57M.js.map +0 -1
- package/lib/chunk-RLR77QCI.cjs +0 -70
- package/lib/chunk-RLR77QCI.cjs.map +0 -1
- package/lib/chunk-RMNQWTPJ.cjs +0 -54
- package/lib/chunk-RMNQWTPJ.cjs.map +0 -1
- package/lib/chunk-ROXM5D5R.cjs +0 -50
- package/lib/chunk-ROXM5D5R.cjs.map +0 -1
- package/lib/chunk-RQ2EM4Q3.cjs +0 -56
- package/lib/chunk-RQ2EM4Q3.cjs.map +0 -1
- package/lib/chunk-RSLLFTPW.js +0 -49
- package/lib/chunk-RSLLFTPW.js.map +0 -1
- package/lib/chunk-S2BT3STJ.js +0 -32
- package/lib/chunk-S2BT3STJ.js.map +0 -1
- package/lib/chunk-S5DFPL4R.cjs +0 -91
- package/lib/chunk-S5DFPL4R.cjs.map +0 -1
- package/lib/chunk-S7RDGMD4.cjs +0 -55
- package/lib/chunk-S7RDGMD4.cjs.map +0 -1
- package/lib/chunk-SEHGRWGG.js +0 -66
- package/lib/chunk-SEHGRWGG.js.map +0 -1
- package/lib/chunk-SFMVCOGC.cjs +0 -47
- package/lib/chunk-SFMVCOGC.cjs.map +0 -1
- package/lib/chunk-SP4HOXSO.js +0 -45
- package/lib/chunk-SP4HOXSO.js.map +0 -1
- package/lib/chunk-TDLRTDXU.cjs +0 -89
- package/lib/chunk-TDLRTDXU.cjs.map +0 -1
- package/lib/chunk-TFCFXW7O.cjs +0 -101
- package/lib/chunk-TFCFXW7O.cjs.map +0 -1
- package/lib/chunk-TGFLFIXT.cjs +0 -47
- package/lib/chunk-TGFLFIXT.cjs.map +0 -1
- package/lib/chunk-TKDL7G4N.cjs +0 -53
- package/lib/chunk-TKDL7G4N.cjs.map +0 -1
- package/lib/chunk-TKZJTEON.cjs +0 -57
- package/lib/chunk-TKZJTEON.cjs.map +0 -1
- package/lib/chunk-TLYGE3RY.cjs +0 -38
- package/lib/chunk-TLYGE3RY.cjs.map +0 -1
- package/lib/chunk-TORNEVKC.js +0 -32
- package/lib/chunk-TORNEVKC.js.map +0 -1
- package/lib/chunk-TTE2YUFU.js +0 -54
- package/lib/chunk-TTE2YUFU.js.map +0 -1
- package/lib/chunk-TUANHZ5V.cjs +0 -56
- package/lib/chunk-TUANHZ5V.cjs.map +0 -1
- package/lib/chunk-TXH5CJLS.cjs +0 -49
- package/lib/chunk-TXH5CJLS.cjs.map +0 -1
- package/lib/chunk-TZ3RWTTE.cjs +0 -51
- package/lib/chunk-TZ3RWTTE.cjs.map +0 -1
- package/lib/chunk-UAYQ3LTT.cjs +0 -43
- package/lib/chunk-UAYQ3LTT.cjs.map +0 -1
- package/lib/chunk-UP7FMESP.js +0 -55
- package/lib/chunk-UP7FMESP.js.map +0 -1
- package/lib/chunk-UQQTNQX3.cjs +0 -153
- package/lib/chunk-UQQTNQX3.cjs.map +0 -1
- package/lib/chunk-URD6KUKM.js +0 -49
- package/lib/chunk-URD6KUKM.js.map +0 -1
- package/lib/chunk-USIBTSYD.js +0 -276
- package/lib/chunk-USIBTSYD.js.map +0 -1
- package/lib/chunk-V5S4O57M.js +0 -45
- package/lib/chunk-V5S4O57M.js.map +0 -1
- package/lib/chunk-VAZIDWSC.js +0 -87
- package/lib/chunk-VAZIDWSC.js.map +0 -1
- package/lib/chunk-VEPFANF7.js +0 -53
- package/lib/chunk-VEPFANF7.js.map +0 -1
- package/lib/chunk-VII4ZVM7.cjs +0 -42
- package/lib/chunk-VII4ZVM7.cjs.map +0 -1
- package/lib/chunk-VMKHXGVC.js +0 -73
- package/lib/chunk-VMKHXGVC.js.map +0 -1
- package/lib/chunk-VODDUQ3X.js +0 -49
- package/lib/chunk-VODDUQ3X.js.map +0 -1
- package/lib/chunk-VVY3GX6X.cjs +0 -56
- package/lib/chunk-VVY3GX6X.cjs.map +0 -1
- package/lib/chunk-WCZEGCEC.js +0 -37
- package/lib/chunk-WCZEGCEC.js.map +0 -1
- package/lib/chunk-WHLOYOJC.cjs +0 -107
- package/lib/chunk-WHLOYOJC.cjs.map +0 -1
- package/lib/chunk-WOZH2ZEF.js +0 -51
- package/lib/chunk-WOZH2ZEF.js.map +0 -1
- package/lib/chunk-WQICC32S.js +0 -59
- package/lib/chunk-WQICC32S.js.map +0 -1
- package/lib/chunk-WQLPOO4N.js +0 -45
- package/lib/chunk-WQLPOO4N.js.map +0 -1
- package/lib/chunk-WQOB2KER.js +0 -37
- package/lib/chunk-WQOB2KER.js.map +0 -1
- package/lib/chunk-WQSPNJNP.cjs +0 -63
- package/lib/chunk-WQSPNJNP.cjs.map +0 -1
- package/lib/chunk-WUI2XWKI.cjs +0 -47
- package/lib/chunk-WUI2XWKI.cjs.map +0 -1
- package/lib/chunk-WW7C4RZJ.js +0 -59
- package/lib/chunk-WW7C4RZJ.js.map +0 -1
- package/lib/chunk-WYUB5WZL.js +0 -98
- package/lib/chunk-WYUB5WZL.js.map +0 -1
- package/lib/chunk-WZV2V6IT.cjs +0 -39
- package/lib/chunk-WZV2V6IT.cjs.map +0 -1
- package/lib/chunk-X5V7ZUU7.js +0 -49
- package/lib/chunk-X5V7ZUU7.js.map +0 -1
- package/lib/chunk-X6RCAGFS.cjs +0 -67
- package/lib/chunk-X6RCAGFS.cjs.map +0 -1
- package/lib/chunk-XBXDURPZ.js +0 -93
- package/lib/chunk-XBXDURPZ.js.map +0 -1
- package/lib/chunk-XEAHROOE.cjs +0 -95
- package/lib/chunk-XEAHROOE.cjs.map +0 -1
- package/lib/chunk-XEPHQGPG.cjs +0 -57
- package/lib/chunk-XEPHQGPG.cjs.map +0 -1
- package/lib/chunk-XI6YNNGF.js +0 -52
- package/lib/chunk-XI6YNNGF.js.map +0 -1
- package/lib/chunk-XJ5QSB4X.js +0 -45
- package/lib/chunk-XJ5QSB4X.js.map +0 -1
- package/lib/chunk-XJHXJ2X2.js +0 -47
- package/lib/chunk-XJHXJ2X2.js.map +0 -1
- package/lib/chunk-XJP7O6DK.cjs +0 -53
- package/lib/chunk-XJP7O6DK.cjs.map +0 -1
- package/lib/chunk-XJUQEJMI.js +0 -40
- package/lib/chunk-XJUQEJMI.js.map +0 -1
- package/lib/chunk-XMRYT2R6.cjs +0 -29
- package/lib/chunk-XMRYT2R6.cjs.map +0 -1
- package/lib/chunk-XMWIRROB.cjs +0 -43
- package/lib/chunk-XMWIRROB.cjs.map +0 -1
- package/lib/chunk-XP4BWHD3.cjs +0 -47
- package/lib/chunk-XP4BWHD3.cjs.map +0 -1
- package/lib/chunk-XVLKPTNO.cjs +0 -68
- package/lib/chunk-XVLKPTNO.cjs.map +0 -1
- package/lib/chunk-XZB5NHLE.cjs +0 -42
- package/lib/chunk-XZB5NHLE.cjs.map +0 -1
- package/lib/chunk-Y56DKJ4Z.cjs +0 -284
- package/lib/chunk-Y56DKJ4Z.cjs.map +0 -1
- package/lib/chunk-Y5HM4EFJ.js +0 -54
- package/lib/chunk-Y5HM4EFJ.js.map +0 -1
- package/lib/chunk-Y7NYGZPZ.cjs +0 -95
- package/lib/chunk-Y7NYGZPZ.cjs.map +0 -1
- package/lib/chunk-Y7W5KVDM.cjs +0 -105
- package/lib/chunk-Y7W5KVDM.cjs.map +0 -1
- package/lib/chunk-YADXOWEP.cjs +0 -51
- package/lib/chunk-YADXOWEP.cjs.map +0 -1
- package/lib/chunk-YAVBHKRL.js +0 -49
- package/lib/chunk-YAVBHKRL.js.map +0 -1
- package/lib/chunk-YBHKXAWG.js +0 -66
- package/lib/chunk-YBHKXAWG.js.map +0 -1
- package/lib/chunk-YEFSXXFU.cjs +0 -52
- package/lib/chunk-YEFSXXFU.cjs.map +0 -1
- package/lib/chunk-YJ5ZKAK5.cjs +0 -42
- package/lib/chunk-YJ5ZKAK5.cjs.map +0 -1
- package/lib/chunk-YJTJJDRF.cjs +0 -46
- package/lib/chunk-YJTJJDRF.cjs.map +0 -1
- package/lib/chunk-YNVTCQEO.js +0 -54
- package/lib/chunk-YNVTCQEO.js.map +0 -1
- package/lib/chunk-YQNDMEVM.cjs +0 -50
- package/lib/chunk-YQNDMEVM.cjs.map +0 -1
- package/lib/chunk-YW5OSIBL.cjs +0 -30
- package/lib/chunk-YW5OSIBL.cjs.map +0 -1
- package/lib/chunk-YYJATDDO.js +0 -47
- package/lib/chunk-YYJATDDO.js.map +0 -1
- package/lib/chunk-Z22N4HZK.cjs +0 -47
- package/lib/chunk-Z22N4HZK.cjs.map +0 -1
- package/lib/chunk-Z4LKTHPE.js +0 -20
- package/lib/chunk-Z4LKTHPE.js.map +0 -1
- package/lib/chunk-ZADQ5IPG.js +0 -59
- package/lib/chunk-ZADQ5IPG.js.map +0 -1
- package/lib/chunk-ZAFMNQT3.cjs +0 -75
- package/lib/chunk-ZAFMNQT3.cjs.map +0 -1
- package/lib/chunk-ZCPDCC6N.js +0 -40
- package/lib/chunk-ZCPDCC6N.js.map +0 -1
- package/lib/chunk-ZFKOVGKA.js +0 -73
- package/lib/chunk-ZFKOVGKA.js.map +0 -1
- package/lib/chunk-ZGM7TVRO.cjs +0 -51
- package/lib/chunk-ZGM7TVRO.cjs.map +0 -1
- package/lib/chunk-ZJGCKI5T.cjs +0 -47
- package/lib/chunk-ZJGCKI5T.cjs.map +0 -1
- package/lib/chunk-ZK6DZMC3.cjs +0 -47
- package/lib/chunk-ZK6DZMC3.cjs.map +0 -1
- package/lib/chunk-ZZ6FBYJX.cjs +0 -39
- package/lib/chunk-ZZ6FBYJX.cjs.map +0 -1
- package/lib/fetch-B8-kP4X0.d.cts +0 -55
- package/lib/fetch-B8-kP4X0.d.ts +0 -55
package/lib/chunk-H35WD77K.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/talon_one_accounts.ts
|
|
4
|
-
var TalonOneAccounts = class _TalonOneAccounts extends ApiResource {
|
|
5
|
-
static TYPE = "talon_one_accounts";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _TalonOneAccounts.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _TalonOneAccounts.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _TalonOneAccounts.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async markets(talonOneAccountId, params, options) {
|
|
16
|
-
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `talon_one_accounts/${_talonOneAccountId}/markets`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async discount_engine_items(talonOneAccountId, params, options) {
|
|
20
|
-
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
21
|
-
return this.resources.fetch({ type: "discount_engine_items" }, `talon_one_accounts/${_talonOneAccountId}/discount_engine_items`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async attachments(talonOneAccountId, params, options) {
|
|
24
|
-
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
25
|
-
return this.resources.fetch({ type: "attachments" }, `talon_one_accounts/${_talonOneAccountId}/attachments`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async event_stores(talonOneAccountId, params, options) {
|
|
28
|
-
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
29
|
-
return this.resources.fetch({ type: "event_stores" }, `talon_one_accounts/${_talonOneAccountId}/event_stores`, params, options);
|
|
30
|
-
}
|
|
31
|
-
isTalonOneAccount(resource) {
|
|
32
|
-
return resource.type && resource.type === _TalonOneAccounts.TYPE;
|
|
33
|
-
}
|
|
34
|
-
relationship(id) {
|
|
35
|
-
return super.relationshipOneToOne(id);
|
|
36
|
-
}
|
|
37
|
-
relationshipToMany(...ids) {
|
|
38
|
-
return super.relationshipOneToMany(...ids);
|
|
39
|
-
}
|
|
40
|
-
type() {
|
|
41
|
-
return _TalonOneAccounts.TYPE;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var instance = new TalonOneAccounts();
|
|
45
|
-
var talon_one_accounts_default = instance;
|
|
46
|
-
|
|
47
|
-
export { talon_one_accounts_default };
|
|
48
|
-
//# sourceMappingURL=chunk-H35WD77K.js.map
|
|
49
|
-
//# sourceMappingURL=chunk-H35WD77K.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/talon_one_accounts.ts"],"names":[],"mappings":";;;AAiGA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4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AA,GAAQ","file":"chunk-H35WD77K.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { DiscountEngineItem } from './discount_engine_items'\nimport type { EventStore } from './event_stores'\nimport type { Market } from './markets'\n\n\ntype TalonOneAccountType = 'talon_one_accounts'\ntype TalonOneAccountRel = ResourceRel & { type: TalonOneAccountType }\n\n\nexport type TalonOneAccountSort = Pick<TalonOneAccount, 'id' | 'name'> & ResourceSort\n// export type TalonOneAccountFilter = Pick<TalonOneAccount, 'id' | 'name'> & ResourceFilter\n\n\ninterface TalonOneAccount extends Resource {\n\t\n\treadonly type: TalonOneAccountType\n\n\t/** \n\t * The discount engine's internal name.\n\t * @example ```\"Personal discount engine\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the discount engine manages both promotions and gift cards application at once.\n\t * @example ```true```\n\t */\n\tmanage_gift_cards?: boolean | null\n\t/** \n\t * The API endpoint as computed by specified baseurl.\n\t * @example ```\"https://my_baseurl.talon.one/v2\"```\n\t */\n\tapi_endpoint?: string | null\n\n\tmarkets?: Market[] | null\n\tdiscount_engine_items?: DiscountEngineItem[] | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface TalonOneAccountCreate extends ResourceCreate {\n\t\n\t/** \n\t * The discount engine's internal name.\n\t * @example ```\"Personal discount engine\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the discount engine manages both promotions and gift cards application at once.\n\t * @example ```true```\n\t */\n\tmanage_gift_cards?: boolean | null\n\t/** \n\t * The Talon.One account API key.\n\t * @example ```\"TALON_ONE_API_KEY\"```\n\t */\n\tapi_key: string\n\t/** \n\t * The Talon.One API baseurl (excluding the talon.one suffix).\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl: string\n\t\n}\n\n\ninterface TalonOneAccountUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The discount engine's internal name.\n\t * @example ```\"Personal discount engine\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the discount engine manages both promotions and gift cards application at once.\n\t * @example ```true```\n\t */\n\tmanage_gift_cards?: boolean | null\n\t/** \n\t * The Talon.One account API key.\n\t * @example ```\"TALON_ONE_API_KEY\"```\n\t */\n\tapi_key?: string | null\n\t/** \n\t * The Talon.One API baseurl (excluding the talon.one suffix).\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t\n}\n\n\nclass TalonOneAccounts extends ApiResource<TalonOneAccount> {\n\n\tstatic readonly TYPE: TalonOneAccountType = 'talon_one_accounts' as const\n\n\tasync create(resource: TalonOneAccountCreate, params?: QueryParamsRetrieve<TalonOneAccount>, options?: ResourcesConfig): Promise<TalonOneAccount> {\n\t\treturn this.resources.create<TalonOneAccountCreate, TalonOneAccount>({ ...resource, type: TalonOneAccounts.TYPE }, params, options)\n\t}\n\n\tasync update(resource: TalonOneAccountUpdate, params?: QueryParamsRetrieve<TalonOneAccount>, options?: ResourcesConfig): Promise<TalonOneAccount> {\n\t\treturn this.resources.update<TalonOneAccountUpdate, TalonOneAccount>({ ...resource, type: TalonOneAccounts.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: TalonOneAccounts.TYPE } : id, options)\n\t}\n\n\tasync markets(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || talonOneAccountId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `talon_one_accounts/${_talonOneAccountId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync discount_engine_items(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList<DiscountEngineItem>, options?: ResourcesConfig): Promise<ListResponse<DiscountEngineItem>> {\n\t\tconst _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || talonOneAccountId as string\n\t\treturn this.resources.fetch<DiscountEngineItem>({ type: 'discount_engine_items' }, `talon_one_accounts/${_talonOneAccountId}/discount_engine_items`, params, options) as unknown as ListResponse<DiscountEngineItem>\n\t}\n\n\tasync attachments(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || talonOneAccountId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `talon_one_accounts/${_talonOneAccountId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(talonOneAccountId: string | TalonOneAccount, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || talonOneAccountId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `talon_one_accounts/${_talonOneAccountId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisTalonOneAccount(resource: any): resource is TalonOneAccount {\n\t\treturn resource.type && (resource.type === TalonOneAccounts.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TalonOneAccountRel {\n\t\treturn super.relationshipOneToOne<TalonOneAccountRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TalonOneAccountRel[] {\n\t\treturn super.relationshipOneToMany<TalonOneAccountRel>(...ids)\n\t}\n\n\n\ttype(): TalonOneAccountType {\n\t\treturn TalonOneAccounts.TYPE\n\t}\n\n}\n\n\nconst instance = new TalonOneAccounts()\nexport default instance\n\nexport type { TalonOneAccount, TalonOneAccountCreate, TalonOneAccounts, TalonOneAccountType, TalonOneAccountUpdate }\n"]}
|
package/lib/chunk-H4OZFLUI.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/attachments.ts
|
|
4
|
-
var Attachments = class _Attachments extends ApiResource {
|
|
5
|
-
static TYPE = "attachments";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _Attachments.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _Attachments.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Attachments.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async event_stores(attachmentId, params, options) {
|
|
16
|
-
const _attachmentId = attachmentId.id || attachmentId;
|
|
17
|
-
return this.resources.fetch({ type: "event_stores" }, `attachments/${_attachmentId}/event_stores`, params, options);
|
|
18
|
-
}
|
|
19
|
-
isAttachment(resource) {
|
|
20
|
-
return resource.type && resource.type === _Attachments.TYPE;
|
|
21
|
-
}
|
|
22
|
-
relationship(id) {
|
|
23
|
-
return super.relationshipOneToOne(id);
|
|
24
|
-
}
|
|
25
|
-
relationshipToMany(...ids) {
|
|
26
|
-
return super.relationshipOneToMany(...ids);
|
|
27
|
-
}
|
|
28
|
-
type() {
|
|
29
|
-
return _Attachments.TYPE;
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
var instance = new Attachments();
|
|
33
|
-
var attachments_default = instance;
|
|
34
|
-
|
|
35
|
-
export { attachments_default };
|
|
36
|
-
//# sourceMappingURL=chunk-H4OZFLUI.js.map
|
|
37
|
-
//# sourceMappingURL=chunk-H4OZFLUI.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/attachments.ts"],"names":[],"mappings":";;;AAkKA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAo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KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA,EACpD;AAAA,EAEA,sBAAsB,GAAA,EAAgC;AACrD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAqC,GAAG,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,IAAA,GAAuB;AACtB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACpB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,mBAAA,GAAQ","file":"chunk-H4OZFLUI.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Bundle, BundleType } from './bundles'\nimport type { CarrierAccount, CarrierAccountType } from './carrier_accounts'\nimport type { CouponRecipient, CouponRecipientType } from './coupon_recipients'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { Customer, CustomerType } from './customers'\nimport type { DeliveryLeadTime, DeliveryLeadTimeType } from './delivery_lead_times'\nimport type { DiscountEngine, DiscountEngineType } from './discount_engines'\nimport type { EventStore } from './event_stores'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { GiftCardRecipient, GiftCardRecipientType } from './gift_card_recipients'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { Market, MarketType } from './markets'\nimport type { Merchant, MerchantType } from './merchants'\nimport type { Order, OrderType } from './orders'\nimport type { Package, PackageType } from './packages'\nimport type { Parcel, ParcelType } from './parcels'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PaymentOption, PaymentOptionType } from './payment_options'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { PriceTier, PriceTierType } from './price_tiers'\nimport type { Price, PriceType } from './prices'\nimport type { Promotion, PromotionType } from './promotions'\nimport type { Return, ReturnType } from './returns'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { ShippingCategory, ShippingCategoryType } from './shipping_categories'\nimport type { ShippingMethodTier, ShippingMethodTierType } from './shipping_method_tiers'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { ShippingZone, ShippingZoneType } from './shipping_zones'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { SkuOption, SkuOptionType } from './sku_options'\nimport type { Sku, SkuType } from './skus'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { StockTransfer, StockTransferType } from './stock_transfers'\nimport type { SubscriptionModel, SubscriptionModelType } from './subscription_models'\nimport type { TaxCalculator, TaxCalculatorType } from './tax_calculators'\nimport type { TaxCategory, TaxCategoryType } from './tax_categories'\nimport type { Transaction, TransactionType } from './transactions'\n\n\ntype AttachmentType = 'attachments'\ntype AttachmentRel = ResourceRel & { type: AttachmentType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype PromotionRel = ResourceRel & { type: PromotionType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype TransactionRel = ResourceRel & { type: TransactionType }\ntype TaxCalculatorRel = ResourceRel & { type: TaxCalculatorType }\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ReturnRel = ResourceRel & { type: ReturnType }\ntype CarrierAccountRel = ResourceRel & { type: CarrierAccountType }\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype DeliveryLeadTimeRel = ResourceRel & { type: DeliveryLeadTimeType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype GiftCardRecipientRel = ResourceRel & { type: GiftCardRecipientType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\ntype PaymentOptionRel = ResourceRel & { type: PaymentOptionType }\ntype PackageRel = ResourceRel & { type: PackageType }\ntype PriceRel = ResourceRel & { type: PriceType }\ntype PriceTierRel = ResourceRel & { type: PriceTierType }\ntype ShippingMethodTierRel = ResourceRel & { type: ShippingMethodTierType }\ntype ShippingZoneRel = ResourceRel & { type: ShippingZoneType }\n\n\nexport type AttachmentSort = Pick<Attachment, 'id' | 'name'> & ResourceSort\n// export type AttachmentFilter = Pick<Attachment, 'id' | 'name' | 'description'> & ResourceFilter\n\n\ninterface Attachment extends Resource {\n\t\n\treadonly type: AttachmentType\n\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable?: Geocoder | PriceList | PaymentMethod | Market | CustomerGroup | Promotion | Order | Transaction | TaxCalculator | TaxCategory | Sku | ShippingCategory | Bundle | SkuList | StockItem | StockLocation | Return | CarrierAccount | CouponRecipient | Customer | DeliveryLeadTime | ShippingMethod | Shipment | DiscountEngine | Parcel | GiftCardRecipient | GiftCard | InventoryModel | StockTransfer | SkuOption | Merchant | SubscriptionModel | PaymentOption | Package | Price | PriceTier | ShippingMethodTier | ShippingZone | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AttachmentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable: GeocoderRel | PriceListRel | PaymentMethodRel | MarketRel | CustomerGroupRel | PromotionRel | OrderRel | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel\n\n}\n\n\ninterface AttachmentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname?: string | null\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable?: GeocoderRel | PriceListRel | PaymentMethodRel | MarketRel | CustomerGroupRel | PromotionRel | OrderRel | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null\n\n}\n\n\nclass Attachments extends ApiResource<Attachment> {\n\n\tstatic readonly TYPE: AttachmentType = 'attachments' as const\n\n\tasync create(resource: AttachmentCreate, params?: QueryParamsRetrieve<Attachment>, options?: ResourcesConfig): Promise<Attachment> {\n\t\treturn this.resources.create<AttachmentCreate, Attachment>({ ...resource, type: Attachments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AttachmentUpdate, params?: QueryParamsRetrieve<Attachment>, options?: ResourcesConfig): Promise<Attachment> {\n\t\treturn this.resources.update<AttachmentUpdate, Attachment>({ ...resource, type: Attachments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Attachments.TYPE } : id, options)\n\t}\n\n\tasync event_stores(attachmentId: string | Attachment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _attachmentId = (attachmentId as Attachment).id || attachmentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `attachments/${_attachmentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisAttachment(resource: any): resource is Attachment {\n\t\treturn resource.type && (resource.type === Attachments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AttachmentRel {\n\t\treturn super.relationshipOneToOne<AttachmentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AttachmentRel[] {\n\t\treturn super.relationshipOneToMany<AttachmentRel>(...ids)\n\t}\n\n\n\ttype(): AttachmentType {\n\t\treturn Attachments.TYPE\n\t}\n\n}\n\n\nconst instance = new Attachments()\nexport default instance\n\nexport type { Attachment, AttachmentCreate, Attachments, AttachmentType, AttachmentUpdate }\n"]}
|
package/lib/chunk-HAF3NSFM.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/free_gift_promotions.ts
|
|
4
|
-
var FreeGiftPromotions = class _FreeGiftPromotions extends ApiResource {
|
|
5
|
-
static TYPE = "free_gift_promotions";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _FreeGiftPromotions.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _FreeGiftPromotions.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _FreeGiftPromotions.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async market(freeGiftPromotionId, params, options) {
|
|
16
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `free_gift_promotions/${_freeGiftPromotionId}/market`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async order_amount_promotion_rule(freeGiftPromotionId, params, options) {
|
|
20
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
21
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/order_amount_promotion_rule`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async sku_list_promotion_rule(freeGiftPromotionId, params, options) {
|
|
24
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
25
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list_promotion_rule`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async coupon_codes_promotion_rule(freeGiftPromotionId, params, options) {
|
|
28
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
29
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async custom_promotion_rule(freeGiftPromotionId, params, options) {
|
|
32
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
33
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `free_gift_promotions/${_freeGiftPromotionId}/custom_promotion_rule`, params, options);
|
|
34
|
-
}
|
|
35
|
-
async sku_list(freeGiftPromotionId, params, options) {
|
|
36
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
37
|
-
return this.resources.fetch({ type: "sku_lists" }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list`, params, options);
|
|
38
|
-
}
|
|
39
|
-
async coupons(freeGiftPromotionId, params, options) {
|
|
40
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
41
|
-
return this.resources.fetch({ type: "coupons" }, `free_gift_promotions/${_freeGiftPromotionId}/coupons`, params, options);
|
|
42
|
-
}
|
|
43
|
-
async attachments(freeGiftPromotionId, params, options) {
|
|
44
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
45
|
-
return this.resources.fetch({ type: "attachments" }, `free_gift_promotions/${_freeGiftPromotionId}/attachments`, params, options);
|
|
46
|
-
}
|
|
47
|
-
async events(freeGiftPromotionId, params, options) {
|
|
48
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
49
|
-
return this.resources.fetch({ type: "events" }, `free_gift_promotions/${_freeGiftPromotionId}/events`, params, options);
|
|
50
|
-
}
|
|
51
|
-
async tags(freeGiftPromotionId, params, options) {
|
|
52
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
53
|
-
return this.resources.fetch({ type: "tags" }, `free_gift_promotions/${_freeGiftPromotionId}/tags`, params, options);
|
|
54
|
-
}
|
|
55
|
-
async event_stores(freeGiftPromotionId, params, options) {
|
|
56
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
57
|
-
return this.resources.fetch({ type: "event_stores" }, `free_gift_promotions/${_freeGiftPromotionId}/event_stores`, params, options);
|
|
58
|
-
}
|
|
59
|
-
async skus(freeGiftPromotionId, params, options) {
|
|
60
|
-
const _freeGiftPromotionId = freeGiftPromotionId.id || freeGiftPromotionId;
|
|
61
|
-
return this.resources.fetch({ type: "skus" }, `free_gift_promotions/${_freeGiftPromotionId}/skus`, params, options);
|
|
62
|
-
}
|
|
63
|
-
async _disable(id, params, options) {
|
|
64
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _disable: true }, params, options);
|
|
65
|
-
}
|
|
66
|
-
async _enable(id, params, options) {
|
|
67
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _enable: true }, params, options);
|
|
68
|
-
}
|
|
69
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
70
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
71
|
-
}
|
|
72
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
73
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeGiftPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
74
|
-
}
|
|
75
|
-
isFreeGiftPromotion(resource) {
|
|
76
|
-
return resource.type && resource.type === _FreeGiftPromotions.TYPE;
|
|
77
|
-
}
|
|
78
|
-
relationship(id) {
|
|
79
|
-
return super.relationshipOneToOne(id);
|
|
80
|
-
}
|
|
81
|
-
relationshipToMany(...ids) {
|
|
82
|
-
return super.relationshipOneToMany(...ids);
|
|
83
|
-
}
|
|
84
|
-
type() {
|
|
85
|
-
return _FreeGiftPromotions.TYPE;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
var instance = new FreeGiftPromotions();
|
|
89
|
-
var free_gift_promotions_default = instance;
|
|
90
|
-
|
|
91
|
-
export { free_gift_promotions_default };
|
|
92
|
-
//# sourceMappingURL=chunk-HAF3NSFM.js.map
|
|
93
|
-
//# sourceMappingURL=chunk-HAF3NSFM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/free_gift_promotions.ts"],"names":[],"mappings":";;;AAyQA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2B,WAAA,CAA+B;AAAA,EAE/D,OAAgB,IAAA,GAA8B,sBAAA;AAAA,EAE9C,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OAAA,EAAuD;AACvJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OAAA,EAAuD;AACvJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,E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EA,MAAM,YAAA,CAAa,EAAA,EAAgC,YAAA,EAAsB,QAAiD,OAAA,EAAuD;AAChL,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,mBAAA,CAAmB,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACjM;AAAA,EAGA,oBAAoB,QAAA,EAA8C;AACjE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,mBAAA,CAAmB,IAAA;AAAA,EAC/D;AAAA,EAGA,aAAa,EAAA,EAAsD;AAClE,IAAA,OAAO,KAAA,CAAM,qBAA2C,EAAE,CAAA;AAAA,EAC3D;AAAA,EAEA,sBAAsB,GAAA,EAAuC;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA4C,GAAG,GAAG,CAAA;AAAA,EAChE;AAAA,EAGA,IAAA,GAA8B;AAC7B,IAAA,OAAO,mBAAA,CAAmB,IAAA;AAAA,EAC3B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,4BAAA,GAAQ","file":"chunk-HAF3NSFM.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\n\ntype FreeGiftPromotionType = 'free_gift_promotions'\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type FreeGiftPromotionSort = Pick<FreeGiftPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort\n// export type FreeGiftPromotionFilter = Pick<FreeGiftPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceFilter\n\n\ninterface FreeGiftPromotion extends Resource {\n\t\n\treadonly type: FreeGiftPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion has been applied the total number of allowed times.\n\t */\n\ttotal_usage_reached?: boolean | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * The total number of coupons created for this promotion.\n\t * @example ```2```\n\t */\n\tcoupons_count?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The max quantity of free gifts globally applicable by the promotion.\n\t * @example ```3```\n\t */\n\tmax_quantity?: number | null\n\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\tskus?: Sku[] | null\n\n}\n\n\ninterface FreeGiftPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The max quantity of free gifts globally applicable by the promotion.\n\t * @example ```3```\n\t */\n\tmax_quantity?: number | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list: SkuListRel\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface FreeGiftPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * The max quantity of free gifts globally applicable by the promotion.\n\t * @example ```3```\n\t */\n\tmax_quantity?: number | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass FreeGiftPromotions extends ApiResource<FreeGiftPromotion> {\n\n\tstatic readonly TYPE: FreeGiftPromotionType = 'free_gift_promotions' as const\n\n\tasync create(resource: FreeGiftPromotionCreate, params?: QueryParamsRetrieve<FreeGiftPromotion>, options?: ResourcesConfig): Promise<FreeGiftPromotion> {\n\t\treturn this.resources.create<FreeGiftPromotionCreate, FreeGiftPromotion>({ ...resource, type: FreeGiftPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: FreeGiftPromotionUpdate, params?: QueryParamsRetrieve<FreeGiftPromotion>, options?: ResourcesConfig): Promise<FreeGiftPromotion> {\n\t\treturn this.resources.update<FreeGiftPromotionUpdate, FreeGiftPromotion>({ ...resource, type: FreeGiftPromotions.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: FreeGiftPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `free_gift_promotions/${_freeGiftPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `free_gift_promotions/${_freeGiftPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `free_gift_promotions/${_freeGiftPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `free_gift_promotions/${_freeGiftPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `free_gift_promotions/${_freeGiftPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `free_gift_promotions/${_freeGiftPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `free_gift_promotions/${_freeGiftPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `free_gift_promotions/${_freeGiftPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `free_gift_promotions/${_freeGiftPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `free_gift_promotions/${_freeGiftPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(freeGiftPromotionId: string | FreeGiftPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _freeGiftPromotionId = (freeGiftPromotionId as FreeGiftPromotion).id || freeGiftPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `free_gift_promotions/${_freeGiftPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | FreeGiftPromotion, params?: QueryParamsRetrieve<FreeGiftPromotion>, options?: ResourcesConfig): Promise<FreeGiftPromotion> {\n\t\treturn this.resources.update<FreeGiftPromotionUpdate, FreeGiftPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeGiftPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | FreeGiftPromotion, params?: QueryParamsRetrieve<FreeGiftPromotion>, options?: ResourcesConfig): Promise<FreeGiftPromotion> {\n\t\treturn this.resources.update<FreeGiftPromotionUpdate, FreeGiftPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeGiftPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | FreeGiftPromotion, triggerValue: string, params?: QueryParamsRetrieve<FreeGiftPromotion>, options?: ResourcesConfig): Promise<FreeGiftPromotion> {\n\t\treturn this.resources.update<FreeGiftPromotionUpdate, FreeGiftPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeGiftPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | FreeGiftPromotion, triggerValue: string, params?: QueryParamsRetrieve<FreeGiftPromotion>, options?: ResourcesConfig): Promise<FreeGiftPromotion> {\n\t\treturn this.resources.update<FreeGiftPromotionUpdate, FreeGiftPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeGiftPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisFreeGiftPromotion(resource: any): resource is FreeGiftPromotion {\n\t\treturn resource.type && (resource.type === FreeGiftPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): FreeGiftPromotionRel {\n\t\treturn super.relationshipOneToOne<FreeGiftPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): FreeGiftPromotionRel[] {\n\t\treturn super.relationshipOneToMany<FreeGiftPromotionRel>(...ids)\n\t}\n\n\n\ttype(): FreeGiftPromotionType {\n\t\treturn FreeGiftPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new FreeGiftPromotions()\nexport default instance\n\nexport type { FreeGiftPromotion, FreeGiftPromotionCreate, FreeGiftPromotions, FreeGiftPromotionType, FreeGiftPromotionUpdate }\n"]}
|
package/lib/chunk-HBEFGWUI.cjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/exports.ts
|
|
6
|
-
var Exports = class _Exports extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "exports";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _Exports.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _Exports.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Exports.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async events(exportId, params, options) {
|
|
18
|
-
const _exportId = exportId.id || exportId;
|
|
19
|
-
return this.resources.fetch({ type: "events" }, `exports/${_exportId}/events`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async event_stores(exportId, params, options) {
|
|
22
|
-
const _exportId = exportId.id || exportId;
|
|
23
|
-
return this.resources.fetch({ type: "event_stores" }, `exports/${_exportId}/event_stores`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async _start(id, params, options) {
|
|
26
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Exports.TYPE, _start: true }, params, options);
|
|
27
|
-
}
|
|
28
|
-
async _interrupt(id, params, options) {
|
|
29
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Exports.TYPE, _interrupt: true }, params, options);
|
|
30
|
-
}
|
|
31
|
-
isExport(resource) {
|
|
32
|
-
return resource.type && resource.type === _Exports.TYPE;
|
|
33
|
-
}
|
|
34
|
-
relationship(id) {
|
|
35
|
-
return super.relationshipOneToOne(id);
|
|
36
|
-
}
|
|
37
|
-
relationshipToMany(...ids) {
|
|
38
|
-
return super.relationshipOneToMany(...ids);
|
|
39
|
-
}
|
|
40
|
-
type() {
|
|
41
|
-
return _Exports.TYPE;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var instance = new Exports();
|
|
45
|
-
var exports_default = instance;
|
|
46
|
-
|
|
47
|
-
exports.exports_default = exports_default;
|
|
48
|
-
//# sourceMappingURL=chunk-HBEFGWUI.cjs.map
|
|
49
|
-
//# sourceMappingURL=chunk-HBEFGWUI.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/exports.ts"],"names":["ApiResource"],"mappings":";;;;;AAsKA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,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A,EAAsC,OAAA,EAA4C;AACvH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,YAAY,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtJ;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-HBEFGWUI.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'processed_count' | 'attachment_url'> & 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\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * 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\t * @example ```\"skus\"```\n\t */\n\tresource_type: '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' | 'wire_transfers'\n\t/** \n\t * The format of the export. One of 'csv', or 'json' (default).\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', 'completed', or 'failed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed' | 'failed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * 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\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * 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\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Estimated time at which the export should complete (dynamically refres^hed).\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\testimated_completion_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * Indicates how many records have been processed in real time.\n\t * @example ```270```\n\t */\n\tprocessed_count?: number | null\n\t/** \n\t * The percentage of progress of the export.\n\t * @example ```30```\n\t */\n\tprogress?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * 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\t * @example ```\"skus\"```\n\t */\n\tresource_type: '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' | 'wire_transfers'\n\t/** \n\t * The format of the export. One of 'csv', or 'json' (default).\n\t * @example ```\"json\"```\n\t */\n\tformat?: 'csv' | 'json' | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * 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\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * 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\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Send this attribute to apply JWT scope–based sales channel filtering to the exported data.\n\t * @example ```true```\n\t */\n\tjwt_filters?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to restart an 'interrupted' export.\n\t * @example ```true```\n\t */\n\t_start?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(exportId: string | Export, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `exports/${_exportId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _start(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _start: true }, params, options)\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Export, ExportCreate, Exports, ExportType, ExportUpdate }\n"]}
|
package/lib/chunk-HCK6NM5P.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/merchants.ts
|
|
6
|
-
var Merchants = class _Merchants extends chunkY56DKJ4Z_cjs.ApiResource {
|
|
7
|
-
static TYPE = "merchants";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _Merchants.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _Merchants.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Merchants.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async address(merchantId, params, options) {
|
|
18
|
-
const _merchantId = merchantId.id || merchantId;
|
|
19
|
-
return this.resources.fetch({ type: "addresses" }, `merchants/${_merchantId}/address`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async attachments(merchantId, params, options) {
|
|
22
|
-
const _merchantId = merchantId.id || merchantId;
|
|
23
|
-
return this.resources.fetch({ type: "attachments" }, `merchants/${_merchantId}/attachments`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async event_stores(merchantId, params, options) {
|
|
26
|
-
const _merchantId = merchantId.id || merchantId;
|
|
27
|
-
return this.resources.fetch({ type: "event_stores" }, `merchants/${_merchantId}/event_stores`, params, options);
|
|
28
|
-
}
|
|
29
|
-
isMerchant(resource) {
|
|
30
|
-
return resource.type && resource.type === _Merchants.TYPE;
|
|
31
|
-
}
|
|
32
|
-
relationship(id) {
|
|
33
|
-
return super.relationshipOneToOne(id);
|
|
34
|
-
}
|
|
35
|
-
relationshipToMany(...ids) {
|
|
36
|
-
return super.relationshipOneToMany(...ids);
|
|
37
|
-
}
|
|
38
|
-
type() {
|
|
39
|
-
return _Merchants.TYPE;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var instance = new Merchants();
|
|
43
|
-
var merchants_default = instance;
|
|
44
|
-
|
|
45
|
-
exports.merchants_default = merchants_default;
|
|
46
|
-
//# sourceMappingURL=chunk-HCK6NM5P.cjs.map
|
|
47
|
-
//# sourceMappingURL=chunk-HCK6NM5P.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/merchants.ts"],"names":["ApiResource"],"mappings":";;;;;AA6DA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,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AClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-HCK6NM5P.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\n\nimport type { Address, AddressType } from './addresses'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\n\n\ntype MerchantType = 'merchants'\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype AddressRel = ResourceRel & { type: AddressType }\n\n\nexport type MerchantSort = Pick<Merchant, 'id' | 'name'> & ResourceSort\n// export type MerchantFilter = Pick<Merchant, 'id' | 'name'> & ResourceFilter\n\n\ninterface Merchant extends Resource {\n\t\n\treadonly type: MerchantType\n\n\t/** \n\t * The merchant's internal name.\n\t * @example ```\"The Brand Inc.\"```\n\t */\n\tname: string\n\n\taddress?: Address | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface MerchantCreate extends ResourceCreate {\n\t\n\t/** \n\t * The merchant's internal name.\n\t * @example ```\"The Brand Inc.\"```\n\t */\n\tname: string\n\n\taddress: AddressRel\n\n}\n\n\ninterface MerchantUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The merchant's internal name.\n\t * @example ```\"The Brand Inc.\"```\n\t */\n\tname?: string | null\n\n\taddress?: AddressRel | null\n\n}\n\n\nclass Merchants extends ApiResource<Merchant> {\n\n\tstatic readonly TYPE: MerchantType = 'merchants' as const\n\n\tasync create(resource: MerchantCreate, params?: QueryParamsRetrieve<Merchant>, options?: ResourcesConfig): Promise<Merchant> {\n\t\treturn this.resources.create<MerchantCreate, Merchant>({ ...resource, type: Merchants.TYPE }, params, options)\n\t}\n\n\tasync update(resource: MerchantUpdate, params?: QueryParamsRetrieve<Merchant>, options?: ResourcesConfig): Promise<Merchant> {\n\t\treturn this.resources.update<MerchantUpdate, Merchant>({ ...resource, type: Merchants.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Merchants.TYPE } : id, options)\n\t}\n\n\tasync address(merchantId: string | Merchant, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\tconst _merchantId = (merchantId as Merchant).id || merchantId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `merchants/${_merchantId}/address`, params, options) as unknown as Address\n\t}\n\n\tasync attachments(merchantId: string | Merchant, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _merchantId = (merchantId as Merchant).id || merchantId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `merchants/${_merchantId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(merchantId: string | Merchant, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _merchantId = (merchantId as Merchant).id || merchantId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `merchants/${_merchantId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisMerchant(resource: any): resource is Merchant {\n\t\treturn resource.type && (resource.type === Merchants.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): MerchantRel {\n\t\treturn super.relationshipOneToOne<MerchantRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): MerchantRel[] {\n\t\treturn super.relationshipOneToMany<MerchantRel>(...ids)\n\t}\n\n\n\ttype(): MerchantType {\n\t\treturn Merchants.TYPE\n\t}\n\n}\n\n\nconst instance = new Merchants()\nexport default instance\n\nexport type { Merchant, MerchantCreate, Merchants, MerchantType, MerchantUpdate }\n"]}
|
package/lib/chunk-HE4KWG6X.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/addresses.ts
|
|
4
|
-
var Addresses = class _Addresses extends ApiResource {
|
|
5
|
-
static TYPE = "addresses";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _Addresses.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _Addresses.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Addresses.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async geocoder(addressId, params, options) {
|
|
16
|
-
const _addressId = addressId.id || addressId;
|
|
17
|
-
return this.resources.fetch({ type: "geocoders" }, `addresses/${_addressId}/geocoder`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async events(addressId, params, options) {
|
|
20
|
-
const _addressId = addressId.id || addressId;
|
|
21
|
-
return this.resources.fetch({ type: "events" }, `addresses/${_addressId}/events`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async tags(addressId, params, options) {
|
|
24
|
-
const _addressId = addressId.id || addressId;
|
|
25
|
-
return this.resources.fetch({ type: "tags" }, `addresses/${_addressId}/tags`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async event_stores(addressId, params, options) {
|
|
28
|
-
const _addressId = addressId.id || addressId;
|
|
29
|
-
return this.resources.fetch({ type: "event_stores" }, `addresses/${_addressId}/event_stores`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
32
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _add_tags: triggerValue }, params, options);
|
|
33
|
-
}
|
|
34
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
35
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _remove_tags: triggerValue }, params, options);
|
|
36
|
-
}
|
|
37
|
-
isAddress(resource) {
|
|
38
|
-
return resource.type && resource.type === _Addresses.TYPE;
|
|
39
|
-
}
|
|
40
|
-
relationship(id) {
|
|
41
|
-
return super.relationshipOneToOne(id);
|
|
42
|
-
}
|
|
43
|
-
relationshipToMany(...ids) {
|
|
44
|
-
return super.relationshipOneToMany(...ids);
|
|
45
|
-
}
|
|
46
|
-
type() {
|
|
47
|
-
return _Addresses.TYPE;
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
var instance = new Addresses();
|
|
51
|
-
var addresses_default = instance;
|
|
52
|
-
|
|
53
|
-
export { addresses_default };
|
|
54
|
-
//# sourceMappingURL=chunk-HE4KWG6X.js.map
|
|
55
|
-
//# sourceMappingURL=chunk-HE4KWG6X.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/addresses.ts"],"names":[],"mappings":";;;AA+UA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAqB;AAAA,EAE5C,OAAgB,IAAA,GAAoB,WAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CA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D;AAAA,EAGA,IAAA,GAAoB;AACnB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-HE4KWG6X.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { Tag, TagType } from './tags'\n\n\ntype AddressType = 'addresses'\ntype AddressRel = ResourceRel & { type: AddressType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type AddressSort = Pick<Address, 'id' | 'city' | 'state_code' | 'country_code'> & ResourceSort\n// export type AddressFilter = Pick<Address, 'id' | 'business' | 'first_name' | 'last_name' | 'company' | 'line_1' | 'line_2' | 'city' | 'zip_code' | 'state_code' | 'country_code' | 'phone' | 'email' | 'notes' | 'lat' | 'lng' | 'billing_info'> & ResourceFilter\n\n\ninterface Address extends Resource {\n\t\n\treadonly type: AddressType\n\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Company name (business) of first name and last name (personal).\n\t * @example ```\"John Smith\"```\n\t */\n\tfull_name?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Compact description of the address location, without the full name.\n\t * @example ```\"2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tfull_address?: string | null\n\t/** \n\t * Compact description of the address location, including the full name.\n\t * @example ```\"John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Indicates if the latitude and logitude are present, either geocoded or manually updated.\n\t * @example ```true```\n\t */\n\tis_localized?: boolean | null\n\t/** \n\t * Indicates if the address has been successfully geocoded.\n\t * @example ```true```\n\t */\n\tis_geocoded?: boolean | null\n\t/** \n\t * The geocoder provider name (either Google or Bing).\n\t * @example ```\"google\"```\n\t */\n\tprovider_name?: string | null\n\t/** \n\t * The map url of the geocoded address (if geocoded).\n\t * @example ```\"https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672\"```\n\t */\n\tmap_url?: string | null\n\t/** \n\t * The static map image url of the geocoded address (if geocoded).\n\t * @example ```\"https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15\"```\n\t */\n\tstatic_map_url?: string | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: Geocoder | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AddressCreate extends ResourceCreate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface AddressUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1?: string | null\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity?: string | null\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Addresses extends ApiResource<Address> {\n\n\tstatic readonly TYPE: AddressType = 'addresses' as const\n\n\tasync create(resource: AddressCreate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.create<AddressCreate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AddressUpdate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Addresses.TYPE } : id, options)\n\t}\n\n\tasync geocoder(addressId: string | Address, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `addresses/${_addressId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync events(addressId: string | Address, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `addresses/${_addressId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(addressId: string | Address, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `addresses/${_addressId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(addressId: string | Address, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `addresses/${_addressId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisAddress(resource: any): resource is Address {\n\t\treturn resource.type && (resource.type === Addresses.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AddressRel {\n\t\treturn super.relationshipOneToOne<AddressRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AddressRel[] {\n\t\treturn super.relationshipOneToMany<AddressRel>(...ids)\n\t}\n\n\n\ttype(): AddressType {\n\t\treturn Addresses.TYPE\n\t}\n\n}\n\n\nconst instance = new Addresses()\nexport default instance\n\nexport type { Address, AddressCreate, Addresses, AddressType, AddressUpdate }\n"]}
|
package/lib/chunk-HG36VCO5.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-USIBTSYD.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/promotion_rules.ts
|
|
4
|
-
var PromotionRules = class _PromotionRules extends ApiResource {
|
|
5
|
-
static TYPE = "promotion_rules";
|
|
6
|
-
async event_stores(promotionRuleId, params, options) {
|
|
7
|
-
const _promotionRuleId = promotionRuleId.id || promotionRuleId;
|
|
8
|
-
return this.resources.fetch({ type: "event_stores" }, `promotion_rules/${_promotionRuleId}/event_stores`, params, options);
|
|
9
|
-
}
|
|
10
|
-
isPromotionRule(resource) {
|
|
11
|
-
return resource.type && resource.type === _PromotionRules.TYPE;
|
|
12
|
-
}
|
|
13
|
-
relationship(id) {
|
|
14
|
-
return super.relationshipOneToOne(id);
|
|
15
|
-
}
|
|
16
|
-
relationshipToMany(...ids) {
|
|
17
|
-
return super.relationshipOneToMany(...ids);
|
|
18
|
-
}
|
|
19
|
-
type() {
|
|
20
|
-
return _PromotionRules.TYPE;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
var instance = new PromotionRules();
|
|
24
|
-
var promotion_rules_default = instance;
|
|
25
|
-
|
|
26
|
-
export { promotion_rules_default };
|
|
27
|
-
//# sourceMappingURL=chunk-HG36VCO5.js.map
|
|
28
|
-
//# sourceMappingURL=chunk-HG36VCO5.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/promotion_rules.ts"],"names":[],"mappings":";;;AAiCA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,YAAA,CAAa,eAAA,EAAyC,MAAA,EAAsC,OAAA,EAA8D;AAC/J,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACtI;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-HG36VCO5.js","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { BuyXPayYPromotion } from './buy_x_pay_y_promotions'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPromotion } from './external_promotions'\nimport type { FixedAmountPromotion } from './fixed_amount_promotions'\nimport type { FixedPricePromotion } from './fixed_price_promotions'\nimport type { FlexPromotion } from './flex_promotions'\nimport type { FreeGiftPromotion } from './free_gift_promotions'\nimport type { FreeShippingPromotion } from './free_shipping_promotions'\nimport type { PercentageDiscountPromotion } from './percentage_discount_promotions'\n\n\ntype PromotionRuleType = 'promotion_rules'\ntype PromotionRuleRel = ResourceRel & { type: PromotionRuleType }\n\n\nexport type PromotionRuleSort = Pick<PromotionRule, 'id'> & ResourceSort\n// export type PromotionRuleFilter = Pick<PromotionRule, 'id'> & ResourceFilter\n\n\ninterface PromotionRule extends Resource {\n\t\n\treadonly type: PromotionRuleType\n\n\n\tpromotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass PromotionRules extends ApiResource<PromotionRule> {\n\n\tstatic readonly TYPE: PromotionRuleType = 'promotion_rules' as const\n\n\tasync event_stores(promotionRuleId: string | PromotionRule, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _promotionRuleId = (promotionRuleId as PromotionRule).id || promotionRuleId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `promotion_rules/${_promotionRuleId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPromotionRule(resource: any): resource is PromotionRule {\n\t\treturn resource.type && (resource.type === PromotionRules.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PromotionRuleRel {\n\t\treturn super.relationshipOneToOne<PromotionRuleRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PromotionRuleRel[] {\n\t\treturn super.relationshipOneToMany<PromotionRuleRel>(...ids)\n\t}\n\n\n\ttype(): PromotionRuleType {\n\t\treturn PromotionRules.TYPE\n\t}\n\n}\n\n\nconst instance = new PromotionRules()\nexport default instance\n\nexport type { PromotionRule, PromotionRules, PromotionRuleType }\n"]}
|