@commercelayer/sdk 8.0.0-beta.6 → 8.0.0-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -20
- package/lib/api-BrD0VGs7.d.ts +18490 -0
- package/lib/api-p_JJnFXy.d.cts +18490 -0
- package/lib/api.cjs +356 -340
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +144 -140
- package/lib/bundle-compat.cjs +160 -0
- package/lib/bundle-compat.cjs.map +1 -0
- package/lib/bundle-compat.d.cts +24 -0
- package/lib/bundle-compat.d.ts +22 -0
- package/lib/bundle-compat.js +155 -0
- package/lib/bundle-compat.js.map +1 -0
- package/lib/bundle.cjs +157 -561
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +26 -18
- package/lib/bundle.d.ts +25 -19
- package/lib/bundle.js +146 -563
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-27JY4ULD.js +45 -0
- package/lib/chunk-27JY4ULD.js.map +1 -0
- package/lib/chunk-2A2L2CKF.js +75 -0
- package/lib/chunk-2A2L2CKF.js.map +1 -0
- package/lib/chunk-2FPWAQJJ.js +96 -0
- package/lib/chunk-2FPWAQJJ.js.map +1 -0
- package/lib/chunk-2KTN65O5.cjs +70 -0
- package/lib/chunk-2KTN65O5.cjs.map +1 -0
- package/lib/chunk-2PFTQHFT.js +79 -0
- package/lib/chunk-2PFTQHFT.js.map +1 -0
- package/lib/chunk-2SPJZDGK.js +80 -0
- package/lib/chunk-2SPJZDGK.js.map +1 -0
- package/lib/chunk-2YNRSRZU.cjs +102 -0
- package/lib/chunk-2YNRSRZU.cjs.map +1 -0
- package/lib/chunk-32JKZIM5.js +68 -0
- package/lib/chunk-32JKZIM5.js.map +1 -0
- package/lib/chunk-36O6EEZT.cjs +53 -0
- package/lib/chunk-36O6EEZT.cjs.map +1 -0
- package/lib/chunk-37KCG4S4.cjs +79 -0
- package/lib/chunk-37KCG4S4.cjs.map +1 -0
- package/lib/chunk-3DMYHXGB.js +20 -0
- package/lib/chunk-3DMYHXGB.js.map +1 -0
- package/lib/chunk-3DQIXZAG.js +129 -0
- package/lib/chunk-3DQIXZAG.js.map +1 -0
- package/lib/chunk-3FZPEWUV.cjs +91 -0
- package/lib/chunk-3FZPEWUV.cjs.map +1 -0
- package/lib/chunk-3M6XJ7NN.js +100 -0
- package/lib/chunk-3M6XJ7NN.js.map +1 -0
- package/lib/chunk-3NBRFRLX.cjs +125 -0
- package/lib/chunk-3NBRFRLX.cjs.map +1 -0
- package/lib/chunk-3OLFEEMC.js +100 -0
- package/lib/chunk-3OLFEEMC.js.map +1 -0
- package/lib/chunk-3QD74K3Q.cjs +53 -0
- package/lib/chunk-3QD74K3Q.cjs.map +1 -0
- package/lib/chunk-3SW2ASSY.js +60 -0
- package/lib/chunk-3SW2ASSY.js.map +1 -0
- package/lib/chunk-3XPISUB4.js +42 -0
- package/lib/chunk-3XPISUB4.js.map +1 -0
- package/lib/chunk-47ZNGHD4.js +77 -0
- package/lib/chunk-47ZNGHD4.js.map +1 -0
- package/lib/chunk-4PQ23R44.cjs +62 -0
- package/lib/chunk-4PQ23R44.cjs.map +1 -0
- package/lib/chunk-4VNGP4WP.js +100 -0
- package/lib/chunk-4VNGP4WP.js.map +1 -0
- package/lib/chunk-4XVOXNET.cjs +70 -0
- package/lib/chunk-4XVOXNET.cjs.map +1 -0
- package/lib/chunk-4YWYHTLB.js +68 -0
- package/lib/chunk-4YWYHTLB.js.map +1 -0
- package/lib/chunk-55KBBWVE.cjs +62 -0
- package/lib/chunk-55KBBWVE.cjs.map +1 -0
- package/lib/chunk-5BZCMLOG.cjs +38 -0
- package/lib/chunk-5BZCMLOG.cjs.map +1 -0
- package/lib/chunk-5DKOODMA.cjs +91 -0
- package/lib/chunk-5DKOODMA.cjs.map +1 -0
- package/lib/chunk-5MSW2F5A.js +58 -0
- package/lib/chunk-5MSW2F5A.js.map +1 -0
- package/lib/chunk-5NDRJ2CN.cjs +79 -0
- package/lib/chunk-5NDRJ2CN.cjs.map +1 -0
- package/lib/chunk-5RDGD6N2.js +82 -0
- package/lib/chunk-5RDGD6N2.js.map +1 -0
- package/lib/chunk-5TLQ5NEK.js +60 -0
- package/lib/chunk-5TLQ5NEK.js.map +1 -0
- package/lib/chunk-5WLJRGB6.cjs +89 -0
- package/lib/chunk-5WLJRGB6.cjs.map +1 -0
- package/lib/chunk-5WSJNCYM.cjs +44 -0
- package/lib/chunk-5WSJNCYM.cjs.map +1 -0
- package/lib/chunk-5YY7PVEO.js +191 -0
- package/lib/chunk-5YY7PVEO.js.map +1 -0
- package/lib/chunk-5Z5QSUVM.cjs +71 -0
- package/lib/chunk-5Z5QSUVM.cjs.map +1 -0
- package/lib/chunk-5ZPUTH6R.cjs +62 -0
- package/lib/chunk-5ZPUTH6R.cjs.map +1 -0
- package/lib/chunk-65HWKNSV.cjs +71 -0
- package/lib/chunk-65HWKNSV.cjs.map +1 -0
- package/lib/chunk-6BUTICKQ.js +75 -0
- package/lib/chunk-6BUTICKQ.js.map +1 -0
- package/lib/chunk-6F3SJXD3.cjs +62 -0
- package/lib/chunk-6F3SJXD3.cjs.map +1 -0
- package/lib/chunk-6JIKAK5C.js +77 -0
- package/lib/chunk-6JIKAK5C.js.map +1 -0
- package/lib/chunk-6JP6GEER.cjs +70 -0
- package/lib/chunk-6JP6GEER.cjs.map +1 -0
- package/lib/chunk-6L3AE23J.cjs +193 -0
- package/lib/chunk-6L3AE23J.cjs.map +1 -0
- package/lib/chunk-6NPLS5UO.cjs +60 -0
- package/lib/chunk-6NPLS5UO.cjs.map +1 -0
- package/lib/chunk-6R6A75PL.cjs +712 -0
- package/lib/chunk-6R6A75PL.cjs.map +1 -0
- package/lib/chunk-6TJJD77K.cjs +40 -0
- package/lib/chunk-6TJJD77K.cjs.map +1 -0
- package/lib/chunk-6UATBFH6.cjs +614 -0
- package/lib/chunk-6UATBFH6.cjs.map +1 -0
- package/lib/chunk-7CMX56OH.cjs +62 -0
- package/lib/chunk-7CMX56OH.cjs.map +1 -0
- package/lib/chunk-7CZ5BGBN.js +60 -0
- package/lib/chunk-7CZ5BGBN.js.map +1 -0
- package/lib/chunk-7EGB7KLE.cjs +70 -0
- package/lib/chunk-7EGB7KLE.cjs.map +1 -0
- package/lib/chunk-7FXEYH5P.js +77 -0
- package/lib/chunk-7FXEYH5P.js.map +1 -0
- package/lib/chunk-7HJJTBA5.cjs +88 -0
- package/lib/chunk-7HJJTBA5.cjs.map +1 -0
- package/lib/chunk-7J7U2OVV.cjs +44 -0
- package/lib/chunk-7J7U2OVV.cjs.map +1 -0
- package/lib/chunk-7KAEFUHR.js +58 -0
- package/lib/chunk-7KAEFUHR.js.map +1 -0
- package/lib/chunk-7LWJU3MC.js +77 -0
- package/lib/chunk-7LWJU3MC.js.map +1 -0
- package/lib/chunk-7MKSY64F.cjs +77 -0
- package/lib/chunk-7MKSY64F.cjs.map +1 -0
- package/lib/chunk-7NXUTO5Z.cjs +70 -0
- package/lib/chunk-7NXUTO5Z.cjs.map +1 -0
- package/lib/chunk-7YLXO22M.js +78 -0
- package/lib/chunk-7YLXO22M.js.map +1 -0
- package/lib/chunk-7ZNP5ZRX.cjs +182 -0
- package/lib/chunk-7ZNP5ZRX.cjs.map +1 -0
- package/lib/chunk-A5MOUKBT.cjs +81 -0
- package/lib/chunk-A5MOUKBT.cjs.map +1 -0
- package/lib/chunk-ACLWKVZH.cjs +179 -0
- package/lib/chunk-ACLWKVZH.cjs.map +1 -0
- package/lib/chunk-AH4P3KIO.cjs +198 -0
- package/lib/chunk-AH4P3KIO.cjs.map +1 -0
- package/lib/chunk-AIQS4XI7.cjs +70 -0
- package/lib/chunk-AIQS4XI7.cjs.map +1 -0
- package/lib/chunk-AQ6OHDUF.js +709 -0
- package/lib/chunk-AQ6OHDUF.js.map +1 -0
- package/lib/chunk-ARM4HSQI.cjs +98 -0
- package/lib/chunk-ARM4HSQI.cjs.map +1 -0
- package/lib/chunk-AUQHYYKJ.cjs +60 -0
- package/lib/chunk-AUQHYYKJ.cjs.map +1 -0
- package/lib/chunk-AXXSDR45.js +96 -0
- package/lib/chunk-AXXSDR45.js.map +1 -0
- package/lib/chunk-AYXJJKWA.js +75 -0
- package/lib/chunk-AYXJJKWA.js.map +1 -0
- package/lib/chunk-B5P3GWI5.js +67 -0
- package/lib/chunk-B5P3GWI5.js.map +1 -0
- package/lib/chunk-B5XPPQC7.cjs +70 -0
- package/lib/chunk-B5XPPQC7.cjs.map +1 -0
- package/lib/chunk-BD3ASC6K.cjs +84 -0
- package/lib/chunk-BD3ASC6K.cjs.map +1 -0
- package/lib/chunk-BDZQCGCJ.cjs +77 -0
- package/lib/chunk-BDZQCGCJ.cjs.map +1 -0
- package/lib/chunk-BEANHXLX.js +612 -0
- package/lib/chunk-BEANHXLX.js.map +1 -0
- package/lib/chunk-BF5HDO3M.cjs +70 -0
- package/lib/chunk-BF5HDO3M.cjs.map +1 -0
- package/lib/chunk-BFQFVHLA.cjs +94 -0
- package/lib/chunk-BFQFVHLA.cjs.map +1 -0
- package/lib/chunk-BPANUY47.cjs +22 -0
- package/lib/chunk-BPANUY47.cjs.map +1 -0
- package/lib/chunk-BTFN2FBP.js +69 -0
- package/lib/chunk-BTFN2FBP.js.map +1 -0
- package/lib/chunk-BY57BZ6S.cjs +79 -0
- package/lib/chunk-BY57BZ6S.cjs.map +1 -0
- package/lib/chunk-CDWXHURD.js +96 -0
- package/lib/chunk-CDWXHURD.js.map +1 -0
- package/lib/chunk-CEAYZF3Z.js +120 -0
- package/lib/chunk-CEAYZF3Z.js.map +1 -0
- package/lib/chunk-CEBLLOSH.cjs +79 -0
- package/lib/chunk-CEBLLOSH.cjs.map +1 -0
- package/lib/chunk-CEZGXW2V.cjs +102 -0
- package/lib/chunk-CEZGXW2V.cjs.map +1 -0
- package/lib/chunk-CITYMGFY.js +78 -0
- package/lib/chunk-CITYMGFY.js.map +1 -0
- package/lib/chunk-CK2UROFT.js +68 -0
- package/lib/chunk-CK2UROFT.js.map +1 -0
- package/lib/chunk-CMQ4CS3C.cjs +84 -0
- package/lib/chunk-CMQ4CS3C.cjs.map +1 -0
- package/lib/chunk-CMRTIKRS.cjs +98 -0
- package/lib/chunk-CMRTIKRS.cjs.map +1 -0
- package/lib/chunk-COCVOAAR.js +168 -0
- package/lib/chunk-COCVOAAR.js.map +1 -0
- package/lib/chunk-CPC4EDUN.js +60 -0
- package/lib/chunk-CPC4EDUN.js.map +1 -0
- package/lib/chunk-CQMGOKLY.js +89 -0
- package/lib/chunk-CQMGOKLY.js.map +1 -0
- package/lib/chunk-D433AVZU.cjs +61 -0
- package/lib/chunk-D433AVZU.cjs.map +1 -0
- package/lib/chunk-DGMBHG2D.cjs +122 -0
- package/lib/chunk-DGMBHG2D.cjs.map +1 -0
- package/lib/chunk-DH4T5JRD.cjs +47 -0
- package/lib/chunk-DH4T5JRD.cjs.map +1 -0
- package/lib/chunk-DIDUU3HJ.cjs +98 -0
- package/lib/chunk-DIDUU3HJ.cjs.map +1 -0
- package/lib/chunk-DJRBZJME.js +116 -0
- package/lib/chunk-DJRBZJME.js.map +1 -0
- package/lib/chunk-DN2TPVPQ.js +84 -0
- package/lib/chunk-DN2TPVPQ.js.map +1 -0
- package/lib/chunk-DVXTCITU.js +86 -0
- package/lib/chunk-DVXTCITU.js.map +1 -0
- package/lib/chunk-DXMFGRLZ.js +83 -0
- package/lib/chunk-DXMFGRLZ.js.map +1 -0
- package/lib/chunk-E5XRQXA3.cjs +193 -0
- package/lib/chunk-E5XRQXA3.cjs.map +1 -0
- package/lib/chunk-E6G7T2X4.cjs +14 -0
- package/lib/chunk-E6G7T2X4.cjs.map +1 -0
- package/lib/chunk-ECE464P6.js +68 -0
- package/lib/chunk-ECE464P6.js.map +1 -0
- package/lib/chunk-ECFID6YL.cjs +179 -0
- package/lib/chunk-ECFID6YL.cjs.map +1 -0
- package/lib/chunk-EG2D35UQ.js +77 -0
- package/lib/chunk-EG2D35UQ.js.map +1 -0
- package/lib/chunk-EIPT5P4Q.cjs +120 -0
- package/lib/chunk-EIPT5P4Q.cjs.map +1 -0
- package/lib/chunk-EJXIWONM.cjs +88 -0
- package/lib/chunk-EJXIWONM.cjs.map +1 -0
- package/lib/chunk-ELXHUTOX.js +82 -0
- package/lib/chunk-ELXHUTOX.js.map +1 -0
- package/lib/chunk-ENLBWOGO.cjs +86 -0
- package/lib/chunk-ENLBWOGO.cjs.map +1 -0
- package/lib/chunk-ENY5ZEDH.js +65 -0
- package/lib/chunk-ENY5ZEDH.js.map +1 -0
- package/lib/chunk-EQQVT4VQ.js +77 -0
- package/lib/chunk-EQQVT4VQ.js.map +1 -0
- package/lib/chunk-ESIW5CXF.js +91 -0
- package/lib/chunk-ESIW5CXF.js.map +1 -0
- package/lib/chunk-EWUUQ4L5.cjs +62 -0
- package/lib/chunk-EWUUQ4L5.cjs.map +1 -0
- package/lib/chunk-F5BYJ3P2.js +59 -0
- package/lib/chunk-F5BYJ3P2.js.map +1 -0
- package/lib/chunk-F7QAC5GG.js +33 -0
- package/lib/chunk-F7QAC5GG.js.map +1 -0
- package/lib/chunk-F7T5ONOF.js +163 -0
- package/lib/chunk-F7T5ONOF.js.map +1 -0
- package/lib/chunk-FCBQU5M7.js +79 -0
- package/lib/chunk-FCBQU5M7.js.map +1 -0
- package/lib/chunk-FCHVA2JJ.cjs +70 -0
- package/lib/chunk-FCHVA2JJ.cjs.map +1 -0
- package/lib/chunk-FEANKEWU.cjs +52 -0
- package/lib/chunk-FEANKEWU.cjs.map +1 -0
- package/lib/chunk-FHZ4JRXD.js +118 -0
- package/lib/chunk-FHZ4JRXD.js.map +1 -0
- package/lib/chunk-FIFWQWWX.js +79 -0
- package/lib/chunk-FIFWQWWX.js.map +1 -0
- package/lib/chunk-FIOQCCDK.js +53 -0
- package/lib/chunk-FIOQCCDK.js.map +1 -0
- package/lib/chunk-FJUOPWWJ.js +77 -0
- package/lib/chunk-FJUOPWWJ.js.map +1 -0
- package/lib/chunk-FKZUAC4B.cjs +79 -0
- package/lib/chunk-FKZUAC4B.cjs.map +1 -0
- package/lib/chunk-FRDOPI4T.cjs +79 -0
- package/lib/chunk-FRDOPI4T.cjs.map +1 -0
- package/lib/chunk-FVWXA45V.cjs +179 -0
- package/lib/chunk-FVWXA45V.cjs.map +1 -0
- package/lib/chunk-G2AIQH2C.js +60 -0
- package/lib/chunk-G2AIQH2C.js.map +1 -0
- package/lib/chunk-G34UCKUZ.cjs +91 -0
- package/lib/chunk-G34UCKUZ.cjs.map +1 -0
- package/lib/chunk-G4LJVHIH.js +42 -0
- package/lib/chunk-G4LJVHIH.js.map +1 -0
- package/lib/chunk-G6D5G6IF.cjs +166 -0
- package/lib/chunk-G6D5G6IF.cjs.map +1 -0
- package/lib/chunk-GGISBFEU.cjs +69 -0
- package/lib/chunk-GGISBFEU.cjs.map +1 -0
- package/lib/chunk-GGZNCXGR.js +24 -0
- package/lib/chunk-GGZNCXGR.js.map +1 -0
- package/lib/chunk-GINNGSFR.cjs +120 -0
- package/lib/chunk-GINNGSFR.cjs.map +1 -0
- package/lib/chunk-GNSSCO7B.js +38 -0
- package/lib/chunk-GNSSCO7B.js.map +1 -0
- package/lib/chunk-GOF6YS2G.js +241 -0
- package/lib/chunk-GOF6YS2G.js.map +1 -0
- package/lib/chunk-GOK6KXUU.cjs +52 -0
- package/lib/chunk-GOK6KXUU.cjs.map +1 -0
- package/lib/chunk-GQNMEV3Q.cjs +243 -0
- package/lib/chunk-GQNMEV3Q.cjs.map +1 -0
- package/lib/chunk-GQU2VL6D.js +59 -0
- package/lib/chunk-GQU2VL6D.js.map +1 -0
- package/lib/chunk-GU6AYW56.cjs +118 -0
- package/lib/chunk-GU6AYW56.cjs.map +1 -0
- package/lib/chunk-GYKGN67Z.cjs +70 -0
- package/lib/chunk-GYKGN67Z.cjs.map +1 -0
- package/lib/chunk-H2SPYNQJ.js +68 -0
- package/lib/chunk-H2SPYNQJ.js.map +1 -0
- package/lib/chunk-H3JUBJ6N.js +68 -0
- package/lib/chunk-H3JUBJ6N.js.map +1 -0
- package/lib/chunk-HBQRDVGM.cjs +79 -0
- package/lib/chunk-HBQRDVGM.cjs.map +1 -0
- package/lib/chunk-HEL2QWYR.js +196 -0
- package/lib/chunk-HEL2QWYR.js.map +1 -0
- package/lib/chunk-HFIPME7H.cjs +86 -0
- package/lib/chunk-HFIPME7H.cjs.map +1 -0
- package/lib/chunk-HI4ESMWV.cjs +44 -0
- package/lib/chunk-HI4ESMWV.cjs.map +1 -0
- package/lib/chunk-HKHSTGP4.cjs +120 -0
- package/lib/chunk-HKHSTGP4.cjs.map +1 -0
- package/lib/chunk-HLMRSUWY.cjs +88 -0
- package/lib/chunk-HLMRSUWY.cjs.map +1 -0
- package/lib/chunk-HXHL7HRZ.cjs +179 -0
- package/lib/chunk-HXHL7HRZ.cjs.map +1 -0
- package/lib/chunk-HZMMDAUQ.cjs +179 -0
- package/lib/chunk-HZMMDAUQ.cjs.map +1 -0
- package/lib/chunk-I2JMQPUT.js +42 -0
- package/lib/chunk-I2JMQPUT.js.map +1 -0
- package/lib/chunk-I5EJCLGC.js +51 -0
- package/lib/chunk-I5EJCLGC.js.map +1 -0
- package/lib/chunk-I6QTNC6Y.cjs +81 -0
- package/lib/chunk-I6QTNC6Y.cjs.map +1 -0
- package/lib/chunk-IBQCEBT3.cjs +96 -0
- package/lib/chunk-IBQCEBT3.cjs.map +1 -0
- package/lib/chunk-IC7XKJ55.cjs +61 -0
- package/lib/chunk-IC7XKJ55.cjs.map +1 -0
- package/lib/chunk-ICFJKNCL.js +89 -0
- package/lib/chunk-ICFJKNCL.js.map +1 -0
- package/lib/chunk-IJS5RGNW.js +77 -0
- package/lib/chunk-IJS5RGNW.js.map +1 -0
- package/lib/chunk-ISR6D4PG.js +68 -0
- package/lib/chunk-ISR6D4PG.js.map +1 -0
- package/lib/chunk-IXKNMEYJ.js +82 -0
- package/lib/chunk-IXKNMEYJ.js.map +1 -0
- package/lib/chunk-J6K5KGCO.js +84 -0
- package/lib/chunk-J6K5KGCO.js.map +1 -0
- package/lib/chunk-JBZ3YPHB.js +60 -0
- package/lib/chunk-JBZ3YPHB.js.map +1 -0
- package/lib/chunk-JGMO7E75.cjs +193 -0
- package/lib/chunk-JGMO7E75.cjs.map +1 -0
- package/lib/chunk-JHK2ADFO.js +116 -0
- package/lib/chunk-JHK2ADFO.js.map +1 -0
- package/lib/chunk-JO3634ZB.cjs +84 -0
- package/lib/chunk-JO3634ZB.cjs.map +1 -0
- package/lib/chunk-JUZQNX6I.js +42 -0
- package/lib/chunk-JUZQNX6I.js.map +1 -0
- package/lib/chunk-JYEJBSLC.cjs +91 -0
- package/lib/chunk-JYEJBSLC.cjs.map +1 -0
- package/lib/chunk-K4W33IZP.cjs +70 -0
- package/lib/chunk-K4W33IZP.cjs.map +1 -0
- package/lib/chunk-KBQOXEYZ.cjs +81 -0
- package/lib/chunk-KBQOXEYZ.cjs.map +1 -0
- package/lib/chunk-KIYHIGIY.cjs +179 -0
- package/lib/chunk-KIYHIGIY.cjs.map +1 -0
- package/lib/chunk-KN6QR2VT.cjs +79 -0
- package/lib/chunk-KN6QR2VT.cjs.map +1 -0
- package/lib/chunk-LEVF3A5F.cjs +93 -0
- package/lib/chunk-LEVF3A5F.cjs.map +1 -0
- package/lib/chunk-LMJZ2K6P.js +77 -0
- package/lib/chunk-LMJZ2K6P.js.map +1 -0
- package/lib/chunk-LSBBCEX5.js +305 -0
- package/lib/chunk-LSBBCEX5.js.map +1 -0
- package/lib/chunk-LSH2CQLI.js +68 -0
- package/lib/chunk-LSH2CQLI.js.map +1 -0
- package/lib/chunk-LV5MM4CO.js +118 -0
- package/lib/chunk-LV5MM4CO.js.map +1 -0
- package/lib/chunk-LVETDD3O.cjs +67 -0
- package/lib/chunk-LVETDD3O.cjs.map +1 -0
- package/lib/chunk-LYKCJHYR.js +94 -0
- package/lib/chunk-LYKCJHYR.js.map +1 -0
- package/lib/chunk-M2L4OZJ6.cjs +88 -0
- package/lib/chunk-M2L4OZJ6.cjs.map +1 -0
- package/lib/chunk-M6EAUX5W.js +35 -0
- package/lib/chunk-M6EAUX5W.js.map +1 -0
- package/lib/chunk-MF5IYI5N.js +11 -0
- package/lib/chunk-MF5IYI5N.js.map +1 -0
- package/lib/chunk-MFEIFGUU.js +124 -0
- package/lib/chunk-MFEIFGUU.js.map +1 -0
- package/lib/chunk-MIJ6DRSS.js +51 -0
- package/lib/chunk-MIJ6DRSS.js.map +1 -0
- package/lib/chunk-MLMK3BYP.js +27 -0
- package/lib/chunk-MLMK3BYP.js.map +1 -0
- package/lib/chunk-MN7T5QVU.cjs +70 -0
- package/lib/chunk-MN7T5QVU.cjs.map +1 -0
- package/lib/chunk-MO3ADFGB.js +50 -0
- package/lib/chunk-MO3ADFGB.js.map +1 -0
- package/lib/chunk-MWQLDBWJ.js +51 -0
- package/lib/chunk-MWQLDBWJ.js.map +1 -0
- package/lib/chunk-N25XG3WB.cjs +77 -0
- package/lib/chunk-N25XG3WB.cjs.map +1 -0
- package/lib/chunk-N7HMWUKO.js +177 -0
- package/lib/chunk-N7HMWUKO.js.map +1 -0
- package/lib/chunk-N7RIOQEE.cjs +205 -0
- package/lib/chunk-N7RIOQEE.cjs.map +1 -0
- package/lib/chunk-NCHSV74A.js +180 -0
- package/lib/chunk-NCHSV74A.js.map +1 -0
- package/lib/chunk-NHCNGRUW.js +321 -0
- package/lib/chunk-NHCNGRUW.js.map +1 -0
- package/lib/chunk-NJJ3AQFY.cjs +75 -0
- package/lib/chunk-NJJ3AQFY.cjs.map +1 -0
- package/lib/chunk-NL47AA7V.cjs +323 -0
- package/lib/chunk-NL47AA7V.cjs.map +1 -0
- package/lib/chunk-NXWBNR4A.js +75 -0
- package/lib/chunk-NXWBNR4A.js.map +1 -0
- package/lib/chunk-NZ5R6RZP.js +113 -0
- package/lib/chunk-NZ5R6RZP.js.map +1 -0
- package/lib/chunk-O4UBVFXZ.cjs +80 -0
- package/lib/chunk-O4UBVFXZ.cjs.map +1 -0
- package/lib/chunk-O5NLCRMD.cjs +131 -0
- package/lib/chunk-O5NLCRMD.cjs.map +1 -0
- package/lib/chunk-O7ZCUDYF.js +191 -0
- package/lib/chunk-O7ZCUDYF.js.map +1 -0
- package/lib/chunk-OGZMICIO.cjs +62 -0
- package/lib/chunk-OGZMICIO.cjs.map +1 -0
- package/lib/chunk-OH4R7NRW.cjs +556 -0
- package/lib/chunk-OH4R7NRW.cjs.map +1 -0
- package/lib/chunk-OI4ZCY65.js +68 -0
- package/lib/chunk-OI4ZCY65.js.map +1 -0
- package/lib/chunk-OJGNL5XA.js +87 -0
- package/lib/chunk-OJGNL5XA.js.map +1 -0
- package/lib/chunk-OKXSPFSZ.js +65 -0
- package/lib/chunk-OKXSPFSZ.js.map +1 -0
- package/lib/chunk-OOS4I2K6.cjs +70 -0
- package/lib/chunk-OOS4I2K6.cjs.map +1 -0
- package/lib/chunk-OTRQ6CRD.cjs +94 -0
- package/lib/chunk-OTRQ6CRD.cjs.map +1 -0
- package/lib/chunk-OVAMOIAR.js +51 -0
- package/lib/chunk-OVAMOIAR.js.map +1 -0
- package/lib/chunk-OXGJX4G5.cjs +79 -0
- package/lib/chunk-OXGJX4G5.cjs.map +1 -0
- package/lib/chunk-OXHQKMPQ.js +20 -0
- package/lib/chunk-OXHQKMPQ.js.map +1 -0
- package/lib/chunk-OXLZLXNI.js +86 -0
- package/lib/chunk-OXLZLXNI.js.map +1 -0
- package/lib/chunk-OXTZP6XB.js +123 -0
- package/lib/chunk-OXTZP6XB.js.map +1 -0
- package/lib/chunk-OZ6L33P7.cjs +40 -0
- package/lib/chunk-OZ6L33P7.cjs.map +1 -0
- package/lib/chunk-P2IUL4K4.cjs +52 -0
- package/lib/chunk-P2IUL4K4.cjs.map +1 -0
- package/lib/chunk-P7FIQR6P.cjs +91 -0
- package/lib/chunk-P7FIQR6P.cjs.map +1 -0
- package/lib/chunk-PA3XKIYI.cjs +98 -0
- package/lib/chunk-PA3XKIYI.cjs.map +1 -0
- package/lib/chunk-PXI3FFHR.js +542 -0
- package/lib/chunk-PXI3FFHR.js.map +1 -0
- package/lib/chunk-QELDOHCC.cjs +63 -0
- package/lib/chunk-QELDOHCC.cjs.map +1 -0
- package/lib/chunk-QHJ6WOJI.js +69 -0
- package/lib/chunk-QHJ6WOJI.js.map +1 -0
- package/lib/chunk-QIYG7O7V.js +77 -0
- package/lib/chunk-QIYG7O7V.js.map +1 -0
- package/lib/chunk-QM3JEWRN.cjs +93 -0
- package/lib/chunk-QM3JEWRN.cjs.map +1 -0
- package/lib/chunk-QQAD7R24.js +61 -0
- package/lib/chunk-QQAD7R24.js.map +1 -0
- package/lib/chunk-QX4Z7FX4.js +177 -0
- package/lib/chunk-QX4Z7FX4.js.map +1 -0
- package/lib/chunk-QZBOTY6C.js +203 -0
- package/lib/chunk-QZBOTY6C.js.map +1 -0
- package/lib/chunk-R4LYMSQW.cjs +61 -0
- package/lib/chunk-R4LYMSQW.cjs.map +1 -0
- package/lib/chunk-R7MCKMYA.js +177 -0
- package/lib/chunk-R7MCKMYA.js.map +1 -0
- package/lib/chunk-R7PD7BIN.js +164 -0
- package/lib/chunk-R7PD7BIN.js.map +1 -0
- package/lib/chunk-RHVGUEEZ.cjs +82 -0
- package/lib/chunk-RHVGUEEZ.cjs.map +1 -0
- package/lib/chunk-RNVBXM52.cjs +79 -0
- package/lib/chunk-RNVBXM52.cjs.map +1 -0
- package/lib/chunk-ROIDGFBH.js +68 -0
- package/lib/chunk-ROIDGFBH.js.map +1 -0
- package/lib/chunk-RT6CH7MF.js +120 -0
- package/lib/chunk-RT6CH7MF.js.map +1 -0
- package/lib/chunk-RZXG6SYW.js +50 -0
- package/lib/chunk-RZXG6SYW.js.map +1 -0
- package/lib/chunk-S2E6K3CX.js +88 -0
- package/lib/chunk-S2E6K3CX.js.map +1 -0
- package/lib/chunk-S3KPKHRF.cjs +79 -0
- package/lib/chunk-S3KPKHRF.cjs.map +1 -0
- package/lib/chunk-S3PPZ4MN.cjs +170 -0
- package/lib/chunk-S3PPZ4MN.cjs.map +1 -0
- package/lib/chunk-S4N7TNLE.js +132 -0
- package/lib/chunk-S4N7TNLE.js.map +1 -0
- package/lib/chunk-S6LUE4BK.cjs +35 -0
- package/lib/chunk-S6LUE4BK.cjs.map +1 -0
- package/lib/chunk-SAU26L56.js +91 -0
- package/lib/chunk-SAU26L56.js.map +1 -0
- package/lib/chunk-SB36RX2R.cjs +85 -0
- package/lib/chunk-SB36RX2R.cjs.map +1 -0
- package/lib/chunk-SD6TP5QY.cjs +29 -0
- package/lib/chunk-SD6TP5QY.cjs.map +1 -0
- package/lib/chunk-SITF5ZAC.js +68 -0
- package/lib/chunk-SITF5ZAC.js.map +1 -0
- package/lib/chunk-SQTCUWGR.cjs +67 -0
- package/lib/chunk-SQTCUWGR.cjs.map +1 -0
- package/lib/chunk-SSXDR6PH.js +86 -0
- package/lib/chunk-SSXDR6PH.js.map +1 -0
- package/lib/chunk-SYRDEPVH.js +68 -0
- package/lib/chunk-SYRDEPVH.js.map +1 -0
- package/lib/chunk-TBRFFV55.cjs +53 -0
- package/lib/chunk-TBRFFV55.cjs.map +1 -0
- package/lib/chunk-TEOE3WNS.cjs +102 -0
- package/lib/chunk-TEOE3WNS.cjs.map +1 -0
- package/lib/chunk-TI5JILQ4.cjs +134 -0
- package/lib/chunk-TI5JILQ4.cjs.map +1 -0
- package/lib/chunk-TVRITF4Q.cjs +164 -0
- package/lib/chunk-TVRITF4Q.cjs.map +1 -0
- package/lib/chunk-U222MLC5.cjs +88 -0
- package/lib/chunk-U222MLC5.cjs.map +1 -0
- package/lib/chunk-UARW4YQW.cjs +70 -0
- package/lib/chunk-UARW4YQW.cjs.map +1 -0
- package/lib/chunk-UCTSAXGF.cjs +122 -0
- package/lib/chunk-UCTSAXGF.cjs.map +1 -0
- package/lib/chunk-UE2ALA2G.js +36 -0
- package/lib/chunk-UE2ALA2G.js.map +1 -0
- package/lib/chunk-UEXD6ROE.cjs +44 -0
- package/lib/chunk-UEXD6ROE.cjs.map +1 -0
- package/lib/chunk-ULS6IZPC.js +86 -0
- package/lib/chunk-ULS6IZPC.js.map +1 -0
- package/lib/chunk-UUEYW4SI.cjs +55 -0
- package/lib/chunk-UUEYW4SI.cjs.map +1 -0
- package/lib/chunk-V3NFJBSM.js +50 -0
- package/lib/chunk-V3NFJBSM.js.map +1 -0
- package/lib/chunk-V4KUITPI.js +86 -0
- package/lib/chunk-V4KUITPI.js.map +1 -0
- package/lib/chunk-VBQSG5M5.js +92 -0
- package/lib/chunk-VBQSG5M5.js.map +1 -0
- package/lib/chunk-VCRPNIEH.cjs +70 -0
- package/lib/chunk-VCRPNIEH.cjs.map +1 -0
- package/lib/chunk-VE3SPP3G.js +177 -0
- package/lib/chunk-VE3SPP3G.js.map +1 -0
- package/lib/chunk-VNBY6YSL.js +82 -0
- package/lib/chunk-VNBY6YSL.js.map +1 -0
- package/lib/chunk-VNML47KB.js +59 -0
- package/lib/chunk-VNML47KB.js.map +1 -0
- package/lib/chunk-VP4IZXYD.cjs +26 -0
- package/lib/chunk-VP4IZXYD.cjs.map +1 -0
- package/lib/chunk-VVZDCEJY.js +68 -0
- package/lib/chunk-VVZDCEJY.js.map +1 -0
- package/lib/chunk-VWLPSTPL.cjs +91 -0
- package/lib/chunk-VWLPSTPL.cjs.map +1 -0
- package/lib/chunk-VY2QQ6GL.cjs +126 -0
- package/lib/chunk-VY2QQ6GL.cjs.map +1 -0
- package/lib/chunk-VZPW7ARO.cjs +90 -0
- package/lib/chunk-VZPW7ARO.cjs.map +1 -0
- package/lib/chunk-W35HDHDU.js +191 -0
- package/lib/chunk-W35HDHDU.js.map +1 -0
- package/lib/chunk-W3DJZSUC.js +68 -0
- package/lib/chunk-W3DJZSUC.js.map +1 -0
- package/lib/chunk-WCBPR2FU.js +177 -0
- package/lib/chunk-WCBPR2FU.js.map +1 -0
- package/lib/chunk-WJLT2Q6F.cjs +79 -0
- package/lib/chunk-WJLT2Q6F.cjs.map +1 -0
- package/lib/chunk-WKDK4TTS.cjs +80 -0
- package/lib/chunk-WKDK4TTS.cjs.map +1 -0
- package/lib/chunk-WMDLFAGR.cjs +53 -0
- package/lib/chunk-WMDLFAGR.cjs.map +1 -0
- package/lib/chunk-WO5LQQSK.cjs +4 -0
- package/lib/chunk-WO5LQQSK.cjs.map +1 -0
- package/lib/chunk-WOVCY6ON.cjs +22 -0
- package/lib/chunk-WOVCY6ON.cjs.map +1 -0
- package/lib/chunk-WTD6QSTI.js +89 -0
- package/lib/chunk-WTD6QSTI.js.map +1 -0
- package/lib/chunk-WVVUEB6A.cjs +70 -0
- package/lib/chunk-WVVUEB6A.cjs.map +1 -0
- package/lib/chunk-X6J7WQEA.js +89 -0
- package/lib/chunk-X6J7WQEA.js.map +1 -0
- package/lib/chunk-XE46YXZW.js +51 -0
- package/lib/chunk-XE46YXZW.js.map +1 -0
- package/lib/chunk-XGCAYVWC.js +73 -0
- package/lib/chunk-XGCAYVWC.js.map +1 -0
- package/lib/chunk-XKFKPTKY.cjs +115 -0
- package/lib/chunk-XKFKPTKY.cjs.map +1 -0
- package/lib/chunk-XS3PGMW7.cjs +77 -0
- package/lib/chunk-XS3PGMW7.cjs.map +1 -0
- package/lib/chunk-XUIGE5EC.js +68 -0
- package/lib/chunk-XUIGE5EC.js.map +1 -0
- package/lib/chunk-Y6XMMFGD.js +68 -0
- package/lib/chunk-Y6XMMFGD.js.map +1 -0
- package/lib/chunk-Y7FJ5Q2J.cjs +72 -0
- package/lib/chunk-Y7FJ5Q2J.cjs.map +1 -0
- package/lib/chunk-YJ3O5XLC.js +3 -0
- package/lib/chunk-YJ3O5XLC.js.map +1 -0
- package/lib/chunk-YKSGPQWF.cjs +165 -0
- package/lib/chunk-YKSGPQWF.cjs.map +1 -0
- package/lib/chunk-YLGAEBN4.js +96 -0
- package/lib/chunk-YLGAEBN4.js.map +1 -0
- package/lib/chunk-YOTHMSEP.js +68 -0
- package/lib/chunk-YOTHMSEP.js.map +1 -0
- package/lib/chunk-YPAKLMVE.js +60 -0
- package/lib/chunk-YPAKLMVE.js.map +1 -0
- package/lib/chunk-YQLZRFYW.js +77 -0
- package/lib/chunk-YQLZRFYW.js.map +1 -0
- package/lib/chunk-YXFYXDGG.js +154 -0
- package/lib/chunk-YXFYXDGG.js.map +1 -0
- package/lib/chunk-YZDBPUNJ.cjs +313 -0
- package/lib/chunk-YZDBPUNJ.cjs.map +1 -0
- package/lib/chunk-Z3LIS3PJ.js +77 -0
- package/lib/chunk-Z3LIS3PJ.js.map +1 -0
- package/lib/chunk-ZI7VCQUJ.cjs +84 -0
- package/lib/chunk-ZI7VCQUJ.cjs.map +1 -0
- package/lib/chunk-ZJX6FYOO.cjs +53 -0
- package/lib/chunk-ZJX6FYOO.cjs.map +1 -0
- package/lib/chunk-ZMIDBZVE.js +89 -0
- package/lib/chunk-ZMIDBZVE.js.map +1 -0
- package/lib/chunk-ZTDGE4FR.js +92 -0
- package/lib/chunk-ZTDGE4FR.js.map +1 -0
- package/lib/chunk-ZV322LW2.js +89 -0
- package/lib/chunk-ZV322LW2.js.map +1 -0
- package/lib/chunk-ZX75XWHD.js +177 -0
- package/lib/chunk-ZX75XWHD.js.map +1 -0
- package/lib/client.cjs +7 -6
- package/lib/client.d.cts +2 -1
- package/lib/client.d.ts +2 -1
- package/lib/client.js +6 -5
- package/lib/commercelayer.cjs +20 -15
- package/lib/commercelayer.d.cts +11 -6
- package/lib/commercelayer.d.ts +11 -6
- package/lib/commercelayer.js +10 -9
- package/lib/config.cjs +2 -2
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +14 -14
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-D4JGyBOl.d.cts +55 -0
- package/lib/fetch-D4JGyBOl.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +154 -669
- package/lib/index.d.cts +6 -4
- package/lib/index.d.ts +5 -3
- package/lib/index.js +147 -142
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +11 -10
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +9 -8
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +6 -6
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +3 -3
- package/lib/resource.cjs +14 -13
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +9 -8
- package/lib/resources/addresses.cjs +11 -10
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +10 -9
- package/lib/resources/adjustments.cjs +11 -10
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +10 -9
- package/lib/resources/adyen_gateways.cjs +11 -10
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +10 -9
- package/lib/resources/adyen_payments.cjs +11 -10
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +10 -9
- package/lib/resources/applications.cjs +11 -10
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +10 -9
- package/lib/resources/attachments.cjs +11 -10
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +10 -9
- package/lib/resources/authorizations.cjs +11 -10
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +10 -9
- package/lib/resources/avalara_accounts.cjs +11 -10
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +10 -9
- package/lib/resources/axerve_gateways.cjs +11 -10
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +10 -9
- package/lib/resources/axerve_payments.cjs +11 -10
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +10 -9
- package/lib/resources/billing_info_validation_rules.cjs +21 -0
- package/lib/resources/billing_info_validation_rules.cjs.map +1 -0
- package/lib/resources/billing_info_validation_rules.d.cts +7 -0
- package/lib/resources/billing_info_validation_rules.d.ts +4 -0
- package/lib/resources/billing_info_validation_rules.js +13 -0
- package/lib/resources/billing_info_validation_rules.js.map +1 -0
- package/lib/resources/bing_geocoders.cjs +11 -10
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +10 -9
- package/lib/resources/braintree_gateways.cjs +11 -10
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +10 -9
- package/lib/resources/braintree_payments.cjs +11 -10
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +10 -9
- package/lib/resources/bundles.cjs +11 -10
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +10 -9
- package/lib/resources/buy_x_pay_y_promotions.cjs +11 -10
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +10 -9
- package/lib/resources/captures.cjs +11 -10
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +10 -9
- package/lib/resources/carrier_accounts.cjs +11 -10
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +10 -9
- package/lib/resources/checkout_com_gateways.cjs +11 -10
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +10 -9
- package/lib/resources/checkout_com_payments.cjs +11 -10
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +10 -9
- package/lib/resources/cleanups.cjs +11 -10
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +10 -9
- package/lib/resources/coupon_codes_promotion_rules.cjs +11 -10
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +10 -9
- package/lib/resources/coupon_recipients.cjs +11 -10
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +10 -9
- package/lib/resources/coupons.cjs +11 -10
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +10 -9
- package/lib/resources/custom_promotion_rules.cjs +11 -10
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +10 -9
- package/lib/resources/customer_addresses.cjs +11 -10
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +10 -9
- package/lib/resources/customer_groups.cjs +11 -10
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +10 -9
- package/lib/resources/customer_password_resets.cjs +11 -10
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +10 -9
- package/lib/resources/customer_payment_sources.cjs +11 -10
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +10 -9
- package/lib/resources/customer_subscriptions.cjs +11 -10
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +10 -9
- package/lib/resources/customers.cjs +11 -10
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +10 -9
- package/lib/resources/delivery_lead_times.cjs +11 -10
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +10 -9
- package/lib/resources/discount_engine_items.cjs +11 -10
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +10 -9
- package/lib/resources/discount_engines.cjs +11 -10
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +10 -9
- package/lib/resources/easypost_pickups.cjs +11 -10
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +10 -9
- package/lib/resources/event_callbacks.cjs +11 -10
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +10 -9
- package/lib/resources/event_stores.cjs +11 -10
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/event_stores.js +10 -9
- package/lib/resources/events.cjs +11 -10
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +10 -9
- package/lib/resources/exports.cjs +11 -10
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +10 -9
- package/lib/resources/external_gateways.cjs +11 -10
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +10 -9
- package/lib/resources/external_payments.cjs +11 -10
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +10 -9
- package/lib/resources/external_promotions.cjs +11 -10
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +10 -9
- package/lib/resources/external_tax_calculators.cjs +11 -10
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +10 -9
- package/lib/resources/fixed_amount_promotions.cjs +11 -10
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +10 -9
- package/lib/resources/fixed_price_promotions.cjs +11 -10
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +10 -9
- package/lib/resources/flex_promotions.cjs +11 -10
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +10 -9
- package/lib/resources/free_gift_promotions.cjs +11 -10
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +10 -9
- package/lib/resources/free_shipping_promotions.cjs +11 -10
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +10 -9
- package/lib/resources/geocoders.cjs +11 -10
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +10 -9
- package/lib/resources/gift_card_recipients.cjs +11 -10
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +10 -9
- package/lib/resources/gift_cards.cjs +11 -10
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +10 -9
- package/lib/resources/google_geocoders.cjs +11 -10
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +10 -9
- package/lib/resources/imports.cjs +11 -10
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +10 -9
- package/lib/resources/in_stock_subscriptions.cjs +11 -10
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +10 -9
- package/lib/resources/inventory_models.cjs +11 -10
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +10 -9
- package/lib/resources/inventory_return_locations.cjs +11 -10
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +10 -9
- package/lib/resources/inventory_stock_locations.cjs +11 -10
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +10 -9
- package/lib/resources/klarna_gateways.cjs +11 -10
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +10 -9
- package/lib/resources/klarna_payments.cjs +11 -10
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +10 -9
- package/lib/resources/line_item_options.cjs +11 -10
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +10 -9
- package/lib/resources/line_items.cjs +11 -10
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +10 -9
- package/lib/resources/links.cjs +11 -10
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +10 -9
- package/lib/resources/manual_gateways.cjs +11 -10
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +10 -9
- package/lib/resources/manual_tax_calculators.cjs +11 -10
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +10 -9
- package/lib/resources/markets.cjs +11 -10
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +10 -9
- package/lib/resources/merchants.cjs +11 -10
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +10 -9
- package/lib/resources/notifications.cjs +11 -10
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +10 -9
- package/lib/resources/order_amount_promotion_rules.cjs +11 -10
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +10 -9
- package/lib/resources/order_copies.cjs +11 -10
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +10 -9
- package/lib/resources/order_factories.cjs +11 -10
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +10 -9
- package/lib/resources/order_subscription_items.cjs +11 -10
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +10 -9
- package/lib/resources/order_subscriptions.cjs +11 -10
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +10 -9
- package/lib/resources/order_validation_rules.cjs +21 -0
- package/lib/resources/order_validation_rules.cjs.map +1 -0
- package/lib/resources/order_validation_rules.d.cts +7 -0
- package/lib/resources/order_validation_rules.d.ts +4 -0
- package/lib/resources/order_validation_rules.js +13 -0
- package/lib/resources/order_validation_rules.js.map +1 -0
- package/lib/resources/orders.cjs +11 -10
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +10 -9
- package/lib/resources/organizations.cjs +11 -10
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +10 -9
- package/lib/resources/packages.cjs +11 -10
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +10 -9
- package/lib/resources/parcel_line_items.cjs +11 -10
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +10 -9
- package/lib/resources/parcels.cjs +11 -10
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +10 -9
- package/lib/resources/payment_gateways.cjs +11 -10
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +10 -9
- package/lib/resources/payment_methods.cjs +11 -10
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +10 -9
- package/lib/resources/payment_options.cjs +11 -10
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +10 -9
- package/lib/resources/paypal_gateways.cjs +11 -10
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +10 -9
- package/lib/resources/paypal_payments.cjs +11 -10
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +10 -9
- package/lib/resources/percentage_discount_promotions.cjs +11 -10
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +10 -9
- package/lib/resources/pickups.cjs +11 -10
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +10 -9
- package/lib/resources/price_frequency_tiers.cjs +11 -10
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +10 -9
- package/lib/resources/price_list_schedulers.cjs +11 -10
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +10 -9
- package/lib/resources/price_lists.cjs +11 -10
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +10 -9
- package/lib/resources/price_tiers.cjs +11 -10
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +10 -9
- package/lib/resources/price_volume_tiers.cjs +11 -10
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +10 -9
- package/lib/resources/prices.cjs +11 -10
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +10 -9
- package/lib/resources/promotion_rules.cjs +11 -10
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +10 -9
- package/lib/resources/promotions.cjs +11 -10
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +10 -9
- package/lib/resources/recurring_order_copies.cjs +11 -10
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +10 -9
- package/lib/resources/refunds.cjs +11 -10
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +10 -9
- package/lib/resources/reserved_stocks.cjs +11 -10
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +10 -9
- package/lib/resources/resource_errors.cjs +11 -10
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +10 -9
- package/lib/resources/return_line_items.cjs +11 -10
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +10 -9
- package/lib/resources/returns.cjs +11 -10
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +10 -9
- package/lib/resources/satispay_gateways.cjs +11 -10
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +10 -9
- package/lib/resources/satispay_payments.cjs +11 -10
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +10 -9
- package/lib/resources/shipment_line_items.cjs +21 -0
- package/lib/resources/shipment_line_items.cjs.map +1 -0
- package/lib/resources/shipment_line_items.d.cts +7 -0
- package/lib/resources/shipment_line_items.d.ts +4 -0
- package/lib/resources/shipment_line_items.js +13 -0
- package/lib/resources/shipment_line_items.js.map +1 -0
- package/lib/resources/shipments.cjs +11 -10
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +10 -9
- package/lib/resources/shipping_categories.cjs +11 -10
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +10 -9
- package/lib/resources/shipping_method_tiers.cjs +11 -10
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +10 -9
- package/lib/resources/shipping_methods.cjs +11 -10
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +10 -9
- package/lib/resources/shipping_weight_tiers.cjs +11 -10
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +10 -9
- package/lib/resources/shipping_zones.cjs +11 -10
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +10 -9
- package/lib/resources/sku_list_items.cjs +11 -10
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +10 -9
- package/lib/resources/sku_list_promotion_rules.cjs +11 -10
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +10 -9
- package/lib/resources/sku_lists.cjs +11 -10
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +10 -9
- package/lib/resources/sku_options.cjs +11 -10
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +10 -9
- package/lib/resources/skus.cjs +11 -10
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +10 -9
- package/lib/resources/stock_items.cjs +11 -10
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +10 -9
- package/lib/resources/stock_line_items.cjs +11 -10
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +10 -9
- package/lib/resources/stock_locations.cjs +11 -10
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +10 -9
- package/lib/resources/stock_reservations.cjs +11 -10
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +10 -9
- package/lib/resources/stock_transfers.cjs +11 -10
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +10 -9
- package/lib/resources/stores.cjs +11 -10
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +10 -9
- package/lib/resources/stripe_gateways.cjs +11 -10
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +10 -9
- package/lib/resources/stripe_payments.cjs +11 -10
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +10 -9
- package/lib/resources/stripe_tax_accounts.cjs +11 -10
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +10 -9
- package/lib/resources/subscription_models.cjs +11 -10
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +10 -9
- package/lib/resources/tags.cjs +11 -10
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +10 -9
- package/lib/resources/talon_one_accounts.cjs +11 -10
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +10 -9
- package/lib/resources/tax_calculators.cjs +11 -10
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +10 -9
- package/lib/resources/tax_categories.cjs +11 -10
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +10 -9
- package/lib/resources/tax_rules.cjs +11 -10
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +10 -9
- package/lib/resources/taxjar_accounts.cjs +11 -10
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +10 -9
- package/lib/resources/transactions.cjs +11 -10
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +10 -9
- package/lib/resources/vertex_accounts.cjs +11 -10
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +10 -9
- package/lib/resources/voids.cjs +11 -10
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +10 -9
- package/lib/resources/webhooks.cjs +11 -10
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +10 -9
- package/lib/resources/wire_transfers.cjs +11 -10
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +10 -9
- package/lib/single-client.cjs +708 -0
- package/lib/single-client.cjs.map +1 -0
- package/lib/single-client.d.cts +11 -0
- package/lib/single-client.d.ts +8 -0
- package/lib/single-client.js +149 -0
- package/lib/single-client.js.map +1 -0
- package/lib/static.cjs +12 -11
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +11 -10
- package/lib/util.cjs +5 -5
- package/lib/util.js +1 -1
- package/lib/version.cjs +17 -0
- package/lib/version.cjs.map +1 -0
- package/lib/version.d.cts +4 -0
- package/lib/version.d.ts +4 -0
- package/lib/version.js +4 -0
- package/lib/version.js.map +1 -0
- package/package.json +27 -15
- package/lib/api-DB1n06hG.d.ts +0 -18181
- package/lib/api-DFBhmbb1.d.cts +0 -18181
- package/lib/chunk-22RVT2J2.js +0 -20
- package/lib/chunk-22RVT2J2.js.map +0 -1
- package/lib/chunk-26Q2QNAQ.cjs +0 -30
- package/lib/chunk-26Q2QNAQ.cjs.map +0 -1
- package/lib/chunk-27YKND3S.js +0 -93
- package/lib/chunk-27YKND3S.js.map +0 -1
- package/lib/chunk-2CMJ2SZM.cjs +0 -57
- package/lib/chunk-2CMJ2SZM.cjs.map +0 -1
- package/lib/chunk-2D7XHAVQ.js +0 -59
- package/lib/chunk-2D7XHAVQ.js.map +0 -1
- package/lib/chunk-2HNW5KNF.js +0 -45
- package/lib/chunk-2HNW5KNF.js.map +0 -1
- package/lib/chunk-2NWYRIJZ.js +0 -41
- package/lib/chunk-2NWYRIJZ.js.map +0 -1
- package/lib/chunk-2QXENUO7.cjs +0 -51
- package/lib/chunk-2QXENUO7.cjs.map +0 -1
- package/lib/chunk-2TOLW3UO.cjs +0 -56
- package/lib/chunk-2TOLW3UO.cjs.map +0 -1
- package/lib/chunk-2VI6OWLV.cjs +0 -61
- package/lib/chunk-2VI6OWLV.cjs.map +0 -1
- package/lib/chunk-2WVBEUMO.js +0 -53
- package/lib/chunk-2WVBEUMO.js.map +0 -1
- package/lib/chunk-2XDVUDJS.cjs +0 -34
- package/lib/chunk-2XDVUDJS.cjs.map +0 -1
- package/lib/chunk-35Q3ZTZC.js +0 -75
- package/lib/chunk-35Q3ZTZC.js.map +0 -1
- package/lib/chunk-3EX76AZW.js +0 -3
- package/lib/chunk-3EX76AZW.js.map +0 -1
- package/lib/chunk-3GOADUES.cjs +0 -63
- package/lib/chunk-3GOADUES.cjs.map +0 -1
- package/lib/chunk-3PAID2YG.cjs +0 -54
- package/lib/chunk-3PAID2YG.cjs.map +0 -1
- package/lib/chunk-3PXZUPZE.cjs +0 -43
- package/lib/chunk-3PXZUPZE.cjs.map +0 -1
- package/lib/chunk-3YS6NHUH.cjs +0 -50
- package/lib/chunk-3YS6NHUH.cjs.map +0 -1
- package/lib/chunk-43JU63UQ.js +0 -51
- package/lib/chunk-43JU63UQ.js.map +0 -1
- package/lib/chunk-47OW2LZH.cjs +0 -47
- package/lib/chunk-47OW2LZH.cjs.map +0 -1
- package/lib/chunk-47UCMORS.cjs +0 -51
- package/lib/chunk-47UCMORS.cjs.map +0 -1
- package/lib/chunk-4C55SMIS.js +0 -55
- package/lib/chunk-4C55SMIS.js.map +0 -1
- package/lib/chunk-4E5BE47D.cjs +0 -61
- package/lib/chunk-4E5BE47D.cjs.map +0 -1
- package/lib/chunk-4MV6VICV.js +0 -35
- package/lib/chunk-4MV6VICV.js.map +0 -1
- package/lib/chunk-4OM2Y7BS.cjs +0 -46
- package/lib/chunk-4OM2Y7BS.cjs.map +0 -1
- package/lib/chunk-4P3MBQVY.cjs +0 -156
- package/lib/chunk-4P3MBQVY.cjs.map +0 -1
- package/lib/chunk-4PNXT6OT.js +0 -36
- package/lib/chunk-4PNXT6OT.js.map +0 -1
- package/lib/chunk-4S3I222F.cjs +0 -285
- package/lib/chunk-4S3I222F.cjs.map +0 -1
- package/lib/chunk-4YR6JIEN.js +0 -154
- package/lib/chunk-4YR6JIEN.js.map +0 -1
- package/lib/chunk-4ZIGP3FO.cjs +0 -59
- package/lib/chunk-4ZIGP3FO.cjs.map +0 -1
- package/lib/chunk-54VT56WS.cjs +0 -126
- package/lib/chunk-54VT56WS.cjs.map +0 -1
- package/lib/chunk-56324YRB.js +0 -54
- package/lib/chunk-56324YRB.js.map +0 -1
- package/lib/chunk-5AFBGKJ4.js +0 -53
- package/lib/chunk-5AFBGKJ4.js.map +0 -1
- package/lib/chunk-5P67UEWW.cjs +0 -56
- package/lib/chunk-5P67UEWW.cjs.map +0 -1
- package/lib/chunk-5RJW5RAK.js +0 -40
- package/lib/chunk-5RJW5RAK.js.map +0 -1
- package/lib/chunk-5TLVMKOO.cjs +0 -52
- package/lib/chunk-5TLVMKOO.cjs.map +0 -1
- package/lib/chunk-5YMHXTJG.cjs +0 -4
- package/lib/chunk-5YMHXTJG.cjs.map +0 -1
- package/lib/chunk-6BXCQFTI.js +0 -37
- package/lib/chunk-6BXCQFTI.js.map +0 -1
- package/lib/chunk-6EUKX4RC.cjs +0 -47
- package/lib/chunk-6EUKX4RC.cjs.map +0 -1
- package/lib/chunk-6SQ4LNTP.js +0 -54
- package/lib/chunk-6SQ4LNTP.js.map +0 -1
- package/lib/chunk-73P72ADW.js +0 -54
- package/lib/chunk-73P72ADW.js.map +0 -1
- package/lib/chunk-7473V4XD.js +0 -59
- package/lib/chunk-7473V4XD.js.map +0 -1
- package/lib/chunk-74JBCKFT.cjs +0 -30
- package/lib/chunk-74JBCKFT.cjs.map +0 -1
- package/lib/chunk-77HRCSA5.cjs +0 -55
- package/lib/chunk-77HRCSA5.cjs.map +0 -1
- package/lib/chunk-7B46YAQU.cjs +0 -98
- package/lib/chunk-7B46YAQU.cjs.map +0 -1
- package/lib/chunk-7GP6774Q.js +0 -45
- package/lib/chunk-7GP6774Q.js.map +0 -1
- package/lib/chunk-7P36FTRX.js +0 -44
- package/lib/chunk-7P36FTRX.js.map +0 -1
- package/lib/chunk-7RZTCBDR.cjs +0 -22
- package/lib/chunk-7RZTCBDR.cjs.map +0 -1
- package/lib/chunk-7TVIC5GW.cjs +0 -56
- package/lib/chunk-7TVIC5GW.cjs.map +0 -1
- package/lib/chunk-7ZBEKCA5.cjs +0 -75
- package/lib/chunk-7ZBEKCA5.cjs.map +0 -1
- package/lib/chunk-A6E33WC3.cjs +0 -53
- package/lib/chunk-A6E33WC3.cjs.map +0 -1
- package/lib/chunk-A7BK3Z22.cjs +0 -38
- package/lib/chunk-A7BK3Z22.cjs.map +0 -1
- package/lib/chunk-AEP6D5QV.cjs +0 -38
- package/lib/chunk-AEP6D5QV.cjs.map +0 -1
- package/lib/chunk-AN2Y6XMS.js +0 -28
- package/lib/chunk-AN2Y6XMS.js.map +0 -1
- package/lib/chunk-AP5WOJMJ.js +0 -49
- package/lib/chunk-AP5WOJMJ.js.map +0 -1
- package/lib/chunk-APMYXRFX.js +0 -96
- package/lib/chunk-APMYXRFX.js.map +0 -1
- package/lib/chunk-APTNONWZ.js +0 -40
- package/lib/chunk-APTNONWZ.js.map +0 -1
- package/lib/chunk-AS6CAIIM.js +0 -65
- package/lib/chunk-AS6CAIIM.js.map +0 -1
- package/lib/chunk-ATK6TFVA.cjs +0 -43
- package/lib/chunk-ATK6TFVA.cjs.map +0 -1
- package/lib/chunk-AVYPSM4A.cjs +0 -43
- package/lib/chunk-AVYPSM4A.cjs.map +0 -1
- package/lib/chunk-AWEYC4IM.js +0 -45
- package/lib/chunk-AWEYC4IM.js.map +0 -1
- package/lib/chunk-AWLS4LR4.cjs +0 -53
- package/lib/chunk-AWLS4LR4.cjs.map +0 -1
- package/lib/chunk-AY7MWZ7Y.js +0 -48
- package/lib/chunk-AY7MWZ7Y.js.map +0 -1
- package/lib/chunk-BANZUNLK.js +0 -40
- package/lib/chunk-BANZUNLK.js.map +0 -1
- package/lib/chunk-BQE56RMQ.js +0 -45
- package/lib/chunk-BQE56RMQ.js.map +0 -1
- package/lib/chunk-BRWPB33S.cjs +0 -56
- package/lib/chunk-BRWPB33S.cjs.map +0 -1
- package/lib/chunk-C7AHHS53.cjs +0 -51
- package/lib/chunk-C7AHHS53.cjs.map +0 -1
- package/lib/chunk-CDFM6RPB.cjs +0 -63
- package/lib/chunk-CDFM6RPB.cjs.map +0 -1
- package/lib/chunk-CH4K74JN.cjs +0 -55
- package/lib/chunk-CH4K74JN.cjs.map +0 -1
- package/lib/chunk-CJPAOOG5.cjs +0 -34
- package/lib/chunk-CJPAOOG5.cjs.map +0 -1
- package/lib/chunk-CKSLVNN7.js +0 -45
- package/lib/chunk-CKSLVNN7.js.map +0 -1
- package/lib/chunk-CM4DAVO4.js +0 -40
- package/lib/chunk-CM4DAVO4.js.map +0 -1
- package/lib/chunk-CNMMWVI6.js +0 -48
- package/lib/chunk-CNMMWVI6.js.map +0 -1
- package/lib/chunk-CQXW23HJ.cjs +0 -56
- package/lib/chunk-CQXW23HJ.cjs.map +0 -1
- package/lib/chunk-CTTA6S5K.cjs +0 -61
- package/lib/chunk-CTTA6S5K.cjs.map +0 -1
- package/lib/chunk-CUYSBPPJ.js +0 -45
- package/lib/chunk-CUYSBPPJ.js.map +0 -1
- package/lib/chunk-D3VJO4HP.js +0 -40
- package/lib/chunk-D3VJO4HP.js.map +0 -1
- package/lib/chunk-D3YQS6YA.js +0 -66
- package/lib/chunk-D3YQS6YA.js.map +0 -1
- package/lib/chunk-DBJEPEBT.js +0 -45
- package/lib/chunk-DBJEPEBT.js.map +0 -1
- package/lib/chunk-DFUIO6OY.js +0 -53
- package/lib/chunk-DFUIO6OY.js.map +0 -1
- package/lib/chunk-DJRBEANR.js +0 -57
- package/lib/chunk-DJRBEANR.js.map +0 -1
- package/lib/chunk-DNVIOKDM.cjs +0 -55
- package/lib/chunk-DNVIOKDM.cjs.map +0 -1
- package/lib/chunk-DQUGPCYZ.js +0 -37
- package/lib/chunk-DQUGPCYZ.js.map +0 -1
- package/lib/chunk-E2UP2BWG.cjs +0 -39
- package/lib/chunk-E2UP2BWG.cjs.map +0 -1
- package/lib/chunk-E5G3LS6Y.js +0 -53
- package/lib/chunk-E5G3LS6Y.js.map +0 -1
- package/lib/chunk-EEXXJFJO.cjs +0 -47
- package/lib/chunk-EEXXJFJO.cjs.map +0 -1
- package/lib/chunk-EI2KOTCG.js +0 -37
- package/lib/chunk-EI2KOTCG.js.map +0 -1
- package/lib/chunk-ELTYSKHB.js +0 -68
- package/lib/chunk-ELTYSKHB.js.map +0 -1
- package/lib/chunk-EO7RCCV2.js +0 -45
- package/lib/chunk-EO7RCCV2.js.map +0 -1
- package/lib/chunk-EOV3GRPM.js +0 -27
- package/lib/chunk-EOV3GRPM.js.map +0 -1
- package/lib/chunk-EQ5ASSXQ.cjs +0 -95
- package/lib/chunk-EQ5ASSXQ.cjs.map +0 -1
- package/lib/chunk-EQZMPSGR.js +0 -55
- package/lib/chunk-EQZMPSGR.js.map +0 -1
- package/lib/chunk-ESI7A34I.js +0 -52
- package/lib/chunk-ESI7A34I.js.map +0 -1
- package/lib/chunk-EWFAT7KA.js +0 -283
- package/lib/chunk-EWFAT7KA.js.map +0 -1
- package/lib/chunk-F2PKXIJQ.js +0 -52
- package/lib/chunk-F2PKXIJQ.js.map +0 -1
- package/lib/chunk-F6OOTDNW.js +0 -49
- package/lib/chunk-F6OOTDNW.js.map +0 -1
- package/lib/chunk-FANJUOI3.cjs +0 -51
- package/lib/chunk-FANJUOI3.cjs.map +0 -1
- package/lib/chunk-FECG6WIR.js +0 -96
- package/lib/chunk-FECG6WIR.js.map +0 -1
- package/lib/chunk-FRVEAP6J.js +0 -73
- package/lib/chunk-FRVEAP6J.js.map +0 -1
- package/lib/chunk-FUQA5XT7.cjs +0 -47
- package/lib/chunk-FUQA5XT7.cjs.map +0 -1
- package/lib/chunk-FVRWASHH.js +0 -32
- package/lib/chunk-FVRWASHH.js.map +0 -1
- package/lib/chunk-FZKENL3J.js +0 -53
- package/lib/chunk-FZKENL3J.js.map +0 -1
- package/lib/chunk-GCY5B73J.cjs +0 -47
- package/lib/chunk-GCY5B73J.cjs.map +0 -1
- package/lib/chunk-GIZE32ZY.js +0 -73
- package/lib/chunk-GIZE32ZY.js.map +0 -1
- package/lib/chunk-GZPZZ262.js +0 -49
- package/lib/chunk-GZPZZ262.js.map +0 -1
- package/lib/chunk-H6K62JGC.cjs +0 -47
- package/lib/chunk-H6K62JGC.cjs.map +0 -1
- package/lib/chunk-H7J2F6QG.cjs +0 -47
- package/lib/chunk-H7J2F6QG.cjs.map +0 -1
- package/lib/chunk-H7KZGQXZ.cjs +0 -71
- package/lib/chunk-H7KZGQXZ.cjs.map +0 -1
- package/lib/chunk-HFKNOYWV.cjs +0 -98
- package/lib/chunk-HFKNOYWV.cjs.map +0 -1
- package/lib/chunk-HLR5KZ6S.js +0 -51
- package/lib/chunk-HLR5KZ6S.js.map +0 -1
- package/lib/chunk-HZYPMFTS.cjs +0 -49
- package/lib/chunk-HZYPMFTS.cjs.map +0 -1
- package/lib/chunk-I2E2P72P.cjs +0 -70
- package/lib/chunk-I2E2P72P.cjs.map +0 -1
- package/lib/chunk-I64ZCB4W.cjs +0 -55
- package/lib/chunk-I64ZCB4W.cjs.map +0 -1
- package/lib/chunk-IG2P6JOK.js +0 -40
- package/lib/chunk-IG2P6JOK.js.map +0 -1
- package/lib/chunk-IG6UCDED.js +0 -59
- package/lib/chunk-IG6UCDED.js.map +0 -1
- package/lib/chunk-IIUBCLDN.js +0 -47
- package/lib/chunk-IIUBCLDN.js.map +0 -1
- package/lib/chunk-IKCYKGYL.js +0 -151
- package/lib/chunk-IKCYKGYL.js.map +0 -1
- package/lib/chunk-IKU3CD3A.cjs +0 -75
- package/lib/chunk-IKU3CD3A.cjs.map +0 -1
- package/lib/chunk-IL2AXMUE.js +0 -45
- package/lib/chunk-IL2AXMUE.js.map +0 -1
- package/lib/chunk-IL66CF3O.js +0 -105
- package/lib/chunk-IL66CF3O.js.map +0 -1
- package/lib/chunk-ILAFDO4M.js +0 -36
- package/lib/chunk-ILAFDO4M.js.map +0 -1
- package/lib/chunk-INBIEH6H.cjs +0 -44
- package/lib/chunk-INBIEH6H.cjs.map +0 -1
- package/lib/chunk-IOSR7D3F.cjs +0 -47
- package/lib/chunk-IOSR7D3F.cjs.map +0 -1
- package/lib/chunk-IOYGVLML.js +0 -41
- package/lib/chunk-IOYGVLML.js.map +0 -1
- package/lib/chunk-IP5G2VCS.cjs +0 -38
- package/lib/chunk-IP5G2VCS.cjs.map +0 -1
- package/lib/chunk-IUGXRDL5.js +0 -102
- package/lib/chunk-IUGXRDL5.js.map +0 -1
- package/lib/chunk-IWH7CXBG.js +0 -124
- package/lib/chunk-IWH7CXBG.js.map +0 -1
- package/lib/chunk-IYGFGGZR.js +0 -59
- package/lib/chunk-IYGFGGZR.js.map +0 -1
- package/lib/chunk-IYQFTOVG.cjs +0 -39
- package/lib/chunk-IYQFTOVG.cjs.map +0 -1
- package/lib/chunk-J2ULMBWQ.js +0 -89
- package/lib/chunk-J2ULMBWQ.js.map +0 -1
- package/lib/chunk-JARZZUPY.js +0 -93
- package/lib/chunk-JARZZUPY.js.map +0 -1
- package/lib/chunk-JBKJAYRL.cjs +0 -50
- package/lib/chunk-JBKJAYRL.cjs.map +0 -1
- package/lib/chunk-JE3P5NJP.cjs +0 -56
- package/lib/chunk-JE3P5NJP.cjs.map +0 -1
- package/lib/chunk-JGTC32IT.cjs +0 -69
- package/lib/chunk-JGTC32IT.cjs.map +0 -1
- package/lib/chunk-JHYHQV3E.js +0 -67
- package/lib/chunk-JHYHQV3E.js.map +0 -1
- package/lib/chunk-JIDX6RAT.js +0 -103
- package/lib/chunk-JIDX6RAT.js.map +0 -1
- package/lib/chunk-JIQRQ5TK.cjs +0 -39
- package/lib/chunk-JIQRQ5TK.cjs.map +0 -1
- package/lib/chunk-JMKSIDZI.cjs +0 -51
- package/lib/chunk-JMKSIDZI.cjs.map +0 -1
- package/lib/chunk-JR6TYHVG.js +0 -41
- package/lib/chunk-JR6TYHVG.js.map +0 -1
- package/lib/chunk-JRVZ4JQI.js +0 -32
- package/lib/chunk-JRVZ4JQI.js.map +0 -1
- package/lib/chunk-JSHKAVYF.js +0 -45
- package/lib/chunk-JSHKAVYF.js.map +0 -1
- package/lib/chunk-K277GYCD.cjs +0 -40
- package/lib/chunk-K277GYCD.cjs.map +0 -1
- package/lib/chunk-K3GPCGMJ.cjs +0 -47
- package/lib/chunk-K3GPCGMJ.cjs.map +0 -1
- package/lib/chunk-KATZAZKF.cjs +0 -56
- package/lib/chunk-KATZAZKF.cjs.map +0 -1
- package/lib/chunk-KC46F2PJ.cjs +0 -47
- package/lib/chunk-KC46F2PJ.cjs.map +0 -1
- package/lib/chunk-KJWEQIEM.js +0 -54
- package/lib/chunk-KJWEQIEM.js.map +0 -1
- package/lib/chunk-KLO6RFMQ.cjs +0 -89
- package/lib/chunk-KLO6RFMQ.cjs.map +0 -1
- package/lib/chunk-KN2KHVGW.js +0 -93
- package/lib/chunk-KN2KHVGW.js.map +0 -1
- package/lib/chunk-KU5M6CZ5.js +0 -48
- package/lib/chunk-KU5M6CZ5.js.map +0 -1
- package/lib/chunk-KUZBO6ZM.js +0 -54
- package/lib/chunk-KUZBO6ZM.js.map +0 -1
- package/lib/chunk-KZDGS2SG.cjs +0 -70
- package/lib/chunk-KZDGS2SG.cjs.map +0 -1
- package/lib/chunk-L4PEYYXQ.cjs +0 -51
- package/lib/chunk-L4PEYYXQ.cjs.map +0 -1
- package/lib/chunk-L7FT6NDZ.cjs +0 -284
- package/lib/chunk-L7FT6NDZ.cjs.map +0 -1
- package/lib/chunk-LHESCZ5L.cjs +0 -39
- package/lib/chunk-LHESCZ5L.cjs.map +0 -1
- package/lib/chunk-LP52UBLY.js +0 -54
- package/lib/chunk-LP52UBLY.js.map +0 -1
- package/lib/chunk-LPP7TYFN.js +0 -45
- package/lib/chunk-LPP7TYFN.js.map +0 -1
- package/lib/chunk-LQ5GKVLT.cjs +0 -163
- package/lib/chunk-LQ5GKVLT.cjs.map +0 -1
- package/lib/chunk-LS7VSSB4.js +0 -49
- package/lib/chunk-LS7VSSB4.js.map +0 -1
- package/lib/chunk-LSISPTNQ.cjs +0 -47
- package/lib/chunk-LSISPTNQ.cjs.map +0 -1
- package/lib/chunk-LZO46NMA.js +0 -60
- package/lib/chunk-LZO46NMA.js.map +0 -1
- package/lib/chunk-M22WZEWB.js +0 -37
- package/lib/chunk-M22WZEWB.js.map +0 -1
- package/lib/chunk-M63P3MQC.cjs +0 -51
- package/lib/chunk-M63P3MQC.cjs.map +0 -1
- package/lib/chunk-M7EUSLT2.js +0 -51
- package/lib/chunk-M7EUSLT2.js.map +0 -1
- package/lib/chunk-M7SVKQ7R.cjs +0 -51
- package/lib/chunk-M7SVKQ7R.cjs.map +0 -1
- package/lib/chunk-MFDKS22G.js +0 -536
- package/lib/chunk-MFDKS22G.js.map +0 -1
- package/lib/chunk-MHNJALUB.cjs +0 -42
- package/lib/chunk-MHNJALUB.cjs.map +0 -1
- package/lib/chunk-MOYV2F4C.js +0 -50
- package/lib/chunk-MOYV2F4C.js.map +0 -1
- package/lib/chunk-MVXKHM42.cjs +0 -47
- package/lib/chunk-MVXKHM42.cjs.map +0 -1
- package/lib/chunk-N2TACGKJ.js +0 -59
- package/lib/chunk-N2TACGKJ.js.map +0 -1
- package/lib/chunk-NGJN2PES.cjs +0 -95
- package/lib/chunk-NGJN2PES.cjs.map +0 -1
- package/lib/chunk-NIFNQI3P.js +0 -49
- package/lib/chunk-NIFNQI3P.js.map +0 -1
- package/lib/chunk-NLL7EH7Y.cjs +0 -42
- package/lib/chunk-NLL7EH7Y.cjs.map +0 -1
- package/lib/chunk-NOGYLNW5.cjs +0 -49
- package/lib/chunk-NOGYLNW5.cjs.map +0 -1
- package/lib/chunk-NPZA6AMN.js +0 -95
- package/lib/chunk-NPZA6AMN.js.map +0 -1
- package/lib/chunk-NSMPVEO4.js +0 -49
- package/lib/chunk-NSMPVEO4.js.map +0 -1
- package/lib/chunk-NURW5BJN.js +0 -37
- package/lib/chunk-NURW5BJN.js.map +0 -1
- package/lib/chunk-NV364EJH.js +0 -47
- package/lib/chunk-NV364EJH.js.map +0 -1
- package/lib/chunk-NWPF43O7.js +0 -50
- package/lib/chunk-NWPF43O7.js.map +0 -1
- package/lib/chunk-O3UJT5JJ.cjs +0 -54
- package/lib/chunk-O3UJT5JJ.cjs.map +0 -1
- package/lib/chunk-O6QJMGK7.cjs +0 -56
- package/lib/chunk-O6QJMGK7.cjs.map +0 -1
- package/lib/chunk-OBNGBDLS.js +0 -47
- package/lib/chunk-OBNGBDLS.js.map +0 -1
- package/lib/chunk-OEMRZEYB.js +0 -45
- package/lib/chunk-OEMRZEYB.js.map +0 -1
- package/lib/chunk-OF4M6NEX.cjs +0 -46
- package/lib/chunk-OF4M6NEX.cjs.map +0 -1
- package/lib/chunk-OLJT7GB7.js +0 -31
- package/lib/chunk-OLJT7GB7.js.map +0 -1
- package/lib/chunk-ONVG32V5.cjs +0 -63
- package/lib/chunk-ONVG32V5.cjs.map +0 -1
- package/lib/chunk-P2IDAXTS.cjs +0 -62
- package/lib/chunk-P2IDAXTS.cjs.map +0 -1
- package/lib/chunk-P47JG2WA.js +0 -48
- package/lib/chunk-P47JG2WA.js.map +0 -1
- package/lib/chunk-P5EEPVZA.cjs +0 -77
- package/lib/chunk-P5EEPVZA.cjs.map +0 -1
- package/lib/chunk-PB6VKR7P.js +0 -49
- package/lib/chunk-PB6VKR7P.js.map +0 -1
- package/lib/chunk-PBEQTSJS.cjs +0 -47
- package/lib/chunk-PBEQTSJS.cjs.map +0 -1
- package/lib/chunk-PEC5CKS7.cjs +0 -22
- package/lib/chunk-PEC5CKS7.cjs.map +0 -1
- package/lib/chunk-PIHQS6OG.js +0 -153
- package/lib/chunk-PIHQS6OG.js.map +0 -1
- package/lib/chunk-PL6A37WA.js +0 -45
- package/lib/chunk-PL6A37WA.js.map +0 -1
- package/lib/chunk-PMV3JPUR.cjs +0 -51
- package/lib/chunk-PMV3JPUR.cjs.map +0 -1
- package/lib/chunk-PQJ2ODW3.cjs +0 -67
- package/lib/chunk-PQJ2ODW3.cjs.map +0 -1
- package/lib/chunk-PUBFRIEQ.cjs +0 -95
- package/lib/chunk-PUBFRIEQ.cjs.map +0 -1
- package/lib/chunk-PULH7AI4.cjs +0 -68
- package/lib/chunk-PULH7AI4.cjs.map +0 -1
- package/lib/chunk-PUTVVRLC.js +0 -69
- package/lib/chunk-PUTVVRLC.js.map +0 -1
- package/lib/chunk-PVBBO54F.js +0 -49
- package/lib/chunk-PVBBO54F.js.map +0 -1
- package/lib/chunk-Q3WUCLM5.js +0 -37
- package/lib/chunk-Q3WUCLM5.js.map +0 -1
- package/lib/chunk-QDZI3I46.cjs +0 -43
- package/lib/chunk-QDZI3I46.cjs.map +0 -1
- package/lib/chunk-QF6DOS2C.js +0 -42
- package/lib/chunk-QF6DOS2C.js.map +0 -1
- package/lib/chunk-QI4UFW5A.js +0 -59
- package/lib/chunk-QI4UFW5A.js.map +0 -1
- package/lib/chunk-QJDQS6PE.cjs +0 -107
- package/lib/chunk-QJDQS6PE.cjs.map +0 -1
- package/lib/chunk-QTBUH3V7.js +0 -61
- package/lib/chunk-QTBUH3V7.js.map +0 -1
- package/lib/chunk-QVJZ2PSX.cjs +0 -51
- package/lib/chunk-QVJZ2PSX.cjs.map +0 -1
- package/lib/chunk-QXXLGQVN.js +0 -45
- package/lib/chunk-QXXLGQVN.js.map +0 -1
- package/lib/chunk-RDXEF27B.js +0 -44
- package/lib/chunk-RDXEF27B.js.map +0 -1
- package/lib/chunk-RDZZJ22W.cjs +0 -39
- package/lib/chunk-RDZZJ22W.cjs.map +0 -1
- package/lib/chunk-RGGHPNOB.js +0 -49
- package/lib/chunk-RGGHPNOB.js.map +0 -1
- package/lib/chunk-RKD7U6QH.cjs +0 -51
- package/lib/chunk-RKD7U6QH.cjs.map +0 -1
- package/lib/chunk-RMTTRB7R.js +0 -51
- package/lib/chunk-RMTTRB7R.js.map +0 -1
- package/lib/chunk-RNJOCB3T.cjs +0 -42
- package/lib/chunk-RNJOCB3T.cjs.map +0 -1
- package/lib/chunk-RQAOPSUW.cjs +0 -47
- package/lib/chunk-RQAOPSUW.cjs.map +0 -1
- package/lib/chunk-RW4KKMPX.js +0 -93
- package/lib/chunk-RW4KKMPX.js.map +0 -1
- package/lib/chunk-SGXMH2JP.cjs +0 -29
- package/lib/chunk-SGXMH2JP.cjs.map +0 -1
- package/lib/chunk-SOOB4KI7.cjs +0 -53
- package/lib/chunk-SOOB4KI7.cjs.map +0 -1
- package/lib/chunk-SSHXUS6Q.js +0 -49
- package/lib/chunk-SSHXUS6Q.js.map +0 -1
- package/lib/chunk-STQYJKBK.cjs +0 -55
- package/lib/chunk-STQYJKBK.cjs.map +0 -1
- package/lib/chunk-SZARKLAL.js +0 -68
- package/lib/chunk-SZARKLAL.js.map +0 -1
- package/lib/chunk-SZM64XMO.cjs +0 -68
- package/lib/chunk-SZM64XMO.cjs.map +0 -1
- package/lib/chunk-T2DEYIX6.cjs +0 -57
- package/lib/chunk-T2DEYIX6.cjs.map +0 -1
- package/lib/chunk-T2YGQC4C.js +0 -61
- package/lib/chunk-T2YGQC4C.js.map +0 -1
- package/lib/chunk-T5OEKW7A.cjs +0 -55
- package/lib/chunk-T5OEKW7A.cjs.map +0 -1
- package/lib/chunk-T6CBFUT6.cjs +0 -51
- package/lib/chunk-T6CBFUT6.cjs.map +0 -1
- package/lib/chunk-TGINKJDS.cjs +0 -49
- package/lib/chunk-TGINKJDS.cjs.map +0 -1
- package/lib/chunk-TMSNRZEW.cjs +0 -50
- package/lib/chunk-TMSNRZEW.cjs.map +0 -1
- package/lib/chunk-TRDTLOUY.js +0 -66
- package/lib/chunk-TRDTLOUY.js.map +0 -1
- package/lib/chunk-TTVTRX76.cjs +0 -93
- package/lib/chunk-TTVTRX76.cjs.map +0 -1
- package/lib/chunk-TUKV2ZIA.cjs +0 -52
- package/lib/chunk-TUKV2ZIA.cjs.map +0 -1
- package/lib/chunk-TVKGUM2Z.js +0 -99
- package/lib/chunk-TVKGUM2Z.js.map +0 -1
- package/lib/chunk-U6G7T5WX.cjs +0 -47
- package/lib/chunk-U6G7T5WX.cjs.map +0 -1
- package/lib/chunk-UFUZNSZI.cjs +0 -61
- package/lib/chunk-UFUZNSZI.cjs.map +0 -1
- package/lib/chunk-UFW7KJWK.js +0 -54
- package/lib/chunk-UFW7KJWK.js.map +0 -1
- package/lib/chunk-UHZABEQZ.js +0 -45
- package/lib/chunk-UHZABEQZ.js.map +0 -1
- package/lib/chunk-UIRXTLC6.cjs +0 -61
- package/lib/chunk-UIRXTLC6.cjs.map +0 -1
- package/lib/chunk-UJ4OEOZA.js +0 -87
- package/lib/chunk-UJ4OEOZA.js.map +0 -1
- package/lib/chunk-UL4JQZUD.cjs +0 -42
- package/lib/chunk-UL4JQZUD.cjs.map +0 -1
- package/lib/chunk-UNPVTCLZ.cjs +0 -47
- package/lib/chunk-UNPVTCLZ.cjs.map +0 -1
- package/lib/chunk-UQQTNQX3.cjs +0 -153
- package/lib/chunk-UQQTNQX3.cjs.map +0 -1
- package/lib/chunk-USP4O34Q.js +0 -28
- package/lib/chunk-USP4O34Q.js.map +0 -1
- package/lib/chunk-UTQEHWH2.js +0 -54
- package/lib/chunk-UTQEHWH2.js.map +0 -1
- package/lib/chunk-UV6BETTC.js +0 -48
- package/lib/chunk-UV6BETTC.js.map +0 -1
- package/lib/chunk-UXLDPLOA.js +0 -45
- package/lib/chunk-UXLDPLOA.js.map +0 -1
- package/lib/chunk-V6VQMQQX.js +0 -91
- package/lib/chunk-V6VQMQQX.js.map +0 -1
- package/lib/chunk-V74OBMS3.cjs +0 -95
- package/lib/chunk-V74OBMS3.cjs.map +0 -1
- package/lib/chunk-VA6VDBQS.js +0 -41
- package/lib/chunk-VA6VDBQS.js.map +0 -1
- package/lib/chunk-VB7XUWBF.cjs +0 -47
- package/lib/chunk-VB7XUWBF.cjs.map +0 -1
- package/lib/chunk-VESU72KU.js +0 -93
- package/lib/chunk-VESU72KU.js.map +0 -1
- package/lib/chunk-VEV4DZKI.cjs +0 -51
- package/lib/chunk-VEV4DZKI.cjs.map +0 -1
- package/lib/chunk-VI2NCCWC.js +0 -49
- package/lib/chunk-VI2NCCWC.js.map +0 -1
- package/lib/chunk-VTSEVEKJ.cjs +0 -53
- package/lib/chunk-VTSEVEKJ.cjs.map +0 -1
- package/lib/chunk-VUEZCOXT.cjs +0 -33
- package/lib/chunk-VUEZCOXT.cjs.map +0 -1
- package/lib/chunk-VVS2M4QH.js +0 -53
- package/lib/chunk-VVS2M4QH.js.map +0 -1
- package/lib/chunk-VWUS4YUX.js +0 -49
- package/lib/chunk-VWUS4YUX.js.map +0 -1
- package/lib/chunk-VXXJ3CIC.js +0 -49
- package/lib/chunk-VXXJ3CIC.js.map +0 -1
- package/lib/chunk-VZQLDW2G.cjs +0 -95
- package/lib/chunk-VZQLDW2G.cjs.map +0 -1
- package/lib/chunk-WMM5EI62.js +0 -24
- package/lib/chunk-WMM5EI62.js.map +0 -1
- package/lib/chunk-WO5PFLID.js +0 -45
- package/lib/chunk-WO5PFLID.js.map +0 -1
- package/lib/chunk-WWUZP5BE.cjs +0 -50
- package/lib/chunk-WWUZP5BE.cjs.map +0 -1
- package/lib/chunk-X55DEMOC.js +0 -45
- package/lib/chunk-X55DEMOC.js.map +0 -1
- package/lib/chunk-X5TTCMYD.cjs +0 -105
- package/lib/chunk-X5TTCMYD.cjs.map +0 -1
- package/lib/chunk-XEAXNFP4.js +0 -49
- package/lib/chunk-XEAXNFP4.js.map +0 -1
- package/lib/chunk-XK7ZO7EI.js +0 -40
- package/lib/chunk-XK7ZO7EI.js.map +0 -1
- package/lib/chunk-XPPCVN6T.cjs +0 -53
- package/lib/chunk-XPPCVN6T.cjs.map +0 -1
- package/lib/chunk-XREISFN4.cjs +0 -42
- package/lib/chunk-XREISFN4.cjs.map +0 -1
- package/lib/chunk-XU6ZCB7C.cjs +0 -47
- package/lib/chunk-XU6ZCB7C.cjs.map +0 -1
- package/lib/chunk-XWBNNCYU.cjs +0 -97
- package/lib/chunk-XWBNNCYU.cjs.map +0 -1
- package/lib/chunk-XWIVM4OM.cjs +0 -42
- package/lib/chunk-XWIVM4OM.cjs.map +0 -1
- package/lib/chunk-Y35I6KPP.js +0 -52
- package/lib/chunk-Y35I6KPP.js.map +0 -1
- package/lib/chunk-Y4GGZ4EQ.cjs +0 -101
- package/lib/chunk-Y4GGZ4EQ.cjs.map +0 -1
- package/lib/chunk-YBX7UV5N.cjs +0 -91
- package/lib/chunk-YBX7UV5N.cjs.map +0 -1
- package/lib/chunk-YEMLHMYR.cjs +0 -107
- package/lib/chunk-YEMLHMYR.cjs.map +0 -1
- package/lib/chunk-YETXFXFO.cjs +0 -550
- package/lib/chunk-YETXFXFO.cjs.map +0 -1
- package/lib/chunk-YFTJA634.js +0 -36
- package/lib/chunk-YFTJA634.js.map +0 -1
- package/lib/chunk-YNWHCH2N.cjs +0 -26
- package/lib/chunk-YNWHCH2N.cjs.map +0 -1
- package/lib/chunk-YRCCY6RV.js +0 -276
- package/lib/chunk-YRCCY6RV.js.map +0 -1
- package/lib/chunk-YYAEAKBO.cjs +0 -51
- package/lib/chunk-YYAEAKBO.cjs.map +0 -1
- package/lib/chunk-Z4LKTHPE.js +0 -20
- package/lib/chunk-Z4LKTHPE.js.map +0 -1
- package/lib/chunk-ZGX3A2OH.cjs +0 -42
- package/lib/chunk-ZGX3A2OH.cjs.map +0 -1
- package/lib/chunk-ZJE7A6E6.cjs +0 -39
- package/lib/chunk-ZJE7A6E6.cjs.map +0 -1
- package/lib/chunk-ZJGFUHDX.cjs +0 -54
- package/lib/chunk-ZJGFUHDX.cjs.map +0 -1
- package/lib/chunk-ZM2HKUHW.cjs +0 -50
- package/lib/chunk-ZM2HKUHW.cjs.map +0 -1
- package/lib/chunk-ZVSNJOYP.js +0 -51
- package/lib/chunk-ZVSNJOYP.js.map +0 -1
- package/lib/fetch-DQyRNxTg.d.cts +0 -55
- package/lib/fetch-DQyRNxTg.d.ts +0 -55
package/lib/chunk-V74OBMS3.cjs
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/percentage_discount_promotions.ts
|
|
6
|
-
var PercentageDiscountPromotions = class _PercentageDiscountPromotions extends chunkL7FT6NDZ_cjs.ApiResource {
|
|
7
|
-
static TYPE = "percentage_discount_promotions";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _PercentageDiscountPromotions.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _PercentageDiscountPromotions.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PercentageDiscountPromotions.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async market(percentageDiscountPromotionId, params, options) {
|
|
18
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
19
|
-
return this.resources.fetch({ type: "markets" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/market`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async order_amount_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
22
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
23
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/order_amount_promotion_rule`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async sku_list_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
26
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
27
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list_promotion_rule`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async coupon_codes_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
30
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
31
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
32
|
-
}
|
|
33
|
-
async custom_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
34
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
35
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/custom_promotion_rule`, params, options);
|
|
36
|
-
}
|
|
37
|
-
async sku_list(percentageDiscountPromotionId, params, options) {
|
|
38
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
39
|
-
return this.resources.fetch({ type: "sku_lists" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options);
|
|
40
|
-
}
|
|
41
|
-
async coupons(percentageDiscountPromotionId, params, options) {
|
|
42
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
43
|
-
return this.resources.fetch({ type: "coupons" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupons`, params, options);
|
|
44
|
-
}
|
|
45
|
-
async attachments(percentageDiscountPromotionId, params, options) {
|
|
46
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
47
|
-
return this.resources.fetch({ type: "attachments" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/attachments`, params, options);
|
|
48
|
-
}
|
|
49
|
-
async events(percentageDiscountPromotionId, params, options) {
|
|
50
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
51
|
-
return this.resources.fetch({ type: "events" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/events`, params, options);
|
|
52
|
-
}
|
|
53
|
-
async tags(percentageDiscountPromotionId, params, options) {
|
|
54
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
55
|
-
return this.resources.fetch({ type: "tags" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`, params, options);
|
|
56
|
-
}
|
|
57
|
-
async event_stores(percentageDiscountPromotionId, params, options) {
|
|
58
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
59
|
-
return this.resources.fetch({ type: "event_stores" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/event_stores`, params, options);
|
|
60
|
-
}
|
|
61
|
-
async skus(percentageDiscountPromotionId, params, options) {
|
|
62
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
63
|
-
return this.resources.fetch({ type: "skus" }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`, params, options);
|
|
64
|
-
}
|
|
65
|
-
async _disable(id, params, options) {
|
|
66
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _disable: true }, params, options);
|
|
67
|
-
}
|
|
68
|
-
async _enable(id, params, options) {
|
|
69
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _enable: true }, params, options);
|
|
70
|
-
}
|
|
71
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
72
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
73
|
-
}
|
|
74
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
75
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
76
|
-
}
|
|
77
|
-
isPercentageDiscountPromotion(resource) {
|
|
78
|
-
return resource.type && resource.type === _PercentageDiscountPromotions.TYPE;
|
|
79
|
-
}
|
|
80
|
-
relationship(id) {
|
|
81
|
-
return super.relationshipOneToOne(id);
|
|
82
|
-
}
|
|
83
|
-
relationshipToMany(...ids) {
|
|
84
|
-
return super.relationshipOneToMany(...ids);
|
|
85
|
-
}
|
|
86
|
-
type() {
|
|
87
|
-
return _PercentageDiscountPromotions.TYPE;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
var instance = new PercentageDiscountPromotions();
|
|
91
|
-
var percentage_discount_promotions_default = instance;
|
|
92
|
-
|
|
93
|
-
exports.percentage_discount_promotions_default = percentage_discount_promotions_default;
|
|
94
|
-
//# sourceMappingURL=chunk-V74OBMS3.cjs.map
|
|
95
|
-
//# sourceMappingURL=chunk-V74OBMS3.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/percentage_discount_promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AAyQA,IAAM,4BAAA,GAAN,MAAM,6BAAA,SAAqCA,6BAAA,CAAyC;AAAA,EAE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,EAA6B;AAClD,IAAO,sCAAA,GAAQ","file":"chunk-V74OBMS3.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\n\ntype PercentageDiscountPromotionType = 'percentage_discount_promotions'\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\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 PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, '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 PercentageDiscountPromotionFilter = Pick<PercentageDiscountPromotion, '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 PercentageDiscountPromotion extends Resource {\n\t\n\treadonly type: PercentageDiscountPromotionType\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 discount percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage: number\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 PercentageDiscountPromotionCreate 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 discount percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage: number\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface PercentageDiscountPromotionUpdate 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 discount percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage?: 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 PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {\n\n\tstatic readonly TYPE: PercentageDiscountPromotionType = 'percentage_discount_promotions' as const\n\n\tasync create(resource: PercentageDiscountPromotionCreate, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.create<PercentageDiscountPromotionCreate, PercentageDiscountPromotion>({ ...resource, type: PercentageDiscountPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ ...resource, type: PercentageDiscountPromotions.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: PercentageDiscountPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion {\n\t\treturn resource.type && (resource.type === PercentageDiscountPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PercentageDiscountPromotionRel {\n\t\treturn super.relationshipOneToOne<PercentageDiscountPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PercentageDiscountPromotionRel[] {\n\t\treturn super.relationshipOneToMany<PercentageDiscountPromotionRel>(...ids)\n\t}\n\n\n\ttype(): PercentageDiscountPromotionType {\n\t\treturn PercentageDiscountPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new PercentageDiscountPromotions()\nexport default instance\n\nexport type { PercentageDiscountPromotion, PercentageDiscountPromotionCreate, PercentageDiscountPromotions, PercentageDiscountPromotionType, PercentageDiscountPromotionUpdate }\n"]}
|
package/lib/chunk-VA6VDBQS.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-YRCCY6RV.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/coupon_codes_promotion_rules.ts
|
|
4
|
-
var CouponCodesPromotionRules = class _CouponCodesPromotionRules extends ApiResource {
|
|
5
|
-
static TYPE = "coupon_codes_promotion_rules";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _CouponCodesPromotionRules.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _CouponCodesPromotionRules.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _CouponCodesPromotionRules.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async event_stores(couponCodesPromotionRuleId, params, options) {
|
|
16
|
-
const _couponCodesPromotionRuleId = couponCodesPromotionRuleId.id || couponCodesPromotionRuleId;
|
|
17
|
-
return this.resources.fetch({ type: "event_stores" }, `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/event_stores`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async coupons(couponCodesPromotionRuleId, params, options) {
|
|
20
|
-
const _couponCodesPromotionRuleId = couponCodesPromotionRuleId.id || couponCodesPromotionRuleId;
|
|
21
|
-
return this.resources.fetch({ type: "coupons" }, `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/coupons`, params, options);
|
|
22
|
-
}
|
|
23
|
-
isCouponCodesPromotionRule(resource) {
|
|
24
|
-
return resource.type && resource.type === _CouponCodesPromotionRules.TYPE;
|
|
25
|
-
}
|
|
26
|
-
relationship(id) {
|
|
27
|
-
return super.relationshipOneToOne(id);
|
|
28
|
-
}
|
|
29
|
-
relationshipToMany(...ids) {
|
|
30
|
-
return super.relationshipOneToMany(...ids);
|
|
31
|
-
}
|
|
32
|
-
type() {
|
|
33
|
-
return _CouponCodesPromotionRules.TYPE;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
var instance = new CouponCodesPromotionRules();
|
|
37
|
-
var coupon_codes_promotion_rules_default = instance;
|
|
38
|
-
|
|
39
|
-
export { coupon_codes_promotion_rules_default };
|
|
40
|
-
//# sourceMappingURL=chunk-VA6VDBQS.js.map
|
|
41
|
-
//# sourceMappingURL=chunk-VA6VDBQS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/coupon_codes_promotion_rules.ts"],"names":[],"mappings":";;;AA4DA,IAAM,yBAAA,GAAN,MAAM,0BAAA,SAAkC,WAAA,CAAsC;AAAA,EAE7E,OAAgB,IAAA,GAAqC,8BAAA;AAAA,EAErD,MAAM,MAAA,CAAO,QAAA,EAA0C,MAAA,EAAwD,OAAA,EAA8D;AAC5K,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0C,MAAA,EAAwD,OAAA,EAA8D;AAC5K,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,0BAAA,CAA0B,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACjH;AAAA,EAEA,MAAM,YAAA,CAAa,0BAAA,EAA+D,MAAA,EAAsC,OAAA,EAA8D;AACrL,IAAA,MAAM,2BAAA,GAA+B,2BAAwD,EAAA,IAAM,0BAAA;AACnG,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,6BAAA,EAAgC,2BAA2B,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9J;AAAA,EAEA,MAAM,OAAA,CAAQ,0BAAA,EAA+D,MAAA,EAAkC,OAAA,EAA0D;AACxK,IAAA,MAAM,2BAAA,GAA+B,2BAAwD,EAAA,IAAM,0BAAA;AACnG,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAc,EAAE,IAAA,EAAM,SAAA,EAAU,EAAG,CAAA,6BAAA,EAAgC,2BAA2B,CAAA,QAAA,CAAA,EAAY,MAAA,EAAQ,OAAO,CAAA;AAAA,EAChJ;AAAA,EAGA,2BAA2B,QAAA,EAAqD;AAC/E,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,0BAAA,CAA0B,IAAA;AAAA,EACtE;AAAA,EAGA,aAAa,EAAA,EAA6D;AACzE,IAAA,OAAO,KAAA,CAAM,qBAAkD,EAAE,CAAA;AAAA,EAClE;AAAA,EAEA,sBAAsB,GAAA,EAA8C;AACnE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmD,GAAG,GAAG,CAAA;AAAA,EACvE;AAAA,EAGA,IAAA,GAAqC;AACpC,IAAA,OAAO,0BAAA,CAA0B,IAAA;AAAA,EAClC;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,yBAAA,EAA0B;AAC/C,IAAO,oCAAA,GAAQ","file":"chunk-VA6VDBQS.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 { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { Coupon, CouponType } from './coupons'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\n\n\ntype CouponCodesPromotionRuleType = 'coupon_codes_promotion_rules'\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype CouponRel = ResourceRel & { type: CouponType }\n\n\nexport type CouponCodesPromotionRuleSort = Pick<CouponCodesPromotionRule, 'id'> & ResourceSort\n// export type CouponCodesPromotionRuleFilter = Pick<CouponCodesPromotionRule, 'id'> & ResourceFilter\n\n\ninterface CouponCodesPromotionRule extends Resource {\n\t\n\treadonly type: CouponCodesPromotionRuleType\n\n\n\tpromotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tevent_stores?: EventStore[] | null\n\tcoupons?: Coupon[] | null\n\n}\n\n\ninterface CouponCodesPromotionRuleCreate extends ResourceCreate {\n\t\n\tpromotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel\n\tcoupons?: CouponRel[] | null\n\n}\n\n\ninterface CouponCodesPromotionRuleUpdate extends ResourceUpdate {\n\t\n\tpromotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\tcoupons?: CouponRel[] | null\n\n}\n\n\nclass CouponCodesPromotionRules extends ApiResource<CouponCodesPromotionRule> {\n\n\tstatic readonly TYPE: CouponCodesPromotionRuleType = 'coupon_codes_promotion_rules' as const\n\n\tasync create(resource: CouponCodesPromotionRuleCreate, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\treturn this.resources.create<CouponCodesPromotionRuleCreate, CouponCodesPromotionRule>({ ...resource, type: CouponCodesPromotionRules.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CouponCodesPromotionRuleUpdate, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\treturn this.resources.update<CouponCodesPromotionRuleUpdate, CouponCodesPromotionRule>({ ...resource, type: CouponCodesPromotionRules.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: CouponCodesPromotionRules.TYPE } : id, options)\n\t}\n\n\tasync event_stores(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _couponCodesPromotionRuleId = (couponCodesPromotionRuleId as CouponCodesPromotionRule).id || couponCodesPromotionRuleId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync coupons(couponCodesPromotionRuleId: string | CouponCodesPromotionRule, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _couponCodesPromotionRuleId = (couponCodesPromotionRuleId as CouponCodesPromotionRule).id || couponCodesPromotionRuleId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\n\tisCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule {\n\t\treturn resource.type && (resource.type === CouponCodesPromotionRules.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel {\n\t\treturn super.relationshipOneToOne<CouponCodesPromotionRuleRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CouponCodesPromotionRuleRel[] {\n\t\treturn super.relationshipOneToMany<CouponCodesPromotionRuleRel>(...ids)\n\t}\n\n\n\ttype(): CouponCodesPromotionRuleType {\n\t\treturn CouponCodesPromotionRules.TYPE\n\t}\n\n}\n\n\nconst instance = new CouponCodesPromotionRules()\nexport default instance\n\nexport type { CouponCodesPromotionRule, CouponCodesPromotionRuleCreate, CouponCodesPromotionRules, CouponCodesPromotionRuleType, CouponCodesPromotionRuleUpdate }\n"]}
|
package/lib/chunk-VB7XUWBF.cjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/coupon_recipients.ts
|
|
6
|
-
var CouponRecipients = class _CouponRecipients extends chunkL7FT6NDZ_cjs.ApiResource {
|
|
7
|
-
static TYPE = "coupon_recipients";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _CouponRecipients.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _CouponRecipients.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _CouponRecipients.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async customer(couponRecipientId, params, options) {
|
|
18
|
-
const _couponRecipientId = couponRecipientId.id || couponRecipientId;
|
|
19
|
-
return this.resources.fetch({ type: "customers" }, `coupon_recipients/${_couponRecipientId}/customer`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async event_stores(couponRecipientId, params, options) {
|
|
22
|
-
const _couponRecipientId = couponRecipientId.id || couponRecipientId;
|
|
23
|
-
return this.resources.fetch({ type: "event_stores" }, `coupon_recipients/${_couponRecipientId}/event_stores`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async attachments(couponRecipientId, params, options) {
|
|
26
|
-
const _couponRecipientId = couponRecipientId.id || couponRecipientId;
|
|
27
|
-
return this.resources.fetch({ type: "attachments" }, `coupon_recipients/${_couponRecipientId}/attachments`, params, options);
|
|
28
|
-
}
|
|
29
|
-
isCouponRecipient(resource) {
|
|
30
|
-
return resource.type && resource.type === _CouponRecipients.TYPE;
|
|
31
|
-
}
|
|
32
|
-
relationship(id) {
|
|
33
|
-
return super.relationshipOneToOne(id);
|
|
34
|
-
}
|
|
35
|
-
relationshipToMany(...ids) {
|
|
36
|
-
return super.relationshipOneToMany(...ids);
|
|
37
|
-
}
|
|
38
|
-
type() {
|
|
39
|
-
return _CouponRecipients.TYPE;
|
|
40
|
-
}
|
|
41
|
-
};
|
|
42
|
-
var instance = new CouponRecipients();
|
|
43
|
-
var coupon_recipients_default = instance;
|
|
44
|
-
|
|
45
|
-
exports.coupon_recipients_default = coupon_recipients_default;
|
|
46
|
-
//# sourceMappingURL=chunk-VB7XUWBF.cjs.map
|
|
47
|
-
//# sourceMappingURL=chunk-VB7XUWBF.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/coupon_recipients.ts"],"names":["ApiResource"],"mappings":";;;;;AA0FA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyBA,6BAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,QAAA,CAAS,iBAAA,EAA6C,MAAA,EAAwC,OAAA,EAA8C;AACjJ,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAM,iBAAA;AACxE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAgB,EA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AAO,yBAAA,GAAQ","file":"chunk-VB7XUWBF.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { Customer, CustomerType } from './customers'\nimport type { EventStore } from './event_stores'\n\n\ntype CouponRecipientType = 'coupon_recipients'\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\n\n\nexport type CouponRecipientSort = Pick<CouponRecipient, 'id' | 'email'> & ResourceSort\n// export type CouponRecipientFilter = Pick<CouponRecipient, 'id' | 'email' | 'first_name' | 'last_name'> & ResourceFilter\n\n\ninterface CouponRecipient extends Resource {\n\t\n\treadonly type: CouponRecipientType\n\n\t/** \n\t * The recipient email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The recipient first name.\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * The recipient last name.\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\n\tcustomer?: Customer | null\n\tevent_stores?: EventStore[] | null\n\tattachments?: Attachment[] | null\n\n}\n\n\ninterface CouponRecipientCreate extends ResourceCreate {\n\t\n\t/** \n\t * The recipient email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The recipient first name.\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * The recipient last name.\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\n\tcustomer?: CustomerRel | null\n\n}\n\n\ninterface CouponRecipientUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The recipient email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * The recipient first name.\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * The recipient last name.\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\n\tcustomer?: CustomerRel | null\n\n}\n\n\nclass CouponRecipients extends ApiResource<CouponRecipient> {\n\n\tstatic readonly TYPE: CouponRecipientType = 'coupon_recipients' as const\n\n\tasync create(resource: CouponRecipientCreate, params?: QueryParamsRetrieve<CouponRecipient>, options?: ResourcesConfig): Promise<CouponRecipient> {\n\t\treturn this.resources.create<CouponRecipientCreate, CouponRecipient>({ ...resource, type: CouponRecipients.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CouponRecipientUpdate, params?: QueryParamsRetrieve<CouponRecipient>, options?: ResourcesConfig): Promise<CouponRecipient> {\n\t\treturn this.resources.update<CouponRecipientUpdate, CouponRecipient>({ ...resource, type: CouponRecipients.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: CouponRecipients.TYPE } : id, options)\n\t}\n\n\tasync customer(couponRecipientId: string | CouponRecipient, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _couponRecipientId = (couponRecipientId as CouponRecipient).id || couponRecipientId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `coupon_recipients/${_couponRecipientId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync event_stores(couponRecipientId: string | CouponRecipient, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _couponRecipientId = (couponRecipientId as CouponRecipient).id || couponRecipientId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `coupon_recipients/${_couponRecipientId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync attachments(couponRecipientId: string | CouponRecipient, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _couponRecipientId = (couponRecipientId as CouponRecipient).id || couponRecipientId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `coupon_recipients/${_couponRecipientId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\n\tisCouponRecipient(resource: any): resource is CouponRecipient {\n\t\treturn resource.type && (resource.type === CouponRecipients.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CouponRecipientRel {\n\t\treturn super.relationshipOneToOne<CouponRecipientRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CouponRecipientRel[] {\n\t\treturn super.relationshipOneToMany<CouponRecipientRel>(...ids)\n\t}\n\n\n\ttype(): CouponRecipientType {\n\t\treturn CouponRecipients.TYPE\n\t}\n\n}\n\n\nconst instance = new CouponRecipients()\nexport default instance\n\nexport type { CouponRecipient, CouponRecipientCreate, CouponRecipients, CouponRecipientType, CouponRecipientUpdate }\n"]}
|
package/lib/chunk-VESU72KU.js
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-YRCCY6RV.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/fixed_price_promotions.ts
|
|
4
|
-
var FixedPricePromotions = class _FixedPricePromotions extends ApiResource {
|
|
5
|
-
static TYPE = "fixed_price_promotions";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _FixedPricePromotions.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _FixedPricePromotions.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _FixedPricePromotions.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async market(fixedPricePromotionId, params, options) {
|
|
16
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `fixed_price_promotions/${_fixedPricePromotionId}/market`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async order_amount_promotion_rule(fixedPricePromotionId, params, options) {
|
|
20
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
21
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `fixed_price_promotions/${_fixedPricePromotionId}/order_amount_promotion_rule`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async sku_list_promotion_rule(fixedPricePromotionId, params, options) {
|
|
24
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
25
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list_promotion_rule`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async coupon_codes_promotion_rule(fixedPricePromotionId, params, options) {
|
|
28
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
29
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `fixed_price_promotions/${_fixedPricePromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async custom_promotion_rule(fixedPricePromotionId, params, options) {
|
|
32
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
33
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `fixed_price_promotions/${_fixedPricePromotionId}/custom_promotion_rule`, params, options);
|
|
34
|
-
}
|
|
35
|
-
async sku_list(fixedPricePromotionId, params, options) {
|
|
36
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
37
|
-
return this.resources.fetch({ type: "sku_lists" }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options);
|
|
38
|
-
}
|
|
39
|
-
async coupons(fixedPricePromotionId, params, options) {
|
|
40
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
41
|
-
return this.resources.fetch({ type: "coupons" }, `fixed_price_promotions/${_fixedPricePromotionId}/coupons`, params, options);
|
|
42
|
-
}
|
|
43
|
-
async attachments(fixedPricePromotionId, params, options) {
|
|
44
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
45
|
-
return this.resources.fetch({ type: "attachments" }, `fixed_price_promotions/${_fixedPricePromotionId}/attachments`, params, options);
|
|
46
|
-
}
|
|
47
|
-
async events(fixedPricePromotionId, params, options) {
|
|
48
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
49
|
-
return this.resources.fetch({ type: "events" }, `fixed_price_promotions/${_fixedPricePromotionId}/events`, params, options);
|
|
50
|
-
}
|
|
51
|
-
async tags(fixedPricePromotionId, params, options) {
|
|
52
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
53
|
-
return this.resources.fetch({ type: "tags" }, `fixed_price_promotions/${_fixedPricePromotionId}/tags`, params, options);
|
|
54
|
-
}
|
|
55
|
-
async event_stores(fixedPricePromotionId, params, options) {
|
|
56
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
57
|
-
return this.resources.fetch({ type: "event_stores" }, `fixed_price_promotions/${_fixedPricePromotionId}/event_stores`, params, options);
|
|
58
|
-
}
|
|
59
|
-
async skus(fixedPricePromotionId, params, options) {
|
|
60
|
-
const _fixedPricePromotionId = fixedPricePromotionId.id || fixedPricePromotionId;
|
|
61
|
-
return this.resources.fetch({ type: "skus" }, `fixed_price_promotions/${_fixedPricePromotionId}/skus`, params, options);
|
|
62
|
-
}
|
|
63
|
-
async _disable(id, params, options) {
|
|
64
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FixedPricePromotions.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: _FixedPricePromotions.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: _FixedPricePromotions.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: _FixedPricePromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
74
|
-
}
|
|
75
|
-
isFixedPricePromotion(resource) {
|
|
76
|
-
return resource.type && resource.type === _FixedPricePromotions.TYPE;
|
|
77
|
-
}
|
|
78
|
-
relationship(id) {
|
|
79
|
-
return super.relationshipOneToOne(id);
|
|
80
|
-
}
|
|
81
|
-
relationshipToMany(...ids) {
|
|
82
|
-
return super.relationshipOneToMany(...ids);
|
|
83
|
-
}
|
|
84
|
-
type() {
|
|
85
|
-
return _FixedPricePromotions.TYPE;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
var instance = new FixedPricePromotions();
|
|
89
|
-
var fixed_price_promotions_default = instance;
|
|
90
|
-
|
|
91
|
-
export { fixed_price_promotions_default };
|
|
92
|
-
//# sourceMappingURL=chunk-VESU72KU.js.map
|
|
93
|
-
//# sourceMappingURL=chunk-VESU72KU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/fixed_price_promotions.ts"],"names":[],"mappings":";;;AAmRA,IAAM,oBAAA,GAAN,MAAM,qBAAA,SAA6B,WAAA,CAAiC;AAAA,EAEnE,OAAgB,IAAA,GAAgC,wBAAA;AAAA,EAEhD,MAAM,MAAA,CAAO,QAAA,EAAqC,MAAA,EAAmD,OAAA,EAAyD;AAC7J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,qBAAA,CAAqB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/I;AAAA,EAEA,MAA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K,SAAA,CAAU,MAAA,CAAuD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,qBAAA,CAAqB,IAAA,EAAM,WAAW,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACpM;AAAA,EAEA,MAAM,YAAA,CAAa,EAAA,EAAkC,YAAA,EAAsB,QAAmD,OAAA,EAAyD;AACtL,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAuD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,qBAAA,CAAqB,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvM;AAAA,EAGA,sBAAsB,QAAA,EAAgD;AACrE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,qBAAA,CAAqB,IAAA;AAAA,EACjE;AAAA,EAGA,aAAa,EAAA,EAAwD;AACpE,IAAA,OAAO,KAAA,CAAM,qBAA6C,EAAE,CAAA;AAAA,EAC7D;AAAA,EAEA,sBAAsB,GAAA,EAAyC;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA8C,GAAG,GAAG,CAAA;AAAA,EAClE;AAAA,EAGA,IAAA,GAAgC;AAC/B,IAAA,OAAO,qBAAA,CAAqB,IAAA;AAAA,EAC7B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,oBAAA,EAAqB;AAC1C,IAAO,8BAAA,GAAQ","file":"chunk-VESU72KU.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 FixedPricePromotionType = 'fixed_price_promotions'\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\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 FixedPricePromotionSort = Pick<FixedPricePromotion, '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 FixedPricePromotionFilter = Pick<FixedPricePromotion, '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 FixedPricePromotion extends Resource {\n\t\n\treadonly type: FixedPricePromotionType\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 price fixed amount to be applied on matching SKUs, in cents.\n\t * @example ```1000```\n\t */\n\tfixed_amount_cents: number\n\t/** \n\t * The discount fixed amount to be applied, float.\n\t * @example ```10```\n\t */\n\tfixed_amount_float?: number | null\n\t/** \n\t * The discount fixed amount to be applied, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_fixed_amount?: string | null\n\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\tskus?: Sku[] | null\n\n}\n\n\ninterface FixedPricePromotionCreate 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 price fixed amount to be applied on matching SKUs, in cents.\n\t * @example ```1000```\n\t */\n\tfixed_amount_cents: number\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 FixedPricePromotionUpdate 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 price fixed amount to be applied on matching SKUs, in cents.\n\t * @example ```1000```\n\t */\n\tfixed_amount_cents?: 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 FixedPricePromotions extends ApiResource<FixedPricePromotion> {\n\n\tstatic readonly TYPE: FixedPricePromotionType = 'fixed_price_promotions' as const\n\n\tasync create(resource: FixedPricePromotionCreate, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.create<FixedPricePromotionCreate, FixedPricePromotion>({ ...resource, type: FixedPricePromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: FixedPricePromotionUpdate, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ ...resource, type: FixedPricePromotions.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: FixedPricePromotions.TYPE } : id, options)\n\t}\n\n\tasync market(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `fixed_price_promotions/${_fixedPricePromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `fixed_price_promotions/${_fixedPricePromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `fixed_price_promotions/${_fixedPricePromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `fixed_price_promotions/${_fixedPricePromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `fixed_price_promotions/${_fixedPricePromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `fixed_price_promotions/${_fixedPricePromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `fixed_price_promotions/${_fixedPricePromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `fixed_price_promotions/${_fixedPricePromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(fixedPricePromotionId: string | FixedPricePromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _fixedPricePromotionId = (fixedPricePromotionId as FixedPricePromotion).id || fixedPricePromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `fixed_price_promotions/${_fixedPricePromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | FixedPricePromotion, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | FixedPricePromotion, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | FixedPricePromotion, triggerValue: string, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | FixedPricePromotion, triggerValue: string, params?: QueryParamsRetrieve<FixedPricePromotion>, options?: ResourcesConfig): Promise<FixedPricePromotion> {\n\t\treturn this.resources.update<FixedPricePromotionUpdate, FixedPricePromotion>({ id: (typeof id === 'string')? id: id.id, type: FixedPricePromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisFixedPricePromotion(resource: any): resource is FixedPricePromotion {\n\t\treturn resource.type && (resource.type === FixedPricePromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): FixedPricePromotionRel {\n\t\treturn super.relationshipOneToOne<FixedPricePromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): FixedPricePromotionRel[] {\n\t\treturn super.relationshipOneToMany<FixedPricePromotionRel>(...ids)\n\t}\n\n\n\ttype(): FixedPricePromotionType {\n\t\treturn FixedPricePromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new FixedPricePromotions()\nexport default instance\n\nexport type { FixedPricePromotion, FixedPricePromotionCreate, FixedPricePromotions, FixedPricePromotionType, FixedPricePromotionUpdate }\n"]}
|
package/lib/chunk-VEV4DZKI.cjs
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/price_frequency_tiers.ts
|
|
6
|
-
var PriceFrequencyTiers = class _PriceFrequencyTiers extends chunkL7FT6NDZ_cjs.ApiResource {
|
|
7
|
-
static TYPE = "price_frequency_tiers";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _PriceFrequencyTiers.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _PriceFrequencyTiers.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PriceFrequencyTiers.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async price(priceFrequencyTierId, params, options) {
|
|
18
|
-
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
|
19
|
-
return this.resources.fetch({ type: "prices" }, `price_frequency_tiers/${_priceFrequencyTierId}/price`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async attachments(priceFrequencyTierId, params, options) {
|
|
22
|
-
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
|
23
|
-
return this.resources.fetch({ type: "attachments" }, `price_frequency_tiers/${_priceFrequencyTierId}/attachments`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async event_stores(priceFrequencyTierId, params, options) {
|
|
26
|
-
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
|
27
|
-
return this.resources.fetch({ type: "event_stores" }, `price_frequency_tiers/${_priceFrequencyTierId}/event_stores`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async events(priceFrequencyTierId, params, options) {
|
|
30
|
-
const _priceFrequencyTierId = priceFrequencyTierId.id || priceFrequencyTierId;
|
|
31
|
-
return this.resources.fetch({ type: "events" }, `price_frequency_tiers/${_priceFrequencyTierId}/events`, params, options);
|
|
32
|
-
}
|
|
33
|
-
isPriceFrequencyTier(resource) {
|
|
34
|
-
return resource.type && resource.type === _PriceFrequencyTiers.TYPE;
|
|
35
|
-
}
|
|
36
|
-
relationship(id) {
|
|
37
|
-
return super.relationshipOneToOne(id);
|
|
38
|
-
}
|
|
39
|
-
relationshipToMany(...ids) {
|
|
40
|
-
return super.relationshipOneToMany(...ids);
|
|
41
|
-
}
|
|
42
|
-
type() {
|
|
43
|
-
return _PriceFrequencyTiers.TYPE;
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
var instance = new PriceFrequencyTiers();
|
|
47
|
-
var price_frequency_tiers_default = instance;
|
|
48
|
-
|
|
49
|
-
exports.price_frequency_tiers_default = price_frequency_tiers_default;
|
|
50
|
-
//# sourceMappingURL=chunk-VEV4DZKI.cjs.map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AA,EAAwC;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA6C,GAAG,GAAG,CAAA;AAAA,EACjE;AAAA,EAGA,IAAA,GAA+B;AAC9B,IAAA,OAAO,oBAAA,CAAoB,IAAA;AAAA,EAC5B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-VEV4DZKI.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Price, PriceType } from './prices'\n\n\ntype PriceFrequencyTierType = 'price_frequency_tiers'\ntype PriceFrequencyTierRel = ResourceRel & { type: PriceFrequencyTierType }\ntype PriceRel = ResourceRel & { type: PriceType }\n\n\nexport type PriceFrequencyTierSort = Pick<PriceFrequencyTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type PriceFrequencyTierFilter = Pick<PriceFrequencyTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\n\ninterface PriceFrequencyTier extends Resource {\n\t\n\treadonly type: PriceFrequencyTierType\n\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this price tier, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this price tier, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\n\tprice?: Price | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\tevents?: Event[] | null\n\n}\n\n\ninterface PriceFrequencyTierCreate extends ResourceCreate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\n\tprice: PriceRel\n\n}\n\n\ninterface PriceFrequencyTierUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\n\tprice?: PriceRel | null\n\n}\n\n\nclass PriceFrequencyTiers extends ApiResource<PriceFrequencyTier> {\n\n\tstatic readonly TYPE: PriceFrequencyTierType = 'price_frequency_tiers' as const\n\n\tasync create(resource: PriceFrequencyTierCreate, params?: QueryParamsRetrieve<PriceFrequencyTier>, options?: ResourcesConfig): Promise<PriceFrequencyTier> {\n\t\treturn this.resources.create<PriceFrequencyTierCreate, PriceFrequencyTier>({ ...resource, type: PriceFrequencyTiers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceFrequencyTierUpdate, params?: QueryParamsRetrieve<PriceFrequencyTier>, options?: ResourcesConfig): Promise<PriceFrequencyTier> {\n\t\treturn this.resources.update<PriceFrequencyTierUpdate, PriceFrequencyTier>({ ...resource, type: PriceFrequencyTiers.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: PriceFrequencyTiers.TYPE } : id, options)\n\t}\n\n\tasync price(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsRetrieve<Price>, options?: ResourcesConfig): Promise<Price> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Price>({ type: 'prices' }, `price_frequency_tiers/${_priceFrequencyTierId}/price`, params, options) as unknown as Price\n\t}\n\n\tasync attachments(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `price_frequency_tiers/${_priceFrequencyTierId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `price_frequency_tiers/${_priceFrequencyTierId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync events(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `price_frequency_tiers/${_priceFrequencyTierId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\n\tisPriceFrequencyTier(resource: any): resource is PriceFrequencyTier {\n\t\treturn resource.type && (resource.type === PriceFrequencyTiers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceFrequencyTierRel {\n\t\treturn super.relationshipOneToOne<PriceFrequencyTierRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceFrequencyTierRel[] {\n\t\treturn super.relationshipOneToMany<PriceFrequencyTierRel>(...ids)\n\t}\n\n\n\ttype(): PriceFrequencyTierType {\n\t\treturn PriceFrequencyTiers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceFrequencyTiers()\nexport default instance\n\nexport type { PriceFrequencyTier, PriceFrequencyTierCreate, PriceFrequencyTiers, PriceFrequencyTierType, PriceFrequencyTierUpdate }\n"]}
|
package/lib/chunk-VI2NCCWC.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-YRCCY6RV.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/google_geocoders.ts
|
|
4
|
-
var GoogleGeocoders = class _GoogleGeocoders extends ApiResource {
|
|
5
|
-
static TYPE = "google_geocoders";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _GoogleGeocoders.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _GoogleGeocoders.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _GoogleGeocoders.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async markets(googleGeocoderId, params, options) {
|
|
16
|
-
const _googleGeocoderId = googleGeocoderId.id || googleGeocoderId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `google_geocoders/${_googleGeocoderId}/markets`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async addresses(googleGeocoderId, params, options) {
|
|
20
|
-
const _googleGeocoderId = googleGeocoderId.id || googleGeocoderId;
|
|
21
|
-
return this.resources.fetch({ type: "addresses" }, `google_geocoders/${_googleGeocoderId}/addresses`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async attachments(googleGeocoderId, params, options) {
|
|
24
|
-
const _googleGeocoderId = googleGeocoderId.id || googleGeocoderId;
|
|
25
|
-
return this.resources.fetch({ type: "attachments" }, `google_geocoders/${_googleGeocoderId}/attachments`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async event_stores(googleGeocoderId, params, options) {
|
|
28
|
-
const _googleGeocoderId = googleGeocoderId.id || googleGeocoderId;
|
|
29
|
-
return this.resources.fetch({ type: "event_stores" }, `google_geocoders/${_googleGeocoderId}/event_stores`, params, options);
|
|
30
|
-
}
|
|
31
|
-
isGoogleGeocoder(resource) {
|
|
32
|
-
return resource.type && resource.type === _GoogleGeocoders.TYPE;
|
|
33
|
-
}
|
|
34
|
-
relationship(id) {
|
|
35
|
-
return super.relationshipOneToOne(id);
|
|
36
|
-
}
|
|
37
|
-
relationshipToMany(...ids) {
|
|
38
|
-
return super.relationshipOneToMany(...ids);
|
|
39
|
-
}
|
|
40
|
-
type() {
|
|
41
|
-
return _GoogleGeocoders.TYPE;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
var instance = new GoogleGeocoders();
|
|
45
|
-
var google_geocoders_default = instance;
|
|
46
|
-
|
|
47
|
-
export { google_geocoders_default };
|
|
48
|
-
//# sourceMappingURL=chunk-VI2NCCWC.js.map
|
|
49
|
-
//# sourceMappingURL=chunk-VI2NCCWC.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/google_geocoders.ts"],"names":[],"mappings":";;;AAmEA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,WAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,kBAAA;AAAA,EAE3C,MAAM,MAAA,CAAO,QAAA,EAAgC,MAAA,EAA8C,OAAA,EAAoD;AAC9I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,gB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8D;AAChK,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAA,EAAc,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,YAAA,CAAA,EAAgB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACtI;AAAA,EAEA,MAAM,YAAA,CAAa,gBAAA,EAA2C,MAAA,EAAsC,OAAA,EAA8D;AACjK,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxI;AAAA,EAGA,iBAAiB,QAAA,EAA2C;AAC3D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,gBAAA,CAAgB,IAAA;AAAA,EAC5D;AAAA,EAGA,aAAa,EAAA,EAAmD;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA,EACxD;AAAA,EAEA,sBAAsB,GAAA,EAAoC;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAyC,GAAG,GAAG,CAAA;AAAA,EAC7D;AAAA,EAGA,IAAA,GAA2B;AAC1B,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA,EACxB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,wBAAA,GAAQ","file":"chunk-VI2NCCWC.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 { Address } from './addresses'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Market } from './markets'\n\n\ntype GoogleGeocoderType = 'google_geocoders'\ntype GoogleGeocoderRel = ResourceRel & { type: GoogleGeocoderType }\n\n\nexport type GoogleGeocoderSort = Pick<GoogleGeocoder, 'id' | 'name'> & ResourceSort\n// export type GoogleGeocoderFilter = Pick<GoogleGeocoder, 'id' | 'name'> & ResourceFilter\n\n\ninterface GoogleGeocoder extends Resource {\n\t\n\treadonly type: GoogleGeocoderType\n\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\taddresses?: Address[] | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface GoogleGeocoderCreate extends ResourceCreate {\n\t\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\t/** \n\t * The Google Map API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\t\n}\n\n\ninterface GoogleGeocoderUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The Google Map API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\t\n}\n\n\nclass GoogleGeocoders extends ApiResource<GoogleGeocoder> {\n\n\tstatic readonly TYPE: GoogleGeocoderType = 'google_geocoders' as const\n\n\tasync create(resource: GoogleGeocoderCreate, params?: QueryParamsRetrieve<GoogleGeocoder>, options?: ResourcesConfig): Promise<GoogleGeocoder> {\n\t\treturn this.resources.create<GoogleGeocoderCreate, GoogleGeocoder>({ ...resource, type: GoogleGeocoders.TYPE }, params, options)\n\t}\n\n\tasync update(resource: GoogleGeocoderUpdate, params?: QueryParamsRetrieve<GoogleGeocoder>, options?: ResourcesConfig): Promise<GoogleGeocoder> {\n\t\treturn this.resources.update<GoogleGeocoderUpdate, GoogleGeocoder>({ ...resource, type: GoogleGeocoders.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: GoogleGeocoders.TYPE } : id, options)\n\t}\n\n\tasync markets(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _googleGeocoderId = (googleGeocoderId as GoogleGeocoder).id || googleGeocoderId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `google_geocoders/${_googleGeocoderId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync addresses(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList<Address>, options?: ResourcesConfig): Promise<ListResponse<Address>> {\n\t\tconst _googleGeocoderId = (googleGeocoderId as GoogleGeocoder).id || googleGeocoderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `google_geocoders/${_googleGeocoderId}/addresses`, params, options) as unknown as ListResponse<Address>\n\t}\n\n\tasync attachments(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _googleGeocoderId = (googleGeocoderId as GoogleGeocoder).id || googleGeocoderId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `google_geocoders/${_googleGeocoderId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(googleGeocoderId: string | GoogleGeocoder, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _googleGeocoderId = (googleGeocoderId as GoogleGeocoder).id || googleGeocoderId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `google_geocoders/${_googleGeocoderId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisGoogleGeocoder(resource: any): resource is GoogleGeocoder {\n\t\treturn resource.type && (resource.type === GoogleGeocoders.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): GoogleGeocoderRel {\n\t\treturn super.relationshipOneToOne<GoogleGeocoderRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): GoogleGeocoderRel[] {\n\t\treturn super.relationshipOneToMany<GoogleGeocoderRel>(...ids)\n\t}\n\n\n\ttype(): GoogleGeocoderType {\n\t\treturn GoogleGeocoders.TYPE\n\t}\n\n}\n\n\nconst instance = new GoogleGeocoders()\nexport default instance\n\nexport type { GoogleGeocoder, GoogleGeocoderCreate, GoogleGeocoders, GoogleGeocoderType, GoogleGeocoderUpdate }\n"]}
|