@commercelayer/sdk 7.11.0 → 8.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api-CxFbvblr.d.ts +18107 -0
- package/lib/api-o1gYTpPm.d.cts +18107 -0
- package/lib/api.cjs +265 -270
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +134 -135
- package/lib/bundle.cjs +267 -271
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +1 -2
- package/lib/bundle.d.ts +1 -2
- package/lib/bundle.js +135 -139
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-26Q2QNAQ.cjs +30 -0
- package/lib/chunk-26Q2QNAQ.cjs.map +1 -0
- package/lib/chunk-27YKND3S.js +93 -0
- package/lib/chunk-27YKND3S.js.map +1 -0
- package/lib/chunk-2CMJ2SZM.cjs +57 -0
- package/lib/chunk-2CMJ2SZM.cjs.map +1 -0
- package/lib/chunk-2HNW5KNF.js +45 -0
- package/lib/chunk-2HNW5KNF.js.map +1 -0
- package/lib/chunk-2NWYRIJZ.js +41 -0
- package/lib/chunk-2NWYRIJZ.js.map +1 -0
- package/lib/chunk-2QXENUO7.cjs +51 -0
- package/lib/chunk-2QXENUO7.cjs.map +1 -0
- package/lib/chunk-2VI6OWLV.cjs +61 -0
- package/lib/chunk-2VI6OWLV.cjs.map +1 -0
- package/lib/chunk-2WVBEUMO.js +53 -0
- package/lib/chunk-2WVBEUMO.js.map +1 -0
- package/lib/chunk-2XDVUDJS.cjs +34 -0
- package/lib/chunk-2XDVUDJS.cjs.map +1 -0
- package/lib/chunk-35Q3ZTZC.js +75 -0
- package/lib/chunk-35Q3ZTZC.js.map +1 -0
- package/lib/chunk-3EX76AZW.js +3 -0
- package/lib/chunk-3EX76AZW.js.map +1 -0
- package/lib/chunk-3PAID2YG.cjs +54 -0
- package/lib/chunk-3PAID2YG.cjs.map +1 -0
- package/lib/chunk-3PXZUPZE.cjs +43 -0
- package/lib/chunk-3PXZUPZE.cjs.map +1 -0
- package/lib/chunk-3YS6NHUH.cjs +50 -0
- package/lib/chunk-3YS6NHUH.cjs.map +1 -0
- package/lib/chunk-43JU63UQ.js +51 -0
- package/lib/chunk-43JU63UQ.js.map +1 -0
- package/lib/chunk-4C55SMIS.js +55 -0
- package/lib/chunk-4C55SMIS.js.map +1 -0
- package/lib/chunk-4E5BE47D.cjs +61 -0
- package/lib/chunk-4E5BE47D.cjs.map +1 -0
- package/lib/chunk-4P3MBQVY.cjs +156 -0
- package/lib/chunk-4P3MBQVY.cjs.map +1 -0
- package/lib/chunk-4PNXT6OT.js +36 -0
- package/lib/chunk-4PNXT6OT.js.map +1 -0
- package/lib/chunk-4S3I222F.cjs +285 -0
- package/lib/chunk-4S3I222F.cjs.map +1 -0
- package/lib/chunk-4YR6JIEN.js +154 -0
- package/lib/chunk-4YR6JIEN.js.map +1 -0
- package/lib/chunk-4ZIGP3FO.cjs +59 -0
- package/lib/chunk-4ZIGP3FO.cjs.map +1 -0
- package/lib/chunk-536MZPMI.cjs +26 -0
- package/lib/chunk-536MZPMI.cjs.map +1 -0
- package/lib/chunk-54VT56WS.cjs +126 -0
- package/lib/chunk-54VT56WS.cjs.map +1 -0
- package/lib/chunk-56HCMG32.js +31 -0
- package/lib/chunk-56HCMG32.js.map +1 -0
- package/lib/chunk-5AFBGKJ4.js +53 -0
- package/lib/chunk-5AFBGKJ4.js.map +1 -0
- package/lib/chunk-5P67UEWW.cjs +56 -0
- package/lib/chunk-5P67UEWW.cjs.map +1 -0
- package/lib/chunk-5RJW5RAK.js +40 -0
- package/lib/chunk-5RJW5RAK.js.map +1 -0
- package/lib/chunk-5TLVMKOO.cjs +52 -0
- package/lib/chunk-5TLVMKOO.cjs.map +1 -0
- package/lib/chunk-5YMHXTJG.cjs +4 -0
- package/lib/chunk-5YMHXTJG.cjs.map +1 -0
- package/lib/chunk-65XBHNZH.js +96 -0
- package/lib/chunk-65XBHNZH.js.map +1 -0
- package/lib/chunk-6BXCQFTI.js +37 -0
- package/lib/chunk-6BXCQFTI.js.map +1 -0
- package/lib/chunk-6EUKX4RC.cjs +47 -0
- package/lib/chunk-6EUKX4RC.cjs.map +1 -0
- package/lib/chunk-6UIVNEE7.cjs +53 -0
- package/lib/chunk-6UIVNEE7.cjs.map +1 -0
- package/lib/chunk-7473V4XD.js +59 -0
- package/lib/chunk-7473V4XD.js.map +1 -0
- package/lib/chunk-74JBCKFT.cjs +30 -0
- package/lib/chunk-74JBCKFT.cjs.map +1 -0
- package/lib/chunk-77HRCSA5.cjs +55 -0
- package/lib/chunk-77HRCSA5.cjs.map +1 -0
- package/lib/chunk-7ZBEKCA5.cjs +75 -0
- package/lib/chunk-7ZBEKCA5.cjs.map +1 -0
- package/lib/chunk-A6E33WC3.cjs +53 -0
- package/lib/chunk-A6E33WC3.cjs.map +1 -0
- package/lib/chunk-A77RAUIU.cjs +54 -0
- package/lib/chunk-A77RAUIU.cjs.map +1 -0
- package/lib/chunk-A7BK3Z22.cjs +38 -0
- package/lib/chunk-A7BK3Z22.cjs.map +1 -0
- package/lib/chunk-AEP6D5QV.cjs +38 -0
- package/lib/chunk-AEP6D5QV.cjs.map +1 -0
- package/lib/chunk-AN2Y6XMS.js +28 -0
- package/lib/chunk-AN2Y6XMS.js.map +1 -0
- package/lib/chunk-ANRUEWG5.js +51 -0
- package/lib/chunk-ANRUEWG5.js.map +1 -0
- package/lib/chunk-AP5WOJMJ.js +49 -0
- package/lib/chunk-AP5WOJMJ.js.map +1 -0
- package/lib/chunk-APMYXRFX.js +96 -0
- package/lib/chunk-APMYXRFX.js.map +1 -0
- package/lib/chunk-APTNONWZ.js +40 -0
- package/lib/chunk-APTNONWZ.js.map +1 -0
- package/lib/chunk-AS6CAIIM.js +65 -0
- package/lib/chunk-AS6CAIIM.js.map +1 -0
- package/lib/chunk-ATK6TFVA.cjs +43 -0
- package/lib/chunk-ATK6TFVA.cjs.map +1 -0
- package/lib/chunk-AVYPSM4A.cjs +43 -0
- package/lib/chunk-AVYPSM4A.cjs.map +1 -0
- package/lib/chunk-AWEYC4IM.js +45 -0
- package/lib/chunk-AWEYC4IM.js.map +1 -0
- package/lib/chunk-AWLS4LR4.cjs +53 -0
- package/lib/chunk-AWLS4LR4.cjs.map +1 -0
- package/lib/chunk-AY7MWZ7Y.js +48 -0
- package/lib/chunk-AY7MWZ7Y.js.map +1 -0
- package/lib/chunk-B7T7DQEK.js +52 -0
- package/lib/chunk-B7T7DQEK.js.map +1 -0
- package/lib/chunk-BANZUNLK.js +40 -0
- package/lib/chunk-BANZUNLK.js.map +1 -0
- package/lib/chunk-BQE56RMQ.js +45 -0
- package/lib/chunk-BQE56RMQ.js.map +1 -0
- package/lib/chunk-C7AHHS53.cjs +51 -0
- package/lib/chunk-C7AHHS53.cjs.map +1 -0
- package/lib/chunk-CDFM6RPB.cjs +63 -0
- package/lib/chunk-CDFM6RPB.cjs.map +1 -0
- package/lib/chunk-CDNYZAMV.js +51 -0
- package/lib/chunk-CDNYZAMV.js.map +1 -0
- package/lib/chunk-CH4K74JN.cjs +55 -0
- package/lib/chunk-CH4K74JN.cjs.map +1 -0
- package/lib/chunk-CJPAOOG5.cjs +34 -0
- package/lib/chunk-CJPAOOG5.cjs.map +1 -0
- package/lib/chunk-CKSLVNN7.js +45 -0
- package/lib/chunk-CKSLVNN7.js.map +1 -0
- package/lib/chunk-CM4DAVO4.js +40 -0
- package/lib/chunk-CM4DAVO4.js.map +1 -0
- package/lib/chunk-CNMMWVI6.js +48 -0
- package/lib/chunk-CNMMWVI6.js.map +1 -0
- package/lib/chunk-CTTA6S5K.cjs +61 -0
- package/lib/chunk-CTTA6S5K.cjs.map +1 -0
- package/lib/chunk-CUYSBPPJ.js +45 -0
- package/lib/chunk-CUYSBPPJ.js.map +1 -0
- package/lib/chunk-CWD5DM6G.cjs +54 -0
- package/lib/chunk-CWD5DM6G.cjs.map +1 -0
- package/lib/chunk-D3VJO4HP.js +40 -0
- package/lib/chunk-D3VJO4HP.js.map +1 -0
- package/lib/chunk-D3YQS6YA.js +66 -0
- package/lib/chunk-D3YQS6YA.js.map +1 -0
- package/lib/chunk-DBJEPEBT.js +45 -0
- package/lib/chunk-DBJEPEBT.js.map +1 -0
- package/lib/chunk-DBNDWZZW.cjs +98 -0
- package/lib/chunk-DBNDWZZW.cjs.map +1 -0
- package/lib/chunk-DFUIO6OY.js +53 -0
- package/lib/chunk-DFUIO6OY.js.map +1 -0
- package/lib/chunk-DHGTIF6A.cjs +56 -0
- package/lib/chunk-DHGTIF6A.cjs.map +1 -0
- package/lib/chunk-DJRBEANR.js +57 -0
- package/lib/chunk-DJRBEANR.js.map +1 -0
- package/lib/chunk-DNVIOKDM.cjs +55 -0
- package/lib/chunk-DNVIOKDM.cjs.map +1 -0
- package/lib/chunk-DQUGPCYZ.js +37 -0
- package/lib/chunk-DQUGPCYZ.js.map +1 -0
- package/lib/chunk-DUQVVWSA.js +54 -0
- package/lib/chunk-DUQVVWSA.js.map +1 -0
- package/lib/chunk-E2UP2BWG.cjs +39 -0
- package/lib/chunk-E2UP2BWG.cjs.map +1 -0
- package/lib/chunk-E5G3LS6Y.js +53 -0
- package/lib/chunk-E5G3LS6Y.js.map +1 -0
- package/lib/chunk-EEXXJFJO.cjs +47 -0
- package/lib/chunk-EEXXJFJO.cjs.map +1 -0
- package/lib/chunk-EFFMFEBS.cjs +47 -0
- package/lib/chunk-EFFMFEBS.cjs.map +1 -0
- package/lib/chunk-EI2KOTCG.js +37 -0
- package/lib/chunk-EI2KOTCG.js.map +1 -0
- package/lib/chunk-ELTYSKHB.js +68 -0
- package/lib/chunk-ELTYSKHB.js.map +1 -0
- package/lib/chunk-EO7RCCV2.js +45 -0
- package/lib/chunk-EO7RCCV2.js.map +1 -0
- package/lib/chunk-EOV3GRPM.js +27 -0
- package/lib/chunk-EOV3GRPM.js.map +1 -0
- package/lib/chunk-EQ5ASSXQ.cjs +95 -0
- package/lib/chunk-EQ5ASSXQ.cjs.map +1 -0
- package/lib/chunk-EQZMPSGR.js +55 -0
- package/lib/chunk-EQZMPSGR.js.map +1 -0
- package/lib/chunk-ESI7A34I.js +52 -0
- package/lib/chunk-ESI7A34I.js.map +1 -0
- package/lib/chunk-EWFAT7KA.js +283 -0
- package/lib/chunk-EWFAT7KA.js.map +1 -0
- package/lib/chunk-FANJUOI3.cjs +51 -0
- package/lib/chunk-FANJUOI3.cjs.map +1 -0
- package/lib/chunk-FB6DA6TM.cjs +49 -0
- package/lib/chunk-FB6DA6TM.cjs.map +1 -0
- package/lib/chunk-FRVEAP6J.js +73 -0
- package/lib/chunk-FRVEAP6J.js.map +1 -0
- package/lib/chunk-FUQA5XT7.cjs +47 -0
- package/lib/chunk-FUQA5XT7.cjs.map +1 -0
- package/lib/chunk-FVRWASHH.js +32 -0
- package/lib/chunk-FVRWASHH.js.map +1 -0
- package/lib/chunk-FWBO3MH4.js +54 -0
- package/lib/chunk-FWBO3MH4.js.map +1 -0
- package/lib/chunk-FZKENL3J.js +53 -0
- package/lib/chunk-FZKENL3J.js.map +1 -0
- package/lib/chunk-GCY5B73J.cjs +47 -0
- package/lib/chunk-GCY5B73J.cjs.map +1 -0
- package/lib/chunk-GIZE32ZY.js +73 -0
- package/lib/chunk-GIZE32ZY.js.map +1 -0
- package/lib/chunk-GZPZZ262.js +49 -0
- package/lib/chunk-GZPZZ262.js.map +1 -0
- package/lib/chunk-H6K62JGC.cjs +47 -0
- package/lib/chunk-H6K62JGC.cjs.map +1 -0
- package/lib/chunk-H7J2F6QG.cjs +47 -0
- package/lib/chunk-H7J2F6QG.cjs.map +1 -0
- package/lib/chunk-H7KZGQXZ.cjs +71 -0
- package/lib/chunk-H7KZGQXZ.cjs.map +1 -0
- package/lib/chunk-HFKNOYWV.cjs +98 -0
- package/lib/chunk-HFKNOYWV.cjs.map +1 -0
- package/lib/chunk-HLR5KZ6S.js +51 -0
- package/lib/chunk-HLR5KZ6S.js.map +1 -0
- package/lib/chunk-HZYPMFTS.cjs +49 -0
- package/lib/chunk-HZYPMFTS.cjs.map +1 -0
- package/lib/chunk-I2E2P72P.cjs +70 -0
- package/lib/chunk-I2E2P72P.cjs.map +1 -0
- package/lib/chunk-I2FEIMVG.cjs +53 -0
- package/lib/chunk-I2FEIMVG.cjs.map +1 -0
- package/lib/chunk-I2UV76EQ.js +102 -0
- package/lib/chunk-I2UV76EQ.js.map +1 -0
- package/lib/chunk-I64ZCB4W.cjs +55 -0
- package/lib/chunk-I64ZCB4W.cjs.map +1 -0
- package/lib/chunk-IG2P6JOK.js +40 -0
- package/lib/chunk-IG2P6JOK.js.map +1 -0
- package/lib/chunk-IG6UCDED.js +59 -0
- package/lib/chunk-IG6UCDED.js.map +1 -0
- package/lib/chunk-IIUBCLDN.js +47 -0
- package/lib/chunk-IIUBCLDN.js.map +1 -0
- package/lib/chunk-IKU3CD3A.cjs +75 -0
- package/lib/chunk-IKU3CD3A.cjs.map +1 -0
- package/lib/chunk-IL2AXMUE.js +45 -0
- package/lib/chunk-IL2AXMUE.js.map +1 -0
- package/lib/chunk-IL66CF3O.js +105 -0
- package/lib/chunk-IL66CF3O.js.map +1 -0
- package/lib/chunk-ILAFDO4M.js +36 -0
- package/lib/chunk-ILAFDO4M.js.map +1 -0
- package/lib/chunk-INBIEH6H.cjs +44 -0
- package/lib/chunk-INBIEH6H.cjs.map +1 -0
- package/lib/chunk-IOSR7D3F.cjs +47 -0
- package/lib/chunk-IOSR7D3F.cjs.map +1 -0
- package/lib/chunk-IOYGVLML.js +41 -0
- package/lib/chunk-IOYGVLML.js.map +1 -0
- package/lib/chunk-IP5G2VCS.cjs +38 -0
- package/lib/chunk-IP5G2VCS.cjs.map +1 -0
- package/lib/chunk-IWH7CXBG.js +124 -0
- package/lib/chunk-IWH7CXBG.js.map +1 -0
- package/lib/chunk-IYGFGGZR.js +59 -0
- package/lib/chunk-IYGFGGZR.js.map +1 -0
- package/lib/chunk-IYQFTOVG.cjs +39 -0
- package/lib/chunk-IYQFTOVG.cjs.map +1 -0
- package/lib/chunk-J2ULMBWQ.js +89 -0
- package/lib/chunk-J2ULMBWQ.js.map +1 -0
- package/lib/chunk-JARZZUPY.js +93 -0
- package/lib/chunk-JARZZUPY.js.map +1 -0
- package/lib/chunk-JBKJAYRL.cjs +50 -0
- package/lib/chunk-JBKJAYRL.cjs.map +1 -0
- package/lib/chunk-JEOA64GW.cjs +46 -0
- package/lib/chunk-JEOA64GW.cjs.map +1 -0
- package/lib/chunk-JGTC32IT.cjs +69 -0
- package/lib/chunk-JGTC32IT.cjs.map +1 -0
- package/lib/chunk-JHYHQV3E.js +67 -0
- package/lib/chunk-JHYHQV3E.js.map +1 -0
- package/lib/chunk-JIDX6RAT.js +103 -0
- package/lib/chunk-JIDX6RAT.js.map +1 -0
- package/lib/chunk-JIQRQ5TK.cjs +39 -0
- package/lib/chunk-JIQRQ5TK.cjs.map +1 -0
- package/lib/chunk-JMKSIDZI.cjs +51 -0
- package/lib/chunk-JMKSIDZI.cjs.map +1 -0
- package/lib/chunk-JO2S5NYR.js +51 -0
- package/lib/chunk-JO2S5NYR.js.map +1 -0
- package/lib/chunk-JR6TYHVG.js +41 -0
- package/lib/chunk-JR6TYHVG.js.map +1 -0
- package/lib/chunk-JRVZ4JQI.js +32 -0
- package/lib/chunk-JRVZ4JQI.js.map +1 -0
- package/lib/chunk-JSHKAVYF.js +45 -0
- package/lib/chunk-JSHKAVYF.js.map +1 -0
- package/lib/chunk-K3GPCGMJ.cjs +47 -0
- package/lib/chunk-K3GPCGMJ.cjs.map +1 -0
- package/lib/chunk-KC46F2PJ.cjs +47 -0
- package/lib/chunk-KC46F2PJ.cjs.map +1 -0
- package/lib/chunk-KLO6RFMQ.cjs +89 -0
- package/lib/chunk-KLO6RFMQ.cjs.map +1 -0
- package/lib/chunk-KN2KHVGW.js +93 -0
- package/lib/chunk-KN2KHVGW.js.map +1 -0
- package/lib/chunk-KU5M6CZ5.js +48 -0
- package/lib/chunk-KU5M6CZ5.js.map +1 -0
- package/lib/chunk-KUJFQHAN.js +52 -0
- package/lib/chunk-KUJFQHAN.js.map +1 -0
- package/lib/chunk-KZDGS2SG.cjs +70 -0
- package/lib/chunk-KZDGS2SG.cjs.map +1 -0
- package/lib/chunk-L4PEYYXQ.cjs +51 -0
- package/lib/chunk-L4PEYYXQ.cjs.map +1 -0
- package/lib/chunk-L7FT6NDZ.cjs +284 -0
- package/lib/chunk-L7FT6NDZ.cjs.map +1 -0
- package/lib/chunk-LFNJLWV4.cjs +33 -0
- package/lib/chunk-LFNJLWV4.cjs.map +1 -0
- package/lib/chunk-LHESCZ5L.cjs +39 -0
- package/lib/chunk-LHESCZ5L.cjs.map +1 -0
- package/lib/chunk-LOJ7246E.js +44 -0
- package/lib/chunk-LOJ7246E.js.map +1 -0
- package/lib/chunk-LP52UBLY.js +54 -0
- package/lib/chunk-LP52UBLY.js.map +1 -0
- package/lib/chunk-LPP7TYFN.js +45 -0
- package/lib/chunk-LPP7TYFN.js.map +1 -0
- package/lib/chunk-LS7VSSB4.js +49 -0
- package/lib/chunk-LS7VSSB4.js.map +1 -0
- package/lib/chunk-LSISPTNQ.cjs +47 -0
- package/lib/chunk-LSISPTNQ.cjs.map +1 -0
- package/lib/chunk-LZO46NMA.js +60 -0
- package/lib/chunk-LZO46NMA.js.map +1 -0
- package/lib/chunk-M22WZEWB.js +37 -0
- package/lib/chunk-M22WZEWB.js.map +1 -0
- package/lib/chunk-M63P3MQC.cjs +51 -0
- package/lib/chunk-M63P3MQC.cjs.map +1 -0
- package/lib/chunk-M7EUSLT2.js +51 -0
- package/lib/chunk-M7EUSLT2.js.map +1 -0
- package/lib/chunk-M7SVKQ7R.cjs +51 -0
- package/lib/chunk-M7SVKQ7R.cjs.map +1 -0
- package/lib/chunk-MFDKS22G.js +536 -0
- package/lib/chunk-MFDKS22G.js.map +1 -0
- package/lib/chunk-MHNJALUB.cjs +42 -0
- package/lib/chunk-MHNJALUB.cjs.map +1 -0
- package/lib/chunk-MOYV2F4C.js +50 -0
- package/lib/chunk-MOYV2F4C.js.map +1 -0
- package/lib/chunk-MVXKHM42.cjs +47 -0
- package/lib/chunk-MVXKHM42.cjs.map +1 -0
- package/lib/chunk-N2TACGKJ.js +59 -0
- package/lib/chunk-N2TACGKJ.js.map +1 -0
- package/lib/chunk-N5BGBBOP.js +47 -0
- package/lib/chunk-N5BGBBOP.js.map +1 -0
- package/lib/chunk-NGJN2PES.cjs +95 -0
- package/lib/chunk-NGJN2PES.cjs.map +1 -0
- package/lib/chunk-NIFNQI3P.js +49 -0
- package/lib/chunk-NIFNQI3P.js.map +1 -0
- package/lib/chunk-NLL7EH7Y.cjs +42 -0
- package/lib/chunk-NLL7EH7Y.cjs.map +1 -0
- package/lib/chunk-NOGYLNW5.cjs +49 -0
- package/lib/chunk-NOGYLNW5.cjs.map +1 -0
- package/lib/chunk-NPZA6AMN.js +95 -0
- package/lib/chunk-NPZA6AMN.js.map +1 -0
- package/lib/chunk-NSMPVEO4.js +49 -0
- package/lib/chunk-NSMPVEO4.js.map +1 -0
- package/lib/chunk-NURW5BJN.js +37 -0
- package/lib/chunk-NURW5BJN.js.map +1 -0
- package/lib/chunk-NWPF43O7.js +50 -0
- package/lib/chunk-NWPF43O7.js.map +1 -0
- package/lib/chunk-NXSK65YY.cjs +47 -0
- package/lib/chunk-NXSK65YY.cjs.map +1 -0
- package/lib/chunk-OBNGBDLS.js +47 -0
- package/lib/chunk-OBNGBDLS.js.map +1 -0
- package/lib/chunk-OEMRZEYB.js +45 -0
- package/lib/chunk-OEMRZEYB.js.map +1 -0
- package/lib/chunk-ONVG32V5.cjs +63 -0
- package/lib/chunk-ONVG32V5.cjs.map +1 -0
- package/lib/chunk-P2IDAXTS.cjs +62 -0
- package/lib/chunk-P2IDAXTS.cjs.map +1 -0
- package/lib/chunk-P47JG2WA.js +48 -0
- package/lib/chunk-P47JG2WA.js.map +1 -0
- package/lib/chunk-P5EEPVZA.cjs +77 -0
- package/lib/chunk-P5EEPVZA.cjs.map +1 -0
- package/lib/chunk-PB6VKR7P.js +49 -0
- package/lib/chunk-PB6VKR7P.js.map +1 -0
- package/lib/chunk-PBEQTSJS.cjs +47 -0
- package/lib/chunk-PBEQTSJS.cjs.map +1 -0
- package/lib/chunk-PL6A37WA.js +45 -0
- package/lib/chunk-PL6A37WA.js.map +1 -0
- package/lib/chunk-PMV3JPUR.cjs +51 -0
- package/lib/chunk-PMV3JPUR.cjs.map +1 -0
- package/lib/chunk-PQJ2ODW3.cjs +67 -0
- package/lib/chunk-PQJ2ODW3.cjs.map +1 -0
- package/lib/chunk-PUBFRIEQ.cjs +95 -0
- package/lib/chunk-PUBFRIEQ.cjs.map +1 -0
- package/lib/chunk-PULH7AI4.cjs +68 -0
- package/lib/chunk-PULH7AI4.cjs.map +1 -0
- package/lib/chunk-PUTVVRLC.js +69 -0
- package/lib/chunk-PUTVVRLC.js.map +1 -0
- package/lib/chunk-PVBBO54F.js +49 -0
- package/lib/chunk-PVBBO54F.js.map +1 -0
- package/lib/chunk-Q3WUCLM5.js +37 -0
- package/lib/chunk-Q3WUCLM5.js.map +1 -0
- package/lib/chunk-Q5OKMDOT.js +24 -0
- package/lib/chunk-Q5OKMDOT.js.map +1 -0
- package/lib/chunk-QCY5BXWM.cjs +46 -0
- package/lib/chunk-QCY5BXWM.cjs.map +1 -0
- package/lib/chunk-QDZI3I46.cjs +43 -0
- package/lib/chunk-QDZI3I46.cjs.map +1 -0
- package/lib/chunk-QF6DOS2C.js +42 -0
- package/lib/chunk-QF6DOS2C.js.map +1 -0
- package/lib/chunk-QI4UFW5A.js +59 -0
- package/lib/chunk-QI4UFW5A.js.map +1 -0
- package/lib/chunk-QJDQS6PE.cjs +107 -0
- package/lib/chunk-QJDQS6PE.cjs.map +1 -0
- package/lib/chunk-QTBUH3V7.js +61 -0
- package/lib/chunk-QTBUH3V7.js.map +1 -0
- package/lib/chunk-QVJZ2PSX.cjs +51 -0
- package/lib/chunk-QVJZ2PSX.cjs.map +1 -0
- package/lib/chunk-QWJAX42Q.cjs +53 -0
- package/lib/chunk-QWJAX42Q.cjs.map +1 -0
- package/lib/chunk-QXXLGQVN.js +45 -0
- package/lib/chunk-QXXLGQVN.js.map +1 -0
- package/lib/chunk-R3IJVFKR.cjs +53 -0
- package/lib/chunk-R3IJVFKR.cjs.map +1 -0
- package/lib/chunk-RDZZJ22W.cjs +39 -0
- package/lib/chunk-RDZZJ22W.cjs.map +1 -0
- package/lib/chunk-RGGHPNOB.js +49 -0
- package/lib/chunk-RGGHPNOB.js.map +1 -0
- package/lib/chunk-RKD7U6QH.cjs +51 -0
- package/lib/chunk-RKD7U6QH.cjs.map +1 -0
- package/lib/chunk-RMTTRB7R.js +51 -0
- package/lib/chunk-RMTTRB7R.js.map +1 -0
- package/lib/chunk-RNJOCB3T.cjs +42 -0
- package/lib/chunk-RNJOCB3T.cjs.map +1 -0
- package/lib/chunk-RQAOPSUW.cjs +47 -0
- package/lib/chunk-RQAOPSUW.cjs.map +1 -0
- package/lib/chunk-RW4KKMPX.js +93 -0
- package/lib/chunk-RW4KKMPX.js.map +1 -0
- package/lib/chunk-S4UDNFDR.js +44 -0
- package/lib/chunk-S4UDNFDR.js.map +1 -0
- package/lib/chunk-SGXMH2JP.cjs +29 -0
- package/lib/chunk-SGXMH2JP.cjs.map +1 -0
- package/lib/chunk-SIUUVOQC.js +51 -0
- package/lib/chunk-SIUUVOQC.js.map +1 -0
- package/lib/chunk-SO73YTDF.cjs +53 -0
- package/lib/chunk-SO73YTDF.cjs.map +1 -0
- package/lib/chunk-SOA5XGA2.js +51 -0
- package/lib/chunk-SOA5XGA2.js.map +1 -0
- package/lib/chunk-SOOB4KI7.cjs +53 -0
- package/lib/chunk-SOOB4KI7.cjs.map +1 -0
- package/lib/chunk-SSHXUS6Q.js +49 -0
- package/lib/chunk-SSHXUS6Q.js.map +1 -0
- package/lib/chunk-STQYJKBK.cjs +55 -0
- package/lib/chunk-STQYJKBK.cjs.map +1 -0
- package/lib/chunk-SZARKLAL.js +68 -0
- package/lib/chunk-SZARKLAL.js.map +1 -0
- package/lib/chunk-SZM64XMO.cjs +68 -0
- package/lib/chunk-SZM64XMO.cjs.map +1 -0
- package/lib/chunk-T2DEYIX6.cjs +57 -0
- package/lib/chunk-T2DEYIX6.cjs.map +1 -0
- package/lib/chunk-T2YGQC4C.js +61 -0
- package/lib/chunk-T2YGQC4C.js.map +1 -0
- package/lib/chunk-T5OEKW7A.cjs +55 -0
- package/lib/chunk-T5OEKW7A.cjs.map +1 -0
- package/lib/chunk-T6CBFUT6.cjs +51 -0
- package/lib/chunk-T6CBFUT6.cjs.map +1 -0
- package/lib/chunk-TMP744WP.js +45 -0
- package/lib/chunk-TMP744WP.js.map +1 -0
- package/lib/chunk-TMSNRZEW.cjs +50 -0
- package/lib/chunk-TMSNRZEW.cjs.map +1 -0
- package/lib/chunk-TRDTLOUY.js +66 -0
- package/lib/chunk-TRDTLOUY.js.map +1 -0
- package/lib/chunk-TTVTRX76.cjs +93 -0
- package/lib/chunk-TTVTRX76.cjs.map +1 -0
- package/lib/chunk-TUKV2ZIA.cjs +52 -0
- package/lib/chunk-TUKV2ZIA.cjs.map +1 -0
- package/lib/chunk-TVKGUM2Z.js +99 -0
- package/lib/chunk-TVKGUM2Z.js.map +1 -0
- package/lib/chunk-U6G7T5WX.cjs +47 -0
- package/lib/chunk-U6G7T5WX.cjs.map +1 -0
- package/lib/chunk-UFUZNSZI.cjs +61 -0
- package/lib/chunk-UFUZNSZI.cjs.map +1 -0
- package/lib/chunk-UHZABEQZ.js +45 -0
- package/lib/chunk-UHZABEQZ.js.map +1 -0
- package/lib/chunk-UIRXTLC6.cjs +61 -0
- package/lib/chunk-UIRXTLC6.cjs.map +1 -0
- package/lib/chunk-UJ4OEOZA.js +87 -0
- package/lib/chunk-UJ4OEOZA.js.map +1 -0
- package/lib/chunk-UL4JQZUD.cjs +42 -0
- package/lib/chunk-UL4JQZUD.cjs.map +1 -0
- package/lib/chunk-UNPVTCLZ.cjs +47 -0
- package/lib/chunk-UNPVTCLZ.cjs.map +1 -0
- package/lib/chunk-USP4O34Q.js +28 -0
- package/lib/chunk-USP4O34Q.js.map +1 -0
- package/lib/chunk-UV6BETTC.js +48 -0
- package/lib/chunk-UV6BETTC.js.map +1 -0
- package/lib/chunk-UXLDPLOA.js +45 -0
- package/lib/chunk-UXLDPLOA.js.map +1 -0
- package/lib/chunk-V6VQMQQX.js +91 -0
- package/lib/chunk-V6VQMQQX.js.map +1 -0
- package/lib/chunk-V74OBMS3.cjs +95 -0
- package/lib/chunk-V74OBMS3.cjs.map +1 -0
- package/lib/chunk-VA6VDBQS.js +41 -0
- package/lib/chunk-VA6VDBQS.js.map +1 -0
- package/lib/chunk-VB7XUWBF.cjs +47 -0
- package/lib/chunk-VB7XUWBF.cjs.map +1 -0
- package/lib/chunk-VESU72KU.js +93 -0
- package/lib/chunk-VESU72KU.js.map +1 -0
- package/lib/chunk-VEV4DZKI.cjs +51 -0
- package/lib/chunk-VEV4DZKI.cjs.map +1 -0
- package/lib/chunk-VI2NCCWC.js +49 -0
- package/lib/chunk-VI2NCCWC.js.map +1 -0
- package/lib/chunk-VTSEVEKJ.cjs +53 -0
- package/lib/chunk-VTSEVEKJ.cjs.map +1 -0
- package/lib/chunk-VVS2M4QH.js +53 -0
- package/lib/chunk-VVS2M4QH.js.map +1 -0
- package/lib/chunk-VWUS4YUX.js +49 -0
- package/lib/chunk-VWUS4YUX.js.map +1 -0
- package/lib/chunk-VXXJ3CIC.js +49 -0
- package/lib/chunk-VXXJ3CIC.js.map +1 -0
- package/lib/chunk-VZQLDW2G.cjs +95 -0
- package/lib/chunk-VZQLDW2G.cjs.map +1 -0
- package/lib/chunk-WO5PFLID.js +45 -0
- package/lib/chunk-WO5PFLID.js.map +1 -0
- package/lib/chunk-WWUZP5BE.cjs +50 -0
- package/lib/chunk-WWUZP5BE.cjs.map +1 -0
- package/lib/chunk-X55DEMOC.js +45 -0
- package/lib/chunk-X55DEMOC.js.map +1 -0
- package/lib/chunk-X5TTCMYD.cjs +105 -0
- package/lib/chunk-X5TTCMYD.cjs.map +1 -0
- package/lib/chunk-XEAXNFP4.js +49 -0
- package/lib/chunk-XEAXNFP4.js.map +1 -0
- package/lib/chunk-XJLJ77JI.cjs +107 -0
- package/lib/chunk-XJLJ77JI.cjs.map +1 -0
- package/lib/chunk-XK7ZO7EI.js +40 -0
- package/lib/chunk-XK7ZO7EI.js.map +1 -0
- package/lib/chunk-XPPCVN6T.cjs +53 -0
- package/lib/chunk-XPPCVN6T.cjs.map +1 -0
- package/lib/chunk-XREISFN4.cjs +42 -0
- package/lib/chunk-XREISFN4.cjs.map +1 -0
- package/lib/chunk-XTJSTAG5.js +45 -0
- package/lib/chunk-XTJSTAG5.js.map +1 -0
- package/lib/chunk-XTN5Y5IT.cjs +56 -0
- package/lib/chunk-XTN5Y5IT.cjs.map +1 -0
- package/lib/chunk-XU6ZCB7C.cjs +47 -0
- package/lib/chunk-XU6ZCB7C.cjs.map +1 -0
- package/lib/chunk-XWBNNCYU.cjs +97 -0
- package/lib/chunk-XWBNNCYU.cjs.map +1 -0
- package/lib/chunk-XWIVM4OM.cjs +42 -0
- package/lib/chunk-XWIVM4OM.cjs.map +1 -0
- package/lib/chunk-Y4GGZ4EQ.cjs +101 -0
- package/lib/chunk-Y4GGZ4EQ.cjs.map +1 -0
- package/lib/chunk-YBX7UV5N.cjs +91 -0
- package/lib/chunk-YBX7UV5N.cjs.map +1 -0
- package/lib/chunk-YETXFXFO.cjs +550 -0
- package/lib/chunk-YETXFXFO.cjs.map +1 -0
- package/lib/chunk-YFTJA634.js +36 -0
- package/lib/chunk-YFTJA634.js.map +1 -0
- package/lib/chunk-YRCCY6RV.js +276 -0
- package/lib/chunk-YRCCY6RV.js.map +1 -0
- package/lib/chunk-YYAEAKBO.cjs +51 -0
- package/lib/chunk-YYAEAKBO.cjs.map +1 -0
- package/lib/chunk-ZGX3A2OH.cjs +42 -0
- package/lib/chunk-ZGX3A2OH.cjs.map +1 -0
- package/lib/chunk-ZJE7A6E6.cjs +39 -0
- package/lib/chunk-ZJE7A6E6.cjs.map +1 -0
- package/lib/chunk-ZM2HKUHW.cjs +50 -0
- package/lib/chunk-ZM2HKUHW.cjs.map +1 -0
- package/lib/chunk-ZVSNJOYP.js +51 -0
- package/lib/chunk-ZVSNJOYP.js.map +1 -0
- package/lib/commercelayer.cjs +7 -7
- package/lib/commercelayer.d.cts +3 -3
- package/lib/commercelayer.d.ts +3 -3
- package/lib/commercelayer.js +3 -3
- package/lib/enum.cjs +14 -22
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/enum.js +1 -1
- package/lib/index.cjs +270 -275
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +136 -137
- package/lib/jsonapi.cjs +4 -4
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/jsonapi.js +2 -2
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.cjs +7 -7
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resource.js +2 -2
- package/lib/resources/addresses.cjs +4 -4
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +3 -3
- package/lib/resources/adjustments.cjs +4 -4
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +3 -3
- package/lib/resources/adyen_gateways.cjs +4 -4
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +3 -3
- package/lib/resources/adyen_payments.cjs +4 -4
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +3 -3
- package/lib/resources/applications.cjs +4 -4
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +3 -3
- package/lib/resources/attachments.cjs +4 -4
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +3 -3
- package/lib/resources/authorizations.cjs +4 -4
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +3 -3
- package/lib/resources/avalara_accounts.cjs +4 -4
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +3 -3
- package/lib/resources/axerve_gateways.cjs +4 -4
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +3 -3
- package/lib/resources/axerve_payments.cjs +4 -4
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +3 -3
- package/lib/resources/bing_geocoders.cjs +4 -4
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +3 -3
- package/lib/resources/braintree_gateways.cjs +4 -4
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +3 -3
- package/lib/resources/braintree_payments.cjs +4 -4
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +3 -3
- package/lib/resources/bundles.cjs +4 -4
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +3 -3
- package/lib/resources/buy_x_pay_y_promotions.cjs +4 -4
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +3 -3
- package/lib/resources/captures.cjs +4 -4
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +3 -3
- package/lib/resources/carrier_accounts.cjs +4 -4
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +3 -3
- package/lib/resources/checkout_com_gateways.cjs +4 -4
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.js +3 -3
- package/lib/resources/checkout_com_payments.cjs +4 -4
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +3 -3
- package/lib/resources/cleanups.cjs +4 -4
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +3 -3
- package/lib/resources/coupon_codes_promotion_rules.cjs +4 -4
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +3 -3
- package/lib/resources/coupon_recipients.cjs +4 -4
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +3 -3
- package/lib/resources/coupons.cjs +4 -4
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +3 -3
- package/lib/resources/custom_promotion_rules.cjs +4 -4
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.js +3 -3
- package/lib/resources/customer_addresses.cjs +4 -4
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +3 -3
- package/lib/resources/customer_groups.cjs +4 -4
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +3 -3
- package/lib/resources/customer_password_resets.cjs +4 -4
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_password_resets.js +3 -3
- package/lib/resources/customer_payment_sources.cjs +4 -4
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_payment_sources.js +3 -3
- package/lib/resources/customer_subscriptions.cjs +4 -4
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +3 -3
- package/lib/resources/customers.cjs +4 -4
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +3 -3
- package/lib/resources/delivery_lead_times.cjs +4 -4
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/delivery_lead_times.js +3 -3
- package/lib/resources/discount_engine_items.cjs +4 -4
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engine_items.js +3 -3
- package/lib/resources/discount_engines.cjs +4 -4
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +3 -3
- package/lib/resources/easypost_pickups.cjs +4 -4
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +3 -3
- package/lib/resources/event_callbacks.cjs +4 -4
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +3 -3
- package/lib/resources/event_stores.cjs +4 -4
- package/lib/resources/event_stores.d.cts +2 -2
- package/lib/resources/event_stores.d.ts +1 -1
- package/lib/resources/event_stores.js +3 -3
- package/lib/resources/events.cjs +4 -4
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +3 -3
- package/lib/resources/exports.cjs +4 -4
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +3 -3
- package/lib/resources/external_gateways.cjs +4 -4
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +3 -3
- package/lib/resources/external_payments.cjs +4 -4
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +3 -3
- package/lib/resources/external_promotions.cjs +4 -4
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +3 -3
- package/lib/resources/external_tax_calculators.cjs +4 -4
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/external_tax_calculators.js +3 -3
- package/lib/resources/fixed_amount_promotions.cjs +4 -4
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +3 -3
- package/lib/resources/fixed_price_promotions.cjs +4 -4
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +3 -3
- package/lib/resources/flex_promotions.cjs +4 -4
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +3 -3
- package/lib/resources/free_gift_promotions.cjs +4 -4
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +3 -3
- package/lib/resources/free_shipping_promotions.cjs +4 -4
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +3 -3
- package/lib/resources/geocoders.cjs +4 -4
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +3 -3
- package/lib/resources/gift_card_recipients.cjs +4 -4
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_card_recipients.js +3 -3
- package/lib/resources/gift_cards.cjs +4 -4
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +3 -3
- package/lib/resources/google_geocoders.cjs +4 -4
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +3 -3
- package/lib/resources/imports.cjs +4 -4
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +3 -3
- package/lib/resources/in_stock_subscriptions.cjs +4 -4
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.js +3 -3
- package/lib/resources/inventory_models.cjs +4 -4
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +3 -3
- package/lib/resources/inventory_return_locations.cjs +4 -4
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_return_locations.js +3 -3
- package/lib/resources/inventory_stock_locations.cjs +4 -4
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.js +3 -3
- package/lib/resources/klarna_gateways.cjs +4 -4
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +3 -3
- package/lib/resources/klarna_payments.cjs +4 -4
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +3 -3
- package/lib/resources/line_item_options.cjs +4 -4
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_item_options.js +3 -3
- package/lib/resources/line_items.cjs +4 -4
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +3 -3
- package/lib/resources/links.cjs +4 -4
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +3 -3
- package/lib/resources/manual_gateways.cjs +4 -4
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +3 -3
- package/lib/resources/manual_tax_calculators.cjs +4 -4
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.js +3 -3
- package/lib/resources/markets.cjs +4 -4
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +3 -3
- package/lib/resources/merchants.cjs +4 -4
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +3 -3
- package/lib/resources/notifications.cjs +4 -4
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +3 -3
- package/lib/resources/order_amount_promotion_rules.cjs +4 -4
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.js +3 -3
- package/lib/resources/order_copies.cjs +4 -4
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +3 -3
- package/lib/resources/order_factories.cjs +4 -4
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +3 -3
- package/lib/resources/order_subscription_items.cjs +4 -4
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscription_items.js +3 -3
- package/lib/resources/order_subscriptions.cjs +4 -4
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +3 -3
- package/lib/resources/orders.cjs +4 -4
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +3 -3
- package/lib/resources/organizations.cjs +4 -4
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +3 -3
- package/lib/resources/packages.cjs +4 -4
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +3 -3
- package/lib/resources/parcel_line_items.cjs +4 -4
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcel_line_items.js +3 -3
- package/lib/resources/parcels.cjs +4 -4
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +3 -3
- package/lib/resources/payment_gateways.cjs +4 -4
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +3 -3
- package/lib/resources/payment_methods.cjs +4 -4
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +3 -3
- package/lib/resources/payment_options.cjs +4 -4
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +3 -3
- package/lib/resources/paypal_gateways.cjs +4 -4
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +3 -3
- package/lib/resources/paypal_payments.cjs +4 -4
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +3 -3
- package/lib/resources/percentage_discount_promotions.cjs +4 -4
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +3 -3
- package/lib/resources/pickups.cjs +4 -4
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +3 -3
- package/lib/resources/price_frequency_tiers.cjs +4 -4
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.js +3 -3
- package/lib/resources/price_list_schedulers.cjs +4 -4
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.js +3 -3
- package/lib/resources/price_lists.cjs +4 -4
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +3 -3
- package/lib/resources/price_tiers.cjs +4 -4
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +3 -3
- package/lib/resources/price_volume_tiers.cjs +4 -4
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.js +3 -3
- package/lib/resources/prices.cjs +4 -4
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +3 -3
- package/lib/resources/promotion_rules.cjs +4 -4
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +3 -3
- package/lib/resources/promotions.cjs +4 -4
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +3 -3
- package/lib/resources/recurring_order_copies.cjs +4 -4
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/recurring_order_copies.js +3 -3
- package/lib/resources/refunds.cjs +4 -4
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +3 -3
- package/lib/resources/reserved_stocks.cjs +4 -4
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +3 -3
- package/lib/resources/resource_errors.cjs +4 -4
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +3 -3
- package/lib/resources/return_line_items.cjs +4 -4
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/return_line_items.js +3 -3
- package/lib/resources/returns.cjs +4 -4
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +3 -3
- package/lib/resources/satispay_gateways.cjs +4 -4
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +3 -3
- package/lib/resources/satispay_payments.cjs +4 -4
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +3 -3
- package/lib/resources/shipments.cjs +4 -4
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +3 -3
- package/lib/resources/shipping_categories.cjs +4 -4
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +3 -3
- package/lib/resources/shipping_method_tiers.cjs +4 -4
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.js +3 -3
- package/lib/resources/shipping_methods.cjs +4 -4
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +3 -3
- package/lib/resources/shipping_weight_tiers.cjs +4 -4
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.js +3 -3
- package/lib/resources/shipping_zones.cjs +4 -4
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +3 -3
- package/lib/resources/sku_list_items.cjs +4 -4
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_items.js +3 -3
- package/lib/resources/sku_list_promotion_rules.cjs +4 -4
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.js +3 -3
- package/lib/resources/sku_lists.cjs +4 -4
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +3 -3
- package/lib/resources/sku_options.cjs +4 -4
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +3 -3
- package/lib/resources/skus.cjs +4 -4
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +3 -3
- package/lib/resources/stock_items.cjs +4 -4
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +3 -3
- package/lib/resources/stock_line_items.cjs +4 -4
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_line_items.js +3 -3
- package/lib/resources/stock_locations.cjs +4 -4
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +3 -3
- package/lib/resources/stock_reservations.cjs +4 -4
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +3 -3
- package/lib/resources/stock_transfers.cjs +4 -4
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +3 -3
- package/lib/resources/stores.cjs +4 -4
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +3 -3
- package/lib/resources/stripe_gateways.cjs +4 -4
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +3 -3
- package/lib/resources/stripe_payments.cjs +4 -4
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +3 -3
- package/lib/resources/stripe_tax_accounts.cjs +4 -4
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.js +3 -3
- package/lib/resources/subscription_models.cjs +4 -4
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +3 -3
- package/lib/resources/tags.cjs +4 -4
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +3 -3
- package/lib/resources/talon_one_accounts.cjs +4 -4
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +3 -3
- package/lib/resources/tax_calculators.cjs +4 -4
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +3 -3
- package/lib/resources/tax_categories.cjs +4 -4
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +3 -3
- package/lib/resources/tax_rules.cjs +4 -4
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +3 -3
- package/lib/resources/taxjar_accounts.cjs +4 -4
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +3 -3
- package/lib/resources/transactions.cjs +4 -4
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +3 -3
- package/lib/resources/vertex_accounts.cjs +4 -4
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +3 -3
- package/lib/resources/voids.cjs +4 -4
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +3 -3
- package/lib/resources/webhooks.cjs +4 -4
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +3 -3
- package/lib/resources/wire_transfers.cjs +4 -4
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +3 -3
- package/lib/static.cjs +5 -5
- package/lib/static.d.cts +1 -2
- package/lib/static.d.ts +1 -2
- package/lib/static.js +4 -4
- package/package.json +6 -9
- package/lib/api-C0NFQ-CQ.d.ts +0 -18311
- package/lib/api-CG-sKBsP.d.cts +0 -18311
- package/lib/chunk-22YZMDGS.js +0 -73
- package/lib/chunk-22YZMDGS.js.map +0 -1
- package/lib/chunk-24DYX22L.cjs +0 -34
- package/lib/chunk-24DYX22L.cjs.map +0 -1
- package/lib/chunk-25LV6XNE.js +0 -57
- package/lib/chunk-25LV6XNE.js.map +0 -1
- package/lib/chunk-25SYMOHP.js +0 -63
- package/lib/chunk-25SYMOHP.js.map +0 -1
- package/lib/chunk-26IU3VMW.cjs +0 -73
- package/lib/chunk-26IU3VMW.cjs.map +0 -1
- package/lib/chunk-2COD7SFI.js +0 -24
- package/lib/chunk-2COD7SFI.js.map +0 -1
- package/lib/chunk-2TD56UNA.js +0 -97
- package/lib/chunk-2TD56UNA.js.map +0 -1
- package/lib/chunk-2UBHGJAR.cjs +0 -30
- package/lib/chunk-2UBHGJAR.cjs.map +0 -1
- package/lib/chunk-353DTUT5.js +0 -56
- package/lib/chunk-353DTUT5.js.map +0 -1
- package/lib/chunk-3AQSJH4T.js +0 -53
- package/lib/chunk-3AQSJH4T.js.map +0 -1
- package/lib/chunk-3CYUKNAO.js +0 -48
- package/lib/chunk-3CYUKNAO.js.map +0 -1
- package/lib/chunk-3F4JHN42.cjs +0 -72
- package/lib/chunk-3F4JHN42.cjs.map +0 -1
- package/lib/chunk-3KCHHQTI.js +0 -97
- package/lib/chunk-3KCHHQTI.js.map +0 -1
- package/lib/chunk-3QSWUE22.cjs +0 -43
- package/lib/chunk-3QSWUE22.cjs.map +0 -1
- package/lib/chunk-3R5E4QEL.cjs +0 -57
- package/lib/chunk-3R5E4QEL.cjs.map +0 -1
- package/lib/chunk-3XPKZ3WM.js +0 -77
- package/lib/chunk-3XPKZ3WM.js.map +0 -1
- package/lib/chunk-42TXSEGY.js +0 -53
- package/lib/chunk-42TXSEGY.js.map +0 -1
- package/lib/chunk-42VXKVD6.js +0 -53
- package/lib/chunk-42VXKVD6.js.map +0 -1
- package/lib/chunk-4KIM2UAJ.cjs +0 -72
- package/lib/chunk-4KIM2UAJ.cjs.map +0 -1
- package/lib/chunk-4KPMQG57.js +0 -49
- package/lib/chunk-4KPMQG57.js.map +0 -1
- package/lib/chunk-4QMCNTO4.js +0 -44
- package/lib/chunk-4QMCNTO4.js.map +0 -1
- package/lib/chunk-4W5EFFJ5.js +0 -48
- package/lib/chunk-4W5EFFJ5.js.map +0 -1
- package/lib/chunk-4WQKP2HI.js +0 -44
- package/lib/chunk-4WQKP2HI.js.map +0 -1
- package/lib/chunk-4YEJFKWN.cjs +0 -55
- package/lib/chunk-4YEJFKWN.cjs.map +0 -1
- package/lib/chunk-4YS4H4WH.cjs +0 -54
- package/lib/chunk-4YS4H4WH.cjs.map +0 -1
- package/lib/chunk-52L77NN2.js +0 -59
- package/lib/chunk-52L77NN2.js.map +0 -1
- package/lib/chunk-53R4X7QD.js +0 -49
- package/lib/chunk-53R4X7QD.js.map +0 -1
- package/lib/chunk-54765SFP.js +0 -55
- package/lib/chunk-54765SFP.js.map +0 -1
- package/lib/chunk-56DPVYQJ.js +0 -41
- package/lib/chunk-56DPVYQJ.js.map +0 -1
- package/lib/chunk-57EVDZVF.js +0 -63
- package/lib/chunk-57EVDZVF.js.map +0 -1
- package/lib/chunk-5CXQ67TT.js +0 -53
- package/lib/chunk-5CXQ67TT.js.map +0 -1
- package/lib/chunk-5FZ57V3M.cjs +0 -93
- package/lib/chunk-5FZ57V3M.cjs.map +0 -1
- package/lib/chunk-5NX7MHXP.cjs +0 -51
- package/lib/chunk-5NX7MHXP.cjs.map +0 -1
- package/lib/chunk-5QA264ZF.cjs +0 -74
- package/lib/chunk-5QA264ZF.cjs.map +0 -1
- package/lib/chunk-5QFZLLE2.js +0 -37
- package/lib/chunk-5QFZLLE2.js.map +0 -1
- package/lib/chunk-5T44TAQU.cjs +0 -130
- package/lib/chunk-5T44TAQU.cjs.map +0 -1
- package/lib/chunk-5UPTFJAY.cjs +0 -51
- package/lib/chunk-5UPTFJAY.cjs.map +0 -1
- package/lib/chunk-5WLMMRAX.js +0 -93
- package/lib/chunk-5WLMMRAX.js.map +0 -1
- package/lib/chunk-5Z47LT7L.js +0 -53
- package/lib/chunk-5Z47LT7L.js.map +0 -1
- package/lib/chunk-5ZWOLVB6.js +0 -128
- package/lib/chunk-5ZWOLVB6.js.map +0 -1
- package/lib/chunk-65QUR5IL.js +0 -97
- package/lib/chunk-65QUR5IL.js.map +0 -1
- package/lib/chunk-66BQF7RB.cjs +0 -61
- package/lib/chunk-66BQF7RB.cjs.map +0 -1
- package/lib/chunk-6EY5MW3N.js +0 -53
- package/lib/chunk-6EY5MW3N.js.map +0 -1
- package/lib/chunk-6GB4YMFB.js +0 -52
- package/lib/chunk-6GB4YMFB.js.map +0 -1
- package/lib/chunk-6RLGIXTB.cjs +0 -61
- package/lib/chunk-6RLGIXTB.cjs.map +0 -1
- package/lib/chunk-6YX6BZB6.js +0 -55
- package/lib/chunk-6YX6BZB6.js.map +0 -1
- package/lib/chunk-73IEITRE.js +0 -44
- package/lib/chunk-73IEITRE.js.map +0 -1
- package/lib/chunk-73XFO6GL.cjs +0 -51
- package/lib/chunk-73XFO6GL.cjs.map +0 -1
- package/lib/chunk-76RBIF4U.cjs +0 -79
- package/lib/chunk-76RBIF4U.cjs.map +0 -1
- package/lib/chunk-7FKCICOI.js +0 -55
- package/lib/chunk-7FKCICOI.js.map +0 -1
- package/lib/chunk-7N7KBV6L.js +0 -158
- package/lib/chunk-7N7KBV6L.js.map +0 -1
- package/lib/chunk-7UCAVCXA.cjs +0 -99
- package/lib/chunk-7UCAVCXA.cjs.map +0 -1
- package/lib/chunk-7XIPWO7I.cjs +0 -61
- package/lib/chunk-7XIPWO7I.cjs.map +0 -1
- package/lib/chunk-A7PIWL4I.js +0 -58
- package/lib/chunk-A7PIWL4I.js.map +0 -1
- package/lib/chunk-AGJQ5BMW.cjs +0 -107
- package/lib/chunk-AGJQ5BMW.cjs.map +0 -1
- package/lib/chunk-AHJQVBKB.cjs +0 -160
- package/lib/chunk-AHJQVBKB.cjs.map +0 -1
- package/lib/chunk-AJ5YOH5P.cjs +0 -30
- package/lib/chunk-AJ5YOH5P.cjs.map +0 -1
- package/lib/chunk-AQHMSOPU.js +0 -45
- package/lib/chunk-AQHMSOPU.js.map +0 -1
- package/lib/chunk-ASRC3G5N.cjs +0 -42
- package/lib/chunk-ASRC3G5N.cjs.map +0 -1
- package/lib/chunk-B3IWIR5W.cjs +0 -46
- package/lib/chunk-B3IWIR5W.cjs.map +0 -1
- package/lib/chunk-B4ASY4NL.js +0 -45
- package/lib/chunk-B4ASY4NL.js.map +0 -1
- package/lib/chunk-B6IY37XK.js +0 -70
- package/lib/chunk-B6IY37XK.js.map +0 -1
- package/lib/chunk-B6RRN2R4.cjs +0 -51
- package/lib/chunk-B6RRN2R4.cjs.map +0 -1
- package/lib/chunk-BBNWP52Z.cjs +0 -44
- package/lib/chunk-BBNWP52Z.cjs.map +0 -1
- package/lib/chunk-BCFDI5BB.cjs +0 -51
- package/lib/chunk-BCFDI5BB.cjs.map +0 -1
- package/lib/chunk-BE7FUFTL.js +0 -53
- package/lib/chunk-BE7FUFTL.js.map +0 -1
- package/lib/chunk-BGS3XVZ5.js +0 -107
- package/lib/chunk-BGS3XVZ5.js.map +0 -1
- package/lib/chunk-BLZ627KE.js +0 -59
- package/lib/chunk-BLZ627KE.js.map +0 -1
- package/lib/chunk-BOFLUBPB.js +0 -55
- package/lib/chunk-BOFLUBPB.js.map +0 -1
- package/lib/chunk-BUCTRSWS.js +0 -45
- package/lib/chunk-BUCTRSWS.js.map +0 -1
- package/lib/chunk-BUKCNQRD.cjs +0 -43
- package/lib/chunk-BUKCNQRD.cjs.map +0 -1
- package/lib/chunk-C2JKMWGR.cjs +0 -51
- package/lib/chunk-C2JKMWGR.cjs.map +0 -1
- package/lib/chunk-C5ML5FMX.cjs +0 -53
- package/lib/chunk-C5ML5FMX.cjs.map +0 -1
- package/lib/chunk-C77T7SV5.js +0 -49
- package/lib/chunk-C77T7SV5.js.map +0 -1
- package/lib/chunk-C7QY2RS6.js +0 -102
- package/lib/chunk-C7QY2RS6.js.map +0 -1
- package/lib/chunk-CD4WJZWD.js +0 -49
- package/lib/chunk-CD4WJZWD.js.map +0 -1
- package/lib/chunk-CHJOIVWT.cjs +0 -51
- package/lib/chunk-CHJOIVWT.cjs.map +0 -1
- package/lib/chunk-CIEVYLNA.cjs +0 -57
- package/lib/chunk-CIEVYLNA.cjs.map +0 -1
- package/lib/chunk-CRRVMIDJ.js +0 -32
- package/lib/chunk-CRRVMIDJ.js.map +0 -1
- package/lib/chunk-CSRXWHGF.cjs +0 -662
- package/lib/chunk-CSRXWHGF.cjs.map +0 -1
- package/lib/chunk-CXDNL2TL.cjs +0 -57
- package/lib/chunk-CXDNL2TL.cjs.map +0 -1
- package/lib/chunk-CZVJWKHF.cjs +0 -51
- package/lib/chunk-CZVJWKHF.cjs.map +0 -1
- package/lib/chunk-D5KCXRAI.js +0 -57
- package/lib/chunk-D5KCXRAI.js.map +0 -1
- package/lib/chunk-DGYQ3LEP.cjs +0 -34
- package/lib/chunk-DGYQ3LEP.cjs.map +0 -1
- package/lib/chunk-DHT6PN4S.js +0 -72
- package/lib/chunk-DHT6PN4S.js.map +0 -1
- package/lib/chunk-DKKVAVBN.cjs +0 -99
- package/lib/chunk-DKKVAVBN.cjs.map +0 -1
- package/lib/chunk-DKUONF23.cjs +0 -56
- package/lib/chunk-DKUONF23.cjs.map +0 -1
- package/lib/chunk-DZ6EOOOY.js +0 -41
- package/lib/chunk-DZ6EOOOY.js.map +0 -1
- package/lib/chunk-E2GOZ7ZV.js +0 -55
- package/lib/chunk-E2GOZ7ZV.js.map +0 -1
- package/lib/chunk-E4RUQPMF.js +0 -40
- package/lib/chunk-E4RUQPMF.js.map +0 -1
- package/lib/chunk-ED72HDOR.js +0 -31
- package/lib/chunk-ED72HDOR.js.map +0 -1
- package/lib/chunk-EGM5WCK7.js +0 -40
- package/lib/chunk-EGM5WCK7.js.map +0 -1
- package/lib/chunk-EN3E3X22.cjs +0 -46
- package/lib/chunk-EN3E3X22.cjs.map +0 -1
- package/lib/chunk-EOSTJ3GG.cjs +0 -50
- package/lib/chunk-EOSTJ3GG.cjs.map +0 -1
- package/lib/chunk-ESUFQPT7.cjs +0 -71
- package/lib/chunk-ESUFQPT7.cjs.map +0 -1
- package/lib/chunk-ESW2GV47.js +0 -100
- package/lib/chunk-ESW2GV47.js.map +0 -1
- package/lib/chunk-ETO33E5U.js +0 -51
- package/lib/chunk-ETO33E5U.js.map +0 -1
- package/lib/chunk-EV7JAD4X.js +0 -91
- package/lib/chunk-EV7JAD4X.js.map +0 -1
- package/lib/chunk-EY3D7ONH.cjs +0 -109
- package/lib/chunk-EY3D7ONH.cjs.map +0 -1
- package/lib/chunk-EZQHOZI2.js +0 -49
- package/lib/chunk-EZQHOZI2.js.map +0 -1
- package/lib/chunk-F3P63HYI.cjs +0 -65
- package/lib/chunk-F3P63HYI.cjs.map +0 -1
- package/lib/chunk-F6J4CRBZ.cjs +0 -38
- package/lib/chunk-F6J4CRBZ.cjs.map +0 -1
- package/lib/chunk-FBGHKFDZ.js +0 -68
- package/lib/chunk-FBGHKFDZ.js.map +0 -1
- package/lib/chunk-FEKNIG3W.js +0 -99
- package/lib/chunk-FEKNIG3W.js.map +0 -1
- package/lib/chunk-FKAKFPAS.js +0 -61
- package/lib/chunk-FKAKFPAS.js.map +0 -1
- package/lib/chunk-FSXKG62A.js +0 -100
- package/lib/chunk-FSXKG62A.js.map +0 -1
- package/lib/chunk-FT2UGQVD.js +0 -54
- package/lib/chunk-FT2UGQVD.js.map +0 -1
- package/lib/chunk-FUYP7J3H.js +0 -53
- package/lib/chunk-FUYP7J3H.js.map +0 -1
- package/lib/chunk-FWRDLTUT.cjs +0 -53
- package/lib/chunk-FWRDLTUT.cjs.map +0 -1
- package/lib/chunk-FYI5M2XM.cjs +0 -57
- package/lib/chunk-FYI5M2XM.cjs.map +0 -1
- package/lib/chunk-FYKH5NLF.cjs +0 -50
- package/lib/chunk-FYKH5NLF.cjs.map +0 -1
- package/lib/chunk-G2XGWVV4.cjs +0 -81
- package/lib/chunk-G2XGWVV4.cjs.map +0 -1
- package/lib/chunk-GH7OO6KJ.js +0 -27
- package/lib/chunk-GH7OO6KJ.js.map +0 -1
- package/lib/chunk-GNLY3HQ4.js +0 -105
- package/lib/chunk-GNLY3HQ4.js.map +0 -1
- package/lib/chunk-GRKXRJZE.js +0 -65
- package/lib/chunk-GRKXRJZE.js.map +0 -1
- package/lib/chunk-GSHDLOHZ.js +0 -97
- package/lib/chunk-GSHDLOHZ.js.map +0 -1
- package/lib/chunk-GSTAUOVL.js +0 -57
- package/lib/chunk-GSTAUOVL.js.map +0 -1
- package/lib/chunk-H3IBVZVF.js +0 -28
- package/lib/chunk-H3IBVZVF.js.map +0 -1
- package/lib/chunk-H4MPRTXI.js +0 -37
- package/lib/chunk-H4MPRTXI.js.map +0 -1
- package/lib/chunk-H5JOZYXN.cjs +0 -51
- package/lib/chunk-H5JOZYXN.cjs.map +0 -1
- package/lib/chunk-H7ZINK52.cjs +0 -93
- package/lib/chunk-H7ZINK52.cjs.map +0 -1
- package/lib/chunk-HFAQPY4K.cjs +0 -42
- package/lib/chunk-HFAQPY4K.cjs.map +0 -1
- package/lib/chunk-HLL6WIIC.js +0 -91
- package/lib/chunk-HLL6WIIC.js.map +0 -1
- package/lib/chunk-HLPUCTAZ.js +0 -103
- package/lib/chunk-HLPUCTAZ.js.map +0 -1
- package/lib/chunk-HNADBQ2G.cjs +0 -55
- package/lib/chunk-HNADBQ2G.cjs.map +0 -1
- package/lib/chunk-HOKEKQDI.js +0 -49
- package/lib/chunk-HOKEKQDI.js.map +0 -1
- package/lib/chunk-HP2WA7CM.cjs +0 -59
- package/lib/chunk-HP2WA7CM.cjs.map +0 -1
- package/lib/chunk-HQZ3S65M.js +0 -44
- package/lib/chunk-HQZ3S65M.js.map +0 -1
- package/lib/chunk-HR6ZQP3L.cjs +0 -66
- package/lib/chunk-HR6ZQP3L.cjs.map +0 -1
- package/lib/chunk-HR773LV5.cjs +0 -54
- package/lib/chunk-HR773LV5.cjs.map +0 -1
- package/lib/chunk-HTQJYP75.cjs +0 -46
- package/lib/chunk-HTQJYP75.cjs.map +0 -1
- package/lib/chunk-HWEIUKPN.cjs +0 -57
- package/lib/chunk-HWEIUKPN.cjs.map +0 -1
- package/lib/chunk-HWL3MJQJ.cjs +0 -60
- package/lib/chunk-HWL3MJQJ.cjs.map +0 -1
- package/lib/chunk-HZB22SU2.cjs +0 -51
- package/lib/chunk-HZB22SU2.cjs.map +0 -1
- package/lib/chunk-I22GQQSK.js +0 -97
- package/lib/chunk-I22GQQSK.js.map +0 -1
- package/lib/chunk-IESEQGGO.js +0 -65
- package/lib/chunk-IESEQGGO.js.map +0 -1
- package/lib/chunk-IFLQJWJG.cjs +0 -55
- package/lib/chunk-IFLQJWJG.cjs.map +0 -1
- package/lib/chunk-IGK3AET6.cjs +0 -47
- package/lib/chunk-IGK3AET6.cjs.map +0 -1
- package/lib/chunk-IJT6ADCT.cjs +0 -70
- package/lib/chunk-IJT6ADCT.cjs.map +0 -1
- package/lib/chunk-IMZ67YBL.cjs +0 -55
- package/lib/chunk-IMZ67YBL.cjs.map +0 -1
- package/lib/chunk-IR7ERHZU.js +0 -57
- package/lib/chunk-IR7ERHZU.js.map +0 -1
- package/lib/chunk-IWQQN4E4.js +0 -47
- package/lib/chunk-IWQQN4E4.js.map +0 -1
- package/lib/chunk-J3K32YXQ.js +0 -49
- package/lib/chunk-J3K32YXQ.js.map +0 -1
- package/lib/chunk-J5QKU3U7.cjs +0 -54
- package/lib/chunk-J5QKU3U7.cjs.map +0 -1
- package/lib/chunk-JAL5VEJ4.cjs +0 -51
- package/lib/chunk-JAL5VEJ4.cjs.map +0 -1
- package/lib/chunk-JBNN5FLR.cjs +0 -99
- package/lib/chunk-JBNN5FLR.cjs.map +0 -1
- package/lib/chunk-JEFXEO7O.js +0 -49
- package/lib/chunk-JEFXEO7O.js.map +0 -1
- package/lib/chunk-JIAAPIJS.js +0 -69
- package/lib/chunk-JIAAPIJS.js.map +0 -1
- package/lib/chunk-JMGGWZOQ.js +0 -287
- package/lib/chunk-JMGGWZOQ.js.map +0 -1
- package/lib/chunk-JNDUIJGS.js +0 -32
- package/lib/chunk-JNDUIJGS.js.map +0 -1
- package/lib/chunk-JTECSGQK.cjs +0 -95
- package/lib/chunk-JTECSGQK.cjs.map +0 -1
- package/lib/chunk-JU2GYUKV.js +0 -54
- package/lib/chunk-JU2GYUKV.js.map +0 -1
- package/lib/chunk-JW3TKFSF.cjs +0 -99
- package/lib/chunk-JW3TKFSF.cjs.map +0 -1
- package/lib/chunk-JWW6RX2L.cjs +0 -47
- package/lib/chunk-JWW6RX2L.cjs.map +0 -1
- package/lib/chunk-K4FGKWEQ.js +0 -36
- package/lib/chunk-K4FGKWEQ.js.map +0 -1
- package/lib/chunk-KAARRP5O.js +0 -59
- package/lib/chunk-KAARRP5O.js.map +0 -1
- package/lib/chunk-KDCQAUUV.js +0 -48
- package/lib/chunk-KDCQAUUV.js.map +0 -1
- package/lib/chunk-KMPHWFCV.cjs +0 -47
- package/lib/chunk-KMPHWFCV.cjs.map +0 -1
- package/lib/chunk-KRNU2FZC.js +0 -53
- package/lib/chunk-KRNU2FZC.js.map +0 -1
- package/lib/chunk-KUX4X636.js +0 -49
- package/lib/chunk-KUX4X636.js.map +0 -1
- package/lib/chunk-KWIFQC7H.js +0 -52
- package/lib/chunk-KWIFQC7H.js.map +0 -1
- package/lib/chunk-KZNM2CKM.cjs +0 -59
- package/lib/chunk-KZNM2CKM.cjs.map +0 -1
- package/lib/chunk-L27E3EGQ.js +0 -49
- package/lib/chunk-L27E3EGQ.js.map +0 -1
- package/lib/chunk-L2R5G3V5.js +0 -276
- package/lib/chunk-L2R5G3V5.js.map +0 -1
- package/lib/chunk-L655OQHH.cjs +0 -29
- package/lib/chunk-L655OQHH.cjs.map +0 -1
- package/lib/chunk-L6OLNB6W.js +0 -41
- package/lib/chunk-L6OLNB6W.js.map +0 -1
- package/lib/chunk-L7VZ5ST5.cjs +0 -60
- package/lib/chunk-L7VZ5ST5.cjs.map +0 -1
- package/lib/chunk-LBY2RHI4.js +0 -45
- package/lib/chunk-LBY2RHI4.js.map +0 -1
- package/lib/chunk-LLRE4DNW.cjs +0 -55
- package/lib/chunk-LLRE4DNW.cjs.map +0 -1
- package/lib/chunk-MAU4GMOM.js +0 -52
- package/lib/chunk-MAU4GMOM.js.map +0 -1
- package/lib/chunk-MBDEK4FD.cjs +0 -51
- package/lib/chunk-MBDEK4FD.cjs.map +0 -1
- package/lib/chunk-MDT7RJZY.cjs +0 -39
- package/lib/chunk-MDT7RJZY.cjs.map +0 -1
- package/lib/chunk-MF72Q5LL.cjs +0 -39
- package/lib/chunk-MF72Q5LL.cjs.map +0 -1
- package/lib/chunk-MGIOWUKO.cjs +0 -38
- package/lib/chunk-MGIOWUKO.cjs.map +0 -1
- package/lib/chunk-MIBC5G27.js +0 -77
- package/lib/chunk-MIBC5G27.js.map +0 -1
- package/lib/chunk-MVNE63MT.cjs +0 -67
- package/lib/chunk-MVNE63MT.cjs.map +0 -1
- package/lib/chunk-MWDZBQOU.cjs +0 -47
- package/lib/chunk-MWDZBQOU.cjs.map +0 -1
- package/lib/chunk-NAPSK4CV.js +0 -48
- package/lib/chunk-NAPSK4CV.js.map +0 -1
- package/lib/chunk-NEZXHBGE.js +0 -3
- package/lib/chunk-NEZXHBGE.js.map +0 -1
- package/lib/chunk-NKPMXNFW.js +0 -49
- package/lib/chunk-NKPMXNFW.js.map +0 -1
- package/lib/chunk-NKSXB523.js +0 -42
- package/lib/chunk-NKSXB523.js.map +0 -1
- package/lib/chunk-NL65GQHX.cjs +0 -39
- package/lib/chunk-NL65GQHX.cjs.map +0 -1
- package/lib/chunk-NM2TVMKS.cjs +0 -43
- package/lib/chunk-NM2TVMKS.cjs.map +0 -1
- package/lib/chunk-NNRS7BTT.cjs +0 -107
- package/lib/chunk-NNRS7BTT.cjs.map +0 -1
- package/lib/chunk-NUQ5KNXC.cjs +0 -63
- package/lib/chunk-NUQ5KNXC.cjs.map +0 -1
- package/lib/chunk-OIKRKTUG.cjs +0 -50
- package/lib/chunk-OIKRKTUG.cjs.map +0 -1
- package/lib/chunk-OQ3ZPPCE.js +0 -55
- package/lib/chunk-OQ3ZPPCE.js.map +0 -1
- package/lib/chunk-OR5ULL43.js +0 -55
- package/lib/chunk-OR5ULL43.js.map +0 -1
- package/lib/chunk-OSGNFURJ.js +0 -63
- package/lib/chunk-OSGNFURJ.js.map +0 -1
- package/lib/chunk-OSPDLBK7.cjs +0 -57
- package/lib/chunk-OSPDLBK7.cjs.map +0 -1
- package/lib/chunk-OTJ3AG3G.js +0 -45
- package/lib/chunk-OTJ3AG3G.js.map +0 -1
- package/lib/chunk-OUZO3UT3.cjs +0 -65
- package/lib/chunk-OUZO3UT3.cjs.map +0 -1
- package/lib/chunk-OXMHLYDD.js +0 -49
- package/lib/chunk-OXMHLYDD.js.map +0 -1
- package/lib/chunk-P2B3G2TZ.js +0 -44
- package/lib/chunk-P2B3G2TZ.js.map +0 -1
- package/lib/chunk-P3AQZNTG.js +0 -79
- package/lib/chunk-P3AQZNTG.js.map +0 -1
- package/lib/chunk-P3C4DMT6.cjs +0 -57
- package/lib/chunk-P3C4DMT6.cjs.map +0 -1
- package/lib/chunk-P6H53BD7.cjs +0 -102
- package/lib/chunk-P6H53BD7.cjs.map +0 -1
- package/lib/chunk-PAWJTO7I.js +0 -49
- package/lib/chunk-PAWJTO7I.js.map +0 -1
- package/lib/chunk-PD4I73FB.cjs +0 -105
- package/lib/chunk-PD4I73FB.cjs.map +0 -1
- package/lib/chunk-PGXMLN7A.js +0 -49
- package/lib/chunk-PGXMLN7A.js.map +0 -1
- package/lib/chunk-PUX7CAAV.js +0 -53
- package/lib/chunk-PUX7CAAV.js.map +0 -1
- package/lib/chunk-QE7S4OUZ.cjs +0 -51
- package/lib/chunk-QE7S4OUZ.cjs.map +0 -1
- package/lib/chunk-QKCTP2RD.cjs +0 -55
- package/lib/chunk-QKCTP2RD.cjs.map +0 -1
- package/lib/chunk-QNFZBJFQ.cjs +0 -58
- package/lib/chunk-QNFZBJFQ.cjs.map +0 -1
- package/lib/chunk-QU4NPZQC.cjs +0 -56
- package/lib/chunk-QU4NPZQC.cjs.map +0 -1
- package/lib/chunk-QVJTWTUN.cjs +0 -54
- package/lib/chunk-QVJTWTUN.cjs.map +0 -1
- package/lib/chunk-R3PNGGDR.cjs +0 -55
- package/lib/chunk-R3PNGGDR.cjs.map +0 -1
- package/lib/chunk-R7PR3V6Z.cjs +0 -51
- package/lib/chunk-R7PR3V6Z.cjs.map +0 -1
- package/lib/chunk-RH363QI7.cjs +0 -99
- package/lib/chunk-RH363QI7.cjs.map +0 -1
- package/lib/chunk-RLZGD4WS.cjs +0 -57
- package/lib/chunk-RLZGD4WS.cjs.map +0 -1
- package/lib/chunk-RNCWBCHU.js +0 -55
- package/lib/chunk-RNCWBCHU.js.map +0 -1
- package/lib/chunk-SEY2W62A.js +0 -53
- package/lib/chunk-SEY2W62A.js.map +0 -1
- package/lib/chunk-SGJTWE5I.js +0 -40
- package/lib/chunk-SGJTWE5I.js.map +0 -1
- package/lib/chunk-SK7SIING.cjs +0 -42
- package/lib/chunk-SK7SIING.cjs.map +0 -1
- package/lib/chunk-SNHW3YC5.cjs +0 -55
- package/lib/chunk-SNHW3YC5.cjs.map +0 -1
- package/lib/chunk-SRYEFARJ.cjs +0 -4
- package/lib/chunk-SRYEFARJ.cjs.map +0 -1
- package/lib/chunk-SXCTTGYT.cjs +0 -50
- package/lib/chunk-SXCTTGYT.cjs.map +0 -1
- package/lib/chunk-SXQSMTHR.js +0 -58
- package/lib/chunk-SXQSMTHR.js.map +0 -1
- package/lib/chunk-SZYWVDPJ.cjs +0 -42
- package/lib/chunk-SZYWVDPJ.cjs.map +0 -1
- package/lib/chunk-T4SW2CZX.cjs +0 -67
- package/lib/chunk-T4SW2CZX.cjs.map +0 -1
- package/lib/chunk-TE54DOJ6.cjs +0 -75
- package/lib/chunk-TE54DOJ6.cjs.map +0 -1
- package/lib/chunk-TJGZYDVV.js +0 -58
- package/lib/chunk-TJGZYDVV.js.map +0 -1
- package/lib/chunk-U43UPLTK.cjs +0 -42
- package/lib/chunk-U43UPLTK.cjs.map +0 -1
- package/lib/chunk-U5ZUHRP7.cjs +0 -65
- package/lib/chunk-U5ZUHRP7.cjs.map +0 -1
- package/lib/chunk-U7NVUYAO.js +0 -71
- package/lib/chunk-U7NVUYAO.js.map +0 -1
- package/lib/chunk-UBH2EC5P.cjs +0 -284
- package/lib/chunk-UBH2EC5P.cjs.map +0 -1
- package/lib/chunk-UMIZNUUK.js +0 -45
- package/lib/chunk-UMIZNUUK.js.map +0 -1
- package/lib/chunk-UR35VE5O.js +0 -53
- package/lib/chunk-UR35VE5O.js.map +0 -1
- package/lib/chunk-UTJX7SU6.cjs +0 -55
- package/lib/chunk-UTJX7SU6.cjs.map +0 -1
- package/lib/chunk-V2JFGTP4.cjs +0 -33
- package/lib/chunk-V2JFGTP4.cjs.map +0 -1
- package/lib/chunk-V3VI5SLU.cjs +0 -58
- package/lib/chunk-V3VI5SLU.cjs.map +0 -1
- package/lib/chunk-V57VEB52.cjs +0 -51
- package/lib/chunk-V57VEB52.cjs.map +0 -1
- package/lib/chunk-VCJOH3IE.js +0 -63
- package/lib/chunk-VCJOH3IE.js.map +0 -1
- package/lib/chunk-W5HJOZUZ.js +0 -55
- package/lib/chunk-W5HJOZUZ.js.map +0 -1
- package/lib/chunk-W6D7ACVK.cjs +0 -26
- package/lib/chunk-W6D7ACVK.cjs.map +0 -1
- package/lib/chunk-W76GDFLA.cjs +0 -49
- package/lib/chunk-W76GDFLA.cjs.map +0 -1
- package/lib/chunk-W7A5TBOT.js +0 -37
- package/lib/chunk-W7A5TBOT.js.map +0 -1
- package/lib/chunk-W7QZ4IET.js +0 -55
- package/lib/chunk-W7QZ4IET.js.map +0 -1
- package/lib/chunk-WAXSMT74.js +0 -49
- package/lib/chunk-WAXSMT74.js.map +0 -1
- package/lib/chunk-WENVZ7YQ.cjs +0 -60
- package/lib/chunk-WENVZ7YQ.cjs.map +0 -1
- package/lib/chunk-WN4NEQG3.cjs +0 -47
- package/lib/chunk-WN4NEQG3.cjs.map +0 -1
- package/lib/chunk-WPMZGCSL.js +0 -49
- package/lib/chunk-WPMZGCSL.js.map +0 -1
- package/lib/chunk-WVXUXB6M.cjs +0 -51
- package/lib/chunk-WVXUXB6M.cjs.map +0 -1
- package/lib/chunk-WYSCB65K.cjs +0 -65
- package/lib/chunk-WYSCB65K.cjs.map +0 -1
- package/lib/chunk-WZKB5BTI.cjs +0 -57
- package/lib/chunk-WZKB5BTI.cjs.map +0 -1
- package/lib/chunk-X3FOQEIP.cjs +0 -57
- package/lib/chunk-X3FOQEIP.cjs.map +0 -1
- package/lib/chunk-X435FPBT.js +0 -70
- package/lib/chunk-X435FPBT.js.map +0 -1
- package/lib/chunk-XAWZYCIT.cjs +0 -51
- package/lib/chunk-XAWZYCIT.cjs.map +0 -1
- package/lib/chunk-XFOVGIFM.cjs +0 -59
- package/lib/chunk-XFOVGIFM.cjs.map +0 -1
- package/lib/chunk-XGQYAM2O.cjs +0 -102
- package/lib/chunk-XGQYAM2O.cjs.map +0 -1
- package/lib/chunk-XHRLLOTH.cjs +0 -46
- package/lib/chunk-XHRLLOTH.cjs.map +0 -1
- package/lib/chunk-XLHGFYJD.js +0 -40
- package/lib/chunk-XLHGFYJD.js.map +0 -1
- package/lib/chunk-XLSIK3Q5.js +0 -40
- package/lib/chunk-XLSIK3Q5.js.map +0 -1
- package/lib/chunk-XMOZVHO7.js +0 -56
- package/lib/chunk-XMOZVHO7.js.map +0 -1
- package/lib/chunk-YDYPUEOW.js +0 -52
- package/lib/chunk-YDYPUEOW.js.map +0 -1
- package/lib/chunk-YF5IJQZK.cjs +0 -55
- package/lib/chunk-YF5IJQZK.cjs.map +0 -1
- package/lib/chunk-YI3IDZIR.js +0 -646
- package/lib/chunk-YI3IDZIR.js.map +0 -1
- package/lib/chunk-YNFTOIKI.cjs +0 -47
- package/lib/chunk-YNFTOIKI.cjs.map +0 -1
- package/lib/chunk-YOAULZCB.js +0 -28
- package/lib/chunk-YOAULZCB.js.map +0 -1
- package/lib/chunk-YOH56Z73.js +0 -64
- package/lib/chunk-YOH56Z73.js.map +0 -1
- package/lib/chunk-YYFNNQAF.js +0 -49
- package/lib/chunk-YYFNNQAF.js.map +0 -1
- package/lib/chunk-Z7FWE3KQ.cjs +0 -55
- package/lib/chunk-Z7FWE3KQ.cjs.map +0 -1
- package/lib/chunk-ZA4UM7JC.js +0 -36
- package/lib/chunk-ZA4UM7JC.js.map +0 -1
- package/lib/chunk-ZBKA7LEU.js +0 -51
- package/lib/chunk-ZBKA7LEU.js.map +0 -1
- package/lib/chunk-ZDO4C624.cjs +0 -79
- package/lib/chunk-ZDO4C624.cjs.map +0 -1
- package/lib/chunk-ZDPMTK4O.js +0 -49
- package/lib/chunk-ZDPMTK4O.js.map +0 -1
- package/lib/chunk-ZJKC6474.cjs +0 -289
- package/lib/chunk-ZJKC6474.cjs.map +0 -1
- package/lib/chunk-ZKTVCW5B.cjs +0 -51
- package/lib/chunk-ZKTVCW5B.cjs.map +0 -1
- package/lib/chunk-ZKZLRD43.cjs +0 -46
- package/lib/chunk-ZKZLRD43.cjs.map +0 -1
- package/lib/chunk-ZNRKFQBN.cjs +0 -59
- package/lib/chunk-ZNRKFQBN.cjs.map +0 -1
- package/lib/chunk-ZU3CNZKE.cjs +0 -51
- package/lib/chunk-ZU3CNZKE.cjs.map +0 -1
- package/lib/chunk-ZUURLADK.cjs +0 -55
- package/lib/chunk-ZUURLADK.cjs.map +0 -1
- package/lib/chunk-ZWTMB75R.js +0 -49
- package/lib/chunk-ZWTMB75R.js.map +0 -1
- package/lib/chunk-ZYU4XA7Z.cjs +0 -101
- package/lib/chunk-ZYU4XA7Z.cjs.map +0 -1
- package/lib/resources/versions.cjs +0 -20
- package/lib/resources/versions.cjs.map +0 -1
- package/lib/resources/versions.d.cts +0 -7
- package/lib/resources/versions.d.ts +0 -4
- package/lib/resources/versions.js +0 -12
- package/lib/resources/versions.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/line_item_options.ts"],"names":["ApiResource"],"mappings":";;;;;AAkKA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwBA,6BAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,mBAAA;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,gBAAA,CAAgB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAChI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAgC,MAAA,EAA8C,OAAA,EAAoD;AAC9I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,gBAAA,CAAgB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAChI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,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,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,yBAAA,GAAQ","file":"chunk-CTTA6S5K.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { LineItem, LineItemType } from './line_items'\nimport type { SkuOption, SkuOptionType } from './sku_options'\nimport type { Tag, TagType } from './tags'\n\n\ntype LineItemOptionType = 'line_item_options'\ntype LineItemOptionRel = ResourceRel & { type: LineItemOptionType }\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type LineItemOptionSort = Pick<LineItemOption, 'id' | 'name' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'delay_hours'> & ResourceSort\n// export type LineItemOptionFilter = Pick<LineItemOption, 'id' | 'name' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceFilter\n\n\ninterface LineItemOption extends Resource {\n\t\n\treadonly type: LineItemOptionType\n\n\t/** \n\t * The name of the line item option. When blank, it gets populated with the name of the associated SKU option.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The line item option's quantity.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels.\n\t * @example ```990```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the line item option, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```9.9```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the line item option, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€9,90\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * The unit amount x quantity, in cents.\n\t * @example ```1880```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * The unit amount x quantity, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```18.8```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * The unit amount x quantity, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€18,80\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The shipping delay that the customer can expect when adding this option (hours). Inherited from the associated SKU option.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The shipping delay that the customer can expect when adding this option (days, rounded).\n\t * @example ```2```\n\t */\n\tdelay_days?: number | null\n\t/** \n\t * Set of key-value pairs that represent the selected options.\n\t * @example ```{\"embossing_text\":\"Happy Birthday!\"}```\n\t */\n\toptions: Record<string, any>\n\n\tline_item?: LineItem | null\n\tsku_option?: SkuOption | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface LineItemOptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The name of the line item option. When blank, it gets populated with the name of the associated SKU option.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The line item option's quantity.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels.\n\t * @example ```990```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * Set of key-value pairs that represent the selected options.\n\t * @example ```{\"embossing_text\":\"Happy Birthday!\"}```\n\t */\n\toptions: Record<string, any>\n\n\tline_item: LineItemRel\n\tsku_option: SkuOptionRel\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface LineItemOptionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The name of the line item option. When blank, it gets populated with the name of the associated SKU option.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The line item option's quantity.\n\t * @example ```2```\n\t */\n\tquantity?: number | null\n\t/** \n\t * The unit amount of the line item option, in cents. When you add a line item option to an order, this is automatically populated from associated SKU option's price. Cannot be passed by sales channels.\n\t * @example ```990```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * Set of key-value pairs that represent the selected options.\n\t * @example ```{\"embossing_text\":\"Happy Birthday!\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tsku_option?: SkuOptionRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass LineItemOptions extends ApiResource<LineItemOption> {\n\n\tstatic readonly TYPE: LineItemOptionType = 'line_item_options' as const\n\n\tasync create(resource: LineItemOptionCreate, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.create<LineItemOptionCreate, LineItemOption>({ ...resource, type: LineItemOptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LineItemOptionUpdate, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.update<LineItemOptionUpdate, LineItemOption>({ ...resource, type: LineItemOptions.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: LineItemOptions.TYPE } : id, options)\n\t}\n\n\tasync line_item(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `line_item_options/${_lineItemOptionId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync sku_option(lineItemOptionId: string | LineItemOption, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<SkuOption>({ type: 'sku_options' }, `line_item_options/${_lineItemOptionId}/sku_option`, params, options) as unknown as SkuOption\n\t}\n\n\tasync events(lineItemOptionId: string | LineItemOption, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `line_item_options/${_lineItemOptionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(lineItemOptionId: string | LineItemOption, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `line_item_options/${_lineItemOptionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(lineItemOptionId: string | LineItemOption, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _lineItemOptionId = (lineItemOptionId as LineItemOption).id || lineItemOptionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `line_item_options/${_lineItemOptionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | LineItemOption, triggerValue: string, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.update<LineItemOptionUpdate, LineItemOption>({ id: (typeof id === 'string')? id: id.id, type: LineItemOptions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | LineItemOption, triggerValue: string, params?: QueryParamsRetrieve<LineItemOption>, options?: ResourcesConfig): Promise<LineItemOption> {\n\t\treturn this.resources.update<LineItemOptionUpdate, LineItemOption>({ id: (typeof id === 'string')? id: id.id, type: LineItemOptions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisLineItemOption(resource: any): resource is LineItemOption {\n\t\treturn resource.type && (resource.type === LineItemOptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LineItemOptionRel {\n\t\treturn super.relationshipOneToOne<LineItemOptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LineItemOptionRel[] {\n\t\treturn super.relationshipOneToMany<LineItemOptionRel>(...ids)\n\t}\n\n\n\ttype(): LineItemOptionType {\n\t\treturn LineItemOptions.TYPE\n\t}\n\n}\n\n\nconst instance = new LineItemOptions()\nexport default instance\n\nexport type { LineItemOption, LineItemOptionCreate, LineItemOptions, LineItemOptionType, LineItemOptionUpdate }\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-YRCCY6RV.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/sku_list_promotion_rules.ts
|
|
4
|
+
var SkuListPromotionRules = class _SkuListPromotionRules extends ApiResource {
|
|
5
|
+
static TYPE = "sku_list_promotion_rules";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _SkuListPromotionRules.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _SkuListPromotionRules.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _SkuListPromotionRules.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async event_stores(skuListPromotionRuleId, params, options) {
|
|
16
|
+
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
|
17
|
+
return this.resources.fetch({ type: "event_stores" }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/event_stores`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async sku_list(skuListPromotionRuleId, params, options) {
|
|
20
|
+
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
|
21
|
+
return this.resources.fetch({ type: "sku_lists" }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/sku_list`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async skus(skuListPromotionRuleId, params, options) {
|
|
24
|
+
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
|
25
|
+
return this.resources.fetch({ type: "skus" }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/skus`, params, options);
|
|
26
|
+
}
|
|
27
|
+
isSkuListPromotionRule(resource) {
|
|
28
|
+
return resource.type && resource.type === _SkuListPromotionRules.TYPE;
|
|
29
|
+
}
|
|
30
|
+
relationship(id) {
|
|
31
|
+
return super.relationshipOneToOne(id);
|
|
32
|
+
}
|
|
33
|
+
relationshipToMany(...ids) {
|
|
34
|
+
return super.relationshipOneToMany(...ids);
|
|
35
|
+
}
|
|
36
|
+
type() {
|
|
37
|
+
return _SkuListPromotionRules.TYPE;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var instance = new SkuListPromotionRules();
|
|
41
|
+
var sku_list_promotion_rules_default = instance;
|
|
42
|
+
|
|
43
|
+
export { sku_list_promotion_rules_default };
|
|
44
|
+
//# sourceMappingURL=chunk-CUYSBPPJ.js.map
|
|
45
|
+
//# sourceMappingURL=chunk-CUYSBPPJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/sku_list_promotion_rules.ts"],"names":[],"mappings":";;;AA8FA,IAAM,qBAAA,GAAN,MAAM,sBAAA,SAA8B,WAAA,CAAkC;AAAA,EAErE,OAAgB,IAAA,GAAiC,0BAAA;AAAA,EAEjD,MAAM,MAAA,CAAO,QAAA,EAAsC,MAAA,EAAoD,OAAA,EAA0D;AAChK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,sBAAA,CAAsB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClJ;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAsC,MAAA,EAAoD,OAAA,EAA0D;AAChK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,sBAAA,CAAsB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClJ;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,sBAAA,CAAsB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC7G;AAAA,EAEA,MAAM,YAAA,CAAa,sBAAA,EAAuD,MAAA,EAAsC,OAAA,EAA8D;AAC7K,IAAA,MAAM,u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,sBAAA,CAAsB,IAAA;AAAA,EAC9B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,qBAAA,EAAsB;AAC3C,IAAO,gCAAA,GAAQ","file":"chunk-CUYSBPPJ.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 { 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'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\n\n\ntype SkuListPromotionRuleType = 'sku_list_promotion_rules'\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\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 SkuListRel = ResourceRel & { type: SkuListType }\n\n\nexport type SkuListPromotionRuleSort = Pick<SkuListPromotionRule, 'id'> & ResourceSort\n// export type SkuListPromotionRuleFilter = Pick<SkuListPromotionRule, 'id'> & ResourceFilter\n\n\ninterface SkuListPromotionRule extends Resource {\n\t\n\treadonly type: SkuListPromotionRuleType\n\n\t/** \n\t * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order.\n\t * @example ```true```\n\t */\n\tall_skus?: boolean | null\n\t/** \n\t * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured.\n\t * @example ```3```\n\t */\n\tmin_quantity?: number | null\n\n\tpromotion?: PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tevent_stores?: EventStore[] | null\n\tsku_list?: SkuList | null\n\tskus?: Sku[] | null\n\n}\n\n\ninterface SkuListPromotionRuleCreate extends ResourceCreate {\n\t\n\t/** \n\t * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order.\n\t * @example ```true```\n\t */\n\tall_skus?: boolean | null\n\t/** \n\t * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured.\n\t * @example ```3```\n\t */\n\tmin_quantity?: number | null\n\n\tpromotion: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel\n\tsku_list?: SkuListRel | null\n\n}\n\n\ninterface SkuListPromotionRuleUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order.\n\t * @example ```true```\n\t */\n\tall_skus?: boolean | null\n\t/** \n\t * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured.\n\t * @example ```3```\n\t */\n\tmin_quantity?: number | null\n\n\tpromotion?: PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\tsku_list?: SkuListRel | null\n\n}\n\n\nclass SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {\n\n\tstatic readonly TYPE: SkuListPromotionRuleType = 'sku_list_promotion_rules' as const\n\n\tasync create(resource: SkuListPromotionRuleCreate, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\treturn this.resources.create<SkuListPromotionRuleCreate, SkuListPromotionRule>({ ...resource, type: SkuListPromotionRules.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SkuListPromotionRuleUpdate, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\treturn this.resources.update<SkuListPromotionRuleUpdate, SkuListPromotionRule>({ ...resource, type: SkuListPromotionRules.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: SkuListPromotionRules.TYPE } : id, options)\n\t}\n\n\tasync event_stores(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _skuListPromotionRuleId = (skuListPromotionRuleId as SkuListPromotionRule).id || skuListPromotionRuleId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync sku_list(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _skuListPromotionRuleId = (skuListPromotionRuleId as SkuListPromotionRule).id || skuListPromotionRuleId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync skus(skuListPromotionRuleId: string | SkuListPromotionRule, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _skuListPromotionRuleId = (skuListPromotionRuleId as SkuListPromotionRule).id || skuListPromotionRuleId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\n\tisSkuListPromotionRule(resource: any): resource is SkuListPromotionRule {\n\t\treturn resource.type && (resource.type === SkuListPromotionRules.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SkuListPromotionRuleRel {\n\t\treturn super.relationshipOneToOne<SkuListPromotionRuleRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SkuListPromotionRuleRel[] {\n\t\treturn super.relationshipOneToMany<SkuListPromotionRuleRel>(...ids)\n\t}\n\n\n\ttype(): SkuListPromotionRuleType {\n\t\treturn SkuListPromotionRules.TYPE\n\t}\n\n}\n\n\nconst instance = new SkuListPromotionRules()\nexport default instance\n\nexport type { SkuListPromotionRule, SkuListPromotionRuleCreate, SkuListPromotionRules, SkuListPromotionRuleType, SkuListPromotionRuleUpdate }\n"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/external_tax_calculators.ts
|
|
6
|
+
var ExternalTaxCalculators = class _ExternalTaxCalculators extends chunkL7FT6NDZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "external_tax_calculators";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _ExternalTaxCalculators.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _ExternalTaxCalculators.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalTaxCalculators.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async markets(externalTaxCalculatorId, params, options) {
|
|
18
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
19
|
+
return this.resources.fetch({ type: "markets" }, `external_tax_calculators/${_externalTaxCalculatorId}/markets`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async attachments(externalTaxCalculatorId, params, options) {
|
|
22
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
23
|
+
return this.resources.fetch({ type: "attachments" }, `external_tax_calculators/${_externalTaxCalculatorId}/attachments`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async events(externalTaxCalculatorId, params, options) {
|
|
26
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
27
|
+
return this.resources.fetch({ type: "events" }, `external_tax_calculators/${_externalTaxCalculatorId}/events`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async event_stores(externalTaxCalculatorId, params, options) {
|
|
30
|
+
const _externalTaxCalculatorId = externalTaxCalculatorId.id || externalTaxCalculatorId;
|
|
31
|
+
return this.resources.fetch({ type: "event_stores" }, `external_tax_calculators/${_externalTaxCalculatorId}/event_stores`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async _reset_circuit(id, params, options) {
|
|
34
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalTaxCalculators.TYPE, _reset_circuit: true }, params, options);
|
|
35
|
+
}
|
|
36
|
+
isExternalTaxCalculator(resource) {
|
|
37
|
+
return resource.type && resource.type === _ExternalTaxCalculators.TYPE;
|
|
38
|
+
}
|
|
39
|
+
relationship(id) {
|
|
40
|
+
return super.relationshipOneToOne(id);
|
|
41
|
+
}
|
|
42
|
+
relationshipToMany(...ids) {
|
|
43
|
+
return super.relationshipOneToMany(...ids);
|
|
44
|
+
}
|
|
45
|
+
type() {
|
|
46
|
+
return _ExternalTaxCalculators.TYPE;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
var instance = new ExternalTaxCalculators();
|
|
50
|
+
var external_tax_calculators_default = instance;
|
|
51
|
+
|
|
52
|
+
exports.external_tax_calculators_default = external_tax_calculators_default;
|
|
53
|
+
//# sourceMappingURL=chunk-CWD5DM6G.cjs.map
|
|
54
|
+
//# sourceMappingURL=chunk-CWD5DM6G.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/external_tax_calculators.ts"],"names":["ApiResource"],"mappings":";;;;;AA2GA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+BA,6BAAA,CAAmC;AAAA,EAEvE,OAAgB,IAAA,GAAkC,0BAAA;AAAA,EAElD,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAA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AA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,yBAAA,EAA4B,wBAAwB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvJ;AAAA,EAEA,MAAM,cAAA,CAAe,EAAA,EAAoC,MAAA,EAAqD,OAAA,EAA2D;AACxK,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,uBAAA,CAAuB,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvM;AAAA,EAGA,wBAAwB,QAAA,EAAkD;AACzE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAGA,aAAa,EAAA,EAA0D;AACtE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAGA,IAAA,GAAkC;AACjC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-CWD5DM6G.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 { Market } from './markets'\n\n\ntype ExternalTaxCalculatorType = 'external_tax_calculators'\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\n\n\nexport type ExternalTaxCalculatorSort = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalTaxCalculatorFilter = Pick<ExternalTaxCalculator, 'id' | 'name' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalTaxCalculator extends Resource {\n\t\n\treadonly type: ExternalTaxCalculatorType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ExternalTaxCalculatorCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\ninterface ExternalTaxCalculatorUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The URL to the service that will compute the taxes.\n\t * @example ```\"https://external_calculator.yourbrand.com\"```\n\t */\n\ttax_calculator_url?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\nclass ExternalTaxCalculators extends ApiResource<ExternalTaxCalculator> {\n\n\tstatic readonly TYPE: ExternalTaxCalculatorType = 'external_tax_calculators' as const\n\n\tasync create(resource: ExternalTaxCalculatorCreate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.create<ExternalTaxCalculatorCreate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalTaxCalculatorUpdate, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ ...resource, type: ExternalTaxCalculators.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: ExternalTaxCalculators.TYPE } : id, options)\n\t}\n\n\tasync markets(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_tax_calculators/${_externalTaxCalculatorId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_tax_calculators/${_externalTaxCalculatorId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_tax_calculators/${_externalTaxCalculatorId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(externalTaxCalculatorId: string | ExternalTaxCalculator, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalTaxCalculatorId = (externalTaxCalculatorId as ExternalTaxCalculator).id || externalTaxCalculatorId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_tax_calculators/${_externalTaxCalculatorId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _reset_circuit(id: string | ExternalTaxCalculator, params?: QueryParamsRetrieve<ExternalTaxCalculator>, options?: ResourcesConfig): Promise<ExternalTaxCalculator> {\n\t\treturn this.resources.update<ExternalTaxCalculatorUpdate, ExternalTaxCalculator>({ id: (typeof id === 'string')? id: id.id, type: ExternalTaxCalculators.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalTaxCalculator(resource: any): resource is ExternalTaxCalculator {\n\t\treturn resource.type && (resource.type === ExternalTaxCalculators.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalTaxCalculatorRel {\n\t\treturn super.relationshipOneToOne<ExternalTaxCalculatorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalTaxCalculatorRel[] {\n\t\treturn super.relationshipOneToMany<ExternalTaxCalculatorRel>(...ids)\n\t}\n\n\n\ttype(): ExternalTaxCalculatorType {\n\t\treturn ExternalTaxCalculators.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalTaxCalculators()\nexport default instance\n\nexport type { ExternalTaxCalculator, ExternalTaxCalculatorCreate, ExternalTaxCalculators, ExternalTaxCalculatorType, ExternalTaxCalculatorUpdate }\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-YRCCY6RV.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/geocoders.ts
|
|
4
|
+
var Geocoders = class _Geocoders extends ApiResource {
|
|
5
|
+
static TYPE = "geocoders";
|
|
6
|
+
async markets(geocoderId, params, options) {
|
|
7
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
8
|
+
return this.resources.fetch({ type: "markets" }, `geocoders/${_geocoderId}/markets`, params, options);
|
|
9
|
+
}
|
|
10
|
+
async addresses(geocoderId, params, options) {
|
|
11
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
12
|
+
return this.resources.fetch({ type: "addresses" }, `geocoders/${_geocoderId}/addresses`, params, options);
|
|
13
|
+
}
|
|
14
|
+
async attachments(geocoderId, params, options) {
|
|
15
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
16
|
+
return this.resources.fetch({ type: "attachments" }, `geocoders/${_geocoderId}/attachments`, params, options);
|
|
17
|
+
}
|
|
18
|
+
async event_stores(geocoderId, params, options) {
|
|
19
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
20
|
+
return this.resources.fetch({ type: "event_stores" }, `geocoders/${_geocoderId}/event_stores`, params, options);
|
|
21
|
+
}
|
|
22
|
+
isGeocoder(resource) {
|
|
23
|
+
return resource.type && resource.type === _Geocoders.TYPE;
|
|
24
|
+
}
|
|
25
|
+
relationship(id) {
|
|
26
|
+
return super.relationshipOneToOne(id);
|
|
27
|
+
}
|
|
28
|
+
relationshipToMany(...ids) {
|
|
29
|
+
return super.relationshipOneToMany(...ids);
|
|
30
|
+
}
|
|
31
|
+
type() {
|
|
32
|
+
return _Geocoders.TYPE;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var instance = new Geocoders();
|
|
36
|
+
var geocoders_default = instance;
|
|
37
|
+
|
|
38
|
+
export { geocoders_default };
|
|
39
|
+
//# sourceMappingURL=chunk-D3VJO4HP.js.map
|
|
40
|
+
//# sourceMappingURL=chunk-D3VJO4HP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/geocoders.ts"],"names":[],"mappings":";;;AAmCA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,OAAA,CAAQ,UAAA,EAA+B,MAAA,EAAkC,OAAA,EAA0D;AACxI,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAc,EAAE,IAAA,EAAM,SAAA,EAAU,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,QAAA,CAAA,EAAY,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7G;AAAA,EAEA,MAAM,SAAA,CAAU,UAAA,EAA+B,MAAA,EAAmC,OAAA,EAA2D;AAC5I,IAAA,MAAM,WAAA,GAAe,WAAwB,E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AA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-D3VJO4HP.js","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } 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 GeocoderType = 'geocoders'\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\n\n\nexport type GeocoderSort = Pick<Geocoder, 'id' | 'name'> & ResourceSort\n// export type GeocoderFilter = Pick<Geocoder, 'id' | 'name'> & ResourceFilter\n\n\ninterface Geocoder extends Resource {\n\t\n\treadonly type: GeocoderType\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\nclass Geocoders extends ApiResource<Geocoder> {\n\n\tstatic readonly TYPE: GeocoderType = 'geocoders' as const\n\n\tasync markets(geocoderId: string | Geocoder, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `geocoders/${_geocoderId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync addresses(geocoderId: string | Geocoder, params?: QueryParamsList<Address>, options?: ResourcesConfig): Promise<ListResponse<Address>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `geocoders/${_geocoderId}/addresses`, params, options) as unknown as ListResponse<Address>\n\t}\n\n\tasync attachments(geocoderId: string | Geocoder, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `geocoders/${_geocoderId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(geocoderId: string | Geocoder, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `geocoders/${_geocoderId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisGeocoder(resource: any): resource is Geocoder {\n\t\treturn resource.type && (resource.type === Geocoders.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): GeocoderRel {\n\t\treturn super.relationshipOneToOne<GeocoderRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): GeocoderRel[] {\n\t\treturn super.relationshipOneToMany<GeocoderRel>(...ids)\n\t}\n\n\n\ttype(): GeocoderType {\n\t\treturn Geocoders.TYPE\n\t}\n\n}\n\n\nconst instance = new Geocoders()\nexport default instance\n\nexport type { Geocoder, Geocoders, GeocoderType }\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-YRCCY6RV.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/stock_line_items.ts
|
|
4
|
+
var StockLineItems = class _StockLineItems extends ApiResource {
|
|
5
|
+
static TYPE = "stock_line_items";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _StockLineItems.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _StockLineItems.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _StockLineItems.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async shipment(stockLineItemId, params, options) {
|
|
16
|
+
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
|
17
|
+
return this.resources.fetch({ type: "shipments" }, `stock_line_items/${_stockLineItemId}/shipment`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async line_item(stockLineItemId, params, options) {
|
|
20
|
+
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
|
21
|
+
return this.resources.fetch({ type: "line_items" }, `stock_line_items/${_stockLineItemId}/line_item`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async stock_item(stockLineItemId, params, options) {
|
|
24
|
+
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
|
25
|
+
return this.resources.fetch({ type: "stock_items" }, `stock_line_items/${_stockLineItemId}/stock_item`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async sku(stockLineItemId, params, options) {
|
|
28
|
+
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
|
29
|
+
return this.resources.fetch({ type: "skus" }, `stock_line_items/${_stockLineItemId}/sku`, params, options);
|
|
30
|
+
}
|
|
31
|
+
async stock_reservation(stockLineItemId, params, options) {
|
|
32
|
+
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
|
33
|
+
return this.resources.fetch({ type: "stock_reservations" }, `stock_line_items/${_stockLineItemId}/stock_reservation`, params, options);
|
|
34
|
+
}
|
|
35
|
+
async event_stores(stockLineItemId, params, options) {
|
|
36
|
+
const _stockLineItemId = stockLineItemId.id || stockLineItemId;
|
|
37
|
+
return this.resources.fetch({ type: "event_stores" }, `stock_line_items/${_stockLineItemId}/event_stores`, params, options);
|
|
38
|
+
}
|
|
39
|
+
async _reserve_stock(id, params, options) {
|
|
40
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockLineItems.TYPE, _reserve_stock: true }, params, options);
|
|
41
|
+
}
|
|
42
|
+
async _release_stock(id, params, options) {
|
|
43
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockLineItems.TYPE, _release_stock: true }, params, options);
|
|
44
|
+
}
|
|
45
|
+
async _decrement_stock(id, params, options) {
|
|
46
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StockLineItems.TYPE, _decrement_stock: true }, params, options);
|
|
47
|
+
}
|
|
48
|
+
isStockLineItem(resource) {
|
|
49
|
+
return resource.type && resource.type === _StockLineItems.TYPE;
|
|
50
|
+
}
|
|
51
|
+
relationship(id) {
|
|
52
|
+
return super.relationshipOneToOne(id);
|
|
53
|
+
}
|
|
54
|
+
relationshipToMany(...ids) {
|
|
55
|
+
return super.relationshipOneToMany(...ids);
|
|
56
|
+
}
|
|
57
|
+
type() {
|
|
58
|
+
return _StockLineItems.TYPE;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
var instance = new StockLineItems();
|
|
62
|
+
var stock_line_items_default = instance;
|
|
63
|
+
|
|
64
|
+
export { stock_line_items_default };
|
|
65
|
+
//# sourceMappingURL=chunk-D3YQS6YA.js.map
|
|
66
|
+
//# sourceMappingURL=chunk-D3YQS6YA.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/stock_line_items.ts"],"names":[],"mappings":";;;AAwHA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,kBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,C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AAA,EAEA,MAAM,cAAA,CAAe,EAAA,EAA4B,MAAA,EAA6C,OAAA,EAAmD;AAChJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC/K;AAAA,EAEA,MAAM,gBAAA,CAAiB,EAAA,EAA4B,MAAA,EAA6C,OAAA,EAAmD;AAClJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,kBAAkB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACjL;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,wBAAA,GAAQ","file":"chunk-D3YQS6YA.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { LineItem, LineItemType } from './line_items'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { Sku, SkuType } from './skus'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { StockReservation } from './stock_reservations'\n\n\ntype StockLineItemType = 'stock_line_items'\ntype StockLineItemRel = ResourceRel & { type: StockLineItemType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\ntype SkuRel = ResourceRel & { type: SkuType }\n\n\nexport type StockLineItemSort = Pick<StockLineItem, 'id' | 'quantity'> & ResourceSort\n// export type StockLineItemFilter = Pick<StockLineItem, 'id' | 'sku_code' | 'quantity'> & ResourceFilter\n\n\ninterface StockLineItem extends Resource {\n\t\n\treadonly type: StockLineItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The internal name of the associated line item.\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the associated line item.\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\n\tshipment?: Shipment | null\n\tline_item?: LineItem | null\n\tstock_item?: StockItem | null\n\tsku?: Sku | null\n\tstock_reservation?: StockReservation | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface StockLineItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\tstock_item?: StockItemRel | null\n\tsku?: SkuRel | null\n\n}\n\n\ninterface StockLineItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to automatically reserve the stock for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically destroy the stock reservation for this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_release_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically decrement and release the stock this stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_decrement_stock?: boolean | null\n\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\tstock_item?: StockItemRel | null\n\tsku?: SkuRel | null\n\n}\n\n\nclass StockLineItems extends ApiResource<StockLineItem> {\n\n\tstatic readonly TYPE: StockLineItemType = 'stock_line_items' as const\n\n\tasync create(resource: StockLineItemCreate, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\treturn this.resources.create<StockLineItemCreate, StockLineItem>({ ...resource, type: StockLineItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockLineItemUpdate, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\treturn this.resources.update<StockLineItemUpdate, StockLineItem>({ ...resource, type: StockLineItems.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: StockLineItems.TYPE } : id, options)\n\t}\n\n\tasync shipment(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _stockLineItemId = (stockLineItemId as StockLineItem).id || stockLineItemId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `stock_line_items/${_stockLineItemId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync line_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockLineItemId = (stockLineItemId as StockLineItem).id || stockLineItemId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_line_items/${_stockLineItemId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync stock_item(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\tconst _stockLineItemId = (stockLineItemId as StockLineItem).id || stockLineItemId as string\n\t\treturn this.resources.fetch<StockItem>({ type: 'stock_items' }, `stock_line_items/${_stockLineItemId}/stock_item`, params, options) as unknown as StockItem\n\t}\n\n\tasync sku(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockLineItemId = (stockLineItemId as StockLineItem).id || stockLineItemId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_line_items/${_stockLineItemId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync stock_reservation(stockLineItemId: string | StockLineItem, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\tconst _stockLineItemId = (stockLineItemId as StockLineItem).id || stockLineItemId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `stock_line_items/${_stockLineItemId}/stock_reservation`, params, options) as unknown as StockReservation\n\t}\n\n\tasync event_stores(stockLineItemId: string | StockLineItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stockLineItemId = (stockLineItemId as StockLineItem).id || stockLineItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stock_line_items/${_stockLineItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _reserve_stock(id: string | StockLineItem, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\treturn this.resources.update<StockLineItemUpdate, StockLineItem>({ id: (typeof id === 'string')? id: id.id, type: StockLineItems.TYPE, _reserve_stock: true }, params, options)\n\t}\n\n\tasync _release_stock(id: string | StockLineItem, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\treturn this.resources.update<StockLineItemUpdate, StockLineItem>({ id: (typeof id === 'string')? id: id.id, type: StockLineItems.TYPE, _release_stock: true }, params, options)\n\t}\n\n\tasync _decrement_stock(id: string | StockLineItem, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\treturn this.resources.update<StockLineItemUpdate, StockLineItem>({ id: (typeof id === 'string')? id: id.id, type: StockLineItems.TYPE, _decrement_stock: true }, params, options)\n\t}\n\n\n\tisStockLineItem(resource: any): resource is StockLineItem {\n\t\treturn resource.type && (resource.type === StockLineItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockLineItemRel {\n\t\treturn super.relationshipOneToOne<StockLineItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockLineItemRel[] {\n\t\treturn super.relationshipOneToMany<StockLineItemRel>(...ids)\n\t}\n\n\n\ttype(): StockLineItemType {\n\t\treturn StockLineItems.TYPE\n\t}\n\n}\n\n\nconst instance = new StockLineItems()\nexport default instance\n\nexport type { StockLineItem, StockLineItemCreate, StockLineItems, StockLineItemType, StockLineItemUpdate }\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-YRCCY6RV.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/gift_card_recipients.ts
|
|
4
|
+
var GiftCardRecipients = class _GiftCardRecipients extends ApiResource {
|
|
5
|
+
static TYPE = "gift_card_recipients";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _GiftCardRecipients.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _GiftCardRecipients.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _GiftCardRecipients.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async customer(giftCardRecipientId, params, options) {
|
|
16
|
+
const _giftCardRecipientId = giftCardRecipientId.id || giftCardRecipientId;
|
|
17
|
+
return this.resources.fetch({ type: "customers" }, `gift_card_recipients/${_giftCardRecipientId}/customer`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async event_stores(giftCardRecipientId, params, options) {
|
|
20
|
+
const _giftCardRecipientId = giftCardRecipientId.id || giftCardRecipientId;
|
|
21
|
+
return this.resources.fetch({ type: "event_stores" }, `gift_card_recipients/${_giftCardRecipientId}/event_stores`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async attachments(giftCardRecipientId, params, options) {
|
|
24
|
+
const _giftCardRecipientId = giftCardRecipientId.id || giftCardRecipientId;
|
|
25
|
+
return this.resources.fetch({ type: "attachments" }, `gift_card_recipients/${_giftCardRecipientId}/attachments`, params, options);
|
|
26
|
+
}
|
|
27
|
+
isGiftCardRecipient(resource) {
|
|
28
|
+
return resource.type && resource.type === _GiftCardRecipients.TYPE;
|
|
29
|
+
}
|
|
30
|
+
relationship(id) {
|
|
31
|
+
return super.relationshipOneToOne(id);
|
|
32
|
+
}
|
|
33
|
+
relationshipToMany(...ids) {
|
|
34
|
+
return super.relationshipOneToMany(...ids);
|
|
35
|
+
}
|
|
36
|
+
type() {
|
|
37
|
+
return _GiftCardRecipients.TYPE;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var instance = new GiftCardRecipients();
|
|
41
|
+
var gift_card_recipients_default = instance;
|
|
42
|
+
|
|
43
|
+
export { gift_card_recipients_default };
|
|
44
|
+
//# sourceMappingURL=chunk-DBJEPEBT.js.map
|
|
45
|
+
//# sourceMappingURL=chunk-DBJEPEBT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/gift_card_recipients.ts"],"names":[],"mappings":";;;AA0FA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2B,WAAA,CAA+B;AAAA,EAE/D,OAAgB,IAAA,GAA8B,sBAAA;AAAA,EAE9C,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OAAA,EAAuD;AACvJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OAAA,EAAuD;AACvJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzI;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,mBAAA,CAAmB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC1G;AAAA,EAEA,MAAM,QAAA,CAAS,mBAAA,EAAiD,MAAA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AChE;AAAA,EAGA,IAAA,GAA8B;AAC7B,IAAA,OAAO,mBAAA,CAAmB,IAAA;AAAA,EAC3B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,4BAAA,GAAQ","file":"chunk-DBJEPEBT.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 { Customer, CustomerType } from './customers'\nimport type { EventStore } from './event_stores'\n\n\ntype GiftCardRecipientType = 'gift_card_recipients'\ntype GiftCardRecipientRel = ResourceRel & { type: GiftCardRecipientType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\n\n\nexport type GiftCardRecipientSort = Pick<GiftCardRecipient, 'id' | 'email'> & ResourceSort\n// export type GiftCardRecipientFilter = Pick<GiftCardRecipient, 'id' | 'email' | 'first_name' | 'last_name'> & ResourceFilter\n\n\ninterface GiftCardRecipient extends Resource {\n\t\n\treadonly type: GiftCardRecipientType\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 GiftCardRecipientCreate 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 GiftCardRecipientUpdate 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 GiftCardRecipients extends ApiResource<GiftCardRecipient> {\n\n\tstatic readonly TYPE: GiftCardRecipientType = 'gift_card_recipients' as const\n\n\tasync create(resource: GiftCardRecipientCreate, params?: QueryParamsRetrieve<GiftCardRecipient>, options?: ResourcesConfig): Promise<GiftCardRecipient> {\n\t\treturn this.resources.create<GiftCardRecipientCreate, GiftCardRecipient>({ ...resource, type: GiftCardRecipients.TYPE }, params, options)\n\t}\n\n\tasync update(resource: GiftCardRecipientUpdate, params?: QueryParamsRetrieve<GiftCardRecipient>, options?: ResourcesConfig): Promise<GiftCardRecipient> {\n\t\treturn this.resources.update<GiftCardRecipientUpdate, GiftCardRecipient>({ ...resource, type: GiftCardRecipients.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: GiftCardRecipients.TYPE } : id, options)\n\t}\n\n\tasync customer(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _giftCardRecipientId = (giftCardRecipientId as GiftCardRecipient).id || giftCardRecipientId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `gift_card_recipients/${_giftCardRecipientId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync event_stores(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _giftCardRecipientId = (giftCardRecipientId as GiftCardRecipient).id || giftCardRecipientId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `gift_card_recipients/${_giftCardRecipientId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync attachments(giftCardRecipientId: string | GiftCardRecipient, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _giftCardRecipientId = (giftCardRecipientId as GiftCardRecipient).id || giftCardRecipientId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `gift_card_recipients/${_giftCardRecipientId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\n\tisGiftCardRecipient(resource: any): resource is GiftCardRecipient {\n\t\treturn resource.type && (resource.type === GiftCardRecipients.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): GiftCardRecipientRel {\n\t\treturn super.relationshipOneToOne<GiftCardRecipientRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): GiftCardRecipientRel[] {\n\t\treturn super.relationshipOneToMany<GiftCardRecipientRel>(...ids)\n\t}\n\n\n\ttype(): GiftCardRecipientType {\n\t\treturn GiftCardRecipients.TYPE\n\t}\n\n}\n\n\nconst instance = new GiftCardRecipients()\nexport default instance\n\nexport type { GiftCardRecipient, GiftCardRecipientCreate, GiftCardRecipients, GiftCardRecipientType, GiftCardRecipientUpdate }\n"]}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/external_promotions.ts
|
|
6
|
+
var ExternalPromotions = class _ExternalPromotions extends chunkL7FT6NDZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "external_promotions";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPromotions.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async market(externalPromotionId, params, options) {
|
|
18
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
19
|
+
return this.resources.fetch({ type: "markets" }, `external_promotions/${_externalPromotionId}/market`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async order_amount_promotion_rule(externalPromotionId, params, options) {
|
|
22
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
23
|
+
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async sku_list_promotion_rule(externalPromotionId, params, options) {
|
|
26
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
27
|
+
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async coupon_codes_promotion_rule(externalPromotionId, params, options) {
|
|
30
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
31
|
+
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async custom_promotion_rule(externalPromotionId, params, options) {
|
|
34
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
35
|
+
return this.resources.fetch({ type: "custom_promotion_rules" }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options);
|
|
36
|
+
}
|
|
37
|
+
async sku_list(externalPromotionId, params, options) {
|
|
38
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
39
|
+
return this.resources.fetch({ type: "sku_lists" }, `external_promotions/${_externalPromotionId}/sku_list`, params, options);
|
|
40
|
+
}
|
|
41
|
+
async coupons(externalPromotionId, params, options) {
|
|
42
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
43
|
+
return this.resources.fetch({ type: "coupons" }, `external_promotions/${_externalPromotionId}/coupons`, params, options);
|
|
44
|
+
}
|
|
45
|
+
async attachments(externalPromotionId, params, options) {
|
|
46
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
47
|
+
return this.resources.fetch({ type: "attachments" }, `external_promotions/${_externalPromotionId}/attachments`, params, options);
|
|
48
|
+
}
|
|
49
|
+
async events(externalPromotionId, params, options) {
|
|
50
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
51
|
+
return this.resources.fetch({ type: "events" }, `external_promotions/${_externalPromotionId}/events`, params, options);
|
|
52
|
+
}
|
|
53
|
+
async tags(externalPromotionId, params, options) {
|
|
54
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
55
|
+
return this.resources.fetch({ type: "tags" }, `external_promotions/${_externalPromotionId}/tags`, params, options);
|
|
56
|
+
}
|
|
57
|
+
async event_stores(externalPromotionId, params, options) {
|
|
58
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
59
|
+
return this.resources.fetch({ type: "event_stores" }, `external_promotions/${_externalPromotionId}/event_stores`, params, options);
|
|
60
|
+
}
|
|
61
|
+
async skus(externalPromotionId, params, options) {
|
|
62
|
+
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
63
|
+
return this.resources.fetch({ type: "skus" }, `external_promotions/${_externalPromotionId}/skus`, params, options);
|
|
64
|
+
}
|
|
65
|
+
async _disable(id, params, options) {
|
|
66
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _disable: true }, params, options);
|
|
67
|
+
}
|
|
68
|
+
async _enable(id, params, options) {
|
|
69
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _enable: true }, params, options);
|
|
70
|
+
}
|
|
71
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
72
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
73
|
+
}
|
|
74
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
75
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
76
|
+
}
|
|
77
|
+
async _reset_circuit(id, params, options) {
|
|
78
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _reset_circuit: true }, params, options);
|
|
79
|
+
}
|
|
80
|
+
isExternalPromotion(resource) {
|
|
81
|
+
return resource.type && resource.type === _ExternalPromotions.TYPE;
|
|
82
|
+
}
|
|
83
|
+
relationship(id) {
|
|
84
|
+
return super.relationshipOneToOne(id);
|
|
85
|
+
}
|
|
86
|
+
relationshipToMany(...ids) {
|
|
87
|
+
return super.relationshipOneToMany(...ids);
|
|
88
|
+
}
|
|
89
|
+
type() {
|
|
90
|
+
return _ExternalPromotions.TYPE;
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
var instance = new ExternalPromotions();
|
|
94
|
+
var external_promotions_default = instance;
|
|
95
|
+
|
|
96
|
+
exports.external_promotions_default = external_promotions_default;
|
|
97
|
+
//# sourceMappingURL=chunk-DBNDWZZW.cjs.map
|
|
98
|
+
//# sourceMappingURL=chunk-DBNDWZZW.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/external_promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AA4SA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2BA,6BAAA,CAA+B;AAAA,EAE/D,OAAgB,IAAA,GAA8B,qBAAA;AAAA,EAE9C,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OA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EAAuC;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA4C,GAAG,GAAG,CAAA;AAAA,EAChE;AAAA,EAGA,IAAA,GAA8B;AAC7B,IAAA,OAAO,mBAAA,CAAmB,IAAA;AAAA,EAC3B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,2BAAA,GAAQ","file":"chunk-DBNDWZZW.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\n\ntype ExternalPromotionType = 'external_promotions'\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type ExternalPromotionSort = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalPromotionFilter = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalPromotion extends Resource {\n\t\n\treadonly type: ExternalPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion has been applied the total number of allowed times.\n\t */\n\ttotal_usage_reached?: boolean | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * The total number of coupons created for this promotion.\n\t * @example ```2```\n\t */\n\tcoupons_count?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\tskus?: Sku[] | null\n\n}\n\n\ninterface ExternalPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface ExternalPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass ExternalPromotions extends ApiResource<ExternalPromotion> {\n\n\tstatic readonly TYPE: ExternalPromotionType = 'external_promotions' as const\n\n\tasync create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.create<ExternalPromotionCreate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ExternalPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_promotions/${_externalPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `external_promotions/${_externalPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_promotions/${_externalPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_promotions/${_externalPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `external_promotions/${_externalPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_promotions/${_externalPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `external_promotions/${_externalPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalPromotion(resource: any): resource is ExternalPromotion {\n\t\treturn resource.type && (resource.type === ExternalPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalPromotionRel {\n\t\treturn super.relationshipOneToOne<ExternalPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalPromotionRel[] {\n\t\treturn super.relationshipOneToMany<ExternalPromotionRel>(...ids)\n\t}\n\n\n\ttype(): ExternalPromotionType {\n\t\treturn ExternalPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalPromotions()\nexport default instance\n\nexport type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotions, ExternalPromotionType, ExternalPromotionUpdate }\n"]}
|