@commercelayer/sdk 7.12.1 → 8.0.0-beta.10
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 +20 -8
- package/lib/api-EpvFRhI9.d.ts +19175 -0
- package/lib/api-oXAdA5Ru.d.cts +19175 -0
- package/lib/api.cjs +356 -340
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +144 -140
- package/lib/bundle-compat.cjs +160 -0
- package/lib/bundle-compat.cjs.map +1 -0
- package/lib/bundle-compat.d.cts +24 -0
- package/lib/bundle-compat.d.ts +22 -0
- package/lib/bundle-compat.js +155 -0
- package/lib/bundle-compat.js.map +1 -0
- package/lib/bundle.cjs +157 -697
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +34 -23
- package/lib/bundle.d.ts +32 -23
- package/lib/bundle.js +146 -699
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-22JSRKRP.js +77 -0
- package/lib/chunk-22JSRKRP.js.map +1 -0
- package/lib/chunk-24F2ZC4H.cjs +122 -0
- package/lib/chunk-24F2ZC4H.cjs.map +1 -0
- package/lib/chunk-2BR762XD.cjs +70 -0
- package/lib/chunk-2BR762XD.cjs.map +1 -0
- package/lib/chunk-2P2JWX3V.js +68 -0
- package/lib/chunk-2P2JWX3V.js.map +1 -0
- package/lib/chunk-2UGXKQFC.cjs +62 -0
- package/lib/chunk-2UGXKQFC.cjs.map +1 -0
- package/lib/chunk-2ZAN7B5Z.cjs +70 -0
- package/lib/chunk-2ZAN7B5Z.cjs.map +1 -0
- package/lib/chunk-37V5T6PZ.cjs +93 -0
- package/lib/chunk-37V5T6PZ.cjs.map +1 -0
- package/lib/chunk-3BZL6HYH.js +51 -0
- package/lib/chunk-3BZL6HYH.js.map +1 -0
- package/lib/chunk-3D2FNXSK.js +177 -0
- package/lib/chunk-3D2FNXSK.js.map +1 -0
- package/lib/chunk-3DMYHXGB.js +20 -0
- package/lib/chunk-3DMYHXGB.js.map +1 -0
- package/lib/chunk-3ENR3S5T.cjs +81 -0
- package/lib/chunk-3ENR3S5T.cjs.map +1 -0
- package/lib/chunk-3LGN4LXX.js +82 -0
- package/lib/chunk-3LGN4LXX.js.map +1 -0
- package/lib/chunk-3QWZMVH2.cjs +79 -0
- package/lib/chunk-3QWZMVH2.cjs.map +1 -0
- package/lib/chunk-3XGGO5YB.js +88 -0
- package/lib/chunk-3XGGO5YB.js.map +1 -0
- package/lib/chunk-3Y4RMNKV.js +60 -0
- package/lib/chunk-3Y4RMNKV.js.map +1 -0
- package/lib/chunk-42MEZSD4.cjs +243 -0
- package/lib/chunk-42MEZSD4.cjs.map +1 -0
- package/lib/chunk-42ZHE2WU.cjs +205 -0
- package/lib/chunk-42ZHE2WU.cjs.map +1 -0
- package/lib/chunk-4C3YVRRS.js +96 -0
- package/lib/chunk-4C3YVRRS.js.map +1 -0
- package/lib/chunk-4FVLYQYK.cjs +52 -0
- package/lib/chunk-4FVLYQYK.cjs.map +1 -0
- package/lib/chunk-4RDYAHZO.cjs +125 -0
- package/lib/chunk-4RDYAHZO.cjs.map +1 -0
- package/lib/chunk-4SKBF5ZK.cjs +70 -0
- package/lib/chunk-4SKBF5ZK.cjs.map +1 -0
- package/lib/chunk-4THWU3WM.cjs +166 -0
- package/lib/chunk-4THWU3WM.cjs.map +1 -0
- package/lib/chunk-4UBBJD3F.js +42 -0
- package/lib/chunk-4UBBJD3F.js.map +1 -0
- package/lib/chunk-4YU74YXC.cjs +44 -0
- package/lib/chunk-4YU74YXC.cjs.map +1 -0
- package/lib/chunk-4ZFVTUSX.cjs +79 -0
- package/lib/chunk-4ZFVTUSX.cjs.map +1 -0
- package/lib/chunk-54LYYVB3.cjs +77 -0
- package/lib/chunk-54LYYVB3.cjs.map +1 -0
- package/lib/chunk-5BMKV63A.cjs +79 -0
- package/lib/chunk-5BMKV63A.cjs.map +1 -0
- package/lib/chunk-5GHOOKYM.cjs +84 -0
- package/lib/chunk-5GHOOKYM.cjs.map +1 -0
- package/lib/chunk-5KA2HKFH.cjs +35 -0
- package/lib/chunk-5KA2HKFH.cjs.map +1 -0
- package/lib/chunk-5MGINVEQ.js +68 -0
- package/lib/chunk-5MGINVEQ.js.map +1 -0
- package/lib/chunk-5QZBXSMX.cjs +77 -0
- package/lib/chunk-5QZBXSMX.cjs.map +1 -0
- package/lib/chunk-5SMOSXWB.cjs +88 -0
- package/lib/chunk-5SMOSXWB.cjs.map +1 -0
- package/lib/chunk-5WJZIHI6.js +50 -0
- package/lib/chunk-5WJZIHI6.js.map +1 -0
- package/lib/chunk-5WRDATN3.cjs +52 -0
- package/lib/chunk-5WRDATN3.cjs.map +1 -0
- package/lib/chunk-6A2VDAYH.cjs +71 -0
- package/lib/chunk-6A2VDAYH.cjs.map +1 -0
- package/lib/chunk-6TJJD77K.cjs +40 -0
- package/lib/chunk-6TJJD77K.cjs.map +1 -0
- package/lib/chunk-6XKNHGEB.cjs +179 -0
- package/lib/chunk-6XKNHGEB.cjs.map +1 -0
- package/lib/chunk-6YCQGKZ3.js +84 -0
- package/lib/chunk-6YCQGKZ3.js.map +1 -0
- package/lib/chunk-6ZFQINCX.js +92 -0
- package/lib/chunk-6ZFQINCX.js.map +1 -0
- package/lib/chunk-72EPY5QQ.cjs +26 -0
- package/lib/chunk-72EPY5QQ.cjs.map +1 -0
- package/lib/chunk-74DDRAJ6.js +168 -0
- package/lib/chunk-74DDRAJ6.js.map +1 -0
- package/lib/chunk-7BPKWLUV.cjs +98 -0
- package/lib/chunk-7BPKWLUV.cjs.map +1 -0
- package/lib/chunk-7FBPOEL3.cjs +115 -0
- package/lib/chunk-7FBPOEL3.cjs.map +1 -0
- package/lib/chunk-7I5APR2W.cjs +89 -0
- package/lib/chunk-7I5APR2W.cjs.map +1 -0
- package/lib/chunk-7NXWRRUL.js +51 -0
- package/lib/chunk-7NXWRRUL.js.map +1 -0
- package/lib/chunk-7OA3ASUR.js +79 -0
- package/lib/chunk-7OA3ASUR.js.map +1 -0
- package/lib/chunk-7WP5V2VJ.cjs +67 -0
- package/lib/chunk-7WP5V2VJ.cjs.map +1 -0
- package/lib/chunk-7ZMJYDP7.js +180 -0
- package/lib/chunk-7ZMJYDP7.js.map +1 -0
- package/lib/chunk-A2KSRTPF.js +51 -0
- package/lib/chunk-A2KSRTPF.js.map +1 -0
- package/lib/chunk-A3HXYZE7.cjs +313 -0
- package/lib/chunk-A3HXYZE7.cjs.map +1 -0
- package/lib/chunk-A6HWLU2U.js +60 -0
- package/lib/chunk-A6HWLU2U.js.map +1 -0
- package/lib/chunk-A6J7MNYD.cjs +82 -0
- package/lib/chunk-A6J7MNYD.cjs.map +1 -0
- package/lib/chunk-AALHBTDP.cjs +93 -0
- package/lib/chunk-AALHBTDP.cjs.map +1 -0
- package/lib/chunk-AC7WVFRR.js +129 -0
- package/lib/chunk-AC7WVFRR.js.map +1 -0
- package/lib/chunk-AIO2NUPF.js +94 -0
- package/lib/chunk-AIO2NUPF.js.map +1 -0
- package/lib/chunk-AOOPIH45.cjs +120 -0
- package/lib/chunk-AOOPIH45.cjs.map +1 -0
- package/lib/chunk-ASBOEHZT.cjs +79 -0
- package/lib/chunk-ASBOEHZT.cjs.map +1 -0
- package/lib/chunk-ATONNFTK.cjs +85 -0
- package/lib/chunk-ATONNFTK.cjs.map +1 -0
- package/lib/chunk-AUB4BG3N.cjs +79 -0
- package/lib/chunk-AUB4BG3N.cjs.map +1 -0
- package/lib/chunk-AZRXECP3.cjs +70 -0
- package/lib/chunk-AZRXECP3.cjs.map +1 -0
- package/lib/chunk-B5YRHPPQ.cjs +126 -0
- package/lib/chunk-B5YRHPPQ.cjs.map +1 -0
- package/lib/chunk-BALY2BP2.js +68 -0
- package/lib/chunk-BALY2BP2.js.map +1 -0
- package/lib/chunk-BAO3I3CK.js +68 -0
- package/lib/chunk-BAO3I3CK.js.map +1 -0
- package/lib/chunk-BC3GOGP7.js +77 -0
- package/lib/chunk-BC3GOGP7.js.map +1 -0
- package/lib/chunk-BOYK5XCO.js +68 -0
- package/lib/chunk-BOYK5XCO.js.map +1 -0
- package/lib/chunk-BPANUY47.cjs +22 -0
- package/lib/chunk-BPANUY47.cjs.map +1 -0
- package/lib/chunk-BPTSRSC6.cjs +55 -0
- package/lib/chunk-BPTSRSC6.cjs.map +1 -0
- package/lib/chunk-BVEUVURA.cjs +91 -0
- package/lib/chunk-BVEUVURA.cjs.map +1 -0
- package/lib/chunk-CHD573UK.cjs +67 -0
- package/lib/chunk-CHD573UK.cjs.map +1 -0
- package/lib/chunk-CJUTZPOH.cjs +170 -0
- package/lib/chunk-CJUTZPOH.cjs.map +1 -0
- package/lib/chunk-CKC2JS4N.cjs +61 -0
- package/lib/chunk-CKC2JS4N.cjs.map +1 -0
- package/lib/chunk-CKIU2QK7.cjs +79 -0
- package/lib/chunk-CKIU2QK7.cjs.map +1 -0
- package/lib/chunk-CLPJO2HS.cjs +84 -0
- package/lib/chunk-CLPJO2HS.cjs.map +1 -0
- package/lib/chunk-CNRJEKGG.cjs +88 -0
- package/lib/chunk-CNRJEKGG.cjs.map +1 -0
- package/lib/chunk-CNTHSMT3.cjs +40 -0
- package/lib/chunk-CNTHSMT3.cjs.map +1 -0
- package/lib/chunk-CQUQC6PV.cjs +193 -0
- package/lib/chunk-CQUQC6PV.cjs.map +1 -0
- package/lib/chunk-CRYSIRYY.cjs +80 -0
- package/lib/chunk-CRYSIRYY.cjs.map +1 -0
- package/lib/chunk-CSCKJ5K4.cjs +70 -0
- package/lib/chunk-CSCKJ5K4.cjs.map +1 -0
- package/lib/chunk-CTXB4TIH.js +36 -0
- package/lib/chunk-CTXB4TIH.js.map +1 -0
- package/lib/chunk-CXXHXGV4.js +24 -0
- package/lib/chunk-CXXHXGV4.js.map +1 -0
- package/lib/chunk-DAPH5WAS.cjs +70 -0
- package/lib/chunk-DAPH5WAS.cjs.map +1 -0
- package/lib/chunk-DET7TITS.cjs +70 -0
- package/lib/chunk-DET7TITS.cjs.map +1 -0
- package/lib/chunk-DS4PYTOM.js +27 -0
- package/lib/chunk-DS4PYTOM.js.map +1 -0
- package/lib/chunk-DTM6TNRI.cjs +88 -0
- package/lib/chunk-DTM6TNRI.cjs.map +1 -0
- package/lib/chunk-DXXRZMDS.cjs +70 -0
- package/lib/chunk-DXXRZMDS.cjs.map +1 -0
- package/lib/chunk-DYF5RVNM.js +79 -0
- package/lib/chunk-DYF5RVNM.js.map +1 -0
- package/lib/chunk-E246DOUD.cjs +63 -0
- package/lib/chunk-E246DOUD.cjs.map +1 -0
- package/lib/chunk-EC4OAWRG.js +91 -0
- package/lib/chunk-EC4OAWRG.js.map +1 -0
- package/lib/chunk-EJ3SKHCF.js +241 -0
- package/lib/chunk-EJ3SKHCF.js.map +1 -0
- package/lib/chunk-EJIXLN7Z.cjs +29 -0
- package/lib/chunk-EJIXLN7Z.cjs.map +1 -0
- package/lib/chunk-EMLPNVKA.cjs +71 -0
- package/lib/chunk-EMLPNVKA.cjs.map +1 -0
- package/lib/chunk-FD35GNGV.js +42 -0
- package/lib/chunk-FD35GNGV.js.map +1 -0
- package/lib/chunk-FDMJKB5V.cjs +14 -0
- package/lib/chunk-FDMJKB5V.cjs.map +1 -0
- package/lib/chunk-FGXHOACU.cjs +118 -0
- package/lib/chunk-FGXHOACU.cjs.map +1 -0
- package/lib/chunk-FJ6MG7WI.js +86 -0
- package/lib/chunk-FJ6MG7WI.js.map +1 -0
- package/lib/chunk-FORGCCDU.cjs +44 -0
- package/lib/chunk-FORGCCDU.cjs.map +1 -0
- package/lib/chunk-FSXCIAYK.js +50 -0
- package/lib/chunk-FSXCIAYK.js.map +1 -0
- package/lib/chunk-G43NAQ2B.cjs +53 -0
- package/lib/chunk-G43NAQ2B.cjs.map +1 -0
- package/lib/chunk-G5LUH7SX.cjs +70 -0
- package/lib/chunk-G5LUH7SX.cjs.map +1 -0
- package/lib/chunk-G67FOAKH.cjs +98 -0
- package/lib/chunk-G67FOAKH.cjs.map +1 -0
- package/lib/chunk-G7PKYNCD.cjs +70 -0
- package/lib/chunk-G7PKYNCD.cjs.map +1 -0
- package/lib/chunk-GBIH54K6.js +100 -0
- package/lib/chunk-GBIH54K6.js.map +1 -0
- package/lib/chunk-GGOL45I5.js +45 -0
- package/lib/chunk-GGOL45I5.js.map +1 -0
- package/lib/chunk-GIMAGLUV.js +68 -0
- package/lib/chunk-GIMAGLUV.js.map +1 -0
- package/lib/chunk-GJIBPCLI.js +42 -0
- package/lib/chunk-GJIBPCLI.js.map +1 -0
- package/lib/chunk-GKJ5UJVG.js +77 -0
- package/lib/chunk-GKJ5UJVG.js.map +1 -0
- package/lib/chunk-GLEASNSJ.js +77 -0
- package/lib/chunk-GLEASNSJ.js.map +1 -0
- package/lib/chunk-GO7TJMJ2.js +96 -0
- package/lib/chunk-GO7TJMJ2.js.map +1 -0
- package/lib/chunk-GQZ6DXTV.js +60 -0
- package/lib/chunk-GQZ6DXTV.js.map +1 -0
- package/lib/chunk-GZCAWHE6.cjs +131 -0
- package/lib/chunk-GZCAWHE6.cjs.map +1 -0
- package/lib/chunk-H2I5XZVE.js +65 -0
- package/lib/chunk-H2I5XZVE.js.map +1 -0
- package/lib/chunk-H2Q2ZK4J.js +92 -0
- package/lib/chunk-H2Q2ZK4J.js.map +1 -0
- package/lib/chunk-H2VKAOCM.js +82 -0
- package/lib/chunk-H2VKAOCM.js.map +1 -0
- package/lib/chunk-H3X4MYWU.js +68 -0
- package/lib/chunk-H3X4MYWU.js.map +1 -0
- package/lib/chunk-H6GJTVTU.js +75 -0
- package/lib/chunk-H6GJTVTU.js.map +1 -0
- package/lib/chunk-HEAOXJUM.cjs +62 -0
- package/lib/chunk-HEAOXJUM.cjs.map +1 -0
- package/lib/chunk-HS45ARNK.cjs +62 -0
- package/lib/chunk-HS45ARNK.cjs.map +1 -0
- package/lib/chunk-HVWED6OD.cjs +61 -0
- package/lib/chunk-HVWED6OD.cjs.map +1 -0
- package/lib/chunk-HWQKJGMO.js +196 -0
- package/lib/chunk-HWQKJGMO.js.map +1 -0
- package/lib/chunk-ICPYLWV2.cjs +88 -0
- package/lib/chunk-ICPYLWV2.cjs.map +1 -0
- package/lib/chunk-IHFJ6MXL.cjs +323 -0
- package/lib/chunk-IHFJ6MXL.cjs.map +1 -0
- package/lib/chunk-IIVBQMST.cjs +79 -0
- package/lib/chunk-IIVBQMST.cjs.map +1 -0
- package/lib/chunk-IKNDOL6B.js +59 -0
- package/lib/chunk-IKNDOL6B.js.map +1 -0
- package/lib/chunk-IVT3PJY6.js +89 -0
- package/lib/chunk-IVT3PJY6.js.map +1 -0
- package/lib/chunk-IXGT4ZHK.cjs +52 -0
- package/lib/chunk-IXGT4ZHK.cjs.map +1 -0
- package/lib/chunk-IYIO3O6T.cjs +70 -0
- package/lib/chunk-IYIO3O6T.cjs.map +1 -0
- package/lib/chunk-J2B76RSV.js +60 -0
- package/lib/chunk-J2B76RSV.js.map +1 -0
- package/lib/chunk-J6IAZQTX.cjs +102 -0
- package/lib/chunk-J6IAZQTX.cjs.map +1 -0
- package/lib/chunk-J6UBSVHN.cjs +712 -0
- package/lib/chunk-J6UBSVHN.cjs.map +1 -0
- package/lib/chunk-JA5OBTVX.cjs +120 -0
- package/lib/chunk-JA5OBTVX.cjs.map +1 -0
- package/lib/chunk-JLDRURQO.cjs +77 -0
- package/lib/chunk-JLDRURQO.cjs.map +1 -0
- package/lib/chunk-JPOQTSO3.js +89 -0
- package/lib/chunk-JPOQTSO3.js.map +1 -0
- package/lib/chunk-JV3H26EB.js +77 -0
- package/lib/chunk-JV3H26EB.js.map +1 -0
- package/lib/chunk-K4JHKT7C.js +11 -0
- package/lib/chunk-K4JHKT7C.js.map +1 -0
- package/lib/chunk-K7IFPOM4.js +113 -0
- package/lib/chunk-K7IFPOM4.js.map +1 -0
- package/lib/chunk-KBR5ZGZF.cjs +614 -0
- package/lib/chunk-KBR5ZGZF.cjs.map +1 -0
- package/lib/chunk-KHHIGLI2.cjs +86 -0
- package/lib/chunk-KHHIGLI2.cjs.map +1 -0
- package/lib/chunk-KMYZX4VQ.cjs +86 -0
- package/lib/chunk-KMYZX4VQ.cjs.map +1 -0
- package/lib/chunk-KNW47S44.cjs +53 -0
- package/lib/chunk-KNW47S44.cjs.map +1 -0
- package/lib/chunk-KNYCGJXW.cjs +94 -0
- package/lib/chunk-KNYCGJXW.cjs.map +1 -0
- package/lib/chunk-L4745XWM.js +80 -0
- package/lib/chunk-L4745XWM.js.map +1 -0
- package/lib/chunk-LBSC3EU5.js +123 -0
- package/lib/chunk-LBSC3EU5.js.map +1 -0
- package/lib/chunk-LBYSKMHH.cjs +94 -0
- package/lib/chunk-LBYSKMHH.cjs.map +1 -0
- package/lib/chunk-LHZ6RTT3.js +89 -0
- package/lib/chunk-LHZ6RTT3.js.map +1 -0
- package/lib/chunk-LJP3XZB6.cjs +98 -0
- package/lib/chunk-LJP3XZB6.cjs.map +1 -0
- package/lib/chunk-LMQID2GP.js +87 -0
- package/lib/chunk-LMQID2GP.js.map +1 -0
- package/lib/chunk-LN4LIXAJ.js +191 -0
- package/lib/chunk-LN4LIXAJ.js.map +1 -0
- package/lib/chunk-LQWVKNWA.js +96 -0
- package/lib/chunk-LQWVKNWA.js.map +1 -0
- package/lib/chunk-LUHC3HQY.cjs +62 -0
- package/lib/chunk-LUHC3HQY.cjs.map +1 -0
- package/lib/chunk-M2EMAXEX.cjs +53 -0
- package/lib/chunk-M2EMAXEX.cjs.map +1 -0
- package/lib/chunk-M2MA3D4R.cjs +80 -0
- package/lib/chunk-M2MA3D4R.cjs.map +1 -0
- package/lib/chunk-M4ONJLD5.js +86 -0
- package/lib/chunk-M4ONJLD5.js.map +1 -0
- package/lib/chunk-M6EAUX5W.js +35 -0
- package/lib/chunk-M6EAUX5W.js.map +1 -0
- package/lib/chunk-MA4Q3YQA.cjs +102 -0
- package/lib/chunk-MA4Q3YQA.cjs.map +1 -0
- package/lib/chunk-MHZXFNI3.cjs +61 -0
- package/lib/chunk-MHZXFNI3.cjs.map +1 -0
- package/lib/chunk-MRCX5DDN.cjs +179 -0
- package/lib/chunk-MRCX5DDN.cjs.map +1 -0
- package/lib/chunk-MYZKUUVU.js +89 -0
- package/lib/chunk-MYZKUUVU.js.map +1 -0
- package/lib/chunk-N2GNN5KY.cjs +91 -0
- package/lib/chunk-N2GNN5KY.cjs.map +1 -0
- package/lib/chunk-NASC5VUL.js +53 -0
- package/lib/chunk-NASC5VUL.js.map +1 -0
- package/lib/chunk-NF2QUFOZ.js +69 -0
- package/lib/chunk-NF2QUFOZ.js.map +1 -0
- package/lib/chunk-NL723OUO.cjs +81 -0
- package/lib/chunk-NL723OUO.cjs.map +1 -0
- package/lib/chunk-NSFF4PEP.cjs +182 -0
- package/lib/chunk-NSFF4PEP.cjs.map +1 -0
- package/lib/chunk-O222VNEO.cjs +90 -0
- package/lib/chunk-O222VNEO.cjs.map +1 -0
- package/lib/chunk-O7GAJZ7B.cjs +179 -0
- package/lib/chunk-O7GAJZ7B.cjs.map +1 -0
- package/lib/chunk-O7I22ND6.cjs +165 -0
- package/lib/chunk-O7I22ND6.cjs.map +1 -0
- package/lib/chunk-O7Q46YQR.js +77 -0
- package/lib/chunk-O7Q46YQR.js.map +1 -0
- package/lib/chunk-OD7AZBBW.cjs +91 -0
- package/lib/chunk-OD7AZBBW.cjs.map +1 -0
- package/lib/chunk-OESYWOKW.cjs +79 -0
- package/lib/chunk-OESYWOKW.cjs.map +1 -0
- package/lib/chunk-OH4R7NRW.cjs +556 -0
- package/lib/chunk-OH4R7NRW.cjs.map +1 -0
- package/lib/chunk-OHOTORWN.js +77 -0
- package/lib/chunk-OHOTORWN.js.map +1 -0
- package/lib/chunk-OHPKFTKJ.js +82 -0
- package/lib/chunk-OHPKFTKJ.js.map +1 -0
- package/lib/chunk-OJXBH4AU.js +177 -0
- package/lib/chunk-OJXBH4AU.js.map +1 -0
- package/lib/chunk-OKEWWPO6.js +120 -0
- package/lib/chunk-OKEWWPO6.js.map +1 -0
- package/lib/chunk-OTEKWYFI.js +77 -0
- package/lib/chunk-OTEKWYFI.js.map +1 -0
- package/lib/chunk-OXHQKMPQ.js +20 -0
- package/lib/chunk-OXHQKMPQ.js.map +1 -0
- package/lib/chunk-P5TAYFM2.cjs +77 -0
- package/lib/chunk-P5TAYFM2.cjs.map +1 -0
- package/lib/chunk-P6FRDB6N.js +203 -0
- package/lib/chunk-P6FRDB6N.js.map +1 -0
- package/lib/chunk-PE7YEKXE.js +177 -0
- package/lib/chunk-PE7YEKXE.js.map +1 -0
- package/lib/chunk-PF23CMEF.cjs +44 -0
- package/lib/chunk-PF23CMEF.cjs.map +1 -0
- package/lib/chunk-PHSZOTGO.cjs +53 -0
- package/lib/chunk-PHSZOTGO.cjs.map +1 -0
- package/lib/chunk-PINJ4XVT.cjs +179 -0
- package/lib/chunk-PINJ4XVT.cjs.map +1 -0
- package/lib/chunk-PJXGHTNE.js +73 -0
- package/lib/chunk-PJXGHTNE.js.map +1 -0
- package/lib/chunk-PVZ4YTNY.cjs +91 -0
- package/lib/chunk-PVZ4YTNY.cjs.map +1 -0
- package/lib/chunk-PX6VSBYJ.js +84 -0
- package/lib/chunk-PX6VSBYJ.js.map +1 -0
- package/lib/chunk-PXI3FFHR.js +542 -0
- package/lib/chunk-PXI3FFHR.js.map +1 -0
- package/lib/chunk-Q65LIIZK.js +83 -0
- package/lib/chunk-Q65LIIZK.js.map +1 -0
- package/lib/chunk-Q6B4IJ3Z.js +75 -0
- package/lib/chunk-Q6B4IJ3Z.js.map +1 -0
- package/lib/chunk-Q74EWK7R.js +78 -0
- package/lib/chunk-Q74EWK7R.js.map +1 -0
- package/lib/chunk-QA3Z2NT3.js +163 -0
- package/lib/chunk-QA3Z2NT3.js.map +1 -0
- package/lib/chunk-QBINHYQ4.js +77 -0
- package/lib/chunk-QBINHYQ4.js.map +1 -0
- package/lib/chunk-QBTVUBTD.js +191 -0
- package/lib/chunk-QBTVUBTD.js.map +1 -0
- package/lib/chunk-QCHY4BRB.js +118 -0
- package/lib/chunk-QCHY4BRB.js.map +1 -0
- package/lib/chunk-QFVWMERY.js +86 -0
- package/lib/chunk-QFVWMERY.js.map +1 -0
- package/lib/chunk-QHRM2LGA.js +100 -0
- package/lib/chunk-QHRM2LGA.js.map +1 -0
- package/lib/chunk-QQB52UMR.cjs +44 -0
- package/lib/chunk-QQB52UMR.cjs.map +1 -0
- package/lib/chunk-R2Z7SDWB.js +68 -0
- package/lib/chunk-R2Z7SDWB.js.map +1 -0
- package/lib/chunk-R4T65OTC.js +89 -0
- package/lib/chunk-R4T65OTC.js.map +1 -0
- package/lib/chunk-R5SMSVJE.js +59 -0
- package/lib/chunk-R5SMSVJE.js.map +1 -0
- package/lib/chunk-RI6NF3OR.js +69 -0
- package/lib/chunk-RI6NF3OR.js.map +1 -0
- package/lib/chunk-RKPUNPFI.js +68 -0
- package/lib/chunk-RKPUNPFI.js.map +1 -0
- package/lib/chunk-RLAVR726.js +67 -0
- package/lib/chunk-RLAVR726.js.map +1 -0
- package/lib/chunk-RPP6LEIY.js +75 -0
- package/lib/chunk-RPP6LEIY.js.map +1 -0
- package/lib/chunk-RSOPQPT4.js +42 -0
- package/lib/chunk-RSOPQPT4.js.map +1 -0
- package/lib/chunk-S35MKEJS.cjs +88 -0
- package/lib/chunk-S35MKEJS.cjs.map +1 -0
- package/lib/chunk-S4TR2UHV.js +65 -0
- package/lib/chunk-S4TR2UHV.js.map +1 -0
- package/lib/chunk-S6CTDMVV.js +191 -0
- package/lib/chunk-S6CTDMVV.js.map +1 -0
- package/lib/chunk-S6M3FY7K.cjs +38 -0
- package/lib/chunk-S6M3FY7K.cjs.map +1 -0
- package/lib/chunk-SAZNFIJE.js +58 -0
- package/lib/chunk-SAZNFIJE.js.map +1 -0
- package/lib/chunk-SBTTBUKV.cjs +53 -0
- package/lib/chunk-SBTTBUKV.cjs.map +1 -0
- package/lib/chunk-SCPNHUAH.js +77 -0
- package/lib/chunk-SCPNHUAH.js.map +1 -0
- package/lib/chunk-SDIFNFXF.cjs +70 -0
- package/lib/chunk-SDIFNFXF.cjs.map +1 -0
- package/lib/chunk-SJ3LU5N4.js +68 -0
- package/lib/chunk-SJ3LU5N4.js.map +1 -0
- package/lib/chunk-SJFHQHTE.js +38 -0
- package/lib/chunk-SJFHQHTE.js.map +1 -0
- package/lib/chunk-SL2QY66Q.js +100 -0
- package/lib/chunk-SL2QY66Q.js.map +1 -0
- package/lib/chunk-SNRGHNRR.js +612 -0
- package/lib/chunk-SNRGHNRR.js.map +1 -0
- package/lib/chunk-SQI2JQK4.cjs +79 -0
- package/lib/chunk-SQI2JQK4.cjs.map +1 -0
- package/lib/chunk-SS47BWTZ.js +68 -0
- package/lib/chunk-SS47BWTZ.js.map +1 -0
- package/lib/chunk-SVN5VVVA.cjs +98 -0
- package/lib/chunk-SVN5VVVA.cjs.map +1 -0
- package/lib/chunk-T2R5XGY4.cjs +70 -0
- package/lib/chunk-T2R5XGY4.cjs.map +1 -0
- package/lib/chunk-T5BW3NQW.cjs +134 -0
- package/lib/chunk-T5BW3NQW.cjs.map +1 -0
- package/lib/chunk-T6BGMCNM.js +61 -0
- package/lib/chunk-T6BGMCNM.js.map +1 -0
- package/lib/chunk-TL3OBA4N.js +82 -0
- package/lib/chunk-TL3OBA4N.js.map +1 -0
- package/lib/chunk-TSIO7BVL.js +77 -0
- package/lib/chunk-TSIO7BVL.js.map +1 -0
- package/lib/chunk-TVRITF4Q.cjs +164 -0
- package/lib/chunk-TVRITF4Q.cjs.map +1 -0
- package/lib/chunk-TX4LQ66D.js +305 -0
- package/lib/chunk-TX4LQ66D.js.map +1 -0
- package/lib/chunk-TXJDJKNO.cjs +179 -0
- package/lib/chunk-TXJDJKNO.cjs.map +1 -0
- package/lib/chunk-TZB3ITFX.js +177 -0
- package/lib/chunk-TZB3ITFX.js.map +1 -0
- package/lib/chunk-U2YMMZI7.cjs +79 -0
- package/lib/chunk-U2YMMZI7.cjs.map +1 -0
- package/lib/chunk-U4IXGFAH.cjs +81 -0
- package/lib/chunk-U4IXGFAH.cjs.map +1 -0
- package/lib/chunk-U6SR6NW4.cjs +179 -0
- package/lib/chunk-U6SR6NW4.cjs.map +1 -0
- package/lib/chunk-UC6CO5EO.js +58 -0
- package/lib/chunk-UC6CO5EO.js.map +1 -0
- package/lib/chunk-UKCNJHEI.js +51 -0
- package/lib/chunk-UKCNJHEI.js.map +1 -0
- package/lib/chunk-USYXGMLW.cjs +62 -0
- package/lib/chunk-USYXGMLW.cjs.map +1 -0
- package/lib/chunk-UT7ITGTD.js +50 -0
- package/lib/chunk-UT7ITGTD.js.map +1 -0
- package/lib/chunk-UTANC4S3.js +51 -0
- package/lib/chunk-UTANC4S3.js.map +1 -0
- package/lib/chunk-UTKMV624.cjs +91 -0
- package/lib/chunk-UTKMV624.cjs.map +1 -0
- package/lib/chunk-UVTVQ3XM.js +321 -0
- package/lib/chunk-UVTVQ3XM.js.map +1 -0
- package/lib/chunk-UY5UOVA5.js +68 -0
- package/lib/chunk-UY5UOVA5.js.map +1 -0
- package/lib/chunk-UZXJKIWS.js +60 -0
- package/lib/chunk-UZXJKIWS.js.map +1 -0
- package/lib/chunk-V4Z3AVQ5.cjs +193 -0
- package/lib/chunk-V4Z3AVQ5.cjs.map +1 -0
- package/lib/chunk-V7STA2MI.js +116 -0
- package/lib/chunk-V7STA2MI.js.map +1 -0
- package/lib/chunk-VDFUCYKF.cjs +122 -0
- package/lib/chunk-VDFUCYKF.cjs.map +1 -0
- package/lib/chunk-VEWBKMYO.js +60 -0
- package/lib/chunk-VEWBKMYO.js.map +1 -0
- package/lib/chunk-VJZPWAOS.cjs +60 -0
- package/lib/chunk-VJZPWAOS.cjs.map +1 -0
- package/lib/chunk-VK7RTKH2.cjs +62 -0
- package/lib/chunk-VK7RTKH2.cjs.map +1 -0
- package/lib/chunk-VP2HZVZL.js +86 -0
- package/lib/chunk-VP2HZVZL.js.map +1 -0
- package/lib/chunk-VRTIEHU4.cjs +84 -0
- package/lib/chunk-VRTIEHU4.cjs.map +1 -0
- package/lib/chunk-VUSUG2V7.cjs +75 -0
- package/lib/chunk-VUSUG2V7.cjs.map +1 -0
- package/lib/chunk-VXF5K4Q2.js +89 -0
- package/lib/chunk-VXF5K4Q2.js.map +1 -0
- package/lib/chunk-VXQAZUOC.js +68 -0
- package/lib/chunk-VXQAZUOC.js.map +1 -0
- package/lib/chunk-VYOG7GOR.js +164 -0
- package/lib/chunk-VYOG7GOR.js.map +1 -0
- package/lib/chunk-W3DJZSUC.js +68 -0
- package/lib/chunk-W3DJZSUC.js.map +1 -0
- package/lib/chunk-W4VYQSWL.js +68 -0
- package/lib/chunk-W4VYQSWL.js.map +1 -0
- package/lib/chunk-WDHLTDFT.cjs +198 -0
- package/lib/chunk-WDHLTDFT.cjs.map +1 -0
- package/lib/chunk-WE7O2JQD.js +78 -0
- package/lib/chunk-WE7O2JQD.js.map +1 -0
- package/lib/chunk-WJETIVVT.cjs +120 -0
- package/lib/chunk-WJETIVVT.cjs.map +1 -0
- package/lib/chunk-WKCDGDOI.js +132 -0
- package/lib/chunk-WKCDGDOI.js.map +1 -0
- package/lib/chunk-WMCNHWIZ.cjs +96 -0
- package/lib/chunk-WMCNHWIZ.cjs.map +1 -0
- package/lib/chunk-WMFHLZIP.js +177 -0
- package/lib/chunk-WMFHLZIP.js.map +1 -0
- package/lib/chunk-WMYAGESR.cjs +47 -0
- package/lib/chunk-WMYAGESR.cjs.map +1 -0
- package/lib/chunk-WO5LQQSK.cjs +4 -0
- package/lib/chunk-WO5LQQSK.cjs.map +1 -0
- package/lib/chunk-WOVCY6ON.cjs +22 -0
- package/lib/chunk-WOVCY6ON.cjs.map +1 -0
- package/lib/chunk-WP7JEJSN.js +79 -0
- package/lib/chunk-WP7JEJSN.js.map +1 -0
- package/lib/chunk-WPF55XSY.js +120 -0
- package/lib/chunk-WPF55XSY.js.map +1 -0
- package/lib/chunk-XB5JE3RU.cjs +60 -0
- package/lib/chunk-XB5JE3RU.cjs.map +1 -0
- package/lib/chunk-XCDGHNQE.cjs +79 -0
- package/lib/chunk-XCDGHNQE.cjs.map +1 -0
- package/lib/chunk-XDXHUQKN.cjs +70 -0
- package/lib/chunk-XDXHUQKN.cjs.map +1 -0
- package/lib/chunk-XL2ZZNJT.cjs +62 -0
- package/lib/chunk-XL2ZZNJT.cjs.map +1 -0
- package/lib/chunk-XPDGCJRF.js +86 -0
- package/lib/chunk-XPDGCJRF.js.map +1 -0
- package/lib/chunk-XQCOOANO.cjs +102 -0
- package/lib/chunk-XQCOOANO.cjs.map +1 -0
- package/lib/chunk-XXMKVFAD.js +96 -0
- package/lib/chunk-XXMKVFAD.js.map +1 -0
- package/lib/chunk-XY3XGLVQ.js +59 -0
- package/lib/chunk-XY3XGLVQ.js.map +1 -0
- package/lib/chunk-XYEUNWP7.js +116 -0
- package/lib/chunk-XYEUNWP7.js.map +1 -0
- package/lib/chunk-Y3AWLIPE.js +177 -0
- package/lib/chunk-Y3AWLIPE.js.map +1 -0
- package/lib/chunk-Y4RL7J44.js +60 -0
- package/lib/chunk-Y4RL7J44.js.map +1 -0
- package/lib/chunk-Y6VJAXRZ.cjs +70 -0
- package/lib/chunk-Y6VJAXRZ.cjs.map +1 -0
- package/lib/chunk-Y7AMOQB3.js +124 -0
- package/lib/chunk-Y7AMOQB3.js.map +1 -0
- package/lib/chunk-Y7FJ5Q2J.cjs +72 -0
- package/lib/chunk-Y7FJ5Q2J.cjs.map +1 -0
- package/lib/chunk-YAW47KDX.cjs +91 -0
- package/lib/chunk-YAW47KDX.cjs.map +1 -0
- package/lib/chunk-YI4PGM5E.js +33 -0
- package/lib/chunk-YI4PGM5E.js.map +1 -0
- package/lib/chunk-YIGM3TRP.cjs +193 -0
- package/lib/chunk-YIGM3TRP.cjs.map +1 -0
- package/lib/chunk-YJ3O5XLC.js +3 -0
- package/lib/chunk-YJ3O5XLC.js.map +1 -0
- package/lib/chunk-YUMNWQ2B.cjs +84 -0
- package/lib/chunk-YUMNWQ2B.cjs.map +1 -0
- package/lib/chunk-YXDOEPHX.cjs +79 -0
- package/lib/chunk-YXDOEPHX.cjs.map +1 -0
- package/lib/chunk-YXFYXDGG.js +154 -0
- package/lib/chunk-YXFYXDGG.js.map +1 -0
- package/lib/chunk-Z2KWVYWJ.js +68 -0
- package/lib/chunk-Z2KWVYWJ.js.map +1 -0
- package/lib/chunk-Z6A2V36P.js +68 -0
- package/lib/chunk-Z6A2V36P.js.map +1 -0
- package/lib/chunk-Z6LVDEZN.cjs +70 -0
- package/lib/chunk-Z6LVDEZN.cjs.map +1 -0
- package/lib/chunk-ZDADYNKG.cjs +69 -0
- package/lib/chunk-ZDADYNKG.cjs.map +1 -0
- package/lib/chunk-ZELVMPF4.js +118 -0
- package/lib/chunk-ZELVMPF4.js.map +1 -0
- package/lib/chunk-ZIXEKEFD.js +75 -0
- package/lib/chunk-ZIXEKEFD.js.map +1 -0
- package/lib/chunk-ZOYQ4RRX.js +709 -0
- package/lib/chunk-ZOYQ4RRX.js.map +1 -0
- package/lib/chunk-ZPSB3SIY.js +77 -0
- package/lib/chunk-ZPSB3SIY.js.map +1 -0
- package/lib/chunk-ZWZKHKFG.js +91 -0
- package/lib/chunk-ZWZKHKFG.js.map +1 -0
- package/lib/client.cjs +7 -6
- package/lib/client.d.cts +2 -1
- package/lib/client.d.ts +2 -1
- package/lib/client.js +6 -5
- package/lib/commercelayer.cjs +21 -16
- package/lib/commercelayer.d.cts +13 -10
- package/lib/commercelayer.d.ts +13 -10
- package/lib/commercelayer.js +10 -9
- package/lib/config.cjs +2 -2
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/config.js +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +14 -14
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-D4JGyBOl.d.cts +55 -0
- package/lib/fetch-D4JGyBOl.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +155 -671
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +17 -6
- package/lib/index.d.ts +15 -3
- package/lib/index.js +154 -142
- package/lib/index.js.map +1 -1
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +11 -10
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +9 -8
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +6 -6
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +3 -3
- package/lib/resource.cjs +14 -13
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +9 -8
- package/lib/resources/addresses.cjs +11 -10
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +10 -9
- package/lib/resources/adjustments.cjs +11 -10
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +10 -9
- package/lib/resources/adyen_gateways.cjs +11 -10
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +10 -9
- package/lib/resources/adyen_payments.cjs +11 -10
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +10 -9
- package/lib/resources/applications.cjs +11 -10
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +10 -9
- package/lib/resources/attachments.cjs +11 -10
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +10 -9
- package/lib/resources/authorizations.cjs +11 -10
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +10 -9
- package/lib/resources/avalara_accounts.cjs +11 -10
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +10 -9
- package/lib/resources/axerve_gateways.cjs +11 -10
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +10 -9
- package/lib/resources/axerve_payments.cjs +11 -10
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +10 -9
- package/lib/resources/billing_info_validation_rules.cjs +21 -0
- package/lib/resources/billing_info_validation_rules.cjs.map +1 -0
- package/lib/resources/billing_info_validation_rules.d.cts +7 -0
- package/lib/resources/billing_info_validation_rules.d.ts +4 -0
- package/lib/resources/billing_info_validation_rules.js +13 -0
- package/lib/resources/billing_info_validation_rules.js.map +1 -0
- package/lib/resources/bing_geocoders.cjs +11 -10
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +10 -9
- package/lib/resources/braintree_gateways.cjs +11 -10
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +10 -9
- package/lib/resources/braintree_payments.cjs +11 -10
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +10 -9
- package/lib/resources/bundles.cjs +11 -10
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +10 -9
- package/lib/resources/buy_x_pay_y_promotions.cjs +11 -10
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +10 -9
- package/lib/resources/captures.cjs +11 -10
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +10 -9
- package/lib/resources/carrier_accounts.cjs +11 -10
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +10 -9
- package/lib/resources/checkout_com_gateways.cjs +11 -10
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +10 -9
- package/lib/resources/checkout_com_payments.cjs +11 -10
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +10 -9
- package/lib/resources/cleanups.cjs +11 -10
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +10 -9
- package/lib/resources/coupon_codes_promotion_rules.cjs +11 -10
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +10 -9
- package/lib/resources/coupon_recipients.cjs +11 -10
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +10 -9
- package/lib/resources/coupons.cjs +11 -10
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +10 -9
- package/lib/resources/custom_promotion_rules.cjs +11 -10
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +10 -9
- package/lib/resources/customer_addresses.cjs +11 -10
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +10 -9
- package/lib/resources/customer_groups.cjs +11 -10
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +10 -9
- package/lib/resources/customer_password_resets.cjs +11 -10
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +10 -9
- package/lib/resources/customer_payment_sources.cjs +11 -10
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +10 -9
- package/lib/resources/customer_subscriptions.cjs +11 -10
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +10 -9
- package/lib/resources/customers.cjs +11 -10
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +10 -9
- package/lib/resources/delivery_lead_times.cjs +11 -10
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +10 -9
- package/lib/resources/discount_engine_items.cjs +11 -10
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +10 -9
- package/lib/resources/discount_engines.cjs +11 -10
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +10 -9
- package/lib/resources/easypost_pickups.cjs +11 -10
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +10 -9
- package/lib/resources/event_callbacks.cjs +11 -10
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +10 -9
- package/lib/resources/event_stores.cjs +11 -10
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/event_stores.js +10 -9
- package/lib/resources/events.cjs +11 -10
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +10 -9
- package/lib/resources/exports.cjs +11 -10
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +10 -9
- package/lib/resources/external_gateways.cjs +11 -10
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +10 -9
- package/lib/resources/external_payments.cjs +11 -10
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +10 -9
- package/lib/resources/external_promotions.cjs +11 -10
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +10 -9
- package/lib/resources/external_tax_calculators.cjs +11 -10
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +10 -9
- package/lib/resources/fixed_amount_promotions.cjs +11 -10
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +10 -9
- package/lib/resources/fixed_price_promotions.cjs +11 -10
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +10 -9
- package/lib/resources/flex_promotions.cjs +11 -10
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +10 -9
- package/lib/resources/free_gift_promotions.cjs +11 -10
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +10 -9
- package/lib/resources/free_shipping_promotions.cjs +11 -10
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +10 -9
- package/lib/resources/geocoders.cjs +11 -10
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +10 -9
- package/lib/resources/gift_card_recipients.cjs +11 -10
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +10 -9
- package/lib/resources/gift_cards.cjs +11 -10
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +10 -9
- package/lib/resources/google_geocoders.cjs +11 -10
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +10 -9
- package/lib/resources/imports.cjs +11 -10
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +10 -9
- package/lib/resources/in_stock_subscriptions.cjs +11 -10
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +10 -9
- package/lib/resources/inventory_models.cjs +11 -10
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +10 -9
- package/lib/resources/inventory_return_locations.cjs +11 -10
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +10 -9
- package/lib/resources/inventory_stock_locations.cjs +11 -10
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +10 -9
- package/lib/resources/klarna_gateways.cjs +11 -10
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +10 -9
- package/lib/resources/klarna_payments.cjs +11 -10
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +10 -9
- package/lib/resources/line_item_options.cjs +11 -10
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +10 -9
- package/lib/resources/line_items.cjs +11 -10
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +10 -9
- package/lib/resources/links.cjs +11 -10
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +10 -9
- package/lib/resources/manual_gateways.cjs +11 -10
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +10 -9
- package/lib/resources/manual_tax_calculators.cjs +11 -10
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +10 -9
- package/lib/resources/markets.cjs +11 -10
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +10 -9
- package/lib/resources/merchants.cjs +11 -10
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +10 -9
- package/lib/resources/notifications.cjs +11 -10
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +10 -9
- package/lib/resources/order_amount_promotion_rules.cjs +11 -10
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +10 -9
- package/lib/resources/order_copies.cjs +11 -10
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +10 -9
- package/lib/resources/order_factories.cjs +11 -10
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +10 -9
- package/lib/resources/order_subscription_items.cjs +11 -10
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +10 -9
- package/lib/resources/order_subscriptions.cjs +11 -10
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +10 -9
- package/lib/resources/order_validation_rules.cjs +21 -0
- package/lib/resources/order_validation_rules.cjs.map +1 -0
- package/lib/resources/order_validation_rules.d.cts +7 -0
- package/lib/resources/order_validation_rules.d.ts +4 -0
- package/lib/resources/order_validation_rules.js +13 -0
- package/lib/resources/order_validation_rules.js.map +1 -0
- package/lib/resources/orders.cjs +11 -10
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +10 -9
- package/lib/resources/organizations.cjs +11 -10
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +10 -9
- package/lib/resources/packages.cjs +11 -10
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +10 -9
- package/lib/resources/parcel_line_items.cjs +11 -10
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +10 -9
- package/lib/resources/parcels.cjs +11 -10
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +10 -9
- package/lib/resources/payment_gateways.cjs +11 -10
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +10 -9
- package/lib/resources/payment_methods.cjs +11 -10
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +10 -9
- package/lib/resources/payment_options.cjs +11 -10
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +10 -9
- package/lib/resources/paypal_gateways.cjs +11 -10
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +10 -9
- package/lib/resources/paypal_payments.cjs +11 -10
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +10 -9
- package/lib/resources/percentage_discount_promotions.cjs +11 -10
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +10 -9
- package/lib/resources/pickups.cjs +11 -10
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +10 -9
- package/lib/resources/price_frequency_tiers.cjs +11 -10
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +10 -9
- package/lib/resources/price_list_schedulers.cjs +11 -10
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +10 -9
- package/lib/resources/price_lists.cjs +11 -10
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +10 -9
- package/lib/resources/price_tiers.cjs +11 -10
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +10 -9
- package/lib/resources/price_volume_tiers.cjs +11 -10
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +10 -9
- package/lib/resources/prices.cjs +11 -10
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +10 -9
- package/lib/resources/promotion_rules.cjs +11 -10
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +10 -9
- package/lib/resources/promotions.cjs +11 -10
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +10 -9
- package/lib/resources/recurring_order_copies.cjs +11 -10
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +10 -9
- package/lib/resources/refunds.cjs +11 -10
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +10 -9
- package/lib/resources/reserved_stocks.cjs +11 -10
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +10 -9
- package/lib/resources/resource_errors.cjs +11 -10
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +10 -9
- package/lib/resources/return_line_items.cjs +11 -10
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +10 -9
- package/lib/resources/returns.cjs +11 -10
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +10 -9
- package/lib/resources/satispay_gateways.cjs +11 -10
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +10 -9
- package/lib/resources/satispay_payments.cjs +11 -10
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +10 -9
- package/lib/resources/shipment_line_items.cjs +21 -0
- package/lib/resources/shipment_line_items.cjs.map +1 -0
- package/lib/resources/shipment_line_items.d.cts +7 -0
- package/lib/resources/shipment_line_items.d.ts +4 -0
- package/lib/resources/shipment_line_items.js +13 -0
- package/lib/resources/shipment_line_items.js.map +1 -0
- package/lib/resources/shipments.cjs +11 -10
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +10 -9
- package/lib/resources/shipping_categories.cjs +11 -10
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +10 -9
- package/lib/resources/shipping_method_tiers.cjs +11 -10
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +10 -9
- package/lib/resources/shipping_methods.cjs +11 -10
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +10 -9
- package/lib/resources/shipping_weight_tiers.cjs +11 -10
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +10 -9
- package/lib/resources/shipping_zones.cjs +11 -10
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +10 -9
- package/lib/resources/sku_list_items.cjs +11 -10
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +10 -9
- package/lib/resources/sku_list_promotion_rules.cjs +11 -10
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +10 -9
- package/lib/resources/sku_lists.cjs +11 -10
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +10 -9
- package/lib/resources/sku_options.cjs +11 -10
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +10 -9
- package/lib/resources/skus.cjs +11 -10
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +10 -9
- package/lib/resources/stock_items.cjs +11 -10
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +10 -9
- package/lib/resources/stock_line_items.cjs +11 -10
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +10 -9
- package/lib/resources/stock_locations.cjs +11 -10
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +10 -9
- package/lib/resources/stock_reservations.cjs +11 -10
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +10 -9
- package/lib/resources/stock_transfers.cjs +11 -10
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +10 -9
- package/lib/resources/stores.cjs +11 -10
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +10 -9
- package/lib/resources/stripe_gateways.cjs +11 -10
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +10 -9
- package/lib/resources/stripe_payments.cjs +11 -10
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +10 -9
- package/lib/resources/stripe_tax_accounts.cjs +11 -10
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +10 -9
- package/lib/resources/subscription_models.cjs +11 -10
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +10 -9
- package/lib/resources/tags.cjs +11 -10
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +10 -9
- package/lib/resources/talon_one_accounts.cjs +11 -10
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +10 -9
- package/lib/resources/tax_calculators.cjs +11 -10
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +10 -9
- package/lib/resources/tax_categories.cjs +11 -10
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +10 -9
- package/lib/resources/tax_rules.cjs +11 -10
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +10 -9
- package/lib/resources/taxjar_accounts.cjs +11 -10
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +10 -9
- package/lib/resources/transactions.cjs +11 -10
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +10 -9
- package/lib/resources/vertex_accounts.cjs +11 -10
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +10 -9
- package/lib/resources/voids.cjs +11 -10
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +10 -9
- package/lib/resources/webhooks.cjs +11 -10
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +10 -9
- package/lib/resources/wire_transfers.cjs +11 -10
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +10 -9
- package/lib/single-client.cjs +707 -0
- package/lib/single-client.cjs.map +1 -0
- package/lib/single-client.d.cts +21 -0
- package/lib/single-client.d.ts +19 -0
- package/lib/single-client.js +156 -0
- package/lib/single-client.js.map +1 -0
- package/lib/static.cjs +12 -11
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +11 -10
- package/lib/util.cjs +5 -5
- package/lib/util.js +1 -1
- package/lib/version.cjs +17 -0
- package/lib/version.cjs.map +1 -0
- package/lib/version.d.cts +4 -0
- package/lib/version.d.ts +4 -0
- package/lib/version.js +4 -0
- package/lib/version.js.map +1 -0
- package/package.json +27 -18
- package/lib/api-BL9tZFHY.d.cts +0 -18190
- package/lib/api-DZQtGYwQ.d.ts +0 -18190
- package/lib/chunk-22RVT2J2.js +0 -20
- package/lib/chunk-22RVT2J2.js.map +0 -1
- package/lib/chunk-24NE5SNH.cjs +0 -56
- package/lib/chunk-24NE5SNH.cjs.map +0 -1
- package/lib/chunk-2BD5EQXE.js +0 -51
- package/lib/chunk-2BD5EQXE.js.map +0 -1
- package/lib/chunk-2CFM6BXC.cjs +0 -95
- package/lib/chunk-2CFM6BXC.cjs.map +0 -1
- package/lib/chunk-2D7XHAVQ.js +0 -59
- package/lib/chunk-2D7XHAVQ.js.map +0 -1
- package/lib/chunk-2DG24Y6O.cjs +0 -51
- package/lib/chunk-2DG24Y6O.cjs.map +0 -1
- package/lib/chunk-2DQPE4FR.cjs +0 -51
- package/lib/chunk-2DQPE4FR.cjs.map +0 -1
- package/lib/chunk-2GU7EWJC.js +0 -44
- package/lib/chunk-2GU7EWJC.js.map +0 -1
- package/lib/chunk-2ILQ3GLM.cjs +0 -47
- package/lib/chunk-2ILQ3GLM.cjs.map +0 -1
- package/lib/chunk-2IW23WZS.cjs +0 -47
- package/lib/chunk-2IW23WZS.cjs.map +0 -1
- package/lib/chunk-2NFQDGNK.cjs +0 -47
- package/lib/chunk-2NFQDGNK.cjs.map +0 -1
- package/lib/chunk-2S7PLJHX.js +0 -32
- package/lib/chunk-2S7PLJHX.js.map +0 -1
- package/lib/chunk-2TXRJQTU.cjs +0 -44
- package/lib/chunk-2TXRJQTU.cjs.map +0 -1
- package/lib/chunk-2WH7FZLF.js +0 -37
- package/lib/chunk-2WH7FZLF.js.map +0 -1
- package/lib/chunk-3D4FUEMG.js +0 -49
- package/lib/chunk-3D4FUEMG.js.map +0 -1
- package/lib/chunk-3EX76AZW.js +0 -3
- package/lib/chunk-3EX76AZW.js.map +0 -1
- package/lib/chunk-3GOADUES.cjs +0 -63
- package/lib/chunk-3GOADUES.cjs.map +0 -1
- package/lib/chunk-3JAP7TVC.js +0 -51
- package/lib/chunk-3JAP7TVC.js.map +0 -1
- package/lib/chunk-43NY4KEG.js +0 -49
- package/lib/chunk-43NY4KEG.js.map +0 -1
- package/lib/chunk-44LYFX4Z.js +0 -69
- package/lib/chunk-44LYFX4Z.js.map +0 -1
- package/lib/chunk-46GP7OXR.js +0 -96
- package/lib/chunk-46GP7OXR.js.map +0 -1
- package/lib/chunk-4DIICB2C.js +0 -68
- package/lib/chunk-4DIICB2C.js.map +0 -1
- package/lib/chunk-4GRYDY72.js +0 -36
- package/lib/chunk-4GRYDY72.js.map +0 -1
- package/lib/chunk-4HI7WNDF.cjs +0 -55
- package/lib/chunk-4HI7WNDF.cjs.map +0 -1
- package/lib/chunk-4MV6VICV.js +0 -35
- package/lib/chunk-4MV6VICV.js.map +0 -1
- package/lib/chunk-4POJYIPJ.js +0 -95
- package/lib/chunk-4POJYIPJ.js.map +0 -1
- package/lib/chunk-4QWRJHKI.cjs +0 -47
- package/lib/chunk-4QWRJHKI.cjs.map +0 -1
- package/lib/chunk-4UPCZNRS.cjs +0 -34
- package/lib/chunk-4UPCZNRS.cjs.map +0 -1
- package/lib/chunk-4XTBGJWW.js +0 -52
- package/lib/chunk-4XTBGJWW.js.map +0 -1
- package/lib/chunk-537HL2FZ.cjs +0 -107
- package/lib/chunk-537HL2FZ.cjs.map +0 -1
- package/lib/chunk-54PMSXTI.cjs +0 -51
- package/lib/chunk-54PMSXTI.cjs.map +0 -1
- package/lib/chunk-57GQ3X6P.js +0 -91
- package/lib/chunk-57GQ3X6P.js.map +0 -1
- package/lib/chunk-5ARYINZ2.cjs +0 -50
- package/lib/chunk-5ARYINZ2.cjs.map +0 -1
- package/lib/chunk-5EIKNK5S.js +0 -66
- package/lib/chunk-5EIKNK5S.js.map +0 -1
- package/lib/chunk-5J35GMM3.js +0 -28
- package/lib/chunk-5J35GMM3.js.map +0 -1
- package/lib/chunk-5Q2MYZ5B.js +0 -59
- package/lib/chunk-5Q2MYZ5B.js.map +0 -1
- package/lib/chunk-5TOKIUAB.js +0 -89
- package/lib/chunk-5TOKIUAB.js.map +0 -1
- package/lib/chunk-5UVYU4XN.cjs +0 -51
- package/lib/chunk-5UVYU4XN.cjs.map +0 -1
- package/lib/chunk-5XLKZYDF.cjs +0 -30
- package/lib/chunk-5XLKZYDF.cjs.map +0 -1
- package/lib/chunk-5YMHXTJG.cjs +0 -4
- package/lib/chunk-5YMHXTJG.cjs.map +0 -1
- package/lib/chunk-64WLJSJG.cjs +0 -51
- package/lib/chunk-64WLJSJG.cjs.map +0 -1
- package/lib/chunk-6BMCLZBQ.cjs +0 -51
- package/lib/chunk-6BMCLZBQ.cjs.map +0 -1
- package/lib/chunk-6BUVYKSP.cjs +0 -49
- package/lib/chunk-6BUVYKSP.cjs.map +0 -1
- package/lib/chunk-6CRXGM2S.cjs +0 -50
- package/lib/chunk-6CRXGM2S.cjs.map +0 -1
- package/lib/chunk-6RG3EDXD.js +0 -49
- package/lib/chunk-6RG3EDXD.js.map +0 -1
- package/lib/chunk-6TBUF3H2.cjs +0 -68
- package/lib/chunk-6TBUF3H2.cjs.map +0 -1
- package/lib/chunk-6TO7G4WZ.cjs +0 -118
- package/lib/chunk-6TO7G4WZ.cjs.map +0 -1
- package/lib/chunk-6VN4NEUS.js +0 -52
- package/lib/chunk-6VN4NEUS.js.map +0 -1
- package/lib/chunk-6X3SERAO.cjs +0 -39
- package/lib/chunk-6X3SERAO.cjs.map +0 -1
- package/lib/chunk-6XX3G5GF.cjs +0 -61
- package/lib/chunk-6XX3G5GF.cjs.map +0 -1
- package/lib/chunk-73PTWYSG.js +0 -48
- package/lib/chunk-73PTWYSG.js.map +0 -1
- package/lib/chunk-73QKCTFL.cjs +0 -95
- package/lib/chunk-73QKCTFL.cjs.map +0 -1
- package/lib/chunk-74OFKAKF.js +0 -54
- package/lib/chunk-74OFKAKF.js.map +0 -1
- package/lib/chunk-7C2RQMWG.cjs +0 -56
- package/lib/chunk-7C2RQMWG.cjs.map +0 -1
- package/lib/chunk-7CG3LRH3.js +0 -32
- package/lib/chunk-7CG3LRH3.js.map +0 -1
- package/lib/chunk-7OHJVGWS.js +0 -93
- package/lib/chunk-7OHJVGWS.js.map +0 -1
- package/lib/chunk-7RZTCBDR.cjs +0 -22
- package/lib/chunk-7RZTCBDR.cjs.map +0 -1
- package/lib/chunk-7SB7OFM7.js +0 -41
- package/lib/chunk-7SB7OFM7.js.map +0 -1
- package/lib/chunk-7W4HDA22.js +0 -61
- package/lib/chunk-7W4HDA22.js.map +0 -1
- package/lib/chunk-7YTV5CFU.js +0 -113
- package/lib/chunk-7YTV5CFU.js.map +0 -1
- package/lib/chunk-A5P5CV26.js +0 -99
- package/lib/chunk-A5P5CV26.js.map +0 -1
- package/lib/chunk-ADBL6GHI.js +0 -287
- package/lib/chunk-ADBL6GHI.js.map +0 -1
- package/lib/chunk-AFCHVA7J.cjs +0 -51
- package/lib/chunk-AFCHVA7J.cjs.map +0 -1
- package/lib/chunk-ALWCRWTW.js +0 -41
- package/lib/chunk-ALWCRWTW.js.map +0 -1
- package/lib/chunk-ATUQUSZW.cjs +0 -42
- package/lib/chunk-ATUQUSZW.cjs.map +0 -1
- package/lib/chunk-B3C3H44A.cjs +0 -47
- package/lib/chunk-B3C3H44A.cjs.map +0 -1
- package/lib/chunk-B66V3CZY.cjs +0 -56
- package/lib/chunk-B66V3CZY.cjs.map +0 -1
- package/lib/chunk-BA5RFQPZ.cjs +0 -95
- package/lib/chunk-BA5RFQPZ.cjs.map +0 -1
- package/lib/chunk-BAHXWPSG.cjs +0 -61
- package/lib/chunk-BAHXWPSG.cjs.map +0 -1
- package/lib/chunk-BDXU3PHK.cjs +0 -51
- package/lib/chunk-BDXU3PHK.cjs.map +0 -1
- package/lib/chunk-BFGICGFK.js +0 -73
- package/lib/chunk-BFGICGFK.js.map +0 -1
- package/lib/chunk-BKHI7LSW.js +0 -51
- package/lib/chunk-BKHI7LSW.js.map +0 -1
- package/lib/chunk-BMMDE6ES.cjs +0 -47
- package/lib/chunk-BMMDE6ES.cjs.map +0 -1
- package/lib/chunk-BNRBLHHS.js +0 -37
- package/lib/chunk-BNRBLHHS.js.map +0 -1
- package/lib/chunk-BQIGX57O.js +0 -48
- package/lib/chunk-BQIGX57O.js.map +0 -1
- package/lib/chunk-BVJSDDPT.js +0 -68
- package/lib/chunk-BVJSDDPT.js.map +0 -1
- package/lib/chunk-BW4KC4JJ.js +0 -48
- package/lib/chunk-BW4KC4JJ.js.map +0 -1
- package/lib/chunk-C5TXM4TK.js +0 -73
- package/lib/chunk-C5TXM4TK.js.map +0 -1
- package/lib/chunk-C6RXW4YY.cjs +0 -89
- package/lib/chunk-C6RXW4YY.cjs.map +0 -1
- package/lib/chunk-C7K53SPD.js +0 -24
- package/lib/chunk-C7K53SPD.js.map +0 -1
- package/lib/chunk-CEZMXGF2.js +0 -51
- package/lib/chunk-CEZMXGF2.js.map +0 -1
- package/lib/chunk-CGJSEELZ.js +0 -37
- package/lib/chunk-CGJSEELZ.js.map +0 -1
- package/lib/chunk-CHD7QDKS.js +0 -59
- package/lib/chunk-CHD7QDKS.js.map +0 -1
- package/lib/chunk-CIKMIKZ6.js +0 -42
- package/lib/chunk-CIKMIKZ6.js.map +0 -1
- package/lib/chunk-CN4ZAHGA.js +0 -40
- package/lib/chunk-CN4ZAHGA.js.map +0 -1
- package/lib/chunk-CNDVEHRU.cjs +0 -56
- package/lib/chunk-CNDVEHRU.cjs.map +0 -1
- package/lib/chunk-COHQZCSV.js +0 -54
- package/lib/chunk-COHQZCSV.js.map +0 -1
- package/lib/chunk-CVEC2QZK.cjs +0 -55
- package/lib/chunk-CVEC2QZK.cjs.map +0 -1
- package/lib/chunk-CXIIIZIG.js +0 -49
- package/lib/chunk-CXIIIZIG.js.map +0 -1
- package/lib/chunk-CYBDCJQP.cjs +0 -47
- package/lib/chunk-CYBDCJQP.cjs.map +0 -1
- package/lib/chunk-D2TATW5F.cjs +0 -550
- package/lib/chunk-D2TATW5F.cjs.map +0 -1
- package/lib/chunk-D6LGIBLP.js +0 -65
- package/lib/chunk-D6LGIBLP.js.map +0 -1
- package/lib/chunk-D7CJRB3O.cjs +0 -42
- package/lib/chunk-D7CJRB3O.cjs.map +0 -1
- package/lib/chunk-DBZRDDQC.js +0 -51
- package/lib/chunk-DBZRDDQC.js.map +0 -1
- package/lib/chunk-DGN6CMSF.cjs +0 -54
- package/lib/chunk-DGN6CMSF.cjs.map +0 -1
- package/lib/chunk-DMYSSEB4.js +0 -36
- package/lib/chunk-DMYSSEB4.js.map +0 -1
- package/lib/chunk-DRHA2WTQ.js +0 -67
- package/lib/chunk-DRHA2WTQ.js.map +0 -1
- package/lib/chunk-DU7BKVA6.js +0 -37
- package/lib/chunk-DU7BKVA6.js.map +0 -1
- package/lib/chunk-DUQUDIXD.js +0 -54
- package/lib/chunk-DUQUDIXD.js.map +0 -1
- package/lib/chunk-E23O3HTZ.js +0 -45
- package/lib/chunk-E23O3HTZ.js.map +0 -1
- package/lib/chunk-E347ZWT4.js +0 -49
- package/lib/chunk-E347ZWT4.js.map +0 -1
- package/lib/chunk-EBBRMPEP.js +0 -59
- package/lib/chunk-EBBRMPEP.js.map +0 -1
- package/lib/chunk-EURZY6LF.js +0 -45
- package/lib/chunk-EURZY6LF.js.map +0 -1
- package/lib/chunk-EV2V5IMS.cjs +0 -71
- package/lib/chunk-EV2V5IMS.cjs.map +0 -1
- package/lib/chunk-EVZXYAFX.cjs +0 -47
- package/lib/chunk-EVZXYAFX.cjs.map +0 -1
- package/lib/chunk-EWGNTRWZ.cjs +0 -51
- package/lib/chunk-EWGNTRWZ.cjs.map +0 -1
- package/lib/chunk-EWPZW23I.cjs +0 -50
- package/lib/chunk-EWPZW23I.cjs.map +0 -1
- package/lib/chunk-EZBICJIP.cjs +0 -30
- package/lib/chunk-EZBICJIP.cjs.map +0 -1
- package/lib/chunk-FD73BWXU.js +0 -93
- package/lib/chunk-FD73BWXU.js.map +0 -1
- package/lib/chunk-FDG63RME.js +0 -49
- package/lib/chunk-FDG63RME.js.map +0 -1
- package/lib/chunk-FTEO3U3B.js +0 -105
- package/lib/chunk-FTEO3U3B.js.map +0 -1
- package/lib/chunk-FYD5UJFR.js +0 -87
- package/lib/chunk-FYD5UJFR.js.map +0 -1
- package/lib/chunk-FZQEBN4H.js +0 -124
- package/lib/chunk-FZQEBN4H.js.map +0 -1
- package/lib/chunk-GBFK7JL7.cjs +0 -156
- package/lib/chunk-GBFK7JL7.cjs.map +0 -1
- package/lib/chunk-GDB54Z5E.cjs +0 -47
- package/lib/chunk-GDB54Z5E.cjs.map +0 -1
- package/lib/chunk-GDMYCRU2.cjs +0 -56
- package/lib/chunk-GDMYCRU2.cjs.map +0 -1
- package/lib/chunk-GEYB6J6Q.cjs +0 -51
- package/lib/chunk-GEYB6J6Q.cjs.map +0 -1
- package/lib/chunk-GGOX5RVE.cjs +0 -63
- package/lib/chunk-GGOX5RVE.cjs.map +0 -1
- package/lib/chunk-GHXAIVNL.cjs +0 -50
- package/lib/chunk-GHXAIVNL.cjs.map +0 -1
- package/lib/chunk-GM6TOVU3.cjs +0 -63
- package/lib/chunk-GM6TOVU3.cjs.map +0 -1
- package/lib/chunk-GQ2VOYQW.cjs +0 -47
- package/lib/chunk-GQ2VOYQW.cjs.map +0 -1
- package/lib/chunk-GQSHLDFM.js +0 -41
- package/lib/chunk-GQSHLDFM.js.map +0 -1
- package/lib/chunk-GXS65DGD.js +0 -93
- package/lib/chunk-GXS65DGD.js.map +0 -1
- package/lib/chunk-HA2JISXS.cjs +0 -56
- package/lib/chunk-HA2JISXS.cjs.map +0 -1
- package/lib/chunk-HKE5VQN6.js +0 -47
- package/lib/chunk-HKE5VQN6.js.map +0 -1
- package/lib/chunk-HVB7P2BK.cjs +0 -62
- package/lib/chunk-HVB7P2BK.cjs.map +0 -1
- package/lib/chunk-HYJ7Z6D7.js +0 -40
- package/lib/chunk-HYJ7Z6D7.js.map +0 -1
- package/lib/chunk-IA3XLO6M.js +0 -54
- package/lib/chunk-IA3XLO6M.js.map +0 -1
- package/lib/chunk-ICFDBQ5X.cjs +0 -75
- package/lib/chunk-ICFDBQ5X.cjs.map +0 -1
- package/lib/chunk-IKCYKGYL.js +0 -151
- package/lib/chunk-IKCYKGYL.js.map +0 -1
- package/lib/chunk-IKTZENHC.js +0 -53
- package/lib/chunk-IKTZENHC.js.map +0 -1
- package/lib/chunk-ILX5NRZ6.cjs +0 -55
- package/lib/chunk-ILX5NRZ6.cjs.map +0 -1
- package/lib/chunk-ISUCEW36.cjs +0 -39
- package/lib/chunk-ISUCEW36.cjs.map +0 -1
- package/lib/chunk-IW6D2ATB.cjs +0 -47
- package/lib/chunk-IW6D2ATB.cjs.map +0 -1
- package/lib/chunk-J3EPWRQF.js +0 -54
- package/lib/chunk-J3EPWRQF.js.map +0 -1
- package/lib/chunk-JF7ZZKBL.cjs +0 -70
- package/lib/chunk-JF7ZZKBL.cjs.map +0 -1
- package/lib/chunk-JMINY25P.js +0 -53
- package/lib/chunk-JMINY25P.js.map +0 -1
- package/lib/chunk-JQWRLR32.js +0 -37
- package/lib/chunk-JQWRLR32.js.map +0 -1
- package/lib/chunk-JWSRNFYM.js +0 -50
- package/lib/chunk-JWSRNFYM.js.map +0 -1
- package/lib/chunk-JWZ3H57F.js +0 -40
- package/lib/chunk-JWZ3H57F.js.map +0 -1
- package/lib/chunk-JZ3NGNOU.cjs +0 -75
- package/lib/chunk-JZ3NGNOU.cjs.map +0 -1
- package/lib/chunk-K277GYCD.cjs +0 -40
- package/lib/chunk-K277GYCD.cjs.map +0 -1
- package/lib/chunk-K45H4QRJ.cjs +0 -91
- package/lib/chunk-K45H4QRJ.cjs.map +0 -1
- package/lib/chunk-KAEKTLB6.cjs +0 -43
- package/lib/chunk-KAEKTLB6.cjs.map +0 -1
- package/lib/chunk-KIYGE6PC.cjs +0 -47
- package/lib/chunk-KIYGE6PC.cjs.map +0 -1
- package/lib/chunk-KPX3O2BQ.cjs +0 -34
- package/lib/chunk-KPX3O2BQ.cjs.map +0 -1
- package/lib/chunk-KQ62ZCOB.js +0 -45
- package/lib/chunk-KQ62ZCOB.js.map +0 -1
- package/lib/chunk-KRINYHI4.js +0 -48
- package/lib/chunk-KRINYHI4.js.map +0 -1
- package/lib/chunk-KW6OBE6A.js +0 -93
- package/lib/chunk-KW6OBE6A.js.map +0 -1
- package/lib/chunk-KZHDWO2M.js +0 -54
- package/lib/chunk-KZHDWO2M.js.map +0 -1
- package/lib/chunk-L36P6TCW.cjs +0 -61
- package/lib/chunk-L36P6TCW.cjs.map +0 -1
- package/lib/chunk-L7UYIV5U.js +0 -52
- package/lib/chunk-L7UYIV5U.js.map +0 -1
- package/lib/chunk-LH3NVT5R.cjs +0 -67
- package/lib/chunk-LH3NVT5R.cjs.map +0 -1
- package/lib/chunk-LLV57FCL.cjs +0 -95
- package/lib/chunk-LLV57FCL.cjs.map +0 -1
- package/lib/chunk-LMDYSL5J.cjs +0 -50
- package/lib/chunk-LMDYSL5J.cjs.map +0 -1
- package/lib/chunk-LQ5GKVLT.cjs +0 -163
- package/lib/chunk-LQ5GKVLT.cjs.map +0 -1
- package/lib/chunk-LU7NF3DQ.cjs +0 -39
- package/lib/chunk-LU7NF3DQ.cjs.map +0 -1
- package/lib/chunk-MG6ISTV3.js +0 -60
- package/lib/chunk-MG6ISTV3.js.map +0 -1
- package/lib/chunk-MGHVUU2R.cjs +0 -49
- package/lib/chunk-MGHVUU2R.cjs.map +0 -1
- package/lib/chunk-MH54XBSX.cjs +0 -29
- package/lib/chunk-MH54XBSX.cjs.map +0 -1
- package/lib/chunk-MLED3JD2.js +0 -45
- package/lib/chunk-MLED3JD2.js.map +0 -1
- package/lib/chunk-MPGYQKVP.cjs +0 -56
- package/lib/chunk-MPGYQKVP.cjs.map +0 -1
- package/lib/chunk-MPYP5HNA.js +0 -45
- package/lib/chunk-MPYP5HNA.js.map +0 -1
- package/lib/chunk-MSAAHT3W.js +0 -28
- package/lib/chunk-MSAAHT3W.js.map +0 -1
- package/lib/chunk-MV3DXOEE.cjs +0 -47
- package/lib/chunk-MV3DXOEE.cjs.map +0 -1
- package/lib/chunk-MYXLBPGW.js +0 -31
- package/lib/chunk-MYXLBPGW.js.map +0 -1
- package/lib/chunk-N26J535W.js +0 -53
- package/lib/chunk-N26J535W.js.map +0 -1
- package/lib/chunk-NEPV2QT6.cjs +0 -42
- package/lib/chunk-NEPV2QT6.cjs.map +0 -1
- package/lib/chunk-NG7M2SWO.cjs +0 -101
- package/lib/chunk-NG7M2SWO.cjs.map +0 -1
- package/lib/chunk-NJ7VTZ45.js +0 -40
- package/lib/chunk-NJ7VTZ45.js.map +0 -1
- package/lib/chunk-NJZ5526I.cjs +0 -98
- package/lib/chunk-NJZ5526I.cjs.map +0 -1
- package/lib/chunk-NQ2WJSTK.js +0 -45
- package/lib/chunk-NQ2WJSTK.js.map +0 -1
- package/lib/chunk-NUJMM4IE.cjs +0 -46
- package/lib/chunk-NUJMM4IE.cjs.map +0 -1
- package/lib/chunk-NZV7T6OS.cjs +0 -42
- package/lib/chunk-NZV7T6OS.cjs.map +0 -1
- package/lib/chunk-O5LELQ3H.cjs +0 -55
- package/lib/chunk-O5LELQ3H.cjs.map +0 -1
- package/lib/chunk-O5ZCTFGS.cjs +0 -57
- package/lib/chunk-O5ZCTFGS.cjs.map +0 -1
- package/lib/chunk-OCHJ6H5L.js +0 -59
- package/lib/chunk-OCHJ6H5L.js.map +0 -1
- package/lib/chunk-OEOPKYYH.cjs +0 -77
- package/lib/chunk-OEOPKYYH.cjs.map +0 -1
- package/lib/chunk-OOWF4KZW.js +0 -49
- package/lib/chunk-OOWF4KZW.js.map +0 -1
- package/lib/chunk-OQ6XCVXY.js +0 -41
- package/lib/chunk-OQ6XCVXY.js.map +0 -1
- package/lib/chunk-OQJSTZNL.cjs +0 -61
- package/lib/chunk-OQJSTZNL.cjs.map +0 -1
- package/lib/chunk-ORUCCVMU.js +0 -45
- package/lib/chunk-ORUCCVMU.js.map +0 -1
- package/lib/chunk-OUXO6SLS.cjs +0 -49
- package/lib/chunk-OUXO6SLS.cjs.map +0 -1
- package/lib/chunk-OY6MZVBQ.cjs +0 -38
- package/lib/chunk-OY6MZVBQ.cjs.map +0 -1
- package/lib/chunk-PAQOOCG3.cjs +0 -126
- package/lib/chunk-PAQOOCG3.cjs.map +0 -1
- package/lib/chunk-PASUJC7O.cjs +0 -51
- package/lib/chunk-PASUJC7O.cjs.map +0 -1
- package/lib/chunk-PDGVNV5M.js +0 -154
- package/lib/chunk-PDGVNV5M.js.map +0 -1
- package/lib/chunk-PEC5CKS7.cjs +0 -22
- package/lib/chunk-PEC5CKS7.cjs.map +0 -1
- package/lib/chunk-PECN2STI.cjs +0 -47
- package/lib/chunk-PECN2STI.cjs.map +0 -1
- package/lib/chunk-PIHQS6OG.js +0 -153
- package/lib/chunk-PIHQS6OG.js.map +0 -1
- package/lib/chunk-PN24CPTP.js +0 -40
- package/lib/chunk-PN24CPTP.js.map +0 -1
- package/lib/chunk-PSSGYICM.cjs +0 -47
- package/lib/chunk-PSSGYICM.cjs.map +0 -1
- package/lib/chunk-PWISCPLC.cjs +0 -55
- package/lib/chunk-PWISCPLC.cjs.map +0 -1
- package/lib/chunk-Q35LAO5H.cjs +0 -61
- package/lib/chunk-Q35LAO5H.cjs.map +0 -1
- package/lib/chunk-Q5LEAU3I.js +0 -44
- package/lib/chunk-Q5LEAU3I.js.map +0 -1
- package/lib/chunk-QDU2H45U.cjs +0 -53
- package/lib/chunk-QDU2H45U.cjs.map +0 -1
- package/lib/chunk-QHDNUJT6.js +0 -45
- package/lib/chunk-QHDNUJT6.js.map +0 -1
- package/lib/chunk-QHLRNRP7.js +0 -54
- package/lib/chunk-QHLRNRP7.js.map +0 -1
- package/lib/chunk-QIAXU2SJ.cjs +0 -54
- package/lib/chunk-QIAXU2SJ.cjs.map +0 -1
- package/lib/chunk-QLHBMADF.cjs +0 -52
- package/lib/chunk-QLHBMADF.cjs.map +0 -1
- package/lib/chunk-QLLPSD32.cjs +0 -51
- package/lib/chunk-QLLPSD32.cjs.map +0 -1
- package/lib/chunk-QLW5QVVW.cjs +0 -70
- package/lib/chunk-QLW5QVVW.cjs.map +0 -1
- package/lib/chunk-QNJQIJKL.cjs +0 -98
- package/lib/chunk-QNJQIJKL.cjs.map +0 -1
- package/lib/chunk-QPFAATIQ.js +0 -49
- package/lib/chunk-QPFAATIQ.js.map +0 -1
- package/lib/chunk-QRRPEYJZ.cjs +0 -26
- package/lib/chunk-QRRPEYJZ.cjs.map +0 -1
- package/lib/chunk-QYNCYKXA.cjs +0 -51
- package/lib/chunk-QYNCYKXA.cjs.map +0 -1
- package/lib/chunk-QYQLV3UF.js +0 -57
- package/lib/chunk-QYQLV3UF.js.map +0 -1
- package/lib/chunk-R5GWVFCY.cjs +0 -95
- package/lib/chunk-R5GWVFCY.cjs.map +0 -1
- package/lib/chunk-R5RKU5ET.cjs +0 -68
- package/lib/chunk-R5RKU5ET.cjs.map +0 -1
- package/lib/chunk-RAVVFNM3.cjs +0 -42
- package/lib/chunk-RAVVFNM3.cjs.map +0 -1
- package/lib/chunk-RDACMJVS.js +0 -53
- package/lib/chunk-RDACMJVS.js.map +0 -1
- package/lib/chunk-RJIKKTQZ.cjs +0 -39
- package/lib/chunk-RJIKKTQZ.cjs.map +0 -1
- package/lib/chunk-ROYOEYGX.cjs +0 -33
- package/lib/chunk-ROYOEYGX.cjs.map +0 -1
- package/lib/chunk-RSYBOKNE.js +0 -45
- package/lib/chunk-RSYBOKNE.js.map +0 -1
- package/lib/chunk-RYPA7HYS.js +0 -93
- package/lib/chunk-RYPA7HYS.js.map +0 -1
- package/lib/chunk-S2SYYYG2.cjs +0 -69
- package/lib/chunk-S2SYYYG2.cjs.map +0 -1
- package/lib/chunk-S4AILUR7.js +0 -536
- package/lib/chunk-S4AILUR7.js.map +0 -1
- package/lib/chunk-S6XPCUJW.js +0 -75
- package/lib/chunk-S6XPCUJW.js.map +0 -1
- package/lib/chunk-SFYB5GXI.js +0 -59
- package/lib/chunk-SFYB5GXI.js.map +0 -1
- package/lib/chunk-SSQYQJV3.js +0 -66
- package/lib/chunk-SSQYQJV3.js.map +0 -1
- package/lib/chunk-SUUOHRSG.js +0 -61
- package/lib/chunk-SUUOHRSG.js.map +0 -1
- package/lib/chunk-SW5N35FH.cjs +0 -43
- package/lib/chunk-SW5N35FH.cjs.map +0 -1
- package/lib/chunk-T26776MO.cjs +0 -105
- package/lib/chunk-T26776MO.cjs.map +0 -1
- package/lib/chunk-T2OKZDN4.js +0 -49
- package/lib/chunk-T2OKZDN4.js.map +0 -1
- package/lib/chunk-T5G655QT.js +0 -27
- package/lib/chunk-T5G655QT.js.map +0 -1
- package/lib/chunk-TE67ODLT.js +0 -47
- package/lib/chunk-TE67ODLT.js.map +0 -1
- package/lib/chunk-TGFRUTII.js +0 -45
- package/lib/chunk-TGFRUTII.js.map +0 -1
- package/lib/chunk-TM3WY5JX.js +0 -49
- package/lib/chunk-TM3WY5JX.js.map +0 -1
- package/lib/chunk-TOIJVWRZ.cjs +0 -285
- package/lib/chunk-TOIJVWRZ.cjs.map +0 -1
- package/lib/chunk-TUCNQX6Y.js +0 -49
- package/lib/chunk-TUCNQX6Y.js.map +0 -1
- package/lib/chunk-U5RLBTS6.js +0 -49
- package/lib/chunk-U5RLBTS6.js.map +0 -1
- package/lib/chunk-UBFZSSUZ.js +0 -50
- package/lib/chunk-UBFZSSUZ.js.map +0 -1
- package/lib/chunk-UD2ZHF5I.js +0 -49
- package/lib/chunk-UD2ZHF5I.js.map +0 -1
- package/lib/chunk-UMID2D26.js +0 -45
- package/lib/chunk-UMID2D26.js.map +0 -1
- package/lib/chunk-UQQTNQX3.cjs +0 -153
- package/lib/chunk-UQQTNQX3.cjs.map +0 -1
- package/lib/chunk-UUL3UDIC.js +0 -45
- package/lib/chunk-UUL3UDIC.js.map +0 -1
- package/lib/chunk-V4PP6IUM.cjs +0 -42
- package/lib/chunk-V4PP6IUM.cjs.map +0 -1
- package/lib/chunk-VH65L3FZ.cjs +0 -43
- package/lib/chunk-VH65L3FZ.cjs.map +0 -1
- package/lib/chunk-VIPTK4KE.js +0 -40
- package/lib/chunk-VIPTK4KE.js.map +0 -1
- package/lib/chunk-VS7D74RY.cjs +0 -54
- package/lib/chunk-VS7D74RY.cjs.map +0 -1
- package/lib/chunk-VWZ2H35A.cjs +0 -53
- package/lib/chunk-VWZ2H35A.cjs.map +0 -1
- package/lib/chunk-W2ZODWRB.cjs +0 -47
- package/lib/chunk-W2ZODWRB.cjs.map +0 -1
- package/lib/chunk-W534ZCYS.cjs +0 -43
- package/lib/chunk-W534ZCYS.cjs.map +0 -1
- package/lib/chunk-WAQYCXXA.cjs +0 -55
- package/lib/chunk-WAQYCXXA.cjs.map +0 -1
- package/lib/chunk-WGKGDMJG.js +0 -54
- package/lib/chunk-WGKGDMJG.js.map +0 -1
- package/lib/chunk-WKD345DZ.cjs +0 -52
- package/lib/chunk-WKD345DZ.cjs.map +0 -1
- package/lib/chunk-WM3MOTCN.js +0 -45
- package/lib/chunk-WM3MOTCN.js.map +0 -1
- package/lib/chunk-WQKG5HJS.js +0 -45
- package/lib/chunk-WQKG5HJS.js.map +0 -1
- package/lib/chunk-WSNUMIIY.cjs +0 -56
- package/lib/chunk-WSNUMIIY.cjs.map +0 -1
- package/lib/chunk-WYULLF7A.cjs +0 -53
- package/lib/chunk-WYULLF7A.cjs.map +0 -1
- package/lib/chunk-X2BR77L2.js +0 -283
- package/lib/chunk-X2BR77L2.js.map +0 -1
- package/lib/chunk-X46PVG74.js +0 -45
- package/lib/chunk-X46PVG74.js.map +0 -1
- package/lib/chunk-X5OWNCC4.cjs +0 -38
- package/lib/chunk-X5OWNCC4.cjs.map +0 -1
- package/lib/chunk-X6SULYQB.cjs +0 -38
- package/lib/chunk-X6SULYQB.cjs.map +0 -1
- package/lib/chunk-X7AKN4S6.js +0 -48
- package/lib/chunk-X7AKN4S6.js.map +0 -1
- package/lib/chunk-XBBVFGOJ.js +0 -45
- package/lib/chunk-XBBVFGOJ.js.map +0 -1
- package/lib/chunk-XC67WDBZ.cjs +0 -39
- package/lib/chunk-XC67WDBZ.cjs.map +0 -1
- package/lib/chunk-XCFDOKIM.cjs +0 -47
- package/lib/chunk-XCFDOKIM.cjs.map +0 -1
- package/lib/chunk-XKDMHHU6.js +0 -53
- package/lib/chunk-XKDMHHU6.js.map +0 -1
- package/lib/chunk-XPE3CHFX.js +0 -40
- package/lib/chunk-XPE3CHFX.js.map +0 -1
- package/lib/chunk-XRYS36MH.js +0 -45
- package/lib/chunk-XRYS36MH.js.map +0 -1
- package/lib/chunk-XXL66GOT.js +0 -103
- package/lib/chunk-XXL66GOT.js.map +0 -1
- package/lib/chunk-XYFVAE5Q.js +0 -37
- package/lib/chunk-XYFVAE5Q.js.map +0 -1
- package/lib/chunk-XYPIGF36.cjs +0 -295
- package/lib/chunk-XYPIGF36.cjs.map +0 -1
- package/lib/chunk-Y262ZN7R.cjs +0 -42
- package/lib/chunk-Y262ZN7R.cjs.map +0 -1
- package/lib/chunk-YBRIQ52U.cjs +0 -97
- package/lib/chunk-YBRIQ52U.cjs.map +0 -1
- package/lib/chunk-YGGJGJU7.js +0 -55
- package/lib/chunk-YGGJGJU7.js.map +0 -1
- package/lib/chunk-YNKM6H3D.cjs +0 -59
- package/lib/chunk-YNKM6H3D.cjs.map +0 -1
- package/lib/chunk-YPX3YJ4L.cjs +0 -93
- package/lib/chunk-YPX3YJ4L.cjs.map +0 -1
- package/lib/chunk-YXMPQHE4.cjs +0 -57
- package/lib/chunk-YXMPQHE4.cjs.map +0 -1
- package/lib/chunk-Z3XTAUYM.js +0 -96
- package/lib/chunk-Z3XTAUYM.js.map +0 -1
- package/lib/chunk-Z4CUVPMW.js +0 -47
- package/lib/chunk-Z4CUVPMW.js.map +0 -1
- package/lib/chunk-Z4LKTHPE.js +0 -20
- package/lib/chunk-Z4LKTHPE.js.map +0 -1
- package/lib/chunk-Z4PD2SXY.js +0 -55
- package/lib/chunk-Z4PD2SXY.js.map +0 -1
- package/lib/chunk-ZBIJQ4CN.js +0 -53
- package/lib/chunk-ZBIJQ4CN.js.map +0 -1
- package/lib/chunk-ZCMD5U3M.js +0 -36
- package/lib/chunk-ZCMD5U3M.js.map +0 -1
- package/lib/chunk-ZF5RJEW7.cjs +0 -39
- package/lib/chunk-ZF5RJEW7.cjs.map +0 -1
- package/lib/chunk-ZGKZWE7U.cjs +0 -53
- package/lib/chunk-ZGKZWE7U.cjs.map +0 -1
- package/lib/chunk-ZHCI2QRX.cjs +0 -46
- package/lib/chunk-ZHCI2QRX.cjs.map +0 -1
- package/lib/chunk-ZMZ73HFP.cjs +0 -53
- package/lib/chunk-ZMZ73HFP.cjs.map +0 -1
- package/lib/chunk-ZT5VCXSB.js +0 -45
- package/lib/chunk-ZT5VCXSB.js.map +0 -1
- package/lib/chunk-ZTSVFTKP.cjs +0 -51
- package/lib/chunk-ZTSVFTKP.cjs.map +0 -1
- package/lib/chunk-ZVJZFSX5.cjs +0 -47
- package/lib/chunk-ZVJZFSX5.cjs.map +0 -1
- package/lib/chunk-ZZZ5IYR4.js +0 -49
- package/lib/chunk-ZZZ5IYR4.js.map +0 -1
- package/lib/fetch-B8-kP4X0.d.cts +0 -55
- package/lib/fetch-B8-kP4X0.d.ts +0 -55
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/addresses.ts"],"names":[],"mappings":";;;AA+UA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAqB;AAAA,EAE5C,OAAgB,IAAA,GAAoB,WAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CAA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AAO,iBAAA,GAAQ","file":"chunk-YGGJGJU7.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { Tag, TagType } from './tags'\n\n\ntype AddressType = 'addresses'\ntype AddressRel = ResourceRel & { type: AddressType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type AddressSort = Pick<Address, 'id' | 'city' | 'state_code' | 'country_code'> & ResourceSort\n// export type AddressFilter = Pick<Address, 'id' | 'business' | 'first_name' | 'last_name' | 'company' | 'line_1' | 'line_2' | 'city' | 'zip_code' | 'state_code' | 'country_code' | 'phone' | 'email' | 'notes' | 'lat' | 'lng' | 'billing_info'> & ResourceFilter\n\n\ninterface Address extends Resource {\n\t\n\treadonly type: AddressType\n\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Company name (business) of first name and last name (personal).\n\t * @example ```\"John Smith\"```\n\t */\n\tfull_name?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Compact description of the address location, without the full name.\n\t * @example ```\"2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tfull_address?: string | null\n\t/** \n\t * Compact description of the address location, including the full name.\n\t * @example ```\"John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Indicates if the latitude and logitude are present, either geocoded or manually updated.\n\t * @example ```true```\n\t */\n\tis_localized?: boolean | null\n\t/** \n\t * Indicates if the address has been successfully geocoded.\n\t * @example ```true```\n\t */\n\tis_geocoded?: boolean | null\n\t/** \n\t * The geocoder provider name (either Google or Bing).\n\t * @example ```\"google\"```\n\t */\n\tprovider_name?: string | null\n\t/** \n\t * The map url of the geocoded address (if geocoded).\n\t * @example ```\"https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672\"```\n\t */\n\tmap_url?: string | null\n\t/** \n\t * The static map image url of the geocoded address (if geocoded).\n\t * @example ```\"https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15\"```\n\t */\n\tstatic_map_url?: string | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: Geocoder | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AddressCreate extends ResourceCreate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface AddressUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1?: string | null\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity?: string | null\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Addresses extends ApiResource<Address> {\n\n\tstatic readonly TYPE: AddressType = 'addresses' as const\n\n\tasync create(resource: AddressCreate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.create<AddressCreate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AddressUpdate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Addresses.TYPE } : id, options)\n\t}\n\n\tasync geocoder(addressId: string | Address, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `addresses/${_addressId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync events(addressId: string | Address, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `addresses/${_addressId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(addressId: string | Address, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `addresses/${_addressId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(addressId: string | Address, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `addresses/${_addressId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisAddress(resource: any): resource is Address {\n\t\treturn resource.type && (resource.type === Addresses.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AddressRel {\n\t\treturn super.relationshipOneToOne<AddressRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AddressRel[] {\n\t\treturn super.relationshipOneToMany<AddressRel>(...ids)\n\t}\n\n\n\ttype(): AddressType {\n\t\treturn Addresses.TYPE\n\t}\n\n}\n\n\nconst instance = new Addresses()\nexport default instance\n\nexport type { Address, AddressCreate, Addresses, AddressType, AddressUpdate }\n"]}
|
package/lib/chunk-YNKM6H3D.cjs
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/parcels.ts
|
|
6
|
-
var Parcels = class _Parcels extends chunkXYPIGF36_cjs.ApiResource {
|
|
7
|
-
static TYPE = "parcels";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _Parcels.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _Parcels.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _Parcels.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async shipment(parcelId, params, options) {
|
|
18
|
-
const _parcelId = parcelId.id || parcelId;
|
|
19
|
-
return this.resources.fetch({ type: "shipments" }, `parcels/${_parcelId}/shipment`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async package(parcelId, params, options) {
|
|
22
|
-
const _parcelId = parcelId.id || parcelId;
|
|
23
|
-
return this.resources.fetch({ type: "packages" }, `parcels/${_parcelId}/package`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async parcel_line_items(parcelId, params, options) {
|
|
26
|
-
const _parcelId = parcelId.id || parcelId;
|
|
27
|
-
return this.resources.fetch({ type: "parcel_line_items" }, `parcels/${_parcelId}/parcel_line_items`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async attachments(parcelId, params, options) {
|
|
30
|
-
const _parcelId = parcelId.id || parcelId;
|
|
31
|
-
return this.resources.fetch({ type: "attachments" }, `parcels/${_parcelId}/attachments`, params, options);
|
|
32
|
-
}
|
|
33
|
-
async events(parcelId, params, options) {
|
|
34
|
-
const _parcelId = parcelId.id || parcelId;
|
|
35
|
-
return this.resources.fetch({ type: "events" }, `parcels/${_parcelId}/events`, params, options);
|
|
36
|
-
}
|
|
37
|
-
async event_stores(parcelId, params, options) {
|
|
38
|
-
const _parcelId = parcelId.id || parcelId;
|
|
39
|
-
return this.resources.fetch({ type: "event_stores" }, `parcels/${_parcelId}/event_stores`, params, options);
|
|
40
|
-
}
|
|
41
|
-
isParcel(resource) {
|
|
42
|
-
return resource.type && resource.type === _Parcels.TYPE;
|
|
43
|
-
}
|
|
44
|
-
relationship(id) {
|
|
45
|
-
return super.relationshipOneToOne(id);
|
|
46
|
-
}
|
|
47
|
-
relationshipToMany(...ids) {
|
|
48
|
-
return super.relationshipOneToMany(...ids);
|
|
49
|
-
}
|
|
50
|
-
type() {
|
|
51
|
-
return _Parcels.TYPE;
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
var instance = new Parcels();
|
|
55
|
-
var parcels_default = instance;
|
|
56
|
-
|
|
57
|
-
exports.parcels_default = parcels_default;
|
|
58
|
-
//# sourceMappingURL=chunk-YNKM6H3D.cjs.map
|
|
59
|
-
//# sourceMappingURL=chunk-YNKM6H3D.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/parcels.ts"],"names":["ApiResource"],"mappings":";;;;;AAuZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM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KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-YNKM6H3D.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Shipment, ShipmentType } from './shipments'\n\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\n\nexport type ParcelSort = Pick<Parcel, 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'> & ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\n\ninterface Parcel extends Resource {\n\t\n\treadonly type: ParcelType\n\n\t/** \n\t * Unique identifier for the parcel.\n\t * @example ```\"#1234/S/001/P/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: Shipment | null\n\tpackage?: Package | null\n\tparcel_line_items?: ParcelLineItem[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ParcelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment: ShipmentRel\n\tpackage: PackageRel\n\n}\n\n\ninterface ParcelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight?: number | null\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight?: 'gr' | 'oz' | 'lb' | null\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: ShipmentRel | null\n\tpackage?: PackageRel | null\n\n}\n\n\nclass Parcels extends ApiResource<Parcel> {\n\n\tstatic readonly TYPE: ParcelType = 'parcels' as const\n\n\tasync create(resource: ParcelCreate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ParcelUpdate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Parcels.TYPE } : id, options)\n\t}\n\n\tasync shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `parcels/${_parcelId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync package(parcelId: string | Parcel, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Package>({ type: 'packages' }, `parcels/${_parcelId}/package`, params, options) as unknown as Package\n\t}\n\n\tasync parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList<ParcelLineItem>, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<ParcelLineItem>({ type: 'parcel_line_items' }, `parcels/${_parcelId}/parcel_line_items`, params, options) as unknown as ListResponse<ParcelLineItem>\n\t}\n\n\tasync attachments(parcelId: string | Parcel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `parcels/${_parcelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(parcelId: string | Parcel, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `parcels/${_parcelId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(parcelId: string | Parcel, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `parcels/${_parcelId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisParcel(resource: any): resource is Parcel {\n\t\treturn resource.type && (resource.type === Parcels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ParcelRel {\n\t\treturn super.relationshipOneToOne<ParcelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ParcelRel[] {\n\t\treturn super.relationshipOneToMany<ParcelRel>(...ids)\n\t}\n\n\n\ttype(): ParcelType {\n\t\treturn Parcels.TYPE\n\t}\n\n}\n\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcel, ParcelCreate, Parcels, ParcelType, ParcelUpdate }\n"]}
|
package/lib/chunk-YPX3YJ4L.cjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/line_items.ts
|
|
6
|
-
var LineItems = class _LineItems extends chunkXYPIGF36_cjs.ApiResource {
|
|
7
|
-
static TYPE = "line_items";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _LineItems.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _LineItems.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _LineItems.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async order(lineItemId, params, options) {
|
|
18
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
19
|
-
return this.resources.fetch({ type: "orders" }, `line_items/${_lineItemId}/order`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async line_item_options(lineItemId, params, options) {
|
|
22
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
23
|
-
return this.resources.fetch({ type: "line_item_options" }, `line_items/${_lineItemId}/line_item_options`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async return_line_items(lineItemId, params, options) {
|
|
26
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
27
|
-
return this.resources.fetch({ type: "return_line_items" }, `line_items/${_lineItemId}/return_line_items`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async stock_reservations(lineItemId, params, options) {
|
|
30
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
31
|
-
return this.resources.fetch({ type: "stock_reservations" }, `line_items/${_lineItemId}/stock_reservations`, params, options);
|
|
32
|
-
}
|
|
33
|
-
async stock_line_items(lineItemId, params, options) {
|
|
34
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
35
|
-
return this.resources.fetch({ type: "stock_line_items" }, `line_items/${_lineItemId}/stock_line_items`, params, options);
|
|
36
|
-
}
|
|
37
|
-
async stock_transfers(lineItemId, params, options) {
|
|
38
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
39
|
-
return this.resources.fetch({ type: "stock_transfers" }, `line_items/${_lineItemId}/stock_transfers`, params, options);
|
|
40
|
-
}
|
|
41
|
-
async notifications(lineItemId, params, options) {
|
|
42
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
43
|
-
return this.resources.fetch({ type: "notifications" }, `line_items/${_lineItemId}/notifications`, params, options);
|
|
44
|
-
}
|
|
45
|
-
async events(lineItemId, params, options) {
|
|
46
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
47
|
-
return this.resources.fetch({ type: "events" }, `line_items/${_lineItemId}/events`, params, options);
|
|
48
|
-
}
|
|
49
|
-
async tags(lineItemId, params, options) {
|
|
50
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
51
|
-
return this.resources.fetch({ type: "tags" }, `line_items/${_lineItemId}/tags`, params, options);
|
|
52
|
-
}
|
|
53
|
-
async event_stores(lineItemId, params, options) {
|
|
54
|
-
const _lineItemId = lineItemId.id || lineItemId;
|
|
55
|
-
return this.resources.fetch({ type: "event_stores" }, `line_items/${_lineItemId}/event_stores`, params, options);
|
|
56
|
-
}
|
|
57
|
-
async _external_price(id, params, options) {
|
|
58
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _external_price: true }, params, options);
|
|
59
|
-
}
|
|
60
|
-
async _reserve_stock(id, params, options) {
|
|
61
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reserve_stock: true }, params, options);
|
|
62
|
-
}
|
|
63
|
-
async _reset_restocked_quantity(id, params, options) {
|
|
64
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_restocked_quantity: true }, params, options);
|
|
65
|
-
}
|
|
66
|
-
async _reset_circuit(id, params, options) {
|
|
67
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _reset_circuit: true }, params, options);
|
|
68
|
-
}
|
|
69
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
70
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _add_tags: triggerValue }, params, options);
|
|
71
|
-
}
|
|
72
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
73
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _LineItems.TYPE, _remove_tags: triggerValue }, params, options);
|
|
74
|
-
}
|
|
75
|
-
isLineItem(resource) {
|
|
76
|
-
return resource.type && resource.type === _LineItems.TYPE;
|
|
77
|
-
}
|
|
78
|
-
relationship(id) {
|
|
79
|
-
return super.relationshipOneToOne(id);
|
|
80
|
-
}
|
|
81
|
-
relationshipToMany(...ids) {
|
|
82
|
-
return super.relationshipOneToMany(...ids);
|
|
83
|
-
}
|
|
84
|
-
type() {
|
|
85
|
-
return _LineItems.TYPE;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
var instance = new LineItems();
|
|
89
|
-
var line_items_default = instance;
|
|
90
|
-
|
|
91
|
-
exports.line_items_default = line_items_default;
|
|
92
|
-
//# sourceMappingURL=chunk-YPX3YJ4L.cjs.map
|
|
93
|
-
//# sourceMappingURL=chunk-YPX3YJ4L.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/line_items.ts"],"names":["ApiResource"],"mappings":";;;;;AAuZA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,YAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,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EAAG,QAAQ,OAAO,CAAA;AAAA,EACnK;AAAA,EAEA,MAAM,YAAA,CAAa,EAAA,EAAuB,YAAA,EAAsB,QAAwC,OAAA,EAA8C;AACrJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,UAAA,CAAU,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,WAAW,QAAA,EAAqC;AAC/C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,UAAA,CAAU,IAAA;AAAA,EACtD;AAAA,EAGA,aAAa,EAAA,EAA6C;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,kBAAA,GAAQ","file":"chunk-YPX3YJ4L.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Adjustment, AdjustmentType } from './adjustments'\nimport type { Bundle, BundleType } from './bundles'\nimport type { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { DiscountEngineItem, DiscountEngineItemType } from './discount_engine_items'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { LineItemOption } from './line_item_options'\nimport type { Notification } from './notifications'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\nimport type { ReturnLineItem } from './return_line_items'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { Sku, SkuType } from './skus'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { StockTransfer } from './stock_transfers'\nimport type { Tag, TagType } from './tags'\n\n\ntype LineItemType = 'line_items'\ntype LineItemRel = ResourceRel & { type: LineItemType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\ntype DiscountEngineItemRel = ResourceRel & { type: DiscountEngineItemType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type LineItemSort = Pick<LineItem, 'id' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type LineItemFilter = Pick<LineItem, 'id' | 'sku_code' | 'quantity' | 'currency_code' | 'unit_amount_cents' | 'compare_at_amount_cents' | 'options_amount_cents' | 'discount_cents' | 'total_amount_cents' | 'tax_amount_cents' | 'name' | 'image_url' | 'item_type' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface LineItem extends Resource {\n\t\n\treadonly type: LineItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the order's market.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the line item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```100```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the line item, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The compared price amount, float.\n\t * @example ```130```\n\t */\n\tcompare_at_amount_float?: number | null\n\t/** \n\t * The compared price amount, formatted.\n\t * @example ```\"€130,00\"```\n\t */\n\tformatted_compare_at_amount?: string | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, float.\n\t * @example ```10```\n\t */\n\toptions_amount_float?: number | null\n\t/** \n\t * The options amount of the line item, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_options_amount?: string | null\n\t/** \n\t * The discount applied to the line item, in cents. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```-1000```\n\t */\n\tdiscount_cents?: number | null\n\t/** \n\t * The discount applied to the line item, float. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```10```\n\t */\n\tdiscount_float?: number | null\n\t/** \n\t * The discount applied to the line item, fromatted. When you apply a discount to an order, this is automatically calculated basing on the line item total_amount_cents value.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_discount?: string | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, in cents.\n\t * @example ```18800```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * Calculated as unit amount x quantity + options amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```188```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * Calculated as unit amount x quantity + options amount, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€188,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, in cents.\n\t * @example ```1880```\n\t */\n\ttax_amount_cents?: number | null\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, float.\n\t * @example ```18.8```\n\t */\n\ttax_amount_float: number\n\t/** \n\t * The collected tax amount, otherwise calculated as total amount cents - discount cent * tax rate, formatted.\n\t * @example ```\"€18,80\"```\n\t */\n\tformatted_tax_amount?: string | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The discount breakdown for this line item (if calculated).\n\t * @example ```{\"41\":{\"name\":\"10% ALL\",\"cents\":-900,\"weight\":0.416,\"coupon_code\":\"XXXXXXXX\"}}```\n\t */\n\tdiscount_breakdown?: Record<string, any> | null\n\t/** \n\t * The tax rate for this line item (if calculated).\n\t * @example ```0.22```\n\t */\n\ttax_rate?: number | null\n\t/** \n\t * The tax breakdown for this line item (if calculated).\n\t * @example ```{\"id\":\"1234\",\"city_amount\":\"0.0\",\"state_amount\":6.6,\"city_tax_rate\":0,\"county_amount\":2.78,\"taxable_amount\":139,\"county_tax_rate\":0.02,\"tax_collectable\":10.08,\"special_tax_rate\":0.005,\"combined_tax_rate\":0.0725,\"city_taxable_amount\":0,\"state_sales_tax_rate\":0.0475,\"state_taxable_amount\":139,\"county_taxable_amount\":139,\"special_district_amount\":0.7,\"special_district_taxable_amount\":139}```\n\t */\n\ttax_breakdown?: Record<string, any> | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * The coupon code, if any, used to trigger this promotion line item. null for other line item types or if the promotion line item wasn't triggered by a coupon.\n\t * @example ```\"SUMMERDISCOUNT\"```\n\t */\n\tcoupon_code?: string | null\n\t/** \n\t * The rule outcomes.\n\t * @example ```[]```\n\t */\n\trule_outcomes?: Record<string, any> | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\n\torder?: Order | null\n\titem?: Sku | Bundle | GiftCard | Shipment | PaymentMethod | Adjustment | DiscountEngineItem | PercentageDiscountPromotion | FreeShippingPromotion | BuyXPayYPromotion | FreeGiftPromotion | FixedPricePromotion | ExternalPromotion | FixedAmountPromotion | FlexPromotion | null\n\tsku?: Sku | null\n\tbundle?: Bundle | null\n\tadjustment?: Adjustment | null\n\tgift_card?: GiftCard | null\n\tshipment?: Shipment | null\n\tpayment_method?: PaymentMethod | null\n\tline_item_options?: LineItemOption[] | null\n\treturn_line_items?: ReturnLineItem[] | null\n\tstock_reservations?: StockReservation[] | null\n\tstock_line_items?: StockLineItem[] | null\n\tstock_transfers?: StockTransfer[] | null\n\tnotifications?: Notification[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface LineItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * When creating a new line item, set this attribute to '1' if you want to update the line item quantity (if present) instead of creating a new line item for the same SKU.\n\t * @example ```true```\n\t */\n\t_update_quantity?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_restocked_quantity?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The type of the associated item. One of 'skus', 'bundles', 'gift_cards', 'shipments', 'payment_methods', 'adjustments', 'discount_engine_items', 'percentage_discount_promotions', 'free_shipping_promotions', 'buy_x_pay_y_promotions', 'free_gift_promotions', 'fixed_price_promotions', 'external_promotions', 'fixed_amount_promotions', or 'flex_promotions'.\n\t * @example ```\"skus\"```\n\t */\n\titem_type?: 'skus' | 'bundles' | 'gift_cards' | 'shipments' | 'payment_methods' | 'adjustments' | 'discount_engine_items' | 'percentage_discount_promotions' | 'free_shipping_promotions' | 'buy_x_pay_y_promotions' | 'free_gift_promotions' | 'fixed_price_promotions' | 'external_promotions' | 'fixed_amount_promotions' | 'flex_promotions' | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\n\torder: OrderRel\n\titem?: SkuRel | BundleRel | GiftCardRel | ShipmentRel | PaymentMethodRel | AdjustmentRel | DiscountEngineItemRel | PercentageDiscountPromotionRel | FreeShippingPromotionRel | BuyXPayYPromotionRel | FreeGiftPromotionRel | FixedPricePromotionRel | ExternalPromotionRel | FixedAmountPromotionRel | FlexPromotionRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface LineItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The line item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * When creating or updating a new line item, set this attribute to '1' if you want to inject the unit_amount_cents price from an external source. Any successive price computation will be done externally, until the attribute is reset to '0'.\n\t * @example ```true```\n\t */\n\t_external_price?: boolean | null\n\t/** \n\t * Send this attribute if you want to reserve the stock for the line item's SKUs quantity. Stock reservations expiration depends on the inventory model's cutoff. When used on update the existing active stock reservations are renewed. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to reset the quantity restocked by a return or by an order/shipment cancel. This will allow for multiple returns, albeit you need to adjust the stock manually. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_restocked_quantity?: boolean | null\n\t/** \n\t * The unit amount of the line item, in cents. Can be specified only via an integration application, or when the item is missing, otherwise is automatically computed by using one of the available methods. Cannot be passed by sales channels.\n\t * @example ```10000```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The options amount of the line item, in cents. Cannot be passed by sales channels.\n\t * @example ```1000```\n\t */\n\toptions_amount_cents?: number | null\n\t/** \n\t * The name of the line item. When blank, it gets populated with the name of the associated item (if present).\n\t * @example ```\"Men's Black T-shirt with White Logo (XL)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The image_url of the line item. When blank, it gets populated with the image_url of the associated item (if present, SKU only).\n\t * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The frequency which generates a subscription. Must be supported by existing associated subscription_model.\n\t * @example ```\"monthly\"```\n\t */\n\tfrequency?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\ttags?: TagRel[] | null\n\n}\n\n\nclass LineItems extends ApiResource<LineItem> {\n\n\tstatic readonly TYPE: LineItemType = 'line_items' as const\n\n\tasync create(resource: LineItemCreate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.create<LineItemCreate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LineItemUpdate, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ ...resource, type: LineItems.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: LineItems.TYPE } : id, options)\n\t}\n\n\tasync order(lineItemId: string | LineItem, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `line_items/${_lineItemId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync line_item_options(lineItemId: string | LineItem, params?: QueryParamsList<LineItemOption>, options?: ResourcesConfig): Promise<ListResponse<LineItemOption>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<LineItemOption>({ type: 'line_item_options' }, `line_items/${_lineItemId}/line_item_options`, params, options) as unknown as ListResponse<LineItemOption>\n\t}\n\n\tasync return_line_items(lineItemId: string | LineItem, params?: QueryParamsList<ReturnLineItem>, options?: ResourcesConfig): Promise<ListResponse<ReturnLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<ReturnLineItem>({ type: 'return_line_items' }, `line_items/${_lineItemId}/return_line_items`, params, options) as unknown as ListResponse<ReturnLineItem>\n\t}\n\n\tasync stock_reservations(lineItemId: string | LineItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `line_items/${_lineItemId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync stock_line_items(lineItemId: string | LineItem, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `line_items/${_lineItemId}/stock_line_items`, params, options) as unknown as ListResponse<StockLineItem>\n\t}\n\n\tasync stock_transfers(lineItemId: string | LineItem, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `line_items/${_lineItemId}/stock_transfers`, params, options) as unknown as ListResponse<StockTransfer>\n\t}\n\n\tasync notifications(lineItemId: string | LineItem, params?: QueryParamsList<Notification>, options?: ResourcesConfig): Promise<ListResponse<Notification>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Notification>({ type: 'notifications' }, `line_items/${_lineItemId}/notifications`, params, options) as unknown as ListResponse<Notification>\n\t}\n\n\tasync events(lineItemId: string | LineItem, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `line_items/${_lineItemId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(lineItemId: string | LineItem, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `line_items/${_lineItemId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(lineItemId: string | LineItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _lineItemId = (lineItemId as LineItem).id || lineItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `line_items/${_lineItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _external_price(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _external_price: true }, params, options)\n\t}\n\n\tasync _reserve_stock(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reserve_stock: true }, params, options)\n\t}\n\n\tasync _reset_restocked_quantity(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_restocked_quantity: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | LineItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | LineItem, triggerValue: string, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\treturn this.resources.update<LineItemUpdate, LineItem>({ id: (typeof id === 'string')? id: id.id, type: LineItems.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisLineItem(resource: any): resource is LineItem {\n\t\treturn resource.type && (resource.type === LineItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LineItemRel {\n\t\treturn super.relationshipOneToOne<LineItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LineItemRel[] {\n\t\treturn super.relationshipOneToMany<LineItemRel>(...ids)\n\t}\n\n\n\ttype(): LineItemType {\n\t\treturn LineItems.TYPE\n\t}\n\n}\n\n\nconst instance = new LineItems()\nexport default instance\n\nexport type { LineItem, LineItemCreate, LineItems, LineItemType, LineItemUpdate }\n"]}
|
package/lib/chunk-YXMPQHE4.cjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
|
|
4
|
-
|
|
5
|
-
// src/resources/price_list_schedulers.ts
|
|
6
|
-
var PriceListSchedulers = class _PriceListSchedulers extends chunkXYPIGF36_cjs.ApiResource {
|
|
7
|
-
static TYPE = "price_list_schedulers";
|
|
8
|
-
async create(resource, params, options) {
|
|
9
|
-
return this.resources.create({ ...resource, type: _PriceListSchedulers.TYPE }, params, options);
|
|
10
|
-
}
|
|
11
|
-
async update(resource, params, options) {
|
|
12
|
-
return this.resources.update({ ...resource, type: _PriceListSchedulers.TYPE }, params, options);
|
|
13
|
-
}
|
|
14
|
-
async delete(id, options) {
|
|
15
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _PriceListSchedulers.TYPE } : id, options);
|
|
16
|
-
}
|
|
17
|
-
async market(priceListSchedulerId, params, options) {
|
|
18
|
-
const _priceListSchedulerId = priceListSchedulerId.id || priceListSchedulerId;
|
|
19
|
-
return this.resources.fetch({ type: "markets" }, `price_list_schedulers/${_priceListSchedulerId}/market`, params, options);
|
|
20
|
-
}
|
|
21
|
-
async price_list(priceListSchedulerId, params, options) {
|
|
22
|
-
const _priceListSchedulerId = priceListSchedulerId.id || priceListSchedulerId;
|
|
23
|
-
return this.resources.fetch({ type: "price_lists" }, `price_list_schedulers/${_priceListSchedulerId}/price_list`, params, options);
|
|
24
|
-
}
|
|
25
|
-
async events(priceListSchedulerId, params, options) {
|
|
26
|
-
const _priceListSchedulerId = priceListSchedulerId.id || priceListSchedulerId;
|
|
27
|
-
return this.resources.fetch({ type: "events" }, `price_list_schedulers/${_priceListSchedulerId}/events`, params, options);
|
|
28
|
-
}
|
|
29
|
-
async event_stores(priceListSchedulerId, params, options) {
|
|
30
|
-
const _priceListSchedulerId = priceListSchedulerId.id || priceListSchedulerId;
|
|
31
|
-
return this.resources.fetch({ type: "event_stores" }, `price_list_schedulers/${_priceListSchedulerId}/event_stores`, params, options);
|
|
32
|
-
}
|
|
33
|
-
async _disable(id, params, options) {
|
|
34
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PriceListSchedulers.TYPE, _disable: true }, params, options);
|
|
35
|
-
}
|
|
36
|
-
async _enable(id, params, options) {
|
|
37
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _PriceListSchedulers.TYPE, _enable: true }, params, options);
|
|
38
|
-
}
|
|
39
|
-
isPriceListScheduler(resource) {
|
|
40
|
-
return resource.type && resource.type === _PriceListSchedulers.TYPE;
|
|
41
|
-
}
|
|
42
|
-
relationship(id) {
|
|
43
|
-
return super.relationshipOneToOne(id);
|
|
44
|
-
}
|
|
45
|
-
relationshipToMany(...ids) {
|
|
46
|
-
return super.relationshipOneToMany(...ids);
|
|
47
|
-
}
|
|
48
|
-
type() {
|
|
49
|
-
return _PriceListSchedulers.TYPE;
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var instance = new PriceListSchedulers();
|
|
53
|
-
var price_list_schedulers_default = instance;
|
|
54
|
-
|
|
55
|
-
exports.price_list_schedulers_default = price_list_schedulers_default;
|
|
56
|
-
//# sourceMappingURL=chunk-YXMPQHE4.cjs.map
|
|
57
|
-
//# sourceMappingURL=chunk-YXMPQHE4.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/price_list_schedulers.ts"],"names":["ApiResource"],"mappings":";;;;;AAkIA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4BA,6BAAA,CAAgC;AAAA,EAEjE,OAAgB,IAAA,GAA+B,uBAAA;AAAA,EAE/C,MAAM,MAAA,CAAO,QAAA,EAAoC,MAAA,EAAkD,OAAA,EAAwD;AAC1J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAA,CAAoB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5I;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAoC,MAAA,EAAkD,OAAA,EAAwD;AAC1J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAA,CAAoB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5I;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,oBAAA,CAAoB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC3G;AAAA,EAEA,MAAM,MAAA,CAAO,oBAAA,EAAmD,MAAA,EAAsC,OAAA,EAA4C;AACjJ,IAAA,MAAM,qBAAA,GAAyB,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A,OAAO,KAAK,SAAA,CAAU,MAAA,CAAqD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,oBAAA,CAAoB,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACxL;AAAA,EAEA,MAAM,OAAA,CAAQ,EAAA,EAAiC,MAAA,EAAkD,OAAA,EAAwD;AACxJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAqD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,oBAAA,CAAoB,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EACvL;AAAA,EAGA,qBAAqB,QAAA,EAA+C;AACnE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,oBAAA,CAAoB,IAAA;AAAA,EAChE;AAAA,EAGA,aAAa,EAAA,EAAuD;AACnE,IAAA,OAAO,KAAA,CAAM,qBAA4C,EAAE,CAAA;AAAA,EAC5D;AAAA,EAEA,sBAAsB,GAAA,EAAwC;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA6C,GAAG,GAAG,CAAA;AAAA,EACjE;AAAA,EAGA,IAAA,GAA+B;AAC9B,IAAA,OAAO,oBAAA,CAAoB,IAAA;AAAA,EAC5B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-YXMPQHE4.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { PriceList, PriceListType } from './price_lists'\n\n\ntype PriceListSchedulerType = 'price_list_schedulers'\ntype PriceListSchedulerRel = ResourceRel & { type: PriceListSchedulerType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\n\n\nexport type PriceListSchedulerSort = Pick<PriceListScheduler, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceSort\n// export type PriceListSchedulerFilter = Pick<PriceListScheduler, 'id' | 'name' | 'starts_at' | 'expires_at' | 'disabled_at'> & ResourceFilter\n\n\ninterface PriceListScheduler extends Resource {\n\t\n\treadonly type: PriceListSchedulerType\n\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The activation date/time of this price list scheduler.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this price list scheduler (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * Indicates if the price list scheduler is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The price list scheduler status. One of 'disabled', 'expired', 'pending', or 'active'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\tmarket?: Market | null\n\tprice_list?: PriceList | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface PriceListSchedulerCreate extends ResourceCreate {\n\t\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The activation date/time of this price list scheduler.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this price list scheduler (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket: MarketRel\n\tprice_list: PriceListRel\n\n}\n\n\ninterface PriceListSchedulerUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The price list scheduler's internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The activation date/time of this price list scheduler.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this price list scheduler (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmarket?: MarketRel | null\n\tprice_list?: PriceListRel | null\n\n}\n\n\nclass PriceListSchedulers extends ApiResource<PriceListScheduler> {\n\n\tstatic readonly TYPE: PriceListSchedulerType = 'price_list_schedulers' as const\n\n\tasync create(resource: PriceListSchedulerCreate, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.create<PriceListSchedulerCreate, PriceListScheduler>({ ...resource, type: PriceListSchedulers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceListSchedulerUpdate, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ ...resource, type: PriceListSchedulers.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: PriceListSchedulers.TYPE } : id, options)\n\t}\n\n\tasync market(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `price_list_schedulers/${_priceListSchedulerId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync price_list(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `price_list_schedulers/${_priceListSchedulerId}/price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync events(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `price_list_schedulers/${_priceListSchedulerId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(priceListSchedulerId: string | PriceListScheduler, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _priceListSchedulerId = (priceListSchedulerId as PriceListScheduler).id || priceListSchedulerId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `price_list_schedulers/${_priceListSchedulerId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ id: (typeof id === 'string')? id: id.id, type: PriceListSchedulers.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PriceListScheduler, params?: QueryParamsRetrieve<PriceListScheduler>, options?: ResourcesConfig): Promise<PriceListScheduler> {\n\t\treturn this.resources.update<PriceListSchedulerUpdate, PriceListScheduler>({ id: (typeof id === 'string')? id: id.id, type: PriceListSchedulers.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisPriceListScheduler(resource: any): resource is PriceListScheduler {\n\t\treturn resource.type && (resource.type === PriceListSchedulers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceListSchedulerRel {\n\t\treturn super.relationshipOneToOne<PriceListSchedulerRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceListSchedulerRel[] {\n\t\treturn super.relationshipOneToMany<PriceListSchedulerRel>(...ids)\n\t}\n\n\n\ttype(): PriceListSchedulerType {\n\t\treturn PriceListSchedulers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceListSchedulers()\nexport default instance\n\nexport type { PriceListScheduler, PriceListSchedulerCreate, PriceListSchedulers, PriceListSchedulerType, PriceListSchedulerUpdate }\n"]}
|
package/lib/chunk-Z3XTAUYM.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
-
|
|
3
|
-
// src/resources/external_promotions.ts
|
|
4
|
-
var ExternalPromotions = class _ExternalPromotions extends ApiResource {
|
|
5
|
-
static TYPE = "external_promotions";
|
|
6
|
-
async create(resource, params, options) {
|
|
7
|
-
return this.resources.create({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
|
8
|
-
}
|
|
9
|
-
async update(resource, params, options) {
|
|
10
|
-
return this.resources.update({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
|
|
11
|
-
}
|
|
12
|
-
async delete(id, options) {
|
|
13
|
-
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPromotions.TYPE } : id, options);
|
|
14
|
-
}
|
|
15
|
-
async market(externalPromotionId, params, options) {
|
|
16
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
17
|
-
return this.resources.fetch({ type: "markets" }, `external_promotions/${_externalPromotionId}/market`, params, options);
|
|
18
|
-
}
|
|
19
|
-
async order_amount_promotion_rule(externalPromotionId, params, options) {
|
|
20
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
21
|
-
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options);
|
|
22
|
-
}
|
|
23
|
-
async sku_list_promotion_rule(externalPromotionId, params, options) {
|
|
24
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
25
|
-
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options);
|
|
26
|
-
}
|
|
27
|
-
async coupon_codes_promotion_rule(externalPromotionId, params, options) {
|
|
28
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
29
|
-
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
30
|
-
}
|
|
31
|
-
async custom_promotion_rule(externalPromotionId, params, options) {
|
|
32
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
33
|
-
return this.resources.fetch({ type: "custom_promotion_rules" }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options);
|
|
34
|
-
}
|
|
35
|
-
async sku_list(externalPromotionId, params, options) {
|
|
36
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
37
|
-
return this.resources.fetch({ type: "sku_lists" }, `external_promotions/${_externalPromotionId}/sku_list`, params, options);
|
|
38
|
-
}
|
|
39
|
-
async coupons(externalPromotionId, params, options) {
|
|
40
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
41
|
-
return this.resources.fetch({ type: "coupons" }, `external_promotions/${_externalPromotionId}/coupons`, params, options);
|
|
42
|
-
}
|
|
43
|
-
async attachments(externalPromotionId, params, options) {
|
|
44
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
45
|
-
return this.resources.fetch({ type: "attachments" }, `external_promotions/${_externalPromotionId}/attachments`, params, options);
|
|
46
|
-
}
|
|
47
|
-
async events(externalPromotionId, params, options) {
|
|
48
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
49
|
-
return this.resources.fetch({ type: "events" }, `external_promotions/${_externalPromotionId}/events`, params, options);
|
|
50
|
-
}
|
|
51
|
-
async tags(externalPromotionId, params, options) {
|
|
52
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
53
|
-
return this.resources.fetch({ type: "tags" }, `external_promotions/${_externalPromotionId}/tags`, params, options);
|
|
54
|
-
}
|
|
55
|
-
async event_stores(externalPromotionId, params, options) {
|
|
56
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
57
|
-
return this.resources.fetch({ type: "event_stores" }, `external_promotions/${_externalPromotionId}/event_stores`, params, options);
|
|
58
|
-
}
|
|
59
|
-
async skus(externalPromotionId, params, options) {
|
|
60
|
-
const _externalPromotionId = externalPromotionId.id || externalPromotionId;
|
|
61
|
-
return this.resources.fetch({ type: "skus" }, `external_promotions/${_externalPromotionId}/skus`, params, options);
|
|
62
|
-
}
|
|
63
|
-
async _disable(id, params, options) {
|
|
64
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _disable: true }, params, options);
|
|
65
|
-
}
|
|
66
|
-
async _enable(id, params, options) {
|
|
67
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _enable: true }, params, options);
|
|
68
|
-
}
|
|
69
|
-
async _add_tags(id, triggerValue, params, options) {
|
|
70
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
71
|
-
}
|
|
72
|
-
async _remove_tags(id, triggerValue, params, options) {
|
|
73
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
74
|
-
}
|
|
75
|
-
async _reset_circuit(id, params, options) {
|
|
76
|
-
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _reset_circuit: true }, params, options);
|
|
77
|
-
}
|
|
78
|
-
isExternalPromotion(resource) {
|
|
79
|
-
return resource.type && resource.type === _ExternalPromotions.TYPE;
|
|
80
|
-
}
|
|
81
|
-
relationship(id) {
|
|
82
|
-
return super.relationshipOneToOne(id);
|
|
83
|
-
}
|
|
84
|
-
relationshipToMany(...ids) {
|
|
85
|
-
return super.relationshipOneToMany(...ids);
|
|
86
|
-
}
|
|
87
|
-
type() {
|
|
88
|
-
return _ExternalPromotions.TYPE;
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
var instance = new ExternalPromotions();
|
|
92
|
-
var external_promotions_default = instance;
|
|
93
|
-
|
|
94
|
-
export { external_promotions_default };
|
|
95
|
-
//# sourceMappingURL=chunk-Z3XTAUYM.js.map
|
|
96
|
-
//# sourceMappingURL=chunk-Z3XTAUYM.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/resources/external_promotions.ts"],"names":[],"mappings":";;;AA4SA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2B,WAAA,CAA+B;AAAA,EAE/D,OAAgB,IAAA,GAA8B,qBAAA;AAAA,EAE9C,MAAM,MAAA,CAAO,QAAA,EAAmC,MAAA,EAAiD,OAAA,EAAuD;AACvJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,E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AA;AAGA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,2BAAA,GAAQ","file":"chunk-Z3XTAUYM.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\n\ntype ExternalPromotionType = 'external_promotions'\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type ExternalPromotionSort = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalPromotionFilter = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalPromotion extends Resource {\n\t\n\treadonly type: ExternalPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion has been applied the total number of allowed times.\n\t */\n\ttotal_usage_reached?: boolean | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * The total number of coupons created for this promotion.\n\t * @example ```2```\n\t */\n\tcoupons_count?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\tskus?: Sku[] | null\n\n}\n\n\ninterface ExternalPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface ExternalPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url?: string | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass ExternalPromotions extends ApiResource<ExternalPromotion> {\n\n\tstatic readonly TYPE: ExternalPromotionType = 'external_promotions' as const\n\n\tasync create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.create<ExternalPromotionCreate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ExternalPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_promotions/${_externalPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `external_promotions/${_externalPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_promotions/${_externalPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_promotions/${_externalPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `external_promotions/${_externalPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_promotions/${_externalPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `external_promotions/${_externalPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalPromotion(resource: any): resource is ExternalPromotion {\n\t\treturn resource.type && (resource.type === ExternalPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalPromotionRel {\n\t\treturn super.relationshipOneToOne<ExternalPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalPromotionRel[] {\n\t\treturn super.relationshipOneToMany<ExternalPromotionRel>(...ids)\n\t}\n\n\n\ttype(): ExternalPromotionType {\n\t\treturn ExternalPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalPromotions()\nexport default instance\n\nexport type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotions, ExternalPromotionType, ExternalPromotionUpdate }\n"]}
|