@commercelayer/sdk 7.0.0-rc.11 → 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-Hgzs8bs4.d.ts → api-BIiVfx1G.d.ts} +60 -46
- package/lib/{api-DNeGwzrs.d.cts → api-xIgvzFhW.d.cts} +60 -46
- 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-5U5QLF2Z.js → chunk-AVJX4OEZ.js} +3 -3
- package/lib/{chunk-5U5QLF2Z.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-3LTCO2OB.cjs → chunk-S3MCPCGR.cjs} +4 -4
- package/lib/{chunk-3LTCO2OB.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-FKDKRSPO.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-KJAD45RP.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-M55NSZVW.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-JRYILJJY.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-FKDKRSPO.js.map +0 -1
- package/lib/chunk-HLCGKY7R.js.map +0 -1
- package/lib/chunk-HQ35KQFG.cjs.map +0 -1
- package/lib/chunk-JENLN6VJ.js.map +0 -1
- package/lib/chunk-JRYILJJY.cjs.map +0 -1
- package/lib/chunk-KBN3FFXD.cjs.map +0 -1
- package/lib/chunk-KJAD45RP.cjs.map +0 -1
- package/lib/chunk-LCLXLB2R.cjs.map +0 -1
- package/lib/chunk-LEWK7QET.cjs.map +0 -1
- package/lib/chunk-M55NSZVW.js.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-RWPFE3LF.cjs.map +0 -1
- package/lib/chunk-VMJUXZ67.cjs.map +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/sku_options.ts"],"names":["ApiResource"],"mappings":";;;;;AAsKA,IAAM,UAAA,GAAN,MAAM,WAAA,SAAmBA,6BAAuB,CAAA;AAAA,EAE/C,OAAgB,IAAsB,GAAA,aAAA;AAAA,EAEtC,MAAM,MAAA,CAAO,QAA2B,EAAA,MAAA,EAAyC,OAA+C,EAAA;AAC/H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A,OAAO,KAAK,SAAU,CAAA,MAAA,CAAmC,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,WAAW,CAAA,IAAA,EAAM,cAAc,YAAa,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AACzK,EAGA,YAAY,QAAsC,EAAA;AACjD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,WAAW,CAAA,IAAA;AAAA;AACvD,EAGA,aAAa,EAA8C,EAAA;AAC1D,IAAO,OAAA,KAAA,CAAM,qBAAmC,EAAE,CAAA;AAAA;AACnD,EAEA,sBAAsB,GAA+B,EAAA;AACpD,IAAO,OAAA,KAAA,CAAM,qBAAoC,CAAA,GAAG,GAAG,CAAA;AAAA;AACxD,EAGA,IAAsB,GAAA;AACrB,IAAA,OAAO,WAAW,CAAA,IAAA;AAAA;AAGpB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,UAAW,EAAA;AAChC,IAAO,mBAAQ,GAAA","file":"chunk-TM5OCFYV.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 { Market, MarketType } from './markets'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\n\n\ntype SkuOptionType = 'sku_options'\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type SkuOptionSort = Pick<SkuOption, 'id' | 'name' | 'currency_code' | 'price_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceSort\n// export type SkuOptionFilter = Pick<SkuOption, 'id' | 'name' | 'currency_code' | 'description' | 'price_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceFilter\n\n\ninterface SkuOption extends Resource {\n\t\n\treadonly type: SkuOptionType\n\n\t/** \n\t * The SKU option's internal name.\n\t * @example ```\"Embossing\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the SKU option.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The price of this shipping method, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this shipping method, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\t/** \n\t * The delay time (in hours) that should be added to the delivery lead time when this option is purchased.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The delay time, in days (rounded).\n\t * @example ```2```\n\t */\n\tdelay_days?: number | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tmarket?: Market | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface SkuOptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The SKU option's internal name.\n\t * @example ```\"Embossing\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the SKU option.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The delay time (in hours) that should be added to the delivery lead time when this option is purchased.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tmarket?: MarketRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface SkuOptionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The SKU option's internal name.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the SKU option.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The delay time (in hours) that should be added to the delivery lead time when this option is purchased.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tmarket?: MarketRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass SkuOptions extends ApiResource<SkuOption> {\n\n\tstatic readonly TYPE: SkuOptionType = 'sku_options' as const\n\n\tasync create(resource: SkuOptionCreate, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.create<SkuOptionCreate, SkuOption>({ ...resource, type: SkuOptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SkuOptionUpdate, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.update<SkuOptionUpdate, SkuOption>({ ...resource, type: SkuOptions.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: SkuOptions.TYPE } : id, options)\n\t}\n\n\tasync market(skuOptionId: string | SkuOption, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `sku_options/${_skuOptionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync attachments(skuOptionId: string | SkuOption, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `sku_options/${_skuOptionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(skuOptionId: string | SkuOption, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `sku_options/${_skuOptionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(skuOptionId: string | SkuOption, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `sku_options/${_skuOptionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(skuOptionId: string | SkuOption, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `sku_options/${_skuOptionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _add_tags(id: string | SkuOption, triggerValue: string, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.update<SkuOptionUpdate, SkuOption>({ id: (typeof id === 'string')? id: id.id, type: SkuOptions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | SkuOption, triggerValue: string, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.update<SkuOptionUpdate, SkuOption>({ id: (typeof id === 'string')? id: id.id, type: SkuOptions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisSkuOption(resource: any): resource is SkuOption {\n\t\treturn resource.type && (resource.type === SkuOptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SkuOptionRel {\n\t\treturn super.relationshipOneToOne<SkuOptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SkuOptionRel[] {\n\t\treturn super.relationshipOneToMany<SkuOptionRel>(...ids)\n\t}\n\n\n\ttype(): SkuOptionType {\n\t\treturn SkuOptions.TYPE\n\t}\n\n}\n\n\nconst instance = new SkuOptions()\nexport default instance\n\nexport type { SkuOptions, SkuOption, SkuOptionCreate, SkuOptionUpdate, SkuOptionType }\n"]}
|
1
|
+
{"version":3,"sources":["../src/resources/sku_options.ts"],"names":["ApiResource"],"mappings":";;;;;AAsKA,IAAM,UAAA,GAAN,MAAM,WAAA,SAAmBA,6BAAA,CAAuB;AAAA,EAE/C,OAAgB,IAAA,GAAsB,aAAA;AAAA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YAAA,CAAa,EAAA,EAAwB,YAAA,EAAsB,QAAyC,OAAA,EAA+C;AACxJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAmC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,WAAA,CAAW,IAAA,EAAM,cAAc,YAAA,EAAa,EAAG,QAAQ,OAAO,CAAA;AAAA;AACzK,EAGA,YAAY,QAAA,EAAsC;AACjD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,WAAA,CAAW,IAAA;AAAA;AACvD,EAGA,aAAa,EAAA,EAA8C;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAmC,EAAE,CAAA;AAAA;AACnD,EAEA,sBAAsB,GAAA,EAA+B;AACpD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAoC,GAAG,GAAG,CAAA;AAAA;AACxD,EAGA,IAAA,GAAsB;AACrB,IAAA,OAAO,WAAA,CAAW,IAAA;AAAA;AAGpB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,UAAA,EAAW;AAChC,IAAO,mBAAA,GAAQ","file":"chunk-TM5OCFYV.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 { Market, MarketType } from './markets'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\n\n\ntype SkuOptionType = 'sku_options'\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type SkuOptionSort = Pick<SkuOption, 'id' | 'name' | 'currency_code' | 'price_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceSort\n// export type SkuOptionFilter = Pick<SkuOption, 'id' | 'name' | 'currency_code' | 'description' | 'price_amount_cents' | 'delay_hours' | 'delay_days'> & ResourceFilter\n\n\ninterface SkuOption extends Resource {\n\t\n\treadonly type: SkuOptionType\n\n\t/** \n\t * The SKU option's internal name.\n\t * @example ```\"Embossing\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the SKU option.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The price of this shipping method, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this shipping method, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\t/** \n\t * The delay time (in hours) that should be added to the delivery lead time when this option is purchased.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The delay time, in days (rounded).\n\t * @example ```2```\n\t */\n\tdelay_days?: number | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tmarket?: Market | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface SkuOptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The SKU option's internal name.\n\t * @example ```\"Embossing\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the SKU option.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The delay time (in hours) that should be added to the delivery lead time when this option is purchased.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\n\tmarket?: MarketRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface SkuOptionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The SKU option's internal name.\n\t * @example ```\"Embossing\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the SKU option.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The price of this shipping method, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The delay time (in hours) that should be added to the delivery lead time when this option is purchased.\n\t * @example ```48```\n\t */\n\tdelay_hours?: number | null\n\t/** \n\t * The regex that will be evaluated to match the SKU codes, max size is 5000.\n\t * @example ```\"^(A|B).*$\"```\n\t */\n\tsku_code_regex?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tmarket?: MarketRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass SkuOptions extends ApiResource<SkuOption> {\n\n\tstatic readonly TYPE: SkuOptionType = 'sku_options' as const\n\n\tasync create(resource: SkuOptionCreate, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.create<SkuOptionCreate, SkuOption>({ ...resource, type: SkuOptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SkuOptionUpdate, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.update<SkuOptionUpdate, SkuOption>({ ...resource, type: SkuOptions.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: SkuOptions.TYPE } : id, options)\n\t}\n\n\tasync market(skuOptionId: string | SkuOption, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `sku_options/${_skuOptionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync attachments(skuOptionId: string | SkuOption, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `sku_options/${_skuOptionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(skuOptionId: string | SkuOption, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `sku_options/${_skuOptionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(skuOptionId: string | SkuOption, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `sku_options/${_skuOptionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(skuOptionId: string | SkuOption, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _skuOptionId = (skuOptionId as SkuOption).id || skuOptionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `sku_options/${_skuOptionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _add_tags(id: string | SkuOption, triggerValue: string, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.update<SkuOptionUpdate, SkuOption>({ id: (typeof id === 'string')? id: id.id, type: SkuOptions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | SkuOption, triggerValue: string, params?: QueryParamsRetrieve<SkuOption>, options?: ResourcesConfig): Promise<SkuOption> {\n\t\treturn this.resources.update<SkuOptionUpdate, SkuOption>({ id: (typeof id === 'string')? id: id.id, type: SkuOptions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisSkuOption(resource: any): resource is SkuOption {\n\t\treturn resource.type && (resource.type === SkuOptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SkuOptionRel {\n\t\treturn super.relationshipOneToOne<SkuOptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SkuOptionRel[] {\n\t\treturn super.relationshipOneToMany<SkuOptionRel>(...ids)\n\t}\n\n\n\ttype(): SkuOptionType {\n\t\treturn SkuOptions.TYPE\n\t}\n\n}\n\n\nconst instance = new SkuOptions()\nexport default instance\n\nexport type { SkuOptions, SkuOption, SkuOptionCreate, SkuOptionUpdate, SkuOptionType }\n"]}
|
@@ -97,5 +97,5 @@ var instance = new Customers();
|
|
97
97
|
var customers_default = instance;
|
98
98
|
|
99
99
|
export { customers_default };
|
100
|
-
//# sour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A,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,UAAA,CAAU,IAAA,EAAM,uBAAuB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AACvK,EAGA,WAAW,QAAA,EAAqC;AAC/C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,UAAA,CAAU,IAAA;AAAA;AACtD,EAGA,aAAa,EAAA,EAA6C;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA;AAClD,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA;AACvD,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA;AAGnB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-TOV6ECTA.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 { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { CustomerAddress } from './customer_addresses'\nimport type { CustomerPaymentSource } from './customer_payment_sources'\nimport type { CustomerSubscription } from './customer_subscriptions'\nimport type { Order } from './orders'\nimport type { OrderSubscription } from './order_subscriptions'\nimport type { Return } from './returns'\nimport type { SkuList } from './sku_lists'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Tag, TagType } from './tags'\nimport type { Market } from './markets'\nimport type { StockLocation } from './stock_locations'\n\n\ntype CustomerType = 'customers'\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceSort\n// export type CustomerFilter = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceFilter\n\n\ninterface Customer extends Resource {\n\t\n\treadonly type: CustomerType\n\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'.\n\t * @example ```\"prospect\"```\n\t */\n\tstatus: 'prospect' | 'acquired' | 'repeat'\n\t/** \n\t * Indicates if the customer has a password.\n\t */\n\thas_password?: boolean | null\n\t/** \n\t * The total number of orders for the customer.\n\t * @example ```6```\n\t */\n\ttotal_orders_count?: number | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * The custom_claim attached to the current JWT (if any).\n\t * @example ```{}```\n\t */\n\tjwt_custom_claim?: Record<string, any> | null\n\t/** \n\t * The anonymization info object.\n\t * @example ```{\"status\":\"requested\",\"requested_at\":\"2025-03-15 11:39:21 UTC\",\"requester\":{\"id\":\"fdgt56hh\",\"first_name\":\"Travis\",\"last_name\":\"Muller\",\"email\":\"test@labadie.test\"}}```\n\t */\n\tanonymization_info?: Record<string, any> | null\n\t/** \n\t * Status of the current anonymization request (if any).\n\t * @example ```\"requested\"```\n\t */\n\tanonymization_status?: string | null\n\n\tcustomer_group?: CustomerGroup | null\n\tcustomer_addresses?: CustomerAddress[] | null\n\tcustomer_payment_sources?: CustomerPaymentSource[] | null\n\tcustomer_subscriptions?: CustomerSubscription[] | null\n\torders?: Order[] | null\n\torder_subscriptions?: OrderSubscription[] | null\n\treturns?: Return[] | null\n\tsku_lists?: SkuList[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tjwt_customer?: Customer | null\n\tjwt_markets?: Market[] | null\n\tjwt_stock_locations?: StockLocation[] | null\n\n}\n\n\ninterface CustomerCreate extends ResourceCreate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface CustomerUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_request_anonymization?: boolean | null\n\t/** \n\t * Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_cancel_anonymization?: boolean | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Customers extends ApiResource<Customer> {\n\n\tstatic readonly TYPE: CustomerType = 'customers' as const\n\n\tasync create(resource: CustomerCreate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.create<CustomerCreate, Customer>({ ...resource, type: Customers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CustomerUpdate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ ...resource, type: Customers.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: Customers.TYPE } : id, options)\n\t}\n\n\tasync customer_group(customerId: string | Customer, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerGroup>({ type: 'customer_groups' }, `customers/${_customerId}/customer_group`, params, options) as unknown as CustomerGroup\n\t}\n\n\tasync customer_addresses(customerId: string | Customer, params?: QueryParamsList<CustomerAddress>, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerAddress>({ type: 'customer_addresses' }, `customers/${_customerId}/customer_addresses`, params, options) as unknown as ListResponse<CustomerAddress>\n\t}\n\n\tasync customer_payment_sources(customerId: string | Customer, params?: QueryParamsList<CustomerPaymentSource>, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerPaymentSource>({ type: 'customer_payment_sources' }, `customers/${_customerId}/customer_payment_sources`, params, options) as unknown as ListResponse<CustomerPaymentSource>\n\t}\n\n\tasync customer_subscriptions(customerId: string | Customer, params?: QueryParamsList<CustomerSubscription>, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerSubscription>({ type: 'customer_subscriptions' }, `customers/${_customerId}/customer_subscriptions`, params, options) as unknown as ListResponse<CustomerSubscription>\n\t}\n\n\tasync orders(customerId: string | Customer, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `customers/${_customerId}/orders`, params, options) as unknown as ListResponse<Order>\n\t}\n\n\tasync order_subscriptions(customerId: string | Customer, params?: QueryParamsList<OrderSubscription>, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `customers/${_customerId}/order_subscriptions`, params, options) as unknown as ListResponse<OrderSubscription>\n\t}\n\n\tasync returns(customerId: string | Customer, params?: QueryParamsList<Return>, options?: ResourcesConfig): Promise<ListResponse<Return>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `customers/${_customerId}/returns`, params, options) as unknown as ListResponse<Return>\n\t}\n\n\tasync sku_lists(customerId: string | Customer, params?: QueryParamsList<SkuList>, options?: ResourcesConfig): Promise<ListResponse<SkuList>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `customers/${_customerId}/sku_lists`, params, options) as unknown as ListResponse<SkuList>\n\t}\n\n\tasync attachments(customerId: string | Customer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `customers/${_customerId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(customerId: string | Customer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `customers/${_customerId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(customerId: string | Customer, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `customers/${_customerId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync jwt_customer(customerId: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `customers/${_customerId}/jwt_customer`, params, options) as unknown as Customer\n\t}\n\n\tasync jwt_markets(customerId: string | Customer, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `customers/${_customerId}/jwt_markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync jwt_stock_locations(customerId: string | Customer, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `customers/${_customerId}/jwt_stock_locations`, params, options) as unknown as ListResponse<StockLocation>\n\t}\n\n\tasync _add_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _request_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _request_anonymization: true }, params, options)\n\t}\n\n\tasync _cancel_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _cancel_anonymization: true }, params, options)\n\t}\n\n\n\tisCustomer(resource: any): resource is Customer {\n\t\treturn resource.type && (resource.type === Customers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CustomerRel {\n\t\treturn super.relationshipOneToOne<CustomerRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CustomerRel[] {\n\t\treturn super.relationshipOneToMany<CustomerRel>(...ids)\n\t}\n\n\n\ttype(): CustomerType {\n\t\treturn Customers.TYPE\n\t}\n\n}\n\n\nconst instance = new Customers()\nexport default instance\n\nexport type { Customers, Customer, CustomerCreate, CustomerUpdate, CustomerType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/tags.ts"],"names":["ApiResource"],"mappings":";;;;;AAiDA,IAAM,IAAA,GAAN,MAAM,KAAA,SAAaA,
|
1
|
+
{"version":3,"sources":["../src/resources/tags.ts"],"names":["ApiResource"],"mappings":";;;;;AAiDA,IAAM,IAAA,GAAN,MAAM,KAAA,SAAaA,6BAAA,CAAiB;AAAA,EAEnC,OAAgB,IAAA,GAAgB,MAAA;AAAA,EAEhC,MAAM,MAAA,CAAO,QAAA,EAAqB,MAAA,EAAmC,OAAA,EAAyC;AAC7G,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,KAAA,CAAK,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC/F,EAEA,MAAM,MAAA,CAAO,QAAA,EAAqB,MAAA,EAAmC,OAAA,EAAyC;AAC7G,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,KAAA,CAAK,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC/F,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,KAAA,CAAK,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA;AAC5F,EAGA,MAAM,QAAA,EAAgC;AACrC,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,KAAA,CAAK,IAAA;AAAA;AACjD,EAGA,aAAa,EAAA,EAAwC;AACpD,IAAA,OAAO,KAAA,CAAM,qBAA6B,EAAE,CAAA;AAAA;AAC7C,EAEA,sBAAsB,GAAA,EAAyB;AAC9C,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA8B,GAAG,GAAG,CAAA;AAAA;AAClD,EAGA,IAAA,GAAgB;AACf,IAAA,OAAO,KAAA,CAAK,IAAA;AAAA;AAGd,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,IAAA,EAAK;AAC1B,IAAO,YAAA,GAAQ","file":"chunk-TQFODT4D.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve } from '../query'\n\n\n\ntype TagType = 'tags'\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type TagSort = Pick<Tag, 'id' | 'name'> & ResourceSort\n// export type TagFilter = Pick<Tag, 'id' | 'name'> & ResourceFilter\n\n\ninterface Tag extends Resource {\n\t\n\treadonly type: TagType\n\n\t/** \n\t * The tag name.\n\t * @example ```\"new_campaign\"```\n\t */\n\tname: string\n\t\n}\n\n\ninterface TagCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tag name.\n\t * @example ```\"new_campaign\"```\n\t */\n\tname: string\n\t\n}\n\n\ninterface TagUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tag name.\n\t * @example ```\"new_campaign\"```\n\t */\n\tname?: string | null\n\t\n}\n\n\nclass Tags extends ApiResource<Tag> {\n\n\tstatic readonly TYPE: TagType = 'tags' as const\n\n\tasync create(resource: TagCreate, params?: QueryParamsRetrieve<Tag>, options?: ResourcesConfig): Promise<Tag> {\n\t\treturn this.resources.create<TagCreate, Tag>({ ...resource, type: Tags.TYPE }, params, options)\n\t}\n\n\tasync update(resource: TagUpdate, params?: QueryParamsRetrieve<Tag>, options?: ResourcesConfig): Promise<Tag> {\n\t\treturn this.resources.update<TagUpdate, Tag>({ ...resource, type: Tags.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: Tags.TYPE } : id, options)\n\t}\n\n\n\tisTag(resource: any): resource is Tag {\n\t\treturn resource.type && (resource.type === Tags.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TagRel {\n\t\treturn super.relationshipOneToOne<TagRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TagRel[] {\n\t\treturn super.relationshipOneToMany<TagRel>(...ids)\n\t}\n\n\n\ttype(): TagType {\n\t\treturn Tags.TYPE\n\t}\n\n}\n\n\nconst instance = new Tags()\nexport default instance\n\nexport type { Tags, Tag, TagCreate, TagUpdate, TagType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/payment_gateways.ts"],"names":[],"mappings":";;;AAgCA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,
|
1
|
+
{"version":3,"sources":["../src/resources/payment_gateways.ts"],"names":[],"mappings":";;;AAgCA,IAAM,eAAA,GAAN,MAAM,gBAAA,SAAwB,WAAA,CAA4B;AAAA,EAEzD,OAAgB,IAAA,GAA2B,kBAAA;AAAA,EAE3C,MAAM,eAAA,CAAgB,gBAAA,EAA2C,MAAA,EAAyC,OAAA,EAAiE;AAC1K,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAqB,EAAE,IAAA,EAAM,iBAAA,EAAkB,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,gBAAA,CAAA,EAAoB,MAAA,EAAQ,OAAO,CAAA;AAAA;AACjJ,EAEA,MAAM,QAAA,CAAS,gBAAA,EAA2C,MAAA,EAAmC,OAAA,EAA2D;AACvJ,IAAA,MAAM,iBAAA,GAAqB,iBAAoC,EAAA,IAAM,gBAAA;AACrE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,iBAAA,EAAoB,iBAAiB,CAAA,SAAA,CAAA,EAAa,MAAA,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-TSD2PK6H.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 { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\n\n\ntype PaymentGatewayType = 'payment_gateways'\ntype PaymentGatewayRel = ResourceRel & { type: PaymentGatewayType }\n\n\nexport type PaymentGatewaySort = Pick<PaymentGateway, 'id' | 'name'> & ResourceSort\n// export type PaymentGatewayFilter = Pick<PaymentGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface PaymentGateway extends Resource {\n\t\n\treadonly type: PaymentGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\n}\n\n\nclass PaymentGateways extends ApiResource<PaymentGateway> {\n\n\tstatic readonly TYPE: PaymentGatewayType = 'payment_gateways' as const\n\n\tasync payment_methods(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `payment_gateways/${_paymentGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(paymentGatewayId: string | PaymentGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _paymentGatewayId = (paymentGatewayId as PaymentGateway).id || paymentGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `payment_gateways/${_paymentGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisPaymentGateway(resource: any): resource is PaymentGateway {\n\t\treturn resource.type && (resource.type === PaymentGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PaymentGatewayRel {\n\t\treturn super.relationshipOneToOne<PaymentGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PaymentGatewayRel[] {\n\t\treturn super.relationshipOneToMany<PaymentGatewayRel>(...ids)\n\t}\n\n\n\ttype(): PaymentGatewayType {\n\t\treturn PaymentGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new PaymentGateways()\nexport default instance\n\nexport type { PaymentGateways, PaymentGateway, PaymentGatewayType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/stock_items.ts"],"names":[],"mappings":";;;AA0FA,IAAM,UAAA,GAAN,MAAM,WAAA,SAAmB,
|
1
|
+
{"version":3,"sources":["../src/resources/stock_items.ts"],"names":[],"mappings":";;;AA0FA,IAAM,UAAA,GAAN,MAAM,WAAA,SAAmB,WAAA,CAAuB;AAAA,EAE/C,OAAgB,IAAA,GAAsB,aAAA;AAAA,EAEtC,MAAM,MAAA,CAAO,QAAA,EAA2B,MAAA,EAAyC,OAAA,EA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EAAyC,OAAA,EAA+C;AAC/H,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAmC,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,WAAA,CAAW,IAAA,EAAM,WAAW,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AAC9J,EAGA,YAAY,QAAA,EAAsC;AACjD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,WAAA,CAAW,IAAA;AAAA;AACvD,EAGA,aAAa,EAAA,EAA8C;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAmC,EAAE,CAAA;AAAA;AACnD,EAEA,sBAAsB,GAAA,EAA+B;AACpD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAoC,GAAG,GAAG,CAAA;AAAA;AACxD,EAGA,IAAA,GAAsB;AACrB,IAAA,OAAO,WAAA,CAAW,IAAA;AAAA;AAGpB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,UAAA,EAAW;AAChC,IAAO,mBAAA,GAAQ","file":"chunk-TSLXKI72.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 { StockLocation, StockLocationType } from './stock_locations'\nimport type { Sku, SkuType } from './skus'\nimport type { ReservedStock } from './reserved_stocks'\nimport type { StockReservation } from './stock_reservations'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\n\n\ntype StockItemType = 'stock_items'\ntype StockItemRel = ResourceRel & { type: StockItemType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype SkuRel = ResourceRel & { type: SkuType }\n\n\nexport type StockItemSort = Pick<StockItem, 'id' | 'quantity'> & ResourceSort\n// export type StockItemFilter = Pick<StockItem, 'id' | 'quantity'> & ResourceFilter\n\n\ninterface StockItem extends Resource {\n\t\n\treadonly type: StockItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock item quantity.\n\t * @example ```100```\n\t */\n\tquantity: number\n\n\tstock_location?: StockLocation | null\n\tsku?: Sku | null\n\treserved_stock?: ReservedStock | null\n\tstock_reservations?: StockReservation[] | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface StockItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock item quantity.\n\t * @example ```100```\n\t */\n\tquantity: number\n\n\tstock_location: StockLocationRel\n\tsku?: SkuRel | null\n\n}\n\n\ninterface StockItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock item quantity.\n\t * @example ```100```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to validate the stock item quantity against the existing reserved stock one, returns an error in case the former is smaller. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_validate?: boolean | null\n\n\tstock_location?: StockLocationRel | null\n\tsku?: SkuRel | null\n\n}\n\n\nclass StockItems extends ApiResource<StockItem> {\n\n\tstatic readonly TYPE: StockItemType = 'stock_items' as const\n\n\tasync create(resource: StockItemCreate, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\treturn this.resources.create<StockItemCreate, StockItem>({ ...resource, type: StockItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockItemUpdate, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\treturn this.resources.update<StockItemUpdate, StockItem>({ ...resource, type: StockItems.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: StockItems.TYPE } : id, options)\n\t}\n\n\tasync stock_location(stockItemId: string | StockItem, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockItemId = (stockItemId as StockItem).id || stockItemId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_items/${_stockItemId}/stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync sku(stockItemId: string | StockItem, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockItemId = (stockItemId as StockItem).id || stockItemId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_items/${_stockItemId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync reserved_stock(stockItemId: string | StockItem, params?: QueryParamsRetrieve<ReservedStock>, options?: ResourcesConfig): Promise<ReservedStock> {\n\t\tconst _stockItemId = (stockItemId as StockItem).id || stockItemId as string\n\t\treturn this.resources.fetch<ReservedStock>({ type: 'reserved_stocks' }, `stock_items/${_stockItemId}/reserved_stock`, params, options) as unknown as ReservedStock\n\t}\n\n\tasync stock_reservations(stockItemId: string | StockItem, params?: QueryParamsList<StockReservation>, options?: ResourcesConfig): Promise<ListResponse<StockReservation>> {\n\t\tconst _stockItemId = (stockItemId as StockItem).id || stockItemId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `stock_items/${_stockItemId}/stock_reservations`, params, options) as unknown as ListResponse<StockReservation>\n\t}\n\n\tasync attachments(stockItemId: string | StockItem, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _stockItemId = (stockItemId as StockItem).id || stockItemId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `stock_items/${_stockItemId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(stockItemId: string | StockItem, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stockItemId = (stockItemId as StockItem).id || stockItemId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stock_items/${_stockItemId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _validate(id: string | StockItem, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\treturn this.resources.update<StockItemUpdate, StockItem>({ id: (typeof id === 'string')? id: id.id, type: StockItems.TYPE, _validate: true }, params, options)\n\t}\n\n\n\tisStockItem(resource: any): resource is StockItem {\n\t\treturn resource.type && (resource.type === StockItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockItemRel {\n\t\treturn super.relationshipOneToOne<StockItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockItemRel[] {\n\t\treturn super.relationshipOneToMany<StockItemRel>(...ids)\n\t}\n\n\n\ttype(): StockItemType {\n\t\treturn StockItems.TYPE\n\t}\n\n}\n\n\nconst instance = new StockItems()\nexport default instance\n\nexport type { StockItems, StockItem, StockItemCreate, StockItemUpdate, StockItemType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/satispay_gateways.ts"],"names":[],"mappings":";;;AAiFA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,
|
1
|
+
{"version":3,"sources":["../src/resources/satispay_gateways.ts"],"names":[],"mappings":";;;AAiFA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,I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,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAM,iBAAA;AACxE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAuB,EAAE,IAAA,EAAM,mBAAA,EAAoB,EAAG,CAAA,kBAAA,EAAqB,kBAAkB,CAAA,kBAAA,CAAA,EAAsB,MAAA,EAAQ,OAAO,CAAA;AAAA;AACzJ,EAGA,kBAAkB,QAAA,EAA4C;AAC7D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA;AAC7D,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA;AACzD,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA;AAC9D,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA;AAG1B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-U5FTZYJJ.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 { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { SatispayPayment, SatispayPaymentType } from './satispay_payments'\n\n\ntype SatispayGatewayType = 'satispay_gateways'\ntype SatispayGatewayRel = ResourceRel & { type: SatispayGatewayType }\ntype SatispayPaymentRel = ResourceRel & { type: SatispayPaymentType }\n\n\nexport type SatispayGatewaySort = Pick<SatispayGateway, 'id' | 'name'> & ResourceSort\n// export type SatispayGatewayFilter = Pick<SatispayGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface SatispayGateway extends Resource {\n\t\n\treadonly type: SatispayGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\t/** \n\t * The Satispay API key auto generated basing on activation code.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey_id: string\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/satispay_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tsatispay_payments?: SatispayPayment[] | null\n\n}\n\n\ninterface SatispayGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Activation code generated from the Satispay Dashboard.\n\t * @example ```\"623ECX\"```\n\t */\n\ttoken: string\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\ninterface SatispayGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\n\tsatispay_payments?: SatispayPaymentRel[] | null\n\n}\n\n\nclass SatispayGateways extends ApiResource<SatispayGateway> {\n\n\tstatic readonly TYPE: SatispayGatewayType = 'satispay_gateways' as const\n\n\tasync create(resource: SatispayGatewayCreate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.create<SatispayGatewayCreate, SatispayGateway>({ ...resource, type: SatispayGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: SatispayGatewayUpdate, params?: QueryParamsRetrieve<SatispayGateway>, options?: ResourcesConfig): Promise<SatispayGateway> {\n\t\treturn this.resources.update<SatispayGatewayUpdate, SatispayGateway>({ ...resource, type: SatispayGateways.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: SatispayGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `satispay_gateways/${_satispayGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `satispay_gateways/${_satispayGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync satispay_payments(satispayGatewayId: string | SatispayGateway, params?: QueryParamsList<SatispayPayment>, options?: ResourcesConfig): Promise<ListResponse<SatispayPayment>> {\n\t\tconst _satispayGatewayId = (satispayGatewayId as SatispayGateway).id || satispayGatewayId as string\n\t\treturn this.resources.fetch<SatispayPayment>({ type: 'satispay_payments' }, `satispay_gateways/${_satispayGatewayId}/satispay_payments`, params, options) as unknown as ListResponse<SatispayPayment>\n\t}\n\n\n\tisSatispayGateway(resource: any): resource is SatispayGateway {\n\t\treturn resource.type && (resource.type === SatispayGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): SatispayGatewayRel {\n\t\treturn super.relationshipOneToOne<SatispayGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): SatispayGatewayRel[] {\n\t\treturn super.relationshipOneToMany<SatispayGatewayRel>(...ids)\n\t}\n\n\n\ttype(): SatispayGatewayType {\n\t\treturn SatispayGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new SatispayGateways()\nexport default instance\n\nexport type { SatispayGateways, SatispayGateway, SatispayGatewayCreate, SatispayGatewayUpdate, SatispayGatewayType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/resource_errors.ts"],"names":[],"mappings":";;;AAyCA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,
|
1
|
+
{"version":3,"sources":["../src/resources/resource_errors.ts"],"names":[],"mappings":";;;AAyCA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAK1C,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA;AAC3D,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA;AACvD,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA;AAC5D,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA;AAGxB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-U6PW4AZV.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\n\n\nimport type { Order } from './orders'\nimport type { Return } from './returns'\n\n\ntype ResourceErrorType = 'resource_errors'\ntype ResourceErrorRel = ResourceRel & { type: ResourceErrorType }\n\n\nexport type ResourceErrorSort = Pick<ResourceError, 'id' | 'name' | 'code'> & ResourceSort\n// export type ResourceErrorFilter = Pick<ResourceError, 'id' | 'name' | 'code' | 'message'> & ResourceFilter\n\n\ninterface ResourceError extends Resource {\n\t\n\treadonly type: ResourceErrorType\n\n\t/** \n\t * The resource attribute name related to the error.\n\t * @example ```\"number\"```\n\t */\n\tname: string\n\t/** \n\t * The error code.\n\t * @example ```\"BLANK\"```\n\t */\n\tcode: string\n\t/** \n\t * The error message.\n\t * @example ```\"can't be blank\"```\n\t */\n\tmessage: string\n\n\tresource?: Order | Return | null\n\n}\n\n\nclass ResourceErrors extends ApiResource<ResourceError> {\n\n\tstatic readonly TYPE: ResourceErrorType = 'resource_errors' as const\n\n\t\n\n\n\tisResourceError(resource: any): resource is ResourceError {\n\t\treturn resource.type && (resource.type === ResourceErrors.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ResourceErrorRel {\n\t\treturn super.relationshipOneToOne<ResourceErrorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ResourceErrorRel[] {\n\t\treturn super.relationshipOneToMany<ResourceErrorRel>(...ids)\n\t}\n\n\n\ttype(): ResourceErrorType {\n\t\treturn ResourceErrors.TYPE\n\t}\n\n}\n\n\nconst instance = new ResourceErrors()\nexport default instance\n\nexport type { ResourceErrors, ResourceError, ResourceErrorType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/external_payments.ts"],"names":[],"mappings":";;;AA8EA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,
|
1
|
+
{"version":3,"sources":["../src/resources/external_payments.ts"],"names":[],"mappings":";;;AA8EA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;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AAA,CAAK,SAAA,CAAU,KAAA,CAA6B,EAAE,IAAA,EAAM,0BAAA,EAA2B,EAAG,CAAA,kBAAA,EAAqB,kBAAkB,CAAA,OAAA,CAAA,EAAW,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC3J,EAEA,MAAM,QAAA,CAAS,iBAAA,EAA6C,MAAA,EAAmC,OAAA,EAA2D;AACzJ,IAAA,MAAM,kBAAA,GAAsB,kBAAsC,EAAA,IAAM,iBAAA;AACxE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,UAAA,EAAW,EAAG,CAAA,kBAAA,EAAqB,kBAAkB,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC/H,EAGA,kBAAkB,QAAA,EAA4C;AAC7D,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,iBAAA,CAAiB,IAAA;AAAA;AAC7D,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA;AACzD,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA;AAC9D,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA;AAG1B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-UB6JC3W7.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 { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\nimport type { CustomerPaymentSource } from './customer_payment_sources'\nimport type { Version } from './versions'\n\n\ntype ExternalPaymentType = 'external_payments'\ntype ExternalPaymentRel = ResourceRel & { type: ExternalPaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type ExternalPaymentSort = Pick<ExternalPayment, 'id'> & ResourceSort\n// export type ExternalPaymentFilter = Pick<ExternalPayment, 'id' | 'payment_source_token'> & ResourceFilter\n\n\ninterface ExternalPayment extends Resource {\n\t\n\treadonly type: ExternalPaymentType\n\n\t/** \n\t * The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected.\n\t * @example ```\"xxxx.yyyy.zzzz\"```\n\t */\n\tpayment_source_token: string\n\t/** \n\t * External payment options.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\twallet?: CustomerPaymentSource | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ExternalPaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment source token, as generated by the external gateway SDK. Credit Card numbers are rejected.\n\t * @example ```\"xxxx.yyyy.zzzz\"```\n\t */\n\tpayment_source_token: string\n\t/** \n\t * External payment options.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\toptions?: Record<string, any> | null\n\n\torder: OrderRel\n\n}\n\n\ninterface ExternalPaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * External payment options.\n\t * @example ```{\"foo\":\"bar\"}```\n\t */\n\toptions?: Record<string, any> | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass ExternalPayments extends ApiResource<ExternalPayment> {\n\n\tstatic readonly TYPE: ExternalPaymentType = 'external_payments' as const\n\n\tasync create(resource: ExternalPaymentCreate, params?: QueryParamsRetrieve<ExternalPayment>, options?: ResourcesConfig): Promise<ExternalPayment> {\n\t\treturn this.resources.create<ExternalPaymentCreate, ExternalPayment>({ ...resource, type: ExternalPayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalPaymentUpdate, params?: QueryParamsRetrieve<ExternalPayment>, options?: ResourcesConfig): Promise<ExternalPayment> {\n\t\treturn this.resources.update<ExternalPaymentUpdate, ExternalPayment>({ ...resource, type: ExternalPayments.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: ExternalPayments.TYPE } : id, options)\n\t}\n\n\tasync order(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `external_payments/${_externalPaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `external_payments/${_externalPaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync wallet(externalPaymentId: string | ExternalPayment, params?: QueryParamsRetrieve<CustomerPaymentSource>, options?: ResourcesConfig): Promise<CustomerPaymentSource> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<CustomerPaymentSource>({ type: 'customer_payment_sources' }, `external_payments/${_externalPaymentId}/wallet`, params, options) as unknown as CustomerPaymentSource\n\t}\n\n\tasync versions(externalPaymentId: string | ExternalPayment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _externalPaymentId = (externalPaymentId as ExternalPayment).id || externalPaymentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `external_payments/${_externalPaymentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisExternalPayment(resource: any): resource is ExternalPayment {\n\t\treturn resource.type && (resource.type === ExternalPayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalPaymentRel {\n\t\treturn super.relationshipOneToOne<ExternalPaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalPaymentRel[] {\n\t\treturn super.relationshipOneToMany<ExternalPaymentRel>(...ids)\n\t}\n\n\n\ttype(): ExternalPaymentType {\n\t\treturn ExternalPayments.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalPayments()\nexport default instance\n\nexport type { ExternalPayments, ExternalPayment, ExternalPaymentCreate, ExternalPaymentUpdate, ExternalPaymentType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/parcels.ts"],"names":[],"mappings":";;;AAwZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAoB,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,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,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CAAA,SA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ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\n\nexport type ParcelSort = Pick<Parcel, 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'> & ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\n\ninterface Parcel extends Resource {\n\t\n\treadonly type: ParcelType\n\n\t/** \n\t * Unique identifier for the parcel.\n\t * @example ```\"#1234/S/001/P/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: Shipment | null\n\tpackage?: Package | null\n\tparcel_line_items?: ParcelLineItem[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ParcelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment: ShipmentRel\n\tpackage: PackageRel\n\n}\n\n\ninterface ParcelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight?: number | null\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight?: 'gr' | 'oz' | 'lb' | null\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: ShipmentRel | null\n\tpackage?: PackageRel | null\n\n}\n\n\nclass Parcels extends ApiResource<Parcel> {\n\n\tstatic readonly TYPE: ParcelType = 'parcels' as const\n\n\tasync create(resource: ParcelCreate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ParcelUpdate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Parcels.TYPE } : id, options)\n\t}\n\n\tasync shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `parcels/${_parcelId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync package(parcelId: string | Parcel, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Package>({ type: 'packages' }, `parcels/${_parcelId}/package`, params, options) as unknown as Package\n\t}\n\n\tasync parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList<ParcelLineItem>, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<ParcelLineItem>({ type: 'parcel_line_items' }, `parcels/${_parcelId}/parcel_line_items`, params, options) as unknown as ListResponse<ParcelLineItem>\n\t}\n\n\tasync attachments(parcelId: string | Parcel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `parcels/${_parcelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(parcelId: string | Parcel, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `parcels/${_parcelId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(parcelId: string | Parcel, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `parcels/${_parcelId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisParcel(resource: any): resource is Parcel {\n\t\treturn resource.type && (resource.type === Parcels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ParcelRel {\n\t\treturn super.relationshipOneToOne<ParcelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ParcelRel[] {\n\t\treturn super.relationshipOneToMany<ParcelRel>(...ids)\n\t}\n\n\n\ttype(): ParcelType {\n\t\treturn Parcels.TYPE\n\t}\n\n}\n\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcels, Parcel, ParcelCreate, ParcelUpdate, ParcelType }\n"]}
|
1
|
+
{"version":3,"sources":["../src/resources/parcels.ts"],"names":[],"mappings":";;;AAwZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,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,OA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AAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-UBXNH6J3.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 { Shipment, ShipmentType } from './shipments'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\n\nexport type ParcelSort = Pick<Parcel, 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'> & ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\n\ninterface Parcel extends Resource {\n\t\n\treadonly type: ParcelType\n\n\t/** \n\t * Unique identifier for the parcel.\n\t * @example ```\"#1234/S/001/P/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: Shipment | null\n\tpackage?: Package | null\n\tparcel_line_items?: ParcelLineItem[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ParcelCreate extends ResourceCreate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight: number\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight: 'gr' | 'oz' | 'lb'\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment: ShipmentRel\n\tpackage: PackageRel\n\n}\n\n\ninterface ParcelUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n\t * @example ```1000```\n\t */\n\tweight?: number | null\n\t/** \n\t * The unit of weight. One of 'gr', 'oz', or 'lb'.\n\t * @example ```\"gr\"```\n\t */\n\tunit_of_weight?: 'gr' | 'oz' | 'lb' | null\n\t/** \n\t * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n\t * @example ```\"EEL\"```\n\t */\n\teel_pfc?: string | null\n\t/** \n\t * The type of item you are sending.\n\t * @example ```\"merchandise\"```\n\t */\n\tcontents_type?: string | null\n\t/** \n\t * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n\t */\n\tcontents_explanation?: string | null\n\t/** \n\t * Indicates if the provided information is accurate.\n\t */\n\tcustoms_certify?: boolean | null\n\t/** \n\t * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n\t * @example ```\"John Doe\"```\n\t */\n\tcustoms_signer?: string | null\n\t/** \n\t * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n\t * @example ```\"return\"```\n\t */\n\tnon_delivery_option?: string | null\n\t/** \n\t * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n\t * @example ```\"none\"```\n\t */\n\trestriction_type?: string | null\n\t/** \n\t * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n\t */\n\trestriction_comments?: string | null\n\t/** \n\t * Indicates if the parcel requires customs info to get the shipping rates.\n\t */\n\tcustoms_info_required?: boolean | null\n\t/** \n\t * The shipping label url, ready to be downloaded and printed.\n\t * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n\t */\n\tshipping_label_url?: string | null\n\t/** \n\t * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n\t * @example ```\"application/pdf\"```\n\t */\n\tshipping_label_file_type?: string | null\n\t/** \n\t * The shipping label size.\n\t * @example ```\"4x7\"```\n\t */\n\tshipping_label_size?: string | null\n\t/** \n\t * The shipping label resolution.\n\t * @example ```\"200\"```\n\t */\n\tshipping_label_resolution?: string | null\n\t/** \n\t * The tracking number associated to this parcel.\n\t * @example ```\"1Z4V2A000000000000\"```\n\t */\n\ttracking_number?: string | null\n\t/** \n\t * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n\t * @example ```\"delivered\"```\n\t */\n\ttracking_status?: string | null\n\t/** \n\t * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n\t * @example ```\"arrived_at_destination\"```\n\t */\n\ttracking_status_detail?: string | null\n\t/** \n\t * Time at which the parcel's tracking status was last updated.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ttracking_status_updated_at?: string | null\n\t/** \n\t * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n\t * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n\t */\n\ttracking_details?: Array<Record<string, any>> | null\n\t/** \n\t * The weight of the parcel as measured by the carrier in ounces (if available).\n\t * @example ```\"42.32\"```\n\t */\n\tcarrier_weight_oz?: string | null\n\t/** \n\t * The name of the person who signed for the parcel (if available).\n\t * @example ```\"John Smith\"```\n\t */\n\tsigned_by?: string | null\n\t/** \n\t * The type of Incoterm (if available).\n\t * @example ```\"EXW\"```\n\t */\n\tincoterm?: string | null\n\t/** \n\t * The type of delivery confirmation option upon delivery.\n\t * @example ```\"SIGNATURE\"```\n\t */\n\tdelivery_confirmation?: string | null\n\n\tshipment?: ShipmentRel | null\n\tpackage?: PackageRel | null\n\n}\n\n\nclass Parcels extends ApiResource<Parcel> {\n\n\tstatic readonly TYPE: ParcelType = 'parcels' as const\n\n\tasync create(resource: ParcelCreate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ParcelUpdate, params?: QueryParamsRetrieve<Parcel>, options?: ResourcesConfig): Promise<Parcel> {\n\t\treturn this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Parcels.TYPE } : id, options)\n\t}\n\n\tasync shipment(parcelId: string | Parcel, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `parcels/${_parcelId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync package(parcelId: string | Parcel, params?: QueryParamsRetrieve<Package>, options?: ResourcesConfig): Promise<Package> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Package>({ type: 'packages' }, `parcels/${_parcelId}/package`, params, options) as unknown as Package\n\t}\n\n\tasync parcel_line_items(parcelId: string | Parcel, params?: QueryParamsList<ParcelLineItem>, options?: ResourcesConfig): Promise<ListResponse<ParcelLineItem>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<ParcelLineItem>({ type: 'parcel_line_items' }, `parcels/${_parcelId}/parcel_line_items`, params, options) as unknown as ListResponse<ParcelLineItem>\n\t}\n\n\tasync attachments(parcelId: string | Parcel, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `parcels/${_parcelId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(parcelId: string | Parcel, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `parcels/${_parcelId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(parcelId: string | Parcel, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _parcelId = (parcelId as Parcel).id || parcelId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `parcels/${_parcelId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\n\tisParcel(resource: any): resource is Parcel {\n\t\treturn resource.type && (resource.type === Parcels.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ParcelRel {\n\t\treturn super.relationshipOneToOne<ParcelRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ParcelRel[] {\n\t\treturn super.relationshipOneToMany<ParcelRel>(...ids)\n\t}\n\n\n\ttype(): ParcelType {\n\t\treturn Parcels.TYPE\n\t}\n\n}\n\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcels, Parcel, ParcelCreate, ParcelUpdate, ParcelType }\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../src/resources/stock_reservations.ts"],"names":["ApiResource"],"mappings":";;;;;AAkFA,IAAM,iBAAA,GAAN,MAAM,kBAAA,SAA0BA,6BAA8B,CAAA;AAAA,EAE7D,OAAgB,IAA6B,GAAA,oBAAA;AAAA,EAE7C,MAAM,MAAA,CAAO,QAAkC,EAAA,MAAA,EAAgD,OAAsD,EAAA;AACpJ,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAiD,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,kBAAkB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACtI,EAEA,MAAM,MAAA,CAAO,QAAkC,EAAA,MAAA,EAAgD,OAA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EAAM,MAAO,EAAA,EAAG,CAAsB,mBAAA,EAAA,mBAAmB,CAAQ,IAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACpH,EAEA,MAAM,QAAA,CAAS,EAA+B,EAAA,MAAA,EAAgD,OAAsD,EAAA;AACnJ,IAAA,OAAO,KAAK,SAAU,CAAA,MAAA,CAAiD,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,kBAAkB,CAAA,IAAA,EAAM,UAAU,IAAK,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AAClL,EAGA,mBAAmB,QAA6C,EAAA;AAC/D,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,kBAAkB,CAAA,IAAA;AAAA;AAC9D,EAGA,aAAa,EAAqD,EAAA;AACjE,IAAO,OAAA,KAAA,CAAM,qBAA0C,EAAE,CAAA;AAAA;AAC1D,EAEA,sBAAsB,GAAsC,EAAA;AAC3D,IAAO,OAAA,KAAA,CAAM,qBAA2C,CAAA,GAAG,GAAG,CAAA;AAAA;AAC/D,EAGA,IAA6B,GAAA;AAC5B,IAAA,OAAO,kBAAkB,CAAA,IAAA;AAAA;AAG3B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,iBAAkB,EAAA;AACvC,IAAO,0BAAQ,GAAA","file":"chunk-UP7FR6HD.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve } from '../query'\n\nimport type { LineItem } from './line_items'\nimport type { Order } from './orders'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockTransfer } from './stock_transfers'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { ReservedStock } from './reserved_stocks'\nimport type { Sku } from './skus'\n\n\ntype StockReservationType = 'stock_reservations'\ntype StockReservationRel = ResourceRel & { type: StockReservationType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\n\n\nexport type StockReservationSort = Pick<StockReservation, 'id' | 'status' | 'quantity' | 'expires_at'> & ResourceSort\n// export type StockReservationFilter = Pick<StockReservation, 'id' | 'status' | 'quantity' | 'expires_at'> & ResourceFilter\n\n\ninterface StockReservation extends Resource {\n\t\n\treadonly type: StockReservationType\n\n\t/** \n\t * The stock reservation status. One of 'draft' (default), or 'pending'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'pending'\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The expiration date/time of this stock reservation.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\n\tline_item?: LineItem | null\n\torder?: Order | null\n\tstock_line_item?: StockLineItem | null\n\tstock_transfer?: StockTransfer | null\n\tstock_item?: StockItem | null\n\treserved_stock?: ReservedStock | null\n\tsku?: Sku | null\n\n}\n\n\ninterface StockReservationCreate extends ResourceCreate {\n\t\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\n\tstock_item: StockItemRel\n\n}\n\n\ninterface StockReservationUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to mark this stock reservation as pending.\n\t * @example ```true```\n\t */\n\t_pending?: boolean | null\n\t\n}\n\n\nclass StockReservations extends ApiResource<StockReservation> {\n\n\tstatic readonly TYPE: StockReservationType = 'stock_reservations' as const\n\n\tasync create(resource: StockReservationCreate, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.create<StockReservationCreate, StockReservation>({ ...resource, type: StockReservations.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockReservationUpdate, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.update<StockReservationUpdate, StockReservation>({ ...resource, type: StockReservations.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: StockReservations.TYPE } : id, options)\n\t}\n\n\tasync line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_reservations/${_stockReservationId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync order(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `stock_reservations/${_stockReservationId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync stock_line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `stock_reservations/${_stockReservationId}/stock_line_item`, params, options) as unknown as StockLineItem\n\t}\n\n\tasync stock_transfer(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `stock_reservations/${_stockReservationId}/stock_transfer`, params, options) as unknown as StockTransfer\n\t}\n\n\tasync stock_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockItem>({ type: 'stock_items' }, `stock_reservations/${_stockReservationId}/stock_item`, params, options) as unknown as StockItem\n\t}\n\n\tasync reserved_stock(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<ReservedStock>, options?: ResourcesConfig): Promise<ReservedStock> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<ReservedStock>({ type: 'reserved_stocks' }, `stock_reservations/${_stockReservationId}/reserved_stock`, params, options) as unknown as ReservedStock\n\t}\n\n\tasync sku(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_reservations/${_stockReservationId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync _pending(id: string | StockReservation, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.update<StockReservationUpdate, StockReservation>({ id: (typeof id === 'string')? id: id.id, type: StockReservations.TYPE, _pending: true }, params, options)\n\t}\n\n\n\tisStockReservation(resource: any): resource is StockReservation {\n\t\treturn resource.type && (resource.type === StockReservations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockReservationRel {\n\t\treturn super.relationshipOneToOne<StockReservationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockReservationRel[] {\n\t\treturn super.relationshipOneToMany<StockReservationRel>(...ids)\n\t}\n\n\n\ttype(): StockReservationType {\n\t\treturn StockReservations.TYPE\n\t}\n\n}\n\n\nconst instance = new StockReservations()\nexport default instance\n\nexport type { StockReservations, StockReservation, StockReservationCreate, StockReservationUpdate, StockReservationType }\n"]}
|
1
|
+
{"version":3,"sources":["../src/resources/stock_reservations.ts"],"names":["ApiResource"],"mappings":";;;;;AAkFA,IAAM,iBAAA,GAAN,M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"chunk-UP7FR6HD.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve } from '../query'\n\nimport type { LineItem } from './line_items'\nimport type { Order } from './orders'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockTransfer } from './stock_transfers'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { ReservedStock } from './reserved_stocks'\nimport type { Sku } from './skus'\n\n\ntype StockReservationType = 'stock_reservations'\ntype StockReservationRel = ResourceRel & { type: StockReservationType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\n\n\nexport type StockReservationSort = Pick<StockReservation, 'id' | 'status' | 'quantity' | 'expires_at'> & ResourceSort\n// export type StockReservationFilter = Pick<StockReservation, 'id' | 'status' | 'quantity' | 'expires_at'> & ResourceFilter\n\n\ninterface StockReservation extends Resource {\n\t\n\treadonly type: StockReservationType\n\n\t/** \n\t * The stock reservation status. One of 'draft' (default), or 'pending'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'pending'\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The expiration date/time of this stock reservation.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\n\tline_item?: LineItem | null\n\torder?: Order | null\n\tstock_line_item?: StockLineItem | null\n\tstock_transfer?: StockTransfer | null\n\tstock_item?: StockItem | null\n\treserved_stock?: ReservedStock | null\n\tsku?: Sku | null\n\n}\n\n\ninterface StockReservationCreate extends ResourceCreate {\n\t\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\n\tstock_item: StockItemRel\n\n}\n\n\ninterface StockReservationUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The stock reservation quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to mark this stock reservation as pending.\n\t * @example ```true```\n\t */\n\t_pending?: boolean | null\n\t\n}\n\n\nclass StockReservations extends ApiResource<StockReservation> {\n\n\tstatic readonly TYPE: StockReservationType = 'stock_reservations' as const\n\n\tasync create(resource: StockReservationCreate, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.create<StockReservationCreate, StockReservation>({ ...resource, type: StockReservations.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockReservationUpdate, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.update<StockReservationUpdate, StockReservation>({ ...resource, type: StockReservations.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: StockReservations.TYPE } : id, options)\n\t}\n\n\tasync line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_reservations/${_stockReservationId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync order(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `stock_reservations/${_stockReservationId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync stock_line_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockLineItem>, options?: ResourcesConfig): Promise<StockLineItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `stock_reservations/${_stockReservationId}/stock_line_item`, params, options) as unknown as StockLineItem\n\t}\n\n\tasync stock_transfer(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `stock_reservations/${_stockReservationId}/stock_transfer`, params, options) as unknown as StockTransfer\n\t}\n\n\tasync stock_item(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<StockItem>, options?: ResourcesConfig): Promise<StockItem> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<StockItem>({ type: 'stock_items' }, `stock_reservations/${_stockReservationId}/stock_item`, params, options) as unknown as StockItem\n\t}\n\n\tasync reserved_stock(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<ReservedStock>, options?: ResourcesConfig): Promise<ReservedStock> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<ReservedStock>({ type: 'reserved_stocks' }, `stock_reservations/${_stockReservationId}/reserved_stock`, params, options) as unknown as ReservedStock\n\t}\n\n\tasync sku(stockReservationId: string | StockReservation, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockReservationId = (stockReservationId as StockReservation).id || stockReservationId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_reservations/${_stockReservationId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync _pending(id: string | StockReservation, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\treturn this.resources.update<StockReservationUpdate, StockReservation>({ id: (typeof id === 'string')? id: id.id, type: StockReservations.TYPE, _pending: true }, params, options)\n\t}\n\n\n\tisStockReservation(resource: any): resource is StockReservation {\n\t\treturn resource.type && (resource.type === StockReservations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockReservationRel {\n\t\treturn super.relationshipOneToOne<StockReservationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockReservationRel[] {\n\t\treturn super.relationshipOneToMany<StockReservationRel>(...ids)\n\t}\n\n\n\ttype(): StockReservationType {\n\t\treturn StockReservations.TYPE\n\t}\n\n}\n\n\nconst instance = new StockReservations()\nexport default instance\n\nexport type { StockReservations, StockReservation, StockReservationCreate, StockReservationUpdate, StockReservationType }\n"]}
|