@commercelayer/sdk 7.0.0-rc.10 → 7.0.0-rc.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{api-DF66S5Gh.d.ts → api-BIiVfx1G.d.ts} +66 -47
- package/lib/{api-2OqdnITp.d.cts → api-xIgvzFhW.d.cts} +66 -47
- package/lib/api.cjs +24 -24
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +12 -12
- package/lib/bundle.cjs +26 -26
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +1 -1
- package/lib/bundle.d.ts +1 -1
- package/lib/bundle.js +13 -13
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-2AFNQJXP.cjs.map +1 -1
- package/lib/chunk-2AMKJ6V7.cjs.map +1 -1
- package/lib/chunk-2HLQW5MF.cjs.map +1 -1
- package/lib/chunk-2HPO4UZA.cjs.map +1 -1
- package/lib/chunk-2JOYLKTP.cjs.map +1 -1
- package/lib/chunk-2KKHO6QF.js.map +1 -1
- package/lib/chunk-2L2ZM3VD.js.map +1 -1
- package/lib/chunk-2P6AFRJL.js.map +1 -1
- package/lib/chunk-2PYM3QGA.js.map +1 -1
- package/lib/chunk-2THU5NEW.cjs.map +1 -1
- package/lib/{chunk-BF7OPORP.js → chunk-2UUZHL2R.js} +2 -2
- package/lib/{chunk-BF7OPORP.js.map → chunk-2UUZHL2R.js.map} +1 -1
- package/lib/chunk-2XGMKMF5.cjs.map +1 -1
- package/lib/chunk-34H2NFDA.js.map +1 -1
- package/lib/chunk-35OHXDG3.cjs.map +1 -1
- package/lib/chunk-3ADITMLN.cjs.map +1 -1
- package/lib/chunk-3ANXNJ6U.cjs.map +1 -1
- package/lib/chunk-3AOPII3W.js.map +1 -1
- package/lib/chunk-3DFZ5QLR.js.map +1 -1
- package/lib/chunk-3I5BJF3J.js.map +1 -1
- package/lib/chunk-3N2MNKA3.js.map +1 -1
- package/lib/chunk-3NWQH32A.js.map +1 -1
- package/lib/chunk-3OBFBFUV.js.map +1 -1
- package/lib/chunk-3PVKJIA3.js.map +1 -1
- package/lib/chunk-3RR27O3T.js.map +1 -1
- package/lib/chunk-3TGZNMLP.cjs.map +1 -1
- package/lib/chunk-3URHH3S6.js.map +1 -1
- package/lib/chunk-3WKN5OCU.cjs.map +1 -1
- package/lib/chunk-3XWE56FL.cjs.map +1 -1
- package/lib/chunk-42DT6ZET.cjs.map +1 -1
- package/lib/chunk-432EXURP.js.map +1 -1
- package/lib/chunk-4IH4EHXT.cjs.map +1 -1
- package/lib/chunk-4KFJUIFD.js.map +1 -1
- package/lib/chunk-4KO5LZ7F.js.map +1 -1
- package/lib/chunk-4L4MGCUZ.js.map +1 -1
- package/lib/chunk-4L73LJKG.js.map +1 -1
- package/lib/{chunk-RWPFE3LF.cjs → chunk-4NI5SICY.cjs} +2 -2
- package/lib/chunk-4NI5SICY.cjs.map +1 -0
- package/lib/chunk-4SCFKFIM.cjs.map +1 -1
- package/lib/chunk-57XXD3GQ.cjs.map +1 -1
- package/lib/chunk-5EXCGVF2.cjs.map +1 -1
- package/lib/chunk-5FZNBGAF.cjs.map +1 -1
- package/lib/{chunk-NMVACSMG.js → chunk-5NMDIVXH.js} +2 -2
- package/lib/chunk-5NMDIVXH.js.map +1 -0
- package/lib/chunk-5OQQBNVB.js.map +1 -1
- package/lib/chunk-5P5Z7NXC.js.map +1 -1
- package/lib/chunk-5R76TU4I.cjs.map +1 -1
- package/lib/chunk-627I2FYX.cjs.map +1 -1
- package/lib/chunk-66JDSPFD.cjs.map +1 -1
- package/lib/chunk-67QVA2J3.cjs.map +1 -1
- package/lib/chunk-6AJSOS56.cjs.map +1 -1
- package/lib/chunk-6B66AQKB.cjs.map +1 -1
- package/lib/chunk-6OHA2TO3.cjs.map +1 -1
- package/lib/chunk-6PWK52UZ.cjs.map +1 -1
- package/lib/chunk-6SCAIB4K.cjs.map +1 -1
- package/lib/chunk-6SOWFGBP.cjs.map +1 -1
- package/lib/chunk-7CQTUOR4.cjs.map +1 -1
- package/lib/chunk-7ISS2FDY.js.map +1 -1
- package/lib/chunk-7JLRB7QH.js.map +1 -1
- package/lib/chunk-7SG4WU7W.js.map +1 -1
- package/lib/chunk-7SZY5BWE.js.map +1 -1
- package/lib/chunk-7VSYXEXL.js.map +1 -1
- package/lib/chunk-7Z2U4MHU.cjs.map +1 -1
- package/lib/chunk-A6BT5FSV.cjs.map +1 -1
- package/lib/chunk-A7BEMDVP.cjs.map +1 -1
- package/lib/chunk-AD73LDFJ.cjs.map +1 -1
- package/lib/{chunk-P3NADEGE.cjs → chunk-AGNIOGQC.cjs} +2 -2
- package/lib/chunk-AGNIOGQC.cjs.map +1 -0
- package/lib/chunk-AIGQRBCY.cjs.map +1 -1
- package/lib/chunk-ANCLAYJV.cjs.map +1 -1
- package/lib/chunk-AQFAND5D.cjs.map +1 -1
- package/lib/chunk-ARIBIRKF.cjs.map +1 -1
- package/lib/{chunk-EJSNNH47.js → chunk-AVJX4OEZ.js} +3 -3
- package/lib/{chunk-EJSNNH47.js.map → chunk-AVJX4OEZ.js.map} +1 -1
- package/lib/chunk-AW3TRBZ7.js.map +1 -1
- package/lib/chunk-AYTBSAHY.js.map +1 -1
- package/lib/chunk-B72FREUL.cjs.map +1 -1
- package/lib/chunk-BBEMCANC.cjs.map +1 -1
- package/lib/{chunk-JN4JL4WT.cjs → chunk-BJYOKKGX.cjs} +2 -2
- package/lib/{chunk-JN4JL4WT.cjs.map → chunk-BJYOKKGX.cjs.map} +1 -1
- package/lib/chunk-BN6XJAZH.cjs.map +1 -1
- package/lib/chunk-BTAKU6V5.cjs.map +1 -1
- package/lib/chunk-CG2ACHGS.js.map +1 -1
- package/lib/chunk-CHYP5F26.js.map +1 -1
- package/lib/chunk-CK6RZLVM.cjs.map +1 -1
- package/lib/chunk-CNCZCBI3.js.map +1 -1
- package/lib/chunk-CRRYP7ZN.js.map +1 -1
- package/lib/chunk-CTXBUDGO.cjs.map +1 -1
- package/lib/chunk-CUNOMS5N.js.map +1 -1
- package/lib/chunk-D26KDUDM.cjs.map +1 -1
- package/lib/chunk-D5E4OGXU.js.map +1 -1
- package/lib/chunk-D7KNSKNJ.js.map +1 -1
- package/lib/chunk-DAXKXBA3.js.map +1 -1
- package/lib/{chunk-465K3KVE.js → chunk-DGW3ZSW6.js} +2 -2
- package/lib/chunk-DGW3ZSW6.js.map +1 -0
- package/lib/chunk-DJ572MZB.cjs.map +1 -1
- package/lib/chunk-DOFPDQMJ.cjs.map +1 -1
- package/lib/chunk-DOGEZ6XX.cjs.map +1 -1
- package/lib/chunk-DSKZRVXS.js.map +1 -1
- package/lib/chunk-DTGODPCN.js.map +1 -1
- package/lib/chunk-DYZGWPZ6.js.map +1 -1
- package/lib/chunk-E3FDHGI7.js.map +1 -1
- package/lib/chunk-E4DYW6HB.cjs.map +1 -1
- package/lib/{chunk-ZFG533LP.js → chunk-E65GENXB.js} +2 -2
- package/lib/{chunk-ZFG533LP.js.map → chunk-E65GENXB.js.map} +1 -1
- package/lib/chunk-E6TBQVLK.cjs.map +1 -1
- package/lib/chunk-EADFDBOR.cjs.map +1 -1
- package/lib/chunk-ECMCBU3N.js.map +1 -1
- package/lib/chunk-EEFOL62K.js.map +1 -1
- package/lib/chunk-EHWAGYNX.js.map +1 -1
- package/lib/chunk-ELBOXOTA.js.map +1 -1
- package/lib/chunk-EP22KKHR.js.map +1 -1
- package/lib/chunk-EP7MAEQH.cjs.map +1 -1
- package/lib/chunk-EQD223JW.cjs.map +1 -1
- package/lib/{chunk-LCLXLB2R.cjs → chunk-ESMKOP42.cjs} +5 -2
- package/lib/chunk-ESMKOP42.cjs.map +1 -0
- package/lib/chunk-F6MSHDB7.cjs.map +1 -1
- package/lib/chunk-FAU5EILL.js.map +1 -1
- package/lib/{chunk-HLCGKY7R.js → chunk-FO7WBEPF.js} +2 -2
- package/lib/chunk-FO7WBEPF.js.map +1 -0
- package/lib/chunk-FSFXOZ35.cjs.map +1 -1
- package/lib/chunk-FTAZDUH6.js.map +1 -1
- package/lib/chunk-FVJDRHG7.js.map +1 -1
- package/lib/chunk-FXE62CPP.cjs.map +1 -1
- package/lib/chunk-FYKIHWAM.cjs.map +1 -1
- package/lib/chunk-G74OZ4M6.js.map +1 -1
- package/lib/chunk-GD4WRDF2.js.map +1 -1
- package/lib/chunk-GE6OHQR6.cjs.map +1 -1
- package/lib/chunk-GHLCA7BX.js.map +1 -1
- package/lib/chunk-GLSPCG3M.cjs.map +1 -1
- package/lib/chunk-H2USYPU6.js.map +1 -1
- package/lib/chunk-H4PUXGNI.cjs.map +1 -1
- package/lib/chunk-H4SVEI6E.js.map +1 -1
- package/lib/chunk-HAAE23MQ.js.map +1 -1
- package/lib/chunk-HBUDZOK7.cjs.map +1 -1
- package/lib/chunk-HCBXRHD7.js.map +1 -1
- package/lib/chunk-HDYENVKD.js.map +1 -1
- package/lib/{chunk-LEWK7QET.cjs → chunk-HERQULAV.cjs} +2 -2
- package/lib/chunk-HERQULAV.cjs.map +1 -0
- package/lib/chunk-HNHF6T2I.cjs.map +1 -1
- package/lib/{chunk-HQ35KQFG.cjs → chunk-HNONYIDO.cjs} +2 -2
- package/lib/chunk-HNONYIDO.cjs.map +1 -0
- package/lib/chunk-HQ5STEMD.js.map +1 -1
- package/lib/chunk-HQ6TJSB7.cjs.map +1 -1
- package/lib/chunk-HSILJQCD.js.map +1 -1
- package/lib/chunk-I3SKGXTB.cjs.map +1 -1
- package/lib/chunk-IDAOX5RB.cjs.map +1 -1
- package/lib/chunk-IITNQS6D.js.map +1 -1
- package/lib/chunk-IKENWSRH.cjs.map +1 -1
- package/lib/chunk-IKHD5UQP.cjs.map +1 -1
- package/lib/chunk-INJ7FRDA.cjs.map +1 -1
- package/lib/chunk-INZD34YD.cjs.map +1 -1
- package/lib/chunk-J4CTOHX6.cjs.map +1 -1
- package/lib/chunk-J6NBJHWL.cjs.map +1 -1
- package/lib/chunk-J6PTNG3D.js.map +1 -1
- package/lib/chunk-J7ZSBB35.js.map +1 -1
- package/lib/chunk-JAQECLCE.js.map +1 -1
- package/lib/chunk-JECYKPCC.cjs.map +1 -1
- package/lib/chunk-JPUF5YXX.js.map +1 -1
- package/lib/chunk-JRTJ6LWK.js.map +1 -1
- package/lib/chunk-JT7HVLLW.cjs.map +1 -1
- package/lib/chunk-JVF5KY2J.cjs.map +1 -1
- package/lib/chunk-JWC2GSYH.cjs.map +1 -1
- package/lib/chunk-JYOFP6BM.js.map +1 -1
- package/lib/chunk-JYXAF775.js.map +1 -1
- package/lib/chunk-K2CU5HIV.js.map +1 -1
- package/lib/chunk-K6WSCQKS.cjs.map +1 -1
- package/lib/chunk-KH5OQRQL.js.map +1 -1
- package/lib/{chunk-7X36B7N6.js → chunk-KITKWF6F.js} +2 -2
- package/lib/chunk-KITKWF6F.js.map +1 -0
- package/lib/{chunk-KBN3FFXD.cjs → chunk-KPRWSW6P.cjs} +2 -2
- package/lib/chunk-KPRWSW6P.cjs.map +1 -0
- package/lib/{chunk-7GVHCOUC.js → chunk-KU5U6DTU.js} +2 -2
- package/lib/{chunk-7GVHCOUC.js.map → chunk-KU5U6DTU.js.map} +1 -1
- package/lib/chunk-KWRDUU7K.js.map +1 -1
- package/lib/chunk-L4LPS3DV.cjs.map +1 -1
- package/lib/chunk-L4TDKOAC.js.map +1 -1
- package/lib/chunk-L5NEDGXK.js.map +1 -1
- package/lib/chunk-L6IGO47T.js.map +1 -1
- package/lib/chunk-LCNT6GY3.js.map +1 -1
- package/lib/chunk-LIT4FEIU.cjs.map +1 -1
- package/lib/chunk-LJ2EP6AL.cjs.map +1 -1
- package/lib/chunk-LNMY5BDT.js.map +1 -1
- package/lib/chunk-LTLMRGB7.js.map +1 -1
- package/lib/chunk-M2ZERG2X.cjs.map +1 -1
- package/lib/chunk-MADGMICB.js.map +1 -1
- package/lib/{chunk-VDZUWCIN.cjs → chunk-MCGX2ZDC.cjs} +2 -2
- package/lib/{chunk-VDZUWCIN.cjs.map → chunk-MCGX2ZDC.cjs.map} +1 -1
- package/lib/chunk-MJRMRWP3.js.map +1 -1
- package/lib/chunk-MPSHBMZS.js.map +1 -1
- package/lib/chunk-MQZSDICO.cjs.map +1 -1
- package/lib/chunk-MUPRLXGP.js.map +1 -1
- package/lib/chunk-MWYBER5I.cjs.map +1 -1
- package/lib/chunk-MZNHRIXE.js.map +1 -1
- package/lib/chunk-N4P7A3RY.js.map +1 -1
- package/lib/chunk-N6MHUHGE.cjs.map +1 -1
- package/lib/chunk-N753UD4K.cjs.map +1 -1
- package/lib/chunk-NAWKHFBZ.js.map +1 -1
- package/lib/chunk-NBYV35R4.cjs.map +1 -1
- package/lib/chunk-NDPDO54G.js.map +1 -1
- package/lib/chunk-NEC22ZSI.cjs.map +1 -1
- package/lib/{chunk-OPQJPXLM.cjs → chunk-NIHOABAW.cjs} +2 -2
- package/lib/chunk-NIHOABAW.cjs.map +1 -0
- package/lib/chunk-NJYMO7FP.cjs.map +1 -1
- package/lib/chunk-NODKE6P4.js.map +1 -1
- package/lib/chunk-OGLS27LJ.js.map +1 -1
- package/lib/chunk-OYFNK2SE.cjs.map +1 -1
- package/lib/chunk-PEU5GGGE.js.map +1 -1
- package/lib/chunk-PNSVP3KP.cjs.map +1 -1
- package/lib/chunk-PQS6KXZ2.cjs.map +1 -1
- package/lib/chunk-PV7MUP5Z.js.map +1 -1
- package/lib/chunk-PZZLLHJP.js.map +1 -1
- package/lib/chunk-Q2ZSQM7I.js.map +1 -1
- package/lib/chunk-Q66HILUF.js.map +1 -1
- package/lib/chunk-Q66JEOCJ.cjs.map +1 -1
- package/lib/chunk-Q7YHSPJL.js.map +1 -1
- package/lib/chunk-QGE4ELJO.cjs.map +1 -1
- package/lib/chunk-QK5MFD4L.js.map +1 -1
- package/lib/chunk-QK7D6L3W.js.map +1 -1
- package/lib/chunk-QYDOENWU.cjs.map +1 -1
- package/lib/chunk-QZTNLPOD.cjs.map +1 -1
- package/lib/chunk-QZWQNPKC.js.map +1 -1
- package/lib/chunk-R2LRLUUY.js.map +1 -1
- package/lib/chunk-R755X3AG.cjs.map +1 -1
- package/lib/chunk-RHARO4TQ.cjs.map +1 -1
- package/lib/{chunk-QHRQCFDB.js → chunk-RL7Y22OT.js} +2 -2
- package/lib/chunk-RL7Y22OT.js.map +1 -0
- package/lib/chunk-ROPOLXIV.js.map +1 -1
- package/lib/chunk-RT7XLEV6.js.map +1 -1
- package/lib/chunk-RTDD2NRL.cjs.map +1 -1
- package/lib/chunk-RTGW34KX.cjs.map +1 -1
- package/lib/{chunk-RTLW5O74.cjs → chunk-S3MCPCGR.cjs} +4 -4
- package/lib/{chunk-RTLW5O74.cjs.map → chunk-S3MCPCGR.cjs.map} +1 -1
- package/lib/chunk-SGOUEVJ3.cjs.map +1 -1
- package/lib/chunk-SGWRNEJB.cjs.map +1 -1
- package/lib/chunk-SKFA2ZIK.js.map +1 -1
- package/lib/chunk-SN6BP777.js.map +1 -1
- package/lib/chunk-SOXJJRL2.js.map +1 -1
- package/lib/chunk-SPLHKBWG.cjs.map +1 -1
- package/lib/chunk-SRW7OWVS.cjs.map +1 -1
- package/lib/chunk-SUJCEUOZ.cjs.map +1 -1
- package/lib/chunk-SWWPX4V4.cjs.map +1 -1
- package/lib/chunk-THO6KQJZ.js.map +1 -1
- package/lib/chunk-THVPSJTK.cjs.map +1 -1
- package/lib/chunk-TIJIXGNJ.cjs.map +1 -1
- package/lib/chunk-TM5OCFYV.cjs.map +1 -1
- package/lib/{chunk-VLLLEX5J.js → chunk-TOV6ECTA.js} +2 -2
- package/lib/chunk-TOV6ECTA.js.map +1 -0
- package/lib/chunk-TQFODT4D.cjs.map +1 -1
- package/lib/chunk-TSD2PK6H.js.map +1 -1
- package/lib/chunk-TSLXKI72.js.map +1 -1
- package/lib/chunk-U5FTZYJJ.js.map +1 -1
- package/lib/chunk-U6PW4AZV.js.map +1 -1
- package/lib/chunk-UB6JC3W7.js.map +1 -1
- package/lib/chunk-UBXNH6J3.js.map +1 -1
- package/lib/chunk-UP7FR6HD.cjs.map +1 -1
- package/lib/chunk-VNWOCO65.cjs.map +1 -1
- package/lib/chunk-VPXMI42G.cjs.map +1 -1
- package/lib/chunk-VRFSITD3.js.map +1 -1
- package/lib/chunk-VUCYIRSC.cjs.map +1 -1
- package/lib/{chunk-NJQDJCFB.cjs → chunk-W6AL2GJ4.cjs} +2 -2
- package/lib/{chunk-NJQDJCFB.cjs.map → chunk-W6AL2GJ4.cjs.map} +1 -1
- package/lib/{chunk-EKGR3EB3.js → chunk-W6YJDUYD.js} +2 -2
- package/lib/chunk-W6YJDUYD.js.map +1 -0
- package/lib/chunk-WAL76UPE.cjs.map +1 -1
- package/lib/chunk-WBPEFNL7.cjs.map +1 -1
- package/lib/{chunk-NKJBVNTV.cjs → chunk-WC4Z7ENS.cjs} +2 -2
- package/lib/chunk-WC4Z7ENS.cjs.map +1 -0
- package/lib/{chunk-BOPK7T5K.js → chunk-WI5IVLYL.js} +2 -2
- package/lib/chunk-WI5IVLYL.js.map +1 -0
- package/lib/chunk-WKN5RLNR.js.map +1 -1
- package/lib/chunk-WP3L72CW.js.map +1 -1
- package/lib/chunk-WTHX574O.js.map +1 -1
- package/lib/{chunk-IIR3UVU2.js → chunk-WVAW33XQ.js} +3 -3
- package/lib/chunk-WVAW33XQ.js.map +1 -0
- package/lib/{chunk-JENLN6VJ.js → chunk-WVKEXOIY.js} +5 -2
- package/lib/chunk-WVKEXOIY.js.map +1 -0
- package/lib/chunk-WXD4O4UY.js.map +1 -1
- package/lib/{chunk-RIMDGLIA.cjs → chunk-WXE5KXJC.cjs} +3 -3
- package/lib/chunk-WXE5KXJC.cjs.map +1 -0
- package/lib/chunk-X2D47UM7.cjs.map +1 -1
- package/lib/chunk-X6PHZA6P.cjs.map +1 -1
- package/lib/chunk-XD7GS4QW.js.map +1 -1
- package/lib/chunk-XMDDYWH5.js.map +1 -1
- package/lib/chunk-XPF5Z2WY.js.map +1 -1
- package/lib/chunk-XR3KEV7U.js.map +1 -1
- package/lib/chunk-XUC3BYL2.cjs.map +1 -1
- package/lib/chunk-Y2IGLW5N.js.map +1 -1
- package/lib/chunk-Y3BFYVWA.js.map +1 -1
- package/lib/{chunk-VMJUXZ67.cjs → chunk-Y5BP4C42.cjs} +2 -2
- package/lib/chunk-Y5BP4C42.cjs.map +1 -0
- package/lib/chunk-YAKNUPNE.cjs.map +1 -1
- package/lib/chunk-YAVHAWTZ.js.map +1 -1
- package/lib/chunk-YBXRC6MC.js.map +1 -1
- package/lib/chunk-YHYBOXVX.cjs.map +1 -1
- package/lib/chunk-YIDX7HVR.cjs.map +1 -1
- package/lib/chunk-YN4M5CNJ.js.map +1 -1
- package/lib/chunk-YOHBJHTH.cjs.map +1 -1
- package/lib/chunk-YUGZUUAU.js.map +1 -1
- package/lib/chunk-YY5ENJSH.cjs.map +1 -1
- package/lib/chunk-Z2QVXW6T.cjs.map +1 -1
- package/lib/chunk-Z667GAZJ.js.map +1 -1
- package/lib/chunk-Z7DKPFKZ.js.map +1 -1
- package/lib/chunk-ZAISVVBE.cjs.map +1 -1
- package/lib/chunk-ZASD6IUL.js.map +1 -1
- package/lib/chunk-ZEEB5YAU.js.map +1 -1
- package/lib/chunk-ZQSCFH5J.cjs.map +1 -1
- package/lib/chunk-ZTVQSWSD.cjs.map +1 -1
- package/lib/chunk-ZU7GFVQ6.js.map +1 -1
- package/lib/chunk-ZZF34M2E.cjs.map +1 -1
- package/lib/client.d.cts +3 -1
- package/lib/commercelayer.cjs +5 -5
- package/lib/commercelayer.d.cts +6 -4
- package/lib/commercelayer.d.ts +3 -3
- package/lib/commercelayer.js +1 -1
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +29 -29
- package/lib/index.d.cts +5 -2
- package/lib/index.d.ts +1 -1
- package/lib/index.js +14 -14
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resources/addresses.d.cts +4 -1
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/adjustments.d.cts +4 -1
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adyen_gateways.d.cts +4 -1
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_payments.cjs +2 -2
- package/lib/resources/adyen_payments.d.cts +4 -1
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +1 -1
- package/lib/resources/applications.cjs +2 -2
- package/lib/resources/applications.d.cts +4 -1
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +1 -1
- package/lib/resources/attachments.d.cts +4 -1
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/authorizations.d.cts +4 -1
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/avalara_accounts.d.cts +4 -1
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/axerve_gateways.d.cts +4 -1
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_payments.d.cts +4 -1
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/bing_geocoders.d.cts +4 -1
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/braintree_gateways.d.cts +4 -1
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_payments.d.cts +4 -1
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/bundles.d.cts +4 -1
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -1
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/captures.d.cts +4 -1
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/carrier_accounts.d.cts +4 -1
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.d.cts +4 -1
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_payments.cjs +2 -2
- package/lib/resources/checkout_com_payments.d.cts +4 -1
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +1 -1
- package/lib/resources/cleanups.d.cts +4 -1
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -1
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_recipients.d.cts +4 -1
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupons.d.cts +4 -1
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.d.cts +4 -1
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/customer_addresses.d.cts +4 -1
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_groups.d.cts +4 -1
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_password_resets.d.cts +4 -1
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_payment_sources.d.cts +4 -1
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_subscriptions.d.cts +4 -1
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customers.cjs +2 -2
- package/lib/resources/customers.d.cts +4 -1
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +1 -1
- package/lib/resources/delivery_lead_times.d.cts +4 -1
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/discount_engine_items.d.cts +4 -1
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engines.d.cts +4 -1
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/easypost_pickups.d.cts +4 -1
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/event_callbacks.d.cts +4 -1
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/events.d.cts +4 -1
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/exports.d.cts +4 -1
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/external_gateways.d.cts +4 -1
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_payments.d.cts +4 -1
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_promotions.d.cts +4 -1
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_tax_calculators.d.cts +4 -1
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.d.cts +4 -1
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.d.cts +4 -1
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.cjs +2 -2
- package/lib/resources/flex_promotions.d.cts +4 -1
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +1 -1
- package/lib/resources/free_gift_promotions.d.cts +4 -1
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.d.cts +4 -1
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/geocoders.d.cts +4 -1
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/gift_card_recipients.d.cts +4 -1
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_cards.d.cts +4 -1
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/google_geocoders.d.cts +4 -1
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/imports.d.cts +4 -1
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.d.cts +4 -1
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/inventory_models.d.cts +4 -1
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_return_locations.d.cts +4 -1
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.d.cts +4 -1
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/klarna_gateways.d.cts +4 -1
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_payments.d.cts +4 -1
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/line_item_options.d.cts +4 -1
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_items.cjs +2 -2
- package/lib/resources/line_items.d.cts +4 -1
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +1 -1
- package/lib/resources/links.d.cts +4 -1
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/manual_gateways.d.cts +4 -1
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.d.cts +4 -1
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/markets.d.cts +4 -1
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/merchants.d.cts +4 -1
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/notifications.d.cts +4 -1
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.d.cts +4 -1
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_copies.d.cts +4 -1
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_factories.d.cts +4 -1
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_subscription_items.d.cts +4 -1
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscriptions.d.cts +4 -1
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/orders.d.cts +4 -1
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/organizations.d.cts +4 -1
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/packages.d.cts +4 -1
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/parcel_line_items.d.cts +4 -1
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcels.d.cts +4 -1
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/payment_gateways.d.cts +4 -1
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_methods.cjs +2 -2
- package/lib/resources/payment_methods.d.cts +4 -1
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +1 -1
- package/lib/resources/payment_options.cjs +2 -2
- package/lib/resources/payment_options.d.cts +4 -1
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +1 -1
- package/lib/resources/paypal_gateways.d.cts +4 -1
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_payments.d.cts +4 -1
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.d.cts +4 -1
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/pickups.d.cts +4 -1
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.d.cts +4 -1
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.d.cts +4 -1
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_lists.cjs +2 -2
- package/lib/resources/price_lists.d.cts +4 -1
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +1 -1
- package/lib/resources/price_tiers.d.cts +4 -1
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.d.cts +4 -1
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/prices.cjs +2 -2
- package/lib/resources/prices.d.cts +4 -1
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +1 -1
- package/lib/resources/promotion_rules.d.cts +4 -1
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotions.d.cts +4 -1
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/recurring_order_copies.d.cts +4 -1
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/refunds.d.cts +4 -1
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/reserved_stocks.d.cts +4 -1
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/resource_errors.d.cts +4 -1
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/return_line_items.d.cts +4 -1
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/returns.d.cts +4 -1
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/satispay_gateways.d.cts +4 -1
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_payments.d.cts +4 -1
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/shipments.d.cts +4 -1
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipping_categories.d.cts +4 -1
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.d.cts +4 -1
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_methods.cjs +2 -2
- package/lib/resources/shipping_methods.d.cts +4 -1
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +1 -1
- package/lib/resources/shipping_weight_tiers.d.cts +4 -1
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_zones.d.cts +4 -1
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/sku_list_items.d.cts +4 -1
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.d.cts +4 -1
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_lists.d.cts +4 -1
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_options.d.cts +4 -1
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/skus.d.cts +4 -1
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/stock_items.d.cts +4 -1
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_line_items.d.cts +4 -1
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_locations.d.cts +4 -1
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_reservations.d.cts +4 -1
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_transfers.d.cts +4 -1
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stores.d.cts +4 -1
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stripe_gateways.d.cts +4 -1
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_payments.d.cts +4 -1
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.d.cts +4 -1
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/subscription_models.d.cts +4 -1
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/tags.d.cts +4 -1
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/talon_one_accounts.cjs +2 -2
- package/lib/resources/talon_one_accounts.d.cts +4 -1
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +1 -1
- package/lib/resources/tax_calculators.d.cts +4 -1
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_categories.d.cts +4 -1
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_rules.d.cts +4 -1
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/taxjar_accounts.d.cts +4 -1
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/transactions.d.cts +4 -1
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/versions.d.cts +4 -1
- package/lib/resources/versions.d.ts +1 -1
- package/lib/resources/vertex_accounts.d.cts +4 -1
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/voids.d.cts +4 -1
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/webhooks.d.cts +4 -1
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/wire_transfers.d.cts +4 -1
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/static.cjs +3 -3
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +2 -2
- package/package.json +8 -8
- package/lib/chunk-465K3KVE.js.map +0 -1
- package/lib/chunk-7X36B7N6.js.map +0 -1
- package/lib/chunk-BOPK7T5K.js.map +0 -1
- package/lib/chunk-EKGR3EB3.js.map +0 -1
- package/lib/chunk-HLCGKY7R.js.map +0 -1
- package/lib/chunk-HQ35KQFG.cjs.map +0 -1
- package/lib/chunk-IIR3UVU2.js.map +0 -1
- package/lib/chunk-JENLN6VJ.js.map +0 -1
- package/lib/chunk-KBN3FFXD.cjs.map +0 -1
- package/lib/chunk-LCLXLB2R.cjs.map +0 -1
- package/lib/chunk-LEWK7QET.cjs.map +0 -1
- package/lib/chunk-NKJBVNTV.cjs.map +0 -1
- package/lib/chunk-NMVACSMG.js.map +0 -1
- package/lib/chunk-OPQJPXLM.cjs.map +0 -1
- package/lib/chunk-P3NADEGE.cjs.map +0 -1
- package/lib/chunk-QHRQCFDB.js.map +0 -1
- package/lib/chunk-RIMDGLIA.cjs.map +0 -1
- package/lib/chunk-RWPFE3LF.cjs.map +0 -1
- package/lib/chunk-VLLLEX5J.js.map +0 -1
- package/lib/chunk-VMJUXZ67.cjs.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/discount_engines.ts"],"names":[],"mappings":";;;AAwCA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,
|
1
|
+
{"version":3,"sources":["../src/resources/discount_engines.ts"],"names":[],"mappings":";;;AAwCA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,WAAA,CAA4B;AAAA,EAEzD,OAAgB,IAA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EAAQ,OAAO,CAAA;AAAA;AAC7H,EAGA,iBAAiB,QAAA,EAA2C;AAC3D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,gBAAA,CAAgB,IAAA;AAAA;AAC5D,EAGA,aAAa,EAAA,EAAmD;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAwC,EAAE,CAAA;AAAA;AACxD,EAEA,sBAAsB,GAAA,EAAoC;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAyC,GAAG,GAAG,CAAA;AAAA;AAC7D,EAGA,IAAA,GAA2B;AAC1B,IAAA,OAAO,gBAAA,CAAgB,IAAA;AAAA;AAGzB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,eAAA,EAAgB;AACrC,IAAO,wBAAA,GAAQ","file":"chunk-3PVKJIA3.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsList } from '../query'\n\nimport type { Market } from './markets'\nimport type { DiscountEngineItem } from './discount_engine_items'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype DiscountEngineType = 'discount_engines'\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\n\n\nexport type DiscountEngineSort = Pick<DiscountEngine, 'id' | 'name'> & ResourceSort\n// export type DiscountEngineFilter = Pick<DiscountEngine, 'id' | 'name'> & ResourceFilter\n\n\ninterface DiscountEngine extends Resource {\n\t\n\treadonly type: DiscountEngineType\n\n\t/** \n\t * The discount engine's internal name.\n\t * @example ```\"Personal discount engine\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the discount engine manages both promotions and gift cards application at once.\n\t */\n\tmanage_gift_cards?: boolean | null\n\n\tmarkets?: Market[] | null\n\tdiscount_engine_items?: DiscountEngineItem[] | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\nclass DiscountEngines extends ApiResource<DiscountEngine> {\n\n\tstatic readonly TYPE: DiscountEngineType = 'discount_engines' as const\n\n\tasync markets(discountEngineId: string | DiscountEngine, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _discountEngineId = (discountEngineId as DiscountEngine).id || discountEngineId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `discount_engines/${_discountEngineId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync discount_engine_items(discountEngineId: string | DiscountEngine, params?: QueryParamsList<DiscountEngineItem>, options?: ResourcesConfig): Promise<ListResponse<DiscountEngineItem>> {\n\t\tconst _discountEngineId = (discountEngineId as DiscountEngine).id || discountEngineId as string\n\t\treturn this.resources.fetch<DiscountEngineItem>({ type: 'discount_engine_items' }, `discount_engines/${_discountEngineId}/discount_engine_items`, params, options) as unknown as ListResponse<DiscountEngineItem>\n\t}\n\n\tasync attachments(discountEngineId: string | DiscountEngine, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _discountEngineId = (discountEngineId as DiscountEngine).id || discountEngineId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `discount_engines/${_discountEngineId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(discountEngineId: string | DiscountEngine, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _discountEngineId = (discountEngineId as DiscountEngine).id || discountEngineId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `discount_engines/${_discountEngineId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisDiscountEngine(resource: any): resource is DiscountEngine {\n\t\treturn resource.type && (resource.type === DiscountEngines.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): DiscountEngineRel {\n\t\treturn super.relationshipOneToOne<DiscountEngineRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): DiscountEngineRel[] {\n\t\treturn super.relationshipOneToMany<DiscountEngineRel>(...ids)\n\t}\n\n\n\ttype(): DiscountEngineType {\n\t\treturn DiscountEngines.TYPE\n\t}\n\n}\n\n\nconst instance = new DiscountEngines()\nexport default instance\n\nexport type { DiscountEngines, DiscountEngine, DiscountEngineType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/shipping_weight_tiers.ts"],"names":[],"mappings":";;;AAqGA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,
|
1
|
+
{"version":3,"sources":["../src/resources/shipping_weight_tiers.ts"],"names":[],"mappings":";;;AAqGA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,WAAA,CAAgC;AAAA,EAEjE,OAAgB,IAAA,GAA+B,uBAAA;AAAA,EAE/C,MAAM,MAAA,CAAO,QAAA,EAAoC,MAAA,EAAkD,OAAA,EAAwD;AAC1J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAA,CAAoB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC5I,EAEA,MAAM,MAAA,CAAO,QAAA,EAAoC,MAAA,EAAkD,OAAA,EAAwD;AAC1J,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqD,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAA,CAAoB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC5I,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,oBAAA,CAAoB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA;AAC3G,EAEA,MAAM,eAAA,CAAgB,oBAAA,EAAmD,MAAA,EAA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,OAAO,oBAAA,CAAoB,IAAA;AAAA;AAG7B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-3RR27O3T.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype ShippingWeightTierType = 'shipping_weight_tiers'\ntype ShippingWeightTierRel = ResourceRel & { type: ShippingWeightTierType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\n\n\nexport type ShippingWeightTierSort = Pick<ShippingWeightTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type ShippingWeightTierFilter = Pick<ShippingWeightTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\n\ninterface ShippingWeightTier extends Resource {\n\t\n\treadonly type: ShippingWeightTierType\n\n\t/** \n\t * The shipping method tier's name.\n\t * @example ```\"Light shipping under 3kg\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```20.5```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this shipping method tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this shipping method tier, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this shipping method tier, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\n\tshipping_method?: ShippingMethod | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ShippingWeightTierCreate extends ResourceCreate {\n\t\n\t/** \n\t * The shipping method tier's name.\n\t * @example ```\"Light shipping under 3kg\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```20.5```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this shipping method tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\n\tshipping_method: ShippingMethodRel\n\n}\n\n\ninterface ShippingWeightTierUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The shipping method tier's name.\n\t * @example ```\"Light shipping under 3kg\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```20.5```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this shipping method tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\n\tshipping_method?: ShippingMethodRel | null\n\n}\n\n\nclass ShippingWeightTiers extends ApiResource<ShippingWeightTier> {\n\n\tstatic readonly TYPE: ShippingWeightTierType = 'shipping_weight_tiers' as const\n\n\tasync create(resource: ShippingWeightTierCreate, params?: QueryParamsRetrieve<ShippingWeightTier>, options?: ResourcesConfig): Promise<ShippingWeightTier> {\n\t\treturn this.resources.create<ShippingWeightTierCreate, ShippingWeightTier>({ ...resource, type: ShippingWeightTiers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ShippingWeightTierUpdate, params?: QueryParamsRetrieve<ShippingWeightTier>, options?: ResourcesConfig): Promise<ShippingWeightTier> {\n\t\treturn this.resources.update<ShippingWeightTierUpdate, ShippingWeightTier>({ ...resource, type: ShippingWeightTiers.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ShippingWeightTiers.TYPE } : id, options)\n\t}\n\n\tasync shipping_method(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\tconst _shippingWeightTierId = (shippingWeightTierId as ShippingWeightTier).id || shippingWeightTierId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `shipping_weight_tiers/${_shippingWeightTierId}/shipping_method`, params, options) as unknown as ShippingMethod\n\t}\n\n\tasync attachments(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _shippingWeightTierId = (shippingWeightTierId as ShippingWeightTier).id || shippingWeightTierId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `shipping_weight_tiers/${_shippingWeightTierId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(shippingWeightTierId: string | ShippingWeightTier, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _shippingWeightTierId = (shippingWeightTierId as ShippingWeightTier).id || shippingWeightTierId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `shipping_weight_tiers/${_shippingWeightTierId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisShippingWeightTier(resource: any): resource is ShippingWeightTier {\n\t\treturn resource.type && (resource.type === ShippingWeightTiers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ShippingWeightTierRel {\n\t\treturn super.relationshipOneToOne<ShippingWeightTierRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ShippingWeightTierRel[] {\n\t\treturn super.relationshipOneToMany<ShippingWeightTierRel>(...ids)\n\t}\n\n\n\ttype(): ShippingWeightTierType {\n\t\treturn ShippingWeightTiers.TYPE\n\t}\n\n}\n\n\nconst instance = new ShippingWeightTiers()\nexport default instance\n\nexport type { ShippingWeightTiers, ShippingWeightTier, ShippingWeightTierCreate, ShippingWeightTierUpdate, ShippingWeightTierType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/shipping_method_tiers.ts"],"names":["ApiResource"],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,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,oBAAA,CAAoB,IAAA;AAAA;AAChE,EAGA,aAAa,EAAA,EAAuD;AACnE,IAAA,OAAO,KAAA,CAAM,qBAA4C,EAAE,CAAA;AAAA;AAC5D,EAEA,sBAAsB,GAAA,EAAwC;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA6C,GAAG,GAAG,CAAA;AAAA;AACjE,EAGA,IAAA,GAA+B;AAC9B,IAAA,OAAO,oBAAA,CAAoB,IAAA;AAAA;AAG7B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAA,EAAoB;AACzC,IAAO,6BAAA,GAAQ","file":"chunk-3TGZNMLP.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { ShippingMethod } from './shipping_methods'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype ShippingMethodTierType = 'shipping_method_tiers'\ntype ShippingMethodTierRel = ResourceRel & { type: ShippingMethodTierType }\n\n\nexport type ShippingMethodTierSort = Pick<ShippingMethodTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type ShippingMethodTierFilter = Pick<ShippingMethodTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\n\ninterface ShippingMethodTier extends Resource {\n\t\n\treadonly type: ShippingMethodTierType\n\n\t/** \n\t * The shipping method tier's name.\n\t * @example ```\"Light shipping under 3kg\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit. When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```20.5```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this shipping method tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this shipping method tier, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this shipping method tier, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\n\tshipping_method?: ShippingMethod | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\nclass ShippingMethodTiers extends ApiResource<ShippingMethodTier> {\n\n\tstatic readonly TYPE: ShippingMethodTierType = 'shipping_method_tiers' as const\n\n\tasync shipping_method(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\tconst _shippingMethodTierId = (shippingMethodTierId as ShippingMethodTier).id || shippingMethodTierId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `shipping_method_tiers/${_shippingMethodTierId}/shipping_method`, params, options) as unknown as ShippingMethod\n\t}\n\n\tasync attachments(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _shippingMethodTierId = (shippingMethodTierId as ShippingMethodTier).id || shippingMethodTierId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `shipping_method_tiers/${_shippingMethodTierId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(shippingMethodTierId: string | ShippingMethodTier, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _shippingMethodTierId = (shippingMethodTierId as ShippingMethodTier).id || shippingMethodTierId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `shipping_method_tiers/${_shippingMethodTierId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisShippingMethodTier(resource: any): resource is ShippingMethodTier {\n\t\treturn resource.type && (resource.type === ShippingMethodTiers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ShippingMethodTierRel {\n\t\treturn super.relationshipOneToOne<ShippingMethodTierRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ShippingMethodTierRel[] {\n\t\treturn super.relationshipOneToMany<ShippingMethodTierRel>(...ids)\n\t}\n\n\n\ttype(): ShippingMethodTierType {\n\t\treturn ShippingMethodTiers.TYPE\n\t}\n\n}\n\n\nconst instance = new ShippingMethodTiers()\nexport default instance\n\nexport type { ShippingMethodTiers, ShippingMethodTier, ShippingMethodTierType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/links.ts"],"names":[],"mappings":";;;AA2MA,IAAM,KAAA,GAAN,MAAM,MAAA,SAAc,
|
1
|
+
{"version":3,"sources":["../src/resources/links.ts"],"names":[],"mappings":";;;AA2MA,IAAM,KAAA,GAAN,MAAM,MAAA,SAAc,WAAA,CAAkB;AAAA,EAErC,OAAgB,IAAA,GAAiB,OAAA;AAAA,EAEjC,MAAM,MAAA,CAAO,QAAA,EAAsB,MAAA,EAAoC,OAAA,EAA0C;AAChH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,MAAA,CAAM,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAClG,EAEA,MAAM,MAAA,CAAO,QAAA,EAAsB,MAAA,EAAoC,OAAA,EAA0C;AAChH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,MAAA,CAAM,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAClG,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,MAAA,CAAM,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA;AAC7F,EAEA,MAAM,MAAA,CAAO,MAAA,EAAuB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AAI,KAAA,EAAM;AAC3B,IAAO,aAAA,GAAQ","file":"chunk-3URHH3S6.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Event } from './events'\nimport type { Order, OrderType } from './orders'\nimport type { Sku, SkuType } from './skus'\nimport type { SkuList, SkuListType } from './sku_lists'\n\n\ntype LinkType = 'links'\ntype LinkRel = ResourceRel & { type: LinkType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\n\n\nexport type LinkSort = Pick<Link, 'id' | 'name' | 'starts_at' | 'expires_at' | 'item_type' | 'disabled_at'> & ResourceSort\n// export type LinkFilter = Pick<Link, 'id' | 'name' | 'client_id' | 'scope' | 'starts_at' | 'expires_at' | 'item_type' | 'params' | 'disabled_at'> & ResourceFilter\n\n\ninterface Link extends Resource {\n\t\n\treadonly type: LinkType\n\n\t/** \n\t * The link internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The link application client id, used to fetch JWT.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The link application scope, used to fetch JWT.\n\t * @example ```\"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr\"```\n\t */\n\tscope: string\n\t/** \n\t * The activation date/time of this link.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this link (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * Indicates if the link is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The link status. One of 'disabled', 'expired', 'pending', or 'active'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | null\n\t/** \n\t * The link URL second level domain.\n\t * @example ```\"commercelayer.link\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The link URL.\n\t * @example ```\"https://commercelayer.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ\"```\n\t */\n\turl?: string | null\n\t/** \n\t * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.\n\t * @example ```\"orders\"```\n\t */\n\titem_type?: 'orders' | 'skus' | 'sku_lists' | null\n\t/** \n\t * The link params to be passed in URL the query string.\n\t * @example ```{\"param1\":\"ABC\",\"param2\":\"XYZ\"}```\n\t */\n\tparams?: Record<string, any> | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\n\titem?: Order | Sku | SkuList | null\n\tevents?: Event[] | null\n\n}\n\n\ninterface LinkCreate extends ResourceCreate {\n\t\n\t/** \n\t * The link internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The link application client id, used to fetch JWT.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The link application scope, used to fetch JWT.\n\t * @example ```\"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr\"```\n\t */\n\tscope: string\n\t/** \n\t * The activation date/time of this link.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this link (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The link URL second level domain.\n\t * @example ```\"commercelayer.link\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.\n\t * @example ```\"orders\"```\n\t */\n\titem_type?: 'orders' | 'skus' | 'sku_lists' | null\n\t/** \n\t * The link params to be passed in URL the query string.\n\t * @example ```{\"param1\":\"ABC\",\"param2\":\"XYZ\"}```\n\t */\n\tparams?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\titem: OrderRel | SkuRel | SkuListRel\n\n}\n\n\ninterface LinkUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The link internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The link application client id, used to fetch JWT.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id?: string | null\n\t/** \n\t * The link application scope, used to fetch JWT.\n\t * @example ```\"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr\"```\n\t */\n\tscope?: string | null\n\t/** \n\t * The activation date/time of this link.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this link (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The link URL second level domain.\n\t * @example ```\"commercelayer.link\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The link params to be passed in URL the query string.\n\t * @example ```{\"param1\":\"ABC\",\"param2\":\"XYZ\"}```\n\t */\n\tparams?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\titem?: OrderRel | SkuRel | SkuListRel | null\n\n}\n\n\nclass Links extends ApiResource<Link> {\n\n\tstatic readonly TYPE: LinkType = 'links' as const\n\n\tasync create(resource: LinkCreate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.create<LinkCreate, Link>({ ...resource, type: Links.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LinkUpdate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.update<LinkUpdate, Link>({ ...resource, type: Links.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Links.TYPE } : id, options)\n\t}\n\n\tasync events(linkId: string | Link, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _linkId = (linkId as Link).id || linkId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `links/${_linkId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync _disable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.update<LinkUpdate, Link>({ id: (typeof id === 'string')? id: id.id, type: Links.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.update<LinkUpdate, Link>({ id: (typeof id === 'string')? id: id.id, type: Links.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisLink(resource: any): resource is Link {\n\t\treturn resource.type && (resource.type === Links.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LinkRel {\n\t\treturn super.relationshipOneToOne<LinkRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LinkRel[] {\n\t\treturn super.relationshipOneToMany<LinkRel>(...ids)\n\t}\n\n\n\ttype(): LinkType {\n\t\treturn Links.TYPE\n\t}\n\n}\n\n\nconst instance = new Links()\nexport default instance\n\nexport type { Links, Link, LinkCreate, LinkUpdate, LinkType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/inventory_stock_locations.ts"],"names":["ApiResource"],"mappings":";;;;;AA4EA,IAAM,uBAAA,GAAN,MAAM,wBAAA,SAAgCA,
|
1
|
+
{"version":3,"sources":["../src/resources/inventory_stock_locations.ts"],"names":["ApiResource"],"mappings":";;;;;AA4EA,IAAM,uBAAA,GAAN,MAAM,wBAAA,SAAgCA,6BAAA,CAAoC;AAAA,EAEzE,OAAgB,IAAA,GAAmC,2BAAA;AAAA,EAEnD,MAAM,MAAA,CAAO,QAAA,EAAwC,MAAA,EAAsD,OAAA,EAA4D;AACtK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAA,CAAwB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxJ,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwC,MAAA,EAAsD,OAAA,EAA4D;AACtK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,wBAAA,CAAwB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxJ,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,wBAAA,CAAwB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA;AAC/G,EAEA,MAAM,cAAA,CAAe,wBAAA,EAA2D,MAAA,EAA6C,OAAA,EAAmD;AAC/K,IAAA,MAAM,yBAAA,GAA6B,yBAAoD,EAAA,IAAM,wBAAA;AAC7F,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,0BAAA,EAA6B,y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ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { Version } from './versions'\n\n\ntype InventoryStockLocationType = 'inventory_stock_locations'\ntype InventoryStockLocationRel = ResourceRel & { type: InventoryStockLocationType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\n\n\nexport type InventoryStockLocationSort = Pick<InventoryStockLocation, 'id' | 'priority' | 'on_hold'> & ResourceSort\n// export type InventoryStockLocationFilter = Pick<InventoryStockLocation, 'id' | 'priority' | 'on_hold'> & ResourceFilter\n\n\ninterface InventoryStockLocation extends Resource {\n\t\n\treadonly type: InventoryStockLocationType\n\n\t/** \n\t * The stock location priority within the associated invetory model.\n\t * @example ```1```\n\t */\n\tpriority: number\n\t/** \n\t * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled.\n\t */\n\ton_hold?: boolean | null\n\n\tstock_location?: StockLocation | null\n\tinventory_model?: InventoryModel | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface InventoryStockLocationCreate extends ResourceCreate {\n\t\n\t/** \n\t * The stock location priority within the associated invetory model.\n\t * @example ```1```\n\t */\n\tpriority: number\n\t/** \n\t * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled.\n\t */\n\ton_hold?: boolean | null\n\n\tstock_location: StockLocationRel\n\tinventory_model: InventoryModelRel\n\n}\n\n\ninterface InventoryStockLocationUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The stock location priority within the associated invetory model.\n\t * @example ```1```\n\t */\n\tpriority?: number | null\n\t/** \n\t * Indicates if the shipment should be put on hold if fulfilled from the associated stock location. This is useful to manage use cases like back-orders, pre-orders or personalized orders that need to be customized before being fulfilled.\n\t */\n\ton_hold?: boolean | null\n\n\tstock_location?: StockLocationRel | null\n\tinventory_model?: InventoryModelRel | null\n\n}\n\n\nclass InventoryStockLocations extends ApiResource<InventoryStockLocation> {\n\n\tstatic readonly TYPE: InventoryStockLocationType = 'inventory_stock_locations' as const\n\n\tasync create(resource: InventoryStockLocationCreate, params?: QueryParamsRetrieve<InventoryStockLocation>, options?: ResourcesConfig): Promise<InventoryStockLocation> {\n\t\treturn this.resources.create<InventoryStockLocationCreate, InventoryStockLocation>({ ...resource, type: InventoryStockLocations.TYPE }, params, options)\n\t}\n\n\tasync update(resource: InventoryStockLocationUpdate, params?: QueryParamsRetrieve<InventoryStockLocation>, options?: ResourcesConfig): Promise<InventoryStockLocation> {\n\t\treturn this.resources.update<InventoryStockLocationUpdate, InventoryStockLocation>({ ...resource, type: InventoryStockLocations.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: InventoryStockLocations.TYPE } : id, options)\n\t}\n\n\tasync stock_location(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _inventoryStockLocationId = (inventoryStockLocationId as InventoryStockLocation).id || inventoryStockLocationId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `inventory_stock_locations/${_inventoryStockLocationId}/stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync inventory_model(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel> {\n\t\tconst _inventoryStockLocationId = (inventoryStockLocationId as InventoryStockLocation).id || inventoryStockLocationId as string\n\t\treturn this.resources.fetch<InventoryModel>({ type: 'inventory_models' }, `inventory_stock_locations/${_inventoryStockLocationId}/inventory_model`, params, options) as unknown as InventoryModel\n\t}\n\n\tasync versions(inventoryStockLocationId: string | InventoryStockLocation, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _inventoryStockLocationId = (inventoryStockLocationId as InventoryStockLocation).id || inventoryStockLocationId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `inventory_stock_locations/${_inventoryStockLocationId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisInventoryStockLocation(resource: any): resource is InventoryStockLocation {\n\t\treturn resource.type && (resource.type === InventoryStockLocations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): InventoryStockLocationRel {\n\t\treturn super.relationshipOneToOne<InventoryStockLocationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): InventoryStockLocationRel[] {\n\t\treturn super.relationshipOneToMany<InventoryStockLocationRel>(...ids)\n\t}\n\n\n\ttype(): InventoryStockLocationType {\n\t\treturn InventoryStockLocations.TYPE\n\t}\n\n}\n\n\nconst instance = new InventoryStockLocations()\nexport default instance\n\nexport type { InventoryStockLocations, InventoryStockLocation, InventoryStockLocationCreate, InventoryStockLocationUpdate, InventoryStockLocationType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/markets.ts"],"names":["ApiResource"],"mappings":";;;;;AA4PA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAoB,CAAA;AAAA,EAEzC,OAAgB,IAAmB,GAAA,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAwB,EAAA,MAAA,EAAsC,OAA4C,EAAA;AACtH,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA6B,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,QAAQ,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxG,EAEA,MAAM,MAAA,CAAO,QAAwB,EAAA,MAAA,EAAsC,OAA4C,EAAA;AACtH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,QAAA,CAAS,EAAqB,EAAA,MAAA,EAAsC,OAA4C,EAAA;AACrH,IAAA,OAAO,KAAK,SAAU,CAAA,MAAA,CAA6B,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,QAAQ,CAAA,IAAA,EAAM,UAAU,IAAK,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AACpJ,EAEA,MAAM,OAAA,CAAQ,EAAqB,EAAA,MAAA,EAAsC,OAA4C,EAAA;AACpH,IAAA,OAAO,KAAK,SAAU,CAAA,MAAA,CAA6B,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,QAAQ,CAAA,IAAA,EAAM,SAAS,IAAK,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AACnJ,EAGA,SAAS,QAAmC,EAAA;AAC3C,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,QAAQ,CAAA,IAAA;AAAA;AACpD,EAGA,aAAa,EAA2C,EAAA;AACvD,IAAO,OAAA,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA;AAChD,EAEA,sBAAsB,GAA4B,EAAA;AACjD,IAAO,OAAA,KAAA,CAAM,qBAAiC,CAAA,GAAG,GAAG,CAAA;AAAA;AACrD,EAGA,IAAmB,GAAA;AAClB,IAAA,OAAO,QAAQ,CAAA,IAAA;AAAA;AAGjB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAQ,EAAA;AAC7B,IAAO,eAAQ,GAAA","file":"chunk-3XWE56FL.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Merchant, MerchantType } from './merchants'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { SubscriptionModel, SubscriptionModelType } from './subscription_models'\nimport type { DiscountEngine, DiscountEngineType } from './discount_engines'\nimport type { TaxCalculator } from './tax_calculators'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { Store } from './stores'\nimport type { PriceListScheduler } from './price_list_schedulers'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\nimport type { AvalaraAccount, AvalaraAccountType } from './avalara_accounts'\nimport type { StripeTaxAccount, StripeTaxAccountType } from './stripe_tax_accounts'\nimport type { VertexAccount, VertexAccountType } from './vertex_accounts'\nimport type { TaxjarAccount, TaxjarAccountType } from './taxjar_accounts'\nimport type { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators'\nimport type { ExternalTaxCalculator, ExternalTaxCalculatorType } from './external_tax_calculators'\n\n\ntype MarketType = 'markets'\ntype MarketRel = ResourceRel & { type: MarketType }\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\ntype AvalaraAccountRel = ResourceRel & { type: AvalaraAccountType }\ntype StripeTaxAccountRel = ResourceRel & { type: StripeTaxAccountType }\ntype VertexAccountRel = ResourceRel & { type: VertexAccountType }\ntype TaxjarAccountRel = ResourceRel & { type: TaxjarAccountType }\ntype ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType }\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\n\n\nexport type MarketSort = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceSort\n// export type MarketFilter = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceFilter\n\n\ninterface Market extends Resource {\n\t\n\treadonly type: MarketType\n\n\t/** \n\t * Unique identifier for the market (numeric).\n\t * @example ```1234```\n\t */\n\tnumber?: number | null\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname: string\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * Indicates if market belongs to a customer_group.\n\t * @example ```true```\n\t */\n\tprivate?: boolean | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\n\tmerchant?: Merchant | null\n\tprice_list?: PriceList | null\n\tbase_price_list?: PriceList | null\n\tinventory_model?: InventoryModel | null\n\tsubscription_model?: SubscriptionModel | null\n\tdiscount_engine?: DiscountEngine | null\n\ttax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null\n\tcustomer_group?: CustomerGroup | null\n\tgeocoder?: Geocoder | null\n\tdefault_shipping_method?: ShippingMethod | null\n\tdefault_payment_method?: PaymentMethod | null\n\tstores?: Store[] | null\n\tprice_list_schedulers?: PriceListScheduler[] | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface MarketCreate extends ResourceCreate {\n\t\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname: string\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmerchant: MerchantRel\n\tprice_list: PriceListRel\n\tinventory_model: InventoryModelRel\n\tsubscription_model?: SubscriptionModelRel | null\n\tdiscount_engine?: DiscountEngineRel | null\n\ttax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null\n\tcustomer_group?: CustomerGroupRel | null\n\tgeocoder?: GeocoderRel | null\n\tdefault_shipping_method?: ShippingMethodRel | null\n\tdefault_payment_method?: PaymentMethodRel | null\n\n}\n\n\ninterface MarketUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname?: string | null\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmerchant?: MerchantRel | null\n\tprice_list?: PriceListRel | null\n\tinventory_model?: InventoryModelRel | null\n\tsubscription_model?: SubscriptionModelRel | null\n\tdiscount_engine?: DiscountEngineRel | null\n\ttax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null\n\tcustomer_group?: CustomerGroupRel | null\n\tgeocoder?: GeocoderRel | null\n\tdefault_shipping_method?: ShippingMethodRel | null\n\tdefault_payment_method?: PaymentMethodRel | null\n\n}\n\n\nclass Markets extends ApiResource<Market> {\n\n\tstatic readonly TYPE: MarketType = 'markets' as const\n\n\tasync create(resource: MarketCreate, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.create<MarketCreate, Market>({ ...resource, type: Markets.TYPE }, params, options)\n\t}\n\n\tasync update(resource: MarketUpdate, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ ...resource, type: Markets.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Markets.TYPE } : id, options)\n\t}\n\n\tasync merchant(marketId: string | Market, params?: QueryParamsRetrieve<Merchant>, options?: ResourcesConfig): Promise<Merchant> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Merchant>({ type: 'merchants' }, `markets/${_marketId}/merchant`, params, options) as unknown as Merchant\n\t}\n\n\tasync price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `markets/${_marketId}/price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync base_price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `markets/${_marketId}/base_price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<InventoryModel>({ type: 'inventory_models' }, `markets/${_marketId}/inventory_model`, params, options) as unknown as InventoryModel\n\t}\n\n\tasync subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<SubscriptionModel>({ type: 'subscription_models' }, `markets/${_marketId}/subscription_model`, params, options) as unknown as SubscriptionModel\n\t}\n\n\tasync discount_engine(marketId: string | Market, params?: QueryParamsRetrieve<DiscountEngine>, options?: ResourcesConfig): Promise<DiscountEngine> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<DiscountEngine>({ type: 'discount_engines' }, `markets/${_marketId}/discount_engine`, params, options) as unknown as DiscountEngine\n\t}\n\n\tasync tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<TaxCalculator>({ type: 'tax_calculators' }, `markets/${_marketId}/tax_calculator`, params, options) as unknown as TaxCalculator\n\t}\n\n\tasync customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<CustomerGroup>({ type: 'customer_groups' }, `markets/${_marketId}/customer_group`, params, options) as unknown as CustomerGroup\n\t}\n\n\tasync geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `markets/${_marketId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `markets/${_marketId}/default_shipping_method`, params, options) as unknown as ShippingMethod\n\t}\n\n\tasync default_payment_method(marketId: string | Market, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `markets/${_marketId}/default_payment_method`, params, options) as unknown as PaymentMethod\n\t}\n\n\tasync stores(marketId: string | Market, params?: QueryParamsList<Store>, options?: ResourcesConfig): Promise<ListResponse<Store>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Store>({ type: 'stores' }, `markets/${_marketId}/stores`, params, options) as unknown as ListResponse<Store>\n\t}\n\n\tasync price_list_schedulers(marketId: string | Market, params?: QueryParamsList<PriceListScheduler>, options?: ResourcesConfig): Promise<ListResponse<PriceListScheduler>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceListScheduler>({ type: 'price_list_schedulers' }, `markets/${_marketId}/price_list_schedulers`, params, options) as unknown as ListResponse<PriceListScheduler>\n\t}\n\n\tasync attachments(marketId: string | Market, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `markets/${_marketId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(marketId: string | Market, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `markets/${_marketId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _disable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ id: (typeof id === 'string')? id: id.id, type: Markets.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ id: (typeof id === 'string')? id: id.id, type: Markets.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisMarket(resource: any): resource is Market {\n\t\treturn resource.type && (resource.type === Markets.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): MarketRel {\n\t\treturn super.relationshipOneToOne<MarketRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): MarketRel[] {\n\t\treturn super.relationshipOneToMany<MarketRel>(...ids)\n\t}\n\n\n\ttype(): MarketType {\n\t\treturn Markets.TYPE\n\t}\n\n}\n\n\nconst instance = new Markets()\nexport default instance\n\nexport type { Markets, Market, MarketCreate, MarketUpdate, MarketType }\n"]}
|
1
|
+
{"version":3,"sources":["../src/resources/markets.ts"],"names":["ApiResource"],"mappings":";;;;;AA4PA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxG,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA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,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,UAAU,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AACpJ,EAEA,MAAM,OAAA,CAAQ,EAAA,EAAqB,MAAA,EAAsC,OAAA,EAA4C;AACpH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AACnJ,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA;AACpD,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA;AAChD,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA;AACrD,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA;AAGjB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-3XWE56FL.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Merchant, MerchantType } from './merchants'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { SubscriptionModel, SubscriptionModelType } from './subscription_models'\nimport type { DiscountEngine, DiscountEngineType } from './discount_engines'\nimport type { TaxCalculator } from './tax_calculators'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { Store } from './stores'\nimport type { PriceListScheduler } from './price_list_schedulers'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\nimport type { AvalaraAccount, AvalaraAccountType } from './avalara_accounts'\nimport type { StripeTaxAccount, StripeTaxAccountType } from './stripe_tax_accounts'\nimport type { VertexAccount, VertexAccountType } from './vertex_accounts'\nimport type { TaxjarAccount, TaxjarAccountType } from './taxjar_accounts'\nimport type { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators'\nimport type { ExternalTaxCalculator, ExternalTaxCalculatorType } from './external_tax_calculators'\n\n\ntype MarketType = 'markets'\ntype MarketRel = ResourceRel & { type: MarketType }\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\ntype AvalaraAccountRel = ResourceRel & { type: AvalaraAccountType }\ntype StripeTaxAccountRel = ResourceRel & { type: StripeTaxAccountType }\ntype VertexAccountRel = ResourceRel & { type: VertexAccountType }\ntype TaxjarAccountRel = ResourceRel & { type: TaxjarAccountType }\ntype ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType }\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\n\n\nexport type MarketSort = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceSort\n// export type MarketFilter = Pick<Market, 'id' | 'name' | 'code' | 'disabled_at'> & ResourceFilter\n\n\ninterface Market extends Resource {\n\t\n\treadonly type: MarketType\n\n\t/** \n\t * Unique identifier for the market (numeric).\n\t * @example ```1234```\n\t */\n\tnumber?: number | null\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname: string\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * Indicates if market belongs to a customer_group.\n\t * @example ```true```\n\t */\n\tprivate?: boolean | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\n\tmerchant?: Merchant | null\n\tprice_list?: PriceList | null\n\tbase_price_list?: PriceList | null\n\tinventory_model?: InventoryModel | null\n\tsubscription_model?: SubscriptionModel | null\n\tdiscount_engine?: DiscountEngine | null\n\ttax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null\n\tcustomer_group?: CustomerGroup | null\n\tgeocoder?: Geocoder | null\n\tdefault_shipping_method?: ShippingMethod | null\n\tdefault_payment_method?: PaymentMethod | null\n\tstores?: Store[] | null\n\tprice_list_schedulers?: PriceListScheduler[] | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface MarketCreate extends ResourceCreate {\n\t\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname: string\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmerchant: MerchantRel\n\tprice_list: PriceListRel\n\tinventory_model: InventoryModelRel\n\tsubscription_model?: SubscriptionModelRel | null\n\tdiscount_engine?: DiscountEngineRel | null\n\ttax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null\n\tcustomer_group?: CustomerGroupRel | null\n\tgeocoder?: GeocoderRel | null\n\tdefault_shipping_method?: ShippingMethodRel | null\n\tdefault_payment_method?: PaymentMethodRel | null\n\n}\n\n\ninterface MarketUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The market's internal name.\n\t * @example ```\"EU Market\"```\n\t */\n\tname?: string | null\n\t/** \n\t * A string that you can use to identify the market (must be unique within the environment).\n\t * @example ```\"europe1\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The Facebook Pixed ID.\n\t * @example ```\"1234567890\"```\n\t */\n\tfacebook_pixel_id?: string | null\n\t/** \n\t * The checkout URL for this market.\n\t * @example ```\"https://checkout.yourbrand.com/:order_id\"```\n\t */\n\tcheckout_url?: string | null\n\t/** \n\t * The URL used to overwrite prices by an external source.\n\t * @example ```\"https://external_prices.yourbrand.com\"```\n\t */\n\texternal_prices_url?: string | null\n\t/** \n\t * The URL used to validate orders by an external source.\n\t * @example ```\"https://external_validation.yourbrand.com\"```\n\t */\n\texternal_order_validation_url?: string | null\n\t/** \n\t * When specified indicates the maximum number of shipping line items with cost that will be added to an order.\n\t * @example ```3```\n\t */\n\tshipping_cost_cutoff?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\n\tmerchant?: MerchantRel | null\n\tprice_list?: PriceListRel | null\n\tinventory_model?: InventoryModelRel | null\n\tsubscription_model?: SubscriptionModelRel | null\n\tdiscount_engine?: DiscountEngineRel | null\n\ttax_calculator?: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel | null\n\tcustomer_group?: CustomerGroupRel | null\n\tgeocoder?: GeocoderRel | null\n\tdefault_shipping_method?: ShippingMethodRel | null\n\tdefault_payment_method?: PaymentMethodRel | null\n\n}\n\n\nclass Markets extends ApiResource<Market> {\n\n\tstatic readonly TYPE: MarketType = 'markets' as const\n\n\tasync create(resource: MarketCreate, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.create<MarketCreate, Market>({ ...resource, type: Markets.TYPE }, params, options)\n\t}\n\n\tasync update(resource: MarketUpdate, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ ...resource, type: Markets.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Markets.TYPE } : id, options)\n\t}\n\n\tasync merchant(marketId: string | Market, params?: QueryParamsRetrieve<Merchant>, options?: ResourcesConfig): Promise<Merchant> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Merchant>({ type: 'merchants' }, `markets/${_marketId}/merchant`, params, options) as unknown as Merchant\n\t}\n\n\tasync price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `markets/${_marketId}/price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync base_price_list(marketId: string | Market, params?: QueryParamsRetrieve<PriceList>, options?: ResourcesConfig): Promise<PriceList> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceList>({ type: 'price_lists' }, `markets/${_marketId}/base_price_list`, params, options) as unknown as PriceList\n\t}\n\n\tasync inventory_model(marketId: string | Market, params?: QueryParamsRetrieve<InventoryModel>, options?: ResourcesConfig): Promise<InventoryModel> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<InventoryModel>({ type: 'inventory_models' }, `markets/${_marketId}/inventory_model`, params, options) as unknown as InventoryModel\n\t}\n\n\tasync subscription_model(marketId: string | Market, params?: QueryParamsRetrieve<SubscriptionModel>, options?: ResourcesConfig): Promise<SubscriptionModel> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<SubscriptionModel>({ type: 'subscription_models' }, `markets/${_marketId}/subscription_model`, params, options) as unknown as SubscriptionModel\n\t}\n\n\tasync discount_engine(marketId: string | Market, params?: QueryParamsRetrieve<DiscountEngine>, options?: ResourcesConfig): Promise<DiscountEngine> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<DiscountEngine>({ type: 'discount_engines' }, `markets/${_marketId}/discount_engine`, params, options) as unknown as DiscountEngine\n\t}\n\n\tasync tax_calculator(marketId: string | Market, params?: QueryParamsRetrieve<TaxCalculator>, options?: ResourcesConfig): Promise<TaxCalculator> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<TaxCalculator>({ type: 'tax_calculators' }, `markets/${_marketId}/tax_calculator`, params, options) as unknown as TaxCalculator\n\t}\n\n\tasync customer_group(marketId: string | Market, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<CustomerGroup>({ type: 'customer_groups' }, `markets/${_marketId}/customer_group`, params, options) as unknown as CustomerGroup\n\t}\n\n\tasync geocoder(marketId: string | Market, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `markets/${_marketId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync default_shipping_method(marketId: string | Market, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `markets/${_marketId}/default_shipping_method`, params, options) as unknown as ShippingMethod\n\t}\n\n\tasync default_payment_method(marketId: string | Market, params?: QueryParamsRetrieve<PaymentMethod>, options?: ResourcesConfig): Promise<PaymentMethod> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `markets/${_marketId}/default_payment_method`, params, options) as unknown as PaymentMethod\n\t}\n\n\tasync stores(marketId: string | Market, params?: QueryParamsList<Store>, options?: ResourcesConfig): Promise<ListResponse<Store>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Store>({ type: 'stores' }, `markets/${_marketId}/stores`, params, options) as unknown as ListResponse<Store>\n\t}\n\n\tasync price_list_schedulers(marketId: string | Market, params?: QueryParamsList<PriceListScheduler>, options?: ResourcesConfig): Promise<ListResponse<PriceListScheduler>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<PriceListScheduler>({ type: 'price_list_schedulers' }, `markets/${_marketId}/price_list_schedulers`, params, options) as unknown as ListResponse<PriceListScheduler>\n\t}\n\n\tasync attachments(marketId: string | Market, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `markets/${_marketId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(marketId: string | Market, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _marketId = (marketId as Market).id || marketId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `markets/${_marketId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _disable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ id: (typeof id === 'string')? id: id.id, type: Markets.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | Market, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\treturn this.resources.update<MarketUpdate, Market>({ id: (typeof id === 'string')? id: id.id, type: Markets.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisMarket(resource: any): resource is Market {\n\t\treturn resource.type && (resource.type === Markets.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): MarketRel {\n\t\treturn super.relationshipOneToOne<MarketRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): MarketRel[] {\n\t\treturn super.relationshipOneToMany<MarketRel>(...ids)\n\t}\n\n\n\ttype(): MarketType {\n\t\treturn Markets.TYPE\n\t}\n\n}\n\n\nconst instance = new Markets()\nexport default instance\n\nexport type { Markets, Market, MarketCreate, MarketUpdate, MarketType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/tax_categories.ts"],"names":["ApiResource"],"mappings":";;;;;AA0FA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,
|
1
|
+
{"version":3,"sources":["../src/resources/tax_categories.ts"],"names":["ApiResource"],"mappings":";;;;;AA0FA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAAA,CAAyB;AAAA,EAEpD,OAAgB,IAAA,GAAwB,gBAAA;AAAA,EAExC,MAAM,MAAA,CAAO,QAAA,EAA6B,MAAA,EAA2C,OAAA,EAAiD;AACrI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxH,EAEA,MAAM,MAAA,CAAO,QAAA,EAA6B,MAAA,EAA2C,OAAA,EAAiD;AACrI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxH,EAEA,M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;AAAA;AAC1D,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA;AACrD,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA;AAC1D,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA;AAGvB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-42DT6ZET.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Sku, SkuType } from './skus'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\nimport type { AvalaraAccount, AvalaraAccountType } from './avalara_accounts'\nimport type { StripeTaxAccount, StripeTaxAccountType } from './stripe_tax_accounts'\nimport type { VertexAccount, VertexAccountType } from './vertex_accounts'\nimport type { TaxjarAccount, TaxjarAccountType } from './taxjar_accounts'\nimport type { ManualTaxCalculator, ManualTaxCalculatorType } from './manual_tax_calculators'\nimport type { ExternalTaxCalculator, ExternalTaxCalculatorType } from './external_tax_calculators'\n\n\ntype TaxCategoryType = 'tax_categories'\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype AvalaraAccountRel = ResourceRel & { type: AvalaraAccountType }\ntype StripeTaxAccountRel = ResourceRel & { type: StripeTaxAccountType }\ntype VertexAccountRel = ResourceRel & { type: VertexAccountType }\ntype TaxjarAccountRel = ResourceRel & { type: TaxjarAccountType }\ntype ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType }\ntype ExternalTaxCalculatorRel = ResourceRel & { type: ExternalTaxCalculatorType }\n\n\nexport type TaxCategorySort = Pick<TaxCategory, 'id' | 'code'> & ResourceSort\n// export type TaxCategoryFilter = Pick<TaxCategory, 'id' | 'code'> & ResourceFilter\n\n\ninterface TaxCategory extends Resource {\n\t\n\treadonly type: TaxCategoryType\n\n\t/** \n\t * The tax category identifier code, specific for a particular tax calculator.\n\t * @example ```\"31000\"```\n\t */\n\tcode: string\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\n\tsku?: Sku | null\n\ttax_calculator?: AvalaraAccount | StripeTaxAccount | VertexAccount | TaxjarAccount | ManualTaxCalculator | ExternalTaxCalculator | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface TaxCategoryCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax category identifier code, specific for a particular tax calculator.\n\t * @example ```\"31000\"```\n\t */\n\tcode: string\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\n\tsku: SkuRel\n\ttax_calculator: AvalaraAccountRel | StripeTaxAccountRel | VertexAccountRel | TaxjarAccountRel | ManualTaxCalculatorRel | ExternalTaxCalculatorRel\n\n}\n\n\ninterface TaxCategoryUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax category identifier code, specific for a particular tax calculator.\n\t * @example ```\"31000\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\n\tsku?: SkuRel | null\n\n}\n\n\nclass TaxCategories extends ApiResource<TaxCategory> {\n\n\tstatic readonly TYPE: TaxCategoryType = 'tax_categories' as const\n\n\tasync create(resource: TaxCategoryCreate, params?: QueryParamsRetrieve<TaxCategory>, options?: ResourcesConfig): Promise<TaxCategory> {\n\t\treturn this.resources.create<TaxCategoryCreate, TaxCategory>({ ...resource, type: TaxCategories.TYPE }, params, options)\n\t}\n\n\tasync update(resource: TaxCategoryUpdate, params?: QueryParamsRetrieve<TaxCategory>, options?: ResourcesConfig): Promise<TaxCategory> {\n\t\treturn this.resources.update<TaxCategoryUpdate, TaxCategory>({ ...resource, type: TaxCategories.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: TaxCategories.TYPE } : id, options)\n\t}\n\n\tasync sku(taxCategoryId: string | TaxCategory, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _taxCategoryId = (taxCategoryId as TaxCategory).id || taxCategoryId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `tax_categories/${_taxCategoryId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync attachments(taxCategoryId: string | TaxCategory, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _taxCategoryId = (taxCategoryId as TaxCategory).id || taxCategoryId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `tax_categories/${_taxCategoryId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(taxCategoryId: string | TaxCategory, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _taxCategoryId = (taxCategoryId as TaxCategory).id || taxCategoryId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `tax_categories/${_taxCategoryId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisTaxCategory(resource: any): resource is TaxCategory {\n\t\treturn resource.type && (resource.type === TaxCategories.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TaxCategoryRel {\n\t\treturn super.relationshipOneToOne<TaxCategoryRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TaxCategoryRel[] {\n\t\treturn super.relationshipOneToMany<TaxCategoryRel>(...ids)\n\t}\n\n\n\ttype(): TaxCategoryType {\n\t\treturn TaxCategories.TYPE\n\t}\n\n}\n\n\nconst instance = new TaxCategories()\nexport default instance\n\nexport type { TaxCategories, TaxCategory, TaxCategoryCreate, TaxCategoryUpdate, TaxCategoryType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/shipping_zones.ts"],"names":[],"mappings":";;;AAgJA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,
|
1
|
+
{"version":3,"sources":["../src/resources/shipping_zones.ts"],"names":[],"mappings":";;;AAgJA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,WAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA;AACrG,EAEA,MAAM,WAAA,CAAY,cAAA,EAAuC,MAAA,EAAsC,OAAA,EAA8D;AAC5J,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAM,cAAA;AAC/D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAA,EAAc,EAAG,CAAA,eAAA,EAAkB,eAAe,CAAA,YAAA,CAAA,EAAgB,MAAA,EAAQ,OAAO,CAAA;AAAA;AAClI,EAEA,MAAM,QAAA,CAAS,cAAA,EAAuC,MAAA,EAAmC,OAAA,EAA2D;AACnJ,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAM,cAAA;AAC/D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,eAAA,EAAkB,eAAe,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA;AACzH,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA;AAC1D,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA;AACtD,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA;AAC3D,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA;AAGvB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-432EXURP.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype ShippingZoneType = 'shipping_zones'\ntype ShippingZoneRel = ResourceRel & { type: ShippingZoneType }\n\n\nexport type ShippingZoneSort = Pick<ShippingZone, 'id' | 'name'> & ResourceSort\n// export type ShippingZoneFilter = Pick<ShippingZone, 'id' | 'name'> & ResourceFilter\n\n\ninterface ShippingZone extends Resource {\n\t\n\treadonly type: ShippingZoneType\n\n\t/** \n\t * The shipping zone's internal name.\n\t * @example ```\"Europe (main countries)\"```\n\t */\n\tname: string\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ShippingZoneCreate extends ResourceCreate {\n\t\n\t/** \n\t * The shipping zone's internal name.\n\t * @example ```\"Europe (main countries)\"```\n\t */\n\tname: string\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\t\n}\n\n\ninterface ShippingZoneUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The shipping zone's internal name.\n\t * @example ```\"Europe (main countries)\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE|HU|LV|LT\"```\n\t */\n\tcountry_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address country code, max size is 5000.\n\t * @example ```\"AT|BE|BG|CZ|DK|EE|DE\"```\n\t */\n\tnot_country_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]|D[CE]|FL\"```\n\t */\n\tstate_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping address state code, max size is 5000.\n\t * @example ```\"A[KLRZ]|C[AOT]\"```\n\t */\n\tnot_state_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated to match the shipping address zip code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3|JE4|JE5)\"```\n\t */\n\tzip_code_regex?: string | null\n\t/** \n\t * The regex that will be evaluated as negative match for the shipping zip country code, max size is 5000.\n\t * @example ```\"(?i)(JE1|JE2|JE3)\"```\n\t */\n\tnot_zip_code_regex?: string | null\n\t\n}\n\n\nclass ShippingZones extends ApiResource<ShippingZone> {\n\n\tstatic readonly TYPE: ShippingZoneType = 'shipping_zones' as const\n\n\tasync create(resource: ShippingZoneCreate, params?: QueryParamsRetrieve<ShippingZone>, options?: ResourcesConfig): Promise<ShippingZone> {\n\t\treturn this.resources.create<ShippingZoneCreate, ShippingZone>({ ...resource, type: ShippingZones.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ShippingZoneUpdate, params?: QueryParamsRetrieve<ShippingZone>, options?: ResourcesConfig): Promise<ShippingZone> {\n\t\treturn this.resources.update<ShippingZoneUpdate, ShippingZone>({ ...resource, type: ShippingZones.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ShippingZones.TYPE } : id, options)\n\t}\n\n\tasync attachments(shippingZoneId: string | ShippingZone, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _shippingZoneId = (shippingZoneId as ShippingZone).id || shippingZoneId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `shipping_zones/${_shippingZoneId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(shippingZoneId: string | ShippingZone, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _shippingZoneId = (shippingZoneId as ShippingZone).id || shippingZoneId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `shipping_zones/${_shippingZoneId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisShippingZone(resource: any): resource is ShippingZone {\n\t\treturn resource.type && (resource.type === ShippingZones.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ShippingZoneRel {\n\t\treturn super.relationshipOneToOne<ShippingZoneRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ShippingZoneRel[] {\n\t\treturn super.relationshipOneToMany<ShippingZoneRel>(...ids)\n\t}\n\n\n\ttype(): ShippingZoneType {\n\t\treturn ShippingZones.TYPE\n\t}\n\n}\n\n\nconst instance = new ShippingZones()\nexport default instance\n\nexport type { ShippingZones, ShippingZone, ShippingZoneCreate, ShippingZoneUpdate, ShippingZoneType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/captures.ts"],"names":["ApiResource"],"mappings":";;;;;AAkKA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiBA,6BAAqB,CAAA;AAAA,EAE3C,OAAgB,IAAoB,GAAA,UAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAyB,EAAA,MAAA,EAAuC,OAA6C,EAAA;AACzH,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA+B,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,SAAS,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC3G,EAEA,MAAM,KAAA,CAAM,SAA6B,EAAA,MAAA,EAAqC,OAA2C,EAAA;AACxH,IAAM,MAAA,UAAA,GAAc,UAAsB,EAAM,IAAA,SAAA;AAChD,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAa,EAAE,IAAA,EAAM,QAAS,EAAA,EAAG,CAAY,SAAA,EAAA,UAAU,CAAU,MAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACvG,EAEA,MAAM,WAAA,CAAY,SAA6B,EAAA,MAAA,EAAsC,OAA8D,EAAA;AAClJ,IAAM,MAAA,UAAA,GAAc,UAAsB,EAAM,IAAA,SAAA;AA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AAa,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AAC3K,EAEA,MAAM,OAAA,CAAQ,EAAsB,EAAA,MAAA,EAAuC,OAA6C,EAAA;AACvH,IAAA,OAAO,KAAK,SAAU,CAAA,MAAA,CAA+B,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,SAAS,CAAA,IAAA,EAAM,SAAS,IAAK,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AACtJ,EAGA,UAAU,QAAoC,EAAA;AAC7C,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,SAAS,CAAA,IAAA;AAAA;AACrD,EAGA,aAAa,EAA4C,EAAA;AACxD,IAAO,OAAA,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA;AACjD,EAEA,sBAAsB,GAA6B,EAAA;AAClD,IAAO,OAAA,KAAA,CAAM,qBAAkC,CAAA,GAAG,GAAG,CAAA;AAAA;AACtD,EAGA,IAAoB,GAAA;AACnB,IAAA,OAAO,SAAS,CAAA,IAAA;AAAA;AAGlB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAS,EAAA;AAC9B,IAAO,gBAAQ,GAAA","file":"chunk-4IH4EHXT.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { Authorization } from './authorizations'\nimport type { Refund } from './refunds'\nimport type { Return } from './returns'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype CaptureType = 'captures'\ntype CaptureRel = ResourceRel & { type: CaptureType }\n\n\nexport type CaptureSort = Pick<Capture, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type CaptureFilter = Pick<Capture, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Capture extends Resource {\n\t\n\treadonly type: CaptureType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\t/** \n\t * The amount to be refunded, in cents.\n\t * @example ```500```\n\t */\n\trefund_amount_cents?: number | null\n\t/** \n\t * The amount to be refunded, float.\n\t * @example ```5```\n\t */\n\trefund_amount_float?: number | null\n\t/** \n\t * The amount to be refunded, formatted.\n\t * @example ```\"€5,00\"```\n\t */\n\tformatted_refund_amount?: string | null\n\t/** \n\t * The balance to be refunded, in cents.\n\t * @example ```1000```\n\t */\n\trefund_balance_cents?: number | null\n\t/** \n\t * The balance to be refunded, float.\n\t * @example ```10```\n\t */\n\trefund_balance_float?: number | null\n\t/** \n\t * The balance to be refunded, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_refund_balance?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\treference_authorization?: Authorization | null\n\trefunds?: Refund[] | null\n\treturn?: Return | null\n\n}\n\n\ninterface CaptureUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t/** \n\t * Send this attribute if you want to create a refund for this capture.\n\t * @example ```true```\n\t */\n\t_refund?: boolean | null\n\t/** \n\t * Send this attribute as a value in cents if you want to overwrite the amount to be refunded.\n\t * @example ```500```\n\t */\n\t_refund_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid).\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\t\n}\n\n\nclass Captures extends ApiResource<Capture> {\n\n\tstatic readonly TYPE: CaptureType = 'captures' as const\n\n\tasync update(resource: CaptureUpdate, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ ...resource, type: Captures.TYPE }, params, options)\n\t}\n\n\tasync order(captureId: string | Capture, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `captures/${_captureId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(captureId: string | Capture, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `captures/${_captureId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(captureId: string | Capture, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `captures/${_captureId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(captureId: string | Capture, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `captures/${_captureId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync reference_authorization(captureId: string | Capture, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Authorization>({ type: 'authorizations' }, `captures/${_captureId}/reference_authorization`, params, options) as unknown as Authorization\n\t}\n\n\tasync refunds(captureId: string | Capture, params?: QueryParamsList<Refund>, options?: ResourcesConfig): Promise<ListResponse<Refund>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Refund>({ type: 'refunds' }, `captures/${_captureId}/refunds`, params, options) as unknown as ListResponse<Refund>\n\t}\n\n\tasync return(captureId: string | Capture, params?: QueryParamsRetrieve<Return>, options?: ResourcesConfig): Promise<Return> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `captures/${_captureId}/return`, params, options) as unknown as Return\n\t}\n\n\tasync _forward(id: string | Capture, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _forward: true }, params, options)\n\t}\n\n\tasync _refund(id: string | Capture, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _refund: true }, params, options)\n\t}\n\n\tasync _refund_amount_cents(id: string | Capture, triggerValue: number, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _refund_amount_cents: triggerValue }, params, options)\n\t}\n\n\tasync _cancel(id: string | Capture, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisCapture(resource: any): resource is Capture {\n\t\treturn resource.type && (resource.type === Captures.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CaptureRel {\n\t\treturn super.relationshipOneToOne<CaptureRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CaptureRel[] {\n\t\treturn super.relationshipOneToMany<CaptureRel>(...ids)\n\t}\n\n\n\ttype(): CaptureType {\n\t\treturn Captures.TYPE\n\t}\n\n}\n\n\nconst instance = new Captures()\nexport default instance\n\nexport type { Captures, Capture, CaptureUpdate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AAS,IAAA,KAAS,SAAA,CAAS,IAAA;AAAA;AACrD,EAGA,aAAa,EAAA,EAA4C;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA;AACjD,EAEA,sBAAsB,GAAA,EAA6B;AAClD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAkC,GAAG,GAAG,CAAA;AAAA;AACtD,EAGA,IAAA,GAAoB;AACnB,IAAA,OAAO,SAAA,CAAS,IAAA;AAAA;AAGlB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAA,EAAS;AAC9B,IAAO,gBAAA,GAAQ","file":"chunk-4IH4EHXT.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Order } from './orders'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { Authorization } from './authorizations'\nimport type { Refund } from './refunds'\nimport type { Return } from './returns'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype CaptureType = 'captures'\ntype CaptureRel = ResourceRel & { type: CaptureType }\n\n\nexport type CaptureSort = Pick<Capture, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type CaptureFilter = Pick<Capture, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Capture extends Resource {\n\t\n\treadonly type: CaptureType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\t/** \n\t * The amount to be refunded, in cents.\n\t * @example ```500```\n\t */\n\trefund_amount_cents?: number | null\n\t/** \n\t * The amount to be refunded, float.\n\t * @example ```5```\n\t */\n\trefund_amount_float?: number | null\n\t/** \n\t * The amount to be refunded, formatted.\n\t * @example ```\"€5,00\"```\n\t */\n\tformatted_refund_amount?: string | null\n\t/** \n\t * The balance to be refunded, in cents.\n\t * @example ```1000```\n\t */\n\trefund_balance_cents?: number | null\n\t/** \n\t * The balance to be refunded, float.\n\t * @example ```10```\n\t */\n\trefund_balance_float?: number | null\n\t/** \n\t * The balance to be refunded, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_refund_balance?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\treference_authorization?: Authorization | null\n\trefunds?: Refund[] | null\n\treturn?: Return | null\n\n}\n\n\ninterface CaptureUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t/** \n\t * Send this attribute if you want to create a refund for this capture.\n\t * @example ```true```\n\t */\n\t_refund?: boolean | null\n\t/** \n\t * Send this attribute as a value in cents if you want to overwrite the amount to be refunded.\n\t * @example ```500```\n\t */\n\t_refund_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to refund a succeeded capture of a pending order (which is left unpaid).\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\t\n}\n\n\nclass Captures extends ApiResource<Capture> {\n\n\tstatic readonly TYPE: CaptureType = 'captures' as const\n\n\tasync update(resource: CaptureUpdate, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ ...resource, type: Captures.TYPE }, params, options)\n\t}\n\n\tasync order(captureId: string | Capture, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `captures/${_captureId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(captureId: string | Capture, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `captures/${_captureId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(captureId: string | Capture, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `captures/${_captureId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(captureId: string | Capture, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `captures/${_captureId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync reference_authorization(captureId: string | Capture, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Authorization>({ type: 'authorizations' }, `captures/${_captureId}/reference_authorization`, params, options) as unknown as Authorization\n\t}\n\n\tasync refunds(captureId: string | Capture, params?: QueryParamsList<Refund>, options?: ResourcesConfig): Promise<ListResponse<Refund>> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Refund>({ type: 'refunds' }, `captures/${_captureId}/refunds`, params, options) as unknown as ListResponse<Refund>\n\t}\n\n\tasync return(captureId: string | Capture, params?: QueryParamsRetrieve<Return>, options?: ResourcesConfig): Promise<Return> {\n\t\tconst _captureId = (captureId as Capture).id || captureId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `captures/${_captureId}/return`, params, options) as unknown as Return\n\t}\n\n\tasync _forward(id: string | Capture, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _forward: true }, params, options)\n\t}\n\n\tasync _refund(id: string | Capture, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _refund: true }, params, options)\n\t}\n\n\tasync _refund_amount_cents(id: string | Capture, triggerValue: number, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _refund_amount_cents: triggerValue }, params, options)\n\t}\n\n\tasync _cancel(id: string | Capture, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\treturn this.resources.update<CaptureUpdate, Capture>({ id: (typeof id === 'string')? id: id.id, type: Captures.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisCapture(resource: any): resource is Capture {\n\t\treturn resource.type && (resource.type === Captures.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CaptureRel {\n\t\treturn super.relationshipOneToOne<CaptureRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CaptureRel[] {\n\t\treturn super.relationshipOneToMany<CaptureRel>(...ids)\n\t}\n\n\n\ttype(): CaptureType {\n\t\treturn Captures.TYPE\n\t}\n\n}\n\n\nconst instance = new Captures()\nexport default instance\n\nexport type { Captures, Capture, CaptureUpdate, CaptureType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/customer_subscriptions.ts"],"names":[],"mappings":";;;AAgDA,IAAM,qBAAA,GAAN,MAAM,sBAAA,SAA8B,
|
1
|
+
{"version":3,"sources":["../src/resources/customer_subscriptions.ts"],"names":[],"mappings":";;;AAgDA,IAAM,qBAAA,GAAN,MAAM,sBAAA,SAA8B,WAAA,CAAkC;AAAA,EAErE,OAAgB,IAAA,GAAiC,wBAAA;AAAA,EAEjD,MAAM,MAAA,CAAO,QAAA,EAAsC,MAAA,EAAoD,OAAA,EAA0D;AAChK,IAAA,OAAO,IAAA,CAA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sBAAA,EAAuD,MAAA,EAAmC,OAAA,EAA2D;AACnK,IAAA,MAAM,uBAAA,GAA2B,uBAAgD,EAAA,IAAM,sBAAA;AACvF,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,uBAAA,EAA0B,uBAAuB,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA;AACzI,EAGA,uBAAuB,QAAA,EAAiD;AACvE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,sBAAA,CAAsB,IAAA;AAAA;AAClE,EAGA,aAAa,EAAA,EAAyD;AACrE,IAAA,OAAO,KAAA,CAAM,qBAA8C,EAAE,CAAA;AAAA;AAC9D,EAEA,sBAAsB,GAAA,EAA0C;AAC/D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA+C,GAAG,GAAG,CAAA;AAAA;AACnE,EAGA,IAAA,GAAiC;AAChC,IAAA,OAAO,sBAAA,CAAsB,IAAA;AAAA;AAG/B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,qBAAA,EAAsB;AAC3C,IAAO,8BAAA,GAAQ","file":"chunk-4KFJUIFD.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Customer } from './customers'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype CustomerSubscriptionType = 'customer_subscriptions'\ntype CustomerSubscriptionRel = ResourceRel & { type: CustomerSubscriptionType }\n\n\nexport type CustomerSubscriptionSort = Pick<CustomerSubscription, 'id'> & ResourceSort\n// export type CustomerSubscriptionFilter = Pick<CustomerSubscription, 'id'> & ResourceFilter\n\n\ninterface CustomerSubscription extends Resource {\n\t\n\treadonly type: CustomerSubscriptionType\n\n\t/** \n\t * The email of the customer that owns the subscription.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email: string\n\n\tcustomer?: Customer | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface CustomerSubscriptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The email of the customer that owns the subscription.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email: string\n\t\n}\n\n\ntype CustomerSubscriptionUpdate = ResourceUpdate\n\n\nclass CustomerSubscriptions extends ApiResource<CustomerSubscription> {\n\n\tstatic readonly TYPE: CustomerSubscriptionType = 'customer_subscriptions' as const\n\n\tasync create(resource: CustomerSubscriptionCreate, params?: QueryParamsRetrieve<CustomerSubscription>, options?: ResourcesConfig): Promise<CustomerSubscription> {\n\t\treturn this.resources.create<CustomerSubscriptionCreate, CustomerSubscription>({ ...resource, type: CustomerSubscriptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CustomerSubscriptionUpdate, params?: QueryParamsRetrieve<CustomerSubscription>, options?: ResourcesConfig): Promise<CustomerSubscription> {\n\t\treturn this.resources.update<CustomerSubscriptionUpdate, CustomerSubscription>({ ...resource, type: CustomerSubscriptions.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: CustomerSubscriptions.TYPE } : id, options)\n\t}\n\n\tasync customer(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _customerSubscriptionId = (customerSubscriptionId as CustomerSubscription).id || customerSubscriptionId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `customer_subscriptions/${_customerSubscriptionId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync events(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _customerSubscriptionId = (customerSubscriptionId as CustomerSubscription).id || customerSubscriptionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `customer_subscriptions/${_customerSubscriptionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(customerSubscriptionId: string | CustomerSubscription, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _customerSubscriptionId = (customerSubscriptionId as CustomerSubscription).id || customerSubscriptionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `customer_subscriptions/${_customerSubscriptionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisCustomerSubscription(resource: any): resource is CustomerSubscription {\n\t\treturn resource.type && (resource.type === CustomerSubscriptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CustomerSubscriptionRel {\n\t\treturn super.relationshipOneToOne<CustomerSubscriptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CustomerSubscriptionRel[] {\n\t\treturn super.relationshipOneToMany<CustomerSubscriptionRel>(...ids)\n\t}\n\n\n\ttype(): CustomerSubscriptionType {\n\t\treturn CustomerSubscriptions.TYPE\n\t}\n\n}\n\n\nconst instance = new CustomerSubscriptions()\nexport default instance\n\nexport type { CustomerSubscriptions, CustomerSubscription, CustomerSubscriptionCreate, CustomerSubscriptionUpdate, CustomerSubscriptionType }\n"]}
|