@commercelayer/sdk 7.0.0-rc.10 → 7.0.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (652) hide show
  1. package/lib/{api-DF66S5Gh.d.ts → api-BIiVfx1G.d.ts} +66 -47
  2. package/lib/{api-2OqdnITp.d.cts → api-xIgvzFhW.d.cts} +66 -47
  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-EJSNNH47.js → chunk-AVJX4OEZ.js} +3 -3
  86. package/lib/{chunk-EJSNNH47.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-RTLW5O74.cjs → chunk-S3MCPCGR.cjs} +4 -4
  245. package/lib/{chunk-RTLW5O74.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-VLLLEX5J.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-NKJBVNTV.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-IIR3UVU2.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-RIMDGLIA.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-HLCGKY7R.js.map +0 -1
  638. package/lib/chunk-HQ35KQFG.cjs.map +0 -1
  639. package/lib/chunk-IIR3UVU2.js.map +0 -1
  640. package/lib/chunk-JENLN6VJ.js.map +0 -1
  641. package/lib/chunk-KBN3FFXD.cjs.map +0 -1
  642. package/lib/chunk-LCLXLB2R.cjs.map +0 -1
  643. package/lib/chunk-LEWK7QET.cjs.map +0 -1
  644. package/lib/chunk-NKJBVNTV.cjs.map +0 -1
  645. package/lib/chunk-NMVACSMG.js.map +0 -1
  646. package/lib/chunk-OPQJPXLM.cjs.map +0 -1
  647. package/lib/chunk-P3NADEGE.cjs.map +0 -1
  648. package/lib/chunk-QHRQCFDB.js.map +0 -1
  649. package/lib/chunk-RIMDGLIA.cjs.map +0 -1
  650. package/lib/chunk-RWPFE3LF.cjs.map +0 -1
  651. package/lib/chunk-VLLLEX5J.js.map +0 -1
  652. package/lib/chunk-VMJUXZ67.cjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/enum.ts"],"names":[],"mappings":";AAOA,IAAM,YAAe,GAAA;AAAA;AAAA,EAEpB,WAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,kBAAA;AAAA,EACA,iBAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,oBAAA;AAAA,EACA,oBAAA;AAAA,EACA,SAAA;AAAA,EACA,wBAAA;AAAA,EACA,UAAA;AAAA,EACA,kBAAA;AAAA,EACA,uBAAA;AAAA,EACA,uBAAA;AAAA,EACA,UAAA;AAAA,EACA,8BAAA;AAAA,EACA,mBAAA;AAAA,EACA,SAAA;AAAA,EACA,wBAAA;AAAA,EACA,oBAAA;AAAA,EACA,iBAAA;AAAA,EACA,0BAAA;AAAA,EACA,0BAAA;AAAA,EACA,wBAAA;AAAA,EACA,WAAA;AAAA,EACA,qBAAA;AAAA,EACA,uBAAA;AAAA,EACA,kBAAA;AAAA,EACA,kBAAA;AAAA,EACA,iBAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,mBAAA;AAAA,EACA,mBAAA;AAAA,EACA,qBAAA;AAAA,EACA,0BAAA;AAAA,EACA,yBAAA;AAAA,EACA,wBAAA;AAAA,EACA,iBAAA;AAAA,EACA,sBAAA;AAAA,EACA,0BAAA;AAAA,EACA,WAAA;AAAA,EACA,sBAAA;AAAA,EACA,YAAA;AAAA,EACA,kBAAA;AAAA,EACA,SAAA;AAAA,EACA,wBAAA;AAAA,EACA,kBAAA;AAAA,EACA,4BAAA;AAAA,EACA,2BAAA;AAAA,EACA,iBAAA;AAAA,EACA,iBAAA;AAAA,EACA,mBAAA;AAAA,EACA,YAAA;AAAA,EAC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Ae,CAAA;AAC9C;AAEO,SAAS,YAAY,QAAqC,EAAA;AAChE,EAAO,OAAA,kBAAA,CAAmB,SAAS,QAAe,CAAA;AACnD;AAEO,SAAS,YAAY,QAAqC,EAAA;AAChE,EAAO,OAAA,kBAAA,CAAmB,SAAS,QAAe,CAAA;AACnD;AAEO,SAAS,YAAY,QAAqC,EAAA;AAChE,EAAO,OAAA,kBAAA,CAAmB,SAAS,QAAe,CAAA;AACnD;AAEO,SAAS,WAAW,QAAqC,EAAA;AAC/D,EAAO,OAAA,iBAAA,CAAkB,SAAS,QAAe,CAAA;AAClD;AAEO,SAAS,cAAc,QAAqC,EAAA;AAClE,EAAO,OAAA,oBAAA,CAAqB,SAAS,QAAe,CAAA;AACrD","file":"chunk-GD4WRDF2.js","sourcesContent":["import type { Resource, ResourceRel } from './resource'\nimport type { TagType } from './resources/tags'\nimport type { VersionType } from './resources/versions'\nimport type * as models from './model'\n\n\n\nconst apiResources = [\n\t// ##__API_RESOURCE_LIST_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'applications',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'discount_engine_items',\n\t'discount_engines',\n\t'easypost_pickups',\n\t'event_callbacks',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'geocoders',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_factories',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'organizations',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'pickups',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'recurring_order_copies',\n\t'refunds',\n\t'reserved_stocks',\n\t'resource_errors',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'versions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_LIST_STOP__##\n] as const\n\nexport type ResourceTypeLock = typeof apiResources[number]\nexport const resourceList: Readonly<ResourceTypeLock[]> = apiResources\n\n\n// Singleton resources\nexport const singletonList = [\n\t// ##__API_RESOURCE_SINGLETON_START__##\n\t'applications',\n\t'organizations'\n\t// ##__API_RESOURCE_SINGLETON_STOP__##\n] as const\n\n\n// Retrievable resources\nexport type RetrievableResourceType = ResourceTypeLock\n\nexport type RetrievableResource = Resource & {\n\ttype: RetrievableResourceType\n}\n\n\n// Listable resources\nexport type ListableResourceType = Exclude<ResourceTypeLock,\n\t// ##__API_RESOURCE_NOT_LISTABLE_START__##\n\t'applications'\n|\t'organizations'\n// ##__API_RESOURCE_NOT_LISTABLE_STOP__##\n>\n\nexport type ListableResource = Resource & {\n\ttype: ListableResourceType\n}\n\n\n// Creatable resources\nexport const creatableResources = [\n\t// ##__API_RESOURCE_CREATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_CREATABLE_STOP__##\n] as const\n\nexport type CreatableResourceType = typeof creatableResources[number]\nexport type CreatableResource = Resource & {\n\ttype: CreatableResourceType\n}\n\n\n// Updatable resources\nexport const updatableResources = [\n\t// ##__API_RESOURCE_UPDATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'refunds',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_UPDATABLE_STOP__##\n] as const\n\nexport type UpdatableResourceType = typeof updatableResources[number]\nexport type UpdatableResource = Resource & {\n\ttype: UpdatableResourceType\n}\n\n\n// Deletable resources\nexport const deletableResources = [\n\t// ##__API_RESOURCE_DELETABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_DELETABLE_STOP__##\n] as const\n\nexport type DeletableResourceType = typeof deletableResources[number]\nexport type DeletableResource = Resource & {\n\ttype: DeletableResourceType\n}\n\n\n// Taggable resources\nexport const taggableResources = [\n\t// ##__API_RESOURCE_TAGGABLE_START__##\n\t'addresses',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'coupons',\n\t'customers',\n\t'external_promotions',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_cards',\n\t'line_item_options',\n\t'line_items',\n\t'order_subscriptions',\n\t'orders',\n\t'percentage_discount_promotions',\n\t'promotions',\n\t'returns',\n\t'shipments',\n\t'sku_options',\n\t'skus'\n\t// ##__API_RESOURCE_TAGGABLE_STOP__##\n] as const\n\nexport type TaggableResourceType = typeof taggableResources[number]\nexport type TaggableResource = Resource & {\n\ttype: TaggableResourceType,\n\ttags?: Array<ResourceRel & { type: TagType }> | null\n}\n\n\n// Versionable resources\nexport const versionableResources = [\n\t// ##__API_RESOURCE_VERSIONABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'delivery_lead_times',\n\t'discount_engines',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'order_amount_promotion_rules',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'refunds',\n\t'reserved_stocks',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_VERSIONABLE_STOP__##\n] as const\n\nexport type VersionableResourceType = typeof versionableResources[number]\nexport type VersionableResource = Resource & {\n\ttype: VersionableResourceType,\n\tversions?: Array<ResourceRel & { type: VersionType }> | null\n}\n\n\n\n// Utility functions\nexport function getResources(sort?: boolean): readonly ResourceTypeLock[] {\n\treturn sort? [ ...resourceList ].sort() : resourceList\n}\n\nexport function getSingletons(sort?: boolean): readonly string[] {\n\treturn sort? [ ...singletonList ].sort() : singletonList\n}\n\nexport function isSingleton(resource: ResourceTypeLock): boolean {\n\treturn singletonList.includes(resource as any)\n}\n\nexport function isCreatable(resource: ResourceTypeLock): boolean {\n\treturn creatableResources.includes(resource as any)\n}\n\nexport function isUpdatable(resource: ResourceTypeLock): boolean {\n\treturn updatableResources.includes(resource as any)\n}\n\nexport function isDeletable(resource: ResourceTypeLock): boolean {\n\treturn deletableResources.includes(resource as any)\n}\n\nexport function isTaggable(resource: ResourceTypeLock): boolean {\n\treturn taggableResources.includes(resource as any)\n}\n\nexport function isVersionable(resource: ResourceTypeLock): boolean {\n\treturn versionableResources.includes(resource as any)\n}\n\n\n\n// Helper types\nexport type ResourceFields = {\n\t// ##__API_RESOURCE_FIELDS_START__##\n\taddresses: models.Address,\n\tadjustments: models.Adjustment,\n\tadyen_gateways: models.AdyenGateway,\n\tadyen_payments: models.AdyenPayment,\n\tapplications: models.Application,\n\tattachments: models.Attachment,\n\tauthorizations: models.Authorization,\n\tavalara_accounts: models.AvalaraAccount,\n\taxerve_gateways: models.AxerveGateway,\n\taxerve_payments: models.AxervePayment,\n\tbing_geocoders: models.BingGeocoder,\n\tbraintree_gateways: models.BraintreeGateway,\n\tbraintree_payments: models.BraintreePayment,\n\tbundles: models.Bundle,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotion,\n\tcaptures: models.Capture,\n\tcarrier_accounts: models.CarrierAccount,\n\tcheckout_com_gateways: models.CheckoutComGateway,\n\tcheckout_com_payments: models.CheckoutComPayment,\n\tcleanups: models.Cleanup,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRule,\n\tcoupon_recipients: models.CouponRecipient,\n\tcoupons: models.Coupon,\n\tcustom_promotion_rules: models.CustomPromotionRule,\n\tcustomer_addresses: models.CustomerAddress,\n\tcustomer_groups: models.CustomerGroup,\n\tcustomer_password_resets: models.CustomerPasswordReset,\n\tcustomer_payment_sources: models.CustomerPaymentSource,\n\tcustomer_subscriptions: models.CustomerSubscription,\n\tcustomers: models.Customer,\n\tdelivery_lead_times: models.DeliveryLeadTime,\n\tdiscount_engine_items: models.DiscountEngineItem,\n\tdiscount_engines: models.DiscountEngine,\n\teasypost_pickups: models.EasypostPickup,\n\tevent_callbacks: models.EventCallback,\n\tevents: models.Event,\n\texports: models.Export,\n\texternal_gateways: models.ExternalGateway,\n\texternal_payments: models.ExternalPayment,\n\texternal_promotions: models.ExternalPromotion,\n\texternal_tax_calculators: models.ExternalTaxCalculator,\n\tfixed_amount_promotions: models.FixedAmountPromotion,\n\tfixed_price_promotions: models.FixedPricePromotion,\n\tflex_promotions: models.FlexPromotion,\n\tfree_gift_promotions: models.FreeGiftPromotion,\n\tfree_shipping_promotions: models.FreeShippingPromotion,\n\tgeocoders: models.Geocoder,\n\tgift_card_recipients: models.GiftCardRecipient,\n\tgift_cards: models.GiftCard,\n\tgoogle_geocoders: models.GoogleGeocoder,\n\timports: models.Import,\n\tin_stock_subscriptions: models.InStockSubscription,\n\tinventory_models: models.InventoryModel,\n\tinventory_return_locations: models.InventoryReturnLocation,\n\tinventory_stock_locations: models.InventoryStockLocation,\n\tklarna_gateways: models.KlarnaGateway,\n\tklarna_payments: models.KlarnaPayment,\n\tline_item_options: models.LineItemOption,\n\tline_items: models.LineItem,\n\tlinks: models.Link,\n\tmanual_gateways: models.ManualGateway,\n\tmanual_tax_calculators: models.ManualTaxCalculator,\n\tmarkets: models.Market,\n\tmerchants: models.Merchant,\n\tnotifications: models.Notification,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRule,\n\torder_copies: models.OrderCopy,\n\torder_factories: models.OrderFactory,\n\torder_subscription_items: models.OrderSubscriptionItem,\n\torder_subscriptions: models.OrderSubscription,\n\torders: models.Order,\n\torganizations: models.Organization,\n\tpackages: models.Package,\n\tparcel_line_items: models.ParcelLineItem,\n\tparcels: models.Parcel,\n\tpayment_gateways: models.PaymentGateway,\n\tpayment_methods: models.PaymentMethod,\n\tpayment_options: models.PaymentOption,\n\tpaypal_gateways: models.PaypalGateway,\n\tpaypal_payments: models.PaypalPayment,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotion,\n\tpickups: models.Pickup,\n\tprice_frequency_tiers: models.PriceFrequencyTier,\n\tprice_list_schedulers: models.PriceListScheduler,\n\tprice_lists: models.PriceList,\n\tprice_tiers: models.PriceTier,\n\tprice_volume_tiers: models.PriceVolumeTier,\n\tprices: models.Price,\n\tpromotion_rules: models.PromotionRule,\n\tpromotions: models.Promotion,\n\trecurring_order_copies: models.RecurringOrderCopy,\n\trefunds: models.Refund,\n\treserved_stocks: models.ReservedStock,\n\tresource_errors: models.ResourceError,\n\treturn_line_items: models.ReturnLineItem,\n\treturns: models.Return,\n\tsatispay_gateways: models.SatispayGateway,\n\tsatispay_payments: models.SatispayPayment,\n\tshipments: models.Shipment,\n\tshipping_categories: models.ShippingCategory,\n\tshipping_method_tiers: models.ShippingMethodTier,\n\tshipping_methods: models.ShippingMethod,\n\tshipping_weight_tiers: models.ShippingWeightTier,\n\tshipping_zones: models.ShippingZone,\n\tsku_list_items: models.SkuListItem,\n\tsku_list_promotion_rules: models.SkuListPromotionRule,\n\tsku_lists: models.SkuList,\n\tsku_options: models.SkuOption,\n\tskus: models.Sku,\n\tstock_items: models.StockItem,\n\tstock_line_items: models.StockLineItem,\n\tstock_locations: models.StockLocation,\n\tstock_reservations: models.StockReservation,\n\tstock_transfers: models.StockTransfer,\n\tstores: models.Store,\n\tstripe_gateways: models.StripeGateway,\n\tstripe_payments: models.StripePayment,\n\tstripe_tax_accounts: models.StripeTaxAccount,\n\tsubscription_models: models.SubscriptionModel,\n\ttags: models.Tag,\n\ttalon_one_accounts: models.TalonOneAccount,\n\ttax_calculators: models.TaxCalculator,\n\ttax_categories: models.TaxCategory,\n\ttax_rules: models.TaxRule,\n\ttaxjar_accounts: models.TaxjarAccount,\n\ttransactions: models.Transaction,\n\tversions: models.Version,\n\tvertex_accounts: models.VertexAccount,\n\tvoids: models.Void,\n\twebhooks: models.Webhook,\n\twire_transfers: models.WireTransfer\n\t// ##__API_RESOURCE_FIELDS_STOP__##\n}\n\n\nexport type ResourceSortFields = {\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_START__##\n\taddresses: models.AddressSort,\n\tadjustments: models.AdjustmentSort,\n\tadyen_gateways: models.AdyenGatewaySort,\n\tadyen_payments: models.AdyenPaymentSort,\n\tapplications: models.ApplicationSort,\n\tattachments: models.AttachmentSort,\n\tauthorizations: models.AuthorizationSort,\n\tavalara_accounts: models.AvalaraAccountSort,\n\taxerve_gateways: models.AxerveGatewaySort,\n\taxerve_payments: models.AxervePaymentSort,\n\tbing_geocoders: models.BingGeocoderSort,\n\tbraintree_gateways: models.BraintreeGatewaySort,\n\tbraintree_payments: models.BraintreePaymentSort,\n\tbundles: models.BundleSort,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotionSort,\n\tcaptures: models.CaptureSort,\n\tcarrier_accounts: models.CarrierAccountSort,\n\tcheckout_com_gateways: models.CheckoutComGatewaySort,\n\tcheckout_com_payments: models.CheckoutComPaymentSort,\n\tcleanups: models.CleanupSort,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRuleSort,\n\tcoupon_recipients: models.CouponRecipientSort,\n\tcoupons: models.CouponSort,\n\tcustom_promotion_rules: models.CustomPromotionRuleSort,\n\tcustomer_addresses: models.CustomerAddressSort,\n\tcustomer_groups: models.CustomerGroupSort,\n\tcustomer_password_resets: models.CustomerPasswordResetSort,\n\tcustomer_payment_sources: models.CustomerPaymentSourceSort,\n\tcustomer_subscriptions: models.CustomerSubscriptionSort,\n\tcustomers: models.CustomerSort,\n\tdelivery_lead_times: models.DeliveryLeadTimeSort,\n\tdiscount_engine_items: models.DiscountEngineItemSort,\n\tdiscount_engines: models.DiscountEngineSort,\n\teasypost_pickups: models.EasypostPickupSort,\n\tevent_callbacks: models.EventCallbackSort,\n\tevents: models.EventSort,\n\texports: models.ExportSort,\n\texternal_gateways: models.ExternalGatewaySort,\n\texternal_payments: models.ExternalPaymentSort,\n\texternal_promotions: models.ExternalPromotionSort,\n\texternal_tax_calculators: models.ExternalTaxCalculatorSort,\n\tfixed_amount_promotions: models.FixedAmountPromotionSort,\n\tfixed_price_promotions: models.FixedPricePromotionSort,\n\tflex_promotions: models.FlexPromotionSort,\n\tfree_gift_promotions: models.FreeGiftPromotionSort,\n\tfree_shipping_promotions: models.FreeShippingPromotionSort,\n\tgeocoders: models.GeocoderSort,\n\tgift_card_recipients: models.GiftCardRecipientSort,\n\tgift_cards: models.GiftCardSort,\n\tgoogle_geocoders: models.GoogleGeocoderSort,\n\timports: models.ImportSort,\n\tin_stock_subscriptions: models.InStockSubscriptionSort,\n\tinventory_models: models.InventoryModelSort,\n\tinventory_return_locations: models.InventoryReturnLocationSort,\n\tinventory_stock_locations: models.InventoryStockLocationSort,\n\tklarna_gateways: models.KlarnaGatewaySort,\n\tklarna_payments: models.KlarnaPaymentSort,\n\tline_item_options: models.LineItemOptionSort,\n\tline_items: models.LineItemSort,\n\tlinks: models.LinkSort,\n\tmanual_gateways: models.ManualGatewaySort,\n\tmanual_tax_calculators: models.ManualTaxCalculatorSort,\n\tmarkets: models.MarketSort,\n\tmerchants: models.MerchantSort,\n\tnotifications: models.NotificationSort,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRuleSort,\n\torder_copies: models.OrderCopySort,\n\torder_factories: models.OrderFactorySort,\n\torder_subscription_items: models.OrderSubscriptionItemSort,\n\torder_subscriptions: models.OrderSubscriptionSort,\n\torders: models.OrderSort,\n\torganizations: models.OrganizationSort,\n\tpackages: models.PackageSort,\n\tparcel_line_items: models.ParcelLineItemSort,\n\tparcels: models.ParcelSort,\n\tpayment_gateways: models.PaymentGatewaySort,\n\tpayment_methods: models.PaymentMethodSort,\n\tpayment_options: models.PaymentOptionSort,\n\tpaypal_gateways: models.PaypalGatewaySort,\n\tpaypal_payments: models.PaypalPaymentSort,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotionSort,\n\tpickups: models.PickupSort,\n\tprice_frequency_tiers: models.PriceFrequencyTierSort,\n\tprice_list_schedulers: models.PriceListSchedulerSort,\n\tprice_lists: models.PriceListSort,\n\tprice_tiers: models.PriceTierSort,\n\tprice_volume_tiers: models.PriceVolumeTierSort,\n\tprices: models.PriceSort,\n\tpromotion_rules: models.PromotionRuleSort,\n\tpromotions: models.PromotionSort,\n\trecurring_order_copies: models.RecurringOrderCopySort,\n\trefunds: models.RefundSort,\n\treserved_stocks: models.ReservedStockSort,\n\tresource_errors: models.ResourceErrorSort,\n\treturn_line_items: models.ReturnLineItemSort,\n\treturns: models.ReturnSort,\n\tsatispay_gateways: models.SatispayGatewaySort,\n\tsatispay_payments: models.SatispayPaymentSort,\n\tshipments: models.ShipmentSort,\n\tshipping_categories: models.ShippingCategorySort,\n\tshipping_method_tiers: models.ShippingMethodTierSort,\n\tshipping_methods: models.ShippingMethodSort,\n\tshipping_weight_tiers: models.ShippingWeightTierSort,\n\tshipping_zones: models.ShippingZoneSort,\n\tsku_list_items: models.SkuListItemSort,\n\tsku_list_promotion_rules: models.SkuListPromotionRuleSort,\n\tsku_lists: models.SkuListSort,\n\tsku_options: models.SkuOptionSort,\n\tskus: models.SkuSort,\n\tstock_items: models.StockItemSort,\n\tstock_line_items: models.StockLineItemSort,\n\tstock_locations: models.StockLocationSort,\n\tstock_reservations: models.StockReservationSort,\n\tstock_transfers: models.StockTransferSort,\n\tstores: models.StoreSort,\n\tstripe_gateways: models.StripeGatewaySort,\n\tstripe_payments: models.StripePaymentSort,\n\tstripe_tax_accounts: models.StripeTaxAccountSort,\n\tsubscription_models: models.SubscriptionModelSort,\n\ttags: models.TagSort,\n\ttalon_one_accounts: models.TalonOneAccountSort,\n\ttax_calculators: models.TaxCalculatorSort,\n\ttax_categories: models.TaxCategorySort,\n\ttax_rules: models.TaxRuleSort,\n\ttaxjar_accounts: models.TaxjarAccountSort,\n\ttransactions: models.TransactionSort,\n\tversions: models.VersionSort,\n\tvertex_accounts: models.VertexAccountSort,\n\tvoids: models.VoidSort,\n\twebhooks: models.WebhookSort,\n\twire_transfers: models.WireTransferSort\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_STOP__##\n}\n"]}
1
+ {"version":3,"sources":["../src/enum.ts"],"names":[],"mappings":";AAOA,IAAM,YAAA,GAAe;AAAA;AAAA,EAEpB,WAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,gBAAA;AAAA,EACA,cAAA;AAAA,EACA,aAAA;AAAA,EACA,gBAAA;AAAA,EACA,kBAAA;AAAA,EACA,iBAAA;AAAA,EACA,iBAAA;AAAA,EACA,gBAAA;AAAA,EACA,oBAAA;AAAA,EACA,oBAAA;AAAA,EACA,SAAA;AAAA,EACA,wBAAA;AAAA,EACA,UAAA;AAAA,EACA,kBAAA;AAAA,EACA,u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import type { Resource, ResourceRel } from './resource'\nimport type { TagType } from './resources/tags'\nimport type { VersionType } from './resources/versions'\nimport type * as models from './model'\n\n\n\nconst apiResources = [\n\t// ##__API_RESOURCE_LIST_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'applications',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'discount_engine_items',\n\t'discount_engines',\n\t'easypost_pickups',\n\t'event_callbacks',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'geocoders',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_factories',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'organizations',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'pickups',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'recurring_order_copies',\n\t'refunds',\n\t'reserved_stocks',\n\t'resource_errors',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'versions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_LIST_STOP__##\n] as const\n\nexport type ResourceTypeLock = typeof apiResources[number]\nexport const resourceList: Readonly<ResourceTypeLock[]> = apiResources\n\n\n// Singleton resources\nexport const singletonList = [\n\t// ##__API_RESOURCE_SINGLETON_START__##\n\t'applications',\n\t'organizations'\n\t// ##__API_RESOURCE_SINGLETON_STOP__##\n] as const\n\n\n// Retrievable resources\nexport type RetrievableResourceType = ResourceTypeLock\n\nexport type RetrievableResource = Resource & {\n\ttype: RetrievableResourceType\n}\n\n\n// Listable resources\nexport type ListableResourceType = Exclude<ResourceTypeLock,\n\t// ##__API_RESOURCE_NOT_LISTABLE_START__##\n\t'applications'\n|\t'organizations'\n// ##__API_RESOURCE_NOT_LISTABLE_STOP__##\n>\n\nexport type ListableResource = Resource & {\n\ttype: ListableResourceType\n}\n\n\n// Creatable resources\nexport const creatableResources = [\n\t// ##__API_RESOURCE_CREATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_CREATABLE_STOP__##\n] as const\n\nexport type CreatableResourceType = typeof creatableResources[number]\nexport type CreatableResource = Resource & {\n\ttype: CreatableResourceType\n}\n\n\n// Updatable resources\nexport const updatableResources = [\n\t// ##__API_RESOURCE_UPDATABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'events',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'refunds',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_UPDATABLE_STOP__##\n] as const\n\nexport type UpdatableResourceType = typeof updatableResources[number]\nexport type UpdatableResource = Resource & {\n\ttype: UpdatableResourceType\n}\n\n\n// Deletable resources\nexport const deletableResources = [\n\t// ##__API_RESOURCE_DELETABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'attachments',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'bing_geocoders',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_password_resets',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'customers',\n\t'delivery_lead_times',\n\t'easypost_pickups',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'google_geocoders',\n\t'imports',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'line_item_options',\n\t'line_items',\n\t'links',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'notifications',\n\t'order_amount_promotion_rules',\n\t'order_copies',\n\t'order_subscription_items',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_methods',\n\t'payment_options',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_volume_tiers',\n\t'prices',\n\t'recurring_order_copies',\n\t'return_line_items',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_reservations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'subscription_models',\n\t'tags',\n\t'talon_one_accounts',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'vertex_accounts',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_DELETABLE_STOP__##\n] as const\n\nexport type DeletableResourceType = typeof deletableResources[number]\nexport type DeletableResource = Resource & {\n\ttype: DeletableResourceType\n}\n\n\n// Taggable resources\nexport const taggableResources = [\n\t// ##__API_RESOURCE_TAGGABLE_START__##\n\t'addresses',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'coupons',\n\t'customers',\n\t'external_promotions',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_cards',\n\t'line_item_options',\n\t'line_items',\n\t'order_subscriptions',\n\t'orders',\n\t'percentage_discount_promotions',\n\t'promotions',\n\t'returns',\n\t'shipments',\n\t'sku_options',\n\t'skus'\n\t// ##__API_RESOURCE_TAGGABLE_STOP__##\n] as const\n\nexport type TaggableResourceType = typeof taggableResources[number]\nexport type TaggableResource = Resource & {\n\ttype: TaggableResourceType,\n\ttags?: Array<ResourceRel & { type: TagType }> | null\n}\n\n\n// Versionable resources\nexport const versionableResources = [\n\t// ##__API_RESOURCE_VERSIONABLE_START__##\n\t'addresses',\n\t'adjustments',\n\t'adyen_gateways',\n\t'adyen_payments',\n\t'authorizations',\n\t'avalara_accounts',\n\t'axerve_gateways',\n\t'axerve_payments',\n\t'braintree_gateways',\n\t'braintree_payments',\n\t'bundles',\n\t'buy_x_pay_y_promotions',\n\t'captures',\n\t'carrier_accounts',\n\t'checkout_com_gateways',\n\t'checkout_com_payments',\n\t'cleanups',\n\t'coupon_codes_promotion_rules',\n\t'coupon_recipients',\n\t'coupons',\n\t'custom_promotion_rules',\n\t'customer_addresses',\n\t'customer_groups',\n\t'customer_payment_sources',\n\t'customer_subscriptions',\n\t'delivery_lead_times',\n\t'discount_engines',\n\t'exports',\n\t'external_gateways',\n\t'external_payments',\n\t'external_promotions',\n\t'external_tax_calculators',\n\t'fixed_amount_promotions',\n\t'fixed_price_promotions',\n\t'flex_promotions',\n\t'free_gift_promotions',\n\t'free_shipping_promotions',\n\t'gift_card_recipients',\n\t'gift_cards',\n\t'in_stock_subscriptions',\n\t'inventory_models',\n\t'inventory_return_locations',\n\t'inventory_stock_locations',\n\t'klarna_gateways',\n\t'klarna_payments',\n\t'manual_gateways',\n\t'manual_tax_calculators',\n\t'markets',\n\t'merchants',\n\t'order_amount_promotion_rules',\n\t'order_subscriptions',\n\t'orders',\n\t'packages',\n\t'parcel_line_items',\n\t'parcels',\n\t'payment_gateways',\n\t'payment_methods',\n\t'paypal_gateways',\n\t'paypal_payments',\n\t'percentage_discount_promotions',\n\t'price_frequency_tiers',\n\t'price_list_schedulers',\n\t'price_lists',\n\t'price_tiers',\n\t'price_volume_tiers',\n\t'prices',\n\t'promotion_rules',\n\t'promotions',\n\t'refunds',\n\t'reserved_stocks',\n\t'returns',\n\t'satispay_gateways',\n\t'satispay_payments',\n\t'shipments',\n\t'shipping_categories',\n\t'shipping_method_tiers',\n\t'shipping_methods',\n\t'shipping_weight_tiers',\n\t'shipping_zones',\n\t'sku_list_items',\n\t'sku_list_promotion_rules',\n\t'sku_lists',\n\t'sku_options',\n\t'skus',\n\t'stock_items',\n\t'stock_line_items',\n\t'stock_locations',\n\t'stock_transfers',\n\t'stores',\n\t'stripe_gateways',\n\t'stripe_payments',\n\t'stripe_tax_accounts',\n\t'talon_one_accounts',\n\t'tax_calculators',\n\t'tax_categories',\n\t'tax_rules',\n\t'taxjar_accounts',\n\t'transactions',\n\t'vertex_accounts',\n\t'voids',\n\t'webhooks',\n\t'wire_transfers'\n\t// ##__API_RESOURCE_VERSIONABLE_STOP__##\n] as const\n\nexport type VersionableResourceType = typeof versionableResources[number]\nexport type VersionableResource = Resource & {\n\ttype: VersionableResourceType,\n\tversions?: Array<ResourceRel & { type: VersionType }> | null\n}\n\n\n\n// Utility functions\nexport function getResources(sort?: boolean): readonly ResourceTypeLock[] {\n\treturn sort? [ ...resourceList ].sort() : resourceList\n}\n\nexport function getSingletons(sort?: boolean): readonly string[] {\n\treturn sort? [ ...singletonList ].sort() : singletonList\n}\n\nexport function isSingleton(resource: ResourceTypeLock): boolean {\n\treturn singletonList.includes(resource as any)\n}\n\nexport function isCreatable(resource: ResourceTypeLock): boolean {\n\treturn creatableResources.includes(resource as any)\n}\n\nexport function isUpdatable(resource: ResourceTypeLock): boolean {\n\treturn updatableResources.includes(resource as any)\n}\n\nexport function isDeletable(resource: ResourceTypeLock): boolean {\n\treturn deletableResources.includes(resource as any)\n}\n\nexport function isTaggable(resource: ResourceTypeLock): boolean {\n\treturn taggableResources.includes(resource as any)\n}\n\nexport function isVersionable(resource: ResourceTypeLock): boolean {\n\treturn versionableResources.includes(resource as any)\n}\n\n\n\n// Helper types\nexport type ResourceFields = {\n\t// ##__API_RESOURCE_FIELDS_START__##\n\taddresses: models.Address,\n\tadjustments: models.Adjustment,\n\tadyen_gateways: models.AdyenGateway,\n\tadyen_payments: models.AdyenPayment,\n\tapplications: models.Application,\n\tattachments: models.Attachment,\n\tauthorizations: models.Authorization,\n\tavalara_accounts: models.AvalaraAccount,\n\taxerve_gateways: models.AxerveGateway,\n\taxerve_payments: models.AxervePayment,\n\tbing_geocoders: models.BingGeocoder,\n\tbraintree_gateways: models.BraintreeGateway,\n\tbraintree_payments: models.BraintreePayment,\n\tbundles: models.Bundle,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotion,\n\tcaptures: models.Capture,\n\tcarrier_accounts: models.CarrierAccount,\n\tcheckout_com_gateways: models.CheckoutComGateway,\n\tcheckout_com_payments: models.CheckoutComPayment,\n\tcleanups: models.Cleanup,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRule,\n\tcoupon_recipients: models.CouponRecipient,\n\tcoupons: models.Coupon,\n\tcustom_promotion_rules: models.CustomPromotionRule,\n\tcustomer_addresses: models.CustomerAddress,\n\tcustomer_groups: models.CustomerGroup,\n\tcustomer_password_resets: models.CustomerPasswordReset,\n\tcustomer_payment_sources: models.CustomerPaymentSource,\n\tcustomer_subscriptions: models.CustomerSubscription,\n\tcustomers: models.Customer,\n\tdelivery_lead_times: models.DeliveryLeadTime,\n\tdiscount_engine_items: models.DiscountEngineItem,\n\tdiscount_engines: models.DiscountEngine,\n\teasypost_pickups: models.EasypostPickup,\n\tevent_callbacks: models.EventCallback,\n\tevents: models.Event,\n\texports: models.Export,\n\texternal_gateways: models.ExternalGateway,\n\texternal_payments: models.ExternalPayment,\n\texternal_promotions: models.ExternalPromotion,\n\texternal_tax_calculators: models.ExternalTaxCalculator,\n\tfixed_amount_promotions: models.FixedAmountPromotion,\n\tfixed_price_promotions: models.FixedPricePromotion,\n\tflex_promotions: models.FlexPromotion,\n\tfree_gift_promotions: models.FreeGiftPromotion,\n\tfree_shipping_promotions: models.FreeShippingPromotion,\n\tgeocoders: models.Geocoder,\n\tgift_card_recipients: models.GiftCardRecipient,\n\tgift_cards: models.GiftCard,\n\tgoogle_geocoders: models.GoogleGeocoder,\n\timports: models.Import,\n\tin_stock_subscriptions: models.InStockSubscription,\n\tinventory_models: models.InventoryModel,\n\tinventory_return_locations: models.InventoryReturnLocation,\n\tinventory_stock_locations: models.InventoryStockLocation,\n\tklarna_gateways: models.KlarnaGateway,\n\tklarna_payments: models.KlarnaPayment,\n\tline_item_options: models.LineItemOption,\n\tline_items: models.LineItem,\n\tlinks: models.Link,\n\tmanual_gateways: models.ManualGateway,\n\tmanual_tax_calculators: models.ManualTaxCalculator,\n\tmarkets: models.Market,\n\tmerchants: models.Merchant,\n\tnotifications: models.Notification,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRule,\n\torder_copies: models.OrderCopy,\n\torder_factories: models.OrderFactory,\n\torder_subscription_items: models.OrderSubscriptionItem,\n\torder_subscriptions: models.OrderSubscription,\n\torders: models.Order,\n\torganizations: models.Organization,\n\tpackages: models.Package,\n\tparcel_line_items: models.ParcelLineItem,\n\tparcels: models.Parcel,\n\tpayment_gateways: models.PaymentGateway,\n\tpayment_methods: models.PaymentMethod,\n\tpayment_options: models.PaymentOption,\n\tpaypal_gateways: models.PaypalGateway,\n\tpaypal_payments: models.PaypalPayment,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotion,\n\tpickups: models.Pickup,\n\tprice_frequency_tiers: models.PriceFrequencyTier,\n\tprice_list_schedulers: models.PriceListScheduler,\n\tprice_lists: models.PriceList,\n\tprice_tiers: models.PriceTier,\n\tprice_volume_tiers: models.PriceVolumeTier,\n\tprices: models.Price,\n\tpromotion_rules: models.PromotionRule,\n\tpromotions: models.Promotion,\n\trecurring_order_copies: models.RecurringOrderCopy,\n\trefunds: models.Refund,\n\treserved_stocks: models.ReservedStock,\n\tresource_errors: models.ResourceError,\n\treturn_line_items: models.ReturnLineItem,\n\treturns: models.Return,\n\tsatispay_gateways: models.SatispayGateway,\n\tsatispay_payments: models.SatispayPayment,\n\tshipments: models.Shipment,\n\tshipping_categories: models.ShippingCategory,\n\tshipping_method_tiers: models.ShippingMethodTier,\n\tshipping_methods: models.ShippingMethod,\n\tshipping_weight_tiers: models.ShippingWeightTier,\n\tshipping_zones: models.ShippingZone,\n\tsku_list_items: models.SkuListItem,\n\tsku_list_promotion_rules: models.SkuListPromotionRule,\n\tsku_lists: models.SkuList,\n\tsku_options: models.SkuOption,\n\tskus: models.Sku,\n\tstock_items: models.StockItem,\n\tstock_line_items: models.StockLineItem,\n\tstock_locations: models.StockLocation,\n\tstock_reservations: models.StockReservation,\n\tstock_transfers: models.StockTransfer,\n\tstores: models.Store,\n\tstripe_gateways: models.StripeGateway,\n\tstripe_payments: models.StripePayment,\n\tstripe_tax_accounts: models.StripeTaxAccount,\n\tsubscription_models: models.SubscriptionModel,\n\ttags: models.Tag,\n\ttalon_one_accounts: models.TalonOneAccount,\n\ttax_calculators: models.TaxCalculator,\n\ttax_categories: models.TaxCategory,\n\ttax_rules: models.TaxRule,\n\ttaxjar_accounts: models.TaxjarAccount,\n\ttransactions: models.Transaction,\n\tversions: models.Version,\n\tvertex_accounts: models.VertexAccount,\n\tvoids: models.Void,\n\twebhooks: models.Webhook,\n\twire_transfers: models.WireTransfer\n\t// ##__API_RESOURCE_FIELDS_STOP__##\n}\n\n\nexport type ResourceSortFields = {\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_START__##\n\taddresses: models.AddressSort,\n\tadjustments: models.AdjustmentSort,\n\tadyen_gateways: models.AdyenGatewaySort,\n\tadyen_payments: models.AdyenPaymentSort,\n\tapplications: models.ApplicationSort,\n\tattachments: models.AttachmentSort,\n\tauthorizations: models.AuthorizationSort,\n\tavalara_accounts: models.AvalaraAccountSort,\n\taxerve_gateways: models.AxerveGatewaySort,\n\taxerve_payments: models.AxervePaymentSort,\n\tbing_geocoders: models.BingGeocoderSort,\n\tbraintree_gateways: models.BraintreeGatewaySort,\n\tbraintree_payments: models.BraintreePaymentSort,\n\tbundles: models.BundleSort,\n\tbuy_x_pay_y_promotions: models.BuyXPayYPromotionSort,\n\tcaptures: models.CaptureSort,\n\tcarrier_accounts: models.CarrierAccountSort,\n\tcheckout_com_gateways: models.CheckoutComGatewaySort,\n\tcheckout_com_payments: models.CheckoutComPaymentSort,\n\tcleanups: models.CleanupSort,\n\tcoupon_codes_promotion_rules: models.CouponCodesPromotionRuleSort,\n\tcoupon_recipients: models.CouponRecipientSort,\n\tcoupons: models.CouponSort,\n\tcustom_promotion_rules: models.CustomPromotionRuleSort,\n\tcustomer_addresses: models.CustomerAddressSort,\n\tcustomer_groups: models.CustomerGroupSort,\n\tcustomer_password_resets: models.CustomerPasswordResetSort,\n\tcustomer_payment_sources: models.CustomerPaymentSourceSort,\n\tcustomer_subscriptions: models.CustomerSubscriptionSort,\n\tcustomers: models.CustomerSort,\n\tdelivery_lead_times: models.DeliveryLeadTimeSort,\n\tdiscount_engine_items: models.DiscountEngineItemSort,\n\tdiscount_engines: models.DiscountEngineSort,\n\teasypost_pickups: models.EasypostPickupSort,\n\tevent_callbacks: models.EventCallbackSort,\n\tevents: models.EventSort,\n\texports: models.ExportSort,\n\texternal_gateways: models.ExternalGatewaySort,\n\texternal_payments: models.ExternalPaymentSort,\n\texternal_promotions: models.ExternalPromotionSort,\n\texternal_tax_calculators: models.ExternalTaxCalculatorSort,\n\tfixed_amount_promotions: models.FixedAmountPromotionSort,\n\tfixed_price_promotions: models.FixedPricePromotionSort,\n\tflex_promotions: models.FlexPromotionSort,\n\tfree_gift_promotions: models.FreeGiftPromotionSort,\n\tfree_shipping_promotions: models.FreeShippingPromotionSort,\n\tgeocoders: models.GeocoderSort,\n\tgift_card_recipients: models.GiftCardRecipientSort,\n\tgift_cards: models.GiftCardSort,\n\tgoogle_geocoders: models.GoogleGeocoderSort,\n\timports: models.ImportSort,\n\tin_stock_subscriptions: models.InStockSubscriptionSort,\n\tinventory_models: models.InventoryModelSort,\n\tinventory_return_locations: models.InventoryReturnLocationSort,\n\tinventory_stock_locations: models.InventoryStockLocationSort,\n\tklarna_gateways: models.KlarnaGatewaySort,\n\tklarna_payments: models.KlarnaPaymentSort,\n\tline_item_options: models.LineItemOptionSort,\n\tline_items: models.LineItemSort,\n\tlinks: models.LinkSort,\n\tmanual_gateways: models.ManualGatewaySort,\n\tmanual_tax_calculators: models.ManualTaxCalculatorSort,\n\tmarkets: models.MarketSort,\n\tmerchants: models.MerchantSort,\n\tnotifications: models.NotificationSort,\n\torder_amount_promotion_rules: models.OrderAmountPromotionRuleSort,\n\torder_copies: models.OrderCopySort,\n\torder_factories: models.OrderFactorySort,\n\torder_subscription_items: models.OrderSubscriptionItemSort,\n\torder_subscriptions: models.OrderSubscriptionSort,\n\torders: models.OrderSort,\n\torganizations: models.OrganizationSort,\n\tpackages: models.PackageSort,\n\tparcel_line_items: models.ParcelLineItemSort,\n\tparcels: models.ParcelSort,\n\tpayment_gateways: models.PaymentGatewaySort,\n\tpayment_methods: models.PaymentMethodSort,\n\tpayment_options: models.PaymentOptionSort,\n\tpaypal_gateways: models.PaypalGatewaySort,\n\tpaypal_payments: models.PaypalPaymentSort,\n\tpercentage_discount_promotions: models.PercentageDiscountPromotionSort,\n\tpickups: models.PickupSort,\n\tprice_frequency_tiers: models.PriceFrequencyTierSort,\n\tprice_list_schedulers: models.PriceListSchedulerSort,\n\tprice_lists: models.PriceListSort,\n\tprice_tiers: models.PriceTierSort,\n\tprice_volume_tiers: models.PriceVolumeTierSort,\n\tprices: models.PriceSort,\n\tpromotion_rules: models.PromotionRuleSort,\n\tpromotions: models.PromotionSort,\n\trecurring_order_copies: models.RecurringOrderCopySort,\n\trefunds: models.RefundSort,\n\treserved_stocks: models.ReservedStockSort,\n\tresource_errors: models.ResourceErrorSort,\n\treturn_line_items: models.ReturnLineItemSort,\n\treturns: models.ReturnSort,\n\tsatispay_gateways: models.SatispayGatewaySort,\n\tsatispay_payments: models.SatispayPaymentSort,\n\tshipments: models.ShipmentSort,\n\tshipping_categories: models.ShippingCategorySort,\n\tshipping_method_tiers: models.ShippingMethodTierSort,\n\tshipping_methods: models.ShippingMethodSort,\n\tshipping_weight_tiers: models.ShippingWeightTierSort,\n\tshipping_zones: models.ShippingZoneSort,\n\tsku_list_items: models.SkuListItemSort,\n\tsku_list_promotion_rules: models.SkuListPromotionRuleSort,\n\tsku_lists: models.SkuListSort,\n\tsku_options: models.SkuOptionSort,\n\tskus: models.SkuSort,\n\tstock_items: models.StockItemSort,\n\tstock_line_items: models.StockLineItemSort,\n\tstock_locations: models.StockLocationSort,\n\tstock_reservations: models.StockReservationSort,\n\tstock_transfers: models.StockTransferSort,\n\tstores: models.StoreSort,\n\tstripe_gateways: models.StripeGatewaySort,\n\tstripe_payments: models.StripePaymentSort,\n\tstripe_tax_accounts: models.StripeTaxAccountSort,\n\tsubscription_models: models.SubscriptionModelSort,\n\ttags: models.TagSort,\n\ttalon_one_accounts: models.TalonOneAccountSort,\n\ttax_calculators: models.TaxCalculatorSort,\n\ttax_categories: models.TaxCategorySort,\n\ttax_rules: models.TaxRuleSort,\n\ttaxjar_accounts: models.TaxjarAccountSort,\n\ttransactions: models.TransactionSort,\n\tversions: models.VersionSort,\n\tvertex_accounts: models.VertexAccountSort,\n\tvoids: models.VoidSort,\n\twebhooks: models.WebhookSort,\n\twire_transfers: models.WireTransferSort\n\t// ##__API_RESOURCE_SORTABLE_FIELDS_STOP__##\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/stock_transfers.ts"],"names":["ApiResource"],"mappings":";;;;;AA6KA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuBA,6BAA2B,CAAA;AAAA,EAEvD,OAAgB,IAA0B,GAAA,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAA+B,EAAA,MAAA,EAA6C,OAAmD,EAAA;AAC3I,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA2C,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,eAAe,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC7H,EAEA,MAAM,MAAA,CAAO,QAA+B,EAAA,MAAA,EAA6C,OAAmD,EAAA;AAC3I,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA2C,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,eAAe,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC7H,EAEA,MAAM,MAAO,CAAA,EAAA,EAAyB,OAA0C,EAAA;AAC/E,IAAA,MAAM,IAAK,CAAA,SAAA,CAAU,MAAQ,CAAA,OAAO,EAAO,KAAA,QAAA,GAAW,EAAE,EAAA,EAAI,IAAM,EAAA,eAAA,CAAe,IAAK,EAAA,GAAI,IAAI,OAAO,CAAA;AAAA;AACtG,EAEA,MAAM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":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Sku, SkuType } from './skus'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { LineItem, LineItemType } from './line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype StockTransferType = 'stock_transfers'\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype LineItemRel = ResourceRel & { type: LineItemType }\n\n\nexport type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceSort\n// export type StockTransferFilter = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceFilter\n\n\ninterface StockTransfer extends Resource {\n\t\n\treadonly type: StockTransferType\n\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock transfer status. One of 'draft' (default), 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled'\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * Time at which the stock transfer was put on hold.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ton_hold_at?: string | null\n\t/** \n\t * Time at which the stock transfer was picking.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpicking_at?: string | null\n\t/** \n\t * Time at which the stock transfer was in transit.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tin_transit_at?: string | null\n\t/** \n\t * Time at which the stock transfer was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the stock transfer was cancelled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcancelled_at?: string | null\n\n\tsku?: Sku | null\n\torigin_stock_location?: StockLocation | null\n\tdestination_stock_location?: StockLocation | null\n\tshipment?: Shipment | null\n\tline_item?: LineItem | null\n\tstock_reservation?: StockReservation | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface StockTransferCreate extends ResourceCreate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\n\tsku: SkuRel\n\torigin_stock_location: StockLocationRel\n\tdestination_stock_location: StockLocationRel\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\ninterface StockTransferUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as upcoming.\n\t * @example ```true```\n\t */\n\t_upcoming?: boolean | null\n\t/** \n\t * Send this attribute if you want to put this stock transfer on hold.\n\t * @example ```true```\n\t */\n\t_on_hold?: boolean | null\n\t/** \n\t * Send this attribute if you want to start picking this stock transfer.\n\t * @example ```true```\n\t */\n\t_picking?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as in transit.\n\t * @example ```true```\n\t */\n\t_in_transit?: boolean | null\n\t/** \n\t * Send this attribute if you want to complete this stock transfer.\n\t * @example ```true```\n\t */\n\t_complete?: boolean | null\n\t/** \n\t * Send this attribute if you want to cancel this stock transfer.\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\n\tsku?: SkuRel | null\n\torigin_stock_location?: StockLocationRel | null\n\tdestination_stock_location?: StockLocationRel | null\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\nclass StockTransfers extends ApiResource<StockTransfer> {\n\n\tstatic readonly TYPE: StockTransferType = 'stock_transfers' as const\n\n\tasync create(resource: StockTransferCreate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.create<StockTransferCreate, StockTransfer>({ ...resource, type: StockTransfers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockTransferUpdate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ ...resource, type: StockTransfers.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: StockTransfers.TYPE } : id, options)\n\t}\n\n\tasync sku(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_transfers/${_stockTransferId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync origin_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/origin_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync destination_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/destination_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `stock_transfers/${_stockTransferId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_transfers/${_stockTransferId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync stock_reservation(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `stock_transfers/${_stockTransferId}/stock_reservation`, params, options) as unknown as StockReservation\n\t}\n\n\tasync attachments(stockTransferId: string | StockTransfer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `stock_transfers/${_stockTransferId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(stockTransferId: string | StockTransfer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `stock_transfers/${_stockTransferId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(stockTransferId: string | StockTransfer, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stock_transfers/${_stockTransferId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _upcoming: true }, params, options)\n\t}\n\n\tasync _on_hold(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _on_hold: true }, params, options)\n\t}\n\n\tasync _picking(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _picking: true }, params, options)\n\t}\n\n\tasync _in_transit(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _in_transit: true }, params, options)\n\t}\n\n\tasync _complete(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _complete: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisStockTransfer(resource: any): resource is StockTransfer {\n\t\treturn resource.type && (resource.type === StockTransfers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockTransferRel {\n\t\treturn super.relationshipOneToOne<StockTransferRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockTransferRel[] {\n\t\treturn super.relationshipOneToMany<StockTransferRel>(...ids)\n\t}\n\n\n\ttype(): StockTransferType {\n\t\treturn StockTransfers.TYPE\n\t}\n\n}\n\n\nconst instance = new StockTransfers()\nexport default instance\n\nexport type { StockTransfers, StockTransfer, StockTransferCreate, StockTransferUpdate, StockTransferType }\n"]}
1
+ {"version":3,"sources":["../src/resources/stock_transfers.ts"],"names":["ApiResource"],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EAAG,QAAQ,OAAO,CAAA;AAAA;AAC1K,EAEA,MAAM,OAAA,CAAQ,EAAA,EAA4B,MAAA,EAA6C,OAAA,EAAmD;AACzI,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AACxK,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA;AAC3D,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA;AACvD,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA;AAC5D,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA;AAGxB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-GE6OHQR6.cjs","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Sku, SkuType } from './skus'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { LineItem, LineItemType } from './line_items'\nimport type { StockReservation } from './stock_reservations'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype StockTransferType = 'stock_transfers'\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype LineItemRel = ResourceRel & { type: LineItemType }\n\n\nexport type StockTransferSort = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceSort\n// export type StockTransferFilter = Pick<StockTransfer, 'id' | 'number' | 'status' | 'quantity' | 'on_hold_at' | 'picking_at' | 'in_transit_at' | 'completed_at' | 'cancelled_at'> & ResourceFilter\n\n\ninterface StockTransfer extends Resource {\n\t\n\treadonly type: StockTransferType\n\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock transfer status. One of 'draft' (default), 'upcoming', 'on_hold', 'picking', 'in_transit', 'completed', or 'cancelled'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'upcoming' | 'on_hold' | 'picking' | 'in_transit' | 'completed' | 'cancelled'\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\t/** \n\t * Time at which the stock transfer was put on hold.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ton_hold_at?: string | null\n\t/** \n\t * Time at which the stock transfer was picking.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpicking_at?: string | null\n\t/** \n\t * Time at which the stock transfer was in transit.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tin_transit_at?: string | null\n\t/** \n\t * Time at which the stock transfer was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the stock transfer was cancelled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcancelled_at?: string | null\n\n\tsku?: Sku | null\n\torigin_stock_location?: StockLocation | null\n\tdestination_stock_location?: StockLocation | null\n\tshipment?: Shipment | null\n\tline_item?: LineItem | null\n\tstock_reservation?: StockReservation | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface StockTransferCreate extends ResourceCreate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity: number\n\n\tsku: SkuRel\n\torigin_stock_location: StockLocationRel\n\tdestination_stock_location: StockLocationRel\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\ninterface StockTransferUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Unique identifier for the stock transfer (numeric).\n\t * @example ```\"1234\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The stock quantity to be transferred from the origin stock location to destination one. Updatable unless stock transfer is completed or cancelled and depending on origin stock availability.\n\t * @example ```2```\n\t */\n\tquantity?: number | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as upcoming.\n\t * @example ```true```\n\t */\n\t_upcoming?: boolean | null\n\t/** \n\t * Send this attribute if you want to put this stock transfer on hold.\n\t * @example ```true```\n\t */\n\t_on_hold?: boolean | null\n\t/** \n\t * Send this attribute if you want to start picking this stock transfer.\n\t * @example ```true```\n\t */\n\t_picking?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this stock transfer as in transit.\n\t * @example ```true```\n\t */\n\t_in_transit?: boolean | null\n\t/** \n\t * Send this attribute if you want to complete this stock transfer.\n\t * @example ```true```\n\t */\n\t_complete?: boolean | null\n\t/** \n\t * Send this attribute if you want to cancel this stock transfer.\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\n\tsku?: SkuRel | null\n\torigin_stock_location?: StockLocationRel | null\n\tdestination_stock_location?: StockLocationRel | null\n\tshipment?: ShipmentRel | null\n\tline_item?: LineItemRel | null\n\n}\n\n\nclass StockTransfers extends ApiResource<StockTransfer> {\n\n\tstatic readonly TYPE: StockTransferType = 'stock_transfers' as const\n\n\tasync create(resource: StockTransferCreate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.create<StockTransferCreate, StockTransfer>({ ...resource, type: StockTransfers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StockTransferUpdate, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ ...resource, type: StockTransfers.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: StockTransfers.TYPE } : id, options)\n\t}\n\n\tasync sku(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Sku>, options?: ResourcesConfig): Promise<Sku> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `stock_transfers/${_stockTransferId}/sku`, params, options) as unknown as Sku\n\t}\n\n\tasync origin_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/origin_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync destination_stock_location(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `stock_transfers/${_stockTransferId}/destination_stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync shipment(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `stock_transfers/${_stockTransferId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync line_item(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `stock_transfers/${_stockTransferId}/line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync stock_reservation(stockTransferId: string | StockTransfer, params?: QueryParamsRetrieve<StockReservation>, options?: ResourcesConfig): Promise<StockReservation> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<StockReservation>({ type: 'stock_reservations' }, `stock_transfers/${_stockTransferId}/stock_reservation`, params, options) as unknown as StockReservation\n\t}\n\n\tasync attachments(stockTransferId: string | StockTransfer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `stock_transfers/${_stockTransferId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(stockTransferId: string | StockTransfer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `stock_transfers/${_stockTransferId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(stockTransferId: string | StockTransfer, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _stockTransferId = (stockTransferId as StockTransfer).id || stockTransferId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `stock_transfers/${_stockTransferId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _upcoming(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _upcoming: true }, params, options)\n\t}\n\n\tasync _on_hold(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _on_hold: true }, params, options)\n\t}\n\n\tasync _picking(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _picking: true }, params, options)\n\t}\n\n\tasync _in_transit(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _in_transit: true }, params, options)\n\t}\n\n\tasync _complete(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _complete: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | StockTransfer, params?: QueryParamsRetrieve<StockTransfer>, options?: ResourcesConfig): Promise<StockTransfer> {\n\t\treturn this.resources.update<StockTransferUpdate, StockTransfer>({ id: (typeof id === 'string')? id: id.id, type: StockTransfers.TYPE, _cancel: true }, params, options)\n\t}\n\n\n\tisStockTransfer(resource: any): resource is StockTransfer {\n\t\treturn resource.type && (resource.type === StockTransfers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StockTransferRel {\n\t\treturn super.relationshipOneToOne<StockTransferRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StockTransferRel[] {\n\t\treturn super.relationshipOneToMany<StockTransferRel>(...ids)\n\t}\n\n\n\ttype(): StockTransferType {\n\t\treturn StockTransfers.TYPE\n\t}\n\n}\n\n\nconst instance = new StockTransfers()\nexport default instance\n\nexport type { StockTransfers, StockTransfer, StockTransferCreate, StockTransferUpdate, StockTransferType }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/taxjar_accounts.ts"],"names":[],"mappings":";;;AA2EA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAA2B,CAAA;AAAA,EAEvD,OAAgB,IAA0B,GAAA,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAA+B,EAAA,MAAA,EAA6C,OAAmD,EAAA;AAC3I,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAA2C,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,eAAe,CAAA,IAAA,EAAQ,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC7H,EAEA,MAAM,MAAA,CAAO,QAA+B,EAAA,MAAA,EAA6C,OAAmD,EAAA;AAC3I,IA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cesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market } from './markets'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { TaxCategory, TaxCategoryType } from './tax_categories'\n\n\ntype TaxjarAccountType = 'taxjar_accounts'\ntype TaxjarAccountRel = ResourceRel & { type: TaxjarAccountType }\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\n\n\nexport type TaxjarAccountSort = Pick<TaxjarAccount, 'id' | 'name'> & ResourceSort\n// export type TaxjarAccountFilter = Pick<TaxjarAccount, 'id' | 'name'> & ResourceFilter\n\n\ninterface TaxjarAccount extends Resource {\n\t\n\treadonly type: TaxjarAccountType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\ttax_categories?: TaxCategory[] | null\n\n}\n\n\ninterface TaxjarAccountCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The TaxJar account API key.\n\t * @example ```\"TAXJAR_API_KEY\"```\n\t */\n\tapi_key: string\n\n\ttax_categories?: TaxCategoryRel[] | null\n\n}\n\n\ninterface TaxjarAccountUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The TaxJar account API key.\n\t * @example ```\"TAXJAR_API_KEY\"```\n\t */\n\tapi_key?: string | null\n\n\ttax_categories?: TaxCategoryRel[] | null\n\n}\n\n\nclass TaxjarAccounts extends ApiResource<TaxjarAccount> {\n\n\tstatic readonly TYPE: TaxjarAccountType = 'taxjar_accounts' as const\n\n\tasync create(resource: TaxjarAccountCreate, params?: QueryParamsRetrieve<TaxjarAccount>, options?: ResourcesConfig): Promise<TaxjarAccount> {\n\t\treturn this.resources.create<TaxjarAccountCreate, TaxjarAccount>({ ...resource, type: TaxjarAccounts.TYPE }, params, options)\n\t}\n\n\tasync update(resource: TaxjarAccountUpdate, params?: QueryParamsRetrieve<TaxjarAccount>, options?: ResourcesConfig): Promise<TaxjarAccount> {\n\t\treturn this.resources.update<TaxjarAccountUpdate, TaxjarAccount>({ ...resource, type: TaxjarAccounts.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: TaxjarAccounts.TYPE } : id, options)\n\t}\n\n\tasync markets(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `taxjar_accounts/${_taxjarAccountId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `taxjar_accounts/${_taxjarAccountId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `taxjar_accounts/${_taxjarAccountId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `taxjar_accounts/${_taxjarAccountId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync tax_categories(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<TaxCategory>, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<TaxCategory>({ type: 'tax_categories' }, `taxjar_accounts/${_taxjarAccountId}/tax_categories`, params, options) as unknown as ListResponse<TaxCategory>\n\t}\n\n\n\tisTaxjarAccount(resource: any): resource is TaxjarAccount {\n\t\treturn resource.type && (resource.type === TaxjarAccounts.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TaxjarAccountRel {\n\t\treturn super.relationshipOneToOne<TaxjarAccountRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TaxjarAccountRel[] {\n\t\treturn super.relationshipOneToMany<TaxjarAccountRel>(...ids)\n\t}\n\n\n\ttype(): TaxjarAccountType {\n\t\treturn TaxjarAccounts.TYPE\n\t}\n\n}\n\n\nconst instance = new TaxjarAccounts()\nexport default instance\n\nexport type { TaxjarAccounts, TaxjarAccount, TaxjarAccountCreate, TaxjarAccountUpdate, TaxjarAccountType }\n"]}
1
+ {"version":3,"sources":["../src/resources/taxjar_accounts.ts"],"names":[],"mappings":";;;AA2EA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAA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,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-GHLCA7BX.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Market } from './markets'\nimport type { Attachment } from './attachments'\nimport type { Event } from './events'\nimport type { Version } from './versions'\nimport type { TaxCategory, TaxCategoryType } from './tax_categories'\n\n\ntype TaxjarAccountType = 'taxjar_accounts'\ntype TaxjarAccountRel = ResourceRel & { type: TaxjarAccountType }\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\n\n\nexport type TaxjarAccountSort = Pick<TaxjarAccount, 'id' | 'name'> & ResourceSort\n// export type TaxjarAccountFilter = Pick<TaxjarAccount, 'id' | 'name'> & ResourceFilter\n\n\ninterface TaxjarAccount extends Resource {\n\t\n\treadonly type: TaxjarAccountType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\ttax_categories?: TaxCategory[] | null\n\n}\n\n\ninterface TaxjarAccountCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The TaxJar account API key.\n\t * @example ```\"TAXJAR_API_KEY\"```\n\t */\n\tapi_key: string\n\n\ttax_categories?: TaxCategoryRel[] | null\n\n}\n\n\ninterface TaxjarAccountUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The TaxJar account API key.\n\t * @example ```\"TAXJAR_API_KEY\"```\n\t */\n\tapi_key?: string | null\n\n\ttax_categories?: TaxCategoryRel[] | null\n\n}\n\n\nclass TaxjarAccounts extends ApiResource<TaxjarAccount> {\n\n\tstatic readonly TYPE: TaxjarAccountType = 'taxjar_accounts' as const\n\n\tasync create(resource: TaxjarAccountCreate, params?: QueryParamsRetrieve<TaxjarAccount>, options?: ResourcesConfig): Promise<TaxjarAccount> {\n\t\treturn this.resources.create<TaxjarAccountCreate, TaxjarAccount>({ ...resource, type: TaxjarAccounts.TYPE }, params, options)\n\t}\n\n\tasync update(resource: TaxjarAccountUpdate, params?: QueryParamsRetrieve<TaxjarAccount>, options?: ResourcesConfig): Promise<TaxjarAccount> {\n\t\treturn this.resources.update<TaxjarAccountUpdate, TaxjarAccount>({ ...resource, type: TaxjarAccounts.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: TaxjarAccounts.TYPE } : id, options)\n\t}\n\n\tasync markets(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `taxjar_accounts/${_taxjarAccountId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `taxjar_accounts/${_taxjarAccountId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `taxjar_accounts/${_taxjarAccountId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `taxjar_accounts/${_taxjarAccountId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync tax_categories(taxjarAccountId: string | TaxjarAccount, params?: QueryParamsList<TaxCategory>, options?: ResourcesConfig): Promise<ListResponse<TaxCategory>> {\n\t\tconst _taxjarAccountId = (taxjarAccountId as TaxjarAccount).id || taxjarAccountId as string\n\t\treturn this.resources.fetch<TaxCategory>({ type: 'tax_categories' }, `taxjar_accounts/${_taxjarAccountId}/tax_categories`, params, options) as unknown as ListResponse<TaxCategory>\n\t}\n\n\n\tisTaxjarAccount(resource: any): resource is TaxjarAccount {\n\t\treturn resource.type && (resource.type === TaxjarAccounts.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TaxjarAccountRel {\n\t\treturn super.relationshipOneToOne<TaxjarAccountRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TaxjarAccountRel[] {\n\t\treturn super.relationshipOneToMany<TaxjarAccountRel>(...ids)\n\t}\n\n\n\ttype(): TaxjarAccountType {\n\t\treturn TaxjarAccounts.TYPE\n\t}\n\n}\n\n\nconst instance = new TaxjarAccounts()\nexport default instance\n\nexport type { TaxjarAccounts, TaxjarAccount, TaxjarAccountCreate, TaxjarAccountUpdate, TaxjarAccountType }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/exports.ts"],"names":["ApiResource"],"mappings":";;;;;AAyIA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAoB,CAAA;AAAA,EAEzC,OAAgB,IAAmB,GAAA,SAAA;A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A,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC5G,EAEA,MAAM,UAAA,CAAW,EAAqB,EAAA,MAAA,EAAsC,OAA4C,EAAA;AACvH,IAAA,OAAO,KAAK,SAAU,CAAA,MAAA,CAA6B,EAAE,EAAK,EAAA,OAAO,OAAO,QAAW,GAAA,EAAA,GAAI,EAAG,CAAA,EAAA,EAAI,MAAM,QAAQ,CAAA,IAAA,EAAM,YAAY,IAAK,EAAA,EAAG,QAAQ,OAAO,CAAA;AAAA;AACtJ,EAGA,SAAS,QAAmC,EAAA;AAC3C,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,QAAQ,CAAA,IAAA;AAAA;AACpD,EAGA,aAAa,EAA2C,EAAA;AACvD,IAAO,OAAA,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA;AAChD,EAEA,sBAAsB,GAA4B,EAAA;AACjD,IAAO,OAAA,KAAA,CAAM,qBAAiC,CAAA,GAAG,GAAG,CAAA;AAAA;AACrD,EAGA,IAAmB,GAAA;AAClB,IAAA,OAAO,QAAQ,CAAA,IAAA;AAAA;AAGjB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAQ,EAAA;AAC7B,IAAO,eAAQ,GAAA","file":"chunk-GLSPCG3M.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 { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.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: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(exportId: string | Export, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `exports/${_exportId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Exports, Export, ExportCreate, ExportUpdate, ExportType }\n"]}
1
+ {"version":3,"sources":["../src/resources/exports.ts"],"names":["ApiResource"],"mappings":";;;;;AAyIA,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,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,OAAA,EAA4C;AACvH,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,QAAA,CAAQ,IAAA,EAAM,YAAY,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA;AACtJ,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA;AACpD,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA;AAChD,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA;AACrD,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA;AAGjB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-GLSPCG3M.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 { Event } from './events'\nimport type { Version } from './versions'\n\n\ntype ExportType = 'exports'\ntype ExportRel = ResourceRel & { type: ExportType }\n\n\nexport type ExportSort = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url'> & ResourceSort\n// export type ExportFilter = Pick<Export, 'id' | 'resource_type' | 'format' | 'status' | 'started_at' | 'completed_at' | 'interrupted_at' | 'records_count' | 'attachment_url' | 'errors_log'> & ResourceFilter\n\n\ninterface Export extends Resource {\n\t\n\treadonly type: ExportType\n\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * The export job status. One of 'pending' (default), 'in_progress', 'interrupted', or 'completed'.\n\t * @example ```\"in_progress\"```\n\t */\n\tstatus: 'pending' | 'in_progress' | 'interrupted' | 'completed'\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t/** \n\t * Time at which the export was started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarted_at?: string | null\n\t/** \n\t * Time at which the export was completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tcompleted_at?: string | null\n\t/** \n\t * Time at which the export was interrupted.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tinterrupted_at?: string | null\n\t/** \n\t * Indicates the number of records to be exported.\n\t * @example ```300```\n\t */\n\trecords_count?: number | null\n\t/** \n\t * The URL to the output file, which will be generated upon export completion.\n\t * @example ```\"http://cl_exports.s3.amazonaws.com/\"```\n\t */\n\tattachment_url?: string | null\n\t/** \n\t * Contains the exports errors, if any.\n\t * @example ```{\"RuntimeError\":\"query timeout\"}```\n\t */\n\terrors_log?: Record<string, any> | null\n\n\tevents?: Event[] | null\n\tversions?: Version[] | null\n\n}\n\n\ninterface ExportCreate extends ResourceCreate {\n\t\n\t/** \n\t * The type of resource being exported.\n\t * @example ```\"skus\"```\n\t */\n\tresource_type: string\n\t/** \n\t * The format of the export one of 'json' (default) or 'csv'.\n\t * @example ```\"json\"```\n\t */\n\tformat?: string | null\n\t/** \n\t * List of related resources that should be included in the export (redundant when 'fields' are specified).\n\t * @example ```[\"prices.price_tiers\"]```\n\t */\n\tincludes?: string[] | null\n\t/** \n\t * List of fields to export for the main and related resources (automatically included). Pass the asterisk '*' to include all exportable fields for the main and related resources.\n\t * @example ```[\"code\",\"name\",\"prices.*\",\"prices.price_tiers.price_amount_cents\"]```\n\t */\n\tfields?: string[] | null\n\t/** \n\t * The filters used to select the records to be exported.\n\t * @example ```{\"code_eq\":\"AAA\"}```\n\t */\n\tfilters?: Record<string, any> | null\n\t/** \n\t * Send this attribute if you want to skip exporting redundant attributes (IDs, timestamps, blanks, etc.), useful when combining export and import to duplicate your dataset.\n\t */\n\tdry_data?: boolean | null\n\t\n}\n\n\ninterface ExportUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Send this attribute if you want to mark status as 'interrupted'.\n\t * @example ```true```\n\t */\n\t_interrupt?: boolean | null\n\t\n}\n\n\nclass Exports extends ApiResource<Export> {\n\n\tstatic readonly TYPE: ExportType = 'exports' as const\n\n\tasync create(resource: ExportCreate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.create<ExportCreate, Export>({ ...resource, type: Exports.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExportUpdate, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ ...resource, type: Exports.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: Exports.TYPE } : id, options)\n\t}\n\n\tasync events(exportId: string | Export, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `exports/${_exportId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync versions(exportId: string | Export, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _exportId = (exportId as Export).id || exportId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `exports/${_exportId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync _interrupt(id: string | Export, params?: QueryParamsRetrieve<Export>, options?: ResourcesConfig): Promise<Export> {\n\t\treturn this.resources.update<ExportUpdate, Export>({ id: (typeof id === 'string')? id: id.id, type: Exports.TYPE, _interrupt: true }, params, options)\n\t}\n\n\n\tisExport(resource: any): resource is Export {\n\t\treturn resource.type && (resource.type === Exports.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExportRel {\n\t\treturn super.relationshipOneToOne<ExportRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExportRel[] {\n\t\treturn super.relationshipOneToMany<ExportRel>(...ids)\n\t}\n\n\n\ttype(): ExportType {\n\t\treturn Exports.TYPE\n\t}\n\n}\n\n\nconst instance = new Exports()\nexport default instance\n\nexport type { Exports, Export, ExportCreate, ExportUpdate, ExportType }\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/resources/price_frequency_tiers.ts"],"names":[],"mappings":";;;AAuGA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,WAAgC,CAAA;AAAA,EAEjE,OAAgB,IAA+B,GAAA,uBAAA;AAAA,EAE/C,MAAM,MAAA,CAAO,QAAoC,EAAA,MAAA,EAAkD,OAAwD,EAAA;AAC1J,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,MAAA,CAAqD,EAAE,GAAG,QAAU,EAAA,IAAA,EAAM,oBAAoB,CAAA,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,qBAA4C,EAAM,IAAA,oBAAA;AACjF,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,UAAW,EAAA,EAAG,CAAyB,sBAAA,EAAA,qBAAqB,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACtI,EAEA,MAAM,MAAA,CAAO,oBAAmD,EAAA,MAAA,EAAiC,OAAyD,EAAA;AACzJ,IAAM,MAAA,qBAAA,GAAyB,qBAA4C,EAAM,IAAA,oBAAA;AACjF,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAa,EAAE,IAAA,EAAM,QAAS,EAAA,EAAG,CAAyB,sBAAA,EAAA,qBAAqB,CAAW,OAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAChI,EAGA,qBAAqB,QAA+C,EAAA;AACnE,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,oBAAoB,CAAA,IAAA;AAAA;AAChE,EAGA,aAAa,EAAuD,EAAA;AACnE,IAAO,OAAA,KAAA,CAAM,qBAA4C,EAAE,CAAA;AAAA;AAC5D,EAEA,sBAAsB,GAAwC,EAAA;AAC7D,IAAO,OAAA,KAAA,CAAM,qBAA6C,CAAA,GAAG,GAAG,CAAA;AAAA;AACjE,EAGA,IAA+B,GAAA;AAC9B,IAAA,OAAO,oBAAoB,CAAA,IAAA;AAAA;AAG7B,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,mBAAoB,EAAA;AACzC,IAAO,6BAAQ,GAAA","file":"chunk-H2USYPU6.js","sourcesContent":["import { ApiResource } from '../resource'\nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Price, PriceType } from './prices'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\nimport type { Event } from './events'\n\n\ntype PriceFrequencyTierType = 'price_frequency_tiers'\ntype PriceFrequencyTierRel = ResourceRel & { type: PriceFrequencyTierType }\ntype PriceRel = ResourceRel & { type: PriceType }\n\n\nexport type PriceFrequencyTierSort = Pick<PriceFrequencyTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type PriceFrequencyTierFilter = Pick<PriceFrequencyTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\n\ninterface PriceFrequencyTier extends Resource {\n\t\n\treadonly type: PriceFrequencyTierType\n\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this price tier, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this price tier, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\n\tprice?: Price | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\tevents?: Event[] | null\n\n}\n\n\ninterface PriceFrequencyTierCreate extends ResourceCreate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\n\tprice: PriceRel\n\n}\n\n\ninterface PriceFrequencyTierUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\n\tprice?: PriceRel | null\n\n}\n\n\nclass PriceFrequencyTiers extends ApiResource<PriceFrequencyTier> {\n\n\tstatic readonly TYPE: PriceFrequencyTierType = 'price_frequency_tiers' as const\n\n\tasync create(resource: PriceFrequencyTierCreate, params?: QueryParamsRetrieve<PriceFrequencyTier>, options?: ResourcesConfig): Promise<PriceFrequencyTier> {\n\t\treturn this.resources.create<PriceFrequencyTierCreate, PriceFrequencyTier>({ ...resource, type: PriceFrequencyTiers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceFrequencyTierUpdate, params?: QueryParamsRetrieve<PriceFrequencyTier>, options?: ResourcesConfig): Promise<PriceFrequencyTier> {\n\t\treturn this.resources.update<PriceFrequencyTierUpdate, PriceFrequencyTier>({ ...resource, type: PriceFrequencyTiers.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: PriceFrequencyTiers.TYPE } : id, options)\n\t}\n\n\tasync price(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsRetrieve<Price>, options?: ResourcesConfig): Promise<Price> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Price>({ type: 'prices' }, `price_frequency_tiers/${_priceFrequencyTierId}/price`, params, options) as unknown as Price\n\t}\n\n\tasync attachments(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `price_frequency_tiers/${_priceFrequencyTierId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `price_frequency_tiers/${_priceFrequencyTierId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync events(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `price_frequency_tiers/${_priceFrequencyTierId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\n\tisPriceFrequencyTier(resource: any): resource is PriceFrequencyTier {\n\t\treturn resource.type && (resource.type === PriceFrequencyTiers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceFrequencyTierRel {\n\t\treturn super.relationshipOneToOne<PriceFrequencyTierRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceFrequencyTierRel[] {\n\t\treturn super.relationshipOneToMany<PriceFrequencyTierRel>(...ids)\n\t}\n\n\n\ttype(): PriceFrequencyTierType {\n\t\treturn PriceFrequencyTiers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceFrequencyTiers()\nexport default instance\n\nexport type { PriceFrequencyTiers, PriceFrequencyTier, PriceFrequencyTierCreate, PriceFrequencyTierUpdate, PriceFrequencyTierType }\n"]}
1
+ {"version":3,"sources":["../src/resources/price_frequency_tiers.ts"],"names":[],"mappings":";;;AAuGA,IAAM,mBAAA,GAAN,MAAM,oBAAA,SAA4B,WAAA,CAAgC;AAAA,EAEjE,OAA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nimport type { Resource, ResourceCreate, ResourceUpdate, ResourceId, ResourcesConfig, ResourceRel, ListResponse, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport type { QueryParamsRetrieve, QueryParamsList } from '../query'\n\nimport type { Price, PriceType } from './prices'\nimport type { Attachment } from './attachments'\nimport type { Version } from './versions'\nimport type { Event } from './events'\n\n\ntype PriceFrequencyTierType = 'price_frequency_tiers'\ntype PriceFrequencyTierRel = ResourceRel & { type: PriceFrequencyTierType }\ntype PriceRel = ResourceRel & { type: PriceType }\n\n\nexport type PriceFrequencyTierSort = Pick<PriceFrequencyTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceSort\n// export type PriceFrequencyTierFilter = Pick<PriceFrequencyTier, 'id' | 'name' | 'up_to' | 'price_amount_cents'> & ResourceFilter\n\n\ninterface PriceFrequencyTier extends Resource {\n\t\n\treadonly type: PriceFrequencyTierType\n\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\t/** \n\t * The price of this price tier, float.\n\t * @example ```10```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The price of this price tier, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\n\tprice?: Price | null\n\tattachments?: Attachment[] | null\n\tversions?: Version[] | null\n\tevents?: Event[] | null\n\n}\n\n\ninterface PriceFrequencyTierCreate extends ResourceCreate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname: string\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents: number\n\n\tprice: PriceRel\n\n}\n\n\ninterface PriceFrequencyTierUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The price tier's name.\n\t * @example ```\"six pack\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The tier upper limit, expressed as the line item frequency in days (or frequency label, ie 'monthly'). When 'null' it means infinity (useful to have an always matching tier).\n\t * @example ```7```\n\t */\n\tup_to?: number | null\n\t/** \n\t * The price of this price tier, in cents.\n\t * @example ```1000```\n\t */\n\tprice_amount_cents?: number | null\n\n\tprice?: PriceRel | null\n\n}\n\n\nclass PriceFrequencyTiers extends ApiResource<PriceFrequencyTier> {\n\n\tstatic readonly TYPE: PriceFrequencyTierType = 'price_frequency_tiers' as const\n\n\tasync create(resource: PriceFrequencyTierCreate, params?: QueryParamsRetrieve<PriceFrequencyTier>, options?: ResourcesConfig): Promise<PriceFrequencyTier> {\n\t\treturn this.resources.create<PriceFrequencyTierCreate, PriceFrequencyTier>({ ...resource, type: PriceFrequencyTiers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PriceFrequencyTierUpdate, params?: QueryParamsRetrieve<PriceFrequencyTier>, options?: ResourcesConfig): Promise<PriceFrequencyTier> {\n\t\treturn this.resources.update<PriceFrequencyTierUpdate, PriceFrequencyTier>({ ...resource, type: PriceFrequencyTiers.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: PriceFrequencyTiers.TYPE } : id, options)\n\t}\n\n\tasync price(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsRetrieve<Price>, options?: ResourcesConfig): Promise<Price> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Price>({ type: 'prices' }, `price_frequency_tiers/${_priceFrequencyTierId}/price`, params, options) as unknown as Price\n\t}\n\n\tasync attachments(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `price_frequency_tiers/${_priceFrequencyTierId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync versions(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `price_frequency_tiers/${_priceFrequencyTierId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync events(priceFrequencyTierId: string | PriceFrequencyTier, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _priceFrequencyTierId = (priceFrequencyTierId as PriceFrequencyTier).id || priceFrequencyTierId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `price_frequency_tiers/${_priceFrequencyTierId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\n\tisPriceFrequencyTier(resource: any): resource is PriceFrequencyTier {\n\t\treturn resource.type && (resource.type === PriceFrequencyTiers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PriceFrequencyTierRel {\n\t\treturn super.relationshipOneToOne<PriceFrequencyTierRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PriceFrequencyTierRel[] {\n\t\treturn super.relationshipOneToMany<PriceFrequencyTierRel>(...ids)\n\t}\n\n\n\ttype(): PriceFrequencyTierType {\n\t\treturn PriceFrequencyTiers.TYPE\n\t}\n\n}\n\n\nconst instance = new PriceFrequencyTiers()\nexport default instance\n\nexport type { PriceFrequencyTiers, PriceF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I,EAEA,MAAM,QAAA,CAAS,cAAuC,EAAA,MAAA,EAAmC,OAA2D,EAAA;AACnJ,IAAM,MAAA,eAAA,GAAmB,eAAgC,EAAM,IAAA,cAAA;AAC/D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAe,EAAE,IAAA,EAAM,UAAW,EAAA,EAAG,CAAkB,eAAA,EAAA,eAAe,CAAa,SAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AACzH,EAEA,MAAM,cAAA,CAAe,cAAuC,EAAA,MAAA,EAAwC,OAAgE,EAAA;AACnK,IAAM,MAAA,eAAA,GAAmB,eAAgC,EAAM,IAAA,cAAA;AAC/D,IAAO,OAAA,IAAA,CAAK,SAAU,CAAA,KAAA,CAAoB,EAAE,IAAA,EAAM,gBAAiB,EAAA,EAAG,CAAkB,eAAA,EAAA,eAAe,CAAmB,eAAA,CAAA,EAAA,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1I,EAGA,eAAe,QAAyC,EAAA;AACvD,IAAA,OAAO,QAAS,CAAA,IAAA,IAAS,QAAS,CAAA,IAAA,KAAS,cAAc,CAAA,IAAA;AAAA;AAC1D,EAGA,aAAa,EAAiD,EAAA;AAC7D,IAAO,OAAA,KAAA,CAAM,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-H4PUXGNI.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 { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { AdyenPayment, AdyenPaymentType } from './adyen_payments'\n\n\ntype AdyenGatewayType = 'adyen_gateways'\ntype AdyenGatewayRel = ResourceRel & { type: AdyenGatewayType }\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\n\n\nexport type AdyenGatewaySort = Pick<AdyenGateway, 'id' | 'name'> & ResourceSort\n// export type AdyenGatewayFilter = Pick<AdyenGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface AdyenGateway extends Resource {\n\t\n\treadonly type: AdyenGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/adyen_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tadyen_payments?: AdyenPayment[] | null\n\n}\n\n\ninterface AdyenGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\ninterface AdyenGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix?: string | null\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\nclass AdyenGateways extends ApiResource<AdyenGateway> {\n\n\tstatic readonly TYPE: AdyenGatewayType = 'adyen_gateways' as const\n\n\tasync create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.create<AdyenGatewayCreate, AdyenGateway>({ ...resource, type: AdyenGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ ...resource, type: AdyenGateways.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: AdyenGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `adyen_gateways/${_adyenGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adyen_gateways/${_adyenGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<AdyenPayment>, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<AdyenPayment>({ type: 'adyen_payments' }, `adyen_gateways/${_adyenGatewayId}/adyen_payments`, params, options) as unknown as ListResponse<AdyenPayment>\n\t}\n\n\n\tisAdyenGateway(resource: any): resource is AdyenGateway {\n\t\treturn resource.type && (resource.type === AdyenGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenGatewayRel {\n\t\treturn super.relationshipOneToOne<AdyenGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenGatewayRel[] {\n\t\treturn super.relationshipOneToMany<AdyenGatewayRel>(...ids)\n\t}\n\n\n\ttype(): AdyenGatewayType {\n\t\treturn AdyenGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenGateways()\nexport default instance\n\nexport type { AdyenGateways, AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate, AdyenGatewayType }\n"]}
1
+ {"version":3,"sources":["../src/resources/adyen_gateways.ts"],"names":["ApiResource"],"mappings":";;;;;AAuLA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC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,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA;AACzH,EAEA,MAAM,cAAA,CAAe,cAAA,EAAuC,MAAA,EAAwC,OAAA,EAAgE;AACnK,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAM,cAAA;AAC/D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAoB,EAAE,IAAA,EAAM,gBAAA,EAAiB,EAAG,CAAA,eAAA,EAAkB,eAAe,CAAA,eAAA,CAAA,EAAmB,MAAA,EAAQ,OAAO,CAAA;AAAA;AAC1I,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA;AAC1D,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA;AACtD,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA;AAC3D,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA;AAGvB,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-H4PUXGNI.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 { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\nimport type { AdyenPayment, AdyenPaymentType } from './adyen_payments'\n\n\ntype AdyenGatewayType = 'adyen_gateways'\ntype AdyenGatewayRel = ResourceRel & { type: AdyenGatewayType }\ntype AdyenPaymentRel = ResourceRel & { type: AdyenPaymentType }\n\n\nexport type AdyenGatewaySort = Pick<AdyenGateway, 'id' | 'name'> & ResourceSort\n// export type AdyenGatewayFilter = Pick<AdyenGateway, 'id' | 'name'> & ResourceFilter\n\n\ninterface AdyenGateway extends Resource {\n\t\n\treadonly type: AdyenGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\t/** \n\t * The gateway webhook URL, generated automatically.\n\t * @example ```\"https://core.commercelayer.co/webhook_callbacks/adyen_gateways/xxxxx\"```\n\t */\n\twebhook_endpoint_url?: string | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tadyen_payments?: AdyenPayment[] | null\n\n}\n\n\ninterface AdyenGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account: string\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key: string\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix: string\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\ninterface AdyenGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The gateway merchant account.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tmerchant_account?: string | null\n\t/** \n\t * The gateway API key.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tapi_key?: string | null\n\t/** \n\t * The public key linked to your API credential.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tpublic_key?: string | null\n\t/** \n\t * The prefix of the endpoint used for live transactions.\n\t * @example ```\"1797a841fbb37ca7-AdyenDemo\"```\n\t */\n\tlive_url_prefix?: string | null\n\t/** \n\t * The checkout API version, supported range is from 66 to 71, default is 71.\n\t * @example ```71```\n\t */\n\tapi_version?: number | null\n\t/** \n\t * Indicates if the gateway will leverage on the Adyen notification webhooks, using latest API version.\n\t * @example ```true```\n\t */\n\tasync_api?: boolean | null\n\t/** \n\t * Send this attribute if you want to enable partial payments for the order.\n\t */\n\tpartial_payments?: boolean | null\n\t/** \n\t * Indicates if the gateway will use the native customer payment sources.\n\t * @example ```true```\n\t */\n\tnative_customer_payment_sources?: boolean | null\n\t/** \n\t * The gateway webhook endpoint secret, generated by Adyen customer area.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\twebhook_endpoint_secret?: string | null\n\n\tadyen_payments?: AdyenPaymentRel[] | null\n\n}\n\n\nclass AdyenGateways extends ApiResource<AdyenGateway> {\n\n\tstatic readonly TYPE: AdyenGatewayType = 'adyen_gateways' as const\n\n\tasync create(resource: AdyenGatewayCreate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.create<AdyenGatewayCreate, AdyenGateway>({ ...resource, type: AdyenGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdyenGatewayUpdate, params?: QueryParamsRetrieve<AdyenGateway>, options?: ResourcesConfig): Promise<AdyenGateway> {\n\t\treturn this.resources.update<AdyenGatewayUpdate, AdyenGateway>({ ...resource, type: AdyenGateways.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: AdyenGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `adyen_gateways/${_adyenGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `adyen_gateways/${_adyenGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync adyen_payments(adyenGatewayId: string | AdyenGateway, params?: QueryParamsList<AdyenPayment>, options?: ResourcesConfig): Promise<ListResponse<AdyenPayment>> {\n\t\tconst _adyenGatewayId = (adyenGatewayId as AdyenGateway).id || adyenGatewayId as string\n\t\treturn this.resources.fetch<AdyenPayment>({ type: 'adyen_payments' }, `adyen_gateways/${_adyenGatewayId}/adyen_payments`, params, options) as unknown as ListResponse<AdyenPayment>\n\t}\n\n\n\tisAdyenGateway(resource: any): resource is AdyenGateway {\n\t\treturn resource.type && (resource.type === AdyenGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdyenGatewayRel {\n\t\treturn super.relationshipOneToOne<AdyenGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdyenGatewayRel[] {\n\t\treturn super.relationshipOneToMany<AdyenGatewayRel>(...ids)\n\t}\n\n\n\ttype(): AdyenGatewayType {\n\t\treturn AdyenGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new AdyenGateways()\nexport default instance\n\nexport type { AdyenGateways, AdyenGateway, AdyenGatewayCreate, AdyenGatewayUpdate, AdyenGatewayType }\n"]}