@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,94 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZUYCVSFZ_cjs = require('./chunk-ZUYCVSFZ.cjs');
|
|
4
|
+
|
|
5
|
+
// gen/resources/coupons.ts
|
|
6
|
+
var Coupons = class _Coupons extends chunkZUYCVSFZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "coupons";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _Coupons.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _Coupons.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Coupons.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async promotion_rule(couponId, params, options) {
|
|
18
|
+
const _couponId = couponId.id || couponId;
|
|
19
|
+
return this.resources.fetch(
|
|
20
|
+
{ type: "coupon_codes_promotion_rules" },
|
|
21
|
+
`coupons/${_couponId}/promotion_rule`,
|
|
22
|
+
params,
|
|
23
|
+
options
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
async coupon_recipient(couponId, params, options) {
|
|
27
|
+
const _couponId = couponId.id || couponId;
|
|
28
|
+
return this.resources.fetch(
|
|
29
|
+
{ type: "coupon_recipients" },
|
|
30
|
+
`coupons/${_couponId}/coupon_recipient`,
|
|
31
|
+
params,
|
|
32
|
+
options
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
async events(couponId, params, options) {
|
|
36
|
+
const _couponId = couponId.id || couponId;
|
|
37
|
+
return this.resources.fetch(
|
|
38
|
+
{ type: "events" },
|
|
39
|
+
`coupons/${_couponId}/events`,
|
|
40
|
+
params,
|
|
41
|
+
options
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
async tags(couponId, params, options) {
|
|
45
|
+
const _couponId = couponId.id || couponId;
|
|
46
|
+
return this.resources.fetch(
|
|
47
|
+
{ type: "tags" },
|
|
48
|
+
`coupons/${_couponId}/tags`,
|
|
49
|
+
params,
|
|
50
|
+
options
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
async event_stores(couponId, params, options) {
|
|
54
|
+
const _couponId = couponId.id || couponId;
|
|
55
|
+
return this.resources.fetch(
|
|
56
|
+
{ type: "event_stores" },
|
|
57
|
+
`coupons/${_couponId}/event_stores`,
|
|
58
|
+
params,
|
|
59
|
+
options
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
63
|
+
return this.resources.update(
|
|
64
|
+
{ id: typeof id === "string" ? id : id.id, type: _Coupons.TYPE, _add_tags: triggerValue },
|
|
65
|
+
params,
|
|
66
|
+
options
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
70
|
+
return this.resources.update(
|
|
71
|
+
{ id: typeof id === "string" ? id : id.id, type: _Coupons.TYPE, _remove_tags: triggerValue },
|
|
72
|
+
params,
|
|
73
|
+
options
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
isCoupon(resource) {
|
|
77
|
+
return resource.type && resource.type === _Coupons.TYPE;
|
|
78
|
+
}
|
|
79
|
+
relationship(id) {
|
|
80
|
+
return super.relationshipOneToOne(id);
|
|
81
|
+
}
|
|
82
|
+
relationshipToMany(...ids) {
|
|
83
|
+
return super.relationshipOneToMany(...ids);
|
|
84
|
+
}
|
|
85
|
+
type() {
|
|
86
|
+
return _Coupons.TYPE;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
var instance = new Coupons();
|
|
90
|
+
var coupons_default = instance;
|
|
91
|
+
|
|
92
|
+
exports.coupons_default = coupons_default;
|
|
93
|
+
//# sourceMappingURL=chunk-TWFPZI6T.cjs.map
|
|
94
|
+
//# sourceMappingURL=chunk-TWFPZI6T.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/coupons.ts"],"names":["ApiResource"],"mappings":";;;;;AAmJA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EACxC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACiB;AACjB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzG;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACiB;AACjB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzG;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,QAAA,CAAQ,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC/F;AAAA,EAEA,MAAM,cAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAO,QAAA;AAC9C,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,8BAAA,EAA+B;AAAA,MACvC,WAAW,SAAS,CAAA,eAAA,CAAA;AAAA,MACpB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,gBAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC0B;AAC1B,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAO,QAAA;AAC9C,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,mBAAA,EAAoB;AAAA,MAC5B,WAAW,SAAS,CAAA,iBAAA,CAAA;AAAA,MACpB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC8B;AAC9B,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAO,QAAA;AAC9C,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,QAAA,EAAS;AAAA,MACjB,WAAW,SAAS,CAAA,OAAA,CAAA;AAAA,MACpB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,IAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC4B;AAC5B,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAO,QAAA;AAC9C,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,MAAA,EAAO;AAAA,MACf,WAAW,SAAS,CAAA,KAAA,CAAA;AAAA,MACpB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAO,QAAA;AAC9C,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,WAAW,SAAS,CAAA,aAAA,CAAA;AAAA,MACpB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,SAAA,CACJ,EAAA,EACA,YAAA,EACA,QACA,OAAA,EACiB;AACjB,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,EAAA,EAAI,OAAO,EAAA,KAAO,QAAA,GAAW,EAAA,GAAK,EAAA,CAAG,EAAA,EAAI,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAM,SAAA,EAAW,YAAA,EAAa;AAAA,MACvF,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,EAAA,EACA,YAAA,EACA,QACA,OAAA,EACiB;AACjB,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,EAAA,EAAI,OAAO,EAAA,KAAO,QAAA,GAAW,EAAA,GAAK,EAAA,CAAG,EAAA,EAAI,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAM,YAAA,EAAc,YAAA,EAAa;AAAA,MAC1F,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,SAAS,QAAA,EAAmC;AAC1C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAEA,aAAa,EAAA,EAA2C;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EACjD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AAChD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACtD;AAAA,EAEA,IAAA,GAAmB;AACjB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EACjB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-TWFPZI6T.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'\n\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { CouponRecipient, CouponRecipientType } from './coupon_recipients'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\n\ntype CouponType = 'coupons'\ntype CouponRel = ResourceRel & { type: CouponType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype TagRel = ResourceRel & { type: TagType }\n\nexport type CouponSort = Pick<\n Coupon,\n 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'\n> &\n ResourceSort\n// export type CouponFilter = Pick<Coupon, 'id' | 'code' | 'customer_single_use' | 'usage_limit' | 'usage_count' | 'expires_at'> & ResourceFilter\n\n/**\n * The Coupon object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/coupons endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/coupons/object\n */\ninterface Coupon extends Resource {\n readonly type: CouponType\n\n /**\n * The coupon code, that uniquely identifies the coupon within the promotion rule.\n * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n */\n code: string\n /**\n * Indicates if the coupon can be used just once per customer.\n */\n customer_single_use?: boolean | null\n /**\n * The total number of times this coupon can be used.\n * @example ```50```\n */\n usage_limit?: number | null\n /**\n * The number of times this coupon has been used.\n * @example ```20```\n */\n usage_count?: number | null\n /**\n * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n * @example ```\"john@example.com\"```\n */\n recipient_email?: string | null\n /**\n * Time at which the coupon will expire.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n expires_at?: string | null\n\n promotion_rule?: CouponCodesPromotionRule | null\n coupon_recipient?: CouponRecipient | null\n events?: Event[] | null\n tags?: Tag[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface CouponCreate extends ResourceCreate {\n /**\n * The coupon code, that uniquely identifies the coupon within the promotion rule.\n * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n */\n code: string\n /**\n * Indicates if the coupon can be used just once per customer.\n */\n customer_single_use?: boolean | null\n /**\n * The total number of times this coupon can be used.\n * @example ```50```\n */\n usage_limit?: number | null\n /**\n * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n * @example ```\"john@example.com\"```\n */\n recipient_email?: string | null\n /**\n * Time at which the coupon will expire.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n expires_at?: string | null\n\n promotion_rule: CouponCodesPromotionRuleRel\n coupon_recipient?: CouponRecipientRel | null\n tags?: TagRel[] | null\n}\n\ninterface CouponUpdate extends ResourceUpdate {\n /**\n * The coupon code, that uniquely identifies the coupon within the promotion rule.\n * @example ```\"04371af2-70b3-48d7-8f4e-316b374224c3\"```\n */\n code?: string | null\n /**\n * Indicates if the coupon can be used just once per customer.\n */\n customer_single_use?: boolean | null\n /**\n * The total number of times this coupon can be used.\n * @example ```50```\n */\n usage_limit?: number | null\n /**\n * The email address of the associated recipient. When creating or updating a coupon, this is a shortcut to find or create the associated recipient by email.\n * @example ```\"john@example.com\"```\n */\n recipient_email?: string | null\n /**\n * Time at which the coupon will expire.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n expires_at?: string | null\n /**\n * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n */\n _add_tags?: string | null\n /**\n * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n */\n _remove_tags?: string | null\n\n promotion_rule?: CouponCodesPromotionRuleRel | null\n coupon_recipient?: CouponRecipientRel | null\n tags?: TagRel[] | null\n}\n\nclass Coupons extends ApiResource<Coupon> {\n static readonly TYPE: CouponType = 'coupons' as const\n\n async create(\n resource: CouponCreate,\n params?: QueryParamsRetrieve<Coupon>,\n options?: ResourcesConfig,\n ): Promise<Coupon> {\n return this.resources.create<CouponCreate, Coupon>({ ...resource, type: Coupons.TYPE }, params, options)\n }\n\n async update(\n resource: CouponUpdate,\n params?: QueryParamsRetrieve<Coupon>,\n options?: ResourcesConfig,\n ): Promise<Coupon> {\n return this.resources.update<CouponUpdate, Coupon>({ ...resource, type: Coupons.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: Coupons.TYPE } : id, options)\n }\n\n async promotion_rule(\n couponId: string | Coupon,\n params?: QueryParamsRetrieve<CouponCodesPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CouponCodesPromotionRule> {\n const _couponId = (couponId as Coupon).id || (couponId as string)\n return this.resources.fetch<CouponCodesPromotionRule>(\n { type: 'coupon_codes_promotion_rules' },\n `coupons/${_couponId}/promotion_rule`,\n params,\n options,\n ) as unknown as CouponCodesPromotionRule\n }\n\n async coupon_recipient(\n couponId: string | Coupon,\n params?: QueryParamsRetrieve<CouponRecipient>,\n options?: ResourcesConfig,\n ): Promise<CouponRecipient> {\n const _couponId = (couponId as Coupon).id || (couponId as string)\n return this.resources.fetch<CouponRecipient>(\n { type: 'coupon_recipients' },\n `coupons/${_couponId}/coupon_recipient`,\n params,\n options,\n ) as unknown as CouponRecipient\n }\n\n async events(\n couponId: string | Coupon,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _couponId = (couponId as Coupon).id || (couponId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `coupons/${_couponId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async tags(\n couponId: string | Coupon,\n params?: QueryParamsList<Tag>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Tag>> {\n const _couponId = (couponId as Coupon).id || (couponId as string)\n return this.resources.fetch<Tag>(\n { type: 'tags' },\n `coupons/${_couponId}/tags`,\n params,\n options,\n ) as unknown as ListResponse<Tag>\n }\n\n async event_stores(\n couponId: string | Coupon,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _couponId = (couponId as Coupon).id || (couponId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `coupons/${_couponId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async _add_tags(\n id: string | Coupon,\n triggerValue: string,\n params?: QueryParamsRetrieve<Coupon>,\n options?: ResourcesConfig,\n ): Promise<Coupon> {\n return this.resources.update<CouponUpdate, Coupon>(\n { id: typeof id === 'string' ? id : id.id, type: Coupons.TYPE, _add_tags: triggerValue },\n params,\n options,\n )\n }\n\n async _remove_tags(\n id: string | Coupon,\n triggerValue: string,\n params?: QueryParamsRetrieve<Coupon>,\n options?: ResourcesConfig,\n ): Promise<Coupon> {\n return this.resources.update<CouponUpdate, Coupon>(\n { id: typeof id === 'string' ? id : id.id, type: Coupons.TYPE, _remove_tags: triggerValue },\n params,\n options,\n )\n }\n\n isCoupon(resource: any): resource is Coupon {\n return resource.type && resource.type === Coupons.TYPE\n }\n\n relationship(id: string | ResourceId | null): CouponRel {\n return super.relationshipOneToOne<CouponRel>(id)\n }\n\n relationshipToMany(...ids: string[]): CouponRel[] {\n return super.relationshipOneToMany<CouponRel>(...ids)\n }\n\n type(): CouponType {\n return Coupons.TYPE\n }\n}\n\nconst instance = new Coupons()\nexport default instance\n\nexport type { Coupon, CouponCreate, Coupons, CouponType, CouponUpdate }\n"]}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZUYCVSFZ_cjs = require('./chunk-ZUYCVSFZ.cjs');
|
|
4
|
+
|
|
5
|
+
// gen/resources/sku_list_promotion_rules.ts
|
|
6
|
+
var SkuListPromotionRules = class _SkuListPromotionRules extends chunkZUYCVSFZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "sku_list_promotion_rules";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create(
|
|
10
|
+
{ ...resource, type: _SkuListPromotionRules.TYPE },
|
|
11
|
+
params,
|
|
12
|
+
options
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async update(resource, params, options) {
|
|
16
|
+
return this.resources.update(
|
|
17
|
+
{ ...resource, type: _SkuListPromotionRules.TYPE },
|
|
18
|
+
params,
|
|
19
|
+
options
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
async delete(id, options) {
|
|
23
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _SkuListPromotionRules.TYPE } : id, options);
|
|
24
|
+
}
|
|
25
|
+
async event_stores(skuListPromotionRuleId, params, options) {
|
|
26
|
+
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
|
27
|
+
return this.resources.fetch(
|
|
28
|
+
{ type: "event_stores" },
|
|
29
|
+
`sku_list_promotion_rules/${_skuListPromotionRuleId}/event_stores`,
|
|
30
|
+
params,
|
|
31
|
+
options
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
async sku_list(skuListPromotionRuleId, params, options) {
|
|
35
|
+
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
|
36
|
+
return this.resources.fetch(
|
|
37
|
+
{ type: "sku_lists" },
|
|
38
|
+
`sku_list_promotion_rules/${_skuListPromotionRuleId}/sku_list`,
|
|
39
|
+
params,
|
|
40
|
+
options
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
async skus(skuListPromotionRuleId, params, options) {
|
|
44
|
+
const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
|
|
45
|
+
return this.resources.fetch(
|
|
46
|
+
{ type: "skus" },
|
|
47
|
+
`sku_list_promotion_rules/${_skuListPromotionRuleId}/skus`,
|
|
48
|
+
params,
|
|
49
|
+
options
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
isSkuListPromotionRule(resource) {
|
|
53
|
+
return resource.type && resource.type === _SkuListPromotionRules.TYPE;
|
|
54
|
+
}
|
|
55
|
+
relationship(id) {
|
|
56
|
+
return super.relationshipOneToOne(id);
|
|
57
|
+
}
|
|
58
|
+
relationshipToMany(...ids) {
|
|
59
|
+
return super.relationshipOneToMany(...ids);
|
|
60
|
+
}
|
|
61
|
+
type() {
|
|
62
|
+
return _SkuListPromotionRules.TYPE;
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
var instance = new SkuListPromotionRules();
|
|
66
|
+
var sku_list_promotion_rules_default = instance;
|
|
67
|
+
|
|
68
|
+
exports.sku_list_promotion_rules_default = sku_list_promotion_rules_default;
|
|
69
|
+
//# sourceMappingURL=chunk-TWOWDWCI.cjs.map
|
|
70
|
+
//# sourceMappingURL=chunk-TWOWDWCI.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/sku_list_promotion_rules.ts"],"names":["ApiResource"],"mappings":";;;;;AA0HA,IAAM,qBAAA,GAAN,MAAM,sBAAA,SAA8BA,6BAAA,CAAkC;AAAA,EACpE,OAAgB,IAAA,GAAiC,0BAAA;AAAA,EAEjD,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAsB,IAAA,EAAK;AAAA,MAChD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAsB,IAAA,EAAK;AAAA,MAChD,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,sBAAA,CAAsB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC7G;AAAA,EAEA,MAAM,YAAA,CACJ,sBAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,uBAAA,GACH,uBAAgD,EAAA,IAAO,sBAAA;AAC1D,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,4BAA4B,uBAAuB,CAAA,aAAA,CAAA;AAAA,MACnD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,QAAA,CACJ,sBAAA,EACA,MAAA,EACA,OAAA,EACkB;AAClB,IAAA,MAAM,uBAAA,GACH,uBAAgD,EAAA,IAAO,sBAAA;AAC1D,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,WAAA,EAAY;AAAA,MACpB,4BAA4B,uBAAuB,CAAA,SAAA,CAAA;AAAA,MACnD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,IAAA,CACJ,sBAAA,EACA,MAAA,EACA,OAAA,EAC4B;AAC5B,IAAA,MAAM,uBAAA,GACH,uBAAgD,EAAA,IAAO,sBAAA;AAC1D,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,MAAA,EAAO;AAAA,MACf,4BAA4B,uBAAuB,CAAA,KAAA,CAAA;AAAA,MACnD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,uBAAuB,QAAA,EAAiD;AACtE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,sBAAA,CAAsB,IAAA;AAAA,EAClE;AAAA,EAEA,aAAa,EAAA,EAAyD;AACpE,IAAA,OAAO,KAAA,CAAM,qBAA8C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA0C;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA+C,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAEA,IAAA,GAAiC;AAC/B,IAAA,OAAO,sBAAA,CAAsB,IAAA;AAAA,EAC/B;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,qBAAA,EAAsB;AAC3C,IAAO,gCAAA,GAAQ","file":"chunk-TWOWDWCI.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 { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\n\ntype SkuListPromotionRuleType = 'sku_list_promotion_rules'\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\n\nexport type SkuListPromotionRuleSort = Pick<SkuListPromotionRule, 'id'> & ResourceSort\n// export type SkuListPromotionRuleFilter = Pick<SkuListPromotionRule, 'id'> & ResourceFilter\n\n/**\n * The SKU list promotion rule object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/sku_list_promotion_rules endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/sku_list_promotion_rules/object\n */\ninterface SkuListPromotionRule extends Resource {\n readonly type: SkuListPromotionRuleType\n\n /**\n * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order.\n * @example ```true```\n */\n all_skus?: boolean | null\n /**\n * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured.\n * @example ```3```\n */\n min_quantity?: number | null\n\n promotion?:\n | PercentageDiscountPromotion\n | FreeShippingPromotion\n | BuyXPayYPromotion\n | FreeGiftPromotion\n | FixedPricePromotion\n | ExternalPromotion\n | FixedAmountPromotion\n | FlexPromotion\n | null\n event_stores?: EventStore[] | null\n sku_list?: SkuList | null\n skus?: Sku[] | null\n}\n\ninterface SkuListPromotionRuleCreate extends ResourceCreate {\n /**\n * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order.\n * @example ```true```\n */\n all_skus?: boolean | null\n /**\n * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured.\n * @example ```3```\n */\n min_quantity?: number | null\n\n promotion:\n | PercentageDiscountPromotionRel\n | FreeShippingPromotionRel\n | BuyXPayYPromotionRel\n | FreeGiftPromotionRel\n | FixedPricePromotionRel\n | ExternalPromotionRel\n | FixedAmountPromotionRel\n | FlexPromotionRel\n sku_list?: SkuListRel | null\n}\n\ninterface SkuListPromotionRuleUpdate extends ResourceUpdate {\n /**\n * Indicates if the rule is activated only when all of the SKUs of the list is also part of the order.\n * @example ```true```\n */\n all_skus?: boolean | null\n /**\n * The min quantity of SKUs of the list that must be also part of the order. If positive, overwrites the 'all_skus' option. When the SKU list is manual, its items quantities are honoured.\n * @example ```3```\n */\n min_quantity?: number | null\n\n promotion?:\n | PercentageDiscountPromotionRel\n | FreeShippingPromotionRel\n | BuyXPayYPromotionRel\n | FreeGiftPromotionRel\n | FixedPricePromotionRel\n | ExternalPromotionRel\n | FixedAmountPromotionRel\n | FlexPromotionRel\n | null\n sku_list?: SkuListRel | null\n}\n\nclass SkuListPromotionRules extends ApiResource<SkuListPromotionRule> {\n static readonly TYPE: SkuListPromotionRuleType = 'sku_list_promotion_rules' as const\n\n async create(\n resource: SkuListPromotionRuleCreate,\n params?: QueryParamsRetrieve<SkuListPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<SkuListPromotionRule> {\n return this.resources.create<SkuListPromotionRuleCreate, SkuListPromotionRule>(\n { ...resource, type: SkuListPromotionRules.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: SkuListPromotionRuleUpdate,\n params?: QueryParamsRetrieve<SkuListPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<SkuListPromotionRule> {\n return this.resources.update<SkuListPromotionRuleUpdate, SkuListPromotionRule>(\n { ...resource, type: SkuListPromotionRules.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: SkuListPromotionRules.TYPE } : id, options)\n }\n\n async event_stores(\n skuListPromotionRuleId: string | SkuListPromotionRule,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _skuListPromotionRuleId =\n (skuListPromotionRuleId as SkuListPromotionRule).id || (skuListPromotionRuleId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `sku_list_promotion_rules/${_skuListPromotionRuleId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async sku_list(\n skuListPromotionRuleId: string | SkuListPromotionRule,\n params?: QueryParamsRetrieve<SkuList>,\n options?: ResourcesConfig,\n ): Promise<SkuList> {\n const _skuListPromotionRuleId =\n (skuListPromotionRuleId as SkuListPromotionRule).id || (skuListPromotionRuleId as string)\n return this.resources.fetch<SkuList>(\n { type: 'sku_lists' },\n `sku_list_promotion_rules/${_skuListPromotionRuleId}/sku_list`,\n params,\n options,\n ) as unknown as SkuList\n }\n\n async skus(\n skuListPromotionRuleId: string | SkuListPromotionRule,\n params?: QueryParamsList<Sku>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Sku>> {\n const _skuListPromotionRuleId =\n (skuListPromotionRuleId as SkuListPromotionRule).id || (skuListPromotionRuleId as string)\n return this.resources.fetch<Sku>(\n { type: 'skus' },\n `sku_list_promotion_rules/${_skuListPromotionRuleId}/skus`,\n params,\n options,\n ) as unknown as ListResponse<Sku>\n }\n\n isSkuListPromotionRule(resource: any): resource is SkuListPromotionRule {\n return resource.type && resource.type === SkuListPromotionRules.TYPE\n }\n\n relationship(id: string | ResourceId | null): SkuListPromotionRuleRel {\n return super.relationshipOneToOne<SkuListPromotionRuleRel>(id)\n }\n\n relationshipToMany(...ids: string[]): SkuListPromotionRuleRel[] {\n return super.relationshipOneToMany<SkuListPromotionRuleRel>(...ids)\n }\n\n type(): SkuListPromotionRuleType {\n return SkuListPromotionRules.TYPE\n }\n}\n\nconst instance = new SkuListPromotionRules()\nexport default instance\n\nexport type {\n SkuListPromotionRule,\n SkuListPromotionRuleCreate,\n SkuListPromotionRules,\n SkuListPromotionRuleType,\n SkuListPromotionRuleUpdate,\n}\n"]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZUYCVSFZ_cjs = require('./chunk-ZUYCVSFZ.cjs');
|
|
4
|
+
|
|
5
|
+
// gen/resources/braintree_gateways.ts
|
|
6
|
+
var BraintreeGateways = class _BraintreeGateways extends chunkZUYCVSFZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "braintree_gateways";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create(
|
|
10
|
+
{ ...resource, type: _BraintreeGateways.TYPE },
|
|
11
|
+
params,
|
|
12
|
+
options
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async update(resource, params, options) {
|
|
16
|
+
return this.resources.update(
|
|
17
|
+
{ ...resource, type: _BraintreeGateways.TYPE },
|
|
18
|
+
params,
|
|
19
|
+
options
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
async delete(id, options) {
|
|
23
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _BraintreeGateways.TYPE } : id, options);
|
|
24
|
+
}
|
|
25
|
+
async payment_methods(braintreeGatewayId, params, options) {
|
|
26
|
+
const _braintreeGatewayId = braintreeGatewayId.id || braintreeGatewayId;
|
|
27
|
+
return this.resources.fetch(
|
|
28
|
+
{ type: "payment_methods" },
|
|
29
|
+
`braintree_gateways/${_braintreeGatewayId}/payment_methods`,
|
|
30
|
+
params,
|
|
31
|
+
options
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
async event_stores(braintreeGatewayId, params, options) {
|
|
35
|
+
const _braintreeGatewayId = braintreeGatewayId.id || braintreeGatewayId;
|
|
36
|
+
return this.resources.fetch(
|
|
37
|
+
{ type: "event_stores" },
|
|
38
|
+
`braintree_gateways/${_braintreeGatewayId}/event_stores`,
|
|
39
|
+
params,
|
|
40
|
+
options
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
async braintree_payments(braintreeGatewayId, params, options) {
|
|
44
|
+
const _braintreeGatewayId = braintreeGatewayId.id || braintreeGatewayId;
|
|
45
|
+
return this.resources.fetch(
|
|
46
|
+
{ type: "braintree_payments" },
|
|
47
|
+
`braintree_gateways/${_braintreeGatewayId}/braintree_payments`,
|
|
48
|
+
params,
|
|
49
|
+
options
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
async _disable(id, params, options) {
|
|
53
|
+
return this.resources.update(
|
|
54
|
+
{ id: typeof id === "string" ? id : id.id, type: _BraintreeGateways.TYPE, _disable: true },
|
|
55
|
+
params,
|
|
56
|
+
options
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
async _enable(id, params, options) {
|
|
60
|
+
return this.resources.update(
|
|
61
|
+
{ id: typeof id === "string" ? id : id.id, type: _BraintreeGateways.TYPE, _enable: true },
|
|
62
|
+
params,
|
|
63
|
+
options
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
async _check(id, params, options) {
|
|
67
|
+
return this.resources.update(
|
|
68
|
+
{ id: typeof id === "string" ? id : id.id, type: _BraintreeGateways.TYPE, _check: true },
|
|
69
|
+
params,
|
|
70
|
+
options
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
isBraintreeGateway(resource) {
|
|
74
|
+
return resource.type && resource.type === _BraintreeGateways.TYPE;
|
|
75
|
+
}
|
|
76
|
+
relationship(id) {
|
|
77
|
+
return super.relationshipOneToOne(id);
|
|
78
|
+
}
|
|
79
|
+
relationshipToMany(...ids) {
|
|
80
|
+
return super.relationshipOneToMany(...ids);
|
|
81
|
+
}
|
|
82
|
+
type() {
|
|
83
|
+
return _BraintreeGateways.TYPE;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var instance = new BraintreeGateways();
|
|
87
|
+
var braintree_gateways_default = instance;
|
|
88
|
+
|
|
89
|
+
exports.braintree_gateways_default = braintree_gateways_default;
|
|
90
|
+
//# sourceMappingURL=chunk-U65XDKVZ.cjs.map
|
|
91
|
+
//# sourceMappingURL=chunk-U65XDKVZ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/braintree_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AA+MA,IAAM,iBAAA,GAAN,MAAM,kBAAA,SAA0BA,6BAAA,CAA8B;AAAA,EAC5D,OAAgB,IAAA,GAA6B,oBAAA;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,mBAAkB,IAAA,EAAK;AAAA,MAC5C,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,mBAAkB,IAAA,EAAK;AAAA,MAC5C,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,kBAAA,CAAkB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACzG;AAAA,EAEA,MAAM,eAAA,CACJ,kBAAA,EACA,MAAA,EACA,OAAA,EACsC;AACtC,IAAA,MAAM,mBAAA,GAAuB,mBAAwC,EAAA,IAAO,kBAAA;AAC5E,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,iBAAA,EAAkB;AAAA,MAC1B,sBAAsB,mBAAmB,CAAA,gBAAA,CAAA;AAAA,MACzC,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,sBAAsB,mBAAmB,CAAA,aAAA,CAAA;AAAA,MACzC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,kBAAA,CACJ,kBAAA,EACA,MAAA,EACA,OAAA,EACyC;AACzC,IAAA,MAAM,mBAAA,GAAuB,mBAAwC,EAAA,IAAO,kBAAA;AAC5E,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,oBAAA,EAAqB;AAAA,MAC7B,sBAAsB,mBAAmB,CAAA,mBAAA,CAAA;AAAA,MACzC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,QAAA,CACJ,EAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,EAAA,EAAI,OAAO,EAAA,KAAO,QAAA,GAAW,EAAA,GAAK,EAAA,CAAG,EAAA,EAAI,IAAA,EAAM,kBAAA,CAAkB,IAAA,EAAM,QAAA,EAAU,IAAA,EAAK;AAAA,MACxF,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,OAAA,CACJ,EAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,EAAA,EAAI,OAAO,EAAA,KAAO,QAAA,GAAW,EAAA,GAAK,EAAA,CAAG,EAAA,EAAI,IAAA,EAAM,kBAAA,CAAkB,IAAA,EAAM,OAAA,EAAS,IAAA,EAAK;AAAA,MACvF,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,EAAA,EACA,MAAA,EACA,OAAA,EAC2B;AAC3B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,EAAA,EAAI,OAAO,EAAA,KAAO,QAAA,GAAW,EAAA,GAAK,EAAA,CAAG,EAAA,EAAI,IAAA,EAAM,kBAAA,CAAkB,IAAA,EAAM,MAAA,EAAQ,IAAA,EAAK;AAAA,MACtF,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,mBAAmB,QAAA,EAA6C;AAC9D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,kBAAA,CAAkB,IAAA;AAAA,EAC9D;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,kBAAA,CAAkB,IAAA;AAAA,EAC3B;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,iBAAA,EAAkB;AACvC,IAAO,0BAAA,GAAQ","file":"chunk-U65XDKVZ.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 { BraintreePayment, BraintreePaymentType } from './braintree_payments'\nimport type { EventStore } from './event_stores'\nimport type { PaymentMethod } from './payment_methods'\n\ntype BraintreeGatewayType = 'braintree_gateways'\ntype BraintreeGatewayRel = ResourceRel & { type: BraintreeGatewayType }\ntype BraintreePaymentRel = ResourceRel & { type: BraintreePaymentType }\n\nexport type BraintreeGatewaySort = Pick<BraintreeGateway, 'id' | 'name' | 'disabled_at'> & ResourceSort\n// export type BraintreeGatewayFilter = Pick<BraintreeGateway, 'id' | 'name' | 'disabled_at'> & ResourceFilter\n\n/**\n * The Braintree gateway object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/braintree_gateways endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/braintree_gateways/object\n */\ninterface BraintreeGateway extends Resource {\n readonly type: BraintreeGatewayType\n\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name: string\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * The payment gateway's API credential keys last digits.\n * @example ```{\"api_key\":\"********BW989\"}```\n */\n credential_keys?: Record<string, any> | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n /**\n * The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars.\n * @example ```\"company*productabc1234\"```\n */\n descriptor_name?: string | null\n /**\n * The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods.\n * @example ```\"3125551212\"```\n */\n descriptor_phone?: string | null\n /**\n * The dynamic descriptor URL.\n * @example ```\"company.com\"```\n */\n descriptor_url?: string | null\n /**\n * The gateway webhook URL, generated automatically.\n * @example ```\"https://core.commercelayer.co/webhook_callbacks/braintree_gateways/xxxxx\"```\n */\n webhook_endpoint_url?: string | null\n\n payment_methods?: PaymentMethod[] | null\n event_stores?: EventStore[] | null\n braintree_payments?: BraintreePayment[] | null\n}\n\ninterface BraintreeGatewayCreate extends ResourceCreate {\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name: string\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n * @example ```true```\n */\n _check?: boolean | null\n /**\n * The gateway merchant account ID.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n merchant_account_id: string\n /**\n * The gateway merchant ID.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n merchant_id: string\n /**\n * The gateway API public key.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n public_key: string\n /**\n * The gateway API private key.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n private_key: string\n /**\n * The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars.\n * @example ```\"company*productabc1234\"```\n */\n descriptor_name?: string | null\n /**\n * The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods.\n * @example ```\"3125551212\"```\n */\n descriptor_phone?: string | null\n /**\n * The dynamic descriptor URL.\n * @example ```\"company.com\"```\n */\n descriptor_url?: string | null\n\n braintree_payments?: BraintreePaymentRel[] | null\n}\n\ninterface BraintreeGatewayUpdate extends ResourceUpdate {\n /**\n * The payment gateway's internal name.\n * @example ```\"US payment gateway\"```\n */\n name?: string | null\n /**\n * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n * @example ```true```\n */\n force_payments?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Send this attribute if you want to check the credentials against the payment gateway's APIs.\n * @example ```true```\n */\n _check?: boolean | null\n /**\n * The gateway merchant account ID.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n merchant_account_id?: string | null\n /**\n * The gateway merchant ID.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n merchant_id?: string | null\n /**\n * The gateway API public key.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n public_key?: string | null\n /**\n * The gateway API private key.\n * @example ```\"xxxx-yyyy-zzzz\"```\n */\n private_key?: string | null\n /**\n * The dynamic descriptor name. Must be composed by business name (3, 7 or 12 chars), an asterisk (*) and the product name (18, 14 or 9 chars), for a total length of 22 chars.\n * @example ```\"company*productabc1234\"```\n */\n descriptor_name?: string | null\n /**\n * The dynamic descriptor phone number. Must be 10-14 characters and can only contain numbers, dashes, parentheses and periods.\n * @example ```\"3125551212\"```\n */\n descriptor_phone?: string | null\n /**\n * The dynamic descriptor URL.\n * @example ```\"company.com\"```\n */\n descriptor_url?: string | null\n\n braintree_payments?: BraintreePaymentRel[] | null\n}\n\nclass BraintreeGateways extends ApiResource<BraintreeGateway> {\n static readonly TYPE: BraintreeGatewayType = 'braintree_gateways' as const\n\n async create(\n resource: BraintreeGatewayCreate,\n params?: QueryParamsRetrieve<BraintreeGateway>,\n options?: ResourcesConfig,\n ): Promise<BraintreeGateway> {\n return this.resources.create<BraintreeGatewayCreate, BraintreeGateway>(\n { ...resource, type: BraintreeGateways.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: BraintreeGatewayUpdate,\n params?: QueryParamsRetrieve<BraintreeGateway>,\n options?: ResourcesConfig,\n ): Promise<BraintreeGateway> {\n return this.resources.update<BraintreeGatewayUpdate, BraintreeGateway>(\n { ...resource, type: BraintreeGateways.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: BraintreeGateways.TYPE } : id, options)\n }\n\n async payment_methods(\n braintreeGatewayId: string | BraintreeGateway,\n params?: QueryParamsList<PaymentMethod>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<PaymentMethod>> {\n const _braintreeGatewayId = (braintreeGatewayId as BraintreeGateway).id || (braintreeGatewayId as string)\n return this.resources.fetch<PaymentMethod>(\n { type: 'payment_methods' },\n `braintree_gateways/${_braintreeGatewayId}/payment_methods`,\n params,\n options,\n ) as unknown as ListResponse<PaymentMethod>\n }\n\n async event_stores(\n braintreeGatewayId: string | BraintreeGateway,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _braintreeGatewayId = (braintreeGatewayId as BraintreeGateway).id || (braintreeGatewayId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `braintree_gateways/${_braintreeGatewayId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async braintree_payments(\n braintreeGatewayId: string | BraintreeGateway,\n params?: QueryParamsList<BraintreePayment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<BraintreePayment>> {\n const _braintreeGatewayId = (braintreeGatewayId as BraintreeGateway).id || (braintreeGatewayId as string)\n return this.resources.fetch<BraintreePayment>(\n { type: 'braintree_payments' },\n `braintree_gateways/${_braintreeGatewayId}/braintree_payments`,\n params,\n options,\n ) as unknown as ListResponse<BraintreePayment>\n }\n\n async _disable(\n id: string | BraintreeGateway,\n params?: QueryParamsRetrieve<BraintreeGateway>,\n options?: ResourcesConfig,\n ): Promise<BraintreeGateway> {\n return this.resources.update<BraintreeGatewayUpdate, BraintreeGateway>(\n { id: typeof id === 'string' ? id : id.id, type: BraintreeGateways.TYPE, _disable: true },\n params,\n options,\n )\n }\n\n async _enable(\n id: string | BraintreeGateway,\n params?: QueryParamsRetrieve<BraintreeGateway>,\n options?: ResourcesConfig,\n ): Promise<BraintreeGateway> {\n return this.resources.update<BraintreeGatewayUpdate, BraintreeGateway>(\n { id: typeof id === 'string' ? id : id.id, type: BraintreeGateways.TYPE, _enable: true },\n params,\n options,\n )\n }\n\n async _check(\n id: string | BraintreeGateway,\n params?: QueryParamsRetrieve<BraintreeGateway>,\n options?: ResourcesConfig,\n ): Promise<BraintreeGateway> {\n return this.resources.update<BraintreeGatewayUpdate, BraintreeGateway>(\n { id: typeof id === 'string' ? id : id.id, type: BraintreeGateways.TYPE, _check: true },\n params,\n options,\n )\n }\n\n isBraintreeGateway(resource: any): resource is BraintreeGateway {\n return resource.type && resource.type === BraintreeGateways.TYPE\n }\n\n relationship(id: string | ResourceId | null): BraintreeGatewayRel {\n return super.relationshipOneToOne<BraintreeGatewayRel>(id)\n }\n\n relationshipToMany(...ids: string[]): BraintreeGatewayRel[] {\n return super.relationshipOneToMany<BraintreeGatewayRel>(...ids)\n }\n\n type(): BraintreeGatewayType {\n return BraintreeGateways.TYPE\n }\n}\n\nconst instance = new BraintreeGateways()\nexport default instance\n\nexport type {\n BraintreeGateway,\n BraintreeGatewayCreate,\n BraintreeGateways,\n BraintreeGatewayType,\n BraintreeGatewayUpdate,\n}\n"]}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-MGSPPFHY.js';
|
|
2
|
+
|
|
3
|
+
// gen/resources/coupon_codes_promotion_rules.ts
|
|
4
|
+
var CouponCodesPromotionRules = class _CouponCodesPromotionRules extends ApiResource {
|
|
5
|
+
static TYPE = "coupon_codes_promotion_rules";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create(
|
|
8
|
+
{ ...resource, type: _CouponCodesPromotionRules.TYPE },
|
|
9
|
+
params,
|
|
10
|
+
options
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
async update(resource, params, options) {
|
|
14
|
+
return this.resources.update(
|
|
15
|
+
{ ...resource, type: _CouponCodesPromotionRules.TYPE },
|
|
16
|
+
params,
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
async delete(id, options) {
|
|
21
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _CouponCodesPromotionRules.TYPE } : id, options);
|
|
22
|
+
}
|
|
23
|
+
async event_stores(couponCodesPromotionRuleId, params, options) {
|
|
24
|
+
const _couponCodesPromotionRuleId = couponCodesPromotionRuleId.id || couponCodesPromotionRuleId;
|
|
25
|
+
return this.resources.fetch(
|
|
26
|
+
{ type: "event_stores" },
|
|
27
|
+
`coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/event_stores`,
|
|
28
|
+
params,
|
|
29
|
+
options
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
async coupons(couponCodesPromotionRuleId, params, options) {
|
|
33
|
+
const _couponCodesPromotionRuleId = couponCodesPromotionRuleId.id || couponCodesPromotionRuleId;
|
|
34
|
+
return this.resources.fetch(
|
|
35
|
+
{ type: "coupons" },
|
|
36
|
+
`coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/coupons`,
|
|
37
|
+
params,
|
|
38
|
+
options
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
isCouponCodesPromotionRule(resource) {
|
|
42
|
+
return resource.type && resource.type === _CouponCodesPromotionRules.TYPE;
|
|
43
|
+
}
|
|
44
|
+
relationship(id) {
|
|
45
|
+
return super.relationshipOneToOne(id);
|
|
46
|
+
}
|
|
47
|
+
relationshipToMany(...ids) {
|
|
48
|
+
return super.relationshipOneToMany(...ids);
|
|
49
|
+
}
|
|
50
|
+
type() {
|
|
51
|
+
return _CouponCodesPromotionRules.TYPE;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
var instance = new CouponCodesPromotionRules();
|
|
55
|
+
var coupon_codes_promotion_rules_default = instance;
|
|
56
|
+
|
|
57
|
+
export { coupon_codes_promotion_rules_default };
|
|
58
|
+
//# sourceMappingURL=chunk-UBLJX7XD.js.map
|
|
59
|
+
//# sourceMappingURL=chunk-UBLJX7XD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/coupon_codes_promotion_rules.ts"],"names":[],"mappings":";;;AAuFA,IAAM,yBAAA,GAAN,MAAM,0BAAA,SAAkC,WAAA,CAAsC;AAAA,EAC5E,OAAgB,IAAA,GAAqC,8BAAA;AAAA,EAErD,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,2BAA0B,IAAA,EAAK;AAAA,MACpD,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,2BAA0B,IAAA,EAAK;AAAA,MACpD,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,0BAAA,CAA0B,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACjH;AAAA,EAEA,MAAM,YAAA,CACJ,0BAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,2BAAA,GACH,2BAAwD,EAAA,IAAO,0BAAA;AAClE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,gCAAgC,2BAA2B,CAAA,aAAA,CAAA;AAAA,MAC3D,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,OAAA,CACJ,0BAAA,EACA,MAAA,EACA,OAAA,EAC+B;AAC/B,IAAA,MAAM,2BAAA,GACH,2BAAwD,EAAA,IAAO,0BAAA;AAClE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,SAAA,EAAU;AAAA,MAClB,gCAAgC,2BAA2B,CAAA,QAAA,CAAA;AAAA,MAC3D,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,2BAA2B,QAAA,EAAqD;AAC9E,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,0BAAA,CAA0B,IAAA;AAAA,EACtE;AAAA,EAEA,aAAa,EAAA,EAA6D;AACxE,IAAA,OAAO,KAAA,CAAM,qBAAkD,EAAE,CAAA;AAAA,EACnE;AAAA,EAEA,sBAAsB,GAAA,EAA8C;AAClE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmD,GAAG,GAAG,CAAA;AAAA,EACxE;AAAA,EAEA,IAAA,GAAqC;AACnC,IAAA,OAAO,0BAAA,CAA0B,IAAA;AAAA,EACnC;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,yBAAA,EAA0B;AAC/C,IAAO,oCAAA,GAAQ","file":"chunk-UBLJX7XD.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 { BuyXPayYPromotion, BuyXPayYPromotionType } from './buy_x_pay_y_promotions'\nimport type { Coupon, CouponType } from './coupons'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPromotion, ExternalPromotionType } from './external_promotions'\nimport type { FixedAmountPromotion, FixedAmountPromotionType } from './fixed_amount_promotions'\nimport type { FixedPricePromotion, FixedPricePromotionType } from './fixed_price_promotions'\nimport type { FlexPromotion, FlexPromotionType } from './flex_promotions'\nimport type { FreeGiftPromotion, FreeGiftPromotionType } from './free_gift_promotions'\nimport type { FreeShippingPromotion, FreeShippingPromotionType } from './free_shipping_promotions'\nimport type { PercentageDiscountPromotion, PercentageDiscountPromotionType } from './percentage_discount_promotions'\n\ntype CouponCodesPromotionRuleType = 'coupon_codes_promotion_rules'\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype BuyXPayYPromotionRel = ResourceRel & { type: BuyXPayYPromotionType }\ntype FreeGiftPromotionRel = ResourceRel & { type: FreeGiftPromotionType }\ntype FixedPricePromotionRel = ResourceRel & { type: FixedPricePromotionType }\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype FixedAmountPromotionRel = ResourceRel & { type: FixedAmountPromotionType }\ntype FlexPromotionRel = ResourceRel & { type: FlexPromotionType }\ntype CouponRel = ResourceRel & { type: CouponType }\n\nexport type CouponCodesPromotionRuleSort = Pick<CouponCodesPromotionRule, 'id'> & ResourceSort\n// export type CouponCodesPromotionRuleFilter = Pick<CouponCodesPromotionRule, 'id'> & ResourceFilter\n\n/**\n * The Coupon codes promotion rule object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/coupon_codes_promotion_rules endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/coupon_codes_promotion_rules/object\n */\ninterface CouponCodesPromotionRule extends Resource {\n readonly type: CouponCodesPromotionRuleType\n\n promotion?:\n | PercentageDiscountPromotion\n | FreeShippingPromotion\n | BuyXPayYPromotion\n | FreeGiftPromotion\n | FixedPricePromotion\n | ExternalPromotion\n | FixedAmountPromotion\n | FlexPromotion\n | null\n event_stores?: EventStore[] | null\n coupons?: Coupon[] | null\n}\n\ninterface CouponCodesPromotionRuleCreate extends ResourceCreate {\n promotion:\n | PercentageDiscountPromotionRel\n | FreeShippingPromotionRel\n | BuyXPayYPromotionRel\n | FreeGiftPromotionRel\n | FixedPricePromotionRel\n | ExternalPromotionRel\n | FixedAmountPromotionRel\n | FlexPromotionRel\n coupons?: CouponRel[] | null\n}\n\ninterface CouponCodesPromotionRuleUpdate extends ResourceUpdate {\n promotion?:\n | PercentageDiscountPromotionRel\n | FreeShippingPromotionRel\n | BuyXPayYPromotionRel\n | FreeGiftPromotionRel\n | FixedPricePromotionRel\n | ExternalPromotionRel\n | FixedAmountPromotionRel\n | FlexPromotionRel\n | null\n coupons?: CouponRel[] | null\n}\n\nclass CouponCodesPromotionRules extends ApiResource<CouponCodesPromotionRule> {\n static readonly TYPE: CouponCodesPromotionRuleType = 'coupon_codes_promotion_rules' as const\n\n async create(\n resource: CouponCodesPromotionRuleCreate,\n params?: QueryParamsRetrieve<CouponCodesPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CouponCodesPromotionRule> {\n return this.resources.create<CouponCodesPromotionRuleCreate, CouponCodesPromotionRule>(\n { ...resource, type: CouponCodesPromotionRules.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: CouponCodesPromotionRuleUpdate,\n params?: QueryParamsRetrieve<CouponCodesPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CouponCodesPromotionRule> {\n return this.resources.update<CouponCodesPromotionRuleUpdate, CouponCodesPromotionRule>(\n { ...resource, type: CouponCodesPromotionRules.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: CouponCodesPromotionRules.TYPE } : id, options)\n }\n\n async event_stores(\n couponCodesPromotionRuleId: string | CouponCodesPromotionRule,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _couponCodesPromotionRuleId =\n (couponCodesPromotionRuleId as CouponCodesPromotionRule).id || (couponCodesPromotionRuleId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async coupons(\n couponCodesPromotionRuleId: string | CouponCodesPromotionRule,\n params?: QueryParamsList<Coupon>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Coupon>> {\n const _couponCodesPromotionRuleId =\n (couponCodesPromotionRuleId as CouponCodesPromotionRule).id || (couponCodesPromotionRuleId as string)\n return this.resources.fetch<Coupon>(\n { type: 'coupons' },\n `coupon_codes_promotion_rules/${_couponCodesPromotionRuleId}/coupons`,\n params,\n options,\n ) as unknown as ListResponse<Coupon>\n }\n\n isCouponCodesPromotionRule(resource: any): resource is CouponCodesPromotionRule {\n return resource.type && resource.type === CouponCodesPromotionRules.TYPE\n }\n\n relationship(id: string | ResourceId | null): CouponCodesPromotionRuleRel {\n return super.relationshipOneToOne<CouponCodesPromotionRuleRel>(id)\n }\n\n relationshipToMany(...ids: string[]): CouponCodesPromotionRuleRel[] {\n return super.relationshipOneToMany<CouponCodesPromotionRuleRel>(...ids)\n }\n\n type(): CouponCodesPromotionRuleType {\n return CouponCodesPromotionRules.TYPE\n }\n}\n\nconst instance = new CouponCodesPromotionRules()\nexport default instance\n\nexport type {\n CouponCodesPromotionRule,\n CouponCodesPromotionRuleCreate,\n CouponCodesPromotionRules,\n CouponCodesPromotionRuleType,\n CouponCodesPromotionRuleUpdate,\n}\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-MGSPPFHY.js';
|
|
2
|
+
|
|
3
|
+
// gen/resources/coupon_recipients.ts
|
|
4
|
+
var CouponRecipients = class _CouponRecipients extends ApiResource {
|
|
5
|
+
static TYPE = "coupon_recipients";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create(
|
|
8
|
+
{ ...resource, type: _CouponRecipients.TYPE },
|
|
9
|
+
params,
|
|
10
|
+
options
|
|
11
|
+
);
|
|
12
|
+
}
|
|
13
|
+
async update(resource, params, options) {
|
|
14
|
+
return this.resources.update(
|
|
15
|
+
{ ...resource, type: _CouponRecipients.TYPE },
|
|
16
|
+
params,
|
|
17
|
+
options
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
async delete(id, options) {
|
|
21
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _CouponRecipients.TYPE } : id, options);
|
|
22
|
+
}
|
|
23
|
+
async customer(couponRecipientId, params, options) {
|
|
24
|
+
const _couponRecipientId = couponRecipientId.id || couponRecipientId;
|
|
25
|
+
return this.resources.fetch(
|
|
26
|
+
{ type: "customers" },
|
|
27
|
+
`coupon_recipients/${_couponRecipientId}/customer`,
|
|
28
|
+
params,
|
|
29
|
+
options
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
async event_stores(couponRecipientId, params, options) {
|
|
33
|
+
const _couponRecipientId = couponRecipientId.id || couponRecipientId;
|
|
34
|
+
return this.resources.fetch(
|
|
35
|
+
{ type: "event_stores" },
|
|
36
|
+
`coupon_recipients/${_couponRecipientId}/event_stores`,
|
|
37
|
+
params,
|
|
38
|
+
options
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
async attachments(couponRecipientId, params, options) {
|
|
42
|
+
const _couponRecipientId = couponRecipientId.id || couponRecipientId;
|
|
43
|
+
return this.resources.fetch(
|
|
44
|
+
{ type: "attachments" },
|
|
45
|
+
`coupon_recipients/${_couponRecipientId}/attachments`,
|
|
46
|
+
params,
|
|
47
|
+
options
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
isCouponRecipient(resource) {
|
|
51
|
+
return resource.type && resource.type === _CouponRecipients.TYPE;
|
|
52
|
+
}
|
|
53
|
+
relationship(id) {
|
|
54
|
+
return super.relationshipOneToOne(id);
|
|
55
|
+
}
|
|
56
|
+
relationshipToMany(...ids) {
|
|
57
|
+
return super.relationshipOneToMany(...ids);
|
|
58
|
+
}
|
|
59
|
+
type() {
|
|
60
|
+
return _CouponRecipients.TYPE;
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
var instance = new CouponRecipients();
|
|
64
|
+
var coupon_recipients_default = instance;
|
|
65
|
+
|
|
66
|
+
export { coupon_recipients_default };
|
|
67
|
+
//# sourceMappingURL=chunk-UBWI5WGL.js.map
|
|
68
|
+
//# sourceMappingURL=chunk-UBWI5WGL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../gen/resources/coupon_recipients.ts"],"names":[],"mappings":";;;AA4FA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAC1D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC0B;AAC1B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,kBAAiB,IAAA,EAAK;AAAA,MAC3C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC0B;AAC1B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,kBAAiB,IAAA,EAAK;AAAA,MAC3C,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,iBAAA,CAAiB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,QAAA,CACJ,iBAAA,EACA,MAAA,EACA,OAAA,EACmB;AACnB,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAO,iBAAA;AACzE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,WAAA,EAAY;AAAA,MACpB,qBAAqB,kBAAkB,CAAA,SAAA,CAAA;AAAA,MACvC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,iBAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAO,iBAAA;AACzE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,qBAAqB,kBAAkB,CAAA,aAAA,CAAA;AAAA,MACvC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,WAAA,CACJ,iBAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAO,iBAAA;AACzE,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,aAAA,EAAc;AAAA,MACtB,qBAAqB,kBAAkB,CAAA,YAAA,CAAA;AAAA,MACvC,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,kBAAkB,QAAA,EAA4C;AAC5D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA,EAC7D;AAAA,EAEA,aAAa,EAAA,EAAoD;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA,EAC1D;AAAA,EAEA,sBAAsB,GAAA,EAAqC;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA,EAC/D;AAAA,EAEA,IAAA,GAA4B;AAC1B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA,EAC1B;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-UBWI5WGL.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 { Customer, CustomerType } from './customers'\nimport type { EventStore } from './event_stores'\n\ntype CouponRecipientType = 'coupon_recipients'\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\n\nexport type CouponRecipientSort = Pick<CouponRecipient, 'id' | 'email'> & ResourceSort\n// export type CouponRecipientFilter = Pick<CouponRecipient, 'id' | 'email' | 'first_name' | 'last_name'> & ResourceFilter\n\n/**\n * The Coupon recipient object is returned as part of the response body of each successful list, retrieve, create, update or delete API call to the /api/coupon_recipients endpoint.\n *\n * @link https://docs.commercelayer.io/core-api-reference/coupon_recipients/object\n */\ninterface CouponRecipient extends Resource {\n readonly type: CouponRecipientType\n\n /**\n * The recipient email address.\n * @example ```\"john@example.com\"```\n */\n email: string\n /**\n * The recipient first name.\n * @example ```\"John\"```\n */\n first_name?: string | null\n /**\n * The recipient last name.\n * @example ```\"Smith\"```\n */\n last_name?: string | null\n\n customer?: Customer | null\n event_stores?: EventStore[] | null\n attachments?: Attachment[] | null\n}\n\ninterface CouponRecipientCreate extends ResourceCreate {\n /**\n * The recipient email address.\n * @example ```\"john@example.com\"```\n */\n email: string\n /**\n * The recipient first name.\n * @example ```\"John\"```\n */\n first_name?: string | null\n /**\n * The recipient last name.\n * @example ```\"Smith\"```\n */\n last_name?: string | null\n\n customer?: CustomerRel | null\n}\n\ninterface CouponRecipientUpdate extends ResourceUpdate {\n /**\n * The recipient email address.\n * @example ```\"john@example.com\"```\n */\n email?: string | null\n /**\n * The recipient first name.\n * @example ```\"John\"```\n */\n first_name?: string | null\n /**\n * The recipient last name.\n * @example ```\"Smith\"```\n */\n last_name?: string | null\n\n customer?: CustomerRel | null\n}\n\nclass CouponRecipients extends ApiResource<CouponRecipient> {\n static readonly TYPE: CouponRecipientType = 'coupon_recipients' as const\n\n async create(\n resource: CouponRecipientCreate,\n params?: QueryParamsRetrieve<CouponRecipient>,\n options?: ResourcesConfig,\n ): Promise<CouponRecipient> {\n return this.resources.create<CouponRecipientCreate, CouponRecipient>(\n { ...resource, type: CouponRecipients.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: CouponRecipientUpdate,\n params?: QueryParamsRetrieve<CouponRecipient>,\n options?: ResourcesConfig,\n ): Promise<CouponRecipient> {\n return this.resources.update<CouponRecipientUpdate, CouponRecipient>(\n { ...resource, type: CouponRecipients.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: CouponRecipients.TYPE } : id, options)\n }\n\n async customer(\n couponRecipientId: string | CouponRecipient,\n params?: QueryParamsRetrieve<Customer>,\n options?: ResourcesConfig,\n ): Promise<Customer> {\n const _couponRecipientId = (couponRecipientId as CouponRecipient).id || (couponRecipientId as string)\n return this.resources.fetch<Customer>(\n { type: 'customers' },\n `coupon_recipients/${_couponRecipientId}/customer`,\n params,\n options,\n ) as unknown as Customer\n }\n\n async event_stores(\n couponRecipientId: string | CouponRecipient,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _couponRecipientId = (couponRecipientId as CouponRecipient).id || (couponRecipientId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `coupon_recipients/${_couponRecipientId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async attachments(\n couponRecipientId: string | CouponRecipient,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _couponRecipientId = (couponRecipientId as CouponRecipient).id || (couponRecipientId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `coupon_recipients/${_couponRecipientId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n isCouponRecipient(resource: any): resource is CouponRecipient {\n return resource.type && resource.type === CouponRecipients.TYPE\n }\n\n relationship(id: string | ResourceId | null): CouponRecipientRel {\n return super.relationshipOneToOne<CouponRecipientRel>(id)\n }\n\n relationshipToMany(...ids: string[]): CouponRecipientRel[] {\n return super.relationshipOneToMany<CouponRecipientRel>(...ids)\n }\n\n type(): CouponRecipientType {\n return CouponRecipients.TYPE\n }\n}\n\nconst instance = new CouponRecipients()\nexport default instance\n\nexport type { CouponRecipient, CouponRecipientCreate, CouponRecipients, CouponRecipientType, CouponRecipientUpdate }\n"]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkZUYCVSFZ_cjs = require('./chunk-ZUYCVSFZ.cjs');
|
|
4
|
+
|
|
5
|
+
// gen/resources/line_item_options.ts
|
|
6
|
+
var LineItemOptions = class _LineItemOptions extends chunkZUYCVSFZ_cjs.ApiResource {
|
|
7
|
+
static TYPE = "line_item_options";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create(
|
|
10
|
+
{ ...resource, type: _LineItemOptions.TYPE },
|
|
11
|
+
params,
|
|
12
|
+
options
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async update(resource, params, options) {
|
|
16
|
+
return this.resources.update(
|
|
17
|
+
{ ...resource, type: _LineItemOptions.TYPE },
|
|
18
|
+
params,
|
|
19
|
+
options
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
async delete(id, options) {
|
|
23
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _LineItemOptions.TYPE } : id, options);
|
|
24
|
+
}
|
|
25
|
+
async line_item(lineItemOptionId, params, options) {
|
|
26
|
+
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
|
27
|
+
return this.resources.fetch(
|
|
28
|
+
{ type: "line_items" },
|
|
29
|
+
`line_item_options/${_lineItemOptionId}/line_item`,
|
|
30
|
+
params,
|
|
31
|
+
options
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
async sku_option(lineItemOptionId, params, options) {
|
|
35
|
+
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
|
36
|
+
return this.resources.fetch(
|
|
37
|
+
{ type: "sku_options" },
|
|
38
|
+
`line_item_options/${_lineItemOptionId}/sku_option`,
|
|
39
|
+
params,
|
|
40
|
+
options
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
async events(lineItemOptionId, params, options) {
|
|
44
|
+
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
|
45
|
+
return this.resources.fetch(
|
|
46
|
+
{ type: "events" },
|
|
47
|
+
`line_item_options/${_lineItemOptionId}/events`,
|
|
48
|
+
params,
|
|
49
|
+
options
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
async tags(lineItemOptionId, params, options) {
|
|
53
|
+
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
|
54
|
+
return this.resources.fetch(
|
|
55
|
+
{ type: "tags" },
|
|
56
|
+
`line_item_options/${_lineItemOptionId}/tags`,
|
|
57
|
+
params,
|
|
58
|
+
options
|
|
59
|
+
);
|
|
60
|
+
}
|
|
61
|
+
async event_stores(lineItemOptionId, params, options) {
|
|
62
|
+
const _lineItemOptionId = lineItemOptionId.id || lineItemOptionId;
|
|
63
|
+
return this.resources.fetch(
|
|
64
|
+
{ type: "event_stores" },
|
|
65
|
+
`line_item_options/${_lineItemOptionId}/event_stores`,
|
|
66
|
+
params,
|
|
67
|
+
options
|
|
68
|
+
);
|
|
69
|
+
}
|
|
70
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
71
|
+
return this.resources.update(
|
|
72
|
+
{ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _add_tags: triggerValue },
|
|
73
|
+
params,
|
|
74
|
+
options
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
78
|
+
return this.resources.update(
|
|
79
|
+
{ id: typeof id === "string" ? id : id.id, type: _LineItemOptions.TYPE, _remove_tags: triggerValue },
|
|
80
|
+
params,
|
|
81
|
+
options
|
|
82
|
+
);
|
|
83
|
+
}
|
|
84
|
+
isLineItemOption(resource) {
|
|
85
|
+
return resource.type && resource.type === _LineItemOptions.TYPE;
|
|
86
|
+
}
|
|
87
|
+
relationship(id) {
|
|
88
|
+
return super.relationshipOneToOne(id);
|
|
89
|
+
}
|
|
90
|
+
relationshipToMany(...ids) {
|
|
91
|
+
return super.relationshipOneToMany(...ids);
|
|
92
|
+
}
|
|
93
|
+
type() {
|
|
94
|
+
return _LineItemOptions.TYPE;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
var instance = new LineItemOptions();
|
|
98
|
+
var line_item_options_default = instance;
|
|
99
|
+
|
|
100
|
+
exports.line_item_options_default = line_item_options_default;
|
|
101
|
+
//# sourceMappingURL=chunk-UBZNC5FH.cjs.map
|
|
102
|
+
//# sourceMappingURL=chunk-UBZNC5FH.cjs.map
|