@commercelayer/sdk 8.0.0-beta.10 → 8.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/lib/api-CbtXzzPa.d.ts +19196 -0
- package/lib/api-DtDA0Oxa.d.cts +19196 -0
- package/lib/api.cjs +272 -272
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +138 -138
- package/lib/bundle-compat.cjs +141 -141
- package/lib/bundle-compat.d.cts +1 -1
- package/lib/bundle-compat.d.ts +1 -1
- package/lib/bundle-compat.js +140 -140
- package/lib/bundle.cjs +142 -142
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +140 -140
- package/lib/chunk-25VHLJ3F.js +89 -0
- package/lib/chunk-25VHLJ3F.js.map +1 -0
- package/lib/chunk-2AXNVWID.js +51 -0
- package/lib/chunk-2AXNVWID.js.map +1 -0
- package/lib/chunk-2E77ADQI.cjs +81 -0
- package/lib/chunk-2E77ADQI.cjs.map +1 -0
- package/lib/chunk-2JJWJZIX.cjs +79 -0
- package/lib/chunk-2JJWJZIX.cjs.map +1 -0
- package/lib/chunk-2MEIS5NA.cjs +182 -0
- package/lib/chunk-2MEIS5NA.cjs.map +1 -0
- package/lib/chunk-2QFPV3FM.js +60 -0
- package/lib/chunk-2QFPV3FM.js.map +1 -0
- package/lib/chunk-2RBVOBOE.cjs +60 -0
- package/lib/chunk-2RBVOBOE.cjs.map +1 -0
- package/lib/chunk-2UWYPR4T.js +120 -0
- package/lib/chunk-2UWYPR4T.js.map +1 -0
- package/lib/chunk-2VGVF5SJ.cjs +86 -0
- package/lib/chunk-2VGVF5SJ.cjs.map +1 -0
- package/lib/chunk-32YLRD6X.cjs +70 -0
- package/lib/chunk-32YLRD6X.cjs.map +1 -0
- package/lib/chunk-346DE4FR.cjs +193 -0
- package/lib/chunk-346DE4FR.cjs.map +1 -0
- package/lib/chunk-35HABXOS.cjs +205 -0
- package/lib/chunk-35HABXOS.cjs.map +1 -0
- package/lib/chunk-3EI7CXU3.js +68 -0
- package/lib/chunk-3EI7CXU3.js.map +1 -0
- package/lib/chunk-3MR4RCHV.js +100 -0
- package/lib/chunk-3MR4RCHV.js.map +1 -0
- package/lib/chunk-3OIAX6XB.js +59 -0
- package/lib/chunk-3OIAX6XB.js.map +1 -0
- package/lib/chunk-3Q2WCV4Q.js +67 -0
- package/lib/chunk-3Q2WCV4Q.js.map +1 -0
- package/lib/chunk-3QQMAS7W.cjs +94 -0
- package/lib/chunk-3QQMAS7W.cjs.map +1 -0
- package/lib/chunk-3RCAZLBZ.cjs +82 -0
- package/lib/chunk-3RCAZLBZ.cjs.map +1 -0
- package/lib/chunk-3SBL6VHM.cjs +122 -0
- package/lib/chunk-3SBL6VHM.cjs.map +1 -0
- package/lib/chunk-3VPZFDUD.cjs +102 -0
- package/lib/chunk-3VPZFDUD.cjs.map +1 -0
- package/lib/chunk-3ZC34CCX.js +38 -0
- package/lib/chunk-3ZC34CCX.js.map +1 -0
- package/lib/chunk-426WITQY.js +89 -0
- package/lib/chunk-426WITQY.js.map +1 -0
- package/lib/chunk-47X2DZN4.cjs +102 -0
- package/lib/chunk-47X2DZN4.cjs.map +1 -0
- package/lib/chunk-4HTYFQWK.cjs +44 -0
- package/lib/chunk-4HTYFQWK.cjs.map +1 -0
- package/lib/chunk-4K2SOUH5.cjs +52 -0
- package/lib/chunk-4K2SOUH5.cjs.map +1 -0
- package/lib/chunk-4REPNW3X.js +61 -0
- package/lib/chunk-4REPNW3X.js.map +1 -0
- package/lib/chunk-4WZ6KSV6.js +129 -0
- package/lib/chunk-4WZ6KSV6.js.map +1 -0
- package/lib/chunk-4YUZOIAO.cjs +131 -0
- package/lib/chunk-4YUZOIAO.cjs.map +1 -0
- package/lib/chunk-52DKX77F.cjs +98 -0
- package/lib/chunk-52DKX77F.cjs.map +1 -0
- package/lib/chunk-5CTB4AQM.cjs +62 -0
- package/lib/chunk-5CTB4AQM.cjs.map +1 -0
- package/lib/chunk-5GGEXHQI.cjs +98 -0
- package/lib/chunk-5GGEXHQI.cjs.map +1 -0
- package/lib/chunk-5H7R4SYT.js +58 -0
- package/lib/chunk-5H7R4SYT.js.map +1 -0
- package/lib/chunk-5IMEH7YJ.js +177 -0
- package/lib/chunk-5IMEH7YJ.js.map +1 -0
- package/lib/chunk-5MAU5OUB.cjs +91 -0
- package/lib/chunk-5MAU5OUB.cjs.map +1 -0
- package/lib/chunk-5RLBHS3F.cjs +179 -0
- package/lib/chunk-5RLBHS3F.cjs.map +1 -0
- package/lib/chunk-5VI4FFCJ.cjs +91 -0
- package/lib/chunk-5VI4FFCJ.cjs.map +1 -0
- package/lib/chunk-5W54ENHX.js +331 -0
- package/lib/chunk-5W54ENHX.js.map +1 -0
- package/lib/chunk-5XNNWIAH.cjs +98 -0
- package/lib/chunk-5XNNWIAH.cjs.map +1 -0
- package/lib/chunk-5Z2IIZE4.cjs +62 -0
- package/lib/chunk-5Z2IIZE4.cjs.map +1 -0
- package/lib/chunk-62VNLMH5.cjs +176 -0
- package/lib/chunk-62VNLMH5.cjs.map +1 -0
- package/lib/chunk-6EZRTCA4.cjs +53 -0
- package/lib/chunk-6EZRTCA4.cjs.map +1 -0
- package/lib/chunk-6G4MV4VT.js +75 -0
- package/lib/chunk-6G4MV4VT.js.map +1 -0
- package/lib/chunk-6TN2P34K.cjs +120 -0
- package/lib/chunk-6TN2P34K.cjs.map +1 -0
- package/lib/chunk-73Q3EU2I.js +68 -0
- package/lib/chunk-73Q3EU2I.js.map +1 -0
- package/lib/chunk-7GDSHRLY.cjs +170 -0
- package/lib/chunk-7GDSHRLY.cjs.map +1 -0
- package/lib/chunk-7KTPV74D.js +113 -0
- package/lib/chunk-7KTPV74D.js.map +1 -0
- package/lib/chunk-7OUOUHOO.cjs +84 -0
- package/lib/chunk-7OUOUHOO.cjs.map +1 -0
- package/lib/chunk-7Y3OVLWC.cjs +79 -0
- package/lib/chunk-7Y3OVLWC.cjs.map +1 -0
- package/lib/chunk-A3U2XTGP.js +124 -0
- package/lib/chunk-A3U2XTGP.js.map +1 -0
- package/lib/chunk-A4GLMRLN.js +89 -0
- package/lib/chunk-A4GLMRLN.js.map +1 -0
- package/lib/chunk-A6AENRHK.cjs +125 -0
- package/lib/chunk-A6AENRHK.cjs.map +1 -0
- package/lib/chunk-ANFIAB6R.js +177 -0
- package/lib/chunk-ANFIAB6R.js.map +1 -0
- package/lib/chunk-AOHAWFOB.js +86 -0
- package/lib/chunk-AOHAWFOB.js.map +1 -0
- package/lib/chunk-APBF76ZC.cjs +91 -0
- package/lib/chunk-APBF76ZC.cjs.map +1 -0
- package/lib/chunk-ATGOMWPN.js +77 -0
- package/lib/chunk-ATGOMWPN.js.map +1 -0
- package/lib/chunk-AYBAQVWV.js +612 -0
- package/lib/chunk-AYBAQVWV.js.map +1 -0
- package/lib/chunk-AZTICLOY.js +45 -0
- package/lib/chunk-AZTICLOY.js.map +1 -0
- package/lib/chunk-B3KEZC7E.cjs +62 -0
- package/lib/chunk-B3KEZC7E.cjs.map +1 -0
- package/lib/chunk-B77UNRIL.cjs +79 -0
- package/lib/chunk-B77UNRIL.cjs.map +1 -0
- package/lib/chunk-BFD4ZKN2.cjs +86 -0
- package/lib/chunk-BFD4ZKN2.cjs.map +1 -0
- package/lib/chunk-BHWL7SMR.cjs +614 -0
- package/lib/chunk-BHWL7SMR.cjs.map +1 -0
- package/lib/chunk-BIRMFKH4.js +51 -0
- package/lib/chunk-BIRMFKH4.js.map +1 -0
- package/lib/chunk-BMQ5UFUF.cjs +44 -0
- package/lib/chunk-BMQ5UFUF.cjs.map +1 -0
- package/lib/chunk-BNN6J67M.js +84 -0
- package/lib/chunk-BNN6J67M.js.map +1 -0
- package/lib/chunk-BODGU3FN.js +70 -0
- package/lib/chunk-BODGU3FN.js.map +1 -0
- package/lib/chunk-BPJZJZ4P.cjs +62 -0
- package/lib/chunk-BPJZJZ4P.cjs.map +1 -0
- package/lib/chunk-BQASYOEH.js +68 -0
- package/lib/chunk-BQASYOEH.js.map +1 -0
- package/lib/chunk-BTR6K6LM.cjs +63 -0
- package/lib/chunk-BTR6K6LM.cjs.map +1 -0
- package/lib/chunk-BU7V7PER.cjs +70 -0
- package/lib/chunk-BU7V7PER.cjs.map +1 -0
- package/lib/chunk-BULIJXJG.js +42 -0
- package/lib/chunk-BULIJXJG.js.map +1 -0
- package/lib/chunk-BVY6R7DW.cjs +74 -0
- package/lib/chunk-BVY6R7DW.cjs.map +1 -0
- package/lib/chunk-CAMYSYCA.cjs +125 -0
- package/lib/chunk-CAMYSYCA.cjs.map +1 -0
- package/lib/chunk-CCMUJPKE.js +51 -0
- package/lib/chunk-CCMUJPKE.js.map +1 -0
- package/lib/chunk-CKS7ZLKB.js +77 -0
- package/lib/chunk-CKS7ZLKB.js.map +1 -0
- package/lib/chunk-CNX3NNSJ.js +42 -0
- package/lib/chunk-CNX3NNSJ.js.map +1 -0
- package/lib/chunk-CRSL2GLF.js +80 -0
- package/lib/chunk-CRSL2GLF.js.map +1 -0
- package/lib/chunk-CWAFALCE.js +94 -0
- package/lib/chunk-CWAFALCE.js.map +1 -0
- package/lib/chunk-CXLUFFYV.js +180 -0
- package/lib/chunk-CXLUFFYV.js.map +1 -0
- package/lib/chunk-D3X4TTHW.cjs +55 -0
- package/lib/chunk-D3X4TTHW.cjs.map +1 -0
- package/lib/chunk-D4ZRETJN.cjs +179 -0
- package/lib/chunk-D4ZRETJN.cjs.map +1 -0
- package/lib/chunk-D74NQPBD.js +77 -0
- package/lib/chunk-D74NQPBD.js.map +1 -0
- package/lib/chunk-DCHLWNWE.js +89 -0
- package/lib/chunk-DCHLWNWE.js.map +1 -0
- package/lib/chunk-DCKGGURY.js +12 -0
- package/lib/chunk-DCKGGURY.js.map +1 -0
- package/lib/chunk-DDJBA5N3.js +86 -0
- package/lib/chunk-DDJBA5N3.js.map +1 -0
- package/lib/chunk-DLEMEQCL.js +68 -0
- package/lib/chunk-DLEMEQCL.js.map +1 -0
- package/lib/chunk-DTENA3KF.cjs +94 -0
- package/lib/chunk-DTENA3KF.cjs.map +1 -0
- package/lib/chunk-DTVZJW3T.js +60 -0
- package/lib/chunk-DTVZJW3T.js.map +1 -0
- package/lib/chunk-DZPTIKD7.cjs +70 -0
- package/lib/chunk-DZPTIKD7.cjs.map +1 -0
- package/lib/chunk-E5WNJXQM.cjs +79 -0
- package/lib/chunk-E5WNJXQM.cjs.map +1 -0
- package/lib/chunk-E7N3CO5I.cjs +122 -0
- package/lib/chunk-E7N3CO5I.cjs.map +1 -0
- package/lib/chunk-E7ZKYXMW.js +120 -0
- package/lib/chunk-E7ZKYXMW.js.map +1 -0
- package/lib/chunk-ELS7YPTF.js +60 -0
- package/lib/chunk-ELS7YPTF.js.map +1 -0
- package/lib/chunk-ELSMZZL6.js +68 -0
- package/lib/chunk-ELSMZZL6.js.map +1 -0
- package/lib/chunk-EMAUWPBH.cjs +62 -0
- package/lib/chunk-EMAUWPBH.cjs.map +1 -0
- package/lib/chunk-ENGSDWYA.cjs +70 -0
- package/lib/chunk-ENGSDWYA.cjs.map +1 -0
- package/lib/chunk-ET7SIFCZ.js +82 -0
- package/lib/chunk-ET7SIFCZ.js.map +1 -0
- package/lib/chunk-F4XVHX6I.cjs +243 -0
- package/lib/chunk-F4XVHX6I.cjs.map +1 -0
- package/lib/chunk-FD2JC7HR.cjs +62 -0
- package/lib/chunk-FD2JC7HR.cjs.map +1 -0
- package/lib/chunk-FDPYOOCE.js +132 -0
- package/lib/chunk-FDPYOOCE.js.map +1 -0
- package/lib/chunk-FMPIBZQI.js +78 -0
- package/lib/chunk-FMPIBZQI.js.map +1 -0
- package/lib/chunk-FO6W4J2K.cjs +70 -0
- package/lib/chunk-FO6W4J2K.cjs.map +1 -0
- package/lib/chunk-FOTU7CYD.js +53 -0
- package/lib/chunk-FOTU7CYD.js.map +1 -0
- package/lib/chunk-FRJSKD6D.js +68 -0
- package/lib/chunk-FRJSKD6D.js.map +1 -0
- package/lib/chunk-FUVQOAPT.js +60 -0
- package/lib/chunk-FUVQOAPT.js.map +1 -0
- package/lib/chunk-FVJWAGF3.cjs +77 -0
- package/lib/chunk-FVJWAGF3.cjs.map +1 -0
- package/lib/chunk-G2G7OZPY.cjs +71 -0
- package/lib/chunk-G2G7OZPY.cjs.map +1 -0
- package/lib/chunk-GAQQJH3L.cjs +70 -0
- package/lib/chunk-GAQQJH3L.cjs.map +1 -0
- package/lib/chunk-GEJSGUO3.js +75 -0
- package/lib/chunk-GEJSGUO3.js.map +1 -0
- package/lib/chunk-GKPLAZMH.cjs +339 -0
- package/lib/chunk-GKPLAZMH.cjs.map +1 -0
- package/lib/chunk-GL5HO22G.js +75 -0
- package/lib/chunk-GL5HO22G.js.map +1 -0
- package/lib/chunk-GLA3FXNM.js +96 -0
- package/lib/chunk-GLA3FXNM.js.map +1 -0
- package/lib/chunk-GLFJHLVP.cjs +120 -0
- package/lib/chunk-GLFJHLVP.cjs.map +1 -0
- package/lib/chunk-GMOMWH45.js +79 -0
- package/lib/chunk-GMOMWH45.js.map +1 -0
- package/lib/chunk-GP7TYOQO.js +68 -0
- package/lib/chunk-GP7TYOQO.js.map +1 -0
- package/lib/chunk-GXOLCMKF.js +73 -0
- package/lib/chunk-GXOLCMKF.js.map +1 -0
- package/lib/chunk-H4CW7KIP.cjs +102 -0
- package/lib/chunk-H4CW7KIP.cjs.map +1 -0
- package/lib/chunk-H7FOVRDB.js +51 -0
- package/lib/chunk-H7FOVRDB.js.map +1 -0
- package/lib/chunk-H7I2IH4X.js +68 -0
- package/lib/chunk-H7I2IH4X.js.map +1 -0
- package/lib/chunk-HDETPQPF.js +177 -0
- package/lib/chunk-HDETPQPF.js.map +1 -0
- package/lib/chunk-HL4RE2VL.js +96 -0
- package/lib/chunk-HL4RE2VL.js.map +1 -0
- package/lib/chunk-HP72HI2Q.cjs +193 -0
- package/lib/chunk-HP72HI2Q.cjs.map +1 -0
- package/lib/chunk-HPFHY6E4.cjs +75 -0
- package/lib/chunk-HPFHY6E4.cjs.map +1 -0
- package/lib/chunk-HVHXCOIY.cjs +126 -0
- package/lib/chunk-HVHXCOIY.cjs.map +1 -0
- package/lib/chunk-HVW67FMI.cjs +84 -0
- package/lib/chunk-HVW67FMI.cjs.map +1 -0
- package/lib/chunk-HVYTLHDO.cjs +79 -0
- package/lib/chunk-HVYTLHDO.cjs.map +1 -0
- package/lib/chunk-I2Y3JYO7.js +177 -0
- package/lib/chunk-I2Y3JYO7.js.map +1 -0
- package/lib/chunk-I42LP7ZG.cjs +91 -0
- package/lib/chunk-I42LP7ZG.cjs.map +1 -0
- package/lib/chunk-IFT5SYLF.cjs +91 -0
- package/lib/chunk-IFT5SYLF.cjs.map +1 -0
- package/lib/chunk-IIXJMXXF.cjs +80 -0
- package/lib/chunk-IIXJMXXF.cjs.map +1 -0
- package/lib/chunk-ILC7QEAT.cjs +79 -0
- package/lib/chunk-ILC7QEAT.cjs.map +1 -0
- package/lib/chunk-IRBANPTE.cjs +90 -0
- package/lib/chunk-IRBANPTE.cjs.map +1 -0
- package/lib/chunk-IRYMYC5C.cjs +88 -0
- package/lib/chunk-IRYMYC5C.cjs.map +1 -0
- package/lib/chunk-IUOZC7XK.js +174 -0
- package/lib/chunk-IUOZC7XK.js.map +1 -0
- package/lib/chunk-IWM7VPWN.cjs +85 -0
- package/lib/chunk-IWM7VPWN.cjs.map +1 -0
- package/lib/chunk-IXWOBRJ4.js +68 -0
- package/lib/chunk-IXWOBRJ4.js.map +1 -0
- package/lib/chunk-IYNDRTNU.cjs +53 -0
- package/lib/chunk-IYNDRTNU.cjs.map +1 -0
- package/lib/chunk-IZFNSMU3.cjs +193 -0
- package/lib/chunk-IZFNSMU3.cjs.map +1 -0
- package/lib/chunk-IZOPMMMF.js +82 -0
- package/lib/chunk-IZOPMMMF.js.map +1 -0
- package/lib/chunk-JBUP7E7U.js +86 -0
- package/lib/chunk-JBUP7E7U.js.map +1 -0
- package/lib/chunk-JEJPSSXF.js +77 -0
- package/lib/chunk-JEJPSSXF.js.map +1 -0
- package/lib/chunk-JNS3HMDG.js +68 -0
- package/lib/chunk-JNS3HMDG.js.map +1 -0
- package/lib/chunk-JROHRQBW.cjs +88 -0
- package/lib/chunk-JROHRQBW.cjs.map +1 -0
- package/lib/chunk-JUZY67IP.cjs +70 -0
- package/lib/chunk-JUZY67IP.cjs.map +1 -0
- package/lib/chunk-JVLJIDJJ.js +191 -0
- package/lib/chunk-JVLJIDJJ.js.map +1 -0
- package/lib/chunk-K35AJI7L.js +91 -0
- package/lib/chunk-K35AJI7L.js.map +1 -0
- package/lib/chunk-KDFBUMSZ.js +121 -0
- package/lib/chunk-KDFBUMSZ.js.map +1 -0
- package/lib/chunk-KFIHPXZD.js +60 -0
- package/lib/chunk-KFIHPXZD.js.map +1 -0
- package/lib/chunk-KKU4FTJD.cjs +198 -0
- package/lib/chunk-KKU4FTJD.cjs.map +1 -0
- package/lib/chunk-KM76YWNO.cjs +62 -0
- package/lib/chunk-KM76YWNO.cjs.map +1 -0
- package/lib/chunk-KTGTFKFD.js +89 -0
- package/lib/chunk-KTGTFKFD.js.map +1 -0
- package/lib/chunk-KTICF7CN.js +77 -0
- package/lib/chunk-KTICF7CN.js.map +1 -0
- package/lib/chunk-KXITMWWL.js +50 -0
- package/lib/chunk-KXITMWWL.js.map +1 -0
- package/lib/chunk-KZMT4U4X.cjs +52 -0
- package/lib/chunk-KZMT4U4X.cjs.map +1 -0
- package/lib/chunk-L7VAH4BF.js +60 -0
- package/lib/chunk-L7VAH4BF.js.map +1 -0
- package/lib/chunk-LLQJ3JII.js +241 -0
- package/lib/chunk-LLQJ3JII.js.map +1 -0
- package/lib/chunk-LLTYLK3I.js +92 -0
- package/lib/chunk-LLTYLK3I.js.map +1 -0
- package/lib/chunk-LQYHM4ET.cjs +77 -0
- package/lib/chunk-LQYHM4ET.cjs.map +1 -0
- package/lib/chunk-M4VCWE32.js +77 -0
- package/lib/chunk-M4VCWE32.js.map +1 -0
- package/lib/chunk-M7NCBLZJ.cjs +52 -0
- package/lib/chunk-M7NCBLZJ.cjs.map +1 -0
- package/lib/chunk-MMKCMAW3.cjs +61 -0
- package/lib/chunk-MMKCMAW3.cjs.map +1 -0
- package/lib/chunk-MMNJTSFU.cjs +70 -0
- package/lib/chunk-MMNJTSFU.cjs.map +1 -0
- package/lib/chunk-MO2XOIMU.cjs +53 -0
- package/lib/chunk-MO2XOIMU.cjs.map +1 -0
- package/lib/chunk-MSXT4OKO.js +203 -0
- package/lib/chunk-MSXT4OKO.js.map +1 -0
- package/lib/chunk-N2B5T256.js +65 -0
- package/lib/chunk-N2B5T256.js.map +1 -0
- package/lib/chunk-N5346XYN.js +69 -0
- package/lib/chunk-N5346XYN.js.map +1 -0
- package/lib/chunk-ND7K4KSA.cjs +179 -0
- package/lib/chunk-ND7K4KSA.cjs.map +1 -0
- package/lib/chunk-NDQ6NHZJ.cjs +77 -0
- package/lib/chunk-NDQ6NHZJ.cjs.map +1 -0
- package/lib/chunk-NJ2ERQUB.js +36 -0
- package/lib/chunk-NJ2ERQUB.js.map +1 -0
- package/lib/chunk-NOOZM2ZC.js +116 -0
- package/lib/chunk-NOOZM2ZC.js.map +1 -0
- package/lib/chunk-NR5ZYTRC.js +75 -0
- package/lib/chunk-NR5ZYTRC.js.map +1 -0
- package/lib/chunk-NRKJ6IBM.cjs +70 -0
- package/lib/chunk-NRKJ6IBM.cjs.map +1 -0
- package/lib/chunk-NRSSZKXW.js +92 -0
- package/lib/chunk-NRSSZKXW.js.map +1 -0
- package/lib/chunk-NRTF52EF.cjs +44 -0
- package/lib/chunk-NRTF52EF.cjs.map +1 -0
- package/lib/chunk-NTLWDGIN.cjs +53 -0
- package/lib/chunk-NTLWDGIN.cjs.map +1 -0
- package/lib/chunk-NUUMQNTS.js +191 -0
- package/lib/chunk-NUUMQNTS.js.map +1 -0
- package/lib/chunk-NXKJ6SD5.cjs +40 -0
- package/lib/chunk-NXKJ6SD5.cjs.map +1 -0
- package/lib/chunk-O6KAEVM7.cjs +60 -0
- package/lib/chunk-O6KAEVM7.cjs.map +1 -0
- package/lib/chunk-OES7SSLU.cjs +79 -0
- package/lib/chunk-OES7SSLU.cjs.map +1 -0
- package/lib/chunk-OETE27SD.cjs +91 -0
- package/lib/chunk-OETE27SD.cjs.map +1 -0
- package/lib/chunk-OLG2UDIK.cjs +16 -0
- package/lib/chunk-OLG2UDIK.cjs.map +1 -0
- package/lib/chunk-ON6Q7XO4.js +82 -0
- package/lib/chunk-ON6Q7XO4.js.map +1 -0
- package/lib/chunk-OOUG4ORW.js +50 -0
- package/lib/chunk-OOUG4ORW.js.map +1 -0
- package/lib/chunk-OYDQRTMK.js +50 -0
- package/lib/chunk-OYDQRTMK.js.map +1 -0
- package/lib/chunk-OZJAWDJJ.js +68 -0
- package/lib/chunk-OZJAWDJJ.js.map +1 -0
- package/lib/chunk-P7ZYV63Z.js +65 -0
- package/lib/chunk-P7ZYV63Z.js.map +1 -0
- package/lib/chunk-PGA6KIDT.js +164 -0
- package/lib/chunk-PGA6KIDT.js.map +1 -0
- package/lib/chunk-PN2WF7LS.js +118 -0
- package/lib/chunk-PN2WF7LS.js.map +1 -0
- package/lib/chunk-PNLR24KH.cjs +88 -0
- package/lib/chunk-PNLR24KH.cjs.map +1 -0
- package/lib/chunk-PUZ5FS42.js +58 -0
- package/lib/chunk-PUZ5FS42.js.map +1 -0
- package/lib/chunk-PZHPJODG.cjs +67 -0
- package/lib/chunk-PZHPJODG.cjs.map +1 -0
- package/lib/chunk-QGUQARY2.js +59 -0
- package/lib/chunk-QGUQARY2.js.map +1 -0
- package/lib/chunk-QOX77APY.cjs +96 -0
- package/lib/chunk-QOX77APY.cjs.map +1 -0
- package/lib/chunk-QPL3YX2K.js +83 -0
- package/lib/chunk-QPL3YX2K.js.map +1 -0
- package/lib/chunk-QTBQUW5F.js +196 -0
- package/lib/chunk-QTBQUW5F.js.map +1 -0
- package/lib/chunk-QWA7BZWH.cjs +79 -0
- package/lib/chunk-QWA7BZWH.cjs.map +1 -0
- package/lib/chunk-R2OO474N.js +27 -0
- package/lib/chunk-R2OO474N.js.map +1 -0
- package/lib/chunk-R5CNDSIV.js +68 -0
- package/lib/chunk-R5CNDSIV.js.map +1 -0
- package/lib/chunk-R7GDQOYO.js +100 -0
- package/lib/chunk-R7GDQOYO.js.map +1 -0
- package/lib/chunk-REJKMDQW.js +51 -0
- package/lib/chunk-REJKMDQW.js.map +1 -0
- package/lib/chunk-RHDFKSZY.cjs +29 -0
- package/lib/chunk-RHDFKSZY.cjs.map +1 -0
- package/lib/chunk-RK2FEMQP.cjs +323 -0
- package/lib/chunk-RK2FEMQP.cjs.map +1 -0
- package/lib/chunk-RKTXSN4V.cjs +71 -0
- package/lib/chunk-RKTXSN4V.cjs.map +1 -0
- package/lib/chunk-RKZ7NQQK.js +177 -0
- package/lib/chunk-RKZ7NQQK.js.map +1 -0
- package/lib/chunk-RNTRA77X.cjs +79 -0
- package/lib/chunk-RNTRA77X.cjs.map +1 -0
- package/lib/chunk-RPSB3BEJ.cjs +67 -0
- package/lib/chunk-RPSB3BEJ.cjs.map +1 -0
- package/lib/chunk-RPYKNJGO.cjs +61 -0
- package/lib/chunk-RPYKNJGO.cjs.map +1 -0
- package/lib/chunk-RREOQFIQ.js +77 -0
- package/lib/chunk-RREOQFIQ.js.map +1 -0
- package/lib/chunk-S4CPSRCJ.cjs +61 -0
- package/lib/chunk-S4CPSRCJ.cjs.map +1 -0
- package/lib/chunk-SALCRQCG.js +24 -0
- package/lib/chunk-SALCRQCG.js.map +1 -0
- package/lib/chunk-SCM6LSNM.cjs +98 -0
- package/lib/chunk-SCM6LSNM.cjs.map +1 -0
- package/lib/chunk-SDTS2VCD.js +86 -0
- package/lib/chunk-SDTS2VCD.js.map +1 -0
- package/lib/chunk-SFAO2A3N.cjs +53 -0
- package/lib/chunk-SFAO2A3N.cjs.map +1 -0
- package/lib/chunk-SFXZIJ25.js +79 -0
- package/lib/chunk-SFXZIJ25.js.map +1 -0
- package/lib/chunk-SKHYOLJA.js +100 -0
- package/lib/chunk-SKHYOLJA.js.map +1 -0
- package/lib/chunk-SLBCAAYH.js +68 -0
- package/lib/chunk-SLBCAAYH.js.map +1 -0
- package/lib/chunk-SQBN5NCG.cjs +80 -0
- package/lib/chunk-SQBN5NCG.cjs.map +1 -0
- package/lib/chunk-SSP54MAX.cjs +88 -0
- package/lib/chunk-SSP54MAX.cjs.map +1 -0
- package/lib/chunk-TCBUTFPR.js +123 -0
- package/lib/chunk-TCBUTFPR.js.map +1 -0
- package/lib/chunk-TDSOIDEK.cjs +134 -0
- package/lib/chunk-TDSOIDEK.cjs.map +1 -0
- package/lib/chunk-TEYJIKEG.cjs +179 -0
- package/lib/chunk-TEYJIKEG.cjs.map +1 -0
- package/lib/chunk-TK6ZJDPM.cjs +89 -0
- package/lib/chunk-TK6ZJDPM.cjs.map +1 -0
- package/lib/chunk-TKLJQ4EZ.cjs +70 -0
- package/lib/chunk-TKLJQ4EZ.cjs.map +1 -0
- package/lib/chunk-TLVM56AW.cjs +712 -0
- package/lib/chunk-TLVM56AW.cjs.map +1 -0
- package/lib/chunk-TMLHA2SH.cjs +70 -0
- package/lib/chunk-TMLHA2SH.cjs.map +1 -0
- package/lib/chunk-TNYPDYRQ.js +77 -0
- package/lib/chunk-TNYPDYRQ.js.map +1 -0
- package/lib/chunk-TQMWALIZ.cjs +93 -0
- package/lib/chunk-TQMWALIZ.cjs.map +1 -0
- package/lib/chunk-TZQZDDQM.cjs +179 -0
- package/lib/chunk-TZQZDDQM.cjs.map +1 -0
- package/lib/chunk-TZYNA4PS.js +79 -0
- package/lib/chunk-TZYNA4PS.js.map +1 -0
- package/lib/chunk-U753GALL.js +88 -0
- package/lib/chunk-U753GALL.js.map +1 -0
- package/lib/chunk-UIIA2NOP.js +118 -0
- package/lib/chunk-UIIA2NOP.js.map +1 -0
- package/lib/chunk-UKPBX7LY.cjs +70 -0
- package/lib/chunk-UKPBX7LY.cjs.map +1 -0
- package/lib/chunk-UQ7DYB5E.js +77 -0
- package/lib/chunk-UQ7DYB5E.js.map +1 -0
- package/lib/chunk-US6R23LF.cjs +70 -0
- package/lib/chunk-US6R23LF.cjs.map +1 -0
- package/lib/chunk-UTST4YPO.js +68 -0
- package/lib/chunk-UTST4YPO.js.map +1 -0
- package/lib/chunk-UZBVGMSV.js +68 -0
- package/lib/chunk-UZBVGMSV.js.map +1 -0
- package/lib/chunk-UZEYQBID.cjs +70 -0
- package/lib/chunk-UZEYQBID.cjs.map +1 -0
- package/lib/chunk-VBWYHYCJ.cjs +35 -0
- package/lib/chunk-VBWYHYCJ.cjs.map +1 -0
- package/lib/chunk-VRPS4DFY.cjs +115 -0
- package/lib/chunk-VRPS4DFY.cjs.map +1 -0
- package/lib/chunk-VWSDATWK.cjs +79 -0
- package/lib/chunk-VWSDATWK.cjs.map +1 -0
- package/lib/chunk-VZQIHAFY.cjs +81 -0
- package/lib/chunk-VZQIHAFY.cjs.map +1 -0
- package/lib/chunk-W2TZOXPY.cjs +47 -0
- package/lib/chunk-W2TZOXPY.cjs.map +1 -0
- package/lib/chunk-W2VZAGW4.js +60 -0
- package/lib/chunk-W2VZAGW4.js.map +1 -0
- package/lib/chunk-W4URWXJ7.js +96 -0
- package/lib/chunk-W4URWXJ7.js.map +1 -0
- package/lib/chunk-WAFUWWBD.cjs +118 -0
- package/lib/chunk-WAFUWWBD.cjs.map +1 -0
- package/lib/chunk-WFZK3GQX.cjs +38 -0
- package/lib/chunk-WFZK3GQX.cjs.map +1 -0
- package/lib/chunk-WLWSEYVW.cjs +26 -0
- package/lib/chunk-WLWSEYVW.cjs.map +1 -0
- package/lib/chunk-WNEAV26W.js +89 -0
- package/lib/chunk-WNEAV26W.js.map +1 -0
- package/lib/chunk-WPZZ7TYZ.js +77 -0
- package/lib/chunk-WPZZ7TYZ.js.map +1 -0
- package/lib/chunk-WXAR4XMS.cjs +79 -0
- package/lib/chunk-WXAR4XMS.cjs.map +1 -0
- package/lib/chunk-X5AV3JJL.js +42 -0
- package/lib/chunk-X5AV3JJL.js.map +1 -0
- package/lib/chunk-X6NTP67A.cjs +88 -0
- package/lib/chunk-X6NTP67A.cjs.map +1 -0
- package/lib/chunk-X7L4YY6Q.cjs +93 -0
- package/lib/chunk-X7L4YY6Q.cjs.map +1 -0
- package/lib/chunk-XBZ4KQ72.js +69 -0
- package/lib/chunk-XBZ4KQ72.js.map +1 -0
- package/lib/chunk-XC52EDZL.js +191 -0
- package/lib/chunk-XC52EDZL.js.map +1 -0
- package/lib/chunk-XCYEGPE6.cjs +44 -0
- package/lib/chunk-XCYEGPE6.cjs.map +1 -0
- package/lib/chunk-XFEBSQBG.cjs +84 -0
- package/lib/chunk-XFEBSQBG.cjs.map +1 -0
- package/lib/chunk-XGETDJS6.cjs +79 -0
- package/lib/chunk-XGETDJS6.cjs.map +1 -0
- package/lib/chunk-XISWA6SP.cjs +77 -0
- package/lib/chunk-XISWA6SP.cjs.map +1 -0
- package/lib/chunk-XJPK7JSH.js +77 -0
- package/lib/chunk-XJPK7JSH.js.map +1 -0
- package/lib/chunk-XKCYUSO3.cjs +81 -0
- package/lib/chunk-XKCYUSO3.cjs.map +1 -0
- package/lib/chunk-XZLQM5TG.js +33 -0
- package/lib/chunk-XZLQM5TG.js.map +1 -0
- package/lib/chunk-YC7P7U37.js +78 -0
- package/lib/chunk-YC7P7U37.js.map +1 -0
- package/lib/chunk-YIP564B3.js +87 -0
- package/lib/chunk-YIP564B3.js.map +1 -0
- package/lib/chunk-YRHBJTKU.js +96 -0
- package/lib/chunk-YRHBJTKU.js.map +1 -0
- package/lib/chunk-YT2JXKSB.js +82 -0
- package/lib/chunk-YT2JXKSB.js.map +1 -0
- package/lib/chunk-YTKKF3OH.cjs +70 -0
- package/lib/chunk-YTKKF3OH.cjs.map +1 -0
- package/lib/chunk-YTSMQAN7.js +86 -0
- package/lib/chunk-YTSMQAN7.js.map +1 -0
- package/lib/chunk-YTXNOZVJ.js +68 -0
- package/lib/chunk-YTXNOZVJ.js.map +1 -0
- package/lib/chunk-YUKH7ESE.js +42 -0
- package/lib/chunk-YUKH7ESE.js.map +1 -0
- package/lib/chunk-YVUJAOL2.cjs +69 -0
- package/lib/chunk-YVUJAOL2.cjs.map +1 -0
- package/lib/chunk-YWU46S7V.js +709 -0
- package/lib/chunk-YWU46S7V.js.map +1 -0
- package/lib/chunk-YZQACFJF.js +77 -0
- package/lib/chunk-YZQACFJF.js.map +1 -0
- package/lib/chunk-Z2ZLJGA4.cjs +70 -0
- package/lib/chunk-Z2ZLJGA4.cjs.map +1 -0
- package/lib/chunk-ZA46YCQ5.js +321 -0
- package/lib/chunk-ZA46YCQ5.js.map +1 -0
- package/lib/chunk-ZA6NI5JQ.js +84 -0
- package/lib/chunk-ZA6NI5JQ.js.map +1 -0
- package/lib/chunk-ZEUZ6YAA.cjs +179 -0
- package/lib/chunk-ZEUZ6YAA.cjs.map +1 -0
- package/lib/chunk-ZFCXWZIL.cjs +84 -0
- package/lib/chunk-ZFCXWZIL.cjs.map +1 -0
- package/lib/chunk-ZMH7UHLF.js +177 -0
- package/lib/chunk-ZMH7UHLF.js.map +1 -0
- package/lib/chunk-ZRRBBZZ6.js +168 -0
- package/lib/chunk-ZRRBBZZ6.js.map +1 -0
- package/lib/chunk-ZSTRX2NN.cjs +166 -0
- package/lib/chunk-ZSTRX2NN.cjs.map +1 -0
- package/lib/chunk-ZV2F5AT6.js +59 -0
- package/lib/chunk-ZV2F5AT6.js.map +1 -0
- package/lib/chunk-ZX6P5OOB.js +91 -0
- package/lib/chunk-ZX6P5OOB.js.map +1 -0
- package/lib/client.cjs +3 -3
- package/lib/client.d.cts +3 -0
- package/lib/client.d.ts +3 -0
- package/lib/client.js +2 -2
- package/lib/commercelayer.cjs +14 -10
- package/lib/commercelayer.d.cts +23 -4
- package/lib/commercelayer.d.ts +23 -4
- package/lib/commercelayer.js +5 -5
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +153 -145
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +142 -142
- package/lib/index.js.map +1 -1
- package/lib/jsonapi.cjs +6 -6
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/jsonapi.js +4 -4
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.cjs +4 -4
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/query.js +1 -1
- package/lib/resource.cjs +9 -9
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resource.js +4 -4
- package/lib/resources/addresses.cjs +6 -6
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +5 -5
- package/lib/resources/adjustments.cjs +6 -6
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +5 -5
- package/lib/resources/adyen_gateways.cjs +6 -6
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +5 -5
- package/lib/resources/adyen_payments.cjs +6 -6
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +5 -5
- package/lib/resources/applications.cjs +6 -6
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +5 -5
- package/lib/resources/attachments.cjs +6 -6
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +5 -5
- package/lib/resources/authorizations.cjs +6 -6
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +5 -5
- package/lib/resources/avalara_accounts.cjs +6 -6
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +5 -5
- package/lib/resources/axerve_gateways.cjs +6 -6
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +5 -5
- package/lib/resources/axerve_payments.cjs +6 -6
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +5 -5
- package/lib/resources/billing_info_validation_rules.cjs +6 -6
- package/lib/resources/billing_info_validation_rules.d.cts +2 -2
- package/lib/resources/billing_info_validation_rules.d.ts +1 -1
- package/lib/resources/billing_info_validation_rules.js +5 -5
- package/lib/resources/bing_geocoders.cjs +6 -6
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +5 -5
- package/lib/resources/braintree_gateways.cjs +6 -6
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +5 -5
- package/lib/resources/braintree_payments.cjs +6 -6
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +5 -5
- package/lib/resources/bundles.cjs +6 -6
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +5 -5
- package/lib/resources/buy_x_pay_y_promotions.cjs +6 -6
- 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 +5 -5
- package/lib/resources/captures.cjs +6 -6
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +5 -5
- package/lib/resources/carrier_accounts.cjs +6 -6
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +5 -5
- package/lib/resources/checkout_com_gateways.cjs +6 -6
- 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 +5 -5
- package/lib/resources/checkout_com_payments.cjs +6 -6
- 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 +5 -5
- package/lib/resources/cleanups.cjs +6 -6
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +5 -5
- package/lib/resources/coupon_codes_promotion_rules.cjs +6 -6
- 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 +5 -5
- package/lib/resources/coupon_recipients.cjs +6 -6
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +5 -5
- package/lib/resources/coupons.cjs +6 -6
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +5 -5
- package/lib/resources/custom_promotion_rules.cjs +6 -6
- 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 +5 -5
- package/lib/resources/customer_addresses.cjs +6 -6
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +5 -5
- package/lib/resources/customer_groups.cjs +6 -6
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +5 -5
- package/lib/resources/customer_password_resets.cjs +6 -6
- 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 +5 -5
- package/lib/resources/customer_payment_sources.cjs +6 -6
- 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 +5 -5
- package/lib/resources/customer_subscriptions.cjs +6 -6
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +5 -5
- package/lib/resources/customers.cjs +6 -6
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +5 -5
- package/lib/resources/delivery_lead_times.cjs +6 -6
- 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 +5 -5
- package/lib/resources/discount_engine_items.cjs +6 -6
- 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 +5 -5
- package/lib/resources/discount_engines.cjs +6 -6
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +5 -5
- package/lib/resources/easypost_pickups.cjs +6 -6
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +5 -5
- package/lib/resources/event_callbacks.cjs +6 -6
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +5 -5
- package/lib/resources/event_stores.cjs +6 -6
- package/lib/resources/event_stores.d.cts +2 -2
- package/lib/resources/event_stores.d.ts +1 -1
- package/lib/resources/event_stores.js +5 -5
- package/lib/resources/events.cjs +6 -6
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +5 -5
- package/lib/resources/exports.cjs +6 -6
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +5 -5
- package/lib/resources/external_gateways.cjs +6 -6
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +5 -5
- package/lib/resources/external_payments.cjs +6 -6
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +5 -5
- package/lib/resources/external_promotions.cjs +6 -6
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +5 -5
- package/lib/resources/external_tax_calculators.cjs +6 -6
- 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 +5 -5
- package/lib/resources/fixed_amount_promotions.cjs +6 -6
- 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 +5 -5
- package/lib/resources/fixed_price_promotions.cjs +6 -6
- 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 +5 -5
- package/lib/resources/flex_promotions.cjs +6 -6
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +5 -5
- package/lib/resources/free_gift_promotions.cjs +6 -6
- 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 +5 -5
- package/lib/resources/free_shipping_promotions.cjs +6 -6
- 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 +5 -5
- package/lib/resources/geocoders.cjs +6 -6
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +5 -5
- package/lib/resources/gift_card_recipients.cjs +6 -6
- 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 +5 -5
- package/lib/resources/gift_cards.cjs +6 -6
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +5 -5
- package/lib/resources/google_geocoders.cjs +6 -6
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +5 -5
- package/lib/resources/imports.cjs +6 -6
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +5 -5
- package/lib/resources/in_stock_subscriptions.cjs +6 -6
- 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 +5 -5
- package/lib/resources/inventory_models.cjs +6 -6
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +5 -5
- package/lib/resources/inventory_return_locations.cjs +6 -6
- 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 +5 -5
- package/lib/resources/inventory_stock_locations.cjs +6 -6
- 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 +5 -5
- package/lib/resources/klarna_gateways.cjs +6 -6
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +5 -5
- package/lib/resources/klarna_payments.cjs +6 -6
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +5 -5
- package/lib/resources/line_item_options.cjs +6 -6
- 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 +5 -5
- package/lib/resources/line_items.cjs +6 -6
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +5 -5
- package/lib/resources/links.cjs +6 -6
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +5 -5
- package/lib/resources/manual_gateways.cjs +6 -6
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +5 -5
- package/lib/resources/manual_tax_calculators.cjs +6 -6
- 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 +5 -5
- package/lib/resources/markets.cjs +6 -6
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +5 -5
- package/lib/resources/merchants.cjs +6 -6
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +5 -5
- package/lib/resources/notifications.cjs +6 -6
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +5 -5
- package/lib/resources/order_amount_promotion_rules.cjs +6 -6
- 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 +5 -5
- package/lib/resources/order_copies.cjs +6 -6
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +5 -5
- package/lib/resources/order_factories.cjs +6 -6
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +5 -5
- package/lib/resources/order_subscription_items.cjs +6 -6
- 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 +5 -5
- package/lib/resources/order_subscriptions.cjs +6 -6
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +5 -5
- package/lib/resources/order_validation_rules.cjs +6 -6
- package/lib/resources/order_validation_rules.d.cts +2 -2
- package/lib/resources/order_validation_rules.d.ts +1 -1
- package/lib/resources/order_validation_rules.js +5 -5
- package/lib/resources/orders.cjs +6 -6
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +5 -5
- package/lib/resources/organizations.cjs +6 -6
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +5 -5
- package/lib/resources/packages.cjs +6 -6
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +5 -5
- package/lib/resources/parcel_line_items.cjs +6 -6
- 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 +5 -5
- package/lib/resources/parcels.cjs +6 -6
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +5 -5
- package/lib/resources/payment_gateways.cjs +6 -6
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +5 -5
- package/lib/resources/payment_methods.cjs +6 -6
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +5 -5
- package/lib/resources/payment_options.cjs +6 -6
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +5 -5
- package/lib/resources/paypal_gateways.cjs +6 -6
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +5 -5
- package/lib/resources/paypal_payments.cjs +6 -6
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +5 -5
- package/lib/resources/percentage_discount_promotions.cjs +6 -6
- 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 +5 -5
- package/lib/resources/pickups.cjs +6 -6
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +5 -5
- package/lib/resources/price_frequency_tiers.cjs +6 -6
- 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 +5 -5
- package/lib/resources/price_list_schedulers.cjs +6 -6
- 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 +5 -5
- package/lib/resources/price_lists.cjs +6 -6
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +5 -5
- package/lib/resources/price_tiers.cjs +6 -6
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +5 -5
- package/lib/resources/price_volume_tiers.cjs +6 -6
- 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 +5 -5
- package/lib/resources/prices.cjs +6 -6
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +5 -5
- package/lib/resources/promotion_rules.cjs +6 -6
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +5 -5
- package/lib/resources/promotions.cjs +6 -6
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +5 -5
- package/lib/resources/recurring_order_copies.cjs +6 -6
- 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 +5 -5
- package/lib/resources/refunds.cjs +6 -6
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +5 -5
- package/lib/resources/reserved_stocks.cjs +6 -6
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +5 -5
- package/lib/resources/resource_errors.cjs +6 -6
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +5 -5
- package/lib/resources/return_line_items.cjs +6 -6
- 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 +5 -5
- package/lib/resources/returns.cjs +6 -6
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +5 -5
- package/lib/resources/satispay_gateways.cjs +6 -6
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +5 -5
- package/lib/resources/satispay_payments.cjs +6 -6
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +5 -5
- package/lib/resources/shipment_line_items.cjs +6 -6
- package/lib/resources/shipment_line_items.d.cts +2 -2
- package/lib/resources/shipment_line_items.d.ts +1 -1
- package/lib/resources/shipment_line_items.js +5 -5
- package/lib/resources/shipments.cjs +6 -6
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +5 -5
- package/lib/resources/shipping_categories.cjs +6 -6
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +5 -5
- package/lib/resources/shipping_method_tiers.cjs +6 -6
- 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 +5 -5
- package/lib/resources/shipping_methods.cjs +6 -6
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +5 -5
- package/lib/resources/shipping_weight_tiers.cjs +6 -6
- 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 +5 -5
- package/lib/resources/shipping_zones.cjs +6 -6
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +5 -5
- package/lib/resources/sku_list_items.cjs +6 -6
- 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 +5 -5
- package/lib/resources/sku_list_promotion_rules.cjs +6 -6
- 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 +5 -5
- package/lib/resources/sku_lists.cjs +6 -6
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +5 -5
- package/lib/resources/sku_options.cjs +6 -6
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +5 -5
- package/lib/resources/skus.cjs +6 -6
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +5 -5
- package/lib/resources/stock_items.cjs +6 -6
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +5 -5
- package/lib/resources/stock_line_items.cjs +6 -6
- 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 +5 -5
- package/lib/resources/stock_locations.cjs +6 -6
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +5 -5
- package/lib/resources/stock_reservations.cjs +6 -6
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +5 -5
- package/lib/resources/stock_transfers.cjs +6 -6
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +5 -5
- package/lib/resources/stores.cjs +6 -6
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +5 -5
- package/lib/resources/stripe_gateways.cjs +6 -6
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +5 -5
- package/lib/resources/stripe_payments.cjs +6 -6
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +5 -5
- package/lib/resources/stripe_tax_accounts.cjs +6 -6
- 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 +5 -5
- package/lib/resources/subscription_models.cjs +6 -6
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +5 -5
- package/lib/resources/tags.cjs +6 -6
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +5 -5
- package/lib/resources/talon_one_accounts.cjs +6 -6
- 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 +5 -5
- package/lib/resources/tax_calculators.cjs +6 -6
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +5 -5
- package/lib/resources/tax_categories.cjs +6 -6
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +5 -5
- package/lib/resources/tax_rules.cjs +6 -6
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +5 -5
- package/lib/resources/taxjar_accounts.cjs +6 -6
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +5 -5
- package/lib/resources/transactions.cjs +6 -6
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +5 -5
- package/lib/resources/vertex_accounts.cjs +6 -6
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +5 -5
- package/lib/resources/voids.cjs +6 -6
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +5 -5
- package/lib/resources/webhooks.cjs +6 -6
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +5 -5
- package/lib/resources/wire_transfers.cjs +6 -6
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +5 -5
- package/lib/single-client.cjs +286 -278
- package/lib/single-client.cjs.map +1 -1
- package/lib/single-client.d.cts +2 -2
- package/lib/single-client.d.ts +2 -2
- package/lib/single-client.js +141 -141
- package/lib/single-client.js.map +1 -1
- package/lib/static.cjs +7 -7
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +6 -6
- package/lib/version.cjs +7 -3
- package/lib/version.d.cts +9 -1
- package/lib/version.d.ts +9 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/lib/api-EpvFRhI9.d.ts +0 -19175
- package/lib/api-oXAdA5Ru.d.cts +0 -19175
- package/lib/chunk-22JSRKRP.js +0 -77
- package/lib/chunk-22JSRKRP.js.map +0 -1
- package/lib/chunk-24F2ZC4H.cjs +0 -122
- package/lib/chunk-24F2ZC4H.cjs.map +0 -1
- package/lib/chunk-2BR762XD.cjs +0 -70
- package/lib/chunk-2BR762XD.cjs.map +0 -1
- package/lib/chunk-2P2JWX3V.js +0 -68
- package/lib/chunk-2P2JWX3V.js.map +0 -1
- package/lib/chunk-2UGXKQFC.cjs +0 -62
- package/lib/chunk-2UGXKQFC.cjs.map +0 -1
- package/lib/chunk-2ZAN7B5Z.cjs +0 -70
- package/lib/chunk-2ZAN7B5Z.cjs.map +0 -1
- package/lib/chunk-37V5T6PZ.cjs +0 -93
- package/lib/chunk-37V5T6PZ.cjs.map +0 -1
- package/lib/chunk-3BZL6HYH.js +0 -51
- package/lib/chunk-3BZL6HYH.js.map +0 -1
- package/lib/chunk-3D2FNXSK.js +0 -177
- package/lib/chunk-3D2FNXSK.js.map +0 -1
- package/lib/chunk-3ENR3S5T.cjs +0 -81
- package/lib/chunk-3ENR3S5T.cjs.map +0 -1
- package/lib/chunk-3LGN4LXX.js +0 -82
- package/lib/chunk-3LGN4LXX.js.map +0 -1
- package/lib/chunk-3QWZMVH2.cjs +0 -79
- package/lib/chunk-3QWZMVH2.cjs.map +0 -1
- package/lib/chunk-3XGGO5YB.js +0 -88
- package/lib/chunk-3XGGO5YB.js.map +0 -1
- package/lib/chunk-3Y4RMNKV.js +0 -60
- package/lib/chunk-3Y4RMNKV.js.map +0 -1
- package/lib/chunk-42MEZSD4.cjs +0 -243
- package/lib/chunk-42MEZSD4.cjs.map +0 -1
- package/lib/chunk-42ZHE2WU.cjs +0 -205
- package/lib/chunk-42ZHE2WU.cjs.map +0 -1
- package/lib/chunk-4C3YVRRS.js +0 -96
- package/lib/chunk-4C3YVRRS.js.map +0 -1
- package/lib/chunk-4FVLYQYK.cjs +0 -52
- package/lib/chunk-4FVLYQYK.cjs.map +0 -1
- package/lib/chunk-4RDYAHZO.cjs +0 -125
- package/lib/chunk-4RDYAHZO.cjs.map +0 -1
- package/lib/chunk-4SKBF5ZK.cjs +0 -70
- package/lib/chunk-4SKBF5ZK.cjs.map +0 -1
- package/lib/chunk-4THWU3WM.cjs +0 -166
- package/lib/chunk-4THWU3WM.cjs.map +0 -1
- package/lib/chunk-4UBBJD3F.js +0 -42
- package/lib/chunk-4UBBJD3F.js.map +0 -1
- package/lib/chunk-4YU74YXC.cjs +0 -44
- package/lib/chunk-4YU74YXC.cjs.map +0 -1
- package/lib/chunk-4ZFVTUSX.cjs +0 -79
- package/lib/chunk-4ZFVTUSX.cjs.map +0 -1
- package/lib/chunk-54LYYVB3.cjs +0 -77
- package/lib/chunk-54LYYVB3.cjs.map +0 -1
- package/lib/chunk-5BMKV63A.cjs +0 -79
- package/lib/chunk-5BMKV63A.cjs.map +0 -1
- package/lib/chunk-5GHOOKYM.cjs +0 -84
- package/lib/chunk-5GHOOKYM.cjs.map +0 -1
- package/lib/chunk-5KA2HKFH.cjs +0 -35
- package/lib/chunk-5KA2HKFH.cjs.map +0 -1
- package/lib/chunk-5MGINVEQ.js +0 -68
- package/lib/chunk-5MGINVEQ.js.map +0 -1
- package/lib/chunk-5QZBXSMX.cjs +0 -77
- package/lib/chunk-5QZBXSMX.cjs.map +0 -1
- package/lib/chunk-5SMOSXWB.cjs +0 -88
- package/lib/chunk-5SMOSXWB.cjs.map +0 -1
- package/lib/chunk-5WJZIHI6.js +0 -50
- package/lib/chunk-5WJZIHI6.js.map +0 -1
- package/lib/chunk-5WRDATN3.cjs +0 -52
- package/lib/chunk-5WRDATN3.cjs.map +0 -1
- package/lib/chunk-6A2VDAYH.cjs +0 -71
- package/lib/chunk-6A2VDAYH.cjs.map +0 -1
- package/lib/chunk-6XKNHGEB.cjs +0 -179
- package/lib/chunk-6XKNHGEB.cjs.map +0 -1
- package/lib/chunk-6YCQGKZ3.js +0 -84
- package/lib/chunk-6YCQGKZ3.js.map +0 -1
- package/lib/chunk-6ZFQINCX.js +0 -92
- package/lib/chunk-6ZFQINCX.js.map +0 -1
- package/lib/chunk-72EPY5QQ.cjs +0 -26
- package/lib/chunk-72EPY5QQ.cjs.map +0 -1
- package/lib/chunk-74DDRAJ6.js +0 -168
- package/lib/chunk-74DDRAJ6.js.map +0 -1
- package/lib/chunk-7BPKWLUV.cjs +0 -98
- package/lib/chunk-7BPKWLUV.cjs.map +0 -1
- package/lib/chunk-7FBPOEL3.cjs +0 -115
- package/lib/chunk-7FBPOEL3.cjs.map +0 -1
- package/lib/chunk-7I5APR2W.cjs +0 -89
- package/lib/chunk-7I5APR2W.cjs.map +0 -1
- package/lib/chunk-7NXWRRUL.js +0 -51
- package/lib/chunk-7NXWRRUL.js.map +0 -1
- package/lib/chunk-7OA3ASUR.js +0 -79
- package/lib/chunk-7OA3ASUR.js.map +0 -1
- package/lib/chunk-7WP5V2VJ.cjs +0 -67
- package/lib/chunk-7WP5V2VJ.cjs.map +0 -1
- package/lib/chunk-7ZMJYDP7.js +0 -180
- package/lib/chunk-7ZMJYDP7.js.map +0 -1
- package/lib/chunk-A2KSRTPF.js +0 -51
- package/lib/chunk-A2KSRTPF.js.map +0 -1
- package/lib/chunk-A3HXYZE7.cjs +0 -313
- package/lib/chunk-A3HXYZE7.cjs.map +0 -1
- package/lib/chunk-A6HWLU2U.js +0 -60
- package/lib/chunk-A6HWLU2U.js.map +0 -1
- package/lib/chunk-A6J7MNYD.cjs +0 -82
- package/lib/chunk-A6J7MNYD.cjs.map +0 -1
- package/lib/chunk-AALHBTDP.cjs +0 -93
- package/lib/chunk-AALHBTDP.cjs.map +0 -1
- package/lib/chunk-AC7WVFRR.js +0 -129
- package/lib/chunk-AC7WVFRR.js.map +0 -1
- package/lib/chunk-AIO2NUPF.js +0 -94
- package/lib/chunk-AIO2NUPF.js.map +0 -1
- package/lib/chunk-AOOPIH45.cjs +0 -120
- package/lib/chunk-AOOPIH45.cjs.map +0 -1
- package/lib/chunk-ASBOEHZT.cjs +0 -79
- package/lib/chunk-ASBOEHZT.cjs.map +0 -1
- package/lib/chunk-ATONNFTK.cjs +0 -85
- package/lib/chunk-ATONNFTK.cjs.map +0 -1
- package/lib/chunk-AUB4BG3N.cjs +0 -79
- package/lib/chunk-AUB4BG3N.cjs.map +0 -1
- package/lib/chunk-AZRXECP3.cjs +0 -70
- package/lib/chunk-AZRXECP3.cjs.map +0 -1
- package/lib/chunk-B5YRHPPQ.cjs +0 -126
- package/lib/chunk-B5YRHPPQ.cjs.map +0 -1
- package/lib/chunk-BALY2BP2.js +0 -68
- package/lib/chunk-BALY2BP2.js.map +0 -1
- package/lib/chunk-BAO3I3CK.js +0 -68
- package/lib/chunk-BAO3I3CK.js.map +0 -1
- package/lib/chunk-BC3GOGP7.js +0 -77
- package/lib/chunk-BC3GOGP7.js.map +0 -1
- package/lib/chunk-BOYK5XCO.js +0 -68
- package/lib/chunk-BOYK5XCO.js.map +0 -1
- package/lib/chunk-BPTSRSC6.cjs +0 -55
- package/lib/chunk-BPTSRSC6.cjs.map +0 -1
- package/lib/chunk-BVEUVURA.cjs +0 -91
- package/lib/chunk-BVEUVURA.cjs.map +0 -1
- package/lib/chunk-CHD573UK.cjs +0 -67
- package/lib/chunk-CHD573UK.cjs.map +0 -1
- package/lib/chunk-CJUTZPOH.cjs +0 -170
- package/lib/chunk-CJUTZPOH.cjs.map +0 -1
- package/lib/chunk-CKC2JS4N.cjs +0 -61
- package/lib/chunk-CKC2JS4N.cjs.map +0 -1
- package/lib/chunk-CKIU2QK7.cjs +0 -79
- package/lib/chunk-CKIU2QK7.cjs.map +0 -1
- package/lib/chunk-CLPJO2HS.cjs +0 -84
- package/lib/chunk-CLPJO2HS.cjs.map +0 -1
- package/lib/chunk-CNRJEKGG.cjs +0 -88
- package/lib/chunk-CNRJEKGG.cjs.map +0 -1
- package/lib/chunk-CNTHSMT3.cjs +0 -40
- package/lib/chunk-CNTHSMT3.cjs.map +0 -1
- package/lib/chunk-CQUQC6PV.cjs +0 -193
- package/lib/chunk-CQUQC6PV.cjs.map +0 -1
- package/lib/chunk-CRYSIRYY.cjs +0 -80
- package/lib/chunk-CRYSIRYY.cjs.map +0 -1
- package/lib/chunk-CSCKJ5K4.cjs +0 -70
- package/lib/chunk-CSCKJ5K4.cjs.map +0 -1
- package/lib/chunk-CTXB4TIH.js +0 -36
- package/lib/chunk-CTXB4TIH.js.map +0 -1
- package/lib/chunk-CXXHXGV4.js +0 -24
- package/lib/chunk-CXXHXGV4.js.map +0 -1
- package/lib/chunk-DAPH5WAS.cjs +0 -70
- package/lib/chunk-DAPH5WAS.cjs.map +0 -1
- package/lib/chunk-DET7TITS.cjs +0 -70
- package/lib/chunk-DET7TITS.cjs.map +0 -1
- package/lib/chunk-DS4PYTOM.js +0 -27
- package/lib/chunk-DS4PYTOM.js.map +0 -1
- package/lib/chunk-DTM6TNRI.cjs +0 -88
- package/lib/chunk-DTM6TNRI.cjs.map +0 -1
- package/lib/chunk-DXXRZMDS.cjs +0 -70
- package/lib/chunk-DXXRZMDS.cjs.map +0 -1
- package/lib/chunk-DYF5RVNM.js +0 -79
- package/lib/chunk-DYF5RVNM.js.map +0 -1
- package/lib/chunk-E246DOUD.cjs +0 -63
- package/lib/chunk-E246DOUD.cjs.map +0 -1
- package/lib/chunk-EC4OAWRG.js +0 -91
- package/lib/chunk-EC4OAWRG.js.map +0 -1
- package/lib/chunk-EJ3SKHCF.js +0 -241
- package/lib/chunk-EJ3SKHCF.js.map +0 -1
- package/lib/chunk-EJIXLN7Z.cjs +0 -29
- package/lib/chunk-EJIXLN7Z.cjs.map +0 -1
- package/lib/chunk-EMLPNVKA.cjs +0 -71
- package/lib/chunk-EMLPNVKA.cjs.map +0 -1
- package/lib/chunk-FD35GNGV.js +0 -42
- package/lib/chunk-FD35GNGV.js.map +0 -1
- package/lib/chunk-FDMJKB5V.cjs +0 -14
- package/lib/chunk-FDMJKB5V.cjs.map +0 -1
- package/lib/chunk-FGXHOACU.cjs +0 -118
- package/lib/chunk-FGXHOACU.cjs.map +0 -1
- package/lib/chunk-FJ6MG7WI.js +0 -86
- package/lib/chunk-FJ6MG7WI.js.map +0 -1
- package/lib/chunk-FORGCCDU.cjs +0 -44
- package/lib/chunk-FORGCCDU.cjs.map +0 -1
- package/lib/chunk-FSXCIAYK.js +0 -50
- package/lib/chunk-FSXCIAYK.js.map +0 -1
- package/lib/chunk-G43NAQ2B.cjs +0 -53
- package/lib/chunk-G43NAQ2B.cjs.map +0 -1
- package/lib/chunk-G5LUH7SX.cjs +0 -70
- package/lib/chunk-G5LUH7SX.cjs.map +0 -1
- package/lib/chunk-G67FOAKH.cjs +0 -98
- package/lib/chunk-G67FOAKH.cjs.map +0 -1
- package/lib/chunk-G7PKYNCD.cjs +0 -70
- package/lib/chunk-G7PKYNCD.cjs.map +0 -1
- package/lib/chunk-GBIH54K6.js +0 -100
- package/lib/chunk-GBIH54K6.js.map +0 -1
- package/lib/chunk-GGOL45I5.js +0 -45
- package/lib/chunk-GGOL45I5.js.map +0 -1
- package/lib/chunk-GIMAGLUV.js +0 -68
- package/lib/chunk-GIMAGLUV.js.map +0 -1
- package/lib/chunk-GJIBPCLI.js +0 -42
- package/lib/chunk-GJIBPCLI.js.map +0 -1
- package/lib/chunk-GKJ5UJVG.js +0 -77
- package/lib/chunk-GKJ5UJVG.js.map +0 -1
- package/lib/chunk-GLEASNSJ.js +0 -77
- package/lib/chunk-GLEASNSJ.js.map +0 -1
- package/lib/chunk-GO7TJMJ2.js +0 -96
- package/lib/chunk-GO7TJMJ2.js.map +0 -1
- package/lib/chunk-GQZ6DXTV.js +0 -60
- package/lib/chunk-GQZ6DXTV.js.map +0 -1
- package/lib/chunk-GZCAWHE6.cjs +0 -131
- package/lib/chunk-GZCAWHE6.cjs.map +0 -1
- package/lib/chunk-H2I5XZVE.js +0 -65
- package/lib/chunk-H2I5XZVE.js.map +0 -1
- package/lib/chunk-H2Q2ZK4J.js +0 -92
- package/lib/chunk-H2Q2ZK4J.js.map +0 -1
- package/lib/chunk-H2VKAOCM.js +0 -82
- package/lib/chunk-H2VKAOCM.js.map +0 -1
- package/lib/chunk-H3X4MYWU.js +0 -68
- package/lib/chunk-H3X4MYWU.js.map +0 -1
- package/lib/chunk-H6GJTVTU.js +0 -75
- package/lib/chunk-H6GJTVTU.js.map +0 -1
- package/lib/chunk-HEAOXJUM.cjs +0 -62
- package/lib/chunk-HEAOXJUM.cjs.map +0 -1
- package/lib/chunk-HS45ARNK.cjs +0 -62
- package/lib/chunk-HS45ARNK.cjs.map +0 -1
- package/lib/chunk-HVWED6OD.cjs +0 -61
- package/lib/chunk-HVWED6OD.cjs.map +0 -1
- package/lib/chunk-HWQKJGMO.js +0 -196
- package/lib/chunk-HWQKJGMO.js.map +0 -1
- package/lib/chunk-ICPYLWV2.cjs +0 -88
- package/lib/chunk-ICPYLWV2.cjs.map +0 -1
- package/lib/chunk-IHFJ6MXL.cjs +0 -323
- package/lib/chunk-IHFJ6MXL.cjs.map +0 -1
- package/lib/chunk-IIVBQMST.cjs +0 -79
- package/lib/chunk-IIVBQMST.cjs.map +0 -1
- package/lib/chunk-IKNDOL6B.js +0 -59
- package/lib/chunk-IKNDOL6B.js.map +0 -1
- package/lib/chunk-IVT3PJY6.js +0 -89
- package/lib/chunk-IVT3PJY6.js.map +0 -1
- package/lib/chunk-IXGT4ZHK.cjs +0 -52
- package/lib/chunk-IXGT4ZHK.cjs.map +0 -1
- package/lib/chunk-IYIO3O6T.cjs +0 -70
- package/lib/chunk-IYIO3O6T.cjs.map +0 -1
- package/lib/chunk-J2B76RSV.js +0 -60
- package/lib/chunk-J2B76RSV.js.map +0 -1
- package/lib/chunk-J6IAZQTX.cjs +0 -102
- package/lib/chunk-J6IAZQTX.cjs.map +0 -1
- package/lib/chunk-J6UBSVHN.cjs +0 -712
- package/lib/chunk-J6UBSVHN.cjs.map +0 -1
- package/lib/chunk-JA5OBTVX.cjs +0 -120
- package/lib/chunk-JA5OBTVX.cjs.map +0 -1
- package/lib/chunk-JLDRURQO.cjs +0 -77
- package/lib/chunk-JLDRURQO.cjs.map +0 -1
- package/lib/chunk-JPOQTSO3.js +0 -89
- package/lib/chunk-JPOQTSO3.js.map +0 -1
- package/lib/chunk-JV3H26EB.js +0 -77
- package/lib/chunk-JV3H26EB.js.map +0 -1
- package/lib/chunk-K4JHKT7C.js +0 -11
- package/lib/chunk-K4JHKT7C.js.map +0 -1
- package/lib/chunk-K7IFPOM4.js +0 -113
- package/lib/chunk-K7IFPOM4.js.map +0 -1
- package/lib/chunk-KBR5ZGZF.cjs +0 -614
- package/lib/chunk-KBR5ZGZF.cjs.map +0 -1
- package/lib/chunk-KHHIGLI2.cjs +0 -86
- package/lib/chunk-KHHIGLI2.cjs.map +0 -1
- package/lib/chunk-KMYZX4VQ.cjs +0 -86
- package/lib/chunk-KMYZX4VQ.cjs.map +0 -1
- package/lib/chunk-KNW47S44.cjs +0 -53
- package/lib/chunk-KNW47S44.cjs.map +0 -1
- package/lib/chunk-KNYCGJXW.cjs +0 -94
- package/lib/chunk-KNYCGJXW.cjs.map +0 -1
- package/lib/chunk-L4745XWM.js +0 -80
- package/lib/chunk-L4745XWM.js.map +0 -1
- package/lib/chunk-LBSC3EU5.js +0 -123
- package/lib/chunk-LBSC3EU5.js.map +0 -1
- package/lib/chunk-LBYSKMHH.cjs +0 -94
- package/lib/chunk-LBYSKMHH.cjs.map +0 -1
- package/lib/chunk-LHZ6RTT3.js +0 -89
- package/lib/chunk-LHZ6RTT3.js.map +0 -1
- package/lib/chunk-LJP3XZB6.cjs +0 -98
- package/lib/chunk-LJP3XZB6.cjs.map +0 -1
- package/lib/chunk-LMQID2GP.js +0 -87
- package/lib/chunk-LMQID2GP.js.map +0 -1
- package/lib/chunk-LN4LIXAJ.js +0 -191
- package/lib/chunk-LN4LIXAJ.js.map +0 -1
- package/lib/chunk-LQWVKNWA.js +0 -96
- package/lib/chunk-LQWVKNWA.js.map +0 -1
- package/lib/chunk-LUHC3HQY.cjs +0 -62
- package/lib/chunk-LUHC3HQY.cjs.map +0 -1
- package/lib/chunk-M2EMAXEX.cjs +0 -53
- package/lib/chunk-M2EMAXEX.cjs.map +0 -1
- package/lib/chunk-M2MA3D4R.cjs +0 -80
- package/lib/chunk-M2MA3D4R.cjs.map +0 -1
- package/lib/chunk-M4ONJLD5.js +0 -86
- package/lib/chunk-M4ONJLD5.js.map +0 -1
- package/lib/chunk-MA4Q3YQA.cjs +0 -102
- package/lib/chunk-MA4Q3YQA.cjs.map +0 -1
- package/lib/chunk-MHZXFNI3.cjs +0 -61
- package/lib/chunk-MHZXFNI3.cjs.map +0 -1
- package/lib/chunk-MRCX5DDN.cjs +0 -179
- package/lib/chunk-MRCX5DDN.cjs.map +0 -1
- package/lib/chunk-MYZKUUVU.js +0 -89
- package/lib/chunk-MYZKUUVU.js.map +0 -1
- package/lib/chunk-N2GNN5KY.cjs +0 -91
- package/lib/chunk-N2GNN5KY.cjs.map +0 -1
- package/lib/chunk-NASC5VUL.js +0 -53
- package/lib/chunk-NASC5VUL.js.map +0 -1
- package/lib/chunk-NF2QUFOZ.js +0 -69
- package/lib/chunk-NF2QUFOZ.js.map +0 -1
- package/lib/chunk-NL723OUO.cjs +0 -81
- package/lib/chunk-NL723OUO.cjs.map +0 -1
- package/lib/chunk-NSFF4PEP.cjs +0 -182
- package/lib/chunk-NSFF4PEP.cjs.map +0 -1
- package/lib/chunk-O222VNEO.cjs +0 -90
- package/lib/chunk-O222VNEO.cjs.map +0 -1
- package/lib/chunk-O7GAJZ7B.cjs +0 -179
- package/lib/chunk-O7GAJZ7B.cjs.map +0 -1
- package/lib/chunk-O7I22ND6.cjs +0 -165
- package/lib/chunk-O7I22ND6.cjs.map +0 -1
- package/lib/chunk-O7Q46YQR.js +0 -77
- package/lib/chunk-O7Q46YQR.js.map +0 -1
- package/lib/chunk-OD7AZBBW.cjs +0 -91
- package/lib/chunk-OD7AZBBW.cjs.map +0 -1
- package/lib/chunk-OESYWOKW.cjs +0 -79
- package/lib/chunk-OESYWOKW.cjs.map +0 -1
- package/lib/chunk-OHOTORWN.js +0 -77
- package/lib/chunk-OHOTORWN.js.map +0 -1
- package/lib/chunk-OHPKFTKJ.js +0 -82
- package/lib/chunk-OHPKFTKJ.js.map +0 -1
- package/lib/chunk-OJXBH4AU.js +0 -177
- package/lib/chunk-OJXBH4AU.js.map +0 -1
- package/lib/chunk-OKEWWPO6.js +0 -120
- package/lib/chunk-OKEWWPO6.js.map +0 -1
- package/lib/chunk-OTEKWYFI.js +0 -77
- package/lib/chunk-OTEKWYFI.js.map +0 -1
- package/lib/chunk-P5TAYFM2.cjs +0 -77
- package/lib/chunk-P5TAYFM2.cjs.map +0 -1
- package/lib/chunk-P6FRDB6N.js +0 -203
- package/lib/chunk-P6FRDB6N.js.map +0 -1
- package/lib/chunk-PE7YEKXE.js +0 -177
- package/lib/chunk-PE7YEKXE.js.map +0 -1
- package/lib/chunk-PF23CMEF.cjs +0 -44
- package/lib/chunk-PF23CMEF.cjs.map +0 -1
- package/lib/chunk-PHSZOTGO.cjs +0 -53
- package/lib/chunk-PHSZOTGO.cjs.map +0 -1
- package/lib/chunk-PINJ4XVT.cjs +0 -179
- package/lib/chunk-PINJ4XVT.cjs.map +0 -1
- package/lib/chunk-PJXGHTNE.js +0 -73
- package/lib/chunk-PJXGHTNE.js.map +0 -1
- package/lib/chunk-PVZ4YTNY.cjs +0 -91
- package/lib/chunk-PVZ4YTNY.cjs.map +0 -1
- package/lib/chunk-PX6VSBYJ.js +0 -84
- package/lib/chunk-PX6VSBYJ.js.map +0 -1
- package/lib/chunk-Q65LIIZK.js +0 -83
- package/lib/chunk-Q65LIIZK.js.map +0 -1
- package/lib/chunk-Q6B4IJ3Z.js +0 -75
- package/lib/chunk-Q6B4IJ3Z.js.map +0 -1
- package/lib/chunk-Q74EWK7R.js +0 -78
- package/lib/chunk-Q74EWK7R.js.map +0 -1
- package/lib/chunk-QA3Z2NT3.js +0 -163
- package/lib/chunk-QA3Z2NT3.js.map +0 -1
- package/lib/chunk-QBINHYQ4.js +0 -77
- package/lib/chunk-QBINHYQ4.js.map +0 -1
- package/lib/chunk-QBTVUBTD.js +0 -191
- package/lib/chunk-QBTVUBTD.js.map +0 -1
- package/lib/chunk-QCHY4BRB.js +0 -118
- package/lib/chunk-QCHY4BRB.js.map +0 -1
- package/lib/chunk-QFVWMERY.js +0 -86
- package/lib/chunk-QFVWMERY.js.map +0 -1
- package/lib/chunk-QHRM2LGA.js +0 -100
- package/lib/chunk-QHRM2LGA.js.map +0 -1
- package/lib/chunk-QQB52UMR.cjs +0 -44
- package/lib/chunk-QQB52UMR.cjs.map +0 -1
- package/lib/chunk-R2Z7SDWB.js +0 -68
- package/lib/chunk-R2Z7SDWB.js.map +0 -1
- package/lib/chunk-R4T65OTC.js +0 -89
- package/lib/chunk-R4T65OTC.js.map +0 -1
- package/lib/chunk-R5SMSVJE.js +0 -59
- package/lib/chunk-R5SMSVJE.js.map +0 -1
- package/lib/chunk-RI6NF3OR.js +0 -69
- package/lib/chunk-RI6NF3OR.js.map +0 -1
- package/lib/chunk-RKPUNPFI.js +0 -68
- package/lib/chunk-RKPUNPFI.js.map +0 -1
- package/lib/chunk-RLAVR726.js +0 -67
- package/lib/chunk-RLAVR726.js.map +0 -1
- package/lib/chunk-RPP6LEIY.js +0 -75
- package/lib/chunk-RPP6LEIY.js.map +0 -1
- package/lib/chunk-RSOPQPT4.js +0 -42
- package/lib/chunk-RSOPQPT4.js.map +0 -1
- package/lib/chunk-S35MKEJS.cjs +0 -88
- package/lib/chunk-S35MKEJS.cjs.map +0 -1
- package/lib/chunk-S4TR2UHV.js +0 -65
- package/lib/chunk-S4TR2UHV.js.map +0 -1
- package/lib/chunk-S6CTDMVV.js +0 -191
- package/lib/chunk-S6CTDMVV.js.map +0 -1
- package/lib/chunk-S6M3FY7K.cjs +0 -38
- package/lib/chunk-S6M3FY7K.cjs.map +0 -1
- package/lib/chunk-SAZNFIJE.js +0 -58
- package/lib/chunk-SAZNFIJE.js.map +0 -1
- package/lib/chunk-SBTTBUKV.cjs +0 -53
- package/lib/chunk-SBTTBUKV.cjs.map +0 -1
- package/lib/chunk-SCPNHUAH.js +0 -77
- package/lib/chunk-SCPNHUAH.js.map +0 -1
- package/lib/chunk-SDIFNFXF.cjs +0 -70
- package/lib/chunk-SDIFNFXF.cjs.map +0 -1
- package/lib/chunk-SJ3LU5N4.js +0 -68
- package/lib/chunk-SJ3LU5N4.js.map +0 -1
- package/lib/chunk-SJFHQHTE.js +0 -38
- package/lib/chunk-SJFHQHTE.js.map +0 -1
- package/lib/chunk-SL2QY66Q.js +0 -100
- package/lib/chunk-SL2QY66Q.js.map +0 -1
- package/lib/chunk-SNRGHNRR.js +0 -612
- package/lib/chunk-SNRGHNRR.js.map +0 -1
- package/lib/chunk-SQI2JQK4.cjs +0 -79
- package/lib/chunk-SQI2JQK4.cjs.map +0 -1
- package/lib/chunk-SS47BWTZ.js +0 -68
- package/lib/chunk-SS47BWTZ.js.map +0 -1
- package/lib/chunk-SVN5VVVA.cjs +0 -98
- package/lib/chunk-SVN5VVVA.cjs.map +0 -1
- package/lib/chunk-T2R5XGY4.cjs +0 -70
- package/lib/chunk-T2R5XGY4.cjs.map +0 -1
- package/lib/chunk-T5BW3NQW.cjs +0 -134
- package/lib/chunk-T5BW3NQW.cjs.map +0 -1
- package/lib/chunk-T6BGMCNM.js +0 -61
- package/lib/chunk-T6BGMCNM.js.map +0 -1
- package/lib/chunk-TL3OBA4N.js +0 -82
- package/lib/chunk-TL3OBA4N.js.map +0 -1
- package/lib/chunk-TSIO7BVL.js +0 -77
- package/lib/chunk-TSIO7BVL.js.map +0 -1
- package/lib/chunk-TX4LQ66D.js +0 -305
- package/lib/chunk-TX4LQ66D.js.map +0 -1
- package/lib/chunk-TXJDJKNO.cjs +0 -179
- package/lib/chunk-TXJDJKNO.cjs.map +0 -1
- package/lib/chunk-TZB3ITFX.js +0 -177
- package/lib/chunk-TZB3ITFX.js.map +0 -1
- package/lib/chunk-U2YMMZI7.cjs +0 -79
- package/lib/chunk-U2YMMZI7.cjs.map +0 -1
- package/lib/chunk-U4IXGFAH.cjs +0 -81
- package/lib/chunk-U4IXGFAH.cjs.map +0 -1
- package/lib/chunk-U6SR6NW4.cjs +0 -179
- package/lib/chunk-U6SR6NW4.cjs.map +0 -1
- package/lib/chunk-UC6CO5EO.js +0 -58
- package/lib/chunk-UC6CO5EO.js.map +0 -1
- package/lib/chunk-UKCNJHEI.js +0 -51
- package/lib/chunk-UKCNJHEI.js.map +0 -1
- package/lib/chunk-USYXGMLW.cjs +0 -62
- package/lib/chunk-USYXGMLW.cjs.map +0 -1
- package/lib/chunk-UT7ITGTD.js +0 -50
- package/lib/chunk-UT7ITGTD.js.map +0 -1
- package/lib/chunk-UTANC4S3.js +0 -51
- package/lib/chunk-UTANC4S3.js.map +0 -1
- package/lib/chunk-UTKMV624.cjs +0 -91
- package/lib/chunk-UTKMV624.cjs.map +0 -1
- package/lib/chunk-UVTVQ3XM.js +0 -321
- package/lib/chunk-UVTVQ3XM.js.map +0 -1
- package/lib/chunk-UY5UOVA5.js +0 -68
- package/lib/chunk-UY5UOVA5.js.map +0 -1
- package/lib/chunk-UZXJKIWS.js +0 -60
- package/lib/chunk-UZXJKIWS.js.map +0 -1
- package/lib/chunk-V4Z3AVQ5.cjs +0 -193
- package/lib/chunk-V4Z3AVQ5.cjs.map +0 -1
- package/lib/chunk-V7STA2MI.js +0 -116
- package/lib/chunk-V7STA2MI.js.map +0 -1
- package/lib/chunk-VDFUCYKF.cjs +0 -122
- package/lib/chunk-VDFUCYKF.cjs.map +0 -1
- package/lib/chunk-VEWBKMYO.js +0 -60
- package/lib/chunk-VEWBKMYO.js.map +0 -1
- package/lib/chunk-VJZPWAOS.cjs +0 -60
- package/lib/chunk-VJZPWAOS.cjs.map +0 -1
- package/lib/chunk-VK7RTKH2.cjs +0 -62
- package/lib/chunk-VK7RTKH2.cjs.map +0 -1
- package/lib/chunk-VP2HZVZL.js +0 -86
- package/lib/chunk-VP2HZVZL.js.map +0 -1
- package/lib/chunk-VRTIEHU4.cjs +0 -84
- package/lib/chunk-VRTIEHU4.cjs.map +0 -1
- package/lib/chunk-VUSUG2V7.cjs +0 -75
- package/lib/chunk-VUSUG2V7.cjs.map +0 -1
- package/lib/chunk-VXF5K4Q2.js +0 -89
- package/lib/chunk-VXF5K4Q2.js.map +0 -1
- package/lib/chunk-VXQAZUOC.js +0 -68
- package/lib/chunk-VXQAZUOC.js.map +0 -1
- package/lib/chunk-VYOG7GOR.js +0 -164
- package/lib/chunk-VYOG7GOR.js.map +0 -1
- package/lib/chunk-W3DJZSUC.js +0 -68
- package/lib/chunk-W3DJZSUC.js.map +0 -1
- package/lib/chunk-W4VYQSWL.js +0 -68
- package/lib/chunk-W4VYQSWL.js.map +0 -1
- package/lib/chunk-WDHLTDFT.cjs +0 -198
- package/lib/chunk-WDHLTDFT.cjs.map +0 -1
- package/lib/chunk-WE7O2JQD.js +0 -78
- package/lib/chunk-WE7O2JQD.js.map +0 -1
- package/lib/chunk-WJETIVVT.cjs +0 -120
- package/lib/chunk-WJETIVVT.cjs.map +0 -1
- package/lib/chunk-WKCDGDOI.js +0 -132
- package/lib/chunk-WKCDGDOI.js.map +0 -1
- package/lib/chunk-WMCNHWIZ.cjs +0 -96
- package/lib/chunk-WMCNHWIZ.cjs.map +0 -1
- package/lib/chunk-WMFHLZIP.js +0 -177
- package/lib/chunk-WMFHLZIP.js.map +0 -1
- package/lib/chunk-WMYAGESR.cjs +0 -47
- package/lib/chunk-WMYAGESR.cjs.map +0 -1
- package/lib/chunk-WP7JEJSN.js +0 -79
- package/lib/chunk-WP7JEJSN.js.map +0 -1
- package/lib/chunk-WPF55XSY.js +0 -120
- package/lib/chunk-WPF55XSY.js.map +0 -1
- package/lib/chunk-XB5JE3RU.cjs +0 -60
- package/lib/chunk-XB5JE3RU.cjs.map +0 -1
- package/lib/chunk-XCDGHNQE.cjs +0 -79
- package/lib/chunk-XCDGHNQE.cjs.map +0 -1
- package/lib/chunk-XDXHUQKN.cjs +0 -70
- package/lib/chunk-XDXHUQKN.cjs.map +0 -1
- package/lib/chunk-XL2ZZNJT.cjs +0 -62
- package/lib/chunk-XL2ZZNJT.cjs.map +0 -1
- package/lib/chunk-XPDGCJRF.js +0 -86
- package/lib/chunk-XPDGCJRF.js.map +0 -1
- package/lib/chunk-XQCOOANO.cjs +0 -102
- package/lib/chunk-XQCOOANO.cjs.map +0 -1
- package/lib/chunk-XXMKVFAD.js +0 -96
- package/lib/chunk-XXMKVFAD.js.map +0 -1
- package/lib/chunk-XY3XGLVQ.js +0 -59
- package/lib/chunk-XY3XGLVQ.js.map +0 -1
- package/lib/chunk-XYEUNWP7.js +0 -116
- package/lib/chunk-XYEUNWP7.js.map +0 -1
- package/lib/chunk-Y3AWLIPE.js +0 -177
- package/lib/chunk-Y3AWLIPE.js.map +0 -1
- package/lib/chunk-Y4RL7J44.js +0 -60
- package/lib/chunk-Y4RL7J44.js.map +0 -1
- package/lib/chunk-Y6VJAXRZ.cjs +0 -70
- package/lib/chunk-Y6VJAXRZ.cjs.map +0 -1
- package/lib/chunk-Y7AMOQB3.js +0 -124
- package/lib/chunk-Y7AMOQB3.js.map +0 -1
- package/lib/chunk-Y7FJ5Q2J.cjs +0 -72
- package/lib/chunk-Y7FJ5Q2J.cjs.map +0 -1
- package/lib/chunk-YAW47KDX.cjs +0 -91
- package/lib/chunk-YAW47KDX.cjs.map +0 -1
- package/lib/chunk-YI4PGM5E.js +0 -33
- package/lib/chunk-YI4PGM5E.js.map +0 -1
- package/lib/chunk-YIGM3TRP.cjs +0 -193
- package/lib/chunk-YIGM3TRP.cjs.map +0 -1
- package/lib/chunk-YUMNWQ2B.cjs +0 -84
- package/lib/chunk-YUMNWQ2B.cjs.map +0 -1
- package/lib/chunk-YXDOEPHX.cjs +0 -79
- package/lib/chunk-YXDOEPHX.cjs.map +0 -1
- package/lib/chunk-Z2KWVYWJ.js +0 -68
- package/lib/chunk-Z2KWVYWJ.js.map +0 -1
- package/lib/chunk-Z6A2V36P.js +0 -68
- package/lib/chunk-Z6A2V36P.js.map +0 -1
- package/lib/chunk-Z6LVDEZN.cjs +0 -70
- package/lib/chunk-Z6LVDEZN.cjs.map +0 -1
- package/lib/chunk-ZDADYNKG.cjs +0 -69
- package/lib/chunk-ZDADYNKG.cjs.map +0 -1
- package/lib/chunk-ZELVMPF4.js +0 -118
- package/lib/chunk-ZELVMPF4.js.map +0 -1
- package/lib/chunk-ZIXEKEFD.js +0 -75
- package/lib/chunk-ZIXEKEFD.js.map +0 -1
- package/lib/chunk-ZOYQ4RRX.js +0 -709
- package/lib/chunk-ZOYQ4RRX.js.map +0 -1
- package/lib/chunk-ZPSB3SIY.js +0 -77
- package/lib/chunk-ZPSB3SIY.js.map +0 -1
- package/lib/chunk-ZWZKHKFG.js +0 -91
- package/lib/chunk-ZWZKHKFG.js.map +0 -1
package/lib/chunk-MRCX5DDN.cjs
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkA3HXYZE7_cjs = require('./chunk-A3HXYZE7.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/percentage_discount_promotions.ts
|
|
6
|
-
var PercentageDiscountPromotions = class _PercentageDiscountPromotions extends chunkA3HXYZE7_cjs.ApiResource {
|
|
7
|
-
static TYPE = "percentage_discount_promotions";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create(
|
|
10
|
-
{ ...resource, type: _PercentageDiscountPromotions.TYPE },
|
|
11
|
-
params,
|
|
12
|
-
options
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
async update(resource, params, options) {
|
|
16
|
-
return this.resources.update(
|
|
17
|
-
{ ...resource, type: _PercentageDiscountPromotions.TYPE },
|
|
18
|
-
params,
|
|
19
|
-
options
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
async delete(id, options) {
|
|
23
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PercentageDiscountPromotions.TYPE } : id, options);
|
|
24
|
-
}
|
|
25
|
-
async market(percentageDiscountPromotionId, params, options) {
|
|
26
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
27
|
-
return this.resources.fetch(
|
|
28
|
-
{ type: "markets" },
|
|
29
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/market`,
|
|
30
|
-
params,
|
|
31
|
-
options
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
async order_amount_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
35
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
36
|
-
return this.resources.fetch(
|
|
37
|
-
{ type: "order_amount_promotion_rules" },
|
|
38
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/order_amount_promotion_rule`,
|
|
39
|
-
params,
|
|
40
|
-
options
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
async sku_list_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
44
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
45
|
-
return this.resources.fetch(
|
|
46
|
-
{ type: "sku_list_promotion_rules" },
|
|
47
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list_promotion_rule`,
|
|
48
|
-
params,
|
|
49
|
-
options
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
async coupon_codes_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
53
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
54
|
-
return this.resources.fetch(
|
|
55
|
-
{ type: "coupon_codes_promotion_rules" },
|
|
56
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/coupon_codes_promotion_rule`,
|
|
57
|
-
params,
|
|
58
|
-
options
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
async custom_promotion_rule(percentageDiscountPromotionId, params, options) {
|
|
62
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
63
|
-
return this.resources.fetch(
|
|
64
|
-
{ type: "custom_promotion_rules" },
|
|
65
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/custom_promotion_rule`,
|
|
66
|
-
params,
|
|
67
|
-
options
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
async sku_list(percentageDiscountPromotionId, params, options) {
|
|
71
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
72
|
-
return this.resources.fetch(
|
|
73
|
-
{ type: "sku_lists" },
|
|
74
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`,
|
|
75
|
-
params,
|
|
76
|
-
options
|
|
77
|
-
);
|
|
78
|
-
}
|
|
79
|
-
async coupons(percentageDiscountPromotionId, params, options) {
|
|
80
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
81
|
-
return this.resources.fetch(
|
|
82
|
-
{ type: "coupons" },
|
|
83
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/coupons`,
|
|
84
|
-
params,
|
|
85
|
-
options
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
async attachments(percentageDiscountPromotionId, params, options) {
|
|
89
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
90
|
-
return this.resources.fetch(
|
|
91
|
-
{ type: "attachments" },
|
|
92
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/attachments`,
|
|
93
|
-
params,
|
|
94
|
-
options
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
async events(percentageDiscountPromotionId, params, options) {
|
|
98
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
99
|
-
return this.resources.fetch(
|
|
100
|
-
{ type: "events" },
|
|
101
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/events`,
|
|
102
|
-
params,
|
|
103
|
-
options
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
async tags(percentageDiscountPromotionId, params, options) {
|
|
107
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
108
|
-
return this.resources.fetch(
|
|
109
|
-
{ type: "tags" },
|
|
110
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`,
|
|
111
|
-
params,
|
|
112
|
-
options
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
async event_stores(percentageDiscountPromotionId, params, options) {
|
|
116
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
117
|
-
return this.resources.fetch(
|
|
118
|
-
{ type: "event_stores" },
|
|
119
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/event_stores`,
|
|
120
|
-
params,
|
|
121
|
-
options
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
async skus(percentageDiscountPromotionId, params, options) {
|
|
125
|
-
const _percentageDiscountPromotionId = percentageDiscountPromotionId.id || percentageDiscountPromotionId;
|
|
126
|
-
return this.resources.fetch(
|
|
127
|
-
{ type: "skus" },
|
|
128
|
-
`percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`,
|
|
129
|
-
params,
|
|
130
|
-
options
|
|
131
|
-
);
|
|
132
|
-
}
|
|
133
|
-
async _disable(id, params, options) {
|
|
134
|
-
return this.resources.update(
|
|
135
|
-
{ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _disable: true },
|
|
136
|
-
params,
|
|
137
|
-
options
|
|
138
|
-
);
|
|
139
|
-
}
|
|
140
|
-
async _enable(id, params, options) {
|
|
141
|
-
return this.resources.update(
|
|
142
|
-
{ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _enable: true },
|
|
143
|
-
params,
|
|
144
|
-
options
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
148
|
-
return this.resources.update(
|
|
149
|
-
{ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _add_tags: triggerValue },
|
|
150
|
-
params,
|
|
151
|
-
options
|
|
152
|
-
);
|
|
153
|
-
}
|
|
154
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
155
|
-
return this.resources.update(
|
|
156
|
-
{ id: typeof id === "string" ? id : id.id, type: _PercentageDiscountPromotions.TYPE, _remove_tags: triggerValue },
|
|
157
|
-
params,
|
|
158
|
-
options
|
|
159
|
-
);
|
|
160
|
-
}
|
|
161
|
-
isPercentageDiscountPromotion(resource) {
|
|
162
|
-
return resource.type && resource.type === _PercentageDiscountPromotions.TYPE;
|
|
163
|
-
}
|
|
164
|
-
relationship(id) {
|
|
165
|
-
return super.relationshipOneToOne(id);
|
|
166
|
-
}
|
|
167
|
-
relationshipToMany(...ids) {
|
|
168
|
-
return super.relationshipOneToMany(...ids);
|
|
169
|
-
}
|
|
170
|
-
type() {
|
|
171
|
-
return _PercentageDiscountPromotions.TYPE;
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
var instance = new PercentageDiscountPromotions();
|
|
175
|
-
var percentage_discount_promotions_default = instance;
|
|
176
|
-
|
|
177
|
-
exports.percentage_discount_promotions_default = percentage_discount_promotions_default;
|
|
178
|
-
//# sourceMappingURL=chunk-MRCX5DDN.cjs.map
|
|
179
|
-
//# sourceMappingURL=chunk-MRCX5DDN.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/percentage_discount_promotions.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-MRCX5DDN.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { 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\ntype PercentageDiscountPromotionType = 'percentage_discount_promotions'\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\nexport type PercentageDiscountPromotionSort = Pick<\n PercentageDiscountPromotion,\n | 'id'\n | 'name'\n | 'currency_code'\n | 'exclusive'\n | 'priority'\n | 'starts_at'\n | 'expires_at'\n | 'total_usage_limit'\n | 'total_usage_count'\n | 'total_usage_reached'\n | 'disabled_at'\n> &\n ResourceSort\n// export type PercentageDiscountPromotionFilter = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceFilter\n\n/**\n * The Percentage discount promotion object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/percentage_discount_promotions endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/percentage_discount_promotions/object\n */\ninterface PercentageDiscountPromotion extends Resource {\n readonly type: PercentageDiscountPromotionType\n\n /**\n * The promotion's internal name.\n * @example ```\"Personal promotion\"```\n */\n name: string\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code?: string | null\n /**\n * Indicates if the promotion will be applied exclusively, based on its priority score.\n * @example ```true```\n */\n exclusive?: boolean | null\n /**\n * The priority assigned to the promotion (lower means higher priority).\n * @example ```2```\n */\n priority?: number | null\n /**\n * The activation date/time of this promotion.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n starts_at: string\n /**\n * The expiration date/time of this promotion (must be after starts_at).\n * @example ```\"2018-01-02T12:00:00.000Z\"```\n */\n expires_at: string\n /**\n * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n * @example ```5```\n */\n total_usage_limit?: number | null\n /**\n * The number of times this promotion has been applied.\n * @example ```2```\n */\n total_usage_count?: number | null\n /**\n * Indicates if the promotion has been applied the total number of allowed times.\n */\n total_usage_reached?: boolean | null\n /**\n * Indicates if the promotion is active (enabled and not expired).\n * @example ```true```\n */\n active?: boolean | null\n /**\n * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n * @example ```\"pending\"```\n */\n status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n /**\n * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n * @example ```112```\n */\n weight?: number | null\n /**\n * The total number of coupons created for this promotion.\n * @example ```2```\n */\n coupons_count?: number | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n /**\n * The discount percentage to be applied.\n * @example ```10```\n */\n percentage: number\n\n market?: Market | null\n promotion_rules?: PromotionRule[] | null\n order_amount_promotion_rule?: OrderAmountPromotionRule | null\n sku_list_promotion_rule?: SkuListPromotionRule | null\n coupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n custom_promotion_rule?: CustomPromotionRule | null\n sku_list?: SkuList | null\n coupons?: Coupon[] | null\n attachments?: Attachment[] | null\n events?: Event[] | null\n tags?: Tag[] | null\n event_stores?: EventStore[] | null\n skus?: Sku[] | null\n}\n\ninterface PercentageDiscountPromotionCreate extends ResourceCreate {\n /**\n * The promotion's internal name.\n * @example ```\"Personal promotion\"```\n */\n name: string\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code?: string | null\n /**\n * Indicates if the promotion will be applied exclusively, based on its priority score.\n * @example ```true```\n */\n exclusive?: boolean | null\n /**\n * The priority assigned to the promotion (lower means higher priority).\n * @example ```2```\n */\n priority?: number | null\n /**\n * The activation date/time of this promotion.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n starts_at: string\n /**\n * The expiration date/time of this promotion (must be after starts_at).\n * @example ```\"2018-01-02T12:00:00.000Z\"```\n */\n expires_at: string\n /**\n * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n * @example ```5```\n */\n total_usage_limit?: number | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * The discount percentage to be applied.\n * @example ```10```\n */\n percentage: number\n\n market?: MarketRel | null\n order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n sku_list_promotion_rule?: SkuListPromotionRuleRel | null\n coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n custom_promotion_rule?: CustomPromotionRuleRel | null\n sku_list?: SkuListRel | null\n tags?: TagRel[] | null\n}\n\ninterface PercentageDiscountPromotionUpdate extends ResourceUpdate {\n /**\n * The promotion's internal name.\n * @example ```\"Personal promotion\"```\n */\n name?: string | null\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code?: string | null\n /**\n * Indicates if the promotion will be applied exclusively, based on its priority score.\n * @example ```true```\n */\n exclusive?: boolean | null\n /**\n * The priority assigned to the promotion (lower means higher priority).\n * @example ```2```\n */\n priority?: number | null\n /**\n * The activation date/time of this promotion.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n starts_at?: string | null\n /**\n * The expiration date/time of this promotion (must be after starts_at).\n * @example ```\"2018-01-02T12:00:00.000Z\"```\n */\n expires_at?: string | null\n /**\n * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n * @example ```5```\n */\n total_usage_limit?: number | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n */\n _add_tags?: string | null\n /**\n * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n */\n _remove_tags?: string | null\n /**\n * The discount percentage to be applied.\n * @example ```10```\n */\n percentage?: number | null\n\n market?: MarketRel | null\n order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n sku_list_promotion_rule?: SkuListPromotionRuleRel | null\n coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n custom_promotion_rule?: CustomPromotionRuleRel | null\n sku_list?: SkuListRel | null\n tags?: TagRel[] | null\n}\n\nclass PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {\n static readonly TYPE: PercentageDiscountPromotionType = 'percentage_discount_promotions' as const\n\n async create(\n resource: PercentageDiscountPromotionCreate,\n params?: QueryParamsRetrieve<PercentageDiscountPromotion>,\n options?: ResourcesConfig,\n ): Promise<PercentageDiscountPromotion> {\n return this.resources.create<PercentageDiscountPromotionCreate, PercentageDiscountPromotion>(\n { ...resource, type: PercentageDiscountPromotions.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: PercentageDiscountPromotionUpdate,\n params?: QueryParamsRetrieve<PercentageDiscountPromotion>,\n options?: ResourcesConfig,\n ): Promise<PercentageDiscountPromotion> {\n return this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>(\n { ...resource, type: PercentageDiscountPromotions.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: PercentageDiscountPromotions.TYPE } : id, options)\n }\n\n async market(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<Market>,\n options?: ResourcesConfig,\n ): Promise<Market> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<Market>(\n { type: 'markets' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/market`,\n params,\n options,\n ) as unknown as Market\n }\n\n async order_amount_promotion_rule(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<OrderAmountPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<OrderAmountPromotionRule> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<OrderAmountPromotionRule>(\n { type: 'order_amount_promotion_rules' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/order_amount_promotion_rule`,\n params,\n options,\n ) as unknown as OrderAmountPromotionRule\n }\n\n async sku_list_promotion_rule(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<SkuListPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<SkuListPromotionRule> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<SkuListPromotionRule>(\n { type: 'sku_list_promotion_rules' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list_promotion_rule`,\n params,\n options,\n ) as unknown as SkuListPromotionRule\n }\n\n async coupon_codes_promotion_rule(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<CouponCodesPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CouponCodesPromotionRule> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<CouponCodesPromotionRule>(\n { type: 'coupon_codes_promotion_rules' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupon_codes_promotion_rule`,\n params,\n options,\n ) as unknown as CouponCodesPromotionRule\n }\n\n async custom_promotion_rule(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<CustomPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CustomPromotionRule> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<CustomPromotionRule>(\n { type: 'custom_promotion_rules' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/custom_promotion_rule`,\n params,\n options,\n ) as unknown as CustomPromotionRule\n }\n\n async sku_list(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<SkuList>,\n options?: ResourcesConfig,\n ): Promise<SkuList> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<SkuList>(\n { type: 'sku_lists' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`,\n params,\n options,\n ) as unknown as SkuList\n }\n\n async coupons(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsList<Coupon>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Coupon>> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<Coupon>(\n { type: 'coupons' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupons`,\n params,\n options,\n ) as unknown as ListResponse<Coupon>\n }\n\n async attachments(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async events(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async tags(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsList<Tag>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Tag>> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<Tag>(\n { type: 'tags' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`,\n params,\n options,\n ) as unknown as ListResponse<Tag>\n }\n\n async event_stores(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async skus(\n percentageDiscountPromotionId: string | PercentageDiscountPromotion,\n params?: QueryParamsList<Sku>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Sku>> {\n const _percentageDiscountPromotionId =\n (percentageDiscountPromotionId as PercentageDiscountPromotion).id || (percentageDiscountPromotionId as string)\n return this.resources.fetch<Sku>(\n { type: 'skus' },\n `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`,\n params,\n options,\n ) as unknown as ListResponse<Sku>\n }\n\n async _disable(\n id: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<PercentageDiscountPromotion>,\n options?: ResourcesConfig,\n ): Promise<PercentageDiscountPromotion> {\n return this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: PercentageDiscountPromotions.TYPE, _disable: true },\n params,\n options,\n )\n }\n\n async _enable(\n id: string | PercentageDiscountPromotion,\n params?: QueryParamsRetrieve<PercentageDiscountPromotion>,\n options?: ResourcesConfig,\n ): Promise<PercentageDiscountPromotion> {\n return this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: PercentageDiscountPromotions.TYPE, _enable: true },\n params,\n options,\n )\n }\n\n async _add_tags(\n id: string | PercentageDiscountPromotion,\n triggerValue: string,\n params?: QueryParamsRetrieve<PercentageDiscountPromotion>,\n options?: ResourcesConfig,\n ): Promise<PercentageDiscountPromotion> {\n return this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: PercentageDiscountPromotions.TYPE, _add_tags: triggerValue },\n params,\n options,\n )\n }\n\n async _remove_tags(\n id: string | PercentageDiscountPromotion,\n triggerValue: string,\n params?: QueryParamsRetrieve<PercentageDiscountPromotion>,\n options?: ResourcesConfig,\n ): Promise<PercentageDiscountPromotion> {\n return this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: PercentageDiscountPromotions.TYPE, _remove_tags: triggerValue },\n params,\n options,\n )\n }\n\n isPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion {\n return resource.type && resource.type === PercentageDiscountPromotions.TYPE\n }\n\n relationship(id: string | ResourceId | null): PercentageDiscountPromotionRel {\n return super.relationshipOneToOne<PercentageDiscountPromotionRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PercentageDiscountPromotionRel[] {\n return super.relationshipOneToMany<PercentageDiscountPromotionRel>(...ids)\n }\n\n type(): PercentageDiscountPromotionType {\n return PercentageDiscountPromotions.TYPE\n }\n}\n\nconst instance = new PercentageDiscountPromotions()\nexport default instance\n\nexport type {\n PercentageDiscountPromotion,\n PercentageDiscountPromotionCreate,\n PercentageDiscountPromotions,\n PercentageDiscountPromotionType,\n PercentageDiscountPromotionUpdate,\n}\n"]}
|
package/lib/chunk-MYZKUUVU.js
DELETED
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-TX4LQ66D.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/paypal_gateways.ts
|
|
4
|
-
var PaypalGateways = class _PaypalGateways extends ApiResource {
|
|
5
|
-
static TYPE = "paypal_gateways";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create(
|
|
8
|
-
{ ...resource, type: _PaypalGateways.TYPE },
|
|
9
|
-
params,
|
|
10
|
-
options
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
async update(resource, params, options) {
|
|
14
|
-
return this.resources.update(
|
|
15
|
-
{ ...resource, type: _PaypalGateways.TYPE },
|
|
16
|
-
params,
|
|
17
|
-
options
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
async delete(id, options) {
|
|
21
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PaypalGateways.TYPE } : id, options);
|
|
22
|
-
}
|
|
23
|
-
async payment_methods(paypalGatewayId, params, options) {
|
|
24
|
-
const _paypalGatewayId = paypalGatewayId.id || paypalGatewayId;
|
|
25
|
-
return this.resources.fetch(
|
|
26
|
-
{ type: "payment_methods" },
|
|
27
|
-
`paypal_gateways/${_paypalGatewayId}/payment_methods`,
|
|
28
|
-
params,
|
|
29
|
-
options
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
async event_stores(paypalGatewayId, params, options) {
|
|
33
|
-
const _paypalGatewayId = paypalGatewayId.id || paypalGatewayId;
|
|
34
|
-
return this.resources.fetch(
|
|
35
|
-
{ type: "event_stores" },
|
|
36
|
-
`paypal_gateways/${_paypalGatewayId}/event_stores`,
|
|
37
|
-
params,
|
|
38
|
-
options
|
|
39
|
-
);
|
|
40
|
-
}
|
|
41
|
-
async paypal_payments(paypalGatewayId, params, options) {
|
|
42
|
-
const _paypalGatewayId = paypalGatewayId.id || paypalGatewayId;
|
|
43
|
-
return this.resources.fetch(
|
|
44
|
-
{ type: "paypal_payments" },
|
|
45
|
-
`paypal_gateways/${_paypalGatewayId}/paypal_payments`,
|
|
46
|
-
params,
|
|
47
|
-
options
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
async _disable(id, params, options) {
|
|
51
|
-
return this.resources.update(
|
|
52
|
-
{ id: typeof id === "string" ? id : id.id, type: _PaypalGateways.TYPE, _disable: true },
|
|
53
|
-
params,
|
|
54
|
-
options
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
async _enable(id, params, options) {
|
|
58
|
-
return this.resources.update(
|
|
59
|
-
{ id: typeof id === "string" ? id : id.id, type: _PaypalGateways.TYPE, _enable: true },
|
|
60
|
-
params,
|
|
61
|
-
options
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
async _check(id, params, options) {
|
|
65
|
-
return this.resources.update(
|
|
66
|
-
{ id: typeof id === "string" ? id : id.id, type: _PaypalGateways.TYPE, _check: true },
|
|
67
|
-
params,
|
|
68
|
-
options
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
isPaypalGateway(resource) {
|
|
72
|
-
return resource.type && resource.type === _PaypalGateways.TYPE;
|
|
73
|
-
}
|
|
74
|
-
relationship(id) {
|
|
75
|
-
return super.relationshipOneToOne(id);
|
|
76
|
-
}
|
|
77
|
-
relationshipToMany(...ids) {
|
|
78
|
-
return super.relationshipOneToMany(...ids);
|
|
79
|
-
}
|
|
80
|
-
type() {
|
|
81
|
-
return _PaypalGateways.TYPE;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
var instance = new PaypalGateways();
|
|
85
|
-
var paypal_gateways_default = instance;
|
|
86
|
-
|
|
87
|
-
export { paypal_gateways_default };
|
|
88
|
-
//# sourceMappingURL=chunk-MYZKUUVU.js.map
|
|
89
|
-
//# sourceMappingURL=chunk-MYZKUUVU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/paypal_gateways.ts"],"names":[],"mappings":"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","file":"chunk-MYZKUUVU.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\nimport type { PaypalPayment } from './paypal_payments'\n\ntype PaypalGatewayType = 'paypal_gateways'\ntype PaypalGatewayRel = ResourceRel & { type: PaypalGatewayType }\n\nexport type PaypalGatewaySort = Pick<PaypalGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type PaypalGatewayFilter = Pick<PaypalGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n/**\n * The Paypal gateway object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/paypal_gateways endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/paypal_gateways/object\n */\ninterface PaypalGateway extends Resource {\n readonly type: PaypalGatewayType\n\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name: string\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * The payment gateway's API credential keys last digits.\n * @example ```{\"api_key\":\"********BW989\"}```\n */\n credential_keys?: Record<string, any> | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n\n payment_methods?: PaymentMethod[] | null\n event_stores?: EventStore[] | null\n paypal_payments?: PaypalPayment[] | null\n}\n\ninterface PaypalGatewayCreate extends ResourceCreate {\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name: string\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n * @example ```true```\n */\n _check?: boolean | null\n /**\n * The gateway client ID.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n client_id: string\n /**\n * The gateway client secret.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n client_secret: string\n}\n\ninterface PaypalGatewayUpdate extends ResourceUpdate {\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name?: string | null\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n * @example ```true```\n */\n _check?: boolean | null\n /**\n * The gateway client ID.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n client_id?: string | null\n /**\n * The gateway client secret.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n client_secret?: string | null\n}\n\nclass PaypalGateways extends ApiResource<PaypalGateway> {\n static readonly TYPE: PaypalGatewayType = 'paypal_gateways' as const\n\n async create(\n resource: PaypalGatewayCreate,\n params?: QueryParamsRetrieve<PaypalGateway>,\n options?: ResourcesConfig,\n ): Promise<PaypalGateway> {\n return this.resources.create<PaypalGatewayCreate, PaypalGateway>(\n { ...resource, type: PaypalGateways.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: PaypalGatewayUpdate,\n params?: QueryParamsRetrieve<PaypalGateway>,\n options?: ResourcesConfig,\n ): Promise<PaypalGateway> {\n return this.resources.update<PaypalGatewayUpdate, PaypalGateway>(\n { ...resource, type: PaypalGateways.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: PaypalGateways.TYPE } : id, options)\n }\n\n async payment_methods(\n paypalGatewayId: string | PaypalGateway,\n params?: QueryParamsList<PaymentMethod>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<PaymentMethod>> {\n const _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || (paypalGatewayId as string)\n return this.resources.fetch<PaymentMethod>(\n { type: 'payment_methods' },\n `paypal_gateways/${_paypalGatewayId}/payment_methods`,\n params,\n options,\n ) as unknown as ListResponse<PaymentMethod>\n }\n\n async event_stores(\n paypalGatewayId: string | PaypalGateway,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || (paypalGatewayId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `paypal_gateways/${_paypalGatewayId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async paypal_payments(\n paypalGatewayId: string | PaypalGateway,\n params?: QueryParamsList<PaypalPayment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<PaypalPayment>> {\n const _paypalGatewayId = (paypalGatewayId as PaypalGateway).id || (paypalGatewayId as string)\n return this.resources.fetch<PaypalPayment>(\n { type: 'paypal_payments' },\n `paypal_gateways/${_paypalGatewayId}/paypal_payments`,\n params,\n options,\n ) as unknown as ListResponse<PaypalPayment>\n }\n\n async _disable(\n id: string | PaypalGateway,\n params?: QueryParamsRetrieve<PaypalGateway>,\n options?: ResourcesConfig,\n ): Promise<PaypalGateway> {\n return this.resources.update<PaypalGatewayUpdate, PaypalGateway>(\n { id: typeof id === 'string' ? id : id.id, type: PaypalGateways.TYPE, _disable: true },\n params,\n options,\n )\n }\n\n async _enable(\n id: string | PaypalGateway,\n params?: QueryParamsRetrieve<PaypalGateway>,\n options?: ResourcesConfig,\n ): Promise<PaypalGateway> {\n return this.resources.update<PaypalGatewayUpdate, PaypalGateway>(\n { id: typeof id === 'string' ? id : id.id, type: PaypalGateways.TYPE, _enable: true },\n params,\n options,\n )\n }\n\n async _check(\n id: string | PaypalGateway,\n params?: QueryParamsRetrieve<PaypalGateway>,\n options?: ResourcesConfig,\n ): Promise<PaypalGateway> {\n return this.resources.update<PaypalGatewayUpdate, PaypalGateway>(\n { id: typeof id === 'string' ? id : id.id, type: PaypalGateways.TYPE, _check: true },\n params,\n options,\n )\n }\n\n isPaypalGateway(resource: any): resource is PaypalGateway {\n return resource.type && resource.type === PaypalGateways.TYPE\n }\n\n relationship(id: string | ResourceId | null): PaypalGatewayRel {\n return super.relationshipOneToOne<PaypalGatewayRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PaypalGatewayRel[] {\n return super.relationshipOneToMany<PaypalGatewayRel>(...ids)\n }\n\n type(): PaypalGatewayType {\n return PaypalGateways.TYPE\n }\n}\n\nconst instance = new PaypalGateways()\nexport default instance\n\nexport type { PaypalGateway, PaypalGatewayCreate, PaypalGateways, PaypalGatewayType, PaypalGatewayUpdate }\n"]}
|
package/lib/chunk-N2GNN5KY.cjs
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkA3HXYZE7_cjs = require('./chunk-A3HXYZE7.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/stripe_gateways.ts
|
|
6
|
-
var StripeGateways = class _StripeGateways extends chunkA3HXYZE7_cjs.ApiResource {
|
|
7
|
-
static TYPE = "stripe_gateways";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create(
|
|
10
|
-
{ ...resource, type: _StripeGateways.TYPE },
|
|
11
|
-
params,
|
|
12
|
-
options
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
async update(resource, params, options) {
|
|
16
|
-
return this.resources.update(
|
|
17
|
-
{ ...resource, type: _StripeGateways.TYPE },
|
|
18
|
-
params,
|
|
19
|
-
options
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
async delete(id, options) {
|
|
23
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _StripeGateways.TYPE } : id, options);
|
|
24
|
-
}
|
|
25
|
-
async payment_methods(stripeGatewayId, params, options) {
|
|
26
|
-
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
27
|
-
return this.resources.fetch(
|
|
28
|
-
{ type: "payment_methods" },
|
|
29
|
-
`stripe_gateways/${_stripeGatewayId}/payment_methods`,
|
|
30
|
-
params,
|
|
31
|
-
options
|
|
32
|
-
);
|
|
33
|
-
}
|
|
34
|
-
async event_stores(stripeGatewayId, params, options) {
|
|
35
|
-
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
36
|
-
return this.resources.fetch(
|
|
37
|
-
{ type: "event_stores" },
|
|
38
|
-
`stripe_gateways/${_stripeGatewayId}/event_stores`,
|
|
39
|
-
params,
|
|
40
|
-
options
|
|
41
|
-
);
|
|
42
|
-
}
|
|
43
|
-
async stripe_payments(stripeGatewayId, params, options) {
|
|
44
|
-
const _stripeGatewayId = stripeGatewayId.id || stripeGatewayId;
|
|
45
|
-
return this.resources.fetch(
|
|
46
|
-
{ type: "stripe_payments" },
|
|
47
|
-
`stripe_gateways/${_stripeGatewayId}/stripe_payments`,
|
|
48
|
-
params,
|
|
49
|
-
options
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
async _disable(id, params, options) {
|
|
53
|
-
return this.resources.update(
|
|
54
|
-
{ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _disable: true },
|
|
55
|
-
params,
|
|
56
|
-
options
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
async _enable(id, params, options) {
|
|
60
|
-
return this.resources.update(
|
|
61
|
-
{ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _enable: true },
|
|
62
|
-
params,
|
|
63
|
-
options
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
async _check(id, params, options) {
|
|
67
|
-
return this.resources.update(
|
|
68
|
-
{ id: typeof id === "string" ? id : id.id, type: _StripeGateways.TYPE, _check: true },
|
|
69
|
-
params,
|
|
70
|
-
options
|
|
71
|
-
);
|
|
72
|
-
}
|
|
73
|
-
isStripeGateway(resource) {
|
|
74
|
-
return resource.type && resource.type === _StripeGateways.TYPE;
|
|
75
|
-
}
|
|
76
|
-
relationship(id) {
|
|
77
|
-
return super.relationshipOneToOne(id);
|
|
78
|
-
}
|
|
79
|
-
relationshipToMany(...ids) {
|
|
80
|
-
return super.relationshipOneToMany(...ids);
|
|
81
|
-
}
|
|
82
|
-
type() {
|
|
83
|
-
return _StripeGateways.TYPE;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
var instance = new StripeGateways();
|
|
87
|
-
var stripe_gateways_default = instance;
|
|
88
|
-
|
|
89
|
-
exports.stripe_gateways_default = stripe_gateways_default;
|
|
90
|
-
//# sourceMappingURL=chunk-N2GNN5KY.cjs.map
|
|
91
|
-
//# sourceMappingURL=chunk-N2GNN5KY.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/stripe_gateways.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-N2GNN5KY.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\nimport type { StripePayment } from './stripe_payments'\n\ntype StripeGatewayType = 'stripe_gateways'\ntype StripeGatewayRel = ResourceRel & { type: StripeGatewayType }\n\nexport type StripeGatewaySort = Pick<StripeGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type StripeGatewayFilter = Pick<StripeGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n/**\n * The Stripe gateway object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/stripe_gateways endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/stripe_gateways/object\n */\ninterface StripeGateway extends Resource {\n readonly type: StripeGatewayType\n\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name: string\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * The payment gateway's API credential keys last digits.\n * @example ```{\"api_key\":\"********BW989\"}```\n */\n credential_keys?: Record<string, any> | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n /**\n * The account (if any) for which the funds of the PaymentIntent are intended.\n * @example ```\"acct_xxxx-yyyy-zzzz\"```\n */\n connected_account?: string | null\n /**\n * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n * @example ```true```\n */\n auto_payments?: boolean | null\n /**\n * The gateway webhook endpoint ID, generated automatically.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n webhook_endpoint_id?: string | null\n /**\n * The gateway webhook endpoint secret, generated automatically.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n webhook_endpoint_secret?: string | null\n /**\n * The gateway webhook URL, generated automatically.\n * @example ```\"https://core.commercelayer.co/webhook_callbacks/stripe_gateways/xxxxx\"```\n */\n webhook_endpoint_url?: string | null\n\n payment_methods?: PaymentMethod[] | null\n event_stores?: EventStore[] | null\n stripe_payments?: StripePayment[] | null\n}\n\ninterface StripeGatewayCreate extends ResourceCreate {\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name: string\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n * @example ```true```\n */\n _check?: boolean | null\n /**\n * The gateway login.\n * @example ```\"sk_live_xxxx-yyyy-zzzz\"```\n */\n login: string\n /**\n * The gateway publishable API key.\n * @example ```\"pk_live_xxxx-yyyy-zzzz\"```\n */\n publishable_key?: string | null\n /**\n * The account (if any) for which the funds of the PaymentIntent are intended.\n * @example ```\"acct_xxxx-yyyy-zzzz\"```\n */\n connected_account?: string | null\n /**\n * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n * @example ```true```\n */\n auto_payments?: boolean | null\n}\n\ninterface StripeGatewayUpdate extends ResourceUpdate {\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name?: string | null\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n * @example ```true```\n */\n _check?: boolean | null\n /**\n * The account (if any) for which the funds of the PaymentIntent are intended.\n * @example ```\"acct_xxxx-yyyy-zzzz\"```\n */\n connected_account?: string | null\n /**\n * Indicates if the gateway will accept payment methods enabled in the Stripe dashboard.\n * @example ```true```\n */\n auto_payments?: boolean | null\n}\n\nclass StripeGateways extends ApiResource<StripeGateway> {\n static readonly TYPE: StripeGatewayType = 'stripe_gateways' as const\n\n async create(\n resource: StripeGatewayCreate,\n params?: QueryParamsRetrieve<StripeGateway>,\n options?: ResourcesConfig,\n ): Promise<StripeGateway> {\n return this.resources.create<StripeGatewayCreate, StripeGateway>(\n { ...resource, type: StripeGateways.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: StripeGatewayUpdate,\n params?: QueryParamsRetrieve<StripeGateway>,\n options?: ResourcesConfig,\n ): Promise<StripeGateway> {\n return this.resources.update<StripeGatewayUpdate, StripeGateway>(\n { ...resource, type: StripeGateways.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: StripeGateways.TYPE } : id, options)\n }\n\n async payment_methods(\n stripeGatewayId: string | StripeGateway,\n params?: QueryParamsList<PaymentMethod>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<PaymentMethod>> {\n const _stripeGatewayId = (stripeGatewayId as StripeGateway).id || (stripeGatewayId as string)\n return this.resources.fetch<PaymentMethod>(\n { type: 'payment_methods' },\n `stripe_gateways/${_stripeGatewayId}/payment_methods`,\n params,\n options,\n ) as unknown as ListResponse<PaymentMethod>\n }\n\n async event_stores(\n stripeGatewayId: string | StripeGateway,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _stripeGatewayId = (stripeGatewayId as StripeGateway).id || (stripeGatewayId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `stripe_gateways/${_stripeGatewayId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async stripe_payments(\n stripeGatewayId: string | StripeGateway,\n params?: QueryParamsList<StripePayment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<StripePayment>> {\n const _stripeGatewayId = (stripeGatewayId as StripeGateway).id || (stripeGatewayId as string)\n return this.resources.fetch<StripePayment>(\n { type: 'stripe_payments' },\n `stripe_gateways/${_stripeGatewayId}/stripe_payments`,\n params,\n options,\n ) as unknown as ListResponse<StripePayment>\n }\n\n async _disable(\n id: string | StripeGateway,\n params?: QueryParamsRetrieve<StripeGateway>,\n options?: ResourcesConfig,\n ): Promise<StripeGateway> {\n return this.resources.update<StripeGatewayUpdate, StripeGateway>(\n { id: typeof id === 'string' ? id : id.id, type: StripeGateways.TYPE, _disable: true },\n params,\n options,\n )\n }\n\n async _enable(\n id: string | StripeGateway,\n params?: QueryParamsRetrieve<StripeGateway>,\n options?: ResourcesConfig,\n ): Promise<StripeGateway> {\n return this.resources.update<StripeGatewayUpdate, StripeGateway>(\n { id: typeof id === 'string' ? id : id.id, type: StripeGateways.TYPE, _enable: true },\n params,\n options,\n )\n }\n\n async _check(\n id: string | StripeGateway,\n params?: QueryParamsRetrieve<StripeGateway>,\n options?: ResourcesConfig,\n ): Promise<StripeGateway> {\n return this.resources.update<StripeGatewayUpdate, StripeGateway>(\n { id: typeof id === 'string' ? id : id.id, type: StripeGateways.TYPE, _check: true },\n params,\n options,\n )\n }\n\n isStripeGateway(resource: any): resource is StripeGateway {\n return resource.type && resource.type === StripeGateways.TYPE\n }\n\n relationship(id: string | ResourceId | null): StripeGatewayRel {\n return super.relationshipOneToOne<StripeGatewayRel>(id)\n }\n\n relationshipToMany(...ids: string[]): StripeGatewayRel[] {\n return super.relationshipOneToMany<StripeGatewayRel>(...ids)\n }\n\n type(): StripeGatewayType {\n return StripeGateways.TYPE\n }\n}\n\nconst instance = new StripeGateways()\nexport default instance\n\nexport type { StripeGateway, StripeGatewayCreate, StripeGateways, StripeGatewayType, StripeGatewayUpdate }\n"]}
|
package/lib/chunk-NASC5VUL.js
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-TX4LQ66D.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/payment_gateways.ts
|
|
4
|
-
var PaymentGateways = class _PaymentGateways extends ApiResource {
|
|
5
|
-
static TYPE = "payment_gateways";
|
|
6
|
-
async payment_methods(paymentGatewayId, params, options) {
|
|
7
|
-
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
|
8
|
-
return this.resources.fetch(
|
|
9
|
-
{ type: "payment_methods" },
|
|
10
|
-
`payment_gateways/${_paymentGatewayId}/payment_methods`,
|
|
11
|
-
params,
|
|
12
|
-
options
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
async event_stores(paymentGatewayId, params, options) {
|
|
16
|
-
const _paymentGatewayId = paymentGatewayId.id || paymentGatewayId;
|
|
17
|
-
return this.resources.fetch(
|
|
18
|
-
{ type: "event_stores" },
|
|
19
|
-
`payment_gateways/${_paymentGatewayId}/event_stores`,
|
|
20
|
-
params,
|
|
21
|
-
options
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
isPaymentGateway(resource) {
|
|
25
|
-
return !!resource.type && (resource.type === _PaymentGateways.TYPE || [
|
|
26
|
-
"adyen_gateways",
|
|
27
|
-
"axerve_gateways",
|
|
28
|
-
"braintree_gateways",
|
|
29
|
-
"checkout_com_gateways",
|
|
30
|
-
"external_gateways",
|
|
31
|
-
"klarna_gateways",
|
|
32
|
-
"manual_gateways",
|
|
33
|
-
"paypal_gateways",
|
|
34
|
-
"satispay_gateways",
|
|
35
|
-
"stripe_gateways"
|
|
36
|
-
].includes(resource.type));
|
|
37
|
-
}
|
|
38
|
-
relationship(id) {
|
|
39
|
-
return super.relationshipOneToOne(id);
|
|
40
|
-
}
|
|
41
|
-
relationshipToMany(...ids) {
|
|
42
|
-
return super.relationshipOneToMany(...ids);
|
|
43
|
-
}
|
|
44
|
-
type() {
|
|
45
|
-
return _PaymentGateways.TYPE;
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var instance = new PaymentGateways();
|
|
49
|
-
var payment_gateways_default = instance;
|
|
50
|
-
|
|
51
|
-
export { payment_gateways_default };
|
|
52
|
-
//# sourceMappingURL=chunk-NASC5VUL.js.map
|
|
53
|
-
//# sourceMappingURL=chunk-NASC5VUL.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/payment_gateways.ts"],"names":[],"mappings":";;;AAqFA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,WAAA,CAA4B;AAAA,EACxD,OAAgB,IAAA,GAA2B,kBAAA;AAAA,EAE3C,MAAM,eAAA,CACJ,gBAAA,EACA,MAAA,EACA,OAAA,EACsC;AACtC,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAO,gBAAA;AACtE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,iBAAA,EAAkB;AAAA,MAC1B,oBAAoB,iBAAiB,CAAA,gBAAA,CAAA;AAAA,MACrC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,gBAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAO,gBAAA;AACtE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,oBAAoB,iBAAiB,CAAA,aAAA,CAAA;AAAA,MACrC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,iBAAiB,QAAA,EAA2C;AAC1D,IAAA,OACE,CAAC,CAAC,QAAA,CAAS,SACV,QAAA,CAAS,IAAA,KAAS,iBAAgB,IAAA,IACjC;AAAA,MACE,gBAAA;AAAA,MACA,iBAAA;AAAA,MACA,oBAAA;AAAA,MACA,uBAAA;AAAA,MACA,mBAAA;AAAA,MACA,iBAAA;AAAA,MACA,iBAAA;AAAA,MACA,iBAAA;AAAA,MACA,mBAAA;AAAA,MACA;AAAA,KACF,CAAE,QAAA,CAAS,QAAA,CAAS,IAAI,CAAA,CAAA;AAAA,EAE9B;AAAA,EAEA,aAAa,EAAA,EAAmD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA,EACzD;AAAA,EAEA,sBAAsB,GAAA,EAAoC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAyC,GAAG,GAAG,CAAA;AAAA,EAC9D;AAAA,EAEA,IAAA,GAA2B;AACzB,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA,EACzB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,wBAAA,GAAQ","file":"chunk-NASC5VUL.js","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { AdyenGateway } from './adyen_gateways'\nimport type { AxerveGateway } from './axerve_gateways'\nimport type { BraintreeGateway } from './braintree_gateways'\nimport type { CheckoutComGateway } from './checkout_com_gateways'\nimport type { EventStore } from './event_stores'\nimport type { ExternalGateway } from './external_gateways'\nimport type { KlarnaGateway } from './klarna_gateways'\nimport type { ManualGateway } from './manual_gateways'\nimport type { PaymentMethod } from './payment_methods'\nimport type { PaypalGateway } from './paypal_gateways'\nimport type { SatispayGateway } from './satispay_gateways'\nimport type { StripeGateway } from './stripe_gateways'\n\ntype PaymentGatewayType =\n | 'payment_gateways'\n | 'adyen_gateways'\n | 'axerve_gateways'\n | 'braintree_gateways'\n | 'checkout_com_gateways'\n | 'external_gateways'\n | 'klarna_gateways'\n | 'manual_gateways'\n | 'paypal_gateways'\n | 'satispay_gateways'\n | 'stripe_gateways'\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\n\nexport type PaymentGatewaySort = Pick<PaymentGatewayBase, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type PaymentGatewayFilter = Pick<PaymentGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n/**\n * The Payment gateway object is returned as part of the response body of each successful list or retrieve API call to the /api/payment_gateways endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/payment_gateways/object\n */\ntype PaymentGateway =\n | AdyenGateway\n | AxerveGateway\n | BraintreeGateway\n | CheckoutComGateway\n | ExternalGateway\n | KlarnaGateway\n | ManualGateway\n | PaypalGateway\n | SatispayGateway\n | StripeGateway\n\ninterface PaymentGatewayBase extends Resource {\n readonly type: PaymentGatewayType\n\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name: string\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * The payment gateway's API credential keys last digits.\n * @example ```{\"api_key\":\"********BW989\"}```\n */\n credential_keys?: Record<string, any> | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n\n payment_methods?: PaymentMethod[] | null\n event_stores?: EventStore[] | null\n}\n\nclass PaymentGateways extends ApiResource<PaymentGateway> {\n static readonly TYPE: PaymentGatewayType = 'payment_gateways' as const\n\n async payment_methods(\n paymentGatewayId: string | PaymentGateway,\n params?: QueryParamsList<PaymentMethod>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<PaymentMethod>> {\n const _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || (paymentGatewayId as string)\n return this.resources.fetch<PaymentMethod>(\n { type: 'payment_methods' },\n `payment_gateways/${_paymentGatewayId}/payment_methods`,\n params,\n options,\n ) as unknown as ListResponse<PaymentMethod>\n }\n\n async event_stores(\n paymentGatewayId: string | PaymentGateway,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || (paymentGatewayId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `payment_gateways/${_paymentGatewayId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isPaymentGateway(resource: any): resource is PaymentGateway {\n return (\n !!resource.type &&\n (resource.type === PaymentGateways.TYPE ||\n [\n 'adyen_gateways',\n 'axerve_gateways',\n 'braintree_gateways',\n 'checkout_com_gateways',\n 'external_gateways',\n 'klarna_gateways',\n 'manual_gateways',\n 'paypal_gateways',\n 'satispay_gateways',\n 'stripe_gateways',\n ].includes(resource.type))\n )\n }\n\n relationship(id: string | ResourceId | null): PaymentGatewayRel {\n return super.relationshipOneToOne<PaymentGatewayRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PaymentGatewayRel[] {\n return super.relationshipOneToMany<PaymentGatewayRel>(...ids)\n }\n\n type(): PaymentGatewayType {\n return PaymentGateways.TYPE\n }\n}\n\nconst instance = new PaymentGateways()\nexport default instance\n\nexport type { PaymentGateway, PaymentGateways, PaymentGatewayType }\n"]}
|
package/lib/chunk-NF2QUFOZ.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-TX4LQ66D.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/packages.ts
|
|
4
|
-
var Packages = class _Packages extends ApiResource {
|
|
5
|
-
static TYPE = "packages";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _Packages.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _Packages.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Packages.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async stock_location(packageId, params, options) {
|
|
16
|
-
const _packageId = packageId.id || packageId;
|
|
17
|
-
return this.resources.fetch(
|
|
18
|
-
{ type: "stock_locations" },
|
|
19
|
-
`packages/${_packageId}/stock_location`,
|
|
20
|
-
params,
|
|
21
|
-
options
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
async parcels(packageId, params, options) {
|
|
25
|
-
const _packageId = packageId.id || packageId;
|
|
26
|
-
return this.resources.fetch(
|
|
27
|
-
{ type: "parcels" },
|
|
28
|
-
`packages/${_packageId}/parcels`,
|
|
29
|
-
params,
|
|
30
|
-
options
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
async attachments(packageId, params, options) {
|
|
34
|
-
const _packageId = packageId.id || packageId;
|
|
35
|
-
return this.resources.fetch(
|
|
36
|
-
{ type: "attachments" },
|
|
37
|
-
`packages/${_packageId}/attachments`,
|
|
38
|
-
params,
|
|
39
|
-
options
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
async event_stores(packageId, params, options) {
|
|
43
|
-
const _packageId = packageId.id || packageId;
|
|
44
|
-
return this.resources.fetch(
|
|
45
|
-
{ type: "event_stores" },
|
|
46
|
-
`packages/${_packageId}/event_stores`,
|
|
47
|
-
params,
|
|
48
|
-
options
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
isPackage(resource) {
|
|
52
|
-
return resource.type && resource.type === _Packages.TYPE;
|
|
53
|
-
}
|
|
54
|
-
relationship(id) {
|
|
55
|
-
return super.relationshipOneToOne(id);
|
|
56
|
-
}
|
|
57
|
-
relationshipToMany(...ids) {
|
|
58
|
-
return super.relationshipOneToMany(...ids);
|
|
59
|
-
}
|
|
60
|
-
type() {
|
|
61
|
-
return _Packages.TYPE;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
var instance = new Packages();
|
|
65
|
-
var packages_default = instance;
|
|
66
|
-
|
|
67
|
-
export { packages_default };
|
|
68
|
-
//# sourceMappingURL=chunk-NF2QUFOZ.js.map
|
|
69
|
-
//# sourceMappingURL=chunk-NF2QUFOZ.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/packages.ts"],"names":[],"mappings":";;;AA4IA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiB,WAAA,CAAqB;AAAA,EAC1C,OAAgB,IAAA,GAAoB,UAAA;AAAA,EAEpC,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACkB;AAClB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACkB;AAClB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,SAAA,CAAS,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAChG;AAAA,EAEA,MAAM,cAAA,CACJ,SAAA,EACA,MAAA,EACA,OAAA,EACwB;AACxB,IAAA,MAAM,UAAA,GAAc,UAAsB,EAAA,IAAO,SAAA;AACjD,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,iBAAA,EAAkB;AAAA,MAC1B,YAAY,UAAU,CAAA,eAAA,CAAA;AAAA,MACtB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,OAAA,CACJ,SAAA,EACA,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,MAAM,UAAA,GAAc,UAAsB,EAAA,IAAO,SAAA;AACjD,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,SAAA,EAAU;AAAA,MAClB,YAAY,UAAU,CAAA,QAAA,CAAA;AAAA,MACtB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,WAAA,CACJ,SAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,UAAA,GAAc,UAAsB,EAAA,IAAO,SAAA;AACjD,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,aAAA,EAAc;AAAA,MACtB,YAAY,UAAU,CAAA,YAAA,CAAA;AAAA,MACtB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,SAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,UAAA,GAAc,UAAsB,EAAA,IAAO,SAAA;AACjD,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,YAAY,UAAU,CAAA,aAAA,CAAA;AAAA,MACtB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,UAAU,QAAA,EAAoC;AAC5C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,SAAA,CAAS,IAAA;AAAA,EACrD;AAAA,EAEA,aAAa,EAAA,EAA4C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA6B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAkC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAEA,IAAA,GAAoB;AAClB,IAAA,OAAO,SAAA,CAAS,IAAA;AAAA,EAClB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,QAAA,EAAS;AAC9B,IAAO,gBAAA,GAAQ","file":"chunk-NF2QUFOZ.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Parcel } from './parcels'\nimport type { StockLocation, StockLocationType } from './stock_locations'\n\ntype PackageType = 'packages'\ntype PackageRel = ResourceRel & { type: PackageType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\n\nexport type PackageSort = Pick<Package, 'id' | 'name' | 'code' | 'length' | 'width' | 'height' | 'unit_of_length'> &\n ResourceSort\n// export type PackageFilter = Pick<Package, 'id' | 'name' | 'code' | 'length' | 'width' | 'height' | 'unit_of_length'> & ResourceFilter\n\n/**\n * The Package object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/packages endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/packages/object\n */\ninterface Package extends Resource {\n readonly type: PackageType\n\n /**\n * Unique name for the package.\n * @example ```\"Large (60x40x30)\"```\n */\n name: string\n /**\n * The package identifying code.\n * @example ```\"YYYY 2000\"```\n */\n code?: string | null\n /**\n * The package length, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```40```\n */\n length: number\n /**\n * The package width, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```40```\n */\n width: number\n /**\n * The package height, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```25```\n */\n height: number\n /**\n * The unit of length. Can be one of 'cm', or 'in'.\n * @example ```\"gr\"```\n */\n unit_of_length: string\n\n stock_location?: StockLocation | null\n parcels?: Parcel[] | null\n attachments?: Attachment[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface PackageCreate extends ResourceCreate {\n /**\n * Unique name for the package.\n * @example ```\"Large (60x40x30)\"```\n */\n name: string\n /**\n * The package identifying code.\n * @example ```\"YYYY 2000\"```\n */\n code?: string | null\n /**\n * The package length, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```40```\n */\n length: number\n /**\n * The package width, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```40```\n */\n width: number\n /**\n * The package height, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```25```\n */\n height: number\n /**\n * The unit of length. Can be one of 'cm', or 'in'.\n * @example ```\"gr\"```\n */\n unit_of_length: string\n\n stock_location: StockLocationRel\n}\n\ninterface PackageUpdate extends ResourceUpdate {\n /**\n * Unique name for the package.\n * @example ```\"Large (60x40x30)\"```\n */\n name?: string | null\n /**\n * The package identifying code.\n * @example ```\"YYYY 2000\"```\n */\n code?: string | null\n /**\n * The package length, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```40```\n */\n length?: number | null\n /**\n * The package width, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```40```\n */\n width?: number | null\n /**\n * The package height, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```25```\n */\n height?: number | null\n /**\n * The unit of length. Can be one of 'cm', or 'in'.\n * @example ```\"gr\"```\n */\n unit_of_length?: string | null\n\n stock_location?: StockLocationRel | null\n}\n\nclass Packages extends ApiResource<Package> {\n static readonly TYPE: PackageType = 'packages' as const\n\n async create(\n resource: PackageCreate,\n params?: QueryParamsRetrieve<Package>,\n options?: ResourcesConfig,\n ): Promise<Package> {\n return this.resources.create<PackageCreate, Package>({ ...resource, type: Packages.TYPE }, params, options)\n }\n\n async update(\n resource: PackageUpdate,\n params?: QueryParamsRetrieve<Package>,\n options?: ResourcesConfig,\n ): Promise<Package> {\n return this.resources.update<PackageUpdate, Package>({ ...resource, type: Packages.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: Packages.TYPE } : id, options)\n }\n\n async stock_location(\n packageId: string | Package,\n params?: QueryParamsRetrieve<StockLocation>,\n options?: ResourcesConfig,\n ): Promise<StockLocation> {\n const _packageId = (packageId as Package).id || (packageId as string)\n return this.resources.fetch<StockLocation>(\n { type: 'stock_locations' },\n `packages/${_packageId}/stock_location`,\n params,\n options,\n ) as unknown as StockLocation\n }\n\n async parcels(\n packageId: string | Package,\n params?: QueryParamsList<Parcel>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Parcel>> {\n const _packageId = (packageId as Package).id || (packageId as string)\n return this.resources.fetch<Parcel>(\n { type: 'parcels' },\n `packages/${_packageId}/parcels`,\n params,\n options,\n ) as unknown as ListResponse<Parcel>\n }\n\n async attachments(\n packageId: string | Package,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _packageId = (packageId as Package).id || (packageId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `packages/${_packageId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async event_stores(\n packageId: string | Package,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _packageId = (packageId as Package).id || (packageId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `packages/${_packageId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isPackage(resource: any): resource is Package {\n return resource.type && resource.type === Packages.TYPE\n }\n\n relationship(id: string | ResourceId | null): PackageRel {\n return super.relationshipOneToOne<PackageRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PackageRel[] {\n return super.relationshipOneToMany<PackageRel>(...ids)\n }\n\n type(): PackageType {\n return Packages.TYPE\n }\n}\n\nconst instance = new Packages()\nexport default instance\n\nexport type { Package, PackageCreate, Packages, PackageType, PackageUpdate }\n"]}
|