@commercelayer/sdk 8.0.0-beta.13 → 8.0.0-beta.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -6
- package/lib/api-BAk3MsjU.d.cts +19365 -0
- package/lib/api-BAk3MsjU.d.ts +19365 -0
- package/lib/api.cjs +271 -271
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +137 -137
- package/lib/binding.cjs +3 -3
- package/lib/binding.d.cts +2 -2
- package/lib/binding.d.ts +2 -2
- package/lib/binding.js +2 -2
- package/lib/bundle-compat.cjs +140 -140
- package/lib/bundle-compat.d.cts +1 -1
- package/lib/bundle-compat.d.ts +1 -1
- package/lib/bundle-compat.js +139 -139
- package/lib/bundle.cjs +141 -141
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +139 -139
- package/lib/chunk-267RA7RZ.js +177 -0
- package/lib/chunk-267RA7RZ.js.map +1 -0
- package/lib/chunk-2IDKIYLP.js +196 -0
- package/lib/chunk-2IDKIYLP.js.map +1 -0
- package/lib/chunk-2KYZ7M7Y.js +86 -0
- package/lib/chunk-2KYZ7M7Y.js.map +1 -0
- package/lib/chunk-2MBOYMDB.js +88 -0
- package/lib/chunk-2MBOYMDB.js.map +1 -0
- package/lib/chunk-2MW475FY.cjs +71 -0
- package/lib/chunk-2MW475FY.cjs.map +1 -0
- package/lib/chunk-2NQTIDQ7.js +68 -0
- package/lib/chunk-2NQTIDQ7.js.map +1 -0
- package/lib/chunk-2OD6OFOC.js +89 -0
- package/lib/chunk-2OD6OFOC.js.map +1 -0
- package/lib/chunk-2Q5KDTHE.js +60 -0
- package/lib/chunk-2Q5KDTHE.js.map +1 -0
- package/lib/chunk-2RH6X25G.js +82 -0
- package/lib/chunk-2RH6X25G.js.map +1 -0
- package/lib/chunk-2SHM4O4J.js +118 -0
- package/lib/chunk-2SHM4O4J.js.map +1 -0
- package/lib/chunk-2VAYH7SU.js +69 -0
- package/lib/chunk-2VAYH7SU.js.map +1 -0
- package/lib/chunk-33CXRUSA.js +17 -0
- package/lib/chunk-33CXRUSA.js.map +1 -0
- package/lib/chunk-374VNA6I.js +65 -0
- package/lib/chunk-374VNA6I.js.map +1 -0
- package/lib/chunk-3HOIA4P5.js +80 -0
- package/lib/chunk-3HOIA4P5.js.map +1 -0
- package/lib/chunk-3JP2AXCC.js +59 -0
- package/lib/chunk-3JP2AXCC.js.map +1 -0
- package/lib/chunk-3L4NCS23.js +51 -0
- package/lib/chunk-3L4NCS23.js.map +1 -0
- package/lib/chunk-3MW62UTE.js +68 -0
- package/lib/chunk-3MW62UTE.js.map +1 -0
- package/lib/chunk-3U2RMI23.js +51 -0
- package/lib/chunk-3U2RMI23.js.map +1 -0
- package/lib/chunk-3UDKMRV2.js +51 -0
- package/lib/chunk-3UDKMRV2.js.map +1 -0
- package/lib/chunk-3VHTJUDT.cjs +117 -0
- package/lib/chunk-3VHTJUDT.cjs.map +1 -0
- package/lib/chunk-4354ZGXW.js +87 -0
- package/lib/chunk-4354ZGXW.js.map +1 -0
- package/lib/chunk-43KJOJAU.js +100 -0
- package/lib/chunk-43KJOJAU.js.map +1 -0
- package/lib/chunk-46HJB47O.cjs +88 -0
- package/lib/chunk-46HJB47O.cjs.map +1 -0
- package/lib/chunk-4722CAO4.cjs +98 -0
- package/lib/chunk-4722CAO4.cjs.map +1 -0
- package/lib/chunk-4B7WEHX2.cjs +44 -0
- package/lib/chunk-4B7WEHX2.cjs.map +1 -0
- package/lib/chunk-4F7PG4F7.js +51 -0
- package/lib/chunk-4F7PG4F7.js.map +1 -0
- package/lib/chunk-4H5LFHSL.js +91 -0
- package/lib/chunk-4H5LFHSL.js.map +1 -0
- package/lib/chunk-4ICF5YLG.cjs +243 -0
- package/lib/chunk-4ICF5YLG.cjs.map +1 -0
- package/lib/chunk-4JBO6N7C.cjs +70 -0
- package/lib/chunk-4JBO6N7C.cjs.map +1 -0
- package/lib/chunk-4JTV4XIV.js +191 -0
- package/lib/chunk-4JTV4XIV.js.map +1 -0
- package/lib/chunk-4KLK7FQM.cjs +52 -0
- package/lib/chunk-4KLK7FQM.cjs.map +1 -0
- package/lib/chunk-4T2ZMQG5.cjs +71 -0
- package/lib/chunk-4T2ZMQG5.cjs.map +1 -0
- package/lib/chunk-4TRDULXE.cjs +122 -0
- package/lib/chunk-4TRDULXE.cjs.map +1 -0
- package/lib/chunk-4Y3AIY4K.cjs +102 -0
- package/lib/chunk-4Y3AIY4K.cjs.map +1 -0
- package/lib/chunk-52QBTEDY.js +612 -0
- package/lib/chunk-52QBTEDY.js.map +1 -0
- package/lib/chunk-55OSCBQ4.cjs +98 -0
- package/lib/chunk-55OSCBQ4.cjs.map +1 -0
- package/lib/chunk-572MEZII.cjs +67 -0
- package/lib/chunk-572MEZII.cjs.map +1 -0
- package/lib/chunk-5FMJEWZ3.cjs +88 -0
- package/lib/chunk-5FMJEWZ3.cjs.map +1 -0
- package/lib/chunk-5IRUCRZ5.cjs +61 -0
- package/lib/chunk-5IRUCRZ5.cjs.map +1 -0
- package/lib/chunk-5JQYMMWU.cjs +77 -0
- package/lib/chunk-5JQYMMWU.cjs.map +1 -0
- package/lib/chunk-5NDE62DU.js +96 -0
- package/lib/chunk-5NDE62DU.js.map +1 -0
- package/lib/chunk-6BYD43SW.cjs +179 -0
- package/lib/chunk-6BYD43SW.cjs.map +1 -0
- package/lib/chunk-6CLZW6SD.js +77 -0
- package/lib/chunk-6CLZW6SD.js.map +1 -0
- package/lib/chunk-6F6T357E.cjs +52 -0
- package/lib/chunk-6F6T357E.cjs.map +1 -0
- package/lib/chunk-6GV7HLRL.cjs +118 -0
- package/lib/chunk-6GV7HLRL.cjs.map +1 -0
- package/lib/chunk-6HHYYIQD.js +78 -0
- package/lib/chunk-6HHYYIQD.js.map +1 -0
- package/lib/chunk-6IY3G52S.js +77 -0
- package/lib/chunk-6IY3G52S.js.map +1 -0
- package/lib/chunk-6JFMLMLS.js +44 -0
- package/lib/chunk-6JFMLMLS.js.map +1 -0
- package/lib/chunk-6NBTVRIJ.cjs +126 -0
- package/lib/chunk-6NBTVRIJ.cjs.map +1 -0
- package/lib/chunk-6SM5SS7Q.cjs +115 -0
- package/lib/chunk-6SM5SS7Q.cjs.map +1 -0
- package/lib/chunk-76IB5YL6.cjs +55 -0
- package/lib/chunk-76IB5YL6.cjs.map +1 -0
- package/lib/chunk-7HKJP4G2.js +68 -0
- package/lib/chunk-7HKJP4G2.js.map +1 -0
- package/lib/chunk-7IDFFIE3.cjs +90 -0
- package/lib/chunk-7IDFFIE3.cjs.map +1 -0
- package/lib/chunk-7LDQBSSA.cjs +93 -0
- package/lib/chunk-7LDQBSSA.cjs.map +1 -0
- package/lib/chunk-7SSQUWI5.js +36 -0
- package/lib/chunk-7SSQUWI5.js.map +1 -0
- package/lib/chunk-7VORKVCN.cjs +79 -0
- package/lib/chunk-7VORKVCN.cjs.map +1 -0
- package/lib/chunk-7WWHYLE4.cjs +193 -0
- package/lib/chunk-7WWHYLE4.cjs.map +1 -0
- package/lib/chunk-A5FOC3U6.js +203 -0
- package/lib/chunk-A5FOC3U6.js.map +1 -0
- package/lib/chunk-ACORKFFY.cjs +44 -0
- package/lib/chunk-ACORKFFY.cjs.map +1 -0
- package/lib/chunk-AFEODH7A.js +61 -0
- package/lib/chunk-AFEODH7A.js.map +1 -0
- package/lib/chunk-APN7MZCJ.js +59 -0
- package/lib/chunk-APN7MZCJ.js.map +1 -0
- package/lib/chunk-ARYXPN5P.js +77 -0
- package/lib/chunk-ARYXPN5P.js.map +1 -0
- package/lib/chunk-AT5EZFTB.js +77 -0
- package/lib/chunk-AT5EZFTB.js.map +1 -0
- package/lib/chunk-B2FPY7YB.cjs +79 -0
- package/lib/chunk-B2FPY7YB.cjs.map +1 -0
- package/lib/chunk-B2GCBM4S.cjs +62 -0
- package/lib/chunk-B2GCBM4S.cjs.map +1 -0
- package/lib/chunk-BGRQNLMA.js +83 -0
- package/lib/chunk-BGRQNLMA.js.map +1 -0
- package/lib/chunk-BH6XJI2L.js +42 -0
- package/lib/chunk-BH6XJI2L.js.map +1 -0
- package/lib/chunk-BIWEO37T.cjs +712 -0
- package/lib/chunk-BIWEO37T.cjs.map +1 -0
- package/lib/chunk-BPUCU7PC.cjs +88 -0
- package/lib/chunk-BPUCU7PC.cjs.map +1 -0
- package/lib/chunk-BQ4RMF7S.cjs +91 -0
- package/lib/chunk-BQ4RMF7S.cjs.map +1 -0
- package/lib/chunk-CGIL4EGD.cjs +80 -0
- package/lib/chunk-CGIL4EGD.cjs.map +1 -0
- package/lib/chunk-CPCPNH42.cjs +75 -0
- package/lib/chunk-CPCPNH42.cjs.map +1 -0
- package/lib/chunk-CTLKR6ZS.cjs +82 -0
- package/lib/chunk-CTLKR6ZS.cjs.map +1 -0
- package/lib/chunk-D5AAOXSY.js +77 -0
- package/lib/chunk-D5AAOXSY.js.map +1 -0
- package/lib/chunk-DG75FTCW.js +113 -0
- package/lib/chunk-DG75FTCW.js.map +1 -0
- package/lib/chunk-DHS6QK53.js +77 -0
- package/lib/chunk-DHS6QK53.js.map +1 -0
- package/lib/chunk-DJ3KEZ4F.js +132 -0
- package/lib/chunk-DJ3KEZ4F.js.map +1 -0
- package/lib/chunk-DOMLW4P3.cjs +84 -0
- package/lib/chunk-DOMLW4P3.cjs.map +1 -0
- package/lib/chunk-DTFVNWN5.cjs +86 -0
- package/lib/chunk-DTFVNWN5.cjs.map +1 -0
- package/lib/chunk-DTLFNN2Z.cjs +61 -0
- package/lib/chunk-DTLFNN2Z.cjs.map +1 -0
- package/lib/chunk-DTNOZFYT.cjs +88 -0
- package/lib/chunk-DTNOZFYT.cjs.map +1 -0
- package/lib/chunk-DU5GIKNP.cjs +84 -0
- package/lib/chunk-DU5GIKNP.cjs.map +1 -0
- package/lib/chunk-DY5753SN.js +164 -0
- package/lib/chunk-DY5753SN.js.map +1 -0
- package/lib/chunk-E3MRCQDG.cjs +70 -0
- package/lib/chunk-E3MRCQDG.cjs.map +1 -0
- package/lib/chunk-E4GCMJQ7.js +709 -0
- package/lib/chunk-E4GCMJQ7.js.map +1 -0
- package/lib/chunk-EBEZL76F.cjs +91 -0
- package/lib/chunk-EBEZL76F.cjs.map +1 -0
- package/lib/chunk-EBUN44PI.cjs +62 -0
- package/lib/chunk-EBUN44PI.cjs.map +1 -0
- package/lib/chunk-EGVGWVKD.js +68 -0
- package/lib/chunk-EGVGWVKD.js.map +1 -0
- package/lib/chunk-EKEA7VUX.cjs +91 -0
- package/lib/chunk-EKEA7VUX.cjs.map +1 -0
- package/lib/chunk-EQPVMYAP.js +241 -0
- package/lib/chunk-EQPVMYAP.js.map +1 -0
- package/lib/chunk-EW27463D.js +79 -0
- package/lib/chunk-EW27463D.js.map +1 -0
- package/lib/chunk-EXRKWZXE.cjs +70 -0
- package/lib/chunk-EXRKWZXE.cjs.map +1 -0
- package/lib/chunk-EY7YDAYZ.cjs +91 -0
- package/lib/chunk-EY7YDAYZ.cjs.map +1 -0
- package/lib/chunk-EZBSX56Q.cjs +179 -0
- package/lib/chunk-EZBSX56Q.cjs.map +1 -0
- package/lib/chunk-F4UYRZYH.cjs +70 -0
- package/lib/chunk-F4UYRZYH.cjs.map +1 -0
- package/lib/chunk-F5EE7JU2.cjs +40 -0
- package/lib/chunk-F5EE7JU2.cjs.map +1 -0
- package/lib/chunk-FAGH74DD.cjs +53 -0
- package/lib/chunk-FAGH74DD.cjs.map +1 -0
- package/lib/chunk-FCX5DDJB.cjs +182 -0
- package/lib/chunk-FCX5DDJB.cjs.map +1 -0
- package/lib/chunk-FCXUVZO5.cjs +98 -0
- package/lib/chunk-FCXUVZO5.cjs.map +1 -0
- package/lib/chunk-FDSPOKHZ.js +38 -0
- package/lib/chunk-FDSPOKHZ.js.map +1 -0
- package/lib/chunk-FHGTJPGQ.js +177 -0
- package/lib/chunk-FHGTJPGQ.js.map +1 -0
- package/lib/chunk-FJY57LUQ.js +177 -0
- package/lib/chunk-FJY57LUQ.js.map +1 -0
- package/lib/chunk-FOBT47PD.js +77 -0
- package/lib/chunk-FOBT47PD.js.map +1 -0
- package/lib/chunk-FPCMIH4U.js +116 -0
- package/lib/chunk-FPCMIH4U.js.map +1 -0
- package/lib/chunk-FY5SQIN2.js +12 -0
- package/lib/chunk-FY5SQIN2.js.map +1 -0
- package/lib/chunk-FYNVVHOV.js +89 -0
- package/lib/chunk-FYNVVHOV.js.map +1 -0
- package/lib/chunk-FZPVXB67.js +120 -0
- package/lib/chunk-FZPVXB67.js.map +1 -0
- package/lib/chunk-G26HYK7R.cjs +84 -0
- package/lib/chunk-G26HYK7R.cjs.map +1 -0
- package/lib/chunk-G4WZCNGY.js +68 -0
- package/lib/chunk-G4WZCNGY.js.map +1 -0
- package/lib/chunk-GAGCSJMI.cjs +80 -0
- package/lib/chunk-GAGCSJMI.cjs.map +1 -0
- package/lib/chunk-GCBHCW63.cjs +120 -0
- package/lib/chunk-GCBHCW63.cjs.map +1 -0
- package/lib/chunk-GLE4WBW2.cjs +44 -0
- package/lib/chunk-GLE4WBW2.cjs.map +1 -0
- package/lib/chunk-GNVYLLHO.cjs +77 -0
- package/lib/chunk-GNVYLLHO.cjs.map +1 -0
- package/lib/chunk-H3IZMD2L.js +177 -0
- package/lib/chunk-H3IZMD2L.js.map +1 -0
- package/lib/chunk-H7NQOWEP.cjs +70 -0
- package/lib/chunk-H7NQOWEP.cjs.map +1 -0
- package/lib/chunk-HAZK7BPS.js +89 -0
- package/lib/chunk-HAZK7BPS.js.map +1 -0
- package/lib/chunk-HGRQZF4O.js +86 -0
- package/lib/chunk-HGRQZF4O.js.map +1 -0
- package/lib/chunk-HSRHP6DQ.js +68 -0
- package/lib/chunk-HSRHP6DQ.js.map +1 -0
- package/lib/chunk-HU5Y5YXV.js +60 -0
- package/lib/chunk-HU5Y5YXV.js.map +1 -0
- package/lib/chunk-HUKSYJM3.js +77 -0
- package/lib/chunk-HUKSYJM3.js.map +1 -0
- package/lib/chunk-HWATXMZF.cjs +70 -0
- package/lib/chunk-HWATXMZF.cjs.map +1 -0
- package/lib/chunk-HWPPOBR4.js +168 -0
- package/lib/chunk-HWPPOBR4.js.map +1 -0
- package/lib/chunk-I3YEPHGW.cjs +16 -0
- package/lib/chunk-I3YEPHGW.cjs.map +1 -0
- package/lib/chunk-IAP4LRXE.js +27 -0
- package/lib/chunk-IAP4LRXE.js.map +1 -0
- package/lib/chunk-IDMNIXXU.js +75 -0
- package/lib/chunk-IDMNIXXU.js.map +1 -0
- package/lib/chunk-IHAR4QGZ.js +67 -0
- package/lib/chunk-IHAR4QGZ.js.map +1 -0
- package/lib/chunk-ILRWH3PN.cjs +62 -0
- package/lib/chunk-ILRWH3PN.cjs.map +1 -0
- package/lib/chunk-IUIYKRAL.js +77 -0
- package/lib/chunk-IUIYKRAL.js.map +1 -0
- package/lib/chunk-J4XNW4P5.js +86 -0
- package/lib/chunk-J4XNW4P5.js.map +1 -0
- package/lib/chunk-JCBW6XXU.cjs +193 -0
- package/lib/chunk-JCBW6XXU.cjs.map +1 -0
- package/lib/chunk-JDIM7NXF.js +65 -0
- package/lib/chunk-JDIM7NXF.js.map +1 -0
- package/lib/chunk-JOCMXEM4.js +118 -0
- package/lib/chunk-JOCMXEM4.js.map +1 -0
- package/lib/chunk-JT5FZXTG.js +79 -0
- package/lib/chunk-JT5FZXTG.js.map +1 -0
- package/lib/chunk-JVDTK24V.cjs +198 -0
- package/lib/chunk-JVDTK24V.cjs.map +1 -0
- package/lib/chunk-K75FGUGR.cjs +205 -0
- package/lib/chunk-K75FGUGR.cjs.map +1 -0
- package/lib/chunk-KCZK4HVB.cjs +179 -0
- package/lib/chunk-KCZK4HVB.cjs.map +1 -0
- package/lib/chunk-KD6BFSCC.js +60 -0
- package/lib/chunk-KD6BFSCC.js.map +1 -0
- package/lib/chunk-KERSACIW.js +321 -0
- package/lib/chunk-KERSACIW.js.map +1 -0
- package/lib/chunk-KFZYNATI.cjs +62 -0
- package/lib/chunk-KFZYNATI.cjs.map +1 -0
- package/lib/chunk-KGCJVIPG.cjs +179 -0
- package/lib/chunk-KGCJVIPG.cjs.map +1 -0
- package/lib/chunk-KN4PEUEE.cjs +98 -0
- package/lib/chunk-KN4PEUEE.cjs.map +1 -0
- package/lib/chunk-KTTZGD7J.cjs +323 -0
- package/lib/chunk-KTTZGD7J.cjs.map +1 -0
- package/lib/chunk-KXRL6CNS.js +73 -0
- package/lib/chunk-KXRL6CNS.js.map +1 -0
- package/lib/chunk-L3YGP4QA.cjs +79 -0
- package/lib/chunk-L3YGP4QA.cjs.map +1 -0
- package/lib/chunk-L4FX7PNF.cjs +77 -0
- package/lib/chunk-L4FX7PNF.cjs.map +1 -0
- package/lib/chunk-LBN6M47Q.js +50 -0
- package/lib/chunk-LBN6M47Q.js.map +1 -0
- package/lib/chunk-LEEJP37I.js +58 -0
- package/lib/chunk-LEEJP37I.js.map +1 -0
- package/lib/chunk-LGPOILNE.js +86 -0
- package/lib/chunk-LGPOILNE.js.map +1 -0
- package/lib/chunk-LH3COSZD.cjs +79 -0
- package/lib/chunk-LH3COSZD.cjs.map +1 -0
- package/lib/chunk-LHG2DMYX.cjs +85 -0
- package/lib/chunk-LHG2DMYX.cjs.map +1 -0
- package/lib/chunk-LI3PRJXB.js +50 -0
- package/lib/chunk-LI3PRJXB.js.map +1 -0
- package/lib/chunk-LKOCJITH.js +68 -0
- package/lib/chunk-LKOCJITH.js.map +1 -0
- package/lib/chunk-LRVKKYKK.cjs +79 -0
- package/lib/chunk-LRVKKYKK.cjs.map +1 -0
- package/lib/chunk-LV4NOJHE.cjs +29 -0
- package/lib/chunk-LV4NOJHE.cjs.map +1 -0
- package/lib/chunk-LZFW7E5I.js +84 -0
- package/lib/chunk-LZFW7E5I.js.map +1 -0
- package/lib/chunk-MANICPFK.js +86 -0
- package/lib/chunk-MANICPFK.js.map +1 -0
- package/lib/chunk-MEDRY2GL.js +191 -0
- package/lib/chunk-MEDRY2GL.js.map +1 -0
- package/lib/chunk-MFFERELH.js +89 -0
- package/lib/chunk-MFFERELH.js.map +1 -0
- package/lib/chunk-MGSPPFHY.js +835 -0
- package/lib/chunk-MGSPPFHY.js.map +1 -0
- package/lib/chunk-MIRX3KPG.js +68 -0
- package/lib/chunk-MIRX3KPG.js.map +1 -0
- package/lib/chunk-MLJAPB6X.cjs +179 -0
- package/lib/chunk-MLJAPB6X.cjs.map +1 -0
- package/lib/chunk-MOHK5Y4K.cjs +67 -0
- package/lib/chunk-MOHK5Y4K.cjs.map +1 -0
- package/lib/chunk-MZCEJDFS.cjs +91 -0
- package/lib/chunk-MZCEJDFS.cjs.map +1 -0
- package/lib/chunk-N2QYUTNW.cjs +26 -0
- package/lib/chunk-N2QYUTNW.cjs.map +1 -0
- package/lib/chunk-N2WLLOFR.js +77 -0
- package/lib/chunk-N2WLLOFR.js.map +1 -0
- package/lib/chunk-NEUAOMAN.cjs +79 -0
- package/lib/chunk-NEUAOMAN.cjs.map +1 -0
- package/lib/chunk-NFAYBSDG.cjs +88 -0
- package/lib/chunk-NFAYBSDG.cjs.map +1 -0
- package/lib/chunk-NK4SOOM5.cjs +52 -0
- package/lib/chunk-NK4SOOM5.cjs.map +1 -0
- package/lib/chunk-NPTF547B.js +53 -0
- package/lib/chunk-NPTF547B.js.map +1 -0
- package/lib/chunk-NQ66VLXL.js +68 -0
- package/lib/chunk-NQ66VLXL.js.map +1 -0
- package/lib/chunk-NQACG5RT.cjs +166 -0
- package/lib/chunk-NQACG5RT.cjs.map +1 -0
- package/lib/chunk-NTE62E3M.cjs +79 -0
- package/lib/chunk-NTE62E3M.cjs.map +1 -0
- package/lib/chunk-NXOYRDRO.js +129 -0
- package/lib/chunk-NXOYRDRO.js.map +1 -0
- package/lib/chunk-O47ZP7H6.cjs +614 -0
- package/lib/chunk-O47ZP7H6.cjs.map +1 -0
- package/lib/chunk-OES4VE5M.cjs +84 -0
- package/lib/chunk-OES4VE5M.cjs.map +1 -0
- package/lib/chunk-OHW3ZNR3.js +75 -0
- package/lib/chunk-OHW3ZNR3.js.map +1 -0
- package/lib/chunk-OK3SKMBO.js +89 -0
- package/lib/chunk-OK3SKMBO.js.map +1 -0
- package/lib/chunk-OKEOKU4E.cjs +35 -0
- package/lib/chunk-OKEOKU4E.cjs.map +1 -0
- package/lib/chunk-ONC3OQN4.js +91 -0
- package/lib/chunk-ONC3OQN4.js.map +1 -0
- package/lib/chunk-OTVHFX4H.cjs +77 -0
- package/lib/chunk-OTVHFX4H.cjs.map +1 -0
- package/lib/chunk-OZX27KMR.js +79 -0
- package/lib/chunk-OZX27KMR.js.map +1 -0
- package/lib/chunk-P27AFQBR.js +33 -0
- package/lib/chunk-P27AFQBR.js.map +1 -0
- package/lib/chunk-P6K5NNLW.js +60 -0
- package/lib/chunk-P6K5NNLW.js.map +1 -0
- package/lib/chunk-PGPWTEFE.js +180 -0
- package/lib/chunk-PGPWTEFE.js.map +1 -0
- package/lib/chunk-PHU3CMZ5.cjs +79 -0
- package/lib/chunk-PHU3CMZ5.cjs.map +1 -0
- package/lib/chunk-PI4SJ754.js +50 -0
- package/lib/chunk-PI4SJ754.js.map +1 -0
- package/lib/chunk-PIVKFVWL.cjs +77 -0
- package/lib/chunk-PIVKFVWL.cjs.map +1 -0
- package/lib/chunk-PJACY5CN.js +77 -0
- package/lib/chunk-PJACY5CN.js.map +1 -0
- package/lib/chunk-PNUSOLC7.js +75 -0
- package/lib/chunk-PNUSOLC7.js.map +1 -0
- package/lib/chunk-PTZVULBG.js +68 -0
- package/lib/chunk-PTZVULBG.js.map +1 -0
- package/lib/chunk-PVK2W5DY.cjs +134 -0
- package/lib/chunk-PVK2W5DY.cjs.map +1 -0
- package/lib/chunk-Q2WNIDHO.cjs +60 -0
- package/lib/chunk-Q2WNIDHO.cjs.map +1 -0
- package/lib/chunk-Q5UGOLNH.js +94 -0
- package/lib/chunk-Q5UGOLNH.js.map +1 -0
- package/lib/chunk-QHZYJRJE.cjs +53 -0
- package/lib/chunk-QHZYJRJE.cjs.map +1 -0
- package/lib/chunk-QKVPFV7C.js +68 -0
- package/lib/chunk-QKVPFV7C.js.map +1 -0
- package/lib/chunk-QMZ46W5A.js +82 -0
- package/lib/chunk-QMZ46W5A.js.map +1 -0
- package/lib/chunk-QN7S6NVC.cjs +94 -0
- package/lib/chunk-QN7S6NVC.cjs.map +1 -0
- package/lib/chunk-QPYILFHO.js +60 -0
- package/lib/chunk-QPYILFHO.js.map +1 -0
- package/lib/chunk-QTT5TV37.cjs +170 -0
- package/lib/chunk-QTT5TV37.cjs.map +1 -0
- package/lib/chunk-R3QWC2WC.cjs +60 -0
- package/lib/chunk-R3QWC2WC.cjs.map +1 -0
- package/lib/chunk-R3ZMNR7G.cjs +79 -0
- package/lib/chunk-R3ZMNR7G.cjs.map +1 -0
- package/lib/chunk-R7JJORII.cjs +44 -0
- package/lib/chunk-R7JJORII.cjs.map +1 -0
- package/lib/chunk-RG2WS3WW.js +123 -0
- package/lib/chunk-RG2WS3WW.js.map +1 -0
- package/lib/chunk-RHHHLUEO.js +84 -0
- package/lib/chunk-RHHHLUEO.js.map +1 -0
- package/lib/chunk-RJJTTINA.cjs +62 -0
- package/lib/chunk-RJJTTINA.cjs.map +1 -0
- package/lib/chunk-RWHYI7SY.cjs +70 -0
- package/lib/chunk-RWHYI7SY.cjs.map +1 -0
- package/lib/chunk-RXCUQGFP.js +120 -0
- package/lib/chunk-RXCUQGFP.js.map +1 -0
- package/lib/chunk-S5IFF5TU.js +68 -0
- package/lib/chunk-S5IFF5TU.js.map +1 -0
- package/lib/chunk-SFWTY6BU.js +92 -0
- package/lib/chunk-SFWTY6BU.js.map +1 -0
- package/lib/chunk-SJ643BKA.cjs +70 -0
- package/lib/chunk-SJ643BKA.cjs.map +1 -0
- package/lib/chunk-SJUXQEDZ.js +60 -0
- package/lib/chunk-SJUXQEDZ.js.map +1 -0
- package/lib/chunk-SNVRSI5K.js +177 -0
- package/lib/chunk-SNVRSI5K.js.map +1 -0
- package/lib/chunk-SPDLK6FQ.cjs +81 -0
- package/lib/chunk-SPDLK6FQ.cjs.map +1 -0
- package/lib/chunk-SUTVCSO3.js +124 -0
- package/lib/chunk-SUTVCSO3.js.map +1 -0
- package/lib/chunk-SWZGGEKJ.cjs +125 -0
- package/lib/chunk-SWZGGEKJ.cjs.map +1 -0
- package/lib/chunk-SYXA55WV.cjs +122 -0
- package/lib/chunk-SYXA55WV.cjs.map +1 -0
- package/lib/chunk-SZ7YS3KF.cjs +62 -0
- package/lib/chunk-SZ7YS3KF.cjs.map +1 -0
- package/lib/chunk-T4X3WRUF.cjs +81 -0
- package/lib/chunk-T4X3WRUF.cjs.map +1 -0
- package/lib/chunk-TE4WMF6U.cjs +81 -0
- package/lib/chunk-TE4WMF6U.cjs.map +1 -0
- package/lib/chunk-TLIXQVS5.js +77 -0
- package/lib/chunk-TLIXQVS5.js.map +1 -0
- package/lib/chunk-TQXOBB5Z.cjs +61 -0
- package/lib/chunk-TQXOBB5Z.cjs.map +1 -0
- package/lib/chunk-TRDPCNFE.js +82 -0
- package/lib/chunk-TRDPCNFE.js.map +1 -0
- package/lib/chunk-TWFPZI6T.cjs +94 -0
- package/lib/chunk-TWFPZI6T.cjs.map +1 -0
- package/lib/chunk-TWOWDWCI.cjs +70 -0
- package/lib/chunk-TWOWDWCI.cjs.map +1 -0
- package/lib/chunk-U65XDKVZ.cjs +91 -0
- package/lib/chunk-U65XDKVZ.cjs.map +1 -0
- package/lib/chunk-UBLJX7XD.js +59 -0
- package/lib/chunk-UBLJX7XD.js.map +1 -0
- package/lib/chunk-UBWI5WGL.js +68 -0
- package/lib/chunk-UBWI5WGL.js.map +1 -0
- package/lib/chunk-UBZNC5FH.cjs +102 -0
- package/lib/chunk-UBZNC5FH.cjs.map +1 -0
- package/lib/chunk-UDGHDQ5B.js +24 -0
- package/lib/chunk-UDGHDQ5B.js.map +1 -0
- package/lib/chunk-UI3N2K3F.js +60 -0
- package/lib/chunk-UI3N2K3F.js.map +1 -0
- package/lib/chunk-UIIIGOQX.cjs +70 -0
- package/lib/chunk-UIIIGOQX.cjs.map +1 -0
- package/lib/chunk-UILWZQ2W.cjs +46 -0
- package/lib/chunk-UILWZQ2W.cjs.map +1 -0
- package/lib/chunk-VAMWCYR2.cjs +53 -0
- package/lib/chunk-VAMWCYR2.cjs.map +1 -0
- package/lib/chunk-VC47FGUP.cjs +70 -0
- package/lib/chunk-VC47FGUP.cjs.map +1 -0
- package/lib/chunk-VCELHAKJ.js +177 -0
- package/lib/chunk-VCELHAKJ.js.map +1 -0
- package/lib/chunk-VF736IVO.cjs +86 -0
- package/lib/chunk-VF736IVO.cjs.map +1 -0
- package/lib/chunk-VG6VDUNJ.js +113 -0
- package/lib/chunk-VG6VDUNJ.js.map +1 -0
- package/lib/chunk-VMQK3XJY.js +92 -0
- package/lib/chunk-VMQK3XJY.js.map +1 -0
- package/lib/chunk-W3AU6NQS.js +191 -0
- package/lib/chunk-W3AU6NQS.js.map +1 -0
- package/lib/chunk-WFXPGFZX.cjs +102 -0
- package/lib/chunk-WFXPGFZX.cjs.map +1 -0
- package/lib/chunk-WIQ572EG.js +89 -0
- package/lib/chunk-WIQ572EG.js.map +1 -0
- package/lib/chunk-WIXNV5SM.cjs +19 -0
- package/lib/chunk-WIXNV5SM.cjs.map +1 -0
- package/lib/chunk-WKUJL54B.js +75 -0
- package/lib/chunk-WKUJL54B.js.map +1 -0
- package/lib/chunk-WN3JJ437.cjs +38 -0
- package/lib/chunk-WN3JJ437.cjs.map +1 -0
- package/lib/chunk-WNQ2B7Z6.cjs +70 -0
- package/lib/chunk-WNQ2B7Z6.cjs.map +1 -0
- package/lib/chunk-WOTGMGIZ.js +96 -0
- package/lib/chunk-WOTGMGIZ.js.map +1 -0
- package/lib/chunk-WPPZHCW6.js +42 -0
- package/lib/chunk-WPPZHCW6.js.map +1 -0
- package/lib/chunk-WSBTDWNY.js +78 -0
- package/lib/chunk-WSBTDWNY.js.map +1 -0
- package/lib/chunk-X4NXPMRS.js +100 -0
- package/lib/chunk-X4NXPMRS.js.map +1 -0
- package/lib/chunk-XJXOSSG2.cjs +79 -0
- package/lib/chunk-XJXOSSG2.cjs.map +1 -0
- package/lib/chunk-XMPXZBI2.js +68 -0
- package/lib/chunk-XMPXZBI2.js.map +1 -0
- package/lib/chunk-XNFSTSZN.js +51 -0
- package/lib/chunk-XNFSTSZN.js.map +1 -0
- package/lib/chunk-XPFSWXAU.js +42 -0
- package/lib/chunk-XPFSWXAU.js.map +1 -0
- package/lib/chunk-XUWL4FY6.js +58 -0
- package/lib/chunk-XUWL4FY6.js.map +1 -0
- package/lib/chunk-XWOOGY54.js +69 -0
- package/lib/chunk-XWOOGY54.js.map +1 -0
- package/lib/chunk-XZQTBLKO.cjs +93 -0
- package/lib/chunk-XZQTBLKO.cjs.map +1 -0
- package/lib/chunk-Y2WAPNSF.js +82 -0
- package/lib/chunk-Y2WAPNSF.js.map +1 -0
- package/lib/chunk-Y33SKLZU.cjs +53 -0
- package/lib/chunk-Y33SKLZU.cjs.map +1 -0
- package/lib/chunk-Y5L33WN3.cjs +69 -0
- package/lib/chunk-Y5L33WN3.cjs.map +1 -0
- package/lib/chunk-YIQFPB2D.cjs +79 -0
- package/lib/chunk-YIQFPB2D.cjs.map +1 -0
- package/lib/chunk-YKB7L74M.cjs +70 -0
- package/lib/chunk-YKB7L74M.cjs.map +1 -0
- package/lib/chunk-YKC5RL7S.cjs +96 -0
- package/lib/chunk-YKC5RL7S.cjs.map +1 -0
- package/lib/chunk-Z2DAEKW7.js +68 -0
- package/lib/chunk-Z2DAEKW7.js.map +1 -0
- package/lib/chunk-Z56I34U3.cjs +70 -0
- package/lib/chunk-Z56I34U3.cjs.map +1 -0
- package/lib/chunk-Z66BOR7R.js +96 -0
- package/lib/chunk-Z66BOR7R.js.map +1 -0
- package/lib/chunk-Z6TK6XCK.cjs +79 -0
- package/lib/chunk-Z6TK6XCK.cjs.map +1 -0
- package/lib/chunk-ZBJNN6OX.js +42 -0
- package/lib/chunk-ZBJNN6OX.js.map +1 -0
- package/lib/chunk-ZE2JOYWP.js +75 -0
- package/lib/chunk-ZE2JOYWP.js.map +1 -0
- package/lib/chunk-ZETZFLTU.cjs +89 -0
- package/lib/chunk-ZETZFLTU.cjs.map +1 -0
- package/lib/chunk-ZFAAZWRS.cjs +70 -0
- package/lib/chunk-ZFAAZWRS.cjs.map +1 -0
- package/lib/chunk-ZG4D26E4.js +96 -0
- package/lib/chunk-ZG4D26E4.js.map +1 -0
- package/lib/chunk-ZGB7XH6V.cjs +179 -0
- package/lib/chunk-ZGB7XH6V.cjs.map +1 -0
- package/lib/chunk-ZGHN3XCC.js +100 -0
- package/lib/chunk-ZGHN3XCC.js.map +1 -0
- package/lib/chunk-ZJR3IHHN.cjs +53 -0
- package/lib/chunk-ZJR3IHHN.cjs.map +1 -0
- package/lib/chunk-ZKH76BPQ.cjs +120 -0
- package/lib/chunk-ZKH76BPQ.cjs.map +1 -0
- package/lib/chunk-ZKP5WO4N.cjs +193 -0
- package/lib/chunk-ZKP5WO4N.cjs.map +1 -0
- package/lib/chunk-ZNXSEQIH.cjs +131 -0
- package/lib/chunk-ZNXSEQIH.cjs.map +1 -0
- package/lib/chunk-ZPVG73FO.cjs +63 -0
- package/lib/chunk-ZPVG73FO.cjs.map +1 -0
- package/lib/chunk-ZUYCVSFZ.cjs +843 -0
- package/lib/chunk-ZUYCVSFZ.cjs.map +1 -0
- package/lib/chunk-ZYY52BNG.cjs +62 -0
- package/lib/chunk-ZYY52BNG.cjs.map +1 -0
- package/lib/commercelayer.cjs +10 -10
- package/lib/commercelayer.d.cts +1 -1
- package/lib/commercelayer.d.ts +1 -1
- package/lib/commercelayer.js +4 -4
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +146 -146
- package/lib/index.cjs.map +1 -1
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +141 -141
- package/lib/index.js.map +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/resources/addresses.cjs +5 -5
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +4 -4
- package/lib/resources/adjustments.cjs +5 -5
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +4 -4
- package/lib/resources/adyen_gateways.cjs +5 -5
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +4 -4
- package/lib/resources/adyen_payments.cjs +5 -5
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +4 -4
- package/lib/resources/applications.cjs +5 -5
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +4 -4
- package/lib/resources/attachments.cjs +5 -5
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +4 -4
- package/lib/resources/authorizations.cjs +5 -5
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +4 -4
- package/lib/resources/avalara_accounts.cjs +5 -5
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +4 -4
- package/lib/resources/axerve_gateways.cjs +5 -5
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +4 -4
- package/lib/resources/axerve_payments.cjs +5 -5
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +4 -4
- package/lib/resources/billing_info_validation_rules.cjs +5 -5
- package/lib/resources/billing_info_validation_rules.d.cts +2 -2
- package/lib/resources/billing_info_validation_rules.d.ts +1 -1
- package/lib/resources/billing_info_validation_rules.js +4 -4
- package/lib/resources/bing_geocoders.cjs +5 -5
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +4 -4
- package/lib/resources/braintree_gateways.cjs +5 -5
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +4 -4
- package/lib/resources/braintree_payments.cjs +5 -5
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +4 -4
- package/lib/resources/bundles.cjs +5 -5
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +4 -4
- package/lib/resources/buy_x_pay_y_promotions.cjs +5 -5
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +4 -4
- package/lib/resources/captures.cjs +5 -5
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +4 -4
- package/lib/resources/carrier_accounts.cjs +5 -5
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +4 -4
- package/lib/resources/checkout_com_gateways.cjs +5 -5
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.js +4 -4
- package/lib/resources/checkout_com_payments.cjs +5 -5
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +4 -4
- package/lib/resources/cleanups.cjs +5 -5
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +4 -4
- package/lib/resources/coupon_codes_promotion_rules.cjs +5 -5
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +4 -4
- package/lib/resources/coupon_recipients.cjs +5 -5
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +4 -4
- package/lib/resources/coupons.cjs +5 -5
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +4 -4
- package/lib/resources/custom_promotion_rules.cjs +5 -5
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.js +4 -4
- package/lib/resources/customer_addresses.cjs +5 -5
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +4 -4
- package/lib/resources/customer_groups.cjs +5 -5
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +4 -4
- package/lib/resources/customer_password_resets.cjs +5 -5
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_password_resets.js +4 -4
- package/lib/resources/customer_payment_sources.cjs +5 -5
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_payment_sources.js +4 -4
- package/lib/resources/customer_subscriptions.cjs +5 -5
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +4 -4
- package/lib/resources/customers.cjs +5 -5
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +4 -4
- package/lib/resources/delivery_lead_times.cjs +5 -5
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/delivery_lead_times.js +4 -4
- package/lib/resources/discount_engine_items.cjs +5 -5
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engine_items.js +4 -4
- package/lib/resources/discount_engines.cjs +5 -5
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +4 -4
- package/lib/resources/easypost_pickups.cjs +5 -5
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +4 -4
- package/lib/resources/event_callbacks.cjs +5 -5
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +4 -4
- package/lib/resources/event_stores.cjs +5 -5
- package/lib/resources/event_stores.d.cts +2 -2
- package/lib/resources/event_stores.d.ts +1 -1
- package/lib/resources/event_stores.js +4 -4
- package/lib/resources/events.cjs +5 -5
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +4 -4
- package/lib/resources/exports.cjs +5 -5
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +4 -4
- package/lib/resources/external_gateways.cjs +5 -5
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +4 -4
- package/lib/resources/external_payments.cjs +5 -5
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +4 -4
- package/lib/resources/external_promotions.cjs +5 -5
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +4 -4
- package/lib/resources/external_tax_calculators.cjs +5 -5
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/external_tax_calculators.js +4 -4
- package/lib/resources/fixed_amount_promotions.cjs +5 -5
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +4 -4
- package/lib/resources/fixed_price_promotions.cjs +5 -5
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +4 -4
- package/lib/resources/flex_promotions.cjs +5 -5
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +4 -4
- package/lib/resources/free_gift_promotions.cjs +5 -5
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +4 -4
- package/lib/resources/free_shipping_promotions.cjs +5 -5
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +4 -4
- package/lib/resources/geocoders.cjs +5 -5
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +4 -4
- package/lib/resources/gift_card_recipients.cjs +5 -5
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_card_recipients.js +4 -4
- package/lib/resources/gift_cards.cjs +5 -5
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +4 -4
- package/lib/resources/google_geocoders.cjs +5 -5
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +4 -4
- package/lib/resources/imports.cjs +5 -5
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +4 -4
- package/lib/resources/in_stock_subscriptions.cjs +5 -5
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.js +4 -4
- package/lib/resources/inventory_models.cjs +5 -5
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +4 -4
- package/lib/resources/inventory_return_locations.cjs +5 -5
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_return_locations.js +4 -4
- package/lib/resources/inventory_stock_locations.cjs +5 -5
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.js +4 -4
- package/lib/resources/klarna_gateways.cjs +5 -5
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +4 -4
- package/lib/resources/klarna_payments.cjs +5 -5
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +4 -4
- package/lib/resources/line_item_options.cjs +5 -5
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_item_options.js +4 -4
- package/lib/resources/line_items.cjs +5 -5
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +4 -4
- package/lib/resources/links.cjs +5 -5
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +4 -4
- package/lib/resources/manual_gateways.cjs +5 -5
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +4 -4
- package/lib/resources/manual_tax_calculators.cjs +5 -5
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.js +4 -4
- package/lib/resources/markets.cjs +5 -5
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +4 -4
- package/lib/resources/merchants.cjs +5 -5
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +4 -4
- package/lib/resources/notifications.cjs +5 -5
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +4 -4
- package/lib/resources/order_amount_promotion_rules.cjs +5 -5
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.js +4 -4
- package/lib/resources/order_copies.cjs +5 -5
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +4 -4
- package/lib/resources/order_factories.cjs +5 -5
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +4 -4
- package/lib/resources/order_subscription_items.cjs +5 -5
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscription_items.js +4 -4
- package/lib/resources/order_subscriptions.cjs +5 -5
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +4 -4
- package/lib/resources/order_validation_rules.cjs +5 -5
- package/lib/resources/order_validation_rules.d.cts +2 -2
- package/lib/resources/order_validation_rules.d.ts +1 -1
- package/lib/resources/order_validation_rules.js +4 -4
- package/lib/resources/orders.cjs +5 -5
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +4 -4
- package/lib/resources/organizations.cjs +5 -5
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +4 -4
- package/lib/resources/packages.cjs +5 -5
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +4 -4
- package/lib/resources/parcel_line_items.cjs +5 -5
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcel_line_items.js +4 -4
- package/lib/resources/parcels.cjs +5 -5
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +4 -4
- package/lib/resources/payment_gateways.cjs +5 -5
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +4 -4
- package/lib/resources/payment_methods.cjs +5 -5
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +4 -4
- package/lib/resources/payment_options.cjs +5 -5
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +4 -4
- package/lib/resources/paypal_gateways.cjs +5 -5
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +4 -4
- package/lib/resources/paypal_payments.cjs +5 -5
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +4 -4
- package/lib/resources/percentage_discount_promotions.cjs +5 -5
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +4 -4
- package/lib/resources/pickups.cjs +5 -5
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +4 -4
- package/lib/resources/price_frequency_tiers.cjs +5 -5
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.js +4 -4
- package/lib/resources/price_list_schedulers.cjs +5 -5
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.js +4 -4
- package/lib/resources/price_lists.cjs +5 -5
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +4 -4
- package/lib/resources/price_tiers.cjs +5 -5
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +4 -4
- package/lib/resources/price_volume_tiers.cjs +5 -5
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.js +4 -4
- package/lib/resources/prices.cjs +5 -5
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +4 -4
- package/lib/resources/promotion_rules.cjs +5 -5
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +4 -4
- package/lib/resources/promotions.cjs +5 -5
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +4 -4
- package/lib/resources/recurring_order_copies.cjs +5 -5
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/recurring_order_copies.js +4 -4
- package/lib/resources/refunds.cjs +5 -5
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +4 -4
- package/lib/resources/reserved_stocks.cjs +5 -5
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +4 -4
- package/lib/resources/resource_errors.cjs +5 -5
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +4 -4
- package/lib/resources/return_line_items.cjs +5 -5
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/return_line_items.js +4 -4
- package/lib/resources/returns.cjs +5 -5
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +4 -4
- package/lib/resources/satispay_gateways.cjs +5 -5
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +4 -4
- package/lib/resources/satispay_payments.cjs +5 -5
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +4 -4
- package/lib/resources/shipment_line_items.cjs +5 -5
- package/lib/resources/shipment_line_items.d.cts +2 -2
- package/lib/resources/shipment_line_items.d.ts +1 -1
- package/lib/resources/shipment_line_items.js +4 -4
- package/lib/resources/shipments.cjs +5 -5
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +4 -4
- package/lib/resources/shipping_categories.cjs +5 -5
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +4 -4
- package/lib/resources/shipping_method_tiers.cjs +5 -5
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.js +4 -4
- package/lib/resources/shipping_methods.cjs +5 -5
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +4 -4
- package/lib/resources/shipping_weight_tiers.cjs +5 -5
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.js +4 -4
- package/lib/resources/shipping_zones.cjs +5 -5
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +4 -4
- package/lib/resources/sku_list_items.cjs +5 -5
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_items.js +4 -4
- package/lib/resources/sku_list_promotion_rules.cjs +5 -5
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.js +4 -4
- package/lib/resources/sku_lists.cjs +5 -5
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +4 -4
- package/lib/resources/sku_options.cjs +5 -5
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +4 -4
- package/lib/resources/skus.cjs +5 -5
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +4 -4
- package/lib/resources/stock_items.cjs +5 -5
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +4 -4
- package/lib/resources/stock_line_items.cjs +5 -5
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_line_items.js +4 -4
- package/lib/resources/stock_locations.cjs +5 -5
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +4 -4
- package/lib/resources/stock_reservations.cjs +5 -5
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +4 -4
- package/lib/resources/stock_transfers.cjs +5 -5
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +4 -4
- package/lib/resources/stores.cjs +5 -5
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +4 -4
- package/lib/resources/stripe_gateways.cjs +5 -5
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +4 -4
- package/lib/resources/stripe_payments.cjs +5 -5
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +4 -4
- package/lib/resources/stripe_tax_accounts.cjs +5 -5
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.js +4 -4
- package/lib/resources/subscription_models.cjs +5 -5
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +4 -4
- package/lib/resources/tags.cjs +5 -5
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +4 -4
- package/lib/resources/talon_one_accounts.cjs +5 -5
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +4 -4
- package/lib/resources/tax_calculators.cjs +5 -5
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +4 -4
- package/lib/resources/tax_categories.cjs +5 -5
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +4 -4
- package/lib/resources/tax_rules.cjs +5 -5
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +4 -4
- package/lib/resources/taxjar_accounts.cjs +5 -5
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +4 -4
- package/lib/resources/transactions.cjs +5 -5
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +4 -4
- package/lib/resources/vertex_accounts.cjs +5 -5
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +4 -4
- package/lib/resources/voids.cjs +5 -5
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +4 -4
- package/lib/resources/webhooks.cjs +5 -5
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +4 -4
- package/lib/resources/wire_transfers.cjs +5 -5
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +4 -4
- package/lib/single-client.cjs +279 -279
- package/lib/single-client.cjs.map +1 -1
- package/lib/single-client.d.cts +1 -1
- package/lib/single-client.d.ts +1 -1
- package/lib/single-client.js +140 -140
- package/lib/single-client.js.map +1 -1
- package/lib/static.cjs +6 -6
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +5 -5
- package/lib/version.cjs +4 -4
- package/lib/version.js +1 -1
- package/package.json +10 -12
- package/lib/api-B1BMXFo6.d.cts +0 -19348
- package/lib/api-B1BMXFo6.d.ts +0 -19348
- package/lib/chunk-22QEVU7O.js +0 -118
- package/lib/chunk-22QEVU7O.js.map +0 -1
- package/lib/chunk-23N7ZNJN.cjs +0 -85
- package/lib/chunk-23N7ZNJN.cjs.map +0 -1
- package/lib/chunk-24FKVY4W.js +0 -53
- package/lib/chunk-24FKVY4W.js.map +0 -1
- package/lib/chunk-27C4F3SM.cjs +0 -91
- package/lib/chunk-27C4F3SM.cjs.map +0 -1
- package/lib/chunk-2BDFFEBL.js +0 -168
- package/lib/chunk-2BDFFEBL.js.map +0 -1
- package/lib/chunk-2DLE4OHU.js +0 -91
- package/lib/chunk-2DLE4OHU.js.map +0 -1
- package/lib/chunk-2EFMY5ID.js +0 -60
- package/lib/chunk-2EFMY5ID.js.map +0 -1
- package/lib/chunk-2GWJ3F3V.js +0 -177
- package/lib/chunk-2GWJ3F3V.js.map +0 -1
- package/lib/chunk-2JGAWCSO.js +0 -68
- package/lib/chunk-2JGAWCSO.js.map +0 -1
- package/lib/chunk-2P72JFW6.js +0 -68
- package/lib/chunk-2P72JFW6.js.map +0 -1
- package/lib/chunk-2P7JGV3T.cjs +0 -70
- package/lib/chunk-2P7JGV3T.cjs.map +0 -1
- package/lib/chunk-2R7IRINK.js +0 -79
- package/lib/chunk-2R7IRINK.js.map +0 -1
- package/lib/chunk-3GCSAK5R.cjs +0 -77
- package/lib/chunk-3GCSAK5R.cjs.map +0 -1
- package/lib/chunk-3OJL5XNH.js +0 -77
- package/lib/chunk-3OJL5XNH.js.map +0 -1
- package/lib/chunk-3TT3ZNWR.cjs +0 -71
- package/lib/chunk-3TT3ZNWR.cjs.map +0 -1
- package/lib/chunk-3Y3P26RJ.js +0 -86
- package/lib/chunk-3Y3P26RJ.js.map +0 -1
- package/lib/chunk-43XLD2HN.cjs +0 -70
- package/lib/chunk-43XLD2HN.cjs.map +0 -1
- package/lib/chunk-4RIOLWWG.js +0 -82
- package/lib/chunk-4RIOLWWG.js.map +0 -1
- package/lib/chunk-4SH4UNDF.cjs +0 -98
- package/lib/chunk-4SH4UNDF.cjs.map +0 -1
- package/lib/chunk-4ZIHEYP7.cjs +0 -70
- package/lib/chunk-4ZIHEYP7.cjs.map +0 -1
- package/lib/chunk-57BH3H7I.cjs +0 -79
- package/lib/chunk-57BH3H7I.cjs.map +0 -1
- package/lib/chunk-5AXTTRTZ.cjs +0 -166
- package/lib/chunk-5AXTTRTZ.cjs.map +0 -1
- package/lib/chunk-5BLV7QCQ.js +0 -177
- package/lib/chunk-5BLV7QCQ.js.map +0 -1
- package/lib/chunk-5E7XDFEY.cjs +0 -70
- package/lib/chunk-5E7XDFEY.cjs.map +0 -1
- package/lib/chunk-5GCRDWIT.cjs +0 -53
- package/lib/chunk-5GCRDWIT.cjs.map +0 -1
- package/lib/chunk-5H4QQYLL.cjs +0 -29
- package/lib/chunk-5H4QQYLL.cjs.map +0 -1
- package/lib/chunk-5JC7I6QJ.js +0 -177
- package/lib/chunk-5JC7I6QJ.js.map +0 -1
- package/lib/chunk-5N2UKZQB.cjs +0 -44
- package/lib/chunk-5N2UKZQB.cjs.map +0 -1
- package/lib/chunk-5OBBF2XZ.js +0 -118
- package/lib/chunk-5OBBF2XZ.js.map +0 -1
- package/lib/chunk-5OFBIQYL.js +0 -60
- package/lib/chunk-5OFBIQYL.js.map +0 -1
- package/lib/chunk-5WEDRZPL.cjs +0 -44
- package/lib/chunk-5WEDRZPL.cjs.map +0 -1
- package/lib/chunk-5WTAGYRE.cjs +0 -88
- package/lib/chunk-5WTAGYRE.cjs.map +0 -1
- package/lib/chunk-5YV2MUSC.js +0 -75
- package/lib/chunk-5YV2MUSC.js.map +0 -1
- package/lib/chunk-65VX4PJL.cjs +0 -79
- package/lib/chunk-65VX4PJL.cjs.map +0 -1
- package/lib/chunk-6KP5YH6F.js +0 -68
- package/lib/chunk-6KP5YH6F.js.map +0 -1
- package/lib/chunk-73PDTWDI.js +0 -83
- package/lib/chunk-73PDTWDI.js.map +0 -1
- package/lib/chunk-756AJG23.cjs +0 -61
- package/lib/chunk-756AJG23.cjs.map +0 -1
- package/lib/chunk-7CWPDL7D.cjs +0 -71
- package/lib/chunk-7CWPDL7D.cjs.map +0 -1
- package/lib/chunk-7WOEETZZ.cjs +0 -79
- package/lib/chunk-7WOEETZZ.cjs.map +0 -1
- package/lib/chunk-A3W5ZTHY.js +0 -77
- package/lib/chunk-A3W5ZTHY.js.map +0 -1
- package/lib/chunk-A3XAAY6I.js +0 -123
- package/lib/chunk-A3XAAY6I.js.map +0 -1
- package/lib/chunk-ADQDVME4.js +0 -42
- package/lib/chunk-ADQDVME4.js.map +0 -1
- package/lib/chunk-AFCRSRTJ.js +0 -75
- package/lib/chunk-AFCRSRTJ.js.map +0 -1
- package/lib/chunk-AM3F6VLX.cjs +0 -193
- package/lib/chunk-AM3F6VLX.cjs.map +0 -1
- package/lib/chunk-AVDVPECB.cjs +0 -122
- package/lib/chunk-AVDVPECB.cjs.map +0 -1
- package/lib/chunk-AXGILGEL.js +0 -42
- package/lib/chunk-AXGILGEL.js.map +0 -1
- package/lib/chunk-AZXCR5YI.cjs +0 -79
- package/lib/chunk-AZXCR5YI.cjs.map +0 -1
- package/lib/chunk-B4WLQFDI.cjs +0 -120
- package/lib/chunk-B4WLQFDI.cjs.map +0 -1
- package/lib/chunk-B6WVZLF2.cjs +0 -79
- package/lib/chunk-B6WVZLF2.cjs.map +0 -1
- package/lib/chunk-BALL5SQ4.cjs +0 -131
- package/lib/chunk-BALL5SQ4.cjs.map +0 -1
- package/lib/chunk-BBI33EU4.cjs +0 -102
- package/lib/chunk-BBI33EU4.cjs.map +0 -1
- package/lib/chunk-BHL3OK33.cjs +0 -118
- package/lib/chunk-BHL3OK33.cjs.map +0 -1
- package/lib/chunk-BOM4XWDX.cjs +0 -79
- package/lib/chunk-BOM4XWDX.cjs.map +0 -1
- package/lib/chunk-BROHUUMK.cjs +0 -62
- package/lib/chunk-BROHUUMK.cjs.map +0 -1
- package/lib/chunk-BTWAXIAN.js +0 -86
- package/lib/chunk-BTWAXIAN.js.map +0 -1
- package/lib/chunk-BVP4O5YT.js +0 -12
- package/lib/chunk-BVP4O5YT.js.map +0 -1
- package/lib/chunk-C2HCNUWI.js +0 -86
- package/lib/chunk-C2HCNUWI.js.map +0 -1
- package/lib/chunk-C4LEK74I.cjs +0 -67
- package/lib/chunk-C4LEK74I.cjs.map +0 -1
- package/lib/chunk-C4OIX7FQ.js +0 -65
- package/lib/chunk-C4OIX7FQ.js.map +0 -1
- package/lib/chunk-CAFLLUM3.js +0 -75
- package/lib/chunk-CAFLLUM3.js.map +0 -1
- package/lib/chunk-CBEDD5XV.cjs +0 -179
- package/lib/chunk-CBEDD5XV.cjs.map +0 -1
- package/lib/chunk-CCBZH2BZ.js +0 -177
- package/lib/chunk-CCBZH2BZ.js.map +0 -1
- package/lib/chunk-CEPPOT75.js +0 -59
- package/lib/chunk-CEPPOT75.js.map +0 -1
- package/lib/chunk-CLX2MA3D.cjs +0 -77
- package/lib/chunk-CLX2MA3D.cjs.map +0 -1
- package/lib/chunk-CNFMQUCE.js +0 -68
- package/lib/chunk-CNFMQUCE.js.map +0 -1
- package/lib/chunk-CTXGAWSA.cjs +0 -55
- package/lib/chunk-CTXGAWSA.cjs.map +0 -1
- package/lib/chunk-CWH7I3BL.js +0 -68
- package/lib/chunk-CWH7I3BL.js.map +0 -1
- package/lib/chunk-D3U7JSGR.cjs +0 -60
- package/lib/chunk-D3U7JSGR.cjs.map +0 -1
- package/lib/chunk-D6YW3NMU.cjs +0 -86
- package/lib/chunk-D6YW3NMU.cjs.map +0 -1
- package/lib/chunk-DCFZLBUH.js +0 -60
- package/lib/chunk-DCFZLBUH.js.map +0 -1
- package/lib/chunk-DD42A7RW.cjs +0 -88
- package/lib/chunk-DD42A7RW.cjs.map +0 -1
- package/lib/chunk-DH4MWJA5.js +0 -50
- package/lib/chunk-DH4MWJA5.js.map +0 -1
- package/lib/chunk-DMKFUBUL.cjs +0 -79
- package/lib/chunk-DMKFUBUL.cjs.map +0 -1
- package/lib/chunk-DODU3HR5.js +0 -68
- package/lib/chunk-DODU3HR5.js.map +0 -1
- package/lib/chunk-DPEMEKMH.js +0 -91
- package/lib/chunk-DPEMEKMH.js.map +0 -1
- package/lib/chunk-DQTUZXNM.cjs +0 -60
- package/lib/chunk-DQTUZXNM.cjs.map +0 -1
- package/lib/chunk-DSHKV2DU.cjs +0 -614
- package/lib/chunk-DSHKV2DU.cjs.map +0 -1
- package/lib/chunk-DVR45EYD.js +0 -69
- package/lib/chunk-DVR45EYD.js.map +0 -1
- package/lib/chunk-DYS7XVRH.js +0 -92
- package/lib/chunk-DYS7XVRH.js.map +0 -1
- package/lib/chunk-DZFJO4LF.cjs +0 -816
- package/lib/chunk-DZFJO4LF.cjs.map +0 -1
- package/lib/chunk-DZGXCZVF.cjs +0 -53
- package/lib/chunk-DZGXCZVF.cjs.map +0 -1
- package/lib/chunk-E6AATN7Y.cjs +0 -70
- package/lib/chunk-E6AATN7Y.cjs.map +0 -1
- package/lib/chunk-E7VI2SVA.cjs +0 -93
- package/lib/chunk-E7VI2SVA.cjs.map +0 -1
- package/lib/chunk-EB66RJXX.cjs +0 -90
- package/lib/chunk-EB66RJXX.cjs.map +0 -1
- package/lib/chunk-ECFRQWZF.js +0 -77
- package/lib/chunk-ECFRQWZF.js.map +0 -1
- package/lib/chunk-EDLY6XW6.cjs +0 -61
- package/lib/chunk-EDLY6XW6.cjs.map +0 -1
- package/lib/chunk-EHIRQORB.js +0 -113
- package/lib/chunk-EHIRQORB.js.map +0 -1
- package/lib/chunk-EN5IKIGN.cjs +0 -53
- package/lib/chunk-EN5IKIGN.cjs.map +0 -1
- package/lib/chunk-EORYVMG7.cjs +0 -102
- package/lib/chunk-EORYVMG7.cjs.map +0 -1
- package/lib/chunk-EP353ENQ.js +0 -17
- package/lib/chunk-EP353ENQ.js.map +0 -1
- package/lib/chunk-EPWU4GMQ.cjs +0 -84
- package/lib/chunk-EPWU4GMQ.cjs.map +0 -1
- package/lib/chunk-EQ7F256D.js +0 -180
- package/lib/chunk-EQ7F256D.js.map +0 -1
- package/lib/chunk-EVBJLO37.js +0 -60
- package/lib/chunk-EVBJLO37.js.map +0 -1
- package/lib/chunk-F3S2D4XA.js +0 -44
- package/lib/chunk-F3S2D4XA.js.map +0 -1
- package/lib/chunk-F6G7TTJP.js +0 -42
- package/lib/chunk-F6G7TTJP.js.map +0 -1
- package/lib/chunk-FAONDNFT.js +0 -82
- package/lib/chunk-FAONDNFT.js.map +0 -1
- package/lib/chunk-FGHB6SIM.cjs +0 -122
- package/lib/chunk-FGHB6SIM.cjs.map +0 -1
- package/lib/chunk-FKMQZNBZ.js +0 -51
- package/lib/chunk-FKMQZNBZ.js.map +0 -1
- package/lib/chunk-FSJ5ASJO.js +0 -68
- package/lib/chunk-FSJ5ASJO.js.map +0 -1
- package/lib/chunk-FYRSCQAT.js +0 -100
- package/lib/chunk-FYRSCQAT.js.map +0 -1
- package/lib/chunk-GDFQYZF4.js +0 -94
- package/lib/chunk-GDFQYZF4.js.map +0 -1
- package/lib/chunk-GDLOUNY7.cjs +0 -88
- package/lib/chunk-GDLOUNY7.cjs.map +0 -1
- package/lib/chunk-GDYUR3M5.cjs +0 -91
- package/lib/chunk-GDYUR3M5.cjs.map +0 -1
- package/lib/chunk-GH5VQCDT.cjs +0 -179
- package/lib/chunk-GH5VQCDT.cjs.map +0 -1
- package/lib/chunk-GLQ55MH2.cjs +0 -77
- package/lib/chunk-GLQ55MH2.cjs.map +0 -1
- package/lib/chunk-GXID6I4X.cjs +0 -62
- package/lib/chunk-GXID6I4X.cjs.map +0 -1
- package/lib/chunk-HAVNDSL3.js +0 -68
- package/lib/chunk-HAVNDSL3.js.map +0 -1
- package/lib/chunk-HAWT3AVI.cjs +0 -35
- package/lib/chunk-HAWT3AVI.cjs.map +0 -1
- package/lib/chunk-HAZOMHMN.js +0 -80
- package/lib/chunk-HAZOMHMN.js.map +0 -1
- package/lib/chunk-HBQQF3YE.js +0 -84
- package/lib/chunk-HBQQF3YE.js.map +0 -1
- package/lib/chunk-HBXGDXPS.cjs +0 -198
- package/lib/chunk-HBXGDXPS.cjs.map +0 -1
- package/lib/chunk-HETS5MDK.js +0 -100
- package/lib/chunk-HETS5MDK.js.map +0 -1
- package/lib/chunk-HIFEJ3UD.js +0 -89
- package/lib/chunk-HIFEJ3UD.js.map +0 -1
- package/lib/chunk-HOK4CEEE.js +0 -69
- package/lib/chunk-HOK4CEEE.js.map +0 -1
- package/lib/chunk-HQSUDPLN.js +0 -42
- package/lib/chunk-HQSUDPLN.js.map +0 -1
- package/lib/chunk-HRXF5PYG.js +0 -191
- package/lib/chunk-HRXF5PYG.js.map +0 -1
- package/lib/chunk-HVE6MLV2.cjs +0 -63
- package/lib/chunk-HVE6MLV2.cjs.map +0 -1
- package/lib/chunk-HVMK64MS.cjs +0 -77
- package/lib/chunk-HVMK64MS.cjs.map +0 -1
- package/lib/chunk-I663QZHP.js +0 -60
- package/lib/chunk-I663QZHP.js.map +0 -1
- package/lib/chunk-I6QA5OLE.cjs +0 -98
- package/lib/chunk-I6QA5OLE.cjs.map +0 -1
- package/lib/chunk-IBO6CPGX.cjs +0 -98
- package/lib/chunk-IBO6CPGX.cjs.map +0 -1
- package/lib/chunk-IBVEEQKC.js +0 -89
- package/lib/chunk-IBVEEQKC.js.map +0 -1
- package/lib/chunk-IERQWZMB.cjs +0 -70
- package/lib/chunk-IERQWZMB.cjs.map +0 -1
- package/lib/chunk-ILK4A253.cjs +0 -179
- package/lib/chunk-ILK4A253.cjs.map +0 -1
- package/lib/chunk-INWIFJOG.cjs +0 -94
- package/lib/chunk-INWIFJOG.cjs.map +0 -1
- package/lib/chunk-IOFM4JEN.cjs +0 -44
- package/lib/chunk-IOFM4JEN.cjs.map +0 -1
- package/lib/chunk-IOHDRJKA.cjs +0 -80
- package/lib/chunk-IOHDRJKA.cjs.map +0 -1
- package/lib/chunk-IVP2QAEE.js +0 -77
- package/lib/chunk-IVP2QAEE.js.map +0 -1
- package/lib/chunk-J4CIIZ7K.js +0 -58
- package/lib/chunk-J4CIIZ7K.js.map +0 -1
- package/lib/chunk-J5RQQEG7.js +0 -89
- package/lib/chunk-J5RQQEG7.js.map +0 -1
- package/lib/chunk-JDZMUJEG.js +0 -100
- package/lib/chunk-JDZMUJEG.js.map +0 -1
- package/lib/chunk-JGRWFQIK.cjs +0 -52
- package/lib/chunk-JGRWFQIK.cjs.map +0 -1
- package/lib/chunk-JHQLDVWP.cjs +0 -67
- package/lib/chunk-JHQLDVWP.cjs.map +0 -1
- package/lib/chunk-JIDUW5OL.js +0 -82
- package/lib/chunk-JIDUW5OL.js.map +0 -1
- package/lib/chunk-JR3KXI2J.cjs +0 -117
- package/lib/chunk-JR3KXI2J.cjs.map +0 -1
- package/lib/chunk-JROMCT3R.cjs +0 -88
- package/lib/chunk-JROMCT3R.cjs.map +0 -1
- package/lib/chunk-JTCQISTA.cjs +0 -91
- package/lib/chunk-JTCQISTA.cjs.map +0 -1
- package/lib/chunk-K6R2EBBD.cjs +0 -70
- package/lib/chunk-K6R2EBBD.cjs.map +0 -1
- package/lib/chunk-KAAL3X72.cjs +0 -84
- package/lib/chunk-KAAL3X72.cjs.map +0 -1
- package/lib/chunk-KAFJIMKH.js +0 -88
- package/lib/chunk-KAFJIMKH.js.map +0 -1
- package/lib/chunk-KD6CL5CK.cjs +0 -81
- package/lib/chunk-KD6CL5CK.cjs.map +0 -1
- package/lib/chunk-KGDYXOHY.js +0 -51
- package/lib/chunk-KGDYXOHY.js.map +0 -1
- package/lib/chunk-KITEAEYA.js +0 -96
- package/lib/chunk-KITEAEYA.js.map +0 -1
- package/lib/chunk-KLQVXFFS.cjs +0 -179
- package/lib/chunk-KLQVXFFS.cjs.map +0 -1
- package/lib/chunk-KNYGM6CD.cjs +0 -79
- package/lib/chunk-KNYGM6CD.cjs.map +0 -1
- package/lib/chunk-L2CAYREK.js +0 -68
- package/lib/chunk-L2CAYREK.js.map +0 -1
- package/lib/chunk-L3Q2TFM3.js +0 -191
- package/lib/chunk-L3Q2TFM3.js.map +0 -1
- package/lib/chunk-L6UNI64M.cjs +0 -91
- package/lib/chunk-L6UNI64M.cjs.map +0 -1
- package/lib/chunk-LCAZRGON.js +0 -116
- package/lib/chunk-LCAZRGON.js.map +0 -1
- package/lib/chunk-LDE7CC7L.js +0 -196
- package/lib/chunk-LDE7CC7L.js.map +0 -1
- package/lib/chunk-LFCHI43P.cjs +0 -46
- package/lib/chunk-LFCHI43P.cjs.map +0 -1
- package/lib/chunk-LIBKAWDY.cjs +0 -712
- package/lib/chunk-LIBKAWDY.cjs.map +0 -1
- package/lib/chunk-LKDWO346.js +0 -68
- package/lib/chunk-LKDWO346.js.map +0 -1
- package/lib/chunk-LLYSQ5JX.js +0 -60
- package/lib/chunk-LLYSQ5JX.js.map +0 -1
- package/lib/chunk-LP4HCCSP.js +0 -132
- package/lib/chunk-LP4HCCSP.js.map +0 -1
- package/lib/chunk-LVZUJ6IN.js +0 -120
- package/lib/chunk-LVZUJ6IN.js.map +0 -1
- package/lib/chunk-M2TFEBGP.cjs +0 -75
- package/lib/chunk-M2TFEBGP.cjs.map +0 -1
- package/lib/chunk-MITMRRX2.cjs +0 -19
- package/lib/chunk-MITMRRX2.cjs.map +0 -1
- package/lib/chunk-MMF27PU7.js +0 -612
- package/lib/chunk-MMF27PU7.js.map +0 -1
- package/lib/chunk-MRVEUGPI.cjs +0 -52
- package/lib/chunk-MRVEUGPI.cjs.map +0 -1
- package/lib/chunk-MUBD6YPJ.cjs +0 -70
- package/lib/chunk-MUBD6YPJ.cjs.map +0 -1
- package/lib/chunk-N5FS2DVM.js +0 -75
- package/lib/chunk-N5FS2DVM.js.map +0 -1
- package/lib/chunk-N6HG6W3R.js +0 -92
- package/lib/chunk-N6HG6W3R.js.map +0 -1
- package/lib/chunk-NBXYK3NQ.js +0 -164
- package/lib/chunk-NBXYK3NQ.js.map +0 -1
- package/lib/chunk-NDP7Z7DS.cjs +0 -205
- package/lib/chunk-NDP7Z7DS.cjs.map +0 -1
- package/lib/chunk-NGNKJ6WL.js +0 -96
- package/lib/chunk-NGNKJ6WL.js.map +0 -1
- package/lib/chunk-NIRFJABJ.js +0 -51
- package/lib/chunk-NIRFJABJ.js.map +0 -1
- package/lib/chunk-NJ6UVTYG.cjs +0 -61
- package/lib/chunk-NJ6UVTYG.cjs.map +0 -1
- package/lib/chunk-NMXOO64W.cjs +0 -182
- package/lib/chunk-NMXOO64W.cjs.map +0 -1
- package/lib/chunk-NOYJYNWI.cjs +0 -38
- package/lib/chunk-NOYJYNWI.cjs.map +0 -1
- package/lib/chunk-NT2DAUSV.cjs +0 -243
- package/lib/chunk-NT2DAUSV.cjs.map +0 -1
- package/lib/chunk-NVAGPUU6.cjs +0 -115
- package/lib/chunk-NVAGPUU6.cjs.map +0 -1
- package/lib/chunk-NX2T5UXY.js +0 -120
- package/lib/chunk-NX2T5UXY.js.map +0 -1
- package/lib/chunk-NYP4VNBV.cjs +0 -91
- package/lib/chunk-NYP4VNBV.cjs.map +0 -1
- package/lib/chunk-NZMCLORF.cjs +0 -70
- package/lib/chunk-NZMCLORF.cjs.map +0 -1
- package/lib/chunk-O26QPADM.js +0 -77
- package/lib/chunk-O26QPADM.js.map +0 -1
- package/lib/chunk-O2OH2BOI.js +0 -82
- package/lib/chunk-O2OH2BOI.js.map +0 -1
- package/lib/chunk-O6DODGY7.js +0 -241
- package/lib/chunk-O6DODGY7.js.map +0 -1
- package/lib/chunk-OCMOWAHV.cjs +0 -80
- package/lib/chunk-OCMOWAHV.cjs.map +0 -1
- package/lib/chunk-OF2GTDJ3.js +0 -50
- package/lib/chunk-OF2GTDJ3.js.map +0 -1
- package/lib/chunk-OGY4DULR.cjs +0 -193
- package/lib/chunk-OGY4DULR.cjs.map +0 -1
- package/lib/chunk-OM2AZYLG.cjs +0 -91
- package/lib/chunk-OM2AZYLG.cjs.map +0 -1
- package/lib/chunk-OONH6WXN.cjs +0 -79
- package/lib/chunk-OONH6WXN.cjs.map +0 -1
- package/lib/chunk-OULDY4YE.cjs +0 -44
- package/lib/chunk-OULDY4YE.cjs.map +0 -1
- package/lib/chunk-OWPG3FNI.cjs +0 -53
- package/lib/chunk-OWPG3FNI.cjs.map +0 -1
- package/lib/chunk-OZIR3YWA.js +0 -86
- package/lib/chunk-OZIR3YWA.js.map +0 -1
- package/lib/chunk-P2JPRBHZ.js +0 -51
- package/lib/chunk-P2JPRBHZ.js.map +0 -1
- package/lib/chunk-P3H7TCQO.cjs +0 -70
- package/lib/chunk-P3H7TCQO.cjs.map +0 -1
- package/lib/chunk-P4IHC45V.js +0 -68
- package/lib/chunk-P4IHC45V.js.map +0 -1
- package/lib/chunk-P7ROLPCU.js +0 -77
- package/lib/chunk-P7ROLPCU.js.map +0 -1
- package/lib/chunk-PCGH6UJQ.js +0 -50
- package/lib/chunk-PCGH6UJQ.js.map +0 -1
- package/lib/chunk-PKE3BBFP.js +0 -68
- package/lib/chunk-PKE3BBFP.js.map +0 -1
- package/lib/chunk-PMERNCSJ.js +0 -203
- package/lib/chunk-PMERNCSJ.js.map +0 -1
- package/lib/chunk-PNTX6XU2.cjs +0 -323
- package/lib/chunk-PNTX6XU2.cjs.map +0 -1
- package/lib/chunk-PQ75J3RB.js +0 -58
- package/lib/chunk-PQ75J3RB.js.map +0 -1
- package/lib/chunk-PSBMKEZE.js +0 -89
- package/lib/chunk-PSBMKEZE.js.map +0 -1
- package/lib/chunk-PWWE7OPX.js +0 -51
- package/lib/chunk-PWWE7OPX.js.map +0 -1
- package/lib/chunk-PZST5ZSQ.cjs +0 -79
- package/lib/chunk-PZST5ZSQ.cjs.map +0 -1
- package/lib/chunk-Q6NZ4ERM.js +0 -808
- package/lib/chunk-Q6NZ4ERM.js.map +0 -1
- package/lib/chunk-Q7HH3WAF.js +0 -89
- package/lib/chunk-Q7HH3WAF.js.map +0 -1
- package/lib/chunk-QC7VOWFK.cjs +0 -70
- package/lib/chunk-QC7VOWFK.cjs.map +0 -1
- package/lib/chunk-QDAZS5P4.js +0 -77
- package/lib/chunk-QDAZS5P4.js.map +0 -1
- package/lib/chunk-QF6NWTGQ.cjs +0 -79
- package/lib/chunk-QF6NWTGQ.cjs.map +0 -1
- package/lib/chunk-QULKMJNT.cjs +0 -16
- package/lib/chunk-QULKMJNT.cjs.map +0 -1
- package/lib/chunk-QUW37EJH.js +0 -36
- package/lib/chunk-QUW37EJH.js.map +0 -1
- package/lib/chunk-QVZAZNT7.js +0 -96
- package/lib/chunk-QVZAZNT7.js.map +0 -1
- package/lib/chunk-R2ZRTQ47.cjs +0 -88
- package/lib/chunk-R2ZRTQ47.cjs.map +0 -1
- package/lib/chunk-R6FQFTXL.cjs +0 -70
- package/lib/chunk-R6FQFTXL.cjs.map +0 -1
- package/lib/chunk-RHP23EX4.cjs +0 -62
- package/lib/chunk-RHP23EX4.cjs.map +0 -1
- package/lib/chunk-RIEJBKV5.cjs +0 -82
- package/lib/chunk-RIEJBKV5.cjs.map +0 -1
- package/lib/chunk-RRKI2DT7.cjs +0 -62
- package/lib/chunk-RRKI2DT7.cjs.map +0 -1
- package/lib/chunk-RSQTDLUZ.js +0 -27
- package/lib/chunk-RSQTDLUZ.js.map +0 -1
- package/lib/chunk-RT734KX6.cjs +0 -179
- package/lib/chunk-RT734KX6.cjs.map +0 -1
- package/lib/chunk-RZB3YT7E.js +0 -86
- package/lib/chunk-RZB3YT7E.js.map +0 -1
- package/lib/chunk-RZZZDMV4.js +0 -77
- package/lib/chunk-RZZZDMV4.js.map +0 -1
- package/lib/chunk-S3NUL3KA.js +0 -68
- package/lib/chunk-S3NUL3KA.js.map +0 -1
- package/lib/chunk-S43GW2P2.js +0 -75
- package/lib/chunk-S43GW2P2.js.map +0 -1
- package/lib/chunk-SC6RW7TX.cjs +0 -193
- package/lib/chunk-SC6RW7TX.cjs.map +0 -1
- package/lib/chunk-SFLFBJYM.js +0 -177
- package/lib/chunk-SFLFBJYM.js.map +0 -1
- package/lib/chunk-SGCLUVCE.js +0 -24
- package/lib/chunk-SGCLUVCE.js.map +0 -1
- package/lib/chunk-SHQ5WPWB.cjs +0 -62
- package/lib/chunk-SHQ5WPWB.cjs.map +0 -1
- package/lib/chunk-SJTDKSSV.cjs +0 -179
- package/lib/chunk-SJTDKSSV.cjs.map +0 -1
- package/lib/chunk-SNVAKY6A.js +0 -79
- package/lib/chunk-SNVAKY6A.js.map +0 -1
- package/lib/chunk-SVNPIPNB.cjs +0 -96
- package/lib/chunk-SVNPIPNB.cjs.map +0 -1
- package/lib/chunk-SWAKRVXF.js +0 -84
- package/lib/chunk-SWAKRVXF.js.map +0 -1
- package/lib/chunk-SXDLEQXQ.cjs +0 -94
- package/lib/chunk-SXDLEQXQ.cjs.map +0 -1
- package/lib/chunk-T2O6ZEDI.js +0 -78
- package/lib/chunk-T2O6ZEDI.js.map +0 -1
- package/lib/chunk-T7KEDNBP.js +0 -96
- package/lib/chunk-T7KEDNBP.js.map +0 -1
- package/lib/chunk-TBKNPEXT.cjs +0 -70
- package/lib/chunk-TBKNPEXT.cjs.map +0 -1
- package/lib/chunk-TBTPGODY.cjs +0 -86
- package/lib/chunk-TBTPGODY.cjs.map +0 -1
- package/lib/chunk-TGUDVMKA.js +0 -124
- package/lib/chunk-TGUDVMKA.js.map +0 -1
- package/lib/chunk-TJMXOSWV.cjs +0 -89
- package/lib/chunk-TJMXOSWV.cjs.map +0 -1
- package/lib/chunk-TXO5TNAN.cjs +0 -70
- package/lib/chunk-TXO5TNAN.cjs.map +0 -1
- package/lib/chunk-U5HAYP73.js +0 -87
- package/lib/chunk-U5HAYP73.js.map +0 -1
- package/lib/chunk-UAHOAAF5.cjs +0 -102
- package/lib/chunk-UAHOAAF5.cjs.map +0 -1
- package/lib/chunk-UC4EBIEP.cjs +0 -40
- package/lib/chunk-UC4EBIEP.cjs.map +0 -1
- package/lib/chunk-UFB5C7RB.js +0 -79
- package/lib/chunk-UFB5C7RB.js.map +0 -1
- package/lib/chunk-UKPP3NJH.js +0 -67
- package/lib/chunk-UKPP3NJH.js.map +0 -1
- package/lib/chunk-USDSZN37.cjs +0 -120
- package/lib/chunk-USDSZN37.cjs.map +0 -1
- package/lib/chunk-USF6ZXAU.js +0 -33
- package/lib/chunk-USF6ZXAU.js.map +0 -1
- package/lib/chunk-UTEWVMUY.js +0 -78
- package/lib/chunk-UTEWVMUY.js.map +0 -1
- package/lib/chunk-UTIVMNMW.js +0 -73
- package/lib/chunk-UTIVMNMW.js.map +0 -1
- package/lib/chunk-VBISYOF4.cjs +0 -77
- package/lib/chunk-VBISYOF4.cjs.map +0 -1
- package/lib/chunk-VEG7LLQB.js +0 -59
- package/lib/chunk-VEG7LLQB.js.map +0 -1
- package/lib/chunk-VNZTHEHI.cjs +0 -52
- package/lib/chunk-VNZTHEHI.cjs.map +0 -1
- package/lib/chunk-VSBNV5XE.js +0 -77
- package/lib/chunk-VSBNV5XE.js.map +0 -1
- package/lib/chunk-VSIPPK7O.cjs +0 -81
- package/lib/chunk-VSIPPK7O.cjs.map +0 -1
- package/lib/chunk-VUET2RHO.js +0 -177
- package/lib/chunk-VUET2RHO.js.map +0 -1
- package/lib/chunk-VUVWOQW3.cjs +0 -170
- package/lib/chunk-VUVWOQW3.cjs.map +0 -1
- package/lib/chunk-VWWMNMVU.js +0 -60
- package/lib/chunk-VWWMNMVU.js.map +0 -1
- package/lib/chunk-VWZTYMTS.js +0 -709
- package/lib/chunk-VWZTYMTS.js.map +0 -1
- package/lib/chunk-W4PGH4JH.js +0 -113
- package/lib/chunk-W4PGH4JH.js.map +0 -1
- package/lib/chunk-W7WL44ZO.cjs +0 -84
- package/lib/chunk-W7WL44ZO.cjs.map +0 -1
- package/lib/chunk-WDPGYKKY.cjs +0 -126
- package/lib/chunk-WDPGYKKY.cjs.map +0 -1
- package/lib/chunk-WNKENBNE.cjs +0 -53
- package/lib/chunk-WNKENBNE.cjs.map +0 -1
- package/lib/chunk-WNM4AOJM.cjs +0 -98
- package/lib/chunk-WNM4AOJM.cjs.map +0 -1
- package/lib/chunk-WXVWQXDZ.js +0 -129
- package/lib/chunk-WXVWQXDZ.js.map +0 -1
- package/lib/chunk-X3KKVQ4B.js +0 -89
- package/lib/chunk-X3KKVQ4B.js.map +0 -1
- package/lib/chunk-XARE43DB.js +0 -191
- package/lib/chunk-XARE43DB.js.map +0 -1
- package/lib/chunk-XIAEDILF.cjs +0 -70
- package/lib/chunk-XIAEDILF.cjs.map +0 -1
- package/lib/chunk-XMDSMUH4.js +0 -65
- package/lib/chunk-XMDSMUH4.js.map +0 -1
- package/lib/chunk-XOMDOKUR.js +0 -77
- package/lib/chunk-XOMDOKUR.js.map +0 -1
- package/lib/chunk-XU2TLA7E.js +0 -59
- package/lib/chunk-XU2TLA7E.js.map +0 -1
- package/lib/chunk-XVJ74AKI.js +0 -321
- package/lib/chunk-XVJ74AKI.js.map +0 -1
- package/lib/chunk-Y5LFT7RG.js +0 -77
- package/lib/chunk-Y5LFT7RG.js.map +0 -1
- package/lib/chunk-YAEFTHO3.cjs +0 -93
- package/lib/chunk-YAEFTHO3.cjs.map +0 -1
- package/lib/chunk-YENWKHWP.cjs +0 -26
- package/lib/chunk-YENWKHWP.cjs.map +0 -1
- package/lib/chunk-YG7QYI34.cjs +0 -134
- package/lib/chunk-YG7QYI34.cjs.map +0 -1
- package/lib/chunk-YJIBX2CK.cjs +0 -81
- package/lib/chunk-YJIBX2CK.cjs.map +0 -1
- package/lib/chunk-YOACNJYE.cjs +0 -79
- package/lib/chunk-YOACNJYE.cjs.map +0 -1
- package/lib/chunk-YSSUMXAB.cjs +0 -62
- package/lib/chunk-YSSUMXAB.cjs.map +0 -1
- package/lib/chunk-YWJTC2WA.cjs +0 -69
- package/lib/chunk-YWJTC2WA.cjs.map +0 -1
- package/lib/chunk-Z2E5OBDM.js +0 -68
- package/lib/chunk-Z2E5OBDM.js.map +0 -1
- package/lib/chunk-ZAFGXVIP.js +0 -61
- package/lib/chunk-ZAFGXVIP.js.map +0 -1
- package/lib/chunk-ZBGZB2ON.cjs +0 -62
- package/lib/chunk-ZBGZB2ON.cjs.map +0 -1
- package/lib/chunk-ZC5CIFZU.js +0 -77
- package/lib/chunk-ZC5CIFZU.js.map +0 -1
- package/lib/chunk-ZEHBZXJ5.cjs +0 -84
- package/lib/chunk-ZEHBZXJ5.cjs.map +0 -1
- package/lib/chunk-ZI6LGD3R.js +0 -38
- package/lib/chunk-ZI6LGD3R.js.map +0 -1
- package/lib/chunk-ZLQH6Q4K.cjs +0 -125
- package/lib/chunk-ZLQH6Q4K.cjs.map +0 -1
- package/lib/chunk-ZPQ775KO.js +0 -68
- package/lib/chunk-ZPQ775KO.js.map +0 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-MGSPPFHY.js';
|
|
2
|
+
|
|
3
|
+
// gen/resources/sku_lists.ts
|
|
4
|
+
var SkuLists = class _SkuLists extends ApiResource {
|
|
5
|
+
static TYPE = "sku_lists";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _SkuLists.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _SkuLists.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _SkuLists.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async customer(skuListId, params, options) {
|
|
16
|
+
const _skuListId = skuListId.id || skuListId;
|
|
17
|
+
return this.resources.fetch(
|
|
18
|
+
{ type: "customers" },
|
|
19
|
+
`sku_lists/${_skuListId}/customer`,
|
|
20
|
+
params,
|
|
21
|
+
options
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
async skus(skuListId, params, options) {
|
|
25
|
+
const _skuListId = skuListId.id || skuListId;
|
|
26
|
+
return this.resources.fetch(
|
|
27
|
+
{ type: "skus" },
|
|
28
|
+
`sku_lists/${_skuListId}/skus`,
|
|
29
|
+
params,
|
|
30
|
+
options
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
async sku_list_items(skuListId, params, options) {
|
|
34
|
+
const _skuListId = skuListId.id || skuListId;
|
|
35
|
+
return this.resources.fetch(
|
|
36
|
+
{ type: "sku_list_items" },
|
|
37
|
+
`sku_lists/${_skuListId}/sku_list_items`,
|
|
38
|
+
params,
|
|
39
|
+
options
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
async bundles(skuListId, params, options) {
|
|
43
|
+
const _skuListId = skuListId.id || skuListId;
|
|
44
|
+
return this.resources.fetch(
|
|
45
|
+
{ type: "bundles" },
|
|
46
|
+
`sku_lists/${_skuListId}/bundles`,
|
|
47
|
+
params,
|
|
48
|
+
options
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
async attachments(skuListId, params, options) {
|
|
52
|
+
const _skuListId = skuListId.id || skuListId;
|
|
53
|
+
return this.resources.fetch(
|
|
54
|
+
{ type: "attachments" },
|
|
55
|
+
`sku_lists/${_skuListId}/attachments`,
|
|
56
|
+
params,
|
|
57
|
+
options
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
async links(skuListId, params, options) {
|
|
61
|
+
const _skuListId = skuListId.id || skuListId;
|
|
62
|
+
return this.resources.fetch(
|
|
63
|
+
{ type: "links" },
|
|
64
|
+
`sku_lists/${_skuListId}/links`,
|
|
65
|
+
params,
|
|
66
|
+
options
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
async event_stores(skuListId, params, options) {
|
|
70
|
+
const _skuListId = skuListId.id || skuListId;
|
|
71
|
+
return this.resources.fetch(
|
|
72
|
+
{ type: "event_stores" },
|
|
73
|
+
`sku_lists/${_skuListId}/event_stores`,
|
|
74
|
+
params,
|
|
75
|
+
options
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
isSkuList(resource) {
|
|
79
|
+
return resource.type && resource.type === _SkuLists.TYPE;
|
|
80
|
+
}
|
|
81
|
+
relationship(id) {
|
|
82
|
+
return super.relationshipOneToOne(id);
|
|
83
|
+
}
|
|
84
|
+
relationshipToMany(...ids) {
|
|
85
|
+
return super.relationshipOneToMany(...ids);
|
|
86
|
+
}
|
|
87
|
+
type() {
|
|
88
|
+
return _SkuLists.TYPE;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
var instance = new SkuLists();
|
|
92
|
+
var sku_lists_default = instance;
|
|
93
|
+
|
|
94
|
+
export { sku_lists_default };
|
|
95
|
+
//# sourceMappingURL=chunk-Z66BOR7R.js.map
|
|
96
|
+
//# sourceMappingURL=chunk-Z66BOR7R.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/sku_lists.ts"],"names":[],"mappings":"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","file":"chunk-Z66BOR7R.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '@runtime/query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\nimport type { Attachment } from './attachments'\nimport type { Bundle } from './bundles'\nimport type { Customer, CustomerType } from './customers'\nimport type { EventStore } from './event_stores'\nimport type { Link } from './links'\nimport type { SkuListItem } from './sku_list_items'\nimport type { Sku } from './skus'\n\ntype SkuListType = 'sku_lists'\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\n\nexport type SkuListSort = Pick<SkuList, 'id' | 'name' | 'slug' | 'manual'> & ResourceSort\n// export type SkuListFilter = Pick<SkuList, 'id' | 'name' | 'slug' | 'description' | 'image_url' | 'manual'> & ResourceFilter\n\n/**\n * The SKU list object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/sku_lists endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/sku_lists/object\n */\ninterface SkuList extends Resource {\n readonly type: SkuListType\n\n /**\n * The SKU list's internal name.\n * @example ```\"Personal list\"```\n */\n name: string\n /**\n * The SKU list's internal slug.\n * @example ```\"personal-list-1\"```\n */\n slug: string\n /**\n * An internal description of the SKU list.\n * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n */\n description?: string | null\n /**\n * The URL of an image that represents the SKU list.\n * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n */\n image_url?: string | null\n /**\n * Indicates if the SKU list is populated manually.\n */\n manual?: boolean | null\n /**\n * The regex that will be evaluated to match the SKU codes, max size is 5000.\n * @example ```\"^(A|B).*$\"```\n */\n sku_code_regex?: string | null\n\n customer?: Customer | null\n skus?: Sku[] | null\n sku_list_items?: SkuListItem[] | null\n bundles?: Bundle[] | null\n attachments?: Attachment[] | null\n links?: Link[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface SkuListCreate extends ResourceCreate {\n /**\n * The SKU list's internal name.\n * @example ```\"Personal list\"```\n */\n name: string\n /**\n * An internal description of the SKU list.\n * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n */\n description?: string | null\n /**\n * The URL of an image that represents the SKU list.\n * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n */\n image_url?: string | null\n /**\n * Indicates if the SKU list is populated manually.\n */\n manual?: boolean | null\n /**\n * The regex that will be evaluated to match the SKU codes, max size is 5000.\n * @example ```\"^(A|B).*$\"```\n */\n sku_code_regex?: string | null\n\n customer?: CustomerRel | null\n}\n\ninterface SkuListUpdate extends ResourceUpdate {\n /**\n * The SKU list's internal name.\n * @example ```\"Personal list\"```\n */\n name?: string | null\n /**\n * An internal description of the SKU list.\n * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n */\n description?: string | null\n /**\n * The URL of an image that represents the SKU list.\n * @example ```\"https://img.yourdomain.com/skus/xYZkjABcde.png\"```\n */\n image_url?: string | null\n /**\n * Indicates if the SKU list is populated manually.\n */\n manual?: boolean | null\n /**\n * The regex that will be evaluated to match the SKU codes, max size is 5000.\n * @example ```\"^(A|B).*$\"```\n */\n sku_code_regex?: string | null\n\n customer?: CustomerRel | null\n}\n\nclass SkuLists extends ApiResource<SkuList> {\n static readonly TYPE: SkuListType = 'sku_lists' as const\n\n async create(\n resource: SkuListCreate,\n params?: QueryParamsRetrieve<SkuList>,\n options?: ResourcesConfig,\n ): Promise<SkuList> {\n return this.resources.create<SkuListCreate, SkuList>({ ...resource, type: SkuLists.TYPE }, params, options)\n }\n\n async update(\n resource: SkuListUpdate,\n params?: QueryParamsRetrieve<SkuList>,\n options?: ResourcesConfig,\n ): Promise<SkuList> {\n return this.resources.update<SkuListUpdate, SkuList>({ ...resource, type: SkuLists.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: SkuLists.TYPE } : id, options)\n }\n\n async customer(\n skuListId: string | SkuList,\n params?: QueryParamsRetrieve<Customer>,\n options?: ResourcesConfig,\n ): Promise<Customer> {\n const _skuListId = (skuListId as SkuList).id || (skuListId as string)\n return this.resources.fetch<Customer>(\n { type: 'customers' },\n `sku_lists/${_skuListId}/customer`,\n params,\n options,\n ) as unknown as Customer\n }\n\n async skus(\n skuListId: string | SkuList,\n params?: QueryParamsList<Sku>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Sku>> {\n const _skuListId = (skuListId as SkuList).id || (skuListId as string)\n return this.resources.fetch<Sku>(\n { type: 'skus' },\n `sku_lists/${_skuListId}/skus`,\n params,\n options,\n ) as unknown as ListResponse<Sku>\n }\n\n async sku_list_items(\n skuListId: string | SkuList,\n params?: QueryParamsList<SkuListItem>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<SkuListItem>> {\n const _skuListId = (skuListId as SkuList).id || (skuListId as string)\n return this.resources.fetch<SkuListItem>(\n { type: 'sku_list_items' },\n `sku_lists/${_skuListId}/sku_list_items`,\n params,\n options,\n ) as unknown as ListResponse<SkuListItem>\n }\n\n async bundles(\n skuListId: string | SkuList,\n params?: QueryParamsList<Bundle>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Bundle>> {\n const _skuListId = (skuListId as SkuList).id || (skuListId as string)\n return this.resources.fetch<Bundle>(\n { type: 'bundles' },\n `sku_lists/${_skuListId}/bundles`,\n params,\n options,\n ) as unknown as ListResponse<Bundle>\n }\n\n async attachments(\n skuListId: string | SkuList,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _skuListId = (skuListId as SkuList).id || (skuListId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `sku_lists/${_skuListId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async links(\n skuListId: string | SkuList,\n params?: QueryParamsList<Link>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Link>> {\n const _skuListId = (skuListId as SkuList).id || (skuListId as string)\n return this.resources.fetch<Link>(\n { type: 'links' },\n `sku_lists/${_skuListId}/links`,\n params,\n options,\n ) as unknown as ListResponse<Link>\n }\n\n async event_stores(\n skuListId: string | SkuList,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _skuListId = (skuListId as SkuList).id || (skuListId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `sku_lists/${_skuListId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isSkuList(resource: any): resource is SkuList {\n return resource.type && resource.type === SkuLists.TYPE\n }\n\n relationship(id: string | ResourceId | null): SkuListRel {\n return super.relationshipOneToOne<SkuListRel>(id)\n }\n\n relationshipToMany(...ids: string[]): SkuListRel[] {\n return super.relationshipOneToMany<SkuListRel>(...ids)\n }\n\n type(): SkuListType {\n return SkuLists.TYPE\n }\n}\n\nconst instance = new SkuLists()\nexport default instance\n\nexport type { SkuList, SkuListCreate, SkuLists, SkuListType, SkuListUpdate }\n"]}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZUYCVSFZ_cjs = require('./chunk-ZUYCVSFZ.cjs');
|
|
4
|
+
|
|
5
|
+
// gen/resources/talon_one_accounts.ts
|
|
6
|
+
var TalonOneAccounts = class _TalonOneAccounts extends chunkZUYCVSFZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "talon_one_accounts";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create(
|
|
10
|
+
{ ...resource, type: _TalonOneAccounts.TYPE },
|
|
11
|
+
params,
|
|
12
|
+
options
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async update(resource, params, options) {
|
|
16
|
+
return this.resources.update(
|
|
17
|
+
{ ...resource, type: _TalonOneAccounts.TYPE },
|
|
18
|
+
params,
|
|
19
|
+
options
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
async delete(id, options) {
|
|
23
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _TalonOneAccounts.TYPE } : id, options);
|
|
24
|
+
}
|
|
25
|
+
async markets(talonOneAccountId, params, options) {
|
|
26
|
+
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
27
|
+
return this.resources.fetch(
|
|
28
|
+
{ type: "markets" },
|
|
29
|
+
`talon_one_accounts/${_talonOneAccountId}/markets`,
|
|
30
|
+
params,
|
|
31
|
+
options
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
async discount_engine_items(talonOneAccountId, params, options) {
|
|
35
|
+
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
36
|
+
return this.resources.fetch(
|
|
37
|
+
{ type: "discount_engine_items" },
|
|
38
|
+
`talon_one_accounts/${_talonOneAccountId}/discount_engine_items`,
|
|
39
|
+
params,
|
|
40
|
+
options
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
async attachments(talonOneAccountId, params, options) {
|
|
44
|
+
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
45
|
+
return this.resources.fetch(
|
|
46
|
+
{ type: "attachments" },
|
|
47
|
+
`talon_one_accounts/${_talonOneAccountId}/attachments`,
|
|
48
|
+
params,
|
|
49
|
+
options
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
async event_stores(talonOneAccountId, params, options) {
|
|
53
|
+
const _talonOneAccountId = talonOneAccountId.id || talonOneAccountId;
|
|
54
|
+
return this.resources.fetch(
|
|
55
|
+
{ type: "event_stores" },
|
|
56
|
+
`talon_one_accounts/${_talonOneAccountId}/event_stores`,
|
|
57
|
+
params,
|
|
58
|
+
options
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
isTalonOneAccount(resource) {
|
|
62
|
+
return resource.type && resource.type === _TalonOneAccounts.TYPE;
|
|
63
|
+
}
|
|
64
|
+
relationship(id) {
|
|
65
|
+
return super.relationshipOneToOne(id);
|
|
66
|
+
}
|
|
67
|
+
relationshipToMany(...ids) {
|
|
68
|
+
return super.relationshipOneToMany(...ids);
|
|
69
|
+
}
|
|
70
|
+
type() {
|
|
71
|
+
return _TalonOneAccounts.TYPE;
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
var instance = new TalonOneAccounts();
|
|
75
|
+
var talon_one_accounts_default = instance;
|
|
76
|
+
|
|
77
|
+
exports.talon_one_accounts_default = talon_one_accounts_default;
|
|
78
|
+
//# sourceMappingURL=chunk-Z6TK6XCK.cjs.map
|
|
79
|
+
//# sourceMappingURL=chunk-Z6TK6XCK.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/talon_one_accounts.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-Z6TK6XCK.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '@runtime/query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\nimport type { Attachment } from './attachments'\nimport type { DiscountEngineItem } from './discount_engine_items'\nimport type { EventStore } from './event_stores'\nimport type { Market } from './markets'\n\ntype TalonOneAccountType = 'talon_one_accounts'\ntype TalonOneAccountRel = ResourceRel & { type: TalonOneAccountType }\n\nexport type TalonOneAccountSort = Pick<TalonOneAccount, 'id' | 'name'> & ResourceSort\n// export type TalonOneAccountFilter = Pick<TalonOneAccount, 'id' | 'name'> & ResourceFilter\n\n/**\n * The Talon.one account object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/talon_one_accounts endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/talon_one_accounts/object\n */\ninterface TalonOneAccount extends Resource {\n readonly type: TalonOneAccountType\n\n /**\n * The discount engine's internal name.\n * @example ```\"Personal discount engine\"```\n */\n name: string\n /**\n * Indicates if the discount engine manages both promotions and gift cards application at once.\n * @example ```true```\n */\n manage_gift_cards?: boolean | null\n /**\n * A hash of additional options passed through to the discount engine's API requests (e.g. Talon.One's `storeIntegrationId`).\n * @example ```{\"storeIntegrationId\":\"STORE-001\"}```\n */\n options?: Record<string, any> | null\n /**\n * The API endpoint as computed by specified baseurl.\n * @example ```\"https://my_baseurl.talon.one/v2\"```\n */\n api_endpoint?: string | null\n\n markets?: Market[] | null\n discount_engine_items?: DiscountEngineItem[] | null\n attachments?: Attachment[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface TalonOneAccountCreate extends ResourceCreate {\n /**\n * The discount engine's internal name.\n * @example ```\"Personal discount engine\"```\n */\n name: string\n /**\n * Indicates if the discount engine manages both promotions and gift cards application at once.\n * @example ```true```\n */\n manage_gift_cards?: boolean | null\n /**\n * A hash of additional options passed through to the discount engine's API requests (e.g. Talon.One's `storeIntegrationId`).\n * @example ```{\"storeIntegrationId\":\"STORE-001\"}```\n */\n options?: Record<string, any> | null\n /**\n * The Talon.One account API key.\n * @example ```\"TALON_ONE_API_KEY\"```\n */\n api_key: string\n /**\n * The Talon.One API baseurl (excluding the talon.one suffix).\n * @example ```\"yourbaseurl\"```\n */\n baseurl: string\n}\n\ninterface TalonOneAccountUpdate extends ResourceUpdate {\n /**\n * The discount engine's internal name.\n * @example ```\"Personal discount engine\"```\n */\n name?: string | null\n /**\n * Indicates if the discount engine manages both promotions and gift cards application at once.\n * @example ```true```\n */\n manage_gift_cards?: boolean | null\n /**\n * A hash of additional options passed through to the discount engine's API requests (e.g. Talon.One's `storeIntegrationId`).\n * @example ```{\"storeIntegrationId\":\"STORE-001\"}```\n */\n options?: Record<string, any> | null\n /**\n * The Talon.One account API key.\n * @example ```\"TALON_ONE_API_KEY\"```\n */\n api_key?: string | null\n /**\n * The Talon.One API baseurl (excluding the talon.one suffix).\n * @example ```\"yourbaseurl\"```\n */\n baseurl?: string | null\n}\n\nclass TalonOneAccounts extends ApiResource<TalonOneAccount> {\n static readonly TYPE: TalonOneAccountType = 'talon_one_accounts' as const\n\n async create(\n resource: TalonOneAccountCreate,\n params?: QueryParamsRetrieve<TalonOneAccount>,\n options?: ResourcesConfig,\n ): Promise<TalonOneAccount> {\n return this.resources.create<TalonOneAccountCreate, TalonOneAccount>(\n { ...resource, type: TalonOneAccounts.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: TalonOneAccountUpdate,\n params?: QueryParamsRetrieve<TalonOneAccount>,\n options?: ResourcesConfig,\n ): Promise<TalonOneAccount> {\n return this.resources.update<TalonOneAccountUpdate, TalonOneAccount>(\n { ...resource, type: TalonOneAccounts.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: TalonOneAccounts.TYPE } : id, options)\n }\n\n async markets(\n talonOneAccountId: string | TalonOneAccount,\n params?: QueryParamsList<Market>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Market>> {\n const _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || (talonOneAccountId as string)\n return this.resources.fetch<Market>(\n { type: 'markets' },\n `talon_one_accounts/${_talonOneAccountId}/markets`,\n params,\n options,\n ) as unknown as ListResponse<Market>\n }\n\n async discount_engine_items(\n talonOneAccountId: string | TalonOneAccount,\n params?: QueryParamsList<DiscountEngineItem>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<DiscountEngineItem>> {\n const _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || (talonOneAccountId as string)\n return this.resources.fetch<DiscountEngineItem>(\n { type: 'discount_engine_items' },\n `talon_one_accounts/${_talonOneAccountId}/discount_engine_items`,\n params,\n options,\n ) as unknown as ListResponse<DiscountEngineItem>\n }\n\n async attachments(\n talonOneAccountId: string | TalonOneAccount,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || (talonOneAccountId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `talon_one_accounts/${_talonOneAccountId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async event_stores(\n talonOneAccountId: string | TalonOneAccount,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _talonOneAccountId = (talonOneAccountId as TalonOneAccount).id || (talonOneAccountId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `talon_one_accounts/${_talonOneAccountId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isTalonOneAccount(resource: any): resource is TalonOneAccount {\n return resource.type && resource.type === TalonOneAccounts.TYPE\n }\n\n relationship(id: string | ResourceId | null): TalonOneAccountRel {\n return super.relationshipOneToOne<TalonOneAccountRel>(id)\n }\n\n relationshipToMany(...ids: string[]): TalonOneAccountRel[] {\n return super.relationshipOneToMany<TalonOneAccountRel>(...ids)\n }\n\n type(): TalonOneAccountType {\n return TalonOneAccounts.TYPE\n }\n}\n\nconst instance = new TalonOneAccounts()\nexport default instance\n\nexport type { TalonOneAccount, TalonOneAccountCreate, TalonOneAccounts, TalonOneAccountType, TalonOneAccountUpdate }\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-MGSPPFHY.js';
|
|
2
|
+
|
|
3
|
+
// gen/resources/attachments.ts
|
|
4
|
+
var Attachments = class _Attachments extends ApiResource {
|
|
5
|
+
static TYPE = "attachments";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _Attachments.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _Attachments.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Attachments.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async event_stores(attachmentId, params, options) {
|
|
16
|
+
const _attachmentId = attachmentId.id || attachmentId;
|
|
17
|
+
return this.resources.fetch(
|
|
18
|
+
{ type: "event_stores" },
|
|
19
|
+
`attachments/${_attachmentId}/event_stores`,
|
|
20
|
+
params,
|
|
21
|
+
options
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
isAttachment(resource) {
|
|
25
|
+
return resource.type && resource.type === _Attachments.TYPE;
|
|
26
|
+
}
|
|
27
|
+
relationship(id) {
|
|
28
|
+
return super.relationshipOneToOne(id);
|
|
29
|
+
}
|
|
30
|
+
relationshipToMany(...ids) {
|
|
31
|
+
return super.relationshipOneToMany(...ids);
|
|
32
|
+
}
|
|
33
|
+
type() {
|
|
34
|
+
return _Attachments.TYPE;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var instance = new Attachments();
|
|
38
|
+
var attachments_default = instance;
|
|
39
|
+
|
|
40
|
+
export { attachments_default };
|
|
41
|
+
//# sourceMappingURL=chunk-ZBJNN6OX.js.map
|
|
42
|
+
//# sourceMappingURL=chunk-ZBJNN6OX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/attachments.ts"],"names":[],"mappings":";;;AA6RA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoB,WAAA,CAAwB;AAAA,EAChD,OAAgB,IAAA,GAAuB,aAAA;AAAA,EAEvC,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACqB;AACrB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrH;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACqB;AACrB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrH;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACnG;AAAA,EAEA,MAAM,YAAA,CACJ,YAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,aAAA,GAAiB,aAA4B,EAAA,IAAO,YAAA;AAC1D,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,eAAe,aAAa,CAAA,aAAA,CAAA;AAAA,MAC5B,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,aAAa,QAAA,EAAuC;AAClD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,YAAA,CAAY,IAAA;AAAA,EACxD;AAAA,EAEA,aAAa,EAAA,EAA+C;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAgC;AACpD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAqC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAEA,IAAA,GAAuB;AACrB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACrB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,mBAAA,GAAQ","file":"chunk-ZBJNN6OX.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '@runtime/query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\nimport type { Bundle, BundleType } from './bundles'\nimport type { CarrierAccount, CarrierAccountType } from './carrier_accounts'\nimport type { CouponRecipient, CouponRecipientType } from './coupon_recipients'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { Customer, CustomerType } from './customers'\nimport type { DeliveryLeadTime, DeliveryLeadTimeType } from './delivery_lead_times'\nimport type { DiscountEngine, DiscountEngineType } from './discount_engines'\nimport type { EventStore } from './event_stores'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { GiftCardRecipient, GiftCardRecipientType } from './gift_card_recipients'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { Market, MarketType } from './markets'\nimport type { Merchant, MerchantType } from './merchants'\nimport type { OrderValidationRule, OrderValidationRuleType } from './order_validation_rules'\nimport type { Order, OrderType } from './orders'\nimport type { Package, PackageType } from './packages'\nimport type { Parcel, ParcelType } from './parcels'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PaymentOption, PaymentOptionType } from './payment_options'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { PriceTier, PriceTierType } from './price_tiers'\nimport type { Price, PriceType } from './prices'\nimport type { Promotion, PromotionType } from './promotions'\nimport type { Return, ReturnType } from './returns'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { ShippingCategory, ShippingCategoryType } from './shipping_categories'\nimport type { ShippingMethodTier, ShippingMethodTierType } from './shipping_method_tiers'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { ShippingZone, ShippingZoneType } from './shipping_zones'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { SkuOption, SkuOptionType } from './sku_options'\nimport type { Sku, SkuType } from './skus'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { StockTransfer, StockTransferType } from './stock_transfers'\nimport type { SubscriptionModel, SubscriptionModelType } from './subscription_models'\nimport type { TaxCalculator, TaxCalculatorType } from './tax_calculators'\nimport type { TaxCategory, TaxCategoryType } from './tax_categories'\nimport type { Transaction, TransactionType } from './transactions'\n\ntype AttachmentType = 'attachments'\ntype AttachmentRel = ResourceRel & { type: AttachmentType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype PromotionRel = ResourceRel & { type: PromotionType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype TransactionRel = ResourceRel & { type: TransactionType }\ntype TaxCalculatorRel = ResourceRel & { type: TaxCalculatorType }\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType }\ntype OrderValidationRuleRel = ResourceRel & { type: OrderValidationRuleType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ReturnRel = ResourceRel & { type: ReturnType }\ntype CarrierAccountRel = ResourceRel & { type: CarrierAccountType }\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype DeliveryLeadTimeRel = ResourceRel & { type: DeliveryLeadTimeType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype GiftCardRecipientRel = ResourceRel & { type: GiftCardRecipientType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\ntype PaymentOptionRel = ResourceRel & { type: PaymentOptionType }\ntype PackageRel = ResourceRel & { type: PackageType }\ntype PriceRel = ResourceRel & { type: PriceType }\ntype PriceTierRel = ResourceRel & { type: PriceTierType }\ntype ShippingMethodTierRel = ResourceRel & { type: ShippingMethodTierType }\ntype ShippingZoneRel = ResourceRel & { type: ShippingZoneType }\n\nexport type AttachmentSort = Pick<Attachment, 'id' | 'name'> & ResourceSort\n// export type AttachmentFilter = Pick<Attachment, 'id' | 'name' | 'description'> & ResourceFilter\n\n/**\n * The Attachment object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/attachments endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/attachments/object\n */\ninterface Attachment extends Resource {\n readonly type: AttachmentType\n\n /**\n * The internal name of the attachment.\n * @example ```\"DDT transport document\"```\n */\n name: string\n /**\n * An internal description of the attachment.\n * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n */\n description?: string | null\n /**\n * The attachment URL.\n * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n */\n url?: string | null\n\n attachable?:\n | Geocoder\n | PriceList\n | PaymentMethod\n | Market\n | CustomerGroup\n | Promotion\n | Order\n | Transaction\n | TaxCalculator\n | TaxCategory\n | Sku\n | ShippingCategory\n | OrderValidationRule\n | Bundle\n | SkuList\n | StockItem\n | StockLocation\n | Return\n | CarrierAccount\n | CouponRecipient\n | Customer\n | DeliveryLeadTime\n | ShippingMethod\n | Shipment\n | DiscountEngine\n | Parcel\n | GiftCardRecipient\n | GiftCard\n | InventoryModel\n | StockTransfer\n | SkuOption\n | Merchant\n | SubscriptionModel\n | PaymentOption\n | Package\n | Price\n | PriceTier\n | ShippingMethodTier\n | ShippingZone\n | null\n event_stores?: EventStore[] | null\n}\n\ninterface AttachmentCreate extends ResourceCreate {\n /**\n * The internal name of the attachment.\n * @example ```\"DDT transport document\"```\n */\n name: string\n /**\n * An internal description of the attachment.\n * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n */\n description?: string | null\n /**\n * The attachment URL.\n * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n */\n url?: string | null\n\n attachable:\n | GeocoderRel\n | PriceListRel\n | PaymentMethodRel\n | MarketRel\n | CustomerGroupRel\n | PromotionRel\n | OrderRel\n | TransactionRel\n | TaxCalculatorRel\n | TaxCategoryRel\n | SkuRel\n | ShippingCategoryRel\n | OrderValidationRuleRel\n | BundleRel\n | SkuListRel\n | StockItemRel\n | StockLocationRel\n | ReturnRel\n | CarrierAccountRel\n | CouponRecipientRel\n | CustomerRel\n | DeliveryLeadTimeRel\n | ShippingMethodRel\n | ShipmentRel\n | DiscountEngineRel\n | ParcelRel\n | GiftCardRecipientRel\n | GiftCardRel\n | InventoryModelRel\n | StockTransferRel\n | SkuOptionRel\n | MerchantRel\n | SubscriptionModelRel\n | PaymentOptionRel\n | PackageRel\n | PriceRel\n | PriceTierRel\n | ShippingMethodTierRel\n | ShippingZoneRel\n}\n\ninterface AttachmentUpdate extends ResourceUpdate {\n /**\n * The internal name of the attachment.\n * @example ```\"DDT transport document\"```\n */\n name?: string | null\n /**\n * An internal description of the attachment.\n * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n */\n description?: string | null\n /**\n * The attachment URL.\n * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n */\n url?: string | null\n\n attachable?:\n | GeocoderRel\n | PriceListRel\n | PaymentMethodRel\n | MarketRel\n | CustomerGroupRel\n | PromotionRel\n | OrderRel\n | TransactionRel\n | TaxCalculatorRel\n | TaxCategoryRel\n | SkuRel\n | ShippingCategoryRel\n | OrderValidationRuleRel\n | BundleRel\n | SkuListRel\n | StockItemRel\n | StockLocationRel\n | ReturnRel\n | CarrierAccountRel\n | CouponRecipientRel\n | CustomerRel\n | DeliveryLeadTimeRel\n | ShippingMethodRel\n | ShipmentRel\n | DiscountEngineRel\n | ParcelRel\n | GiftCardRecipientRel\n | GiftCardRel\n | InventoryModelRel\n | StockTransferRel\n | SkuOptionRel\n | MerchantRel\n | SubscriptionModelRel\n | PaymentOptionRel\n | PackageRel\n | PriceRel\n | PriceTierRel\n | ShippingMethodTierRel\n | ShippingZoneRel\n | null\n}\n\nclass Attachments extends ApiResource<Attachment> {\n static readonly TYPE: AttachmentType = 'attachments' as const\n\n async create(\n resource: AttachmentCreate,\n params?: QueryParamsRetrieve<Attachment>,\n options?: ResourcesConfig,\n ): Promise<Attachment> {\n return this.resources.create<AttachmentCreate, Attachment>({ ...resource, type: Attachments.TYPE }, params, options)\n }\n\n async update(\n resource: AttachmentUpdate,\n params?: QueryParamsRetrieve<Attachment>,\n options?: ResourcesConfig,\n ): Promise<Attachment> {\n return this.resources.update<AttachmentUpdate, Attachment>({ ...resource, type: Attachments.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: Attachments.TYPE } : id, options)\n }\n\n async event_stores(\n attachmentId: string | Attachment,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _attachmentId = (attachmentId as Attachment).id || (attachmentId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `attachments/${_attachmentId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isAttachment(resource: any): resource is Attachment {\n return resource.type && resource.type === Attachments.TYPE\n }\n\n relationship(id: string | ResourceId | null): AttachmentRel {\n return super.relationshipOneToOne<AttachmentRel>(id)\n }\n\n relationshipToMany(...ids: string[]): AttachmentRel[] {\n return super.relationshipOneToMany<AttachmentRel>(...ids)\n }\n\n type(): AttachmentType {\n return Attachments.TYPE\n }\n}\n\nconst instance = new Attachments()\nexport default instance\n\nexport type { Attachment, AttachmentCreate, Attachments, AttachmentType, AttachmentUpdate }\n"]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-MGSPPFHY.js';
|
|
2
|
+
|
|
3
|
+
// gen/resources/paypal_payments.ts
|
|
4
|
+
var PaypalPayments = class _PaypalPayments extends ApiResource {
|
|
5
|
+
static TYPE = "paypal_payments";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create(
|
|
8
|
+
{ ...resource, type: _PaypalPayments.TYPE },
|
|
9
|
+
params,
|
|
10
|
+
options
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
async update(resource, params, options) {
|
|
14
|
+
return this.resources.update(
|
|
15
|
+
{ ...resource, type: _PaypalPayments.TYPE },
|
|
16
|
+
params,
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
async delete(id, options) {
|
|
21
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _PaypalPayments.TYPE } : id, options);
|
|
22
|
+
}
|
|
23
|
+
async order(paypalPaymentId, params, options) {
|
|
24
|
+
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
|
25
|
+
return this.resources.fetch(
|
|
26
|
+
{ type: "orders" },
|
|
27
|
+
`paypal_payments/${_paypalPaymentId}/order`,
|
|
28
|
+
params,
|
|
29
|
+
options
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
async payment_gateway(paypalPaymentId, params, options) {
|
|
33
|
+
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
|
34
|
+
return this.resources.fetch(
|
|
35
|
+
{ type: "payment_gateways" },
|
|
36
|
+
`paypal_payments/${_paypalPaymentId}/payment_gateway`,
|
|
37
|
+
params,
|
|
38
|
+
options
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
async event_stores(paypalPaymentId, params, options) {
|
|
42
|
+
const _paypalPaymentId = paypalPaymentId.id || paypalPaymentId;
|
|
43
|
+
return this.resources.fetch(
|
|
44
|
+
{ type: "event_stores" },
|
|
45
|
+
`paypal_payments/${_paypalPaymentId}/event_stores`,
|
|
46
|
+
params,
|
|
47
|
+
options
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
async _refresh(id, params, options) {
|
|
51
|
+
return this.resources.update(
|
|
52
|
+
{ id: typeof id === "string" ? id : id.id, type: _PaypalPayments.TYPE, _refresh: true },
|
|
53
|
+
params,
|
|
54
|
+
options
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
isPaypalPayment(resource) {
|
|
58
|
+
return resource.type && resource.type === _PaypalPayments.TYPE;
|
|
59
|
+
}
|
|
60
|
+
relationship(id) {
|
|
61
|
+
return super.relationshipOneToOne(id);
|
|
62
|
+
}
|
|
63
|
+
relationshipToMany(...ids) {
|
|
64
|
+
return super.relationshipOneToMany(...ids);
|
|
65
|
+
}
|
|
66
|
+
type() {
|
|
67
|
+
return _PaypalPayments.TYPE;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
var instance = new PaypalPayments();
|
|
71
|
+
var paypal_payments_default = instance;
|
|
72
|
+
|
|
73
|
+
export { paypal_payments_default };
|
|
74
|
+
//# sourceMappingURL=chunk-ZE2JOYWP.js.map
|
|
75
|
+
//# sourceMappingURL=chunk-ZE2JOYWP.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/paypal_payments.ts"],"names":[],"mappings":"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","file":"chunk-ZE2JOYWP.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '@runtime/query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\ntype PaypalPaymentType = 'paypal_payments'\ntype PaypalPaymentRel = ResourceRel & { type: PaypalPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\nexport type PaypalPaymentSort = Pick<PaypalPayment, 'id'> & ResourceSort\n// export type PaypalPaymentFilter = Pick<PaypalPayment, 'id'> & ResourceFilter\n\n/**\n * The Paypal payment object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/paypal_payments endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/paypal_payments/object\n */\ninterface PaypalPayment extends Resource {\n readonly type: PaypalPaymentType\n\n /**\n * The URL where the payer is redirected after they approve the payment.\n * @example ```\"https://yourdomain.com/thankyou\"```\n */\n return_url: string\n /**\n * The URL where the payer is redirected after they cancel the payment.\n * @example ```\"https://yourdomain.com/checkout/payment\"```\n */\n cancel_url: string\n /**\n * A free-form field that you can use to send a note to the payer on PayPal.\n * @example ```\"Thank you for shopping with us!\"```\n */\n note_to_payer?: string | null\n /**\n * The id of the payer that PayPal passes in the return_url.\n * @example ```\"ABCDEFGHG123456\"```\n */\n paypal_payer_id?: string | null\n /**\n * The PayPal payer id (if present).\n * @example ```\"ABCDEFGHG123456\"```\n */\n name?: string | null\n /**\n * The id of the PayPal payment object.\n * @example ```\"1234567890\"```\n */\n paypal_id?: string | null\n /**\n * The PayPal payment status. One of 'created', or 'approved'.\n * @example ```\"created\"```\n */\n status?: 'created' | 'approved' | null\n /**\n * The URL the customer should be redirected to approve the payment.\n * @example ```\"https://www.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1234567890ABCDEFGHG\"```\n */\n approval_url?: string | null\n /**\n * Indicates if the order current amount differs form the one of the created payment intent.\n */\n mismatched_amounts?: boolean | null\n /**\n * Information about the payment instrument used in the transaction.\n * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n */\n payment_instrument?: Record<string, any> | null\n\n order?: Order | null\n payment_gateway?: PaymentGateway | null\n event_stores?: EventStore[] | null\n}\n\ninterface PaypalPaymentCreate extends ResourceCreate {\n /**\n * The URL where the payer is redirected after they approve the payment.\n * @example ```\"https://yourdomain.com/thankyou\"```\n */\n return_url: string\n /**\n * The URL where the payer is redirected after they cancel the payment.\n * @example ```\"https://yourdomain.com/checkout/payment\"```\n */\n cancel_url: string\n /**\n * A free-form field that you can use to send a note to the payer on PayPal.\n * @example ```\"Thank you for shopping with us!\"```\n */\n note_to_payer?: string | null\n\n order: OrderRel\n}\n\ninterface PaypalPaymentUpdate extends ResourceUpdate {\n /**\n * The id of the payer that PayPal passes in the return_url.\n * @example ```\"ABCDEFGHG123456\"```\n */\n paypal_payer_id?: string | null\n /**\n * Send this attribute if you want to refresh the payment's pending transactions and reconcile their status with PayPal.\n * @example ```true```\n */\n _refresh?: boolean | null\n\n order?: OrderRel | null\n}\n\nclass PaypalPayments extends ApiResource<PaypalPayment> {\n static readonly TYPE: PaypalPaymentType = 'paypal_payments' as const\n\n async create(\n resource: PaypalPaymentCreate,\n params?: QueryParamsRetrieve<PaypalPayment>,\n options?: ResourcesConfig,\n ): Promise<PaypalPayment> {\n return this.resources.create<PaypalPaymentCreate, PaypalPayment>(\n { ...resource, type: PaypalPayments.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: PaypalPaymentUpdate,\n params?: QueryParamsRetrieve<PaypalPayment>,\n options?: ResourcesConfig,\n ): Promise<PaypalPayment> {\n return this.resources.update<PaypalPaymentUpdate, PaypalPayment>(\n { ...resource, type: PaypalPayments.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: PaypalPayments.TYPE } : id, options)\n }\n\n async order(\n paypalPaymentId: string | PaypalPayment,\n params?: QueryParamsRetrieve<Order>,\n options?: ResourcesConfig,\n ): Promise<Order> {\n const _paypalPaymentId = (paypalPaymentId as PaypalPayment).id || (paypalPaymentId as string)\n return this.resources.fetch<Order>(\n { type: 'orders' },\n `paypal_payments/${_paypalPaymentId}/order`,\n params,\n options,\n ) as unknown as Order\n }\n\n async payment_gateway(\n paypalPaymentId: string | PaypalPayment,\n params?: QueryParamsRetrieve<PaymentGateway>,\n options?: ResourcesConfig,\n ): Promise<PaymentGateway> {\n const _paypalPaymentId = (paypalPaymentId as PaypalPayment).id || (paypalPaymentId as string)\n return this.resources.fetch<PaymentGateway>(\n { type: 'payment_gateways' },\n `paypal_payments/${_paypalPaymentId}/payment_gateway`,\n params,\n options,\n ) as unknown as PaymentGateway\n }\n\n async event_stores(\n paypalPaymentId: string | PaypalPayment,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _paypalPaymentId = (paypalPaymentId as PaypalPayment).id || (paypalPaymentId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `paypal_payments/${_paypalPaymentId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async _refresh(\n id: string | PaypalPayment,\n params?: QueryParamsRetrieve<PaypalPayment>,\n options?: ResourcesConfig,\n ): Promise<PaypalPayment> {\n return this.resources.update<PaypalPaymentUpdate, PaypalPayment>(\n { id: typeof id === 'string' ? id : id.id, type: PaypalPayments.TYPE, _refresh: true },\n params,\n options,\n )\n }\n\n isPaypalPayment(resource: any): resource is PaypalPayment {\n return resource.type && resource.type === PaypalPayments.TYPE\n }\n\n relationship(id: string | ResourceId | null): PaypalPaymentRel {\n return super.relationshipOneToOne<PaypalPaymentRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PaypalPaymentRel[] {\n return super.relationshipOneToMany<PaypalPaymentRel>(...ids)\n }\n\n type(): PaypalPaymentType {\n return PaypalPayments.TYPE\n }\n}\n\nconst instance = new PaypalPayments()\nexport default instance\n\nexport type { PaypalPayment, PaypalPaymentCreate, PaypalPayments, PaypalPaymentType, PaypalPaymentUpdate }\n"]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZUYCVSFZ_cjs = require('./chunk-ZUYCVSFZ.cjs');
|
|
4
|
+
|
|
5
|
+
// gen/resources/parcels.ts
|
|
6
|
+
var Parcels = class _Parcels extends chunkZUYCVSFZ_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(
|
|
20
|
+
{ type: "shipments" },
|
|
21
|
+
`parcels/${_parcelId}/shipment`,
|
|
22
|
+
params,
|
|
23
|
+
options
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
async package(parcelId, params, options) {
|
|
27
|
+
const _parcelId = parcelId.id || parcelId;
|
|
28
|
+
return this.resources.fetch(
|
|
29
|
+
{ type: "packages" },
|
|
30
|
+
`parcels/${_parcelId}/package`,
|
|
31
|
+
params,
|
|
32
|
+
options
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
async parcel_line_items(parcelId, params, options) {
|
|
36
|
+
const _parcelId = parcelId.id || parcelId;
|
|
37
|
+
return this.resources.fetch(
|
|
38
|
+
{ type: "parcel_line_items" },
|
|
39
|
+
`parcels/${_parcelId}/parcel_line_items`,
|
|
40
|
+
params,
|
|
41
|
+
options
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
async attachments(parcelId, params, options) {
|
|
45
|
+
const _parcelId = parcelId.id || parcelId;
|
|
46
|
+
return this.resources.fetch(
|
|
47
|
+
{ type: "attachments" },
|
|
48
|
+
`parcels/${_parcelId}/attachments`,
|
|
49
|
+
params,
|
|
50
|
+
options
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
async events(parcelId, params, options) {
|
|
54
|
+
const _parcelId = parcelId.id || parcelId;
|
|
55
|
+
return this.resources.fetch(
|
|
56
|
+
{ type: "events" },
|
|
57
|
+
`parcels/${_parcelId}/events`,
|
|
58
|
+
params,
|
|
59
|
+
options
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
async event_stores(parcelId, params, options) {
|
|
63
|
+
const _parcelId = parcelId.id || parcelId;
|
|
64
|
+
return this.resources.fetch(
|
|
65
|
+
{ type: "event_stores" },
|
|
66
|
+
`parcels/${_parcelId}/event_stores`,
|
|
67
|
+
params,
|
|
68
|
+
options
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
isParcel(resource) {
|
|
72
|
+
return resource.type && resource.type === _Parcels.TYPE;
|
|
73
|
+
}
|
|
74
|
+
relationship(id) {
|
|
75
|
+
return super.relationshipOneToOne(id);
|
|
76
|
+
}
|
|
77
|
+
relationshipToMany(...ids) {
|
|
78
|
+
return super.relationshipOneToMany(...ids);
|
|
79
|
+
}
|
|
80
|
+
type() {
|
|
81
|
+
return _Parcels.TYPE;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
var instance = new Parcels();
|
|
85
|
+
var parcels_default = instance;
|
|
86
|
+
|
|
87
|
+
exports.parcels_default = parcels_default;
|
|
88
|
+
//# sourceMappingURL=chunk-ZETZFLTU.cjs.map
|
|
89
|
+
//# sourceMappingURL=chunk-ZETZFLTU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/parcels.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-ZETZFLTU.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '@runtime/query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/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\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\nexport type ParcelSort = Pick<\n Parcel,\n 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'\n> &\n 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/**\n * The Parcel object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/parcels endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/parcels/object\n */\ninterface Parcel extends Resource {\n readonly type: ParcelType\n\n /**\n * Unique identifier for the parcel.\n * @example ```\"#1234/S/001/P/001\"```\n */\n number?: string | null\n /**\n * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```1000```\n */\n weight: number\n /**\n * The unit of weight. One of 'gr', 'oz', or 'lb'.\n * @example ```\"gr\"```\n */\n unit_of_weight: 'gr' | 'oz' | 'lb'\n /**\n * 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 * @example ```\"EEL\"```\n */\n eel_pfc?: string | null\n /**\n * The type of item you are sending.\n * @example ```\"merchandise\"```\n */\n contents_type?: string | null\n /**\n * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n */\n contents_explanation?: string | null\n /**\n * Indicates if the provided information is accurate.\n */\n customs_certify?: boolean | null\n /**\n * 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 * @example ```\"John Doe\"```\n */\n customs_signer?: string | null\n /**\n * 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 * @example ```\"return\"```\n */\n non_delivery_option?: string | null\n /**\n * 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 * @example ```\"none\"```\n */\n restriction_type?: string | null\n /**\n * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n */\n restriction_comments?: string | null\n /**\n * Indicates if the parcel requires customs info to get the shipping rates.\n */\n customs_info_required?: boolean | null\n /**\n * The shipping label url, ready to be downloaded and printed.\n * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n */\n shipping_label_url?: string | null\n /**\n * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n * @example ```\"application/pdf\"```\n */\n shipping_label_file_type?: string | null\n /**\n * The shipping label size.\n * @example ```\"4x7\"```\n */\n shipping_label_size?: string | null\n /**\n * The shipping label resolution.\n * @example ```\"200\"```\n */\n shipping_label_resolution?: string | null\n /**\n * The tracking number associated to this parcel.\n * @example ```\"1Z4V2A000000000000\"```\n */\n tracking_number?: string | null\n /**\n * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n * @example ```\"delivered\"```\n */\n tracking_status?: string | null\n /**\n * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n * @example ```\"arrived_at_destination\"```\n */\n tracking_status_detail?: string | null\n /**\n * Time at which the parcel's tracking status was last updated.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n tracking_status_updated_at?: string | null\n /**\n * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n */\n tracking_details?: Array<Record<string, any>> | null\n /**\n * The weight of the parcel as measured by the carrier in ounces (if available).\n * @example ```\"42.32\"```\n */\n carrier_weight_oz?: string | null\n /**\n * The name of the person who signed for the parcel (if available).\n * @example ```\"John Smith\"```\n */\n signed_by?: string | null\n /**\n * The type of Incoterm (if available).\n * @example ```\"EXW\"```\n */\n incoterm?: string | null\n /**\n * The type of delivery confirmation option upon delivery.\n * @example ```\"SIGNATURE\"```\n */\n delivery_confirmation?: string | null\n\n shipment?: Shipment | null\n package?: Package | null\n parcel_line_items?: ParcelLineItem[] | null\n attachments?: Attachment[] | null\n events?: Event[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface ParcelCreate extends ResourceCreate {\n /**\n * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```1000```\n */\n weight: number\n /**\n * The unit of weight. One of 'gr', 'oz', or 'lb'.\n * @example ```\"gr\"```\n */\n unit_of_weight: 'gr' | 'oz' | 'lb'\n /**\n * 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 * @example ```\"EEL\"```\n */\n eel_pfc?: string | null\n /**\n * The type of item you are sending.\n * @example ```\"merchandise\"```\n */\n contents_type?: string | null\n /**\n * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n */\n contents_explanation?: string | null\n /**\n * Indicates if the provided information is accurate.\n */\n customs_certify?: boolean | null\n /**\n * 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 * @example ```\"John Doe\"```\n */\n customs_signer?: string | null\n /**\n * 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 * @example ```\"return\"```\n */\n non_delivery_option?: string | null\n /**\n * 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 * @example ```\"none\"```\n */\n restriction_type?: string | null\n /**\n * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n */\n restriction_comments?: string | null\n /**\n * Indicates if the parcel requires customs info to get the shipping rates.\n */\n customs_info_required?: boolean | null\n /**\n * The shipping label url, ready to be downloaded and printed.\n * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n */\n shipping_label_url?: string | null\n /**\n * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n * @example ```\"application/pdf\"```\n */\n shipping_label_file_type?: string | null\n /**\n * The shipping label size.\n * @example ```\"4x7\"```\n */\n shipping_label_size?: string | null\n /**\n * The shipping label resolution.\n * @example ```\"200\"```\n */\n shipping_label_resolution?: string | null\n /**\n * The tracking number associated to this parcel.\n * @example ```\"1Z4V2A000000000000\"```\n */\n tracking_number?: string | null\n /**\n * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n * @example ```\"delivered\"```\n */\n tracking_status?: string | null\n /**\n * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n * @example ```\"arrived_at_destination\"```\n */\n tracking_status_detail?: string | null\n /**\n * Time at which the parcel's tracking status was last updated.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n tracking_status_updated_at?: string | null\n /**\n * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n */\n tracking_details?: Array<Record<string, any>> | null\n /**\n * The weight of the parcel as measured by the carrier in ounces (if available).\n * @example ```\"42.32\"```\n */\n carrier_weight_oz?: string | null\n /**\n * The name of the person who signed for the parcel (if available).\n * @example ```\"John Smith\"```\n */\n signed_by?: string | null\n /**\n * The type of Incoterm (if available).\n * @example ```\"EXW\"```\n */\n incoterm?: string | null\n /**\n * The type of delivery confirmation option upon delivery.\n * @example ```\"SIGNATURE\"```\n */\n delivery_confirmation?: string | null\n\n shipment: ShipmentRel\n package: PackageRel\n}\n\ninterface ParcelUpdate extends ResourceUpdate {\n /**\n * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```1000```\n */\n weight?: number | null\n /**\n * The unit of weight. One of 'gr', 'oz', or 'lb'.\n * @example ```\"gr\"```\n */\n unit_of_weight?: 'gr' | 'oz' | 'lb' | null\n /**\n * 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 * @example ```\"EEL\"```\n */\n eel_pfc?: string | null\n /**\n * The type of item you are sending.\n * @example ```\"merchandise\"```\n */\n contents_type?: string | null\n /**\n * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n */\n contents_explanation?: string | null\n /**\n * Indicates if the provided information is accurate.\n */\n customs_certify?: boolean | null\n /**\n * 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 * @example ```\"John Doe\"```\n */\n customs_signer?: string | null\n /**\n * 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 * @example ```\"return\"```\n */\n non_delivery_option?: string | null\n /**\n * 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 * @example ```\"none\"```\n */\n restriction_type?: string | null\n /**\n * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n */\n restriction_comments?: string | null\n /**\n * Indicates if the parcel requires customs info to get the shipping rates.\n */\n customs_info_required?: boolean | null\n /**\n * The shipping label url, ready to be downloaded and printed.\n * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n */\n shipping_label_url?: string | null\n /**\n * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n * @example ```\"application/pdf\"```\n */\n shipping_label_file_type?: string | null\n /**\n * The shipping label size.\n * @example ```\"4x7\"```\n */\n shipping_label_size?: string | null\n /**\n * The shipping label resolution.\n * @example ```\"200\"```\n */\n shipping_label_resolution?: string | null\n /**\n * The tracking number associated to this parcel.\n * @example ```\"1Z4V2A000000000000\"```\n */\n tracking_number?: string | null\n /**\n * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n * @example ```\"delivered\"```\n */\n tracking_status?: string | null\n /**\n * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n * @example ```\"arrived_at_destination\"```\n */\n tracking_status_detail?: string | null\n /**\n * Time at which the parcel's tracking status was last updated.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n tracking_status_updated_at?: string | null\n /**\n * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n */\n tracking_details?: Array<Record<string, any>> | null\n /**\n * The weight of the parcel as measured by the carrier in ounces (if available).\n * @example ```\"42.32\"```\n */\n carrier_weight_oz?: string | null\n /**\n * The name of the person who signed for the parcel (if available).\n * @example ```\"John Smith\"```\n */\n signed_by?: string | null\n /**\n * The type of Incoterm (if available).\n * @example ```\"EXW\"```\n */\n incoterm?: string | null\n /**\n * The type of delivery confirmation option upon delivery.\n * @example ```\"SIGNATURE\"```\n */\n delivery_confirmation?: string | null\n\n shipment?: ShipmentRel | null\n package?: PackageRel | null\n}\n\nclass Parcels extends ApiResource<Parcel> {\n static readonly TYPE: ParcelType = 'parcels' as const\n\n async create(\n resource: ParcelCreate,\n params?: QueryParamsRetrieve<Parcel>,\n options?: ResourcesConfig,\n ): Promise<Parcel> {\n return this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n }\n\n async update(\n resource: ParcelUpdate,\n params?: QueryParamsRetrieve<Parcel>,\n options?: ResourcesConfig,\n ): Promise<Parcel> {\n return this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: Parcels.TYPE } : id, options)\n }\n\n async shipment(\n parcelId: string | Parcel,\n params?: QueryParamsRetrieve<Shipment>,\n options?: ResourcesConfig,\n ): Promise<Shipment> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Shipment>(\n { type: 'shipments' },\n `parcels/${_parcelId}/shipment`,\n params,\n options,\n ) as unknown as Shipment\n }\n\n async package(\n parcelId: string | Parcel,\n params?: QueryParamsRetrieve<Package>,\n options?: ResourcesConfig,\n ): Promise<Package> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Package>(\n { type: 'packages' },\n `parcels/${_parcelId}/package`,\n params,\n options,\n ) as unknown as Package\n }\n\n async parcel_line_items(\n parcelId: string | Parcel,\n params?: QueryParamsList<ParcelLineItem>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<ParcelLineItem>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<ParcelLineItem>(\n { type: 'parcel_line_items' },\n `parcels/${_parcelId}/parcel_line_items`,\n params,\n options,\n ) as unknown as ListResponse<ParcelLineItem>\n }\n\n async attachments(\n parcelId: string | Parcel,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `parcels/${_parcelId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async events(\n parcelId: string | Parcel,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `parcels/${_parcelId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async event_stores(\n parcelId: string | Parcel,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `parcels/${_parcelId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isParcel(resource: any): resource is Parcel {\n return resource.type && resource.type === Parcels.TYPE\n }\n\n relationship(id: string | ResourceId | null): ParcelRel {\n return super.relationshipOneToOne<ParcelRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ParcelRel[] {\n return super.relationshipOneToMany<ParcelRel>(...ids)\n }\n\n type(): ParcelType {\n return Parcels.TYPE\n }\n}\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcel, ParcelCreate, Parcels, ParcelType, ParcelUpdate }\n"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZUYCVSFZ_cjs = require('./chunk-ZUYCVSFZ.cjs');
|
|
4
|
+
|
|
5
|
+
// gen/resources/shipping_categories.ts
|
|
6
|
+
var ShippingCategories = class _ShippingCategories extends chunkZUYCVSFZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "shipping_categories";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create(
|
|
10
|
+
{ ...resource, type: _ShippingCategories.TYPE },
|
|
11
|
+
params,
|
|
12
|
+
options
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async update(resource, params, options) {
|
|
16
|
+
return this.resources.update(
|
|
17
|
+
{ ...resource, type: _ShippingCategories.TYPE },
|
|
18
|
+
params,
|
|
19
|
+
options
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
async delete(id, options) {
|
|
23
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ShippingCategories.TYPE } : id, options);
|
|
24
|
+
}
|
|
25
|
+
async skus(shippingCategoryId, params, options) {
|
|
26
|
+
const _shippingCategoryId = shippingCategoryId.id || shippingCategoryId;
|
|
27
|
+
return this.resources.fetch(
|
|
28
|
+
{ type: "skus" },
|
|
29
|
+
`shipping_categories/${_shippingCategoryId}/skus`,
|
|
30
|
+
params,
|
|
31
|
+
options
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
async attachments(shippingCategoryId, params, options) {
|
|
35
|
+
const _shippingCategoryId = shippingCategoryId.id || shippingCategoryId;
|
|
36
|
+
return this.resources.fetch(
|
|
37
|
+
{ type: "attachments" },
|
|
38
|
+
`shipping_categories/${_shippingCategoryId}/attachments`,
|
|
39
|
+
params,
|
|
40
|
+
options
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
async event_stores(shippingCategoryId, params, options) {
|
|
44
|
+
const _shippingCategoryId = shippingCategoryId.id || shippingCategoryId;
|
|
45
|
+
return this.resources.fetch(
|
|
46
|
+
{ type: "event_stores" },
|
|
47
|
+
`shipping_categories/${_shippingCategoryId}/event_stores`,
|
|
48
|
+
params,
|
|
49
|
+
options
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
isShippingCategory(resource) {
|
|
53
|
+
return resource.type && resource.type === _ShippingCategories.TYPE;
|
|
54
|
+
}
|
|
55
|
+
relationship(id) {
|
|
56
|
+
return super.relationshipOneToOne(id);
|
|
57
|
+
}
|
|
58
|
+
relationshipToMany(...ids) {
|
|
59
|
+
return super.relationshipOneToMany(...ids);
|
|
60
|
+
}
|
|
61
|
+
type() {
|
|
62
|
+
return _ShippingCategories.TYPE;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
var instance = new ShippingCategories();
|
|
66
|
+
var shipping_categories_default = instance;
|
|
67
|
+
|
|
68
|
+
exports.shipping_categories_default = shipping_categories_default;
|
|
69
|
+
//# sourceMappingURL=chunk-ZFAAZWRS.cjs.map
|
|
70
|
+
//# sourceMappingURL=chunk-ZFAAZWRS.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/shipping_categories.ts"],"names":["ApiResource"],"mappings":";;;;;AAwEA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2BA,6BAAA,CAA8B;AAAA,EAC7D,OAAgB,IAAA,GAA6B,qBAAA;AAAA,EAE7C,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAmB,IAAA,EAAK;AAAA,MAC7C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAmB,IAAA,EAAK;AAAA,MAC7C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,mBAAA,CAAmB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC1G;AAAA,EAEA,MAAM,IAAA,CACJ,kBAAA,EACA,MAAA,EACA,OAAA,EAC4B;AAC5B,IAAA,MAAM,mBAAA,GAAuB,mBAAwC,EAAA,IAAO,kBAAA;AAC5E,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,MAAA,EAAO;AAAA,MACf,uBAAuB,mBAAmB,CAAA,KAAA,CAAA;AAAA,MAC1C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,WAAA,CACJ,kBAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,mBAAA,GAAuB,mBAAwC,EAAA,IAAO,kBAAA;AAC5E,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,aAAA,EAAc;AAAA,MACtB,uBAAuB,mBAAmB,CAAA,YAAA,CAAA;AAAA,MAC1C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,kBAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,mBAAA,GAAuB,mBAAwC,EAAA,IAAO,kBAAA;AAC5E,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,uBAAuB,mBAAmB,CAAA,aAAA,CAAA;AAAA,MAC1C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,mBAAmB,QAAA,EAA6C;AAC9D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,mBAAA,CAAmB,IAAA;AAAA,EAC/D;AAAA,EAEA,aAAa,EAAA,EAAqD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAA0C,EAAE,CAAA;AAAA,EAC3D;AAAA,EAEA,sBAAsB,GAAA,EAAsC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA2C,GAAG,GAAG,CAAA;AAAA,EAChE;AAAA,EAEA,IAAA,GAA6B;AAC3B,IAAA,OAAO,mBAAA,CAAmB,IAAA;AAAA,EAC5B;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,kBAAA,EAAmB;AACxC,IAAO,2BAAA,GAAQ","file":"chunk-ZFAAZWRS.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '@runtime/query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '@runtime/resource'\nimport { ApiResource } from '@runtime/resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Sku } from './skus'\n\ntype ShippingCategoryType = 'shipping_categories'\ntype ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType }\n\nexport type ShippingCategorySort = Pick<ShippingCategory, 'id' | 'name' | 'code'> & ResourceSort\n// export type ShippingCategoryFilter = Pick<ShippingCategory, 'id' | 'name' | 'code'> & ResourceFilter\n\n/**\n * The Shipping category object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/shipping_categories endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/shipping_categories/object\n */\ninterface ShippingCategory extends Resource {\n readonly type: ShippingCategoryType\n\n /**\n * The shipping category name.\n * @example ```\"Merchandise\"```\n */\n name: string\n /**\n * A string that you can use to identify the shipping category (must be unique within the environment).\n * @example ```\"europe1\"```\n */\n code?: string | null\n\n skus?: Sku[] | null\n attachments?: Attachment[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface ShippingCategoryCreate extends ResourceCreate {\n /**\n * The shipping category name.\n * @example ```\"Merchandise\"```\n */\n name: string\n /**\n * A string that you can use to identify the shipping category (must be unique within the environment).\n * @example ```\"europe1\"```\n */\n code?: string | null\n}\n\ninterface ShippingCategoryUpdate extends ResourceUpdate {\n /**\n * The shipping category name.\n * @example ```\"Merchandise\"```\n */\n name?: string | null\n /**\n * A string that you can use to identify the shipping category (must be unique within the environment).\n * @example ```\"europe1\"```\n */\n code?: string | null\n}\n\nclass ShippingCategories extends ApiResource<ShippingCategory> {\n static readonly TYPE: ShippingCategoryType = 'shipping_categories' as const\n\n async create(\n resource: ShippingCategoryCreate,\n params?: QueryParamsRetrieve<ShippingCategory>,\n options?: ResourcesConfig,\n ): Promise<ShippingCategory> {\n return this.resources.create<ShippingCategoryCreate, ShippingCategory>(\n { ...resource, type: ShippingCategories.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: ShippingCategoryUpdate,\n params?: QueryParamsRetrieve<ShippingCategory>,\n options?: ResourcesConfig,\n ): Promise<ShippingCategory> {\n return this.resources.update<ShippingCategoryUpdate, ShippingCategory>(\n { ...resource, type: ShippingCategories.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: ShippingCategories.TYPE } : id, options)\n }\n\n async skus(\n shippingCategoryId: string | ShippingCategory,\n params?: QueryParamsList<Sku>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Sku>> {\n const _shippingCategoryId = (shippingCategoryId as ShippingCategory).id || (shippingCategoryId as string)\n return this.resources.fetch<Sku>(\n { type: 'skus' },\n `shipping_categories/${_shippingCategoryId}/skus`,\n params,\n options,\n ) as unknown as ListResponse<Sku>\n }\n\n async attachments(\n shippingCategoryId: string | ShippingCategory,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _shippingCategoryId = (shippingCategoryId as ShippingCategory).id || (shippingCategoryId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `shipping_categories/${_shippingCategoryId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async event_stores(\n shippingCategoryId: string | ShippingCategory,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _shippingCategoryId = (shippingCategoryId as ShippingCategory).id || (shippingCategoryId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `shipping_categories/${_shippingCategoryId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isShippingCategory(resource: any): resource is ShippingCategory {\n return resource.type && resource.type === ShippingCategories.TYPE\n }\n\n relationship(id: string | ResourceId | null): ShippingCategoryRel {\n return super.relationshipOneToOne<ShippingCategoryRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ShippingCategoryRel[] {\n return super.relationshipOneToMany<ShippingCategoryRel>(...ids)\n }\n\n type(): ShippingCategoryType {\n return ShippingCategories.TYPE\n }\n}\n\nconst instance = new ShippingCategories()\nexport default instance\n\nexport type {\n ShippingCategories,\n ShippingCategory,\n ShippingCategoryCreate,\n ShippingCategoryType,\n ShippingCategoryUpdate,\n}\n"]}
|