@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.
Files changed (652) hide show
  1. package/lib/{api-Hgzs8bs4.d.ts → api-BIiVfx1G.d.ts} +60 -46
  2. package/lib/{api-DNeGwzrs.d.cts → api-xIgvzFhW.d.cts} +60 -46
  3. package/lib/api.cjs +24 -24
  4. package/lib/api.d.cts +1 -1
  5. package/lib/api.d.ts +1 -1
  6. package/lib/api.js +12 -12
  7. package/lib/bundle.cjs +26 -26
  8. package/lib/bundle.cjs.map +1 -1
  9. package/lib/bundle.d.cts +1 -1
  10. package/lib/bundle.d.ts +1 -1
  11. package/lib/bundle.js +13 -13
  12. package/lib/bundle.js.map +1 -1
  13. package/lib/chunk-2AFNQJXP.cjs.map +1 -1
  14. package/lib/chunk-2AMKJ6V7.cjs.map +1 -1
  15. package/lib/chunk-2HLQW5MF.cjs.map +1 -1
  16. package/lib/chunk-2HPO4UZA.cjs.map +1 -1
  17. package/lib/chunk-2JOYLKTP.cjs.map +1 -1
  18. package/lib/chunk-2KKHO6QF.js.map +1 -1
  19. package/lib/chunk-2L2ZM3VD.js.map +1 -1
  20. package/lib/chunk-2P6AFRJL.js.map +1 -1
  21. package/lib/chunk-2PYM3QGA.js.map +1 -1
  22. package/lib/chunk-2THU5NEW.cjs.map +1 -1
  23. package/lib/{chunk-BF7OPORP.js → chunk-2UUZHL2R.js} +2 -2
  24. package/lib/{chunk-BF7OPORP.js.map → chunk-2UUZHL2R.js.map} +1 -1
  25. package/lib/chunk-2XGMKMF5.cjs.map +1 -1
  26. package/lib/chunk-34H2NFDA.js.map +1 -1
  27. package/lib/chunk-35OHXDG3.cjs.map +1 -1
  28. package/lib/chunk-3ADITMLN.cjs.map +1 -1
  29. package/lib/chunk-3ANXNJ6U.cjs.map +1 -1
  30. package/lib/chunk-3AOPII3W.js.map +1 -1
  31. package/lib/chunk-3DFZ5QLR.js.map +1 -1
  32. package/lib/chunk-3I5BJF3J.js.map +1 -1
  33. package/lib/chunk-3N2MNKA3.js.map +1 -1
  34. package/lib/chunk-3NWQH32A.js.map +1 -1
  35. package/lib/chunk-3OBFBFUV.js.map +1 -1
  36. package/lib/chunk-3PVKJIA3.js.map +1 -1
  37. package/lib/chunk-3RR27O3T.js.map +1 -1
  38. package/lib/chunk-3TGZNMLP.cjs.map +1 -1
  39. package/lib/chunk-3URHH3S6.js.map +1 -1
  40. package/lib/chunk-3WKN5OCU.cjs.map +1 -1
  41. package/lib/chunk-3XWE56FL.cjs.map +1 -1
  42. package/lib/chunk-42DT6ZET.cjs.map +1 -1
  43. package/lib/chunk-432EXURP.js.map +1 -1
  44. package/lib/chunk-4IH4EHXT.cjs.map +1 -1
  45. package/lib/chunk-4KFJUIFD.js.map +1 -1
  46. package/lib/chunk-4KO5LZ7F.js.map +1 -1
  47. package/lib/chunk-4L4MGCUZ.js.map +1 -1
  48. package/lib/chunk-4L73LJKG.js.map +1 -1
  49. package/lib/{chunk-RWPFE3LF.cjs → chunk-4NI5SICY.cjs} +2 -2
  50. package/lib/chunk-4NI5SICY.cjs.map +1 -0
  51. package/lib/chunk-4SCFKFIM.cjs.map +1 -1
  52. package/lib/chunk-57XXD3GQ.cjs.map +1 -1
  53. package/lib/chunk-5EXCGVF2.cjs.map +1 -1
  54. package/lib/chunk-5FZNBGAF.cjs.map +1 -1
  55. package/lib/{chunk-NMVACSMG.js → chunk-5NMDIVXH.js} +2 -2
  56. package/lib/chunk-5NMDIVXH.js.map +1 -0
  57. package/lib/chunk-5OQQBNVB.js.map +1 -1
  58. package/lib/chunk-5P5Z7NXC.js.map +1 -1
  59. package/lib/chunk-5R76TU4I.cjs.map +1 -1
  60. package/lib/chunk-627I2FYX.cjs.map +1 -1
  61. package/lib/chunk-66JDSPFD.cjs.map +1 -1
  62. package/lib/chunk-67QVA2J3.cjs.map +1 -1
  63. package/lib/chunk-6AJSOS56.cjs.map +1 -1
  64. package/lib/chunk-6B66AQKB.cjs.map +1 -1
  65. package/lib/chunk-6OHA2TO3.cjs.map +1 -1
  66. package/lib/chunk-6PWK52UZ.cjs.map +1 -1
  67. package/lib/chunk-6SCAIB4K.cjs.map +1 -1
  68. package/lib/chunk-6SOWFGBP.cjs.map +1 -1
  69. package/lib/chunk-7CQTUOR4.cjs.map +1 -1
  70. package/lib/chunk-7ISS2FDY.js.map +1 -1
  71. package/lib/chunk-7JLRB7QH.js.map +1 -1
  72. package/lib/chunk-7SG4WU7W.js.map +1 -1
  73. package/lib/chunk-7SZY5BWE.js.map +1 -1
  74. package/lib/chunk-7VSYXEXL.js.map +1 -1
  75. package/lib/chunk-7Z2U4MHU.cjs.map +1 -1
  76. package/lib/chunk-A6BT5FSV.cjs.map +1 -1
  77. package/lib/chunk-A7BEMDVP.cjs.map +1 -1
  78. package/lib/chunk-AD73LDFJ.cjs.map +1 -1
  79. package/lib/{chunk-P3NADEGE.cjs → chunk-AGNIOGQC.cjs} +2 -2
  80. package/lib/chunk-AGNIOGQC.cjs.map +1 -0
  81. package/lib/chunk-AIGQRBCY.cjs.map +1 -1
  82. package/lib/chunk-ANCLAYJV.cjs.map +1 -1
  83. package/lib/chunk-AQFAND5D.cjs.map +1 -1
  84. package/lib/chunk-ARIBIRKF.cjs.map +1 -1
  85. package/lib/{chunk-5U5QLF2Z.js → chunk-AVJX4OEZ.js} +3 -3
  86. package/lib/{chunk-5U5QLF2Z.js.map → chunk-AVJX4OEZ.js.map} +1 -1
  87. package/lib/chunk-AW3TRBZ7.js.map +1 -1
  88. package/lib/chunk-AYTBSAHY.js.map +1 -1
  89. package/lib/chunk-B72FREUL.cjs.map +1 -1
  90. package/lib/chunk-BBEMCANC.cjs.map +1 -1
  91. package/lib/{chunk-JN4JL4WT.cjs → chunk-BJYOKKGX.cjs} +2 -2
  92. package/lib/{chunk-JN4JL4WT.cjs.map → chunk-BJYOKKGX.cjs.map} +1 -1
  93. package/lib/chunk-BN6XJAZH.cjs.map +1 -1
  94. package/lib/chunk-BTAKU6V5.cjs.map +1 -1
  95. package/lib/chunk-CG2ACHGS.js.map +1 -1
  96. package/lib/chunk-CHYP5F26.js.map +1 -1
  97. package/lib/chunk-CK6RZLVM.cjs.map +1 -1
  98. package/lib/chunk-CNCZCBI3.js.map +1 -1
  99. package/lib/chunk-CRRYP7ZN.js.map +1 -1
  100. package/lib/chunk-CTXBUDGO.cjs.map +1 -1
  101. package/lib/chunk-CUNOMS5N.js.map +1 -1
  102. package/lib/chunk-D26KDUDM.cjs.map +1 -1
  103. package/lib/chunk-D5E4OGXU.js.map +1 -1
  104. package/lib/chunk-D7KNSKNJ.js.map +1 -1
  105. package/lib/chunk-DAXKXBA3.js.map +1 -1
  106. package/lib/{chunk-465K3KVE.js → chunk-DGW3ZSW6.js} +2 -2
  107. package/lib/chunk-DGW3ZSW6.js.map +1 -0
  108. package/lib/chunk-DJ572MZB.cjs.map +1 -1
  109. package/lib/chunk-DOFPDQMJ.cjs.map +1 -1
  110. package/lib/chunk-DOGEZ6XX.cjs.map +1 -1
  111. package/lib/chunk-DSKZRVXS.js.map +1 -1
  112. package/lib/chunk-DTGODPCN.js.map +1 -1
  113. package/lib/chunk-DYZGWPZ6.js.map +1 -1
  114. package/lib/chunk-E3FDHGI7.js.map +1 -1
  115. package/lib/chunk-E4DYW6HB.cjs.map +1 -1
  116. package/lib/{chunk-ZFG533LP.js → chunk-E65GENXB.js} +2 -2
  117. package/lib/{chunk-ZFG533LP.js.map → chunk-E65GENXB.js.map} +1 -1
  118. package/lib/chunk-E6TBQVLK.cjs.map +1 -1
  119. package/lib/chunk-EADFDBOR.cjs.map +1 -1
  120. package/lib/chunk-ECMCBU3N.js.map +1 -1
  121. package/lib/chunk-EEFOL62K.js.map +1 -1
  122. package/lib/chunk-EHWAGYNX.js.map +1 -1
  123. package/lib/chunk-ELBOXOTA.js.map +1 -1
  124. package/lib/chunk-EP22KKHR.js.map +1 -1
  125. package/lib/chunk-EP7MAEQH.cjs.map +1 -1
  126. package/lib/chunk-EQD223JW.cjs.map +1 -1
  127. package/lib/{chunk-LCLXLB2R.cjs → chunk-ESMKOP42.cjs} +5 -2
  128. package/lib/chunk-ESMKOP42.cjs.map +1 -0
  129. package/lib/chunk-F6MSHDB7.cjs.map +1 -1
  130. package/lib/chunk-FAU5EILL.js.map +1 -1
  131. package/lib/{chunk-HLCGKY7R.js → chunk-FO7WBEPF.js} +2 -2
  132. package/lib/chunk-FO7WBEPF.js.map +1 -0
  133. package/lib/chunk-FSFXOZ35.cjs.map +1 -1
  134. package/lib/chunk-FTAZDUH6.js.map +1 -1
  135. package/lib/chunk-FVJDRHG7.js.map +1 -1
  136. package/lib/chunk-FXE62CPP.cjs.map +1 -1
  137. package/lib/chunk-FYKIHWAM.cjs.map +1 -1
  138. package/lib/chunk-G74OZ4M6.js.map +1 -1
  139. package/lib/chunk-GD4WRDF2.js.map +1 -1
  140. package/lib/chunk-GE6OHQR6.cjs.map +1 -1
  141. package/lib/chunk-GHLCA7BX.js.map +1 -1
  142. package/lib/chunk-GLSPCG3M.cjs.map +1 -1
  143. package/lib/chunk-H2USYPU6.js.map +1 -1
  144. package/lib/chunk-H4PUXGNI.cjs.map +1 -1
  145. package/lib/chunk-H4SVEI6E.js.map +1 -1
  146. package/lib/chunk-HAAE23MQ.js.map +1 -1
  147. package/lib/chunk-HBUDZOK7.cjs.map +1 -1
  148. package/lib/chunk-HCBXRHD7.js.map +1 -1
  149. package/lib/chunk-HDYENVKD.js.map +1 -1
  150. package/lib/{chunk-LEWK7QET.cjs → chunk-HERQULAV.cjs} +2 -2
  151. package/lib/chunk-HERQULAV.cjs.map +1 -0
  152. package/lib/chunk-HNHF6T2I.cjs.map +1 -1
  153. package/lib/{chunk-HQ35KQFG.cjs → chunk-HNONYIDO.cjs} +2 -2
  154. package/lib/chunk-HNONYIDO.cjs.map +1 -0
  155. package/lib/chunk-HQ5STEMD.js.map +1 -1
  156. package/lib/chunk-HQ6TJSB7.cjs.map +1 -1
  157. package/lib/chunk-HSILJQCD.js.map +1 -1
  158. package/lib/chunk-I3SKGXTB.cjs.map +1 -1
  159. package/lib/chunk-IDAOX5RB.cjs.map +1 -1
  160. package/lib/chunk-IITNQS6D.js.map +1 -1
  161. package/lib/chunk-IKENWSRH.cjs.map +1 -1
  162. package/lib/chunk-IKHD5UQP.cjs.map +1 -1
  163. package/lib/chunk-INJ7FRDA.cjs.map +1 -1
  164. package/lib/chunk-INZD34YD.cjs.map +1 -1
  165. package/lib/chunk-J4CTOHX6.cjs.map +1 -1
  166. package/lib/chunk-J6NBJHWL.cjs.map +1 -1
  167. package/lib/chunk-J6PTNG3D.js.map +1 -1
  168. package/lib/chunk-J7ZSBB35.js.map +1 -1
  169. package/lib/chunk-JAQECLCE.js.map +1 -1
  170. package/lib/chunk-JECYKPCC.cjs.map +1 -1
  171. package/lib/chunk-JPUF5YXX.js.map +1 -1
  172. package/lib/chunk-JRTJ6LWK.js.map +1 -1
  173. package/lib/chunk-JT7HVLLW.cjs.map +1 -1
  174. package/lib/chunk-JVF5KY2J.cjs.map +1 -1
  175. package/lib/chunk-JWC2GSYH.cjs.map +1 -1
  176. package/lib/chunk-JYOFP6BM.js.map +1 -1
  177. package/lib/chunk-JYXAF775.js.map +1 -1
  178. package/lib/chunk-K2CU5HIV.js.map +1 -1
  179. package/lib/chunk-K6WSCQKS.cjs.map +1 -1
  180. package/lib/chunk-KH5OQRQL.js.map +1 -1
  181. package/lib/{chunk-7X36B7N6.js → chunk-KITKWF6F.js} +2 -2
  182. package/lib/chunk-KITKWF6F.js.map +1 -0
  183. package/lib/{chunk-KBN3FFXD.cjs → chunk-KPRWSW6P.cjs} +2 -2
  184. package/lib/chunk-KPRWSW6P.cjs.map +1 -0
  185. package/lib/{chunk-7GVHCOUC.js → chunk-KU5U6DTU.js} +2 -2
  186. package/lib/{chunk-7GVHCOUC.js.map → chunk-KU5U6DTU.js.map} +1 -1
  187. package/lib/chunk-KWRDUU7K.js.map +1 -1
  188. package/lib/chunk-L4LPS3DV.cjs.map +1 -1
  189. package/lib/chunk-L4TDKOAC.js.map +1 -1
  190. package/lib/chunk-L5NEDGXK.js.map +1 -1
  191. package/lib/chunk-L6IGO47T.js.map +1 -1
  192. package/lib/chunk-LCNT6GY3.js.map +1 -1
  193. package/lib/chunk-LIT4FEIU.cjs.map +1 -1
  194. package/lib/chunk-LJ2EP6AL.cjs.map +1 -1
  195. package/lib/chunk-LNMY5BDT.js.map +1 -1
  196. package/lib/chunk-LTLMRGB7.js.map +1 -1
  197. package/lib/chunk-M2ZERG2X.cjs.map +1 -1
  198. package/lib/chunk-MADGMICB.js.map +1 -1
  199. package/lib/{chunk-VDZUWCIN.cjs → chunk-MCGX2ZDC.cjs} +2 -2
  200. package/lib/{chunk-VDZUWCIN.cjs.map → chunk-MCGX2ZDC.cjs.map} +1 -1
  201. package/lib/chunk-MJRMRWP3.js.map +1 -1
  202. package/lib/chunk-MPSHBMZS.js.map +1 -1
  203. package/lib/chunk-MQZSDICO.cjs.map +1 -1
  204. package/lib/chunk-MUPRLXGP.js.map +1 -1
  205. package/lib/chunk-MWYBER5I.cjs.map +1 -1
  206. package/lib/chunk-MZNHRIXE.js.map +1 -1
  207. package/lib/chunk-N4P7A3RY.js.map +1 -1
  208. package/lib/chunk-N6MHUHGE.cjs.map +1 -1
  209. package/lib/chunk-N753UD4K.cjs.map +1 -1
  210. package/lib/chunk-NAWKHFBZ.js.map +1 -1
  211. package/lib/chunk-NBYV35R4.cjs.map +1 -1
  212. package/lib/chunk-NDPDO54G.js.map +1 -1
  213. package/lib/chunk-NEC22ZSI.cjs.map +1 -1
  214. package/lib/{chunk-OPQJPXLM.cjs → chunk-NIHOABAW.cjs} +2 -2
  215. package/lib/chunk-NIHOABAW.cjs.map +1 -0
  216. package/lib/chunk-NJYMO7FP.cjs.map +1 -1
  217. package/lib/chunk-NODKE6P4.js.map +1 -1
  218. package/lib/chunk-OGLS27LJ.js.map +1 -1
  219. package/lib/chunk-OYFNK2SE.cjs.map +1 -1
  220. package/lib/chunk-PEU5GGGE.js.map +1 -1
  221. package/lib/chunk-PNSVP3KP.cjs.map +1 -1
  222. package/lib/chunk-PQS6KXZ2.cjs.map +1 -1
  223. package/lib/chunk-PV7MUP5Z.js.map +1 -1
  224. package/lib/chunk-PZZLLHJP.js.map +1 -1
  225. package/lib/chunk-Q2ZSQM7I.js.map +1 -1
  226. package/lib/chunk-Q66HILUF.js.map +1 -1
  227. package/lib/chunk-Q66JEOCJ.cjs.map +1 -1
  228. package/lib/chunk-Q7YHSPJL.js.map +1 -1
  229. package/lib/chunk-QGE4ELJO.cjs.map +1 -1
  230. package/lib/chunk-QK5MFD4L.js.map +1 -1
  231. package/lib/chunk-QK7D6L3W.js.map +1 -1
  232. package/lib/chunk-QYDOENWU.cjs.map +1 -1
  233. package/lib/chunk-QZTNLPOD.cjs.map +1 -1
  234. package/lib/chunk-QZWQNPKC.js.map +1 -1
  235. package/lib/chunk-R2LRLUUY.js.map +1 -1
  236. package/lib/chunk-R755X3AG.cjs.map +1 -1
  237. package/lib/chunk-RHARO4TQ.cjs.map +1 -1
  238. package/lib/{chunk-QHRQCFDB.js → chunk-RL7Y22OT.js} +2 -2
  239. package/lib/chunk-RL7Y22OT.js.map +1 -0
  240. package/lib/chunk-ROPOLXIV.js.map +1 -1
  241. package/lib/chunk-RT7XLEV6.js.map +1 -1
  242. package/lib/chunk-RTDD2NRL.cjs.map +1 -1
  243. package/lib/chunk-RTGW34KX.cjs.map +1 -1
  244. package/lib/{chunk-3LTCO2OB.cjs → chunk-S3MCPCGR.cjs} +4 -4
  245. package/lib/{chunk-3LTCO2OB.cjs.map → chunk-S3MCPCGR.cjs.map} +1 -1
  246. package/lib/chunk-SGOUEVJ3.cjs.map +1 -1
  247. package/lib/chunk-SGWRNEJB.cjs.map +1 -1
  248. package/lib/chunk-SKFA2ZIK.js.map +1 -1
  249. package/lib/chunk-SN6BP777.js.map +1 -1
  250. package/lib/chunk-SOXJJRL2.js.map +1 -1
  251. package/lib/chunk-SPLHKBWG.cjs.map +1 -1
  252. package/lib/chunk-SRW7OWVS.cjs.map +1 -1
  253. package/lib/chunk-SUJCEUOZ.cjs.map +1 -1
  254. package/lib/chunk-SWWPX4V4.cjs.map +1 -1
  255. package/lib/chunk-THO6KQJZ.js.map +1 -1
  256. package/lib/chunk-THVPSJTK.cjs.map +1 -1
  257. package/lib/chunk-TIJIXGNJ.cjs.map +1 -1
  258. package/lib/chunk-TM5OCFYV.cjs.map +1 -1
  259. package/lib/{chunk-FKDKRSPO.js → chunk-TOV6ECTA.js} +2 -2
  260. package/lib/chunk-TOV6ECTA.js.map +1 -0
  261. package/lib/chunk-TQFODT4D.cjs.map +1 -1
  262. package/lib/chunk-TSD2PK6H.js.map +1 -1
  263. package/lib/chunk-TSLXKI72.js.map +1 -1
  264. package/lib/chunk-U5FTZYJJ.js.map +1 -1
  265. package/lib/chunk-U6PW4AZV.js.map +1 -1
  266. package/lib/chunk-UB6JC3W7.js.map +1 -1
  267. package/lib/chunk-UBXNH6J3.js.map +1 -1
  268. package/lib/chunk-UP7FR6HD.cjs.map +1 -1
  269. package/lib/chunk-VNWOCO65.cjs.map +1 -1
  270. package/lib/chunk-VPXMI42G.cjs.map +1 -1
  271. package/lib/chunk-VRFSITD3.js.map +1 -1
  272. package/lib/chunk-VUCYIRSC.cjs.map +1 -1
  273. package/lib/{chunk-NJQDJCFB.cjs → chunk-W6AL2GJ4.cjs} +2 -2
  274. package/lib/{chunk-NJQDJCFB.cjs.map → chunk-W6AL2GJ4.cjs.map} +1 -1
  275. package/lib/{chunk-EKGR3EB3.js → chunk-W6YJDUYD.js} +2 -2
  276. package/lib/chunk-W6YJDUYD.js.map +1 -0
  277. package/lib/chunk-WAL76UPE.cjs.map +1 -1
  278. package/lib/chunk-WBPEFNL7.cjs.map +1 -1
  279. package/lib/{chunk-KJAD45RP.cjs → chunk-WC4Z7ENS.cjs} +2 -2
  280. package/lib/chunk-WC4Z7ENS.cjs.map +1 -0
  281. package/lib/{chunk-BOPK7T5K.js → chunk-WI5IVLYL.js} +2 -2
  282. package/lib/chunk-WI5IVLYL.js.map +1 -0
  283. package/lib/chunk-WKN5RLNR.js.map +1 -1
  284. package/lib/chunk-WP3L72CW.js.map +1 -1
  285. package/lib/chunk-WTHX574O.js.map +1 -1
  286. package/lib/{chunk-M55NSZVW.js → chunk-WVAW33XQ.js} +3 -3
  287. package/lib/chunk-WVAW33XQ.js.map +1 -0
  288. package/lib/{chunk-JENLN6VJ.js → chunk-WVKEXOIY.js} +5 -2
  289. package/lib/chunk-WVKEXOIY.js.map +1 -0
  290. package/lib/chunk-WXD4O4UY.js.map +1 -1
  291. package/lib/{chunk-JRYILJJY.cjs → chunk-WXE5KXJC.cjs} +3 -3
  292. package/lib/chunk-WXE5KXJC.cjs.map +1 -0
  293. package/lib/chunk-X2D47UM7.cjs.map +1 -1
  294. package/lib/chunk-X6PHZA6P.cjs.map +1 -1
  295. package/lib/chunk-XD7GS4QW.js.map +1 -1
  296. package/lib/chunk-XMDDYWH5.js.map +1 -1
  297. package/lib/chunk-XPF5Z2WY.js.map +1 -1
  298. package/lib/chunk-XR3KEV7U.js.map +1 -1
  299. package/lib/chunk-XUC3BYL2.cjs.map +1 -1
  300. package/lib/chunk-Y2IGLW5N.js.map +1 -1
  301. package/lib/chunk-Y3BFYVWA.js.map +1 -1
  302. package/lib/{chunk-VMJUXZ67.cjs → chunk-Y5BP4C42.cjs} +2 -2
  303. package/lib/chunk-Y5BP4C42.cjs.map +1 -0
  304. package/lib/chunk-YAKNUPNE.cjs.map +1 -1
  305. package/lib/chunk-YAVHAWTZ.js.map +1 -1
  306. package/lib/chunk-YBXRC6MC.js.map +1 -1
  307. package/lib/chunk-YHYBOXVX.cjs.map +1 -1
  308. package/lib/chunk-YIDX7HVR.cjs.map +1 -1
  309. package/lib/chunk-YN4M5CNJ.js.map +1 -1
  310. package/lib/chunk-YOHBJHTH.cjs.map +1 -1
  311. package/lib/chunk-YUGZUUAU.js.map +1 -1
  312. package/lib/chunk-YY5ENJSH.cjs.map +1 -1
  313. package/lib/chunk-Z2QVXW6T.cjs.map +1 -1
  314. package/lib/chunk-Z667GAZJ.js.map +1 -1
  315. package/lib/chunk-Z7DKPFKZ.js.map +1 -1
  316. package/lib/chunk-ZAISVVBE.cjs.map +1 -1
  317. package/lib/chunk-ZASD6IUL.js.map +1 -1
  318. package/lib/chunk-ZEEB5YAU.js.map +1 -1
  319. package/lib/chunk-ZQSCFH5J.cjs.map +1 -1
  320. package/lib/chunk-ZTVQSWSD.cjs.map +1 -1
  321. package/lib/chunk-ZU7GFVQ6.js.map +1 -1
  322. package/lib/chunk-ZZF34M2E.cjs.map +1 -1
  323. package/lib/client.d.cts +3 -1
  324. package/lib/commercelayer.cjs +5 -5
  325. package/lib/commercelayer.d.cts +6 -4
  326. package/lib/commercelayer.d.ts +3 -3
  327. package/lib/commercelayer.js +1 -1
  328. package/lib/enum.d.cts +1 -1
  329. package/lib/enum.d.ts +1 -1
  330. package/lib/index.cjs +29 -29
  331. package/lib/index.d.cts +5 -2
  332. package/lib/index.d.ts +1 -1
  333. package/lib/index.js +14 -14
  334. package/lib/jsonapi.d.cts +1 -1
  335. package/lib/jsonapi.d.ts +1 -1
  336. package/lib/model.d.cts +1 -1
  337. package/lib/model.d.ts +1 -1
  338. package/lib/query.d.cts +1 -1
  339. package/lib/query.d.ts +1 -1
  340. package/lib/resource.d.cts +1 -1
  341. package/lib/resource.d.ts +1 -1
  342. package/lib/resources/addresses.d.cts +4 -1
  343. package/lib/resources/addresses.d.ts +1 -1
  344. package/lib/resources/adjustments.d.cts +4 -1
  345. package/lib/resources/adjustments.d.ts +1 -1
  346. package/lib/resources/adyen_gateways.d.cts +4 -1
  347. package/lib/resources/adyen_gateways.d.ts +1 -1
  348. package/lib/resources/adyen_payments.cjs +2 -2
  349. package/lib/resources/adyen_payments.d.cts +4 -1
  350. package/lib/resources/adyen_payments.d.ts +1 -1
  351. package/lib/resources/adyen_payments.js +1 -1
  352. package/lib/resources/applications.cjs +2 -2
  353. package/lib/resources/applications.d.cts +4 -1
  354. package/lib/resources/applications.d.ts +1 -1
  355. package/lib/resources/applications.js +1 -1
  356. package/lib/resources/attachments.d.cts +4 -1
  357. package/lib/resources/attachments.d.ts +1 -1
  358. package/lib/resources/authorizations.d.cts +4 -1
  359. package/lib/resources/authorizations.d.ts +1 -1
  360. package/lib/resources/avalara_accounts.d.cts +4 -1
  361. package/lib/resources/avalara_accounts.d.ts +1 -1
  362. package/lib/resources/axerve_gateways.d.cts +4 -1
  363. package/lib/resources/axerve_gateways.d.ts +1 -1
  364. package/lib/resources/axerve_payments.d.cts +4 -1
  365. package/lib/resources/axerve_payments.d.ts +1 -1
  366. package/lib/resources/bing_geocoders.d.cts +4 -1
  367. package/lib/resources/bing_geocoders.d.ts +1 -1
  368. package/lib/resources/braintree_gateways.d.cts +4 -1
  369. package/lib/resources/braintree_gateways.d.ts +1 -1
  370. package/lib/resources/braintree_payments.d.cts +4 -1
  371. package/lib/resources/braintree_payments.d.ts +1 -1
  372. package/lib/resources/bundles.d.cts +4 -1
  373. package/lib/resources/bundles.d.ts +1 -1
  374. package/lib/resources/buy_x_pay_y_promotions.d.cts +4 -1
  375. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  376. package/lib/resources/captures.d.cts +4 -1
  377. package/lib/resources/captures.d.ts +1 -1
  378. package/lib/resources/carrier_accounts.d.cts +4 -1
  379. package/lib/resources/carrier_accounts.d.ts +1 -1
  380. package/lib/resources/checkout_com_gateways.d.cts +4 -1
  381. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  382. package/lib/resources/checkout_com_payments.cjs +2 -2
  383. package/lib/resources/checkout_com_payments.d.cts +4 -1
  384. package/lib/resources/checkout_com_payments.d.ts +1 -1
  385. package/lib/resources/checkout_com_payments.js +1 -1
  386. package/lib/resources/cleanups.d.cts +4 -1
  387. package/lib/resources/cleanups.d.ts +1 -1
  388. package/lib/resources/coupon_codes_promotion_rules.d.cts +4 -1
  389. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  390. package/lib/resources/coupon_recipients.d.cts +4 -1
  391. package/lib/resources/coupon_recipients.d.ts +1 -1
  392. package/lib/resources/coupons.d.cts +4 -1
  393. package/lib/resources/coupons.d.ts +1 -1
  394. package/lib/resources/custom_promotion_rules.d.cts +4 -1
  395. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  396. package/lib/resources/customer_addresses.d.cts +4 -1
  397. package/lib/resources/customer_addresses.d.ts +1 -1
  398. package/lib/resources/customer_groups.d.cts +4 -1
  399. package/lib/resources/customer_groups.d.ts +1 -1
  400. package/lib/resources/customer_password_resets.d.cts +4 -1
  401. package/lib/resources/customer_password_resets.d.ts +1 -1
  402. package/lib/resources/customer_payment_sources.d.cts +4 -1
  403. package/lib/resources/customer_payment_sources.d.ts +1 -1
  404. package/lib/resources/customer_subscriptions.d.cts +4 -1
  405. package/lib/resources/customer_subscriptions.d.ts +1 -1
  406. package/lib/resources/customers.cjs +2 -2
  407. package/lib/resources/customers.d.cts +4 -1
  408. package/lib/resources/customers.d.ts +1 -1
  409. package/lib/resources/customers.js +1 -1
  410. package/lib/resources/delivery_lead_times.d.cts +4 -1
  411. package/lib/resources/delivery_lead_times.d.ts +1 -1
  412. package/lib/resources/discount_engine_items.d.cts +4 -1
  413. package/lib/resources/discount_engine_items.d.ts +1 -1
  414. package/lib/resources/discount_engines.d.cts +4 -1
  415. package/lib/resources/discount_engines.d.ts +1 -1
  416. package/lib/resources/easypost_pickups.d.cts +4 -1
  417. package/lib/resources/easypost_pickups.d.ts +1 -1
  418. package/lib/resources/event_callbacks.d.cts +4 -1
  419. package/lib/resources/event_callbacks.d.ts +1 -1
  420. package/lib/resources/events.d.cts +4 -1
  421. package/lib/resources/events.d.ts +1 -1
  422. package/lib/resources/exports.d.cts +4 -1
  423. package/lib/resources/exports.d.ts +1 -1
  424. package/lib/resources/external_gateways.d.cts +4 -1
  425. package/lib/resources/external_gateways.d.ts +1 -1
  426. package/lib/resources/external_payments.d.cts +4 -1
  427. package/lib/resources/external_payments.d.ts +1 -1
  428. package/lib/resources/external_promotions.d.cts +4 -1
  429. package/lib/resources/external_promotions.d.ts +1 -1
  430. package/lib/resources/external_tax_calculators.d.cts +4 -1
  431. package/lib/resources/external_tax_calculators.d.ts +1 -1
  432. package/lib/resources/fixed_amount_promotions.d.cts +4 -1
  433. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  434. package/lib/resources/fixed_price_promotions.d.cts +4 -1
  435. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  436. package/lib/resources/flex_promotions.cjs +2 -2
  437. package/lib/resources/flex_promotions.d.cts +4 -1
  438. package/lib/resources/flex_promotions.d.ts +1 -1
  439. package/lib/resources/flex_promotions.js +1 -1
  440. package/lib/resources/free_gift_promotions.d.cts +4 -1
  441. package/lib/resources/free_gift_promotions.d.ts +1 -1
  442. package/lib/resources/free_shipping_promotions.d.cts +4 -1
  443. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  444. package/lib/resources/geocoders.d.cts +4 -1
  445. package/lib/resources/geocoders.d.ts +1 -1
  446. package/lib/resources/gift_card_recipients.d.cts +4 -1
  447. package/lib/resources/gift_card_recipients.d.ts +1 -1
  448. package/lib/resources/gift_cards.d.cts +4 -1
  449. package/lib/resources/gift_cards.d.ts +1 -1
  450. package/lib/resources/google_geocoders.d.cts +4 -1
  451. package/lib/resources/google_geocoders.d.ts +1 -1
  452. package/lib/resources/imports.d.cts +4 -1
  453. package/lib/resources/imports.d.ts +1 -1
  454. package/lib/resources/in_stock_subscriptions.d.cts +4 -1
  455. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  456. package/lib/resources/inventory_models.d.cts +4 -1
  457. package/lib/resources/inventory_models.d.ts +1 -1
  458. package/lib/resources/inventory_return_locations.d.cts +4 -1
  459. package/lib/resources/inventory_return_locations.d.ts +1 -1
  460. package/lib/resources/inventory_stock_locations.d.cts +4 -1
  461. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  462. package/lib/resources/klarna_gateways.d.cts +4 -1
  463. package/lib/resources/klarna_gateways.d.ts +1 -1
  464. package/lib/resources/klarna_payments.d.cts +4 -1
  465. package/lib/resources/klarna_payments.d.ts +1 -1
  466. package/lib/resources/line_item_options.d.cts +4 -1
  467. package/lib/resources/line_item_options.d.ts +1 -1
  468. package/lib/resources/line_items.cjs +2 -2
  469. package/lib/resources/line_items.d.cts +4 -1
  470. package/lib/resources/line_items.d.ts +1 -1
  471. package/lib/resources/line_items.js +1 -1
  472. package/lib/resources/links.d.cts +4 -1
  473. package/lib/resources/links.d.ts +1 -1
  474. package/lib/resources/manual_gateways.d.cts +4 -1
  475. package/lib/resources/manual_gateways.d.ts +1 -1
  476. package/lib/resources/manual_tax_calculators.d.cts +4 -1
  477. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  478. package/lib/resources/markets.d.cts +4 -1
  479. package/lib/resources/markets.d.ts +1 -1
  480. package/lib/resources/merchants.d.cts +4 -1
  481. package/lib/resources/merchants.d.ts +1 -1
  482. package/lib/resources/notifications.d.cts +4 -1
  483. package/lib/resources/notifications.d.ts +1 -1
  484. package/lib/resources/order_amount_promotion_rules.d.cts +4 -1
  485. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  486. package/lib/resources/order_copies.d.cts +4 -1
  487. package/lib/resources/order_copies.d.ts +1 -1
  488. package/lib/resources/order_factories.d.cts +4 -1
  489. package/lib/resources/order_factories.d.ts +1 -1
  490. package/lib/resources/order_subscription_items.d.cts +4 -1
  491. package/lib/resources/order_subscription_items.d.ts +1 -1
  492. package/lib/resources/order_subscriptions.d.cts +4 -1
  493. package/lib/resources/order_subscriptions.d.ts +1 -1
  494. package/lib/resources/orders.d.cts +4 -1
  495. package/lib/resources/orders.d.ts +1 -1
  496. package/lib/resources/organizations.d.cts +4 -1
  497. package/lib/resources/organizations.d.ts +1 -1
  498. package/lib/resources/packages.d.cts +4 -1
  499. package/lib/resources/packages.d.ts +1 -1
  500. package/lib/resources/parcel_line_items.d.cts +4 -1
  501. package/lib/resources/parcel_line_items.d.ts +1 -1
  502. package/lib/resources/parcels.d.cts +4 -1
  503. package/lib/resources/parcels.d.ts +1 -1
  504. package/lib/resources/payment_gateways.d.cts +4 -1
  505. package/lib/resources/payment_gateways.d.ts +1 -1
  506. package/lib/resources/payment_methods.cjs +2 -2
  507. package/lib/resources/payment_methods.d.cts +4 -1
  508. package/lib/resources/payment_methods.d.ts +1 -1
  509. package/lib/resources/payment_methods.js +1 -1
  510. package/lib/resources/payment_options.cjs +2 -2
  511. package/lib/resources/payment_options.d.cts +4 -1
  512. package/lib/resources/payment_options.d.ts +1 -1
  513. package/lib/resources/payment_options.js +1 -1
  514. package/lib/resources/paypal_gateways.d.cts +4 -1
  515. package/lib/resources/paypal_gateways.d.ts +1 -1
  516. package/lib/resources/paypal_payments.d.cts +4 -1
  517. package/lib/resources/paypal_payments.d.ts +1 -1
  518. package/lib/resources/percentage_discount_promotions.d.cts +4 -1
  519. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  520. package/lib/resources/pickups.d.cts +4 -1
  521. package/lib/resources/pickups.d.ts +1 -1
  522. package/lib/resources/price_frequency_tiers.d.cts +4 -1
  523. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  524. package/lib/resources/price_list_schedulers.d.cts +4 -1
  525. package/lib/resources/price_list_schedulers.d.ts +1 -1
  526. package/lib/resources/price_lists.cjs +2 -2
  527. package/lib/resources/price_lists.d.cts +4 -1
  528. package/lib/resources/price_lists.d.ts +1 -1
  529. package/lib/resources/price_lists.js +1 -1
  530. package/lib/resources/price_tiers.d.cts +4 -1
  531. package/lib/resources/price_tiers.d.ts +1 -1
  532. package/lib/resources/price_volume_tiers.d.cts +4 -1
  533. package/lib/resources/price_volume_tiers.d.ts +1 -1
  534. package/lib/resources/prices.cjs +2 -2
  535. package/lib/resources/prices.d.cts +4 -1
  536. package/lib/resources/prices.d.ts +1 -1
  537. package/lib/resources/prices.js +1 -1
  538. package/lib/resources/promotion_rules.d.cts +4 -1
  539. package/lib/resources/promotion_rules.d.ts +1 -1
  540. package/lib/resources/promotions.d.cts +4 -1
  541. package/lib/resources/promotions.d.ts +1 -1
  542. package/lib/resources/recurring_order_copies.d.cts +4 -1
  543. package/lib/resources/recurring_order_copies.d.ts +1 -1
  544. package/lib/resources/refunds.d.cts +4 -1
  545. package/lib/resources/refunds.d.ts +1 -1
  546. package/lib/resources/reserved_stocks.d.cts +4 -1
  547. package/lib/resources/reserved_stocks.d.ts +1 -1
  548. package/lib/resources/resource_errors.d.cts +4 -1
  549. package/lib/resources/resource_errors.d.ts +1 -1
  550. package/lib/resources/return_line_items.d.cts +4 -1
  551. package/lib/resources/return_line_items.d.ts +1 -1
  552. package/lib/resources/returns.d.cts +4 -1
  553. package/lib/resources/returns.d.ts +1 -1
  554. package/lib/resources/satispay_gateways.d.cts +4 -1
  555. package/lib/resources/satispay_gateways.d.ts +1 -1
  556. package/lib/resources/satispay_payments.d.cts +4 -1
  557. package/lib/resources/satispay_payments.d.ts +1 -1
  558. package/lib/resources/shipments.d.cts +4 -1
  559. package/lib/resources/shipments.d.ts +1 -1
  560. package/lib/resources/shipping_categories.d.cts +4 -1
  561. package/lib/resources/shipping_categories.d.ts +1 -1
  562. package/lib/resources/shipping_method_tiers.d.cts +4 -1
  563. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  564. package/lib/resources/shipping_methods.cjs +2 -2
  565. package/lib/resources/shipping_methods.d.cts +4 -1
  566. package/lib/resources/shipping_methods.d.ts +1 -1
  567. package/lib/resources/shipping_methods.js +1 -1
  568. package/lib/resources/shipping_weight_tiers.d.cts +4 -1
  569. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  570. package/lib/resources/shipping_zones.d.cts +4 -1
  571. package/lib/resources/shipping_zones.d.ts +1 -1
  572. package/lib/resources/sku_list_items.d.cts +4 -1
  573. package/lib/resources/sku_list_items.d.ts +1 -1
  574. package/lib/resources/sku_list_promotion_rules.d.cts +4 -1
  575. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  576. package/lib/resources/sku_lists.d.cts +4 -1
  577. package/lib/resources/sku_lists.d.ts +1 -1
  578. package/lib/resources/sku_options.d.cts +4 -1
  579. package/lib/resources/sku_options.d.ts +1 -1
  580. package/lib/resources/skus.d.cts +4 -1
  581. package/lib/resources/skus.d.ts +1 -1
  582. package/lib/resources/stock_items.d.cts +4 -1
  583. package/lib/resources/stock_items.d.ts +1 -1
  584. package/lib/resources/stock_line_items.d.cts +4 -1
  585. package/lib/resources/stock_line_items.d.ts +1 -1
  586. package/lib/resources/stock_locations.d.cts +4 -1
  587. package/lib/resources/stock_locations.d.ts +1 -1
  588. package/lib/resources/stock_reservations.d.cts +4 -1
  589. package/lib/resources/stock_reservations.d.ts +1 -1
  590. package/lib/resources/stock_transfers.d.cts +4 -1
  591. package/lib/resources/stock_transfers.d.ts +1 -1
  592. package/lib/resources/stores.d.cts +4 -1
  593. package/lib/resources/stores.d.ts +1 -1
  594. package/lib/resources/stripe_gateways.d.cts +4 -1
  595. package/lib/resources/stripe_gateways.d.ts +1 -1
  596. package/lib/resources/stripe_payments.d.cts +4 -1
  597. package/lib/resources/stripe_payments.d.ts +1 -1
  598. package/lib/resources/stripe_tax_accounts.d.cts +4 -1
  599. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  600. package/lib/resources/subscription_models.d.cts +4 -1
  601. package/lib/resources/subscription_models.d.ts +1 -1
  602. package/lib/resources/tags.d.cts +4 -1
  603. package/lib/resources/tags.d.ts +1 -1
  604. package/lib/resources/talon_one_accounts.cjs +2 -2
  605. package/lib/resources/talon_one_accounts.d.cts +4 -1
  606. package/lib/resources/talon_one_accounts.d.ts +1 -1
  607. package/lib/resources/talon_one_accounts.js +1 -1
  608. package/lib/resources/tax_calculators.d.cts +4 -1
  609. package/lib/resources/tax_calculators.d.ts +1 -1
  610. package/lib/resources/tax_categories.d.cts +4 -1
  611. package/lib/resources/tax_categories.d.ts +1 -1
  612. package/lib/resources/tax_rules.d.cts +4 -1
  613. package/lib/resources/tax_rules.d.ts +1 -1
  614. package/lib/resources/taxjar_accounts.d.cts +4 -1
  615. package/lib/resources/taxjar_accounts.d.ts +1 -1
  616. package/lib/resources/transactions.d.cts +4 -1
  617. package/lib/resources/transactions.d.ts +1 -1
  618. package/lib/resources/versions.d.cts +4 -1
  619. package/lib/resources/versions.d.ts +1 -1
  620. package/lib/resources/vertex_accounts.d.cts +4 -1
  621. package/lib/resources/vertex_accounts.d.ts +1 -1
  622. package/lib/resources/voids.d.cts +4 -1
  623. package/lib/resources/voids.d.ts +1 -1
  624. package/lib/resources/webhooks.d.cts +4 -1
  625. package/lib/resources/webhooks.d.ts +1 -1
  626. package/lib/resources/wire_transfers.d.cts +4 -1
  627. package/lib/resources/wire_transfers.d.ts +1 -1
  628. package/lib/static.cjs +3 -3
  629. package/lib/static.d.cts +1 -1
  630. package/lib/static.d.ts +1 -1
  631. package/lib/static.js +2 -2
  632. package/package.json +8 -8
  633. package/lib/chunk-465K3KVE.js.map +0 -1
  634. package/lib/chunk-7X36B7N6.js.map +0 -1
  635. package/lib/chunk-BOPK7T5K.js.map +0 -1
  636. package/lib/chunk-EKGR3EB3.js.map +0 -1
  637. package/lib/chunk-FKDKRSPO.js.map +0 -1
  638. package/lib/chunk-HLCGKY7R.js.map +0 -1
  639. package/lib/chunk-HQ35KQFG.cjs.map +0 -1
  640. package/lib/chunk-JENLN6VJ.js.map +0 -1
  641. package/lib/chunk-JRYILJJY.cjs.map +0 -1
  642. package/lib/chunk-KBN3FFXD.cjs.map +0 -1
  643. package/lib/chunk-KJAD45RP.cjs.map +0 -1
  644. package/lib/chunk-LCLXLB2R.cjs.map +0 -1
  645. package/lib/chunk-LEWK7QET.cjs.map +0 -1
  646. package/lib/chunk-M55NSZVW.js.map +0 -1
  647. package/lib/chunk-NMVACSMG.js.map +0 -1
  648. package/lib/chunk-OPQJPXLM.cjs.map +0 -1
  649. package/lib/chunk-P3NADEGE.cjs.map +0 -1
  650. package/lib/chunk-QHRQCFDB.js.map +0 -1
  651. package/lib/chunk-RWPFE3LF.cjs.map +0 -1
  652. package/lib/chunk-VMJUXZ67.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/bundle.ts"],"names":["debug_default","CommerceLayerClient","addresses_default","adjustments_default","adyen_gateways_default","adyen_payments_default","applications_default","attachments_default","authorizations_default","avalara_accounts_default","axerve_gateways_default","axerve_payments_default","bing_geocoders_default","braintree_gateways_default","braintree_payments_default","bundles_default","buy_x_pay_y_promotions_default","captures_default","carrier_accounts_default","checkout_com_gateways_default","checkout_com_payments_default","cleanups_default","coupon_codes_promotion_rules_default","coupon_recipients_default","coupons_default","custom_promotion_rules_default","customer_addresses_default","customer_groups_default","customer_password_resets_default","customer_payment_sources_default","customer_subscriptions_default","customers_default","delivery_lead_times_default","discount_engine_items_default","discount_engines_default","easypost_pickups_default","event_callbacks_default","events_default","exports_default","external_gateways_default","external_payments_default","external_promotions_default","external_tax_calculators_default","fixed_amount_promotions_default","fixed_price_promotions_default","flex_promotions_default","free_gift_promotions_default","free_shipping_promotions_default","geocoders_default","gift_card_recipients_default","gift_cards_default","google_geocoders_default","imports_default","in_stock_subscriptions_default","inventory_models_default","inventory_return_locations_default","inventory_stock_locations_default","klarna_gateways_default","klarna_payments_default","line_item_options_default","line_items_default","links_default","manual_gateways_default","manual_tax_calculators_default","markets_default","merchants_default","notifications_default","order_amount_promotion_rules_default","order_copies_default","order_factories_default","order_subscription_items_default","order_subscriptions_default","orders_default","organizations_default","packages_default","parcel_line_items_default","parcels_default","payment_gateways_default","payment_methods_default","payment_options_default","paypal_gateways_default","paypal_payments_default","percentage_discount_promotions_default","pickups_default","price_frequency_tiers_default","price_list_schedulers_default","price_lists_default","price_tiers_default","price_volume_tiers_default","prices_default","promotion_rules_default","promotions_default","recurring_order_copies_default","refunds_default","reserved_stocks_default","resource_errors_default","return_line_items_default","returns_default","satispay_gateways_default","satispay_payments_default","shipments_default","shipping_categories_default","shipping_method_tiers_default","shipping_methods_default","shipping_weight_tiers_default","shipping_zones_default","sku_list_items_default","sku_list_promotion_rules_default","sku_lists_default","sku_options_default","skus_default","stock_items_default","stock_line_items_default","stock_locations_default","stock_reservations_default","stock_transfers_default","stores_default","stripe_gateways_default","stripe_payments_default","stripe_tax_accounts_default","subscription_models_default","tags_default","talon_one_accounts_default","tax_calculators_default","tax_categories_default","tax_rules_default","taxjar_accounts_default","transactions_default","versions_default","vertex_accounts_default","voids_default","webhooks_default","wire_transfers_default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,KAAA,GAAQA,gCAAM,QAAQ,CAAA;AAG5B,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4BC,qCAAoB,CAAA;AAAA;AAAA;AAAA;AAAA,EAM7C,YAAY,MAAiC,EAAA;AAEpD,IAAA,KAAA,CAAM,MAAM,CAAA;AACZ,IAAA,KAAA,CAAM,wCAAwC,MAAM,CAAA;AAAA;AAMrD,EAGA,OAAO,IAAK,MAAuD,EAAA;AAClE,IAAA,IAAI,QAAgB,OAAA,oBAAA,CAAoB,EAAK,GAAA,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAoB,CAAA,EAAA,EAAU,MAAA,IAAI,MAAM,6CAA6C,CAAA;AAC1F,IAAA,OAAO,oBAAoB,CAAA,EAAA;AAAA;AAC5B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,IAAI,SAA2B,GAAA;AAAE,IAAW,OAAAC,mCAAA;AAAA;AAAU,EACtD,IAAI,WAA+B,GAAA;AAAE,IAAW,OAAAC,qCAAA;AAAA;AAAY,EAC5D,IAAI,cAAoC,GAAA;AAAE,IAAW,OAAAC,wCAAA;AAAA;AAAe,EACpE,IAAI,cAAo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AAgB,EACvE,IAAI,eAAsC,GAAA;AAAE,IAAW,OAAAC,yCAAA;AAAA;AAAgB,EACvE,IAAI,mBAA6C,GAAA;AAAE,IAAW,OAAAC,6CAAA;AAAA;AAAoB,EAClF,IAAI,mBAA8C,GAAA;AAAE,IAAW,OAAAC,6CAAA;AAAA;AAAoB,EACnF,IAAI,IAAiB,GAAA;AAAE,IAAW,OAAAC,8BAAA;AAAA;AAAK,EACvC,IAAI,kBAA2C,GAAA;AAAE,IAAW,OAAAC,4CAAA;AAAA;AAAmB,EAC/E,IAAI,eAAsC,GAAA;AAAE,IAAW,OAAAC,yCAAA;AAAA;AAAgB,EACvE,IAAI,cAAoC,GAAA;AAAE,IAAW,OAAAC,wCAAA;AAAA;AAAe,EACpE,IAAI,SAA0B,GAAA;AAAE,IAAW,OAAAC,mCAAA;AAAA;AAAU,EACrD,IAAI,eAAsC,GAAA;AAAE,IAAW,OAAAC,yCAAA;AAAA;AAAgB,EACvE,IAAI,YAAiC,GAAA;AAAE,IAAW,OAAAC,sCAAA;AAAA;AAAa,EAC/D,IAAI,QAAyB,GAAA;AAAE,IAAW,OAAAC,kCAAA;AAAA;AAAS,EACnD,IAAI,eAAsC,GAAA;AAAE,IAAW,OAAAC,yCAAA;AAAA;AAAgB,EACvE,IAAI,KAAmB,GAAA;AAAE,IAAW,OAAAC,+BAAA;AAAA;AAAM,EAC1C,IAAI,QAAyB,GAAA;AAAE,IAAW,OAAAC,kCAAA;AAAA;AAAS,EACnD,IAAI,cAAoC,GAAA;AAAE,IAAW,OAAAC,wCAAA;AAAA;AAAe;AAGrE,CAAA;AAIA,SAAS,cAAc,MAAsD,EAAA;AAC5E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC","file":"bundle.cjs","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\nimport Debug from './debug'\nconst debug = Debug('bundle')\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(config)\n\t\tdebug('new commercelayer bundle instance %O', config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerBundle {\n\t\tif (config) return (CommerceLayerBundle.cl = new CommerceLayerBundle(config))\n\t\telse\n\t\tif (!CommerceLayerBundle.cl) throw new Error('CommerceLayer bundle client not initialized')\n\t\treturn CommerceLayerBundle.cl as CommerceLayerBundle\n\t}\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = api.##__RESOURCE_TYPE__##) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_START__##\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return api.##__RESOURCE_TYPE__## }\n\tget addresses(): api.Addresses { return api.addresses }\n\tget adjustments(): api.Adjustments { return api.adjustments }\n\tget adyen_gateways(): api.AdyenGateways { return api.adyen_gateways }\n\tget adyen_payments(): api.AdyenPayments { return api.adyen_payments }\n\tget application(): api.Applications { return api.application }\n\tget attachments(): api.Attachments { return api.attachments }\n\tget authorizations(): api.Authorizations { return api.authorizations }\n\tget avalara_accounts(): api.AvalaraAccounts { return api.avalara_accounts }\n\tget axerve_gateways(): api.AxerveGateways { return api.axerve_gateways }\n\tget axerve_payments(): api.AxervePayments { return api.axerve_payments }\n\tget bing_geocoders(): api.BingGeocoders { return api.bing_geocoders }\n\tget braintree_gateways(): api.BraintreeGateways { return api.braintree_gateways }\n\tget braintree_payments(): api.BraintreePayments { return api.braintree_payments }\n\tget bundles(): api.Bundles { return api.bundles }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return api.buy_x_pay_y_promotions }\n\tget captures(): api.Captures { return api.captures }\n\tget carrier_accounts(): api.CarrierAccounts { return api.carrier_accounts }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return api.checkout_com_gateways }\n\tget checkout_com_payments(): api.CheckoutComPayments { return api.checkout_com_payments }\n\tget cleanups(): api.Cleanups { return api.cleanups }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return api.coupon_codes_promotion_rules }\n\tget coupon_recipients(): api.CouponRecipients { return api.coupon_recipients }\n\tget coupons(): api.Coupons { return api.coupons }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return api.custom_promotion_rules }\n\tget customer_addresses(): api.CustomerAddresses { return api.customer_addresses }\n\tget customer_groups(): api.CustomerGroups { return api.customer_groups }\n\tget customer_password_resets(): api.CustomerPasswordResets { return api.customer_password_resets }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return api.customer_payment_sources }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return api.customer_subscriptions }\n\tget customers(): api.Customers { return api.customers }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return api.delivery_lead_times }\n\tget discount_engine_items(): api.DiscountEngineItems { return api.discount_engine_items }\n\tget discount_engines(): api.DiscountEngines { return api.discount_engines }\n\tget easypost_pickups(): api.EasypostPickups { return api.easypost_pickups }\n\tget event_callbacks(): api.EventCallbacks { return api.event_callbacks }\n\tget events(): api.Events { return api.events }\n\tget exports(): api.Exports { return api.exports }\n\tget external_gateways(): api.ExternalGateways { return api.external_gateways }\n\tget external_payments(): api.ExternalPayments { return api.external_payments }\n\tget external_promotions(): api.ExternalPromotions { return api.external_promotions }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return api.external_tax_calculators }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return api.fixed_amount_promotions }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return api.fixed_price_promotions }\n\tget flex_promotions(): api.FlexPromotions { return api.flex_promotions }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return api.free_gift_promotions }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return api.free_shipping_promotions }\n\tget geocoders(): api.Geocoders { return api.geocoders }\n\tget gift_card_recipients(): api.GiftCardRecipients { return api.gift_card_recipients }\n\tget gift_cards(): api.GiftCards { return api.gift_cards }\n\tget google_geocoders(): api.GoogleGeocoders { return api.google_geocoders }\n\tget imports(): api.Imports { return api.imports }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return api.in_stock_subscriptions }\n\tget inventory_models(): api.InventoryModels { return api.inventory_models }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return api.inventory_return_locations }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return api.inventory_stock_locations }\n\tget klarna_gateways(): api.KlarnaGateways { return api.klarna_gateways }\n\tget klarna_payments(): api.KlarnaPayments { return api.klarna_payments }\n\tget line_item_options(): api.LineItemOptions { return api.line_item_options }\n\tget line_items(): api.LineItems { return api.line_items }\n\tget links(): api.Links { return api.links }\n\tget manual_gateways(): api.ManualGateways { return api.manual_gateways }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return api.manual_tax_calculators }\n\tget markets(): api.Markets { return api.markets }\n\tget merchants(): api.Merchants { return api.merchants }\n\tget notifications(): api.Notifications { return api.notifications }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return api.order_amount_promotion_rules }\n\tget order_copies(): api.OrderCopies { return api.order_copies }\n\tget order_factories(): api.OrderFactories { return api.order_factories }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return api.order_subscription_items }\n\tget order_subscriptions(): api.OrderSubscriptions { return api.order_subscriptions }\n\tget orders(): api.Orders { return api.orders }\n\tget organization(): api.Organizations { return api.organization }\n\tget packages(): api.Packages { return api.packages }\n\tget parcel_line_items(): api.ParcelLineItems { return api.parcel_line_items }\n\tget parcels(): api.Parcels { return api.parcels }\n\tget payment_gateways(): api.PaymentGateways { return api.payment_gateways }\n\tget payment_methods(): api.PaymentMethods { return api.payment_methods }\n\tget payment_options(): api.PaymentOptions { return api.payment_options }\n\tget paypal_gateways(): api.PaypalGateways { return api.paypal_gateways }\n\tget paypal_payments(): api.PaypalPayments { return api.paypal_payments }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return api.percentage_discount_promotions }\n\tget pickups(): api.Pickups { return api.pickups }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return api.price_frequency_tiers }\n\tget price_list_schedulers(): api.PriceListSchedulers { return api.price_list_schedulers }\n\tget price_lists(): api.PriceLists { return api.price_lists }\n\tget price_tiers(): api.PriceTiers { return api.price_tiers }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return api.price_volume_tiers }\n\tget prices(): api.Prices { return api.prices }\n\tget promotion_rules(): api.PromotionRules { return api.promotion_rules }\n\tget promotions(): api.Promotions { return api.promotions }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return api.recurring_order_copies }\n\tget refunds(): api.Refunds { return api.refunds }\n\tget reserved_stocks(): api.ReservedStocks { return api.reserved_stocks }\n\tget resource_errors(): api.ResourceErrors { return api.resource_errors }\n\tget return_line_items(): api.ReturnLineItems { return api.return_line_items }\n\tget returns(): api.Returns { return api.returns }\n\tget satispay_gateways(): api.SatispayGateways { return api.satispay_gateways }\n\tget satispay_payments(): api.SatispayPayments { return api.satispay_payments }\n\tget shipments(): api.Shipments { return api.shipments }\n\tget shipping_categories(): api.ShippingCategories { return api.shipping_categories }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return api.shipping_method_tiers }\n\tget shipping_methods(): api.ShippingMethods { return api.shipping_methods }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return api.shipping_weight_tiers }\n\tget shipping_zones(): api.ShippingZones { return api.shipping_zones }\n\tget sku_list_items(): api.SkuListItems { return api.sku_list_items }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return api.sku_list_promotion_rules }\n\tget sku_lists(): api.SkuLists { return api.sku_lists }\n\tget sku_options(): api.SkuOptions { return api.sku_options }\n\tget skus(): api.Skus { return api.skus }\n\tget stock_items(): api.StockItems { return api.stock_items }\n\tget stock_line_items(): api.StockLineItems { return api.stock_line_items }\n\tget stock_locations(): api.StockLocations { return api.stock_locations }\n\tget stock_reservations(): api.StockReservations { return api.stock_reservations }\n\tget stock_transfers(): api.StockTransfers { return api.stock_transfers }\n\tget stores(): api.Stores { return api.stores }\n\tget stripe_gateways(): api.StripeGateways { return api.stripe_gateways }\n\tget stripe_payments(): api.StripePayments { return api.stripe_payments }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return api.stripe_tax_accounts }\n\tget subscription_models(): api.SubscriptionModels { return api.subscription_models }\n\tget tags(): api.Tags { return api.tags }\n\tget talon_one_accounts(): api.TalonOneAccounts { return api.talon_one_accounts }\n\tget tax_calculators(): api.TaxCalculators { return api.tax_calculators }\n\tget tax_categories(): api.TaxCategories { return api.tax_categories }\n\tget tax_rules(): api.TaxRules { return api.tax_rules }\n\tget taxjar_accounts(): api.TaxjarAccounts { return api.taxjar_accounts }\n\tget transactions(): api.Transactions { return api.transactions }\n\tget versions(): api.Versions { return api.versions }\n\tget vertex_accounts(): api.VertexAccounts { return api.vertex_accounts }\n\tget voids(): api.Voids { return api.voids }\n\tget webhooks(): api.Webhooks { return api.webhooks }\n\tget wire_transfers(): api.WireTransfers { return api.wire_transfers }\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn CommerceLayerBundle.get(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
1
+ {"version":3,"sources":["../src/bundle.ts"],"names":["debug_default","CommerceLayerClient","addresses_default","adjustments_default","adyen_gateways_default","adyen_payments_default","applications_default","attachments_default","authorizations_default","avalara_accounts_default","axerve_gateways_default","axerve_payments_default","bing_geocoders_default","braintree_gateways_default","braintree_payments_default","bundles_default","buy_x_pay_y_promotions_default","captures_default","carrier_accounts_default","checkout_com_gateways_default","checkout_com_payments_default","cleanups_default","coupon_codes_promotion_rules_default","coupon_recipients_default","coupons_default","custom_promotion_rules_default","customer_addresses_default","customer_groups_default","customer_password_resets_default","customer_payment_sources_default","customer_subscriptions_default","customers_default","delivery_lead_times_default","discount_engine_items_default","discount_engines_default","easypost_pickups_default","event_callbacks_default","events_default","exports_default","external_gateways_default","external_payments_default","external_promotions_default","external_tax_calculators_default","fixed_amount_promotions_default","fixed_price_promotions_default","flex_promotions_default","free_gift_promotions_default","free_shipping_promotions_default","geocoders_default","gift_card_recipients_default","gift_cards_default","google_geocoders_default","imports_default","in_stock_subscriptions_default","inventory_models_default","inventory_return_locations_default","inventory_stock_locations_default","klarna_gateways_default","klarna_payments_default","line_item_options_default","line_items_default","links_default","manual_gateways_default","manual_tax_calculators_default","markets_default","merchants_default","notifications_default","order_amount_promotion_rules_default","order_copies_default","order_factories_default","order_subscription_items_default","order_subscriptions_default","orders_default","organizations_default","packages_default","parcel_line_items_default","parcels_default","payment_gateways_default","payment_methods_default","payment_options_default","paypal_gateways_default","paypal_payments_default","percentage_discount_promotions_default","pickups_default","price_frequency_tiers_default","price_list_schedulers_default","price_lists_default","price_tiers_default","price_volume_tiers_default","prices_default","promotion_rules_default","promotions_default","recurring_order_copies_default","refunds_default","reserved_stocks_default","resource_errors_default","return_line_items_default","returns_default","satispay_gateways_default","satispay_payments_default","shipments_default","shipping_categories_default","shipping_method_tiers_default","shipping_methods_default","shipping_weight_tiers_default","shipping_zones_default","sku_list_items_default","sku_list_promotion_rules_default","sku_lists_default","sku_options_default","skus_default","stock_items_default","stock_line_items_default","stock_locations_default","stock_reservations_default","stock_transfers_default","stores_default","stripe_gateways_default","stripe_payments_default","stripe_tax_accounts_default","subscription_models_default","tags_default","talon_one_accounts_default","tax_calculators_default","tax_categories_default","tax_rules_default","taxjar_accounts_default","transactions_default","versions_default","vertex_accounts_default","voids_default","webhooks_default","wire_transfers_default"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,KAAA,GAAQA,gCAAM,QAAQ,CAAA;AAG5B,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4BC,qCAAA,CAAoB;AAAA;AAAA;AAAA;AAAA,EAM7C,YAAY,MAAA,EAAiC;AAEpD,IAAA,KAAA,CAAM,MAAM,CAAA;AACZ,IAAA,KAAA,CAAM,wCAAwC,MAAM,CAAA;AAAA;AAMrD,EAGA,OAAO,IAAK,MAAA,EAAuD;AAClE,IAAA,IAAI,QAAQ,OAAQ,oBAAA,CAAoB,EAAA,GAAK,IAAI,qBAAoB,MAAM,CAAA;AAAA,SAAA,IAEvE,CAAC,oBAAA,CAAoB,EAAA,EAAI,MAAM,IAAI,MAAM,6CAA6C,CAAA;AAC1F,IAAA,OAAO,oBAAA,CAAoB,EAAA;AAAA;AAC5B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,IAAI,SAAA,GAA2B;AAAE,IAAA,OAAWC,mCAAA;AAAA;AAAU,EACtD,IAAI,WAAA,GAA+B;AAAE,IAAA,OAAWC,qCAAA;AAAA;AAAY,EAC5D,IAAI,cAAA,GAAoC;AAAE,IAAA,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A,GAAsC;AAAE,IAAA,OAAWC,yCAAA;AAAA;AAAgB,EACvE,IAAI,eAAA,GAAsC;AAAE,IAAA,OAAWC,yCAAA;AAAA;AAAgB,EACvE,IAAI,mBAAA,GAA6C;AAAE,IAAA,OAAWC,6CAAA;AAAA;AAAoB,EAClF,IAAI,mBAAA,GAA8C;AAAE,IAAA,OAAWC,6CAAA;AAAA;AAAoB,EACnF,IAAI,IAAA,GAAiB;AAAE,IAAA,OAAWC,8BAAA;AAAA;AAAK,EACvC,IAAI,kBAAA,GAA2C;AAAE,IAAA,OAAWC,4CAAA;AAAA;AAAmB,EAC/E,IAAI,eAAA,GAAsC;AAAE,IAAA,OAAWC,yCAAA;AAAA;AAAgB,EACvE,IAAI,cAAA,GAAoC;AAAE,IAAA,OAAWC,wCAAA;AAAA;AAAe,EACpE,IAAI,SAAA,GAA0B;AAAE,IAAA,OAAWC,mCAAA;AAAA;AAAU,EACrD,IAAI,eAAA,GAAsC;AAAE,IAAA,OAAWC,yCAAA;AAAA;AAAgB,EACvE,IAAI,YAAA,GAAiC;AAAE,IAAA,OAAWC,sCAAA;AAAA;AAAa,EAC/D,IAAI,QAAA,GAAyB;AAAE,IAAA,OAAWC,kCAAA;AAAA;AAAS,EACnD,IAAI,eAAA,GAAsC;AAAE,IAAA,OAAWC,yCAAA;AAAA;AAAgB,EACvE,IAAI,KAAA,GAAmB;AAAE,IAAA,OAAWC,+BAAA;AAAA;AAAM,EAC1C,IAAI,QAAA,GAAyB;AAAE,IAAA,OAAWC,kCAAA;AAAA;AAAS,EACnD,IAAI,cAAA,GAAoC;AAAE,IAAA,OAAWC,wCAAA;AAAA;AAAe;AAGrE,CAAA;AAIA,SAAS,cAAc,MAAA,EAAsD;AAC5E,EAAA,OAAO,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC","file":"bundle.cjs","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\nimport Debug from './debug'\nconst debug = Debug('bundle')\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(config)\n\t\tdebug('new commercelayer bundle instance %O', config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerBundle {\n\t\tif (config) return (CommerceLayerBundle.cl = new CommerceLayerBundle(config))\n\t\telse\n\t\tif (!CommerceLayerBundle.cl) throw new Error('CommerceLayer bundle client not initialized')\n\t\treturn CommerceLayerBundle.cl as CommerceLayerBundle\n\t}\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = api.##__RESOURCE_TYPE__##) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_START__##\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return api.##__RESOURCE_TYPE__## }\n\tget addresses(): api.Addresses { return api.addresses }\n\tget adjustments(): api.Adjustments { return api.adjustments }\n\tget adyen_gateways(): api.AdyenGateways { return api.adyen_gateways }\n\tget adyen_payments(): api.AdyenPayments { return api.adyen_payments }\n\tget application(): api.Applications { return api.application }\n\tget attachments(): api.Attachments { return api.attachments }\n\tget authorizations(): api.Authorizations { return api.authorizations }\n\tget avalara_accounts(): api.AvalaraAccounts { return api.avalara_accounts }\n\tget axerve_gateways(): api.AxerveGateways { return api.axerve_gateways }\n\tget axerve_payments(): api.AxervePayments { return api.axerve_payments }\n\tget bing_geocoders(): api.BingGeocoders { return api.bing_geocoders }\n\tget braintree_gateways(): api.BraintreeGateways { return api.braintree_gateways }\n\tget braintree_payments(): api.BraintreePayments { return api.braintree_payments }\n\tget bundles(): api.Bundles { return api.bundles }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return api.buy_x_pay_y_promotions }\n\tget captures(): api.Captures { return api.captures }\n\tget carrier_accounts(): api.CarrierAccounts { return api.carrier_accounts }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return api.checkout_com_gateways }\n\tget checkout_com_payments(): api.CheckoutComPayments { return api.checkout_com_payments }\n\tget cleanups(): api.Cleanups { return api.cleanups }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return api.coupon_codes_promotion_rules }\n\tget coupon_recipients(): api.CouponRecipients { return api.coupon_recipients }\n\tget coupons(): api.Coupons { return api.coupons }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return api.custom_promotion_rules }\n\tget customer_addresses(): api.CustomerAddresses { return api.customer_addresses }\n\tget customer_groups(): api.CustomerGroups { return api.customer_groups }\n\tget customer_password_resets(): api.CustomerPasswordResets { return api.customer_password_resets }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return api.customer_payment_sources }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return api.customer_subscriptions }\n\tget customers(): api.Customers { return api.customers }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return api.delivery_lead_times }\n\tget discount_engine_items(): api.DiscountEngineItems { return api.discount_engine_items }\n\tget discount_engines(): api.DiscountEngines { return api.discount_engines }\n\tget easypost_pickups(): api.EasypostPickups { return api.easypost_pickups }\n\tget event_callbacks(): api.EventCallbacks { return api.event_callbacks }\n\tget events(): api.Events { return api.events }\n\tget exports(): api.Exports { return api.exports }\n\tget external_gateways(): api.ExternalGateways { return api.external_gateways }\n\tget external_payments(): api.ExternalPayments { return api.external_payments }\n\tget external_promotions(): api.ExternalPromotions { return api.external_promotions }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return api.external_tax_calculators }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return api.fixed_amount_promotions }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return api.fixed_price_promotions }\n\tget flex_promotions(): api.FlexPromotions { return api.flex_promotions }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return api.free_gift_promotions }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return api.free_shipping_promotions }\n\tget geocoders(): api.Geocoders { return api.geocoders }\n\tget gift_card_recipients(): api.GiftCardRecipients { return api.gift_card_recipients }\n\tget gift_cards(): api.GiftCards { return api.gift_cards }\n\tget google_geocoders(): api.GoogleGeocoders { return api.google_geocoders }\n\tget imports(): api.Imports { return api.imports }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return api.in_stock_subscriptions }\n\tget inventory_models(): api.InventoryModels { return api.inventory_models }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return api.inventory_return_locations }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return api.inventory_stock_locations }\n\tget klarna_gateways(): api.KlarnaGateways { return api.klarna_gateways }\n\tget klarna_payments(): api.KlarnaPayments { return api.klarna_payments }\n\tget line_item_options(): api.LineItemOptions { return api.line_item_options }\n\tget line_items(): api.LineItems { return api.line_items }\n\tget links(): api.Links { return api.links }\n\tget manual_gateways(): api.ManualGateways { return api.manual_gateways }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return api.manual_tax_calculators }\n\tget markets(): api.Markets { return api.markets }\n\tget merchants(): api.Merchants { return api.merchants }\n\tget notifications(): api.Notifications { return api.notifications }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return api.order_amount_promotion_rules }\n\tget order_copies(): api.OrderCopies { return api.order_copies }\n\tget order_factories(): api.OrderFactories { return api.order_factories }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return api.order_subscription_items }\n\tget order_subscriptions(): api.OrderSubscriptions { return api.order_subscriptions }\n\tget orders(): api.Orders { return api.orders }\n\tget organization(): api.Organizations { return api.organization }\n\tget packages(): api.Packages { return api.packages }\n\tget parcel_line_items(): api.ParcelLineItems { return api.parcel_line_items }\n\tget parcels(): api.Parcels { return api.parcels }\n\tget payment_gateways(): api.PaymentGateways { return api.payment_gateways }\n\tget payment_methods(): api.PaymentMethods { return api.payment_methods }\n\tget payment_options(): api.PaymentOptions { return api.payment_options }\n\tget paypal_gateways(): api.PaypalGateways { return api.paypal_gateways }\n\tget paypal_payments(): api.PaypalPayments { return api.paypal_payments }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return api.percentage_discount_promotions }\n\tget pickups(): api.Pickups { return api.pickups }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return api.price_frequency_tiers }\n\tget price_list_schedulers(): api.PriceListSchedulers { return api.price_list_schedulers }\n\tget price_lists(): api.PriceLists { return api.price_lists }\n\tget price_tiers(): api.PriceTiers { return api.price_tiers }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return api.price_volume_tiers }\n\tget prices(): api.Prices { return api.prices }\n\tget promotion_rules(): api.PromotionRules { return api.promotion_rules }\n\tget promotions(): api.Promotions { return api.promotions }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return api.recurring_order_copies }\n\tget refunds(): api.Refunds { return api.refunds }\n\tget reserved_stocks(): api.ReservedStocks { return api.reserved_stocks }\n\tget resource_errors(): api.ResourceErrors { return api.resource_errors }\n\tget return_line_items(): api.ReturnLineItems { return api.return_line_items }\n\tget returns(): api.Returns { return api.returns }\n\tget satispay_gateways(): api.SatispayGateways { return api.satispay_gateways }\n\tget satispay_payments(): api.SatispayPayments { return api.satispay_payments }\n\tget shipments(): api.Shipments { return api.shipments }\n\tget shipping_categories(): api.ShippingCategories { return api.shipping_categories }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return api.shipping_method_tiers }\n\tget shipping_methods(): api.ShippingMethods { return api.shipping_methods }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return api.shipping_weight_tiers }\n\tget shipping_zones(): api.ShippingZones { return api.shipping_zones }\n\tget sku_list_items(): api.SkuListItems { return api.sku_list_items }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return api.sku_list_promotion_rules }\n\tget sku_lists(): api.SkuLists { return api.sku_lists }\n\tget sku_options(): api.SkuOptions { return api.sku_options }\n\tget skus(): api.Skus { return api.skus }\n\tget stock_items(): api.StockItems { return api.stock_items }\n\tget stock_line_items(): api.StockLineItems { return api.stock_line_items }\n\tget stock_locations(): api.StockLocations { return api.stock_locations }\n\tget stock_reservations(): api.StockReservations { return api.stock_reservations }\n\tget stock_transfers(): api.StockTransfers { return api.stock_transfers }\n\tget stores(): api.Stores { return api.stores }\n\tget stripe_gateways(): api.StripeGateways { return api.stripe_gateways }\n\tget stripe_payments(): api.StripePayments { return api.stripe_payments }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return api.stripe_tax_accounts }\n\tget subscription_models(): api.SubscriptionModels { return api.subscription_models }\n\tget tags(): api.Tags { return api.tags }\n\tget talon_one_accounts(): api.TalonOneAccounts { return api.talon_one_accounts }\n\tget tax_calculators(): api.TaxCalculators { return api.tax_calculators }\n\tget tax_categories(): api.TaxCategories { return api.tax_categories }\n\tget tax_rules(): api.TaxRules { return api.tax_rules }\n\tget taxjar_accounts(): api.TaxjarAccounts { return api.taxjar_accounts }\n\tget transactions(): api.Transactions { return api.transactions }\n\tget versions(): api.Versions { return api.versions }\n\tget vertex_accounts(): api.VertexAccounts { return api.vertex_accounts }\n\tget voids(): api.Voids { return api.voids }\n\tget webhooks(): api.Webhooks { return api.webhooks }\n\tget wire_transfers(): api.WireTransfers { return api.wire_transfers }\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn CommerceLayerBundle.get(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
package/lib/bundle.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CommerceLayerInitConfig, CommerceLayerClient } from './commercelayer.cjs';
2
- import { H as Addresses, J as Adjustments, N as AdyenGateways, P as AdyenPayments, W as Applications, Y as Attachments, _ as Authorizations, a0 as AvalaraAccounts, a2 as AxerveGateways, a4 as AxervePayments, a6 as BingGeocoders, a8 as BraintreeGateways, aa as BraintreePayments, ac as Bundles, ae as BuyXPayYPromotions, ag as Captures, ai as CarrierAccounts, ak as CheckoutComGateways, am as CheckoutComPayments, ao as Cleanups, aq as CouponCodesPromotionRules, as as CouponRecipients, au as Coupons, aw as CustomPromotionRules, ay as CustomerAddresses, aA as CustomerGroups, aC as CustomerPasswordResets, aE as CustomerPaymentSources, aG as CustomerSubscriptions, aI as Customers, aK as DeliveryLeadTimes, aM as DiscountEngineItems, aO as DiscountEngines, aQ as EasypostPickups, aS as EventCallbacks, aU as Events, aW as Exports, aY as ExternalGateways, a_ as ExternalPayments, b0 as ExternalPromotions, b2 as ExternalTaxCalculators, b4 as FixedAmountPromotions, b6 as FixedPricePromotions, b8 as FlexPromotions, ba as FreeGiftPromotions, bc as FreeShippingPromotions, be as Geocoders, bg as GiftCardRecipients, bi as GiftCards, bk as GoogleGeocoders, bm as Imports, bo as InStockSubscriptions, bq as InventoryModels, bs as InventoryReturnLocations, bu as InventoryStockLocations, bw as KlarnaGateways, by as KlarnaPayments, bA as LineItemOptions, bC as LineItems, bE as Links, bG as ManualGateways, bI as ManualTaxCalculators, bK as Markets, bM as Merchants, bO as Notifications, bQ as OrderAmountPromotionRules, bS as OrderCopies, bU as OrderFactories, bW as OrderSubscriptionItems, bY as OrderSubscriptions, b_ as Orders, c0 as Organizations, c2 as Packages, c4 as ParcelLineItems, c6 as Parcels, c8 as PaymentGateways, ca as PaymentMethods, cc as PaymentOptions, ce as PaypalGateways, cg as PaypalPayments, ci as PercentageDiscountPromotions, ck as Pickups, cm as PriceFrequencyTiers, co as PriceListSchedulers, cq as PriceLists, cs as PriceTiers, cu as PriceVolumeTiers, cw as Prices, cy as PromotionRules, cA as Promotions, cC as RecurringOrderCopies, cE as Refunds, cG as ReservedStocks, cI as ResourceErrors, cK as ReturnLineItems, cM as Returns, cO as SatispayGateways, cQ as SatispayPayments, cS as Shipments, cU as ShippingCategories, cW as ShippingMethodTiers, cY as ShippingMethods, c_ as ShippingWeightTiers, d0 as ShippingZones, d2 as SkuListItems, d4 as SkuListPromotionRules, d6 as SkuLists, d8 as SkuOptions, da as Skus, dc as StockItems, de as StockLineItems, dg as StockLocations, di as StockReservations, dk as StockTransfers, dm as Stores, dp as StripeGateways, dr as StripePayments, dt as StripeTaxAccounts, dv as SubscriptionModels, dx as Tags, dz as TalonOneAccounts, dB as TaxCalculators, dD as TaxCategories, dF as TaxRules, dH as TaxjarAccounts, dJ as Transactions, dL as Versions, dN as VertexAccounts, dP as Voids, dR as Webhooks, dT as WireTransfers } from './api-DNeGwzrs.cjs';
2
+ import { H as Addresses, J as Adjustments, N as AdyenGateways, P as AdyenPayments, W as Applications, Y as Attachments, _ as Authorizations, a0 as AvalaraAccounts, a2 as AxerveGateways, a4 as AxervePayments, a6 as BingGeocoders, a8 as BraintreeGateways, aa as BraintreePayments, ac as Bundles, ae as BuyXPayYPromotions, ag as Captures, ai as CarrierAccounts, ak as CheckoutComGateways, am as CheckoutComPayments, ao as Cleanups, aq as CouponCodesPromotionRules, as as CouponRecipients, au as Coupons, aw as CustomPromotionRules, ay as CustomerAddresses, aA as CustomerGroups, aC as CustomerPasswordResets, aE as CustomerPaymentSources, aG as CustomerSubscriptions, aI as Customers, aK as DeliveryLeadTimes, aM as DiscountEngineItems, aO as DiscountEngines, aQ as EasypostPickups, aS as EventCallbacks, aU as Events, aW as Exports, aY as ExternalGateways, a_ as ExternalPayments, b0 as ExternalPromotions, b2 as ExternalTaxCalculators, b4 as FixedAmountPromotions, b6 as FixedPricePromotions, b8 as FlexPromotions, ba as FreeGiftPromotions, bc as FreeShippingPromotions, be as Geocoders, bg as GiftCardRecipients, bi as GiftCards, bk as GoogleGeocoders, bm as Imports, bo as InStockSubscriptions, bq as InventoryModels, bs as InventoryReturnLocations, bu as InventoryStockLocations, bw as KlarnaGateways, by as KlarnaPayments, bA as LineItemOptions, bC as LineItems, bE as Links, bG as ManualGateways, bI as ManualTaxCalculators, bK as Markets, bM as Merchants, bO as Notifications, bQ as OrderAmountPromotionRules, bS as OrderCopies, bU as OrderFactories, bW as OrderSubscriptionItems, bY as OrderSubscriptions, b_ as Orders, c0 as Organizations, c2 as Packages, c4 as ParcelLineItems, c6 as Parcels, c8 as PaymentGateways, ca as PaymentMethods, cc as PaymentOptions, ce as PaypalGateways, cg as PaypalPayments, ci as PercentageDiscountPromotions, ck as Pickups, cm as PriceFrequencyTiers, co as PriceListSchedulers, cq as PriceLists, cs as PriceTiers, cu as PriceVolumeTiers, cw as Prices, cy as PromotionRules, cA as Promotions, cC as RecurringOrderCopies, cE as Refunds, cG as ReservedStocks, cI as ResourceErrors, cK as ReturnLineItems, cM as Returns, cO as SatispayGateways, cQ as SatispayPayments, cS as Shipments, cU as ShippingCategories, cW as ShippingMethodTiers, cY as ShippingMethods, c_ as ShippingWeightTiers, d0 as ShippingZones, d2 as SkuListItems, d4 as SkuListPromotionRules, d6 as SkuLists, d8 as SkuOptions, da as Skus, dc as StockItems, de as StockLineItems, dg as StockLocations, di as StockReservations, dk as StockTransfers, dm as Stores, dp as StripeGateways, dr as StripePayments, dt as StripeTaxAccounts, dv as SubscriptionModels, dx as Tags, dz as TalonOneAccounts, dB as TaxCalculators, dD as TaxCategories, dF as TaxRules, dH as TaxjarAccounts, dJ as Transactions, dL as Versions, dN as VertexAccounts, dP as Voids, dR as Webhooks, dT as WireTransfers } from './api-xIgvzFhW.cjs';
3
3
  import './error.cjs';
4
4
  import './interceptor-k15jXzf0.cjs';
5
5
  import './client.cjs';
package/lib/bundle.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { CommerceLayerInitConfig, CommerceLayerClient } from './commercelayer.js';
2
- import { H as Addresses, J as Adjustments, N as AdyenGateways, P as AdyenPayments, W as Applications, Y as Attachments, _ as Authorizations, a0 as AvalaraAccounts, a2 as AxerveGateways, a4 as AxervePayments, a6 as BingGeocoders, a8 as BraintreeGateways, aa as BraintreePayments, ac as Bundles, ae as BuyXPayYPromotions, ag as Captures, ai as CarrierAccounts, ak as CheckoutComGateways, am as CheckoutComPayments, ao as Cleanups, aq as CouponCodesPromotionRules, as as CouponRecipients, au as Coupons, aw as CustomPromotionRules, ay as CustomerAddresses, aA as CustomerGroups, aC as CustomerPasswordResets, aE as CustomerPaymentSources, aG as CustomerSubscriptions, aI as Customers, aK as DeliveryLeadTimes, aM as DiscountEngineItems, aO as DiscountEngines, aQ as EasypostPickups, aS as EventCallbacks, aU as Events, aW as Exports, aY as ExternalGateways, a_ as ExternalPayments, b0 as ExternalPromotions, b2 as ExternalTaxCalculators, b4 as FixedAmountPromotions, b6 as FixedPricePromotions, b8 as FlexPromotions, ba as FreeGiftPromotions, bc as FreeShippingPromotions, be as Geocoders, bg as GiftCardRecipients, bi as GiftCards, bk as GoogleGeocoders, bm as Imports, bo as InStockSubscriptions, bq as InventoryModels, bs as InventoryReturnLocations, bu as InventoryStockLocations, bw as KlarnaGateways, by as KlarnaPayments, bA as LineItemOptions, bC as LineItems, bE as Links, bG as ManualGateways, bI as ManualTaxCalculators, bK as Markets, bM as Merchants, bO as Notifications, bQ as OrderAmountPromotionRules, bS as OrderCopies, bU as OrderFactories, bW as OrderSubscriptionItems, bY as OrderSubscriptions, b_ as Orders, c0 as Organizations, c2 as Packages, c4 as ParcelLineItems, c6 as Parcels, c8 as PaymentGateways, ca as PaymentMethods, cc as PaymentOptions, ce as PaypalGateways, cg as PaypalPayments, ci as PercentageDiscountPromotions, ck as Pickups, cm as PriceFrequencyTiers, co as PriceListSchedulers, cq as PriceLists, cs as PriceTiers, cu as PriceVolumeTiers, cw as Prices, cy as PromotionRules, cA as Promotions, cC as RecurringOrderCopies, cE as Refunds, cG as ReservedStocks, cI as ResourceErrors, cK as ReturnLineItems, cM as Returns, cO as SatispayGateways, cQ as SatispayPayments, cS as Shipments, cU as ShippingCategories, cW as ShippingMethodTiers, cY as ShippingMethods, c_ as ShippingWeightTiers, d0 as ShippingZones, d2 as SkuListItems, d4 as SkuListPromotionRules, d6 as SkuLists, d8 as SkuOptions, da as Skus, dc as StockItems, de as StockLineItems, dg as StockLocations, di as StockReservations, dk as StockTransfers, dm as Stores, dp as StripeGateways, dr as StripePayments, dt as StripeTaxAccounts, dv as SubscriptionModels, dx as Tags, dz as TalonOneAccounts, dB as TaxCalculators, dD as TaxCategories, dF as TaxRules, dH as TaxjarAccounts, dJ as Transactions, dL as Versions, dN as VertexAccounts, dP as Voids, dR as Webhooks, dT as WireTransfers } from './api-Hgzs8bs4.js';
2
+ import { H as Addresses, J as Adjustments, N as AdyenGateways, P as AdyenPayments, W as Applications, Y as Attachments, _ as Authorizations, a0 as AvalaraAccounts, a2 as AxerveGateways, a4 as AxervePayments, a6 as BingGeocoders, a8 as BraintreeGateways, aa as BraintreePayments, ac as Bundles, ae as BuyXPayYPromotions, ag as Captures, ai as CarrierAccounts, ak as CheckoutComGateways, am as CheckoutComPayments, ao as Cleanups, aq as CouponCodesPromotionRules, as as CouponRecipients, au as Coupons, aw as CustomPromotionRules, ay as CustomerAddresses, aA as CustomerGroups, aC as CustomerPasswordResets, aE as CustomerPaymentSources, aG as CustomerSubscriptions, aI as Customers, aK as DeliveryLeadTimes, aM as DiscountEngineItems, aO as DiscountEngines, aQ as EasypostPickups, aS as EventCallbacks, aU as Events, aW as Exports, aY as ExternalGateways, a_ as ExternalPayments, b0 as ExternalPromotions, b2 as ExternalTaxCalculators, b4 as FixedAmountPromotions, b6 as FixedPricePromotions, b8 as FlexPromotions, ba as FreeGiftPromotions, bc as FreeShippingPromotions, be as Geocoders, bg as GiftCardRecipients, bi as GiftCards, bk as GoogleGeocoders, bm as Imports, bo as InStockSubscriptions, bq as InventoryModels, bs as InventoryReturnLocations, bu as InventoryStockLocations, bw as KlarnaGateways, by as KlarnaPayments, bA as LineItemOptions, bC as LineItems, bE as Links, bG as ManualGateways, bI as ManualTaxCalculators, bK as Markets, bM as Merchants, bO as Notifications, bQ as OrderAmountPromotionRules, bS as OrderCopies, bU as OrderFactories, bW as OrderSubscriptionItems, bY as OrderSubscriptions, b_ as Orders, c0 as Organizations, c2 as Packages, c4 as ParcelLineItems, c6 as Parcels, c8 as PaymentGateways, ca as PaymentMethods, cc as PaymentOptions, ce as PaypalGateways, cg as PaypalPayments, ci as PercentageDiscountPromotions, ck as Pickups, cm as PriceFrequencyTiers, co as PriceListSchedulers, cq as PriceLists, cs as PriceTiers, cu as PriceVolumeTiers, cw as Prices, cy as PromotionRules, cA as Promotions, cC as RecurringOrderCopies, cE as Refunds, cG as ReservedStocks, cI as ResourceErrors, cK as ReturnLineItems, cM as Returns, cO as SatispayGateways, cQ as SatispayPayments, cS as Shipments, cU as ShippingCategories, cW as ShippingMethodTiers, cY as ShippingMethods, c_ as ShippingWeightTiers, d0 as ShippingZones, d2 as SkuListItems, d4 as SkuListPromotionRules, d6 as SkuLists, d8 as SkuOptions, da as Skus, dc as StockItems, de as StockLineItems, dg as StockLocations, di as StockReservations, dk as StockTransfers, dm as Stores, dp as StripeGateways, dr as StripePayments, dt as StripeTaxAccounts, dv as SubscriptionModels, dx as Tags, dz as TalonOneAccounts, dB as TaxCalculators, dD as TaxCategories, dF as TaxRules, dH as TaxjarAccounts, dJ as Transactions, dL as Versions, dN as VertexAccounts, dP as Voids, dR as Webhooks, dT as WireTransfers } from './api-BIiVfx1G.js';
3
3
  import './error.js';
4
4
  import './interceptor-k15jXzf0.js';
5
5
  import './client.js';
package/lib/bundle.js CHANGED
@@ -6,7 +6,7 @@ import { webhooks_default } from './chunk-YN4M5CNJ.js';
6
6
  import { wire_transfers_default } from './chunk-4L73LJKG.js';
7
7
  import { subscription_models_default } from './chunk-2PYM3QGA.js';
8
8
  import { tags_default } from './chunk-2L2ZM3VD.js';
9
- import { talon_one_accounts_default } from './chunk-465K3KVE.js';
9
+ import { talon_one_accounts_default } from './chunk-DGW3ZSW6.js';
10
10
  import { tax_calculators_default } from './chunk-Z7DKPFKZ.js';
11
11
  import { tax_categories_default } from './chunk-G74OZ4M6.js';
12
12
  import { tax_rules_default } from './chunk-PZZLLHJP.js';
@@ -35,9 +35,9 @@ import { satispay_payments_default } from './chunk-MUPRLXGP.js';
35
35
  import { shipments_default } from './chunk-NODKE6P4.js';
36
36
  import { shipping_categories_default } from './chunk-HCBXRHD7.js';
37
37
  import { shipping_method_tiers_default } from './chunk-SKFA2ZIK.js';
38
- import { shipping_methods_default } from './chunk-EKGR3EB3.js';
38
+ import { shipping_methods_default } from './chunk-W6YJDUYD.js';
39
39
  import { price_volume_tiers_default } from './chunk-JYXAF775.js';
40
- import { prices_default } from './chunk-7GVHCOUC.js';
40
+ import { prices_default } from './chunk-KU5U6DTU.js';
41
41
  import { promotion_rules_default } from './chunk-DSKZRVXS.js';
42
42
  import { promotions_default } from './chunk-EHWAGYNX.js';
43
43
  import { recurring_order_copies_default } from './chunk-5OQQBNVB.js';
@@ -50,7 +50,7 @@ import { percentage_discount_promotions_default } from './chunk-HSILJQCD.js';
50
50
  import { pickups_default } from './chunk-3NWQH32A.js';
51
51
  import { price_frequency_tiers_default } from './chunk-H2USYPU6.js';
52
52
  import { price_list_schedulers_default } from './chunk-WP3L72CW.js';
53
- import { price_lists_default } from './chunk-ZFG533LP.js';
53
+ import { price_lists_default } from './chunk-E65GENXB.js';
54
54
  import { price_tiers_default } from './chunk-E3FDHGI7.js';
55
55
  import { orders_default } from './chunk-J6PTNG3D.js';
56
56
  import { organizations_default } from './chunk-YUGZUUAU.js';
@@ -58,8 +58,8 @@ import { packages_default } from './chunk-RT7XLEV6.js';
58
58
  import { parcel_line_items_default } from './chunk-ZEEB5YAU.js';
59
59
  import { parcels_default } from './chunk-UBXNH6J3.js';
60
60
  import { payment_gateways_default } from './chunk-TSD2PK6H.js';
61
- import { payment_methods_default } from './chunk-HLCGKY7R.js';
62
- import { payment_options_default } from './chunk-QHRQCFDB.js';
61
+ import { payment_methods_default } from './chunk-FO7WBEPF.js';
62
+ import { payment_options_default } from './chunk-RL7Y22OT.js';
63
63
  import { markets_default } from './chunk-FTAZDUH6.js';
64
64
  import { merchants_default } from './chunk-Q2ZSQM7I.js';
65
65
  import { notifications_default } from './chunk-LNMY5BDT.js';
@@ -72,7 +72,7 @@ import { inventory_stock_locations_default } from './chunk-OGLS27LJ.js';
72
72
  import { klarna_gateways_default } from './chunk-HDYENVKD.js';
73
73
  import { klarna_payments_default } from './chunk-EP22KKHR.js';
74
74
  import { line_item_options_default } from './chunk-HQ5STEMD.js';
75
- import { line_items_default } from './chunk-NMVACSMG.js';
75
+ import { line_items_default } from './chunk-5NMDIVXH.js';
76
76
  import { links_default } from './chunk-3URHH3S6.js';
77
77
  import { manual_gateways_default } from './chunk-MZNHRIXE.js';
78
78
  import { manual_tax_calculators_default } from './chunk-Q7YHSPJL.js';
@@ -89,7 +89,7 @@ import { external_promotions_default } from './chunk-ROPOLXIV.js';
89
89
  import { external_tax_calculators_default } from './chunk-34H2NFDA.js';
90
90
  import { fixed_amount_promotions_default } from './chunk-DTGODPCN.js';
91
91
  import { fixed_price_promotions_default } from './chunk-MPSHBMZS.js';
92
- import { flex_promotions_default } from './chunk-BF7OPORP.js';
92
+ import { flex_promotions_default } from './chunk-2UUZHL2R.js';
93
93
  import { free_gift_promotions_default } from './chunk-7ISS2FDY.js';
94
94
  import { free_shipping_promotions_default } from './chunk-SN6BP777.js';
95
95
  import { delivery_lead_times_default } from './chunk-YBXRC6MC.js';
@@ -107,12 +107,12 @@ import { customer_groups_default } from './chunk-D5E4OGXU.js';
107
107
  import { customer_password_resets_default } from './chunk-AW3TRBZ7.js';
108
108
  import { customer_payment_sources_default } from './chunk-7SZY5BWE.js';
109
109
  import { customer_subscriptions_default } from './chunk-4KFJUIFD.js';
110
- import { customers_default } from './chunk-FKDKRSPO.js';
110
+ import { customers_default } from './chunk-TOV6ECTA.js';
111
111
  import { buy_x_pay_y_promotions_default } from './chunk-HAAE23MQ.js';
112
112
  import { captures_default } from './chunk-MJRMRWP3.js';
113
113
  import { carrier_accounts_default } from './chunk-QK5MFD4L.js';
114
114
  import { checkout_com_gateways_default } from './chunk-LCNT6GY3.js';
115
- import { checkout_com_payments_default } from './chunk-BOPK7T5K.js';
115
+ import { checkout_com_payments_default } from './chunk-WI5IVLYL.js';
116
116
  import { cleanups_default } from './chunk-SOXJJRL2.js';
117
117
  import { coupon_codes_promotion_rules_default } from './chunk-JAQECLCE.js';
118
118
  import { coupon_recipients_default } from './chunk-QZWQNPKC.js';
@@ -127,10 +127,10 @@ import { bundles_default } from './chunk-VRFSITD3.js';
127
127
  import { addresses_default } from './chunk-D7KNSKNJ.js';
128
128
  import { adjustments_default } from './chunk-JPUF5YXX.js';
129
129
  import { adyen_gateways_default } from './chunk-NDPDO54G.js';
130
- import { adyen_payments_default } from './chunk-JENLN6VJ.js';
131
- import { applications_default } from './chunk-7X36B7N6.js';
130
+ import { adyen_payments_default } from './chunk-WVKEXOIY.js';
131
+ import { applications_default } from './chunk-KITKWF6F.js';
132
132
  import { attachments_default } from './chunk-DYZGWPZ6.js';
133
- import { CommerceLayerClient } from './chunk-M55NSZVW.js';
133
+ import { CommerceLayerClient } from './chunk-WVAW33XQ.js';
134
134
  import './chunk-NAWKHFBZ.js';
135
135
  import './chunk-CHYP5F26.js';
136
136
  import './chunk-H4SVEI6E.js';
package/lib/bundle.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/bundle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;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AW,OAAA,iBAAA;AAAA;AAAU,EACrD,IAAI,eAAsC,GAAA;AAAE,IAAW,OAAA,uBAAA;AAAA;AAAgB,EACvE,IAAI,YAAiC,GAAA;AAAE,IAAW,OAAA,oBAAA;AAAA;AAAa,EAC/D,IAAI,QAAyB,GAAA;AAAE,IAAW,OAAA,gBAAA;AAAA;AAAS,EACnD,IAAI,eAAsC,GAAA;AAAE,IAAW,OAAA,uBAAA;AAAA;AAAgB,EACvE,IAAI,KAAmB,GAAA;AAAE,IAAW,OAAA,aAAA;AAAA;AAAM,EAC1C,IAAI,QAAyB,GAAA;AAAE,IAAW,OAAA,gBAAA;AAAA;AAAS,EACnD,IAAI,cAAoC,GAAA;AAAE,IAAW,OAAA,sBAAA;AAAA;AAAe;AAGrE,CAAA;AAIA,SAAS,cAAc,MAAsD,EAAA;AAC5E,EAAO,OAAA,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC","file":"bundle.js","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\nimport Debug from './debug'\nconst debug = Debug('bundle')\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(config)\n\t\tdebug('new commercelayer bundle instance %O', config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerBundle {\n\t\tif (config) return (CommerceLayerBundle.cl = new CommerceLayerBundle(config))\n\t\telse\n\t\tif (!CommerceLayerBundle.cl) throw new Error('CommerceLayer bundle client not initialized')\n\t\treturn CommerceLayerBundle.cl as CommerceLayerBundle\n\t}\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = api.##__RESOURCE_TYPE__##) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_START__##\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return api.##__RESOURCE_TYPE__## }\n\tget addresses(): api.Addresses { return api.addresses }\n\tget adjustments(): api.Adjustments { return api.adjustments }\n\tget adyen_gateways(): api.AdyenGateways { return api.adyen_gateways }\n\tget adyen_payments(): api.AdyenPayments { return api.adyen_payments }\n\tget application(): api.Applications { return api.application }\n\tget attachments(): api.Attachments { return api.attachments }\n\tget authorizations(): api.Authorizations { return api.authorizations }\n\tget avalara_accounts(): api.AvalaraAccounts { return api.avalara_accounts }\n\tget axerve_gateways(): api.AxerveGateways { return api.axerve_gateways }\n\tget axerve_payments(): api.AxervePayments { return api.axerve_payments }\n\tget bing_geocoders(): api.BingGeocoders { return api.bing_geocoders }\n\tget braintree_gateways(): api.BraintreeGateways { return api.braintree_gateways }\n\tget braintree_payments(): api.BraintreePayments { return api.braintree_payments }\n\tget bundles(): api.Bundles { return api.bundles }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return api.buy_x_pay_y_promotions }\n\tget captures(): api.Captures { return api.captures }\n\tget carrier_accounts(): api.CarrierAccounts { return api.carrier_accounts }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return api.checkout_com_gateways }\n\tget checkout_com_payments(): api.CheckoutComPayments { return api.checkout_com_payments }\n\tget cleanups(): api.Cleanups { return api.cleanups }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return api.coupon_codes_promotion_rules }\n\tget coupon_recipients(): api.CouponRecipients { return api.coupon_recipients }\n\tget coupons(): api.Coupons { return api.coupons }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return api.custom_promotion_rules }\n\tget customer_addresses(): api.CustomerAddresses { return api.customer_addresses }\n\tget customer_groups(): api.CustomerGroups { return api.customer_groups }\n\tget customer_password_resets(): api.CustomerPasswordResets { return api.customer_password_resets }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return api.customer_payment_sources }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return api.customer_subscriptions }\n\tget customers(): api.Customers { return api.customers }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return api.delivery_lead_times }\n\tget discount_engine_items(): api.DiscountEngineItems { return api.discount_engine_items }\n\tget discount_engines(): api.DiscountEngines { return api.discount_engines }\n\tget easypost_pickups(): api.EasypostPickups { return api.easypost_pickups }\n\tget event_callbacks(): api.EventCallbacks { return api.event_callbacks }\n\tget events(): api.Events { return api.events }\n\tget exports(): api.Exports { return api.exports }\n\tget external_gateways(): api.ExternalGateways { return api.external_gateways }\n\tget external_payments(): api.ExternalPayments { return api.external_payments }\n\tget external_promotions(): api.ExternalPromotions { return api.external_promotions }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return api.external_tax_calculators }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return api.fixed_amount_promotions }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return api.fixed_price_promotions }\n\tget flex_promotions(): api.FlexPromotions { return api.flex_promotions }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return api.free_gift_promotions }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return api.free_shipping_promotions }\n\tget geocoders(): api.Geocoders { return api.geocoders }\n\tget gift_card_recipients(): api.GiftCardRecipients { return api.gift_card_recipients }\n\tget gift_cards(): api.GiftCards { return api.gift_cards }\n\tget google_geocoders(): api.GoogleGeocoders { return api.google_geocoders }\n\tget imports(): api.Imports { return api.imports }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return api.in_stock_subscriptions }\n\tget inventory_models(): api.InventoryModels { return api.inventory_models }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return api.inventory_return_locations }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return api.inventory_stock_locations }\n\tget klarna_gateways(): api.KlarnaGateways { return api.klarna_gateways }\n\tget klarna_payments(): api.KlarnaPayments { return api.klarna_payments }\n\tget line_item_options(): api.LineItemOptions { return api.line_item_options }\n\tget line_items(): api.LineItems { return api.line_items }\n\tget links(): api.Links { return api.links }\n\tget manual_gateways(): api.ManualGateways { return api.manual_gateways }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return api.manual_tax_calculators }\n\tget markets(): api.Markets { return api.markets }\n\tget merchants(): api.Merchants { return api.merchants }\n\tget notifications(): api.Notifications { return api.notifications }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return api.order_amount_promotion_rules }\n\tget order_copies(): api.OrderCopies { return api.order_copies }\n\tget order_factories(): api.OrderFactories { return api.order_factories }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return api.order_subscription_items }\n\tget order_subscriptions(): api.OrderSubscriptions { return api.order_subscriptions }\n\tget orders(): api.Orders { return api.orders }\n\tget organization(): api.Organizations { return api.organization }\n\tget packages(): api.Packages { return api.packages }\n\tget parcel_line_items(): api.ParcelLineItems { return api.parcel_line_items }\n\tget parcels(): api.Parcels { return api.parcels }\n\tget payment_gateways(): api.PaymentGateways { return api.payment_gateways }\n\tget payment_methods(): api.PaymentMethods { return api.payment_methods }\n\tget payment_options(): api.PaymentOptions { return api.payment_options }\n\tget paypal_gateways(): api.PaypalGateways { return api.paypal_gateways }\n\tget paypal_payments(): api.PaypalPayments { return api.paypal_payments }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return api.percentage_discount_promotions }\n\tget pickups(): api.Pickups { return api.pickups }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return api.price_frequency_tiers }\n\tget price_list_schedulers(): api.PriceListSchedulers { return api.price_list_schedulers }\n\tget price_lists(): api.PriceLists { return api.price_lists }\n\tget price_tiers(): api.PriceTiers { return api.price_tiers }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return api.price_volume_tiers }\n\tget prices(): api.Prices { return api.prices }\n\tget promotion_rules(): api.PromotionRules { return api.promotion_rules }\n\tget promotions(): api.Promotions { return api.promotions }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return api.recurring_order_copies }\n\tget refunds(): api.Refunds { return api.refunds }\n\tget reserved_stocks(): api.ReservedStocks { return api.reserved_stocks }\n\tget resource_errors(): api.ResourceErrors { return api.resource_errors }\n\tget return_line_items(): api.ReturnLineItems { return api.return_line_items }\n\tget returns(): api.Returns { return api.returns }\n\tget satispay_gateways(): api.SatispayGateways { return api.satispay_gateways }\n\tget satispay_payments(): api.SatispayPayments { return api.satispay_payments }\n\tget shipments(): api.Shipments { return api.shipments }\n\tget shipping_categories(): api.ShippingCategories { return api.shipping_categories }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return api.shipping_method_tiers }\n\tget shipping_methods(): api.ShippingMethods { return api.shipping_methods }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return api.shipping_weight_tiers }\n\tget shipping_zones(): api.ShippingZones { return api.shipping_zones }\n\tget sku_list_items(): api.SkuListItems { return api.sku_list_items }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return api.sku_list_promotion_rules }\n\tget sku_lists(): api.SkuLists { return api.sku_lists }\n\tget sku_options(): api.SkuOptions { return api.sku_options }\n\tget skus(): api.Skus { return api.skus }\n\tget stock_items(): api.StockItems { return api.stock_items }\n\tget stock_line_items(): api.StockLineItems { return api.stock_line_items }\n\tget stock_locations(): api.StockLocations { return api.stock_locations }\n\tget stock_reservations(): api.StockReservations { return api.stock_reservations }\n\tget stock_transfers(): api.StockTransfers { return api.stock_transfers }\n\tget stores(): api.Stores { return api.stores }\n\tget stripe_gateways(): api.StripeGateways { return api.stripe_gateways }\n\tget stripe_payments(): api.StripePayments { return api.stripe_payments }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return api.stripe_tax_accounts }\n\tget subscription_models(): api.SubscriptionModels { return api.subscription_models }\n\tget tags(): api.Tags { return api.tags }\n\tget talon_one_accounts(): api.TalonOneAccounts { return api.talon_one_accounts }\n\tget tax_calculators(): api.TaxCalculators { return api.tax_calculators }\n\tget tax_categories(): api.TaxCategories { return api.tax_categories }\n\tget tax_rules(): api.TaxRules { return api.tax_rules }\n\tget taxjar_accounts(): api.TaxjarAccounts { return api.taxjar_accounts }\n\tget transactions(): api.Transactions { return api.transactions }\n\tget versions(): api.Versions { return api.versions }\n\tget vertex_accounts(): api.VertexAccounts { return api.vertex_accounts }\n\tget voids(): api.Voids { return api.voids }\n\tget webhooks(): api.Webhooks { return api.webhooks }\n\tget wire_transfers(): api.WireTransfers { return api.wire_transfers }\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn CommerceLayerBundle.get(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
1
+ {"version":3,"sources":["../src/bundle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,IAAM,KAAA,GAAQ,cAAM,QAAQ,CAAA;AAG5B,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,mBAAA,CAAoB;AAAA;AAAA;AAAA;AAAA,EAM7C,YAAY,MAAA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,GAAmB;AAAE,IAAA,OAAW,aAAA;AAAA;AAAM,EAC1C,IAAI,QAAA,GAAyB;AAAE,IAAA,OAAW,gBAAA;AAAA;AAAS,EACnD,IAAI,cAAA,GAAoC;AAAE,IAAA,OAAW,sBAAA;AAAA;AAAe;AAGrE,CAAA;AAIA,SAAS,cAAc,MAAA,EAAsD;AAC5E,EAAA,OAAO,mBAAA,CAAoB,IAAI,MAAM,CAAA;AACtC","file":"bundle.js","sourcesContent":["import { CommerceLayerClient, CommerceLayerInitConfig } from './commercelayer'\nimport * as api from './api'\n\nimport Debug from './debug'\nconst debug = Debug('bundle')\n\n\nclass CommerceLayerBundle extends CommerceLayerClient {\n\n // ##__CL_RESOURCES_DEF_START__##\n\t// ##__CL_RESOURCES_DEF_TEMPLATE:: ##__TAB__#####__RESOURCE_TYPE__##?: api.##__RESOURCE_CLASS__##\n\t// ##__CL_RESOURCES_DEF_STOP__##\n\n public constructor(config: CommerceLayerInitConfig) {\n\n\t\tsuper(config)\n\t\tdebug('new commercelayer bundle instance %O', config)\n\n\t\t// ##__CL_RESOURCES_INIT_START__##\n\t\t// ##__CL_RESOURCES_INIT_TEMPLATE:: ##__TAB__####__TAB__##this.##__RESOURCE_TYPE__## = new api.##__RESOURCE_CLASS__##(this.#adapter)\n\t\t// ##__CL_RESOURCES_INIT_STOP__##\n\n\t}\n\n\n\tstatic get (config?: CommerceLayerInitConfig): CommerceLayerBundle {\n\t\tif (config) return (CommerceLayerBundle.cl = new CommerceLayerBundle(config))\n\t\telse\n\t\tif (!CommerceLayerBundle.cl) throw new Error('CommerceLayer bundle client not initialized')\n\t\treturn CommerceLayerBundle.cl as CommerceLayerBundle\n\t}\n\n\t// private get adapter(): ResourceAdapter { return ApiResourceAdapter.get() }\n\n // ##__CL_RESOURCES_LEAZY_LOADING_START__##\n\t// ##__CL_RESOURCES_LEAZY_LOADING_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return this.###__RESOURCE_TYPE__## || (this.###__RESOURCE_TYPE__## = api.##__RESOURCE_TYPE__##) }\n\t// ##__CL_RESOURCES_LEAZY_LOADING_STOP__##\n\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_START__##\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_TEMPLATE:: ##__TAB__##get ##__RESOURCE_TYPE__##(): api.##__RESOURCE_CLASS__## { return api.##__RESOURCE_TYPE__## }\n\tget addresses(): api.Addresses { return api.addresses }\n\tget adjustments(): api.Adjustments { return api.adjustments }\n\tget adyen_gateways(): api.AdyenGateways { return api.adyen_gateways }\n\tget adyen_payments(): api.AdyenPayments { return api.adyen_payments }\n\tget application(): api.Applications { return api.application }\n\tget attachments(): api.Attachments { return api.attachments }\n\tget authorizations(): api.Authorizations { return api.authorizations }\n\tget avalara_accounts(): api.AvalaraAccounts { return api.avalara_accounts }\n\tget axerve_gateways(): api.AxerveGateways { return api.axerve_gateways }\n\tget axerve_payments(): api.AxervePayments { return api.axerve_payments }\n\tget bing_geocoders(): api.BingGeocoders { return api.bing_geocoders }\n\tget braintree_gateways(): api.BraintreeGateways { return api.braintree_gateways }\n\tget braintree_payments(): api.BraintreePayments { return api.braintree_payments }\n\tget bundles(): api.Bundles { return api.bundles }\n\tget buy_x_pay_y_promotions(): api.BuyXPayYPromotions { return api.buy_x_pay_y_promotions }\n\tget captures(): api.Captures { return api.captures }\n\tget carrier_accounts(): api.CarrierAccounts { return api.carrier_accounts }\n\tget checkout_com_gateways(): api.CheckoutComGateways { return api.checkout_com_gateways }\n\tget checkout_com_payments(): api.CheckoutComPayments { return api.checkout_com_payments }\n\tget cleanups(): api.Cleanups { return api.cleanups }\n\tget coupon_codes_promotion_rules(): api.CouponCodesPromotionRules { return api.coupon_codes_promotion_rules }\n\tget coupon_recipients(): api.CouponRecipients { return api.coupon_recipients }\n\tget coupons(): api.Coupons { return api.coupons }\n\tget custom_promotion_rules(): api.CustomPromotionRules { return api.custom_promotion_rules }\n\tget customer_addresses(): api.CustomerAddresses { return api.customer_addresses }\n\tget customer_groups(): api.CustomerGroups { return api.customer_groups }\n\tget customer_password_resets(): api.CustomerPasswordResets { return api.customer_password_resets }\n\tget customer_payment_sources(): api.CustomerPaymentSources { return api.customer_payment_sources }\n\tget customer_subscriptions(): api.CustomerSubscriptions { return api.customer_subscriptions }\n\tget customers(): api.Customers { return api.customers }\n\tget delivery_lead_times(): api.DeliveryLeadTimes { return api.delivery_lead_times }\n\tget discount_engine_items(): api.DiscountEngineItems { return api.discount_engine_items }\n\tget discount_engines(): api.DiscountEngines { return api.discount_engines }\n\tget easypost_pickups(): api.EasypostPickups { return api.easypost_pickups }\n\tget event_callbacks(): api.EventCallbacks { return api.event_callbacks }\n\tget events(): api.Events { return api.events }\n\tget exports(): api.Exports { return api.exports }\n\tget external_gateways(): api.ExternalGateways { return api.external_gateways }\n\tget external_payments(): api.ExternalPayments { return api.external_payments }\n\tget external_promotions(): api.ExternalPromotions { return api.external_promotions }\n\tget external_tax_calculators(): api.ExternalTaxCalculators { return api.external_tax_calculators }\n\tget fixed_amount_promotions(): api.FixedAmountPromotions { return api.fixed_amount_promotions }\n\tget fixed_price_promotions(): api.FixedPricePromotions { return api.fixed_price_promotions }\n\tget flex_promotions(): api.FlexPromotions { return api.flex_promotions }\n\tget free_gift_promotions(): api.FreeGiftPromotions { return api.free_gift_promotions }\n\tget free_shipping_promotions(): api.FreeShippingPromotions { return api.free_shipping_promotions }\n\tget geocoders(): api.Geocoders { return api.geocoders }\n\tget gift_card_recipients(): api.GiftCardRecipients { return api.gift_card_recipients }\n\tget gift_cards(): api.GiftCards { return api.gift_cards }\n\tget google_geocoders(): api.GoogleGeocoders { return api.google_geocoders }\n\tget imports(): api.Imports { return api.imports }\n\tget in_stock_subscriptions(): api.InStockSubscriptions { return api.in_stock_subscriptions }\n\tget inventory_models(): api.InventoryModels { return api.inventory_models }\n\tget inventory_return_locations(): api.InventoryReturnLocations { return api.inventory_return_locations }\n\tget inventory_stock_locations(): api.InventoryStockLocations { return api.inventory_stock_locations }\n\tget klarna_gateways(): api.KlarnaGateways { return api.klarna_gateways }\n\tget klarna_payments(): api.KlarnaPayments { return api.klarna_payments }\n\tget line_item_options(): api.LineItemOptions { return api.line_item_options }\n\tget line_items(): api.LineItems { return api.line_items }\n\tget links(): api.Links { return api.links }\n\tget manual_gateways(): api.ManualGateways { return api.manual_gateways }\n\tget manual_tax_calculators(): api.ManualTaxCalculators { return api.manual_tax_calculators }\n\tget markets(): api.Markets { return api.markets }\n\tget merchants(): api.Merchants { return api.merchants }\n\tget notifications(): api.Notifications { return api.notifications }\n\tget order_amount_promotion_rules(): api.OrderAmountPromotionRules { return api.order_amount_promotion_rules }\n\tget order_copies(): api.OrderCopies { return api.order_copies }\n\tget order_factories(): api.OrderFactories { return api.order_factories }\n\tget order_subscription_items(): api.OrderSubscriptionItems { return api.order_subscription_items }\n\tget order_subscriptions(): api.OrderSubscriptions { return api.order_subscriptions }\n\tget orders(): api.Orders { return api.orders }\n\tget organization(): api.Organizations { return api.organization }\n\tget packages(): api.Packages { return api.packages }\n\tget parcel_line_items(): api.ParcelLineItems { return api.parcel_line_items }\n\tget parcels(): api.Parcels { return api.parcels }\n\tget payment_gateways(): api.PaymentGateways { return api.payment_gateways }\n\tget payment_methods(): api.PaymentMethods { return api.payment_methods }\n\tget payment_options(): api.PaymentOptions { return api.payment_options }\n\tget paypal_gateways(): api.PaypalGateways { return api.paypal_gateways }\n\tget paypal_payments(): api.PaypalPayments { return api.paypal_payments }\n\tget percentage_discount_promotions(): api.PercentageDiscountPromotions { return api.percentage_discount_promotions }\n\tget pickups(): api.Pickups { return api.pickups }\n\tget price_frequency_tiers(): api.PriceFrequencyTiers { return api.price_frequency_tiers }\n\tget price_list_schedulers(): api.PriceListSchedulers { return api.price_list_schedulers }\n\tget price_lists(): api.PriceLists { return api.price_lists }\n\tget price_tiers(): api.PriceTiers { return api.price_tiers }\n\tget price_volume_tiers(): api.PriceVolumeTiers { return api.price_volume_tiers }\n\tget prices(): api.Prices { return api.prices }\n\tget promotion_rules(): api.PromotionRules { return api.promotion_rules }\n\tget promotions(): api.Promotions { return api.promotions }\n\tget recurring_order_copies(): api.RecurringOrderCopies { return api.recurring_order_copies }\n\tget refunds(): api.Refunds { return api.refunds }\n\tget reserved_stocks(): api.ReservedStocks { return api.reserved_stocks }\n\tget resource_errors(): api.ResourceErrors { return api.resource_errors }\n\tget return_line_items(): api.ReturnLineItems { return api.return_line_items }\n\tget returns(): api.Returns { return api.returns }\n\tget satispay_gateways(): api.SatispayGateways { return api.satispay_gateways }\n\tget satispay_payments(): api.SatispayPayments { return api.satispay_payments }\n\tget shipments(): api.Shipments { return api.shipments }\n\tget shipping_categories(): api.ShippingCategories { return api.shipping_categories }\n\tget shipping_method_tiers(): api.ShippingMethodTiers { return api.shipping_method_tiers }\n\tget shipping_methods(): api.ShippingMethods { return api.shipping_methods }\n\tget shipping_weight_tiers(): api.ShippingWeightTiers { return api.shipping_weight_tiers }\n\tget shipping_zones(): api.ShippingZones { return api.shipping_zones }\n\tget sku_list_items(): api.SkuListItems { return api.sku_list_items }\n\tget sku_list_promotion_rules(): api.SkuListPromotionRules { return api.sku_list_promotion_rules }\n\tget sku_lists(): api.SkuLists { return api.sku_lists }\n\tget sku_options(): api.SkuOptions { return api.sku_options }\n\tget skus(): api.Skus { return api.skus }\n\tget stock_items(): api.StockItems { return api.stock_items }\n\tget stock_line_items(): api.StockLineItems { return api.stock_line_items }\n\tget stock_locations(): api.StockLocations { return api.stock_locations }\n\tget stock_reservations(): api.StockReservations { return api.stock_reservations }\n\tget stock_transfers(): api.StockTransfers { return api.stock_transfers }\n\tget stores(): api.Stores { return api.stores }\n\tget stripe_gateways(): api.StripeGateways { return api.stripe_gateways }\n\tget stripe_payments(): api.StripePayments { return api.stripe_payments }\n\tget stripe_tax_accounts(): api.StripeTaxAccounts { return api.stripe_tax_accounts }\n\tget subscription_models(): api.SubscriptionModels { return api.subscription_models }\n\tget tags(): api.Tags { return api.tags }\n\tget talon_one_accounts(): api.TalonOneAccounts { return api.talon_one_accounts }\n\tget tax_calculators(): api.TaxCalculators { return api.tax_calculators }\n\tget tax_categories(): api.TaxCategories { return api.tax_categories }\n\tget tax_rules(): api.TaxRules { return api.tax_rules }\n\tget taxjar_accounts(): api.TaxjarAccounts { return api.taxjar_accounts }\n\tget transactions(): api.Transactions { return api.transactions }\n\tget versions(): api.Versions { return api.versions }\n\tget vertex_accounts(): api.VertexAccounts { return api.vertex_accounts }\n\tget voids(): api.Voids { return api.voids }\n\tget webhooks(): api.Webhooks { return api.webhooks }\n\tget wire_transfers(): api.WireTransfers { return api.wire_transfers }\n\t// ##__CL_RESOURCES_ACCESSORS_ONLY_STOP__##\n\n}\n\n\n\nfunction CommerceLayer(config: CommerceLayerInitConfig): CommerceLayerBundle {\n\treturn CommerceLayerBundle.get(config)\n}\n\n\nexport { CommerceLayer, type CommerceLayerBundle }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/in_stock_subscriptions.ts"],"names":["ApiResource"],"mappings":";;;;;AA+GA,IAAM,oBAAA,GAAN,MAAM,qBAAA,SAA6BA,6BAAiC,CAAA;AAAA,EAEnE,OAAgB,IAAgC,GAAA,wBAAA;AAAA,EAEhD,MAAM,MAAA,CAAO,QAAqC,EAAA,MAAA,EAAmD,OAAyD,EAAA;AAC7J,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAuD,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,qBAAqB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC/I,EAEA,MAAM,MAAA,CAAO,QAAqC,EAAA,MAAA,EAAmD,OAAyD,EAAA;AAC7J,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAuD,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,qBAAqB,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC/I,EAEA,MAAM,MA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AAA;AACpE,IAAO,OAAA,KAAA,CAAM,qBAA6C,EAAE,CAAA;AAAA;AAC7D,EAEA,sBAAsB,GAAyC,EAAA;AAC9D,IAAO,OAAA,KAAA,CAAM,qBAA8C,CAAA,GAAG,GAAG,CAAA;AAAA;AAClE,EAGA,IAAgC,GAAA;AAC/B,IAAA,OAAO,qBAAqB,CAAA,IAAA;AAAA;AAG9B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,oBAAqB,EAAA;AAC1C,IAAO,8BAAQ,GAAA","file":"chunk-2AFNQJXP.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 { Customer, CustomerType } from './customers'\nimport type { Sku, SkuType } from './skus'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype InStockSubscriptionType = 'in_stock_subscriptions'\ntype InStockSubscriptionRel = ResourceRel & { type: InStockSubscriptionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype SkuRel = ResourceRel & { type: SkuType }\n\n\nexport type InStockSubscriptionSort = Pick<InStockSubscription, 'id' | 'status' | 'stock_threshold'> & ResourceSort\n// export type InStockSubscriptionFilter = Pick<InStockSubscription, 'id' | 'status' | 'stock_threshold'> & ResourceFilter\n\n\ninterface InStockSubscription extends Resource {\n\t\n\treadonly type: InStockSubscriptionType\n\n\t/** \n\t * The subscription status. One of 'active' (default), 'inactive', or 'notified'.\n\t * @example ```\"active\"```\n\t */\n\tstatus: 'active' | 'inactive' | 'notified'\n\t/** \n\t * The email of the associated customer, replace the relationship.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email?: string | null\n\t/** \n\t * The code of the associated SKU, replace the relationship.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The threshold at which to trigger the back in stock notification.\n\t * @example ```3```\n\t */\n\tstock_threshold?: number | null\n\n\tmarket?: Market | null\n\tcustomer?: Customer | null\n\tsku?: Sku | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface InStockSubscriptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The email of the associated customer, replace the relationship.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email?: string | null\n\t/** \n\t * The code of the associated SKU, replace the relationship.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The threshold at which to trigger the back in stock notification.\n\t * @example ```3```\n\t */\n\tstock_threshold?: number | null\n\n\tmarket: MarketRel\n\tcustomer: CustomerRel\n\tsku: SkuRel\n\n}\n\n\ninterface InStockSubscriptionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU, replace the relationship.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The threshold at which to trigger the back in stock notification.\n\t * @example ```3```\n\t */\n\tstock_threshold?: number | null\n\t/** \n\t * Send this attribute if you want to activate an inactive subscription.\n\t * @example ```true```\n\t */\n\t_activate?: boolean | null\n\t/** \n\t * Send this attribute if you want to dactivate an active subscription.\n\t * @example ```true```\n\t */\n\t_deactivate?: boolean | null\n\n\tmarket?: MarketRel | null\n\tcustomer?: CustomerRel | null\n\tsku?: SkuRel | null\n\n}\n\n\nclass InStockSubscriptions extends ApiResource<InStockSubscription> {\n\n\tstatic readonly TYPE: InStockSubscriptionType = 'in_stock_subscriptions' as const\n\n\tasync create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.create<InStockSubscriptionCreate, InStockSubscription>({ ...resource, type: InStockSubscriptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.update<InStockSubscriptionUpdate, InStockSubscription>({ ...resource, type: InStockSubscriptions.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: InStockSubscriptions.TYPE } : id, options)\n\t}\n\n\tasync market(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `in_stock_subscriptions/${_inStockSubscriptionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync customer(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `in_stock_subscriptions/${_inStockSubscriptionId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync sku(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `in_stock_subscriptions/${_inStockSubscriptionId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync events(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `in_stock_subscriptions/${_inStockSubscriptionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `in_stock_subscriptions/${_inStockSubscriptionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _activate(id: string | InStockSubscription, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.update<InStockSubscriptionUpdate, InStockSubscription>({ id: (typeof id === 'string')? id: id.id, type: InStockSubscriptions.TYPE, _activate: true }, params, options)\n\t}\n\n\tasync _deactivate(id: string | InStockSubscription, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.update<InStockSubscriptionUpdate, InStockSubscription>({ id: (typeof id === 'string')? id: id.id, type: InStockSubscriptions.TYPE, _deactivate: true }, params, options)\n\t}\n\n\n\tisInStockSubscription(resource: any): resource is InStockSubscription {\n\t\treturn resource.type && (resource.type === InStockSubscriptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): InStockSubscriptionRel {\n\t\treturn super.relationshipOneToOne<InStockSubscriptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): InStockSubscriptionRel[] {\n\t\treturn super.relationshipOneToMany<InStockSubscriptionRel>(...ids)\n\t}\n\n\n\ttype(): InStockSubscriptionType {\n\t\treturn InStockSubscriptions.TYPE\n\t}\n\n}\n\n\nconst instance = new InStockSubscriptions()\nexport default instance\n\nexport type { InStockSubscriptions, InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate, InStockSubscriptionType }\n"]}
1
+ {"version":3,"sources":["../src/resources/in_stock_subscriptions.ts"],"names":["ApiResource"],"mappings":";;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EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,qBAAA,CAAqB,IAAA,EAAM,WAAW,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AAC5L,EAEA,MAAM,WAAA,CAAY,EAAA,EAAkC,MAAA,EAAmD,OAAA,EAAyD;AAC/J,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAuD,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,qBAAA,CAAqB,IAAA,EAAM,aAAa,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AAC9L,EAGA,sBAAsB,QAAA,EAAgD;AACrE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,qBAAA,CAAqB,IAAA;AAAA;AACjE,EAGA,aAAa,EAAA,EAAwD;AACpE,IAAA,OAAO,KAAA,CAAM,qBAA6C,EAAE,CAAA;AAAA;AAC7D,EAEA,sBAAsB,GAAA,EAAyC;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA8C,GAAG,GAAG,CAAA;AAAA;AAClE,EAGA,IAAA,GAAgC;AAC/B,IAAA,OAAO,qBAAA,CAAqB,IAAA;AAAA;AAG9B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,oBAAA,EAAqB;AAC1C,IAAO,8BAAA,GAAQ","file":"chunk-2AFNQJXP.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 { Customer, CustomerType } from './customers'\nimport type { Sku, SkuType } from './skus'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype InStockSubscriptionType = 'in_stock_subscriptions'\ntype InStockSubscriptionRel = ResourceRel & { type: InStockSubscriptionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype SkuRel = ResourceRel & { type: SkuType }\n\n\nexport type InStockSubscriptionSort = Pick<InStockSubscription, 'id' | 'status' | 'stock_threshold'> & ResourceSort\n// export type InStockSubscriptionFilter = Pick<InStockSubscription, 'id' | 'status' | 'stock_threshold'> & ResourceFilter\n\n\ninterface InStockSubscription extends Resource {\n\t\n\treadonly type: InStockSubscriptionType\n\n\t/** \n\t * The subscription status. One of 'active' (default), 'inactive', or 'notified'.\n\t * @example ```\"active\"```\n\t */\n\tstatus: 'active' | 'inactive' | 'notified'\n\t/** \n\t * The email of the associated customer, replace the relationship.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email?: string | null\n\t/** \n\t * The code of the associated SKU, replace the relationship.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The threshold at which to trigger the back in stock notification.\n\t * @example ```3```\n\t */\n\tstock_threshold?: number | null\n\n\tmarket?: Market | null\n\tcustomer?: Customer | null\n\tsku?: Sku | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface InStockSubscriptionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The email of the associated customer, replace the relationship.\n\t * @example ```\"john@example.com\"```\n\t */\n\tcustomer_email?: string | null\n\t/** \n\t * The code of the associated SKU, replace the relationship.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The threshold at which to trigger the back in stock notification.\n\t * @example ```3```\n\t */\n\tstock_threshold?: number | null\n\n\tmarket: MarketRel\n\tcustomer: CustomerRel\n\tsku: SkuRel\n\n}\n\n\ninterface InStockSubscriptionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU, replace the relationship.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The threshold at which to trigger the back in stock notification.\n\t * @example ```3```\n\t */\n\tstock_threshold?: number | null\n\t/** \n\t * Send this attribute if you want to activate an inactive subscription.\n\t * @example ```true```\n\t */\n\t_activate?: boolean | null\n\t/** \n\t * Send this attribute if you want to dactivate an active subscription.\n\t * @example ```true```\n\t */\n\t_deactivate?: boolean | null\n\n\tmarket?: MarketRel | null\n\tcustomer?: CustomerRel | null\n\tsku?: SkuRel | null\n\n}\n\n\nclass InStockSubscriptions extends ApiResource<InStockSubscription> {\n\n\tstatic readonly TYPE: InStockSubscriptionType = 'in_stock_subscriptions' as const\n\n\tasync create(resource: InStockSubscriptionCreate, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.create<InStockSubscriptionCreate, InStockSubscription>({ ...resource, type: InStockSubscriptions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: InStockSubscriptionUpdate, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.update<InStockSubscriptionUpdate, InStockSubscription>({ ...resource, type: InStockSubscriptions.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: InStockSubscriptions.TYPE } : id, options)\n\t}\n\n\tasync market(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `in_stock_subscriptions/${_inStockSubscriptionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync customer(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `in_stock_subscriptions/${_inStockSubscriptionId}/customer`, params, options) as unknown as Customer\n\t}\n\n\tasync sku(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `in_stock_subscriptions/${_inStockSubscriptionId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync events(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `in_stock_subscriptions/${_inStockSubscriptionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(inStockSubscriptionId: string | InStockSubscription, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _inStockSubscriptionId = (inStockSubscriptionId as InStockSubscription).id || inStockSubscriptionId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `in_stock_subscriptions/${_inStockSubscriptionId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _activate(id: string | InStockSubscription, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.update<InStockSubscriptionUpdate, InStockSubscription>({ id: (typeof id === 'string')? id: id.id, type: InStockSubscriptions.TYPE, _activate: true }, params, options)\n\t}\n\n\tasync _deactivate(id: string | InStockSubscription, params?: QueryParamsRetrieve<InStockSubscription>, options?: ResourcesConfig): Promise<InStockSubscription> {\n\t\treturn this.resources.update<InStockSubscriptionUpdate, InStockSubscription>({ id: (typeof id === 'string')? id: id.id, type: InStockSubscriptions.TYPE, _deactivate: true }, params, options)\n\t}\n\n\n\tisInStockSubscription(resource: any): resource is InStockSubscription {\n\t\treturn resource.type && (resource.type === InStockSubscriptions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): InStockSubscriptionRel {\n\t\treturn super.relationshipOneToOne<InStockSubscriptionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): InStockSubscriptionRel[] {\n\t\treturn super.relationshipOneToMany<InStockSubscriptionRel>(...ids)\n\t}\n\n\n\ttype(): InStockSubscriptionType {\n\t\treturn InStockSubscriptions.TYPE\n\t}\n\n}\n\n\nconst instance = new InStockSubscriptions()\nexport default instance\n\nexport type { InStockSubscriptions, InStockSubscription, InStockSubscriptionCreate, InStockSubscriptionUpdate, InStockSubscriptionType }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/bing_geocoders.ts"],"names":["ApiResource"],"mappings":";;;;;AAkEA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAA0B,CAAA;AAAA,EAErD,OAAgB,IAAyB,GAAA,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAA8B,EAAA,MAAA,EAA4C,OAAkD,EAAA;AACxI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAyC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,cAAc,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAA,CAAO,QAA8B,EAAA,MAAA,EAA4C,OAAkD,EAAA;AACxI,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAyC,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,cAAc,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CA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qBAAsC,EAAE,CAAA;AAAA;AACtD,EAEA,sBAAsB,GAAkC,EAAA;AACvD,IAAO,OAAA,KAAA,CAAM,qBAAuC,CAAA,GAAG,GAAG,CAAA;AAAA;AAC3D,EAGA,IAAyB,GAAA;AACxB,IAAA,OAAO,cAAc,CAAA,IAAA;AAAA;AAGvB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAc,EAAA;AACnC,IAAO,sBAAQ,GAAA","file":"chunk-2AMKJ6V7.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 } from './markets'\nimport type { Address } from './addresses'\nimport type { Attachment } from './attachments'\n\n\ntype BingGeocoderType = 'bing_geocoders'\ntype BingGeocoderRel = ResourceRel & { type: BingGeocoderType }\n\n\nexport type BingGeocoderSort = Pick<BingGeocoder, 'id' | 'name'> & ResourceSort\n// export type BingGeocoderFilter = Pick<BingGeocoder, 'id' | 'name'> & ResourceFilter\n\n\ninterface BingGeocoder extends Resource {\n\t\n\treadonly type: BingGeocoderType\n\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\taddresses?: Address[] | null\n\tattachments?: Attachment[] | null\n\n}\n\n\ninterface BingGeocoderCreate extends ResourceCreate {\n\t\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\t/** \n\t * The Bing Virtualearth key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey: string\n\t\n}\n\n\ninterface BingGeocoderUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The Bing Virtualearth key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey?: string | null\n\t\n}\n\n\nclass BingGeocoders extends ApiResource<BingGeocoder> {\n\n\tstatic readonly TYPE: BingGeocoderType = 'bing_geocoders' as const\n\n\tasync create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve<BingGeocoder>, options?: ResourcesConfig): Promise<BingGeocoder> {\n\t\treturn this.resources.create<BingGeocoderCreate, BingGeocoder>({ ...resource, type: BingGeocoders.TYPE }, params, options)\n\t}\n\n\tasync update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve<BingGeocoder>, options?: ResourcesConfig): Promise<BingGeocoder> {\n\t\treturn this.resources.update<BingGeocoderUpdate, BingGeocoder>({ ...resource, type: BingGeocoders.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: BingGeocoders.TYPE } : id, options)\n\t}\n\n\tasync markets(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _bingGeocoderId = (bingGeocoderId as BingGeocoder).id || bingGeocoderId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `bing_geocoders/${_bingGeocoderId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync addresses(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList<Address>, options?: ResourcesConfig): Promise<ListResponse<Address>> {\n\t\tconst _bingGeocoderId = (bingGeocoderId as BingGeocoder).id || bingGeocoderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `bing_geocoders/${_bingGeocoderId}/addresses`, params, options) as unknown as ListResponse<Address>\n\t}\n\n\tasync attachments(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _bingGeocoderId = (bingGeocoderId as BingGeocoder).id || bingGeocoderId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `bing_geocoders/${_bingGeocoderId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\n\tisBingGeocoder(resource: any): resource is BingGeocoder {\n\t\treturn resource.type && (resource.type === BingGeocoders.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): BingGeocoderRel {\n\t\treturn super.relationshipOneToOne<BingGeocoderRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): BingGeocoderRel[] {\n\t\treturn super.relationshipOneToMany<BingGeocoderRel>(...ids)\n\t}\n\n\n\ttype(): BingGeocoderType {\n\t\treturn BingGeocoders.TYPE\n\t}\n\n}\n\n\nconst instance = new BingGeocoders()\nexport default instance\n\nexport type { BingGeocoders, BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate, BingGeocoderType }\n"]}
1
+ {"version":3,"sources":["../src/resources/bing_geocoders.ts"],"names":["ApiResource"],"mappings":";;;;;AAkEA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1H,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,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AAA;AACtD,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA;AAC3D,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA;AAGvB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-2AMKJ6V7.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 } from './markets'\nimport type { Address } from './addresses'\nimport type { Attachment } from './attachments'\n\n\ntype BingGeocoderType = 'bing_geocoders'\ntype BingGeocoderRel = ResourceRel & { type: BingGeocoderType }\n\n\nexport type BingGeocoderSort = Pick<BingGeocoder, 'id' | 'name'> & ResourceSort\n// export type BingGeocoderFilter = Pick<BingGeocoder, 'id' | 'name'> & ResourceFilter\n\n\ninterface BingGeocoder extends Resource {\n\t\n\treadonly type: BingGeocoderType\n\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\taddresses?: Address[] | null\n\tattachments?: Attachment[] | null\n\n}\n\n\ninterface BingGeocoderCreate extends ResourceCreate {\n\t\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\t/** \n\t * The Bing Virtualearth key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey: string\n\t\n}\n\n\ninterface BingGeocoderUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The Bing Virtualearth key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tkey?: string | null\n\t\n}\n\n\nclass BingGeocoders extends ApiResource<BingGeocoder> {\n\n\tstatic readonly TYPE: BingGeocoderType = 'bing_geocoders' as const\n\n\tasync create(resource: BingGeocoderCreate, params?: QueryParamsRetrieve<BingGeocoder>, options?: ResourcesConfig): Promise<BingGeocoder> {\n\t\treturn this.resources.create<BingGeocoderCreate, BingGeocoder>({ ...resource, type: BingGeocoders.TYPE }, params, options)\n\t}\n\n\tasync update(resource: BingGeocoderUpdate, params?: QueryParamsRetrieve<BingGeocoder>, options?: ResourcesConfig): Promise<BingGeocoder> {\n\t\treturn this.resources.update<BingGeocoderUpdate, BingGeocoder>({ ...resource, type: BingGeocoders.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: BingGeocoders.TYPE } : id, options)\n\t}\n\n\tasync markets(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _bingGeocoderId = (bingGeocoderId as BingGeocoder).id || bingGeocoderId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `bing_geocoders/${_bingGeocoderId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync addresses(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList<Address>, options?: ResourcesConfig): Promise<ListResponse<Address>> {\n\t\tconst _bingGeocoderId = (bingGeocoderId as BingGeocoder).id || bingGeocoderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `bing_geocoders/${_bingGeocoderId}/addresses`, params, options) as unknown as ListResponse<Address>\n\t}\n\n\tasync attachments(bingGeocoderId: string | BingGeocoder, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _bingGeocoderId = (bingGeocoderId as BingGeocoder).id || bingGeocoderId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `bing_geocoders/${_bingGeocoderId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\n\tisBingGeocoder(resource: any): resource is BingGeocoder {\n\t\treturn resource.type && (resource.type === BingGeocoders.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): BingGeocoderRel {\n\t\treturn super.relationshipOneToOne<BingGeocoderRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): BingGeocoderRel[] {\n\t\treturn super.relationshipOneToMany<BingGeocoderRel>(...ids)\n\t}\n\n\n\ttype(): BingGeocoderType {\n\t\treturn BingGeocoders.TYPE\n\t}\n\n}\n\n\nconst instance = new BingGeocoders()\nexport default instance\n\nexport type { BingGeocoders, BingGeocoder, BingGeocoderCreate, BingGeocoderUpdate, BingGeocoderType }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/parcels.ts"],"names":["ApiResource"],"mappings":";;;;;AAwZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAoB,CAAA;AAAA,EAEzC,OAAgB,IAAmB,GAAA,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAwB,EAAA,MAAA,EAAsC,OAA4C,EAAA;AACtH,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA6B,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,QAAQ,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxG,EAEA,MAAM,MAAA,CAAO,QAAwB,EAAA,MAAA,EAAsC,OAA4C,EAAA;AACtH,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,SAAA,CAAU,MAAQ,CAAA,OAA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Id, 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":["ApiResource"],"mappings":";;;;;AAwZA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;AACxG,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA;A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;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-2HLQW5MF.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 { 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"]}