@commercelayer/sdk 8.0.0-beta.8 → 8.0.0-beta.9

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 (1712) hide show
  1. package/README.md +20 -8
  2. package/lib/api-B89jsST3.d.cts +18490 -0
  3. package/lib/api-DVobTSjQ.d.ts +18490 -0
  4. package/lib/api.cjs +271 -271
  5. package/lib/api.d.cts +1 -1
  6. package/lib/api.d.ts +1 -1
  7. package/lib/api.js +137 -137
  8. package/lib/bundle-compat.cjs +140 -140
  9. package/lib/bundle-compat.d.cts +1 -1
  10. package/lib/bundle-compat.d.ts +1 -1
  11. package/lib/bundle-compat.js +139 -139
  12. package/lib/bundle.cjs +141 -141
  13. package/lib/bundle.d.cts +1 -1
  14. package/lib/bundle.d.ts +1 -1
  15. package/lib/bundle.js +139 -139
  16. package/lib/chunk-235HO65F.cjs +75 -0
  17. package/lib/chunk-235HO65F.cjs.map +1 -0
  18. package/lib/chunk-2BRGAZ4X.js +68 -0
  19. package/lib/chunk-2BRGAZ4X.js.map +1 -0
  20. package/lib/chunk-2GRDW45N.cjs +70 -0
  21. package/lib/chunk-2GRDW45N.cjs.map +1 -0
  22. package/lib/chunk-2MI5Z7VJ.js +78 -0
  23. package/lib/chunk-2MI5Z7VJ.js.map +1 -0
  24. package/lib/chunk-2NEP5PSK.js +100 -0
  25. package/lib/chunk-2NEP5PSK.js.map +1 -0
  26. package/lib/chunk-2OYKT3RR.js +77 -0
  27. package/lib/chunk-2OYKT3RR.js.map +1 -0
  28. package/lib/chunk-2PQAQHJI.js +177 -0
  29. package/lib/chunk-2PQAQHJI.js.map +1 -0
  30. package/lib/chunk-2QQF3ZMT.cjs +79 -0
  31. package/lib/chunk-2QQF3ZMT.cjs.map +1 -0
  32. package/lib/chunk-2UKLZ4EG.js +36 -0
  33. package/lib/chunk-2UKLZ4EG.js.map +1 -0
  34. package/lib/chunk-2VUXKS2F.js +73 -0
  35. package/lib/chunk-2VUXKS2F.js.map +1 -0
  36. package/lib/chunk-2VZ3GTLB.js +89 -0
  37. package/lib/chunk-2VZ3GTLB.js.map +1 -0
  38. package/lib/chunk-36PT4X6A.cjs +62 -0
  39. package/lib/chunk-36PT4X6A.cjs.map +1 -0
  40. package/lib/chunk-37NI4FHX.js +68 -0
  41. package/lib/chunk-37NI4FHX.js.map +1 -0
  42. package/lib/chunk-3BHI5VNM.js +68 -0
  43. package/lib/chunk-3BHI5VNM.js.map +1 -0
  44. package/lib/chunk-3VR5QCJN.cjs +79 -0
  45. package/lib/chunk-3VR5QCJN.cjs.map +1 -0
  46. package/lib/chunk-42DVUIC3.cjs +69 -0
  47. package/lib/chunk-42DVUIC3.cjs.map +1 -0
  48. package/lib/chunk-446RVIXA.js +196 -0
  49. package/lib/chunk-446RVIXA.js.map +1 -0
  50. package/lib/chunk-46MXNGIX.cjs +67 -0
  51. package/lib/chunk-46MXNGIX.cjs.map +1 -0
  52. package/lib/chunk-4COAM2UE.cjs +44 -0
  53. package/lib/chunk-4COAM2UE.cjs.map +1 -0
  54. package/lib/chunk-4DTC6Q55.cjs +77 -0
  55. package/lib/chunk-4DTC6Q55.cjs.map +1 -0
  56. package/lib/chunk-4M5WDVHU.cjs +62 -0
  57. package/lib/chunk-4M5WDVHU.cjs.map +1 -0
  58. package/lib/chunk-4NJX5DTP.cjs +193 -0
  59. package/lib/chunk-4NJX5DTP.cjs.map +1 -0
  60. package/lib/chunk-4T2SG77Z.js +89 -0
  61. package/lib/chunk-4T2SG77Z.js.map +1 -0
  62. package/lib/chunk-4U6G25RN.js +91 -0
  63. package/lib/chunk-4U6G25RN.js.map +1 -0
  64. package/lib/chunk-4W2XRXKH.js +84 -0
  65. package/lib/chunk-4W2XRXKH.js.map +1 -0
  66. package/lib/chunk-4X4HMQC7.cjs +70 -0
  67. package/lib/chunk-4X4HMQC7.cjs.map +1 -0
  68. package/lib/chunk-4XCA5IXW.js +180 -0
  69. package/lib/chunk-4XCA5IXW.js.map +1 -0
  70. package/lib/chunk-5247NHKP.js +88 -0
  71. package/lib/chunk-5247NHKP.js.map +1 -0
  72. package/lib/chunk-57TABMO5.cjs +71 -0
  73. package/lib/chunk-57TABMO5.cjs.map +1 -0
  74. package/lib/chunk-5LWXBEM2.js +59 -0
  75. package/lib/chunk-5LWXBEM2.js.map +1 -0
  76. package/lib/chunk-5OBEOAVA.cjs +179 -0
  77. package/lib/chunk-5OBEOAVA.cjs.map +1 -0
  78. package/lib/chunk-5QZBWB7E.cjs +93 -0
  79. package/lib/chunk-5QZBWB7E.cjs.map +1 -0
  80. package/lib/chunk-5SCGD2SM.js +60 -0
  81. package/lib/chunk-5SCGD2SM.js.map +1 -0
  82. package/lib/chunk-5YXCRSRV.cjs +91 -0
  83. package/lib/chunk-5YXCRSRV.cjs.map +1 -0
  84. package/lib/chunk-676BTCSC.cjs +70 -0
  85. package/lib/chunk-676BTCSC.cjs.map +1 -0
  86. package/lib/chunk-67UKEI4Q.js +77 -0
  87. package/lib/chunk-67UKEI4Q.js.map +1 -0
  88. package/lib/chunk-6CI5PFOJ.cjs +84 -0
  89. package/lib/chunk-6CI5PFOJ.cjs.map +1 -0
  90. package/lib/chunk-6KUTNI4L.cjs +70 -0
  91. package/lib/chunk-6KUTNI4L.cjs.map +1 -0
  92. package/lib/chunk-6VEXYG3T.js +123 -0
  93. package/lib/chunk-6VEXYG3T.js.map +1 -0
  94. package/lib/chunk-6VWPITQA.cjs +165 -0
  95. package/lib/chunk-6VWPITQA.cjs.map +1 -0
  96. package/lib/chunk-6WIZIPTT.js +60 -0
  97. package/lib/chunk-6WIZIPTT.js.map +1 -0
  98. package/lib/chunk-6YI7SUXL.js +42 -0
  99. package/lib/chunk-6YI7SUXL.js.map +1 -0
  100. package/lib/chunk-6ZEDHYE7.js +68 -0
  101. package/lib/chunk-6ZEDHYE7.js.map +1 -0
  102. package/lib/chunk-75CGJHAH.js +163 -0
  103. package/lib/chunk-75CGJHAH.js.map +1 -0
  104. package/lib/chunk-767AGYG7.cjs +62 -0
  105. package/lib/chunk-767AGYG7.cjs.map +1 -0
  106. package/lib/chunk-76C7DJD6.cjs +91 -0
  107. package/lib/chunk-76C7DJD6.cjs.map +1 -0
  108. package/lib/chunk-76KIQ66Q.js +68 -0
  109. package/lib/chunk-76KIQ66Q.js.map +1 -0
  110. package/lib/chunk-7BI3E7HL.cjs +79 -0
  111. package/lib/chunk-7BI3E7HL.cjs.map +1 -0
  112. package/lib/chunk-7MAOZTJA.cjs +35 -0
  113. package/lib/chunk-7MAOZTJA.cjs.map +1 -0
  114. package/lib/chunk-7MSAW7UA.js +89 -0
  115. package/lib/chunk-7MSAW7UA.js.map +1 -0
  116. package/lib/chunk-7RGN2RV2.cjs +60 -0
  117. package/lib/chunk-7RGN2RV2.cjs.map +1 -0
  118. package/lib/chunk-7SDKOZQE.cjs +79 -0
  119. package/lib/chunk-7SDKOZQE.cjs.map +1 -0
  120. package/lib/chunk-A4RURV7K.cjs +53 -0
  121. package/lib/chunk-A4RURV7K.cjs.map +1 -0
  122. package/lib/chunk-A6SPZ23B.js +75 -0
  123. package/lib/chunk-A6SPZ23B.js.map +1 -0
  124. package/lib/chunk-AALFYYOS.js +177 -0
  125. package/lib/chunk-AALFYYOS.js.map +1 -0
  126. package/lib/chunk-ABFJHOWD.js +68 -0
  127. package/lib/chunk-ABFJHOWD.js.map +1 -0
  128. package/lib/chunk-AHD4BYFN.cjs +243 -0
  129. package/lib/chunk-AHD4BYFN.cjs.map +1 -0
  130. package/lib/chunk-ARM7D4MZ.cjs +53 -0
  131. package/lib/chunk-ARM7D4MZ.cjs.map +1 -0
  132. package/lib/chunk-ARRZDPYJ.cjs +82 -0
  133. package/lib/chunk-ARRZDPYJ.cjs.map +1 -0
  134. package/lib/chunk-AY6EM77P.js +58 -0
  135. package/lib/chunk-AY6EM77P.js.map +1 -0
  136. package/lib/chunk-B2NRMWAL.js +69 -0
  137. package/lib/chunk-B2NRMWAL.js.map +1 -0
  138. package/lib/chunk-BAROX6BR.js +92 -0
  139. package/lib/chunk-BAROX6BR.js.map +1 -0
  140. package/lib/chunk-BNJ6YNOM.cjs +94 -0
  141. package/lib/chunk-BNJ6YNOM.cjs.map +1 -0
  142. package/lib/chunk-BNJVH4IU.js +51 -0
  143. package/lib/chunk-BNJVH4IU.js.map +1 -0
  144. package/lib/chunk-BR2HYHSI.js +82 -0
  145. package/lib/chunk-BR2HYHSI.js.map +1 -0
  146. package/lib/chunk-BRQPZWVK.js +68 -0
  147. package/lib/chunk-BRQPZWVK.js.map +1 -0
  148. package/lib/chunk-BUKBRSD5.cjs +86 -0
  149. package/lib/chunk-BUKBRSD5.cjs.map +1 -0
  150. package/lib/chunk-C6GJIIFQ.js +42 -0
  151. package/lib/chunk-C6GJIIFQ.js.map +1 -0
  152. package/lib/chunk-CAYOO3JS.cjs +44 -0
  153. package/lib/chunk-CAYOO3JS.cjs.map +1 -0
  154. package/lib/chunk-CEU5RCUI.js +79 -0
  155. package/lib/chunk-CEU5RCUI.js.map +1 -0
  156. package/lib/chunk-CGTNH6IV.js +50 -0
  157. package/lib/chunk-CGTNH6IV.js.map +1 -0
  158. package/lib/chunk-CGVELRN7.cjs +91 -0
  159. package/lib/chunk-CGVELRN7.cjs.map +1 -0
  160. package/lib/chunk-CIBE2CZX.cjs +52 -0
  161. package/lib/chunk-CIBE2CZX.cjs.map +1 -0
  162. package/lib/chunk-CPLBLR4E.js +612 -0
  163. package/lib/chunk-CPLBLR4E.js.map +1 -0
  164. package/lib/chunk-CTNIVLTY.cjs +205 -0
  165. package/lib/chunk-CTNIVLTY.cjs.map +1 -0
  166. package/lib/chunk-CUTRMHSG.js +89 -0
  167. package/lib/chunk-CUTRMHSG.js.map +1 -0
  168. package/lib/chunk-CVABRGXH.cjs +90 -0
  169. package/lib/chunk-CVABRGXH.cjs.map +1 -0
  170. package/lib/chunk-CW2AOHY4.cjs +88 -0
  171. package/lib/chunk-CW2AOHY4.cjs.map +1 -0
  172. package/lib/chunk-D2YPSUY4.cjs +61 -0
  173. package/lib/chunk-D2YPSUY4.cjs.map +1 -0
  174. package/lib/chunk-DDRL7ERF.js +68 -0
  175. package/lib/chunk-DDRL7ERF.js.map +1 -0
  176. package/lib/chunk-DKUQ6K6B.cjs +88 -0
  177. package/lib/chunk-DKUQ6K6B.cjs.map +1 -0
  178. package/lib/chunk-DNTDADTR.js +68 -0
  179. package/lib/chunk-DNTDADTR.js.map +1 -0
  180. package/lib/chunk-DTOF2RPL.js +77 -0
  181. package/lib/chunk-DTOF2RPL.js.map +1 -0
  182. package/lib/chunk-DU6GNBT4.js +50 -0
  183. package/lib/chunk-DU6GNBT4.js.map +1 -0
  184. package/lib/chunk-EBQ2K7TQ.js +33 -0
  185. package/lib/chunk-EBQ2K7TQ.js.map +1 -0
  186. package/lib/chunk-ECBKFTAK.cjs +61 -0
  187. package/lib/chunk-ECBKFTAK.cjs.map +1 -0
  188. package/lib/chunk-ENFK5CSE.js +118 -0
  189. package/lib/chunk-ENFK5CSE.js.map +1 -0
  190. package/lib/chunk-EOU6MO6H.cjs +70 -0
  191. package/lib/chunk-EOU6MO6H.cjs.map +1 -0
  192. package/lib/chunk-EUBNM3ZO.js +132 -0
  193. package/lib/chunk-EUBNM3ZO.js.map +1 -0
  194. package/lib/chunk-EUETC74Z.cjs +79 -0
  195. package/lib/chunk-EUETC74Z.cjs.map +1 -0
  196. package/lib/chunk-EVDBBPVM.js +68 -0
  197. package/lib/chunk-EVDBBPVM.js.map +1 -0
  198. package/lib/chunk-EXDJVWKS.js +79 -0
  199. package/lib/chunk-EXDJVWKS.js.map +1 -0
  200. package/lib/chunk-EXJAC7CY.cjs +94 -0
  201. package/lib/chunk-EXJAC7CY.cjs.map +1 -0
  202. package/lib/chunk-EY6KN5IF.cjs +60 -0
  203. package/lib/chunk-EY6KN5IF.cjs.map +1 -0
  204. package/lib/chunk-EZ32PKLC.cjs +70 -0
  205. package/lib/chunk-EZ32PKLC.cjs.map +1 -0
  206. package/lib/chunk-F5A5D4S3.cjs +102 -0
  207. package/lib/chunk-F5A5D4S3.cjs.map +1 -0
  208. package/lib/chunk-FB355ROS.js +60 -0
  209. package/lib/chunk-FB355ROS.js.map +1 -0
  210. package/lib/chunk-FEZTHTWY.cjs +120 -0
  211. package/lib/chunk-FEZTHTWY.cjs.map +1 -0
  212. package/lib/chunk-FG5OAZGV.cjs +85 -0
  213. package/lib/chunk-FG5OAZGV.cjs.map +1 -0
  214. package/lib/chunk-FNFCD7PC.cjs +98 -0
  215. package/lib/chunk-FNFCD7PC.cjs.map +1 -0
  216. package/lib/chunk-FNWLI3ZP.js +42 -0
  217. package/lib/chunk-FNWLI3ZP.js.map +1 -0
  218. package/lib/chunk-FOGC3CFK.cjs +81 -0
  219. package/lib/chunk-FOGC3CFK.cjs.map +1 -0
  220. package/lib/chunk-G4HHEC6Y.js +68 -0
  221. package/lib/chunk-G4HHEC6Y.js.map +1 -0
  222. package/lib/chunk-G4LTWX4G.cjs +62 -0
  223. package/lib/chunk-G4LTWX4G.cjs.map +1 -0
  224. package/lib/chunk-GCG5LC5E.js +86 -0
  225. package/lib/chunk-GCG5LC5E.js.map +1 -0
  226. package/lib/chunk-GEXJ2VE2.cjs +91 -0
  227. package/lib/chunk-GEXJ2VE2.cjs.map +1 -0
  228. package/lib/chunk-GGQ6AIVP.cjs +88 -0
  229. package/lib/chunk-GGQ6AIVP.cjs.map +1 -0
  230. package/lib/chunk-GIFJ76X2.cjs +47 -0
  231. package/lib/chunk-GIFJ76X2.cjs.map +1 -0
  232. package/lib/chunk-GIJ3WM7Y.js +38 -0
  233. package/lib/chunk-GIJ3WM7Y.js.map +1 -0
  234. package/lib/chunk-GMIHCHTG.js +124 -0
  235. package/lib/chunk-GMIHCHTG.js.map +1 -0
  236. package/lib/chunk-GMNK6R5J.cjs +79 -0
  237. package/lib/chunk-GMNK6R5J.cjs.map +1 -0
  238. package/lib/chunk-GS6WJNM7.cjs +166 -0
  239. package/lib/chunk-GS6WJNM7.cjs.map +1 -0
  240. package/lib/chunk-GWXMGS75.cjs +44 -0
  241. package/lib/chunk-GWXMGS75.cjs.map +1 -0
  242. package/lib/chunk-GZZXSIB2.js +61 -0
  243. package/lib/chunk-GZZXSIB2.js.map +1 -0
  244. package/lib/chunk-H3VW56K5.js +86 -0
  245. package/lib/chunk-H3VW56K5.js.map +1 -0
  246. package/lib/chunk-H4HF6EEU.js +77 -0
  247. package/lib/chunk-H4HF6EEU.js.map +1 -0
  248. package/lib/chunk-H4HUFIWL.cjs +84 -0
  249. package/lib/chunk-H4HUFIWL.cjs.map +1 -0
  250. package/lib/chunk-HHVBAXKQ.js +75 -0
  251. package/lib/chunk-HHVBAXKQ.js.map +1 -0
  252. package/lib/chunk-HIXXUB6L.js +100 -0
  253. package/lib/chunk-HIXXUB6L.js.map +1 -0
  254. package/lib/chunk-HPPLGWM2.cjs +70 -0
  255. package/lib/chunk-HPPLGWM2.cjs.map +1 -0
  256. package/lib/chunk-HTIOMBO7.js +116 -0
  257. package/lib/chunk-HTIOMBO7.js.map +1 -0
  258. package/lib/chunk-HTXJD6EN.cjs +115 -0
  259. package/lib/chunk-HTXJD6EN.cjs.map +1 -0
  260. package/lib/chunk-I3WRPA4J.cjs +77 -0
  261. package/lib/chunk-I3WRPA4J.cjs.map +1 -0
  262. package/lib/chunk-I6SL6R6A.cjs +62 -0
  263. package/lib/chunk-I6SL6R6A.cjs.map +1 -0
  264. package/lib/chunk-I7BELWOZ.cjs +29 -0
  265. package/lib/chunk-I7BELWOZ.cjs.map +1 -0
  266. package/lib/chunk-IODO3GRL.cjs +170 -0
  267. package/lib/chunk-IODO3GRL.cjs.map +1 -0
  268. package/lib/chunk-IWIVCJZP.cjs +102 -0
  269. package/lib/chunk-IWIVCJZP.cjs.map +1 -0
  270. package/lib/chunk-J2Y6T6IN.js +120 -0
  271. package/lib/chunk-J2Y6T6IN.js.map +1 -0
  272. package/lib/chunk-J6K7L5VW.cjs +126 -0
  273. package/lib/chunk-J6K7L5VW.cjs.map +1 -0
  274. package/lib/chunk-JCHHPOT7.js +75 -0
  275. package/lib/chunk-JCHHPOT7.js.map +1 -0
  276. package/lib/chunk-JDEZCM7S.cjs +70 -0
  277. package/lib/chunk-JDEZCM7S.cjs.map +1 -0
  278. package/lib/chunk-JF57GVB2.cjs +193 -0
  279. package/lib/chunk-JF57GVB2.cjs.map +1 -0
  280. package/lib/chunk-JFSUTJFF.js +79 -0
  281. package/lib/chunk-JFSUTJFF.js.map +1 -0
  282. package/lib/chunk-JLJE2LDY.js +68 -0
  283. package/lib/chunk-JLJE2LDY.js.map +1 -0
  284. package/lib/chunk-JRT3ACN7.js +80 -0
  285. package/lib/chunk-JRT3ACN7.js.map +1 -0
  286. package/lib/chunk-JUAEZTVG.js +68 -0
  287. package/lib/chunk-JUAEZTVG.js.map +1 -0
  288. package/lib/chunk-JXGFGLHJ.js +59 -0
  289. package/lib/chunk-JXGFGLHJ.js.map +1 -0
  290. package/lib/chunk-K2XM5WOD.js +77 -0
  291. package/lib/chunk-K2XM5WOD.js.map +1 -0
  292. package/lib/chunk-K7ACN66H.js +60 -0
  293. package/lib/chunk-K7ACN66H.js.map +1 -0
  294. package/lib/chunk-KAMEZEWA.js +96 -0
  295. package/lib/chunk-KAMEZEWA.js.map +1 -0
  296. package/lib/chunk-KCJ5Q3RC.js +77 -0
  297. package/lib/chunk-KCJ5Q3RC.js.map +1 -0
  298. package/lib/chunk-KDT2QFFT.cjs +81 -0
  299. package/lib/chunk-KDT2QFFT.cjs.map +1 -0
  300. package/lib/chunk-KHWZJWFV.cjs +80 -0
  301. package/lib/chunk-KHWZJWFV.cjs.map +1 -0
  302. package/lib/chunk-KKCUNEDC.js +709 -0
  303. package/lib/chunk-KKCUNEDC.js.map +1 -0
  304. package/lib/chunk-KKFPVGSR.cjs +80 -0
  305. package/lib/chunk-KKFPVGSR.cjs.map +1 -0
  306. package/lib/chunk-KKHJJLMA.js +27 -0
  307. package/lib/chunk-KKHJJLMA.js.map +1 -0
  308. package/lib/chunk-KLKK2HYA.cjs +70 -0
  309. package/lib/chunk-KLKK2HYA.cjs.map +1 -0
  310. package/lib/chunk-KSBHVLHJ.js +321 -0
  311. package/lib/chunk-KSBHVLHJ.js.map +1 -0
  312. package/lib/chunk-KVSFJGOA.js +129 -0
  313. package/lib/chunk-KVSFJGOA.js.map +1 -0
  314. package/lib/chunk-KX5YC4QE.cjs +120 -0
  315. package/lib/chunk-KX5YC4QE.cjs.map +1 -0
  316. package/lib/chunk-L2I4FREQ.js +77 -0
  317. package/lib/chunk-L2I4FREQ.js.map +1 -0
  318. package/lib/chunk-L5LKAYAB.js +177 -0
  319. package/lib/chunk-L5LKAYAB.js.map +1 -0
  320. package/lib/chunk-L7PKARTY.cjs +79 -0
  321. package/lib/chunk-L7PKARTY.cjs.map +1 -0
  322. package/lib/chunk-LKRQUDCQ.js +51 -0
  323. package/lib/chunk-LKRQUDCQ.js.map +1 -0
  324. package/lib/chunk-LKYITM53.cjs +88 -0
  325. package/lib/chunk-LKYITM53.cjs.map +1 -0
  326. package/lib/chunk-LOCGW4UZ.js +68 -0
  327. package/lib/chunk-LOCGW4UZ.js.map +1 -0
  328. package/lib/chunk-LRQC72OM.js +87 -0
  329. package/lib/chunk-LRQC72OM.js.map +1 -0
  330. package/lib/chunk-LSQVELFQ.cjs +313 -0
  331. package/lib/chunk-LSQVELFQ.cjs.map +1 -0
  332. package/lib/chunk-LTUUDUV4.js +24 -0
  333. package/lib/chunk-LTUUDUV4.js.map +1 -0
  334. package/lib/chunk-LUAW6PVB.cjs +52 -0
  335. package/lib/chunk-LUAW6PVB.cjs.map +1 -0
  336. package/lib/chunk-LWMBA3O2.js +82 -0
  337. package/lib/chunk-LWMBA3O2.js.map +1 -0
  338. package/lib/chunk-M4RBYRV3.js +67 -0
  339. package/lib/chunk-M4RBYRV3.js.map +1 -0
  340. package/lib/chunk-M6OJPQJ4.js +77 -0
  341. package/lib/chunk-M6OJPQJ4.js.map +1 -0
  342. package/lib/chunk-M7J2SDJC.cjs +53 -0
  343. package/lib/chunk-M7J2SDJC.cjs.map +1 -0
  344. package/lib/chunk-MBJR7LV2.cjs +77 -0
  345. package/lib/chunk-MBJR7LV2.cjs.map +1 -0
  346. package/lib/chunk-MCODGGUN.js +60 -0
  347. package/lib/chunk-MCODGGUN.js.map +1 -0
  348. package/lib/chunk-MEZMS5RE.cjs +86 -0
  349. package/lib/chunk-MEZMS5RE.cjs.map +1 -0
  350. package/lib/chunk-MIREPRUH.js +86 -0
  351. package/lib/chunk-MIREPRUH.js.map +1 -0
  352. package/lib/chunk-MOHY2GQS.js +78 -0
  353. package/lib/chunk-MOHY2GQS.js.map +1 -0
  354. package/lib/chunk-MQ43UMAN.js +191 -0
  355. package/lib/chunk-MQ43UMAN.js.map +1 -0
  356. package/lib/chunk-MUWHE7HE.cjs +61 -0
  357. package/lib/chunk-MUWHE7HE.cjs.map +1 -0
  358. package/lib/chunk-MWRGTRKR.js +241 -0
  359. package/lib/chunk-MWRGTRKR.js.map +1 -0
  360. package/lib/chunk-MZAPRZJ5.cjs +91 -0
  361. package/lib/chunk-MZAPRZJ5.cjs.map +1 -0
  362. package/lib/chunk-N37YHRKP.js +58 -0
  363. package/lib/chunk-N37YHRKP.js.map +1 -0
  364. package/lib/chunk-NCDURU7R.js +51 -0
  365. package/lib/chunk-NCDURU7R.js.map +1 -0
  366. package/lib/chunk-NGFQ7KED.js +92 -0
  367. package/lib/chunk-NGFQ7KED.js.map +1 -0
  368. package/lib/chunk-NIGW2WJZ.js +100 -0
  369. package/lib/chunk-NIGW2WJZ.js.map +1 -0
  370. package/lib/chunk-NOEFPOPE.js +77 -0
  371. package/lib/chunk-NOEFPOPE.js.map +1 -0
  372. package/lib/chunk-NPES3RMM.cjs +98 -0
  373. package/lib/chunk-NPES3RMM.cjs.map +1 -0
  374. package/lib/chunk-O533BGM3.cjs +323 -0
  375. package/lib/chunk-O533BGM3.cjs.map +1 -0
  376. package/lib/chunk-O6SULED7.js +191 -0
  377. package/lib/chunk-O6SULED7.js.map +1 -0
  378. package/lib/chunk-OGTS3FUY.cjs +67 -0
  379. package/lib/chunk-OGTS3FUY.cjs.map +1 -0
  380. package/lib/chunk-OOHRQZZD.cjs +84 -0
  381. package/lib/chunk-OOHRQZZD.cjs.map +1 -0
  382. package/lib/chunk-OOL5BY5X.js +96 -0
  383. package/lib/chunk-OOL5BY5X.js.map +1 -0
  384. package/lib/chunk-OS6CCKJ2.cjs +55 -0
  385. package/lib/chunk-OS6CCKJ2.cjs.map +1 -0
  386. package/lib/chunk-OVVCRTP7.js +203 -0
  387. package/lib/chunk-OVVCRTP7.js.map +1 -0
  388. package/lib/chunk-OWHODKLW.cjs +614 -0
  389. package/lib/chunk-OWHODKLW.cjs.map +1 -0
  390. package/lib/chunk-OXGUUNU2.js +68 -0
  391. package/lib/chunk-OXGUUNU2.js.map +1 -0
  392. package/lib/chunk-P6LNSPOI.cjs +53 -0
  393. package/lib/chunk-P6LNSPOI.cjs.map +1 -0
  394. package/lib/chunk-PHBLKRKQ.cjs +70 -0
  395. package/lib/chunk-PHBLKRKQ.cjs.map +1 -0
  396. package/lib/chunk-PHYWUU7V.js +84 -0
  397. package/lib/chunk-PHYWUU7V.js.map +1 -0
  398. package/lib/chunk-PIPNMGPH.cjs +79 -0
  399. package/lib/chunk-PIPNMGPH.cjs.map +1 -0
  400. package/lib/chunk-PSLEKRZK.cjs +198 -0
  401. package/lib/chunk-PSLEKRZK.cjs.map +1 -0
  402. package/lib/chunk-PX7JHWRT.js +65 -0
  403. package/lib/chunk-PX7JHWRT.js.map +1 -0
  404. package/lib/chunk-Q6VOWBEQ.cjs +125 -0
  405. package/lib/chunk-Q6VOWBEQ.cjs.map +1 -0
  406. package/lib/chunk-QHRU26FW.js +75 -0
  407. package/lib/chunk-QHRU26FW.js.map +1 -0
  408. package/lib/chunk-QJ7CAGZ5.js +83 -0
  409. package/lib/chunk-QJ7CAGZ5.js.map +1 -0
  410. package/lib/chunk-QMN65ZNB.js +77 -0
  411. package/lib/chunk-QMN65ZNB.js.map +1 -0
  412. package/lib/chunk-QORYWNNP.cjs +63 -0
  413. package/lib/chunk-QORYWNNP.cjs.map +1 -0
  414. package/lib/chunk-QTGLEGGW.cjs +89 -0
  415. package/lib/chunk-QTGLEGGW.cjs.map +1 -0
  416. package/lib/chunk-QWN7WOZ5.cjs +79 -0
  417. package/lib/chunk-QWN7WOZ5.cjs.map +1 -0
  418. package/lib/chunk-QX7FGLBA.js +60 -0
  419. package/lib/chunk-QX7FGLBA.js.map +1 -0
  420. package/lib/chunk-QYNCY3YO.js +51 -0
  421. package/lib/chunk-QYNCY3YO.js.map +1 -0
  422. package/lib/chunk-QZUT3LHW.cjs +70 -0
  423. package/lib/chunk-QZUT3LHW.cjs.map +1 -0
  424. package/lib/chunk-R5TTR22O.cjs +81 -0
  425. package/lib/chunk-R5TTR22O.cjs.map +1 -0
  426. package/lib/chunk-RBVNKEEP.cjs +79 -0
  427. package/lib/chunk-RBVNKEEP.cjs.map +1 -0
  428. package/lib/chunk-RDB6NEE4.cjs +98 -0
  429. package/lib/chunk-RDB6NEE4.cjs.map +1 -0
  430. package/lib/chunk-RGVEG53S.js +168 -0
  431. package/lib/chunk-RGVEG53S.js.map +1 -0
  432. package/lib/chunk-RKMVLTAY.cjs +70 -0
  433. package/lib/chunk-RKMVLTAY.cjs.map +1 -0
  434. package/lib/chunk-RMANZCYG.cjs +70 -0
  435. package/lib/chunk-RMANZCYG.cjs.map +1 -0
  436. package/lib/chunk-RPRYQAVD.js +69 -0
  437. package/lib/chunk-RPRYQAVD.js.map +1 -0
  438. package/lib/chunk-RQ5M3VRG.js +118 -0
  439. package/lib/chunk-RQ5M3VRG.js.map +1 -0
  440. package/lib/chunk-RQRSN6GK.cjs +70 -0
  441. package/lib/chunk-RQRSN6GK.cjs.map +1 -0
  442. package/lib/chunk-RTLI25A2.cjs +118 -0
  443. package/lib/chunk-RTLI25A2.cjs.map +1 -0
  444. package/lib/chunk-RXSGRNKJ.js +50 -0
  445. package/lib/chunk-RXSGRNKJ.js.map +1 -0
  446. package/lib/chunk-S5LBERKZ.cjs +79 -0
  447. package/lib/chunk-S5LBERKZ.cjs.map +1 -0
  448. package/lib/chunk-S7AZ2CAV.cjs +62 -0
  449. package/lib/chunk-S7AZ2CAV.cjs.map +1 -0
  450. package/lib/chunk-SBCHXAFH.js +77 -0
  451. package/lib/chunk-SBCHXAFH.js.map +1 -0
  452. package/lib/chunk-SG6BDPDG.js +177 -0
  453. package/lib/chunk-SG6BDPDG.js.map +1 -0
  454. package/lib/chunk-SH2MT5YH.js +59 -0
  455. package/lib/chunk-SH2MT5YH.js.map +1 -0
  456. package/lib/chunk-SJAPPBAX.cjs +84 -0
  457. package/lib/chunk-SJAPPBAX.cjs.map +1 -0
  458. package/lib/chunk-SNYNOS4X.js +89 -0
  459. package/lib/chunk-SNYNOS4X.js.map +1 -0
  460. package/lib/chunk-SRUNHFBP.cjs +179 -0
  461. package/lib/chunk-SRUNHFBP.cjs.map +1 -0
  462. package/lib/chunk-T2QY74EE.cjs +122 -0
  463. package/lib/chunk-T2QY74EE.cjs.map +1 -0
  464. package/lib/chunk-T33HICMW.cjs +53 -0
  465. package/lib/chunk-T33HICMW.cjs.map +1 -0
  466. package/lib/chunk-T44NBZHI.cjs +134 -0
  467. package/lib/chunk-T44NBZHI.cjs.map +1 -0
  468. package/lib/chunk-T5HTYZIG.cjs +120 -0
  469. package/lib/chunk-T5HTYZIG.cjs.map +1 -0
  470. package/lib/chunk-TLA45WNE.js +53 -0
  471. package/lib/chunk-TLA45WNE.js.map +1 -0
  472. package/lib/chunk-TLYNUT46.js +191 -0
  473. package/lib/chunk-TLYNUT46.js.map +1 -0
  474. package/lib/chunk-TQJXJSPS.js +77 -0
  475. package/lib/chunk-TQJXJSPS.js.map +1 -0
  476. package/lib/chunk-TR7P3VDX.js +96 -0
  477. package/lib/chunk-TR7P3VDX.js.map +1 -0
  478. package/lib/chunk-TXK5K43E.js +82 -0
  479. package/lib/chunk-TXK5K43E.js.map +1 -0
  480. package/lib/chunk-TZICXIFV.js +113 -0
  481. package/lib/chunk-TZICXIFV.js.map +1 -0
  482. package/lib/chunk-TZXOKIVJ.js +86 -0
  483. package/lib/chunk-TZXOKIVJ.js.map +1 -0
  484. package/lib/chunk-UIXOF5WD.js +60 -0
  485. package/lib/chunk-UIXOF5WD.js.map +1 -0
  486. package/lib/chunk-UL36HJRH.cjs +179 -0
  487. package/lib/chunk-UL36HJRH.cjs.map +1 -0
  488. package/lib/chunk-UN5ADA3I.js +89 -0
  489. package/lib/chunk-UN5ADA3I.js.map +1 -0
  490. package/lib/chunk-UQA3V7EQ.cjs +193 -0
  491. package/lib/chunk-UQA3V7EQ.cjs.map +1 -0
  492. package/lib/chunk-US3S3AKJ.cjs +77 -0
  493. package/lib/chunk-US3S3AKJ.cjs.map +1 -0
  494. package/lib/chunk-UT5ALTP2.js +164 -0
  495. package/lib/chunk-UT5ALTP2.js.map +1 -0
  496. package/lib/chunk-UT7EZWLA.cjs +71 -0
  497. package/lib/chunk-UT7EZWLA.cjs.map +1 -0
  498. package/lib/chunk-UZZEUGAU.cjs +88 -0
  499. package/lib/chunk-UZZEUGAU.cjs.map +1 -0
  500. package/lib/chunk-V6ZTOCIP.cjs +44 -0
  501. package/lib/chunk-V6ZTOCIP.cjs.map +1 -0
  502. package/lib/chunk-VALGSE43.cjs +38 -0
  503. package/lib/chunk-VALGSE43.cjs.map +1 -0
  504. package/lib/chunk-VF2O2LL2.cjs +91 -0
  505. package/lib/chunk-VF2O2LL2.cjs.map +1 -0
  506. package/lib/chunk-VKKABEIF.js +91 -0
  507. package/lib/chunk-VKKABEIF.js.map +1 -0
  508. package/lib/chunk-VMIJFFMR.cjs +98 -0
  509. package/lib/chunk-VMIJFFMR.cjs.map +1 -0
  510. package/lib/chunk-VQL2GDOC.js +65 -0
  511. package/lib/chunk-VQL2GDOC.js.map +1 -0
  512. package/lib/chunk-W4TRA2O2.cjs +102 -0
  513. package/lib/chunk-W4TRA2O2.cjs.map +1 -0
  514. package/lib/chunk-W7HLFWQY.cjs +182 -0
  515. package/lib/chunk-W7HLFWQY.cjs.map +1 -0
  516. package/lib/chunk-WBWYSOBQ.js +177 -0
  517. package/lib/chunk-WBWYSOBQ.js.map +1 -0
  518. package/lib/chunk-WGBYJEHX.cjs +179 -0
  519. package/lib/chunk-WGBYJEHX.cjs.map +1 -0
  520. package/lib/chunk-WGJFSDBA.cjs +93 -0
  521. package/lib/chunk-WGJFSDBA.cjs.map +1 -0
  522. package/lib/chunk-WHX5YI6H.js +51 -0
  523. package/lib/chunk-WHX5YI6H.js.map +1 -0
  524. package/lib/chunk-WIDPMSU4.cjs +179 -0
  525. package/lib/chunk-WIDPMSU4.cjs.map +1 -0
  526. package/lib/chunk-WISBTS3C.cjs +79 -0
  527. package/lib/chunk-WISBTS3C.cjs.map +1 -0
  528. package/lib/chunk-WLKLPLXH.cjs +70 -0
  529. package/lib/chunk-WLKLPLXH.cjs.map +1 -0
  530. package/lib/chunk-WNCRJM76.js +120 -0
  531. package/lib/chunk-WNCRJM76.js.map +1 -0
  532. package/lib/chunk-WOD46TWU.js +96 -0
  533. package/lib/chunk-WOD46TWU.js.map +1 -0
  534. package/lib/chunk-WROORM6M.js +116 -0
  535. package/lib/chunk-WROORM6M.js.map +1 -0
  536. package/lib/chunk-WSSSFMLB.cjs +131 -0
  537. package/lib/chunk-WSSSFMLB.cjs.map +1 -0
  538. package/lib/chunk-WYHWZDME.js +82 -0
  539. package/lib/chunk-WYHWZDME.js.map +1 -0
  540. package/lib/chunk-WZKYHIUM.cjs +52 -0
  541. package/lib/chunk-WZKYHIUM.cjs.map +1 -0
  542. package/lib/chunk-X3NJTGAQ.js +45 -0
  543. package/lib/chunk-X3NJTGAQ.js.map +1 -0
  544. package/lib/chunk-X7J5ETGR.cjs +96 -0
  545. package/lib/chunk-X7J5ETGR.cjs.map +1 -0
  546. package/lib/chunk-XEZW6I2I.js +42 -0
  547. package/lib/chunk-XEZW6I2I.js.map +1 -0
  548. package/lib/chunk-XFFPZEJQ.cjs +40 -0
  549. package/lib/chunk-XFFPZEJQ.cjs.map +1 -0
  550. package/lib/chunk-XVMHGTZT.js +11 -0
  551. package/lib/chunk-XVMHGTZT.js.map +1 -0
  552. package/lib/chunk-YD6OZ4RO.cjs +712 -0
  553. package/lib/chunk-YD6OZ4RO.cjs.map +1 -0
  554. package/lib/chunk-YTWBZTJI.js +94 -0
  555. package/lib/chunk-YTWBZTJI.js.map +1 -0
  556. package/lib/chunk-YV756IAI.cjs +62 -0
  557. package/lib/chunk-YV756IAI.cjs.map +1 -0
  558. package/lib/chunk-YVX5EI7G.cjs +122 -0
  559. package/lib/chunk-YVX5EI7G.cjs.map +1 -0
  560. package/lib/chunk-YX2YHZDI.cjs +70 -0
  561. package/lib/chunk-YX2YHZDI.cjs.map +1 -0
  562. package/lib/chunk-YXCYLDXT.cjs +179 -0
  563. package/lib/chunk-YXCYLDXT.cjs.map +1 -0
  564. package/lib/chunk-YYOW53OQ.js +68 -0
  565. package/lib/chunk-YYOW53OQ.js.map +1 -0
  566. package/lib/chunk-Z3KQDJAD.cjs +26 -0
  567. package/lib/chunk-Z3KQDJAD.cjs.map +1 -0
  568. package/lib/chunk-ZCQOTKMF.js +177 -0
  569. package/lib/chunk-ZCQOTKMF.js.map +1 -0
  570. package/lib/chunk-ZDBMDLOT.js +86 -0
  571. package/lib/chunk-ZDBMDLOT.js.map +1 -0
  572. package/lib/chunk-ZQY6GVML.cjs +14 -0
  573. package/lib/chunk-ZQY6GVML.cjs.map +1 -0
  574. package/lib/chunk-ZYT2EPDD.js +305 -0
  575. package/lib/chunk-ZYT2EPDD.js.map +1 -0
  576. package/lib/client.cjs +3 -3
  577. package/lib/client.js +2 -2
  578. package/lib/commercelayer.cjs +9 -9
  579. package/lib/commercelayer.d.cts +1 -1
  580. package/lib/commercelayer.d.ts +1 -1
  581. package/lib/commercelayer.js +4 -4
  582. package/lib/enum.d.cts +1 -1
  583. package/lib/enum.d.ts +1 -1
  584. package/lib/index.cjs +147 -148
  585. package/lib/index.cjs.map +1 -1
  586. package/lib/index.d.cts +14 -5
  587. package/lib/index.d.ts +12 -2
  588. package/lib/index.js +147 -140
  589. package/lib/index.js.map +1 -1
  590. package/lib/jsonapi.cjs +5 -5
  591. package/lib/jsonapi.d.cts +1 -1
  592. package/lib/jsonapi.d.ts +1 -1
  593. package/lib/jsonapi.js +3 -3
  594. package/lib/model.d.cts +1 -1
  595. package/lib/model.d.ts +1 -1
  596. package/lib/query.d.cts +1 -1
  597. package/lib/query.d.ts +1 -1
  598. package/lib/resource.cjs +8 -8
  599. package/lib/resource.d.cts +1 -1
  600. package/lib/resource.d.ts +1 -1
  601. package/lib/resource.js +3 -3
  602. package/lib/resources/addresses.cjs +5 -5
  603. package/lib/resources/addresses.d.cts +2 -2
  604. package/lib/resources/addresses.d.ts +1 -1
  605. package/lib/resources/addresses.js +4 -4
  606. package/lib/resources/adjustments.cjs +5 -5
  607. package/lib/resources/adjustments.d.cts +2 -2
  608. package/lib/resources/adjustments.d.ts +1 -1
  609. package/lib/resources/adjustments.js +4 -4
  610. package/lib/resources/adyen_gateways.cjs +5 -5
  611. package/lib/resources/adyen_gateways.d.cts +2 -2
  612. package/lib/resources/adyen_gateways.d.ts +1 -1
  613. package/lib/resources/adyen_gateways.js +4 -4
  614. package/lib/resources/adyen_payments.cjs +5 -5
  615. package/lib/resources/adyen_payments.d.cts +2 -2
  616. package/lib/resources/adyen_payments.d.ts +1 -1
  617. package/lib/resources/adyen_payments.js +4 -4
  618. package/lib/resources/applications.cjs +5 -5
  619. package/lib/resources/applications.d.cts +2 -2
  620. package/lib/resources/applications.d.ts +1 -1
  621. package/lib/resources/applications.js +4 -4
  622. package/lib/resources/attachments.cjs +5 -5
  623. package/lib/resources/attachments.d.cts +2 -2
  624. package/lib/resources/attachments.d.ts +1 -1
  625. package/lib/resources/attachments.js +4 -4
  626. package/lib/resources/authorizations.cjs +5 -5
  627. package/lib/resources/authorizations.d.cts +2 -2
  628. package/lib/resources/authorizations.d.ts +1 -1
  629. package/lib/resources/authorizations.js +4 -4
  630. package/lib/resources/avalara_accounts.cjs +5 -5
  631. package/lib/resources/avalara_accounts.d.cts +2 -2
  632. package/lib/resources/avalara_accounts.d.ts +1 -1
  633. package/lib/resources/avalara_accounts.js +4 -4
  634. package/lib/resources/axerve_gateways.cjs +5 -5
  635. package/lib/resources/axerve_gateways.d.cts +2 -2
  636. package/lib/resources/axerve_gateways.d.ts +1 -1
  637. package/lib/resources/axerve_gateways.js +4 -4
  638. package/lib/resources/axerve_payments.cjs +5 -5
  639. package/lib/resources/axerve_payments.d.cts +2 -2
  640. package/lib/resources/axerve_payments.d.ts +1 -1
  641. package/lib/resources/axerve_payments.js +4 -4
  642. package/lib/resources/billing_info_validation_rules.cjs +5 -5
  643. package/lib/resources/billing_info_validation_rules.d.cts +2 -2
  644. package/lib/resources/billing_info_validation_rules.d.ts +1 -1
  645. package/lib/resources/billing_info_validation_rules.js +4 -4
  646. package/lib/resources/bing_geocoders.cjs +5 -5
  647. package/lib/resources/bing_geocoders.d.cts +2 -2
  648. package/lib/resources/bing_geocoders.d.ts +1 -1
  649. package/lib/resources/bing_geocoders.js +4 -4
  650. package/lib/resources/braintree_gateways.cjs +5 -5
  651. package/lib/resources/braintree_gateways.d.cts +2 -2
  652. package/lib/resources/braintree_gateways.d.ts +1 -1
  653. package/lib/resources/braintree_gateways.js +4 -4
  654. package/lib/resources/braintree_payments.cjs +5 -5
  655. package/lib/resources/braintree_payments.d.cts +2 -2
  656. package/lib/resources/braintree_payments.d.ts +1 -1
  657. package/lib/resources/braintree_payments.js +4 -4
  658. package/lib/resources/bundles.cjs +5 -5
  659. package/lib/resources/bundles.d.cts +2 -2
  660. package/lib/resources/bundles.d.ts +1 -1
  661. package/lib/resources/bundles.js +4 -4
  662. package/lib/resources/buy_x_pay_y_promotions.cjs +5 -5
  663. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  664. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  665. package/lib/resources/buy_x_pay_y_promotions.js +4 -4
  666. package/lib/resources/captures.cjs +5 -5
  667. package/lib/resources/captures.d.cts +2 -2
  668. package/lib/resources/captures.d.ts +1 -1
  669. package/lib/resources/captures.js +4 -4
  670. package/lib/resources/carrier_accounts.cjs +5 -5
  671. package/lib/resources/carrier_accounts.d.cts +2 -2
  672. package/lib/resources/carrier_accounts.d.ts +1 -1
  673. package/lib/resources/carrier_accounts.js +4 -4
  674. package/lib/resources/checkout_com_gateways.cjs +5 -5
  675. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  676. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  677. package/lib/resources/checkout_com_gateways.js +4 -4
  678. package/lib/resources/checkout_com_payments.cjs +5 -5
  679. package/lib/resources/checkout_com_payments.d.cts +2 -2
  680. package/lib/resources/checkout_com_payments.d.ts +1 -1
  681. package/lib/resources/checkout_com_payments.js +4 -4
  682. package/lib/resources/cleanups.cjs +5 -5
  683. package/lib/resources/cleanups.d.cts +2 -2
  684. package/lib/resources/cleanups.d.ts +1 -1
  685. package/lib/resources/cleanups.js +4 -4
  686. package/lib/resources/coupon_codes_promotion_rules.cjs +5 -5
  687. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  688. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  689. package/lib/resources/coupon_codes_promotion_rules.js +4 -4
  690. package/lib/resources/coupon_recipients.cjs +5 -5
  691. package/lib/resources/coupon_recipients.d.cts +2 -2
  692. package/lib/resources/coupon_recipients.d.ts +1 -1
  693. package/lib/resources/coupon_recipients.js +4 -4
  694. package/lib/resources/coupons.cjs +5 -5
  695. package/lib/resources/coupons.d.cts +2 -2
  696. package/lib/resources/coupons.d.ts +1 -1
  697. package/lib/resources/coupons.js +4 -4
  698. package/lib/resources/custom_promotion_rules.cjs +5 -5
  699. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  700. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  701. package/lib/resources/custom_promotion_rules.js +4 -4
  702. package/lib/resources/customer_addresses.cjs +5 -5
  703. package/lib/resources/customer_addresses.d.cts +2 -2
  704. package/lib/resources/customer_addresses.d.ts +1 -1
  705. package/lib/resources/customer_addresses.js +4 -4
  706. package/lib/resources/customer_groups.cjs +5 -5
  707. package/lib/resources/customer_groups.d.cts +2 -2
  708. package/lib/resources/customer_groups.d.ts +1 -1
  709. package/lib/resources/customer_groups.js +4 -4
  710. package/lib/resources/customer_password_resets.cjs +5 -5
  711. package/lib/resources/customer_password_resets.d.cts +2 -2
  712. package/lib/resources/customer_password_resets.d.ts +1 -1
  713. package/lib/resources/customer_password_resets.js +4 -4
  714. package/lib/resources/customer_payment_sources.cjs +5 -5
  715. package/lib/resources/customer_payment_sources.d.cts +2 -2
  716. package/lib/resources/customer_payment_sources.d.ts +1 -1
  717. package/lib/resources/customer_payment_sources.js +4 -4
  718. package/lib/resources/customer_subscriptions.cjs +5 -5
  719. package/lib/resources/customer_subscriptions.d.cts +2 -2
  720. package/lib/resources/customer_subscriptions.d.ts +1 -1
  721. package/lib/resources/customer_subscriptions.js +4 -4
  722. package/lib/resources/customers.cjs +5 -5
  723. package/lib/resources/customers.d.cts +2 -2
  724. package/lib/resources/customers.d.ts +1 -1
  725. package/lib/resources/customers.js +4 -4
  726. package/lib/resources/delivery_lead_times.cjs +5 -5
  727. package/lib/resources/delivery_lead_times.d.cts +2 -2
  728. package/lib/resources/delivery_lead_times.d.ts +1 -1
  729. package/lib/resources/delivery_lead_times.js +4 -4
  730. package/lib/resources/discount_engine_items.cjs +5 -5
  731. package/lib/resources/discount_engine_items.d.cts +2 -2
  732. package/lib/resources/discount_engine_items.d.ts +1 -1
  733. package/lib/resources/discount_engine_items.js +4 -4
  734. package/lib/resources/discount_engines.cjs +5 -5
  735. package/lib/resources/discount_engines.d.cts +2 -2
  736. package/lib/resources/discount_engines.d.ts +1 -1
  737. package/lib/resources/discount_engines.js +4 -4
  738. package/lib/resources/easypost_pickups.cjs +5 -5
  739. package/lib/resources/easypost_pickups.d.cts +2 -2
  740. package/lib/resources/easypost_pickups.d.ts +1 -1
  741. package/lib/resources/easypost_pickups.js +4 -4
  742. package/lib/resources/event_callbacks.cjs +5 -5
  743. package/lib/resources/event_callbacks.d.cts +2 -2
  744. package/lib/resources/event_callbacks.d.ts +1 -1
  745. package/lib/resources/event_callbacks.js +4 -4
  746. package/lib/resources/event_stores.cjs +5 -5
  747. package/lib/resources/event_stores.d.cts +2 -2
  748. package/lib/resources/event_stores.d.ts +1 -1
  749. package/lib/resources/event_stores.js +4 -4
  750. package/lib/resources/events.cjs +5 -5
  751. package/lib/resources/events.d.cts +2 -2
  752. package/lib/resources/events.d.ts +1 -1
  753. package/lib/resources/events.js +4 -4
  754. package/lib/resources/exports.cjs +5 -5
  755. package/lib/resources/exports.d.cts +2 -2
  756. package/lib/resources/exports.d.ts +1 -1
  757. package/lib/resources/exports.js +4 -4
  758. package/lib/resources/external_gateways.cjs +5 -5
  759. package/lib/resources/external_gateways.d.cts +2 -2
  760. package/lib/resources/external_gateways.d.ts +1 -1
  761. package/lib/resources/external_gateways.js +4 -4
  762. package/lib/resources/external_payments.cjs +5 -5
  763. package/lib/resources/external_payments.d.cts +2 -2
  764. package/lib/resources/external_payments.d.ts +1 -1
  765. package/lib/resources/external_payments.js +4 -4
  766. package/lib/resources/external_promotions.cjs +5 -5
  767. package/lib/resources/external_promotions.d.cts +2 -2
  768. package/lib/resources/external_promotions.d.ts +1 -1
  769. package/lib/resources/external_promotions.js +4 -4
  770. package/lib/resources/external_tax_calculators.cjs +5 -5
  771. package/lib/resources/external_tax_calculators.d.cts +2 -2
  772. package/lib/resources/external_tax_calculators.d.ts +1 -1
  773. package/lib/resources/external_tax_calculators.js +4 -4
  774. package/lib/resources/fixed_amount_promotions.cjs +5 -5
  775. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  776. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  777. package/lib/resources/fixed_amount_promotions.js +4 -4
  778. package/lib/resources/fixed_price_promotions.cjs +5 -5
  779. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  780. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  781. package/lib/resources/fixed_price_promotions.js +4 -4
  782. package/lib/resources/flex_promotions.cjs +5 -5
  783. package/lib/resources/flex_promotions.d.cts +2 -2
  784. package/lib/resources/flex_promotions.d.ts +1 -1
  785. package/lib/resources/flex_promotions.js +4 -4
  786. package/lib/resources/free_gift_promotions.cjs +5 -5
  787. package/lib/resources/free_gift_promotions.d.cts +2 -2
  788. package/lib/resources/free_gift_promotions.d.ts +1 -1
  789. package/lib/resources/free_gift_promotions.js +4 -4
  790. package/lib/resources/free_shipping_promotions.cjs +5 -5
  791. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  792. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  793. package/lib/resources/free_shipping_promotions.js +4 -4
  794. package/lib/resources/geocoders.cjs +5 -5
  795. package/lib/resources/geocoders.d.cts +2 -2
  796. package/lib/resources/geocoders.d.ts +1 -1
  797. package/lib/resources/geocoders.js +4 -4
  798. package/lib/resources/gift_card_recipients.cjs +5 -5
  799. package/lib/resources/gift_card_recipients.d.cts +2 -2
  800. package/lib/resources/gift_card_recipients.d.ts +1 -1
  801. package/lib/resources/gift_card_recipients.js +4 -4
  802. package/lib/resources/gift_cards.cjs +5 -5
  803. package/lib/resources/gift_cards.d.cts +2 -2
  804. package/lib/resources/gift_cards.d.ts +1 -1
  805. package/lib/resources/gift_cards.js +4 -4
  806. package/lib/resources/google_geocoders.cjs +5 -5
  807. package/lib/resources/google_geocoders.d.cts +2 -2
  808. package/lib/resources/google_geocoders.d.ts +1 -1
  809. package/lib/resources/google_geocoders.js +4 -4
  810. package/lib/resources/imports.cjs +5 -5
  811. package/lib/resources/imports.d.cts +2 -2
  812. package/lib/resources/imports.d.ts +1 -1
  813. package/lib/resources/imports.js +4 -4
  814. package/lib/resources/in_stock_subscriptions.cjs +5 -5
  815. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  816. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  817. package/lib/resources/in_stock_subscriptions.js +4 -4
  818. package/lib/resources/inventory_models.cjs +5 -5
  819. package/lib/resources/inventory_models.d.cts +2 -2
  820. package/lib/resources/inventory_models.d.ts +1 -1
  821. package/lib/resources/inventory_models.js +4 -4
  822. package/lib/resources/inventory_return_locations.cjs +5 -5
  823. package/lib/resources/inventory_return_locations.d.cts +2 -2
  824. package/lib/resources/inventory_return_locations.d.ts +1 -1
  825. package/lib/resources/inventory_return_locations.js +4 -4
  826. package/lib/resources/inventory_stock_locations.cjs +5 -5
  827. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  828. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  829. package/lib/resources/inventory_stock_locations.js +4 -4
  830. package/lib/resources/klarna_gateways.cjs +5 -5
  831. package/lib/resources/klarna_gateways.d.cts +2 -2
  832. package/lib/resources/klarna_gateways.d.ts +1 -1
  833. package/lib/resources/klarna_gateways.js +4 -4
  834. package/lib/resources/klarna_payments.cjs +5 -5
  835. package/lib/resources/klarna_payments.d.cts +2 -2
  836. package/lib/resources/klarna_payments.d.ts +1 -1
  837. package/lib/resources/klarna_payments.js +4 -4
  838. package/lib/resources/line_item_options.cjs +5 -5
  839. package/lib/resources/line_item_options.d.cts +2 -2
  840. package/lib/resources/line_item_options.d.ts +1 -1
  841. package/lib/resources/line_item_options.js +4 -4
  842. package/lib/resources/line_items.cjs +5 -5
  843. package/lib/resources/line_items.d.cts +2 -2
  844. package/lib/resources/line_items.d.ts +1 -1
  845. package/lib/resources/line_items.js +4 -4
  846. package/lib/resources/links.cjs +5 -5
  847. package/lib/resources/links.d.cts +2 -2
  848. package/lib/resources/links.d.ts +1 -1
  849. package/lib/resources/links.js +4 -4
  850. package/lib/resources/manual_gateways.cjs +5 -5
  851. package/lib/resources/manual_gateways.d.cts +2 -2
  852. package/lib/resources/manual_gateways.d.ts +1 -1
  853. package/lib/resources/manual_gateways.js +4 -4
  854. package/lib/resources/manual_tax_calculators.cjs +5 -5
  855. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  856. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  857. package/lib/resources/manual_tax_calculators.js +4 -4
  858. package/lib/resources/markets.cjs +5 -5
  859. package/lib/resources/markets.d.cts +2 -2
  860. package/lib/resources/markets.d.ts +1 -1
  861. package/lib/resources/markets.js +4 -4
  862. package/lib/resources/merchants.cjs +5 -5
  863. package/lib/resources/merchants.d.cts +2 -2
  864. package/lib/resources/merchants.d.ts +1 -1
  865. package/lib/resources/merchants.js +4 -4
  866. package/lib/resources/notifications.cjs +5 -5
  867. package/lib/resources/notifications.d.cts +2 -2
  868. package/lib/resources/notifications.d.ts +1 -1
  869. package/lib/resources/notifications.js +4 -4
  870. package/lib/resources/order_amount_promotion_rules.cjs +5 -5
  871. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  872. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  873. package/lib/resources/order_amount_promotion_rules.js +4 -4
  874. package/lib/resources/order_copies.cjs +5 -5
  875. package/lib/resources/order_copies.d.cts +2 -2
  876. package/lib/resources/order_copies.d.ts +1 -1
  877. package/lib/resources/order_copies.js +4 -4
  878. package/lib/resources/order_factories.cjs +5 -5
  879. package/lib/resources/order_factories.d.cts +2 -2
  880. package/lib/resources/order_factories.d.ts +1 -1
  881. package/lib/resources/order_factories.js +4 -4
  882. package/lib/resources/order_subscription_items.cjs +5 -5
  883. package/lib/resources/order_subscription_items.d.cts +2 -2
  884. package/lib/resources/order_subscription_items.d.ts +1 -1
  885. package/lib/resources/order_subscription_items.js +4 -4
  886. package/lib/resources/order_subscriptions.cjs +5 -5
  887. package/lib/resources/order_subscriptions.d.cts +2 -2
  888. package/lib/resources/order_subscriptions.d.ts +1 -1
  889. package/lib/resources/order_subscriptions.js +4 -4
  890. package/lib/resources/order_validation_rules.cjs +5 -5
  891. package/lib/resources/order_validation_rules.d.cts +2 -2
  892. package/lib/resources/order_validation_rules.d.ts +1 -1
  893. package/lib/resources/order_validation_rules.js +4 -4
  894. package/lib/resources/orders.cjs +5 -5
  895. package/lib/resources/orders.d.cts +2 -2
  896. package/lib/resources/orders.d.ts +1 -1
  897. package/lib/resources/orders.js +4 -4
  898. package/lib/resources/organizations.cjs +5 -5
  899. package/lib/resources/organizations.d.cts +2 -2
  900. package/lib/resources/organizations.d.ts +1 -1
  901. package/lib/resources/organizations.js +4 -4
  902. package/lib/resources/packages.cjs +5 -5
  903. package/lib/resources/packages.d.cts +2 -2
  904. package/lib/resources/packages.d.ts +1 -1
  905. package/lib/resources/packages.js +4 -4
  906. package/lib/resources/parcel_line_items.cjs +5 -5
  907. package/lib/resources/parcel_line_items.d.cts +2 -2
  908. package/lib/resources/parcel_line_items.d.ts +1 -1
  909. package/lib/resources/parcel_line_items.js +4 -4
  910. package/lib/resources/parcels.cjs +5 -5
  911. package/lib/resources/parcels.d.cts +2 -2
  912. package/lib/resources/parcels.d.ts +1 -1
  913. package/lib/resources/parcels.js +4 -4
  914. package/lib/resources/payment_gateways.cjs +5 -5
  915. package/lib/resources/payment_gateways.d.cts +2 -2
  916. package/lib/resources/payment_gateways.d.ts +1 -1
  917. package/lib/resources/payment_gateways.js +4 -4
  918. package/lib/resources/payment_methods.cjs +5 -5
  919. package/lib/resources/payment_methods.d.cts +2 -2
  920. package/lib/resources/payment_methods.d.ts +1 -1
  921. package/lib/resources/payment_methods.js +4 -4
  922. package/lib/resources/payment_options.cjs +5 -5
  923. package/lib/resources/payment_options.d.cts +2 -2
  924. package/lib/resources/payment_options.d.ts +1 -1
  925. package/lib/resources/payment_options.js +4 -4
  926. package/lib/resources/paypal_gateways.cjs +5 -5
  927. package/lib/resources/paypal_gateways.d.cts +2 -2
  928. package/lib/resources/paypal_gateways.d.ts +1 -1
  929. package/lib/resources/paypal_gateways.js +4 -4
  930. package/lib/resources/paypal_payments.cjs +5 -5
  931. package/lib/resources/paypal_payments.d.cts +2 -2
  932. package/lib/resources/paypal_payments.d.ts +1 -1
  933. package/lib/resources/paypal_payments.js +4 -4
  934. package/lib/resources/percentage_discount_promotions.cjs +5 -5
  935. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  936. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  937. package/lib/resources/percentage_discount_promotions.js +4 -4
  938. package/lib/resources/pickups.cjs +5 -5
  939. package/lib/resources/pickups.d.cts +2 -2
  940. package/lib/resources/pickups.d.ts +1 -1
  941. package/lib/resources/pickups.js +4 -4
  942. package/lib/resources/price_frequency_tiers.cjs +5 -5
  943. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  944. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  945. package/lib/resources/price_frequency_tiers.js +4 -4
  946. package/lib/resources/price_list_schedulers.cjs +5 -5
  947. package/lib/resources/price_list_schedulers.d.cts +2 -2
  948. package/lib/resources/price_list_schedulers.d.ts +1 -1
  949. package/lib/resources/price_list_schedulers.js +4 -4
  950. package/lib/resources/price_lists.cjs +5 -5
  951. package/lib/resources/price_lists.d.cts +2 -2
  952. package/lib/resources/price_lists.d.ts +1 -1
  953. package/lib/resources/price_lists.js +4 -4
  954. package/lib/resources/price_tiers.cjs +5 -5
  955. package/lib/resources/price_tiers.d.cts +2 -2
  956. package/lib/resources/price_tiers.d.ts +1 -1
  957. package/lib/resources/price_tiers.js +4 -4
  958. package/lib/resources/price_volume_tiers.cjs +5 -5
  959. package/lib/resources/price_volume_tiers.d.cts +2 -2
  960. package/lib/resources/price_volume_tiers.d.ts +1 -1
  961. package/lib/resources/price_volume_tiers.js +4 -4
  962. package/lib/resources/prices.cjs +5 -5
  963. package/lib/resources/prices.d.cts +2 -2
  964. package/lib/resources/prices.d.ts +1 -1
  965. package/lib/resources/prices.js +4 -4
  966. package/lib/resources/promotion_rules.cjs +5 -5
  967. package/lib/resources/promotion_rules.d.cts +2 -2
  968. package/lib/resources/promotion_rules.d.ts +1 -1
  969. package/lib/resources/promotion_rules.js +4 -4
  970. package/lib/resources/promotions.cjs +5 -5
  971. package/lib/resources/promotions.d.cts +2 -2
  972. package/lib/resources/promotions.d.ts +1 -1
  973. package/lib/resources/promotions.js +4 -4
  974. package/lib/resources/recurring_order_copies.cjs +5 -5
  975. package/lib/resources/recurring_order_copies.d.cts +2 -2
  976. package/lib/resources/recurring_order_copies.d.ts +1 -1
  977. package/lib/resources/recurring_order_copies.js +4 -4
  978. package/lib/resources/refunds.cjs +5 -5
  979. package/lib/resources/refunds.d.cts +2 -2
  980. package/lib/resources/refunds.d.ts +1 -1
  981. package/lib/resources/refunds.js +4 -4
  982. package/lib/resources/reserved_stocks.cjs +5 -5
  983. package/lib/resources/reserved_stocks.d.cts +2 -2
  984. package/lib/resources/reserved_stocks.d.ts +1 -1
  985. package/lib/resources/reserved_stocks.js +4 -4
  986. package/lib/resources/resource_errors.cjs +5 -5
  987. package/lib/resources/resource_errors.d.cts +2 -2
  988. package/lib/resources/resource_errors.d.ts +1 -1
  989. package/lib/resources/resource_errors.js +4 -4
  990. package/lib/resources/return_line_items.cjs +5 -5
  991. package/lib/resources/return_line_items.d.cts +2 -2
  992. package/lib/resources/return_line_items.d.ts +1 -1
  993. package/lib/resources/return_line_items.js +4 -4
  994. package/lib/resources/returns.cjs +5 -5
  995. package/lib/resources/returns.d.cts +2 -2
  996. package/lib/resources/returns.d.ts +1 -1
  997. package/lib/resources/returns.js +4 -4
  998. package/lib/resources/satispay_gateways.cjs +5 -5
  999. package/lib/resources/satispay_gateways.d.cts +2 -2
  1000. package/lib/resources/satispay_gateways.d.ts +1 -1
  1001. package/lib/resources/satispay_gateways.js +4 -4
  1002. package/lib/resources/satispay_payments.cjs +5 -5
  1003. package/lib/resources/satispay_payments.d.cts +2 -2
  1004. package/lib/resources/satispay_payments.d.ts +1 -1
  1005. package/lib/resources/satispay_payments.js +4 -4
  1006. package/lib/resources/shipment_line_items.cjs +5 -5
  1007. package/lib/resources/shipment_line_items.d.cts +2 -2
  1008. package/lib/resources/shipment_line_items.d.ts +1 -1
  1009. package/lib/resources/shipment_line_items.js +4 -4
  1010. package/lib/resources/shipments.cjs +5 -5
  1011. package/lib/resources/shipments.d.cts +2 -2
  1012. package/lib/resources/shipments.d.ts +1 -1
  1013. package/lib/resources/shipments.js +4 -4
  1014. package/lib/resources/shipping_categories.cjs +5 -5
  1015. package/lib/resources/shipping_categories.d.cts +2 -2
  1016. package/lib/resources/shipping_categories.d.ts +1 -1
  1017. package/lib/resources/shipping_categories.js +4 -4
  1018. package/lib/resources/shipping_method_tiers.cjs +5 -5
  1019. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  1020. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  1021. package/lib/resources/shipping_method_tiers.js +4 -4
  1022. package/lib/resources/shipping_methods.cjs +5 -5
  1023. package/lib/resources/shipping_methods.d.cts +2 -2
  1024. package/lib/resources/shipping_methods.d.ts +1 -1
  1025. package/lib/resources/shipping_methods.js +4 -4
  1026. package/lib/resources/shipping_weight_tiers.cjs +5 -5
  1027. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  1028. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  1029. package/lib/resources/shipping_weight_tiers.js +4 -4
  1030. package/lib/resources/shipping_zones.cjs +5 -5
  1031. package/lib/resources/shipping_zones.d.cts +2 -2
  1032. package/lib/resources/shipping_zones.d.ts +1 -1
  1033. package/lib/resources/shipping_zones.js +4 -4
  1034. package/lib/resources/sku_list_items.cjs +5 -5
  1035. package/lib/resources/sku_list_items.d.cts +2 -2
  1036. package/lib/resources/sku_list_items.d.ts +1 -1
  1037. package/lib/resources/sku_list_items.js +4 -4
  1038. package/lib/resources/sku_list_promotion_rules.cjs +5 -5
  1039. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  1040. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  1041. package/lib/resources/sku_list_promotion_rules.js +4 -4
  1042. package/lib/resources/sku_lists.cjs +5 -5
  1043. package/lib/resources/sku_lists.d.cts +2 -2
  1044. package/lib/resources/sku_lists.d.ts +1 -1
  1045. package/lib/resources/sku_lists.js +4 -4
  1046. package/lib/resources/sku_options.cjs +5 -5
  1047. package/lib/resources/sku_options.d.cts +2 -2
  1048. package/lib/resources/sku_options.d.ts +1 -1
  1049. package/lib/resources/sku_options.js +4 -4
  1050. package/lib/resources/skus.cjs +5 -5
  1051. package/lib/resources/skus.d.cts +2 -2
  1052. package/lib/resources/skus.d.ts +1 -1
  1053. package/lib/resources/skus.js +4 -4
  1054. package/lib/resources/stock_items.cjs +5 -5
  1055. package/lib/resources/stock_items.d.cts +2 -2
  1056. package/lib/resources/stock_items.d.ts +1 -1
  1057. package/lib/resources/stock_items.js +4 -4
  1058. package/lib/resources/stock_line_items.cjs +5 -5
  1059. package/lib/resources/stock_line_items.d.cts +2 -2
  1060. package/lib/resources/stock_line_items.d.ts +1 -1
  1061. package/lib/resources/stock_line_items.js +4 -4
  1062. package/lib/resources/stock_locations.cjs +5 -5
  1063. package/lib/resources/stock_locations.d.cts +2 -2
  1064. package/lib/resources/stock_locations.d.ts +1 -1
  1065. package/lib/resources/stock_locations.js +4 -4
  1066. package/lib/resources/stock_reservations.cjs +5 -5
  1067. package/lib/resources/stock_reservations.d.cts +2 -2
  1068. package/lib/resources/stock_reservations.d.ts +1 -1
  1069. package/lib/resources/stock_reservations.js +4 -4
  1070. package/lib/resources/stock_transfers.cjs +5 -5
  1071. package/lib/resources/stock_transfers.d.cts +2 -2
  1072. package/lib/resources/stock_transfers.d.ts +1 -1
  1073. package/lib/resources/stock_transfers.js +4 -4
  1074. package/lib/resources/stores.cjs +5 -5
  1075. package/lib/resources/stores.d.cts +2 -2
  1076. package/lib/resources/stores.d.ts +1 -1
  1077. package/lib/resources/stores.js +4 -4
  1078. package/lib/resources/stripe_gateways.cjs +5 -5
  1079. package/lib/resources/stripe_gateways.d.cts +2 -2
  1080. package/lib/resources/stripe_gateways.d.ts +1 -1
  1081. package/lib/resources/stripe_gateways.js +4 -4
  1082. package/lib/resources/stripe_payments.cjs +5 -5
  1083. package/lib/resources/stripe_payments.d.cts +2 -2
  1084. package/lib/resources/stripe_payments.d.ts +1 -1
  1085. package/lib/resources/stripe_payments.js +4 -4
  1086. package/lib/resources/stripe_tax_accounts.cjs +5 -5
  1087. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  1088. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  1089. package/lib/resources/stripe_tax_accounts.js +4 -4
  1090. package/lib/resources/subscription_models.cjs +5 -5
  1091. package/lib/resources/subscription_models.d.cts +2 -2
  1092. package/lib/resources/subscription_models.d.ts +1 -1
  1093. package/lib/resources/subscription_models.js +4 -4
  1094. package/lib/resources/tags.cjs +5 -5
  1095. package/lib/resources/tags.d.cts +2 -2
  1096. package/lib/resources/tags.d.ts +1 -1
  1097. package/lib/resources/tags.js +4 -4
  1098. package/lib/resources/talon_one_accounts.cjs +5 -5
  1099. package/lib/resources/talon_one_accounts.d.cts +2 -2
  1100. package/lib/resources/talon_one_accounts.d.ts +1 -1
  1101. package/lib/resources/talon_one_accounts.js +4 -4
  1102. package/lib/resources/tax_calculators.cjs +5 -5
  1103. package/lib/resources/tax_calculators.d.cts +2 -2
  1104. package/lib/resources/tax_calculators.d.ts +1 -1
  1105. package/lib/resources/tax_calculators.js +4 -4
  1106. package/lib/resources/tax_categories.cjs +5 -5
  1107. package/lib/resources/tax_categories.d.cts +2 -2
  1108. package/lib/resources/tax_categories.d.ts +1 -1
  1109. package/lib/resources/tax_categories.js +4 -4
  1110. package/lib/resources/tax_rules.cjs +5 -5
  1111. package/lib/resources/tax_rules.d.cts +2 -2
  1112. package/lib/resources/tax_rules.d.ts +1 -1
  1113. package/lib/resources/tax_rules.js +4 -4
  1114. package/lib/resources/taxjar_accounts.cjs +5 -5
  1115. package/lib/resources/taxjar_accounts.d.cts +2 -2
  1116. package/lib/resources/taxjar_accounts.d.ts +1 -1
  1117. package/lib/resources/taxjar_accounts.js +4 -4
  1118. package/lib/resources/transactions.cjs +5 -5
  1119. package/lib/resources/transactions.d.cts +2 -2
  1120. package/lib/resources/transactions.d.ts +1 -1
  1121. package/lib/resources/transactions.js +4 -4
  1122. package/lib/resources/vertex_accounts.cjs +5 -5
  1123. package/lib/resources/vertex_accounts.d.cts +2 -2
  1124. package/lib/resources/vertex_accounts.d.ts +1 -1
  1125. package/lib/resources/vertex_accounts.js +4 -4
  1126. package/lib/resources/voids.cjs +5 -5
  1127. package/lib/resources/voids.d.cts +2 -2
  1128. package/lib/resources/voids.d.ts +1 -1
  1129. package/lib/resources/voids.js +4 -4
  1130. package/lib/resources/webhooks.cjs +5 -5
  1131. package/lib/resources/webhooks.d.cts +2 -2
  1132. package/lib/resources/webhooks.d.ts +1 -1
  1133. package/lib/resources/webhooks.js +4 -4
  1134. package/lib/resources/wire_transfers.cjs +5 -5
  1135. package/lib/resources/wire_transfers.d.cts +2 -2
  1136. package/lib/resources/wire_transfers.d.ts +1 -1
  1137. package/lib/resources/wire_transfers.js +4 -4
  1138. package/lib/single-client.cjs +280 -281
  1139. package/lib/single-client.cjs.map +1 -1
  1140. package/lib/single-client.d.cts +15 -5
  1141. package/lib/single-client.d.ts +13 -2
  1142. package/lib/single-client.js +146 -139
  1143. package/lib/single-client.js.map +1 -1
  1144. package/lib/static.cjs +6 -6
  1145. package/lib/static.d.cts +1 -1
  1146. package/lib/static.d.ts +1 -1
  1147. package/lib/static.js +5 -5
  1148. package/lib/version.cjs +3 -3
  1149. package/lib/version.js +1 -1
  1150. package/package.json +1 -1
  1151. package/lib/api-BrD0VGs7.d.ts +0 -18490
  1152. package/lib/api-p_JJnFXy.d.cts +0 -18490
  1153. package/lib/chunk-27JY4ULD.js +0 -45
  1154. package/lib/chunk-27JY4ULD.js.map +0 -1
  1155. package/lib/chunk-2A2L2CKF.js +0 -75
  1156. package/lib/chunk-2A2L2CKF.js.map +0 -1
  1157. package/lib/chunk-2FPWAQJJ.js +0 -96
  1158. package/lib/chunk-2FPWAQJJ.js.map +0 -1
  1159. package/lib/chunk-2KTN65O5.cjs +0 -70
  1160. package/lib/chunk-2KTN65O5.cjs.map +0 -1
  1161. package/lib/chunk-2PFTQHFT.js +0 -79
  1162. package/lib/chunk-2PFTQHFT.js.map +0 -1
  1163. package/lib/chunk-2SPJZDGK.js +0 -80
  1164. package/lib/chunk-2SPJZDGK.js.map +0 -1
  1165. package/lib/chunk-2YNRSRZU.cjs +0 -102
  1166. package/lib/chunk-2YNRSRZU.cjs.map +0 -1
  1167. package/lib/chunk-32JKZIM5.js +0 -68
  1168. package/lib/chunk-32JKZIM5.js.map +0 -1
  1169. package/lib/chunk-36O6EEZT.cjs +0 -53
  1170. package/lib/chunk-36O6EEZT.cjs.map +0 -1
  1171. package/lib/chunk-37KCG4S4.cjs +0 -79
  1172. package/lib/chunk-37KCG4S4.cjs.map +0 -1
  1173. package/lib/chunk-3DQIXZAG.js +0 -129
  1174. package/lib/chunk-3DQIXZAG.js.map +0 -1
  1175. package/lib/chunk-3FZPEWUV.cjs +0 -91
  1176. package/lib/chunk-3FZPEWUV.cjs.map +0 -1
  1177. package/lib/chunk-3M6XJ7NN.js +0 -100
  1178. package/lib/chunk-3M6XJ7NN.js.map +0 -1
  1179. package/lib/chunk-3NBRFRLX.cjs +0 -125
  1180. package/lib/chunk-3NBRFRLX.cjs.map +0 -1
  1181. package/lib/chunk-3OLFEEMC.js +0 -100
  1182. package/lib/chunk-3OLFEEMC.js.map +0 -1
  1183. package/lib/chunk-3QD74K3Q.cjs +0 -53
  1184. package/lib/chunk-3QD74K3Q.cjs.map +0 -1
  1185. package/lib/chunk-3SW2ASSY.js +0 -60
  1186. package/lib/chunk-3SW2ASSY.js.map +0 -1
  1187. package/lib/chunk-3XPISUB4.js +0 -42
  1188. package/lib/chunk-3XPISUB4.js.map +0 -1
  1189. package/lib/chunk-47ZNGHD4.js +0 -77
  1190. package/lib/chunk-47ZNGHD4.js.map +0 -1
  1191. package/lib/chunk-4PQ23R44.cjs +0 -62
  1192. package/lib/chunk-4PQ23R44.cjs.map +0 -1
  1193. package/lib/chunk-4VNGP4WP.js +0 -100
  1194. package/lib/chunk-4VNGP4WP.js.map +0 -1
  1195. package/lib/chunk-4XVOXNET.cjs +0 -70
  1196. package/lib/chunk-4XVOXNET.cjs.map +0 -1
  1197. package/lib/chunk-4YWYHTLB.js +0 -68
  1198. package/lib/chunk-4YWYHTLB.js.map +0 -1
  1199. package/lib/chunk-55KBBWVE.cjs +0 -62
  1200. package/lib/chunk-55KBBWVE.cjs.map +0 -1
  1201. package/lib/chunk-5BZCMLOG.cjs +0 -38
  1202. package/lib/chunk-5BZCMLOG.cjs.map +0 -1
  1203. package/lib/chunk-5DKOODMA.cjs +0 -91
  1204. package/lib/chunk-5DKOODMA.cjs.map +0 -1
  1205. package/lib/chunk-5MSW2F5A.js +0 -58
  1206. package/lib/chunk-5MSW2F5A.js.map +0 -1
  1207. package/lib/chunk-5NDRJ2CN.cjs +0 -79
  1208. package/lib/chunk-5NDRJ2CN.cjs.map +0 -1
  1209. package/lib/chunk-5RDGD6N2.js +0 -82
  1210. package/lib/chunk-5RDGD6N2.js.map +0 -1
  1211. package/lib/chunk-5TLQ5NEK.js +0 -60
  1212. package/lib/chunk-5TLQ5NEK.js.map +0 -1
  1213. package/lib/chunk-5WLJRGB6.cjs +0 -89
  1214. package/lib/chunk-5WLJRGB6.cjs.map +0 -1
  1215. package/lib/chunk-5WSJNCYM.cjs +0 -44
  1216. package/lib/chunk-5WSJNCYM.cjs.map +0 -1
  1217. package/lib/chunk-5YY7PVEO.js +0 -191
  1218. package/lib/chunk-5YY7PVEO.js.map +0 -1
  1219. package/lib/chunk-5Z5QSUVM.cjs +0 -71
  1220. package/lib/chunk-5Z5QSUVM.cjs.map +0 -1
  1221. package/lib/chunk-5ZPUTH6R.cjs +0 -62
  1222. package/lib/chunk-5ZPUTH6R.cjs.map +0 -1
  1223. package/lib/chunk-65HWKNSV.cjs +0 -71
  1224. package/lib/chunk-65HWKNSV.cjs.map +0 -1
  1225. package/lib/chunk-6BUTICKQ.js +0 -75
  1226. package/lib/chunk-6BUTICKQ.js.map +0 -1
  1227. package/lib/chunk-6F3SJXD3.cjs +0 -62
  1228. package/lib/chunk-6F3SJXD3.cjs.map +0 -1
  1229. package/lib/chunk-6JIKAK5C.js +0 -77
  1230. package/lib/chunk-6JIKAK5C.js.map +0 -1
  1231. package/lib/chunk-6JP6GEER.cjs +0 -70
  1232. package/lib/chunk-6JP6GEER.cjs.map +0 -1
  1233. package/lib/chunk-6L3AE23J.cjs +0 -193
  1234. package/lib/chunk-6L3AE23J.cjs.map +0 -1
  1235. package/lib/chunk-6NPLS5UO.cjs +0 -60
  1236. package/lib/chunk-6NPLS5UO.cjs.map +0 -1
  1237. package/lib/chunk-6R6A75PL.cjs +0 -712
  1238. package/lib/chunk-6R6A75PL.cjs.map +0 -1
  1239. package/lib/chunk-6UATBFH6.cjs +0 -614
  1240. package/lib/chunk-6UATBFH6.cjs.map +0 -1
  1241. package/lib/chunk-7CMX56OH.cjs +0 -62
  1242. package/lib/chunk-7CMX56OH.cjs.map +0 -1
  1243. package/lib/chunk-7CZ5BGBN.js +0 -60
  1244. package/lib/chunk-7CZ5BGBN.js.map +0 -1
  1245. package/lib/chunk-7EGB7KLE.cjs +0 -70
  1246. package/lib/chunk-7EGB7KLE.cjs.map +0 -1
  1247. package/lib/chunk-7FXEYH5P.js +0 -77
  1248. package/lib/chunk-7FXEYH5P.js.map +0 -1
  1249. package/lib/chunk-7HJJTBA5.cjs +0 -88
  1250. package/lib/chunk-7HJJTBA5.cjs.map +0 -1
  1251. package/lib/chunk-7J7U2OVV.cjs +0 -44
  1252. package/lib/chunk-7J7U2OVV.cjs.map +0 -1
  1253. package/lib/chunk-7KAEFUHR.js +0 -58
  1254. package/lib/chunk-7KAEFUHR.js.map +0 -1
  1255. package/lib/chunk-7LWJU3MC.js +0 -77
  1256. package/lib/chunk-7LWJU3MC.js.map +0 -1
  1257. package/lib/chunk-7MKSY64F.cjs +0 -77
  1258. package/lib/chunk-7MKSY64F.cjs.map +0 -1
  1259. package/lib/chunk-7NXUTO5Z.cjs +0 -70
  1260. package/lib/chunk-7NXUTO5Z.cjs.map +0 -1
  1261. package/lib/chunk-7YLXO22M.js +0 -78
  1262. package/lib/chunk-7YLXO22M.js.map +0 -1
  1263. package/lib/chunk-7ZNP5ZRX.cjs +0 -182
  1264. package/lib/chunk-7ZNP5ZRX.cjs.map +0 -1
  1265. package/lib/chunk-A5MOUKBT.cjs +0 -81
  1266. package/lib/chunk-A5MOUKBT.cjs.map +0 -1
  1267. package/lib/chunk-ACLWKVZH.cjs +0 -179
  1268. package/lib/chunk-ACLWKVZH.cjs.map +0 -1
  1269. package/lib/chunk-AH4P3KIO.cjs +0 -198
  1270. package/lib/chunk-AH4P3KIO.cjs.map +0 -1
  1271. package/lib/chunk-AIQS4XI7.cjs +0 -70
  1272. package/lib/chunk-AIQS4XI7.cjs.map +0 -1
  1273. package/lib/chunk-AQ6OHDUF.js +0 -709
  1274. package/lib/chunk-AQ6OHDUF.js.map +0 -1
  1275. package/lib/chunk-ARM4HSQI.cjs +0 -98
  1276. package/lib/chunk-ARM4HSQI.cjs.map +0 -1
  1277. package/lib/chunk-AUQHYYKJ.cjs +0 -60
  1278. package/lib/chunk-AUQHYYKJ.cjs.map +0 -1
  1279. package/lib/chunk-AXXSDR45.js +0 -96
  1280. package/lib/chunk-AXXSDR45.js.map +0 -1
  1281. package/lib/chunk-AYXJJKWA.js +0 -75
  1282. package/lib/chunk-AYXJJKWA.js.map +0 -1
  1283. package/lib/chunk-B5P3GWI5.js +0 -67
  1284. package/lib/chunk-B5P3GWI5.js.map +0 -1
  1285. package/lib/chunk-B5XPPQC7.cjs +0 -70
  1286. package/lib/chunk-B5XPPQC7.cjs.map +0 -1
  1287. package/lib/chunk-BD3ASC6K.cjs +0 -84
  1288. package/lib/chunk-BD3ASC6K.cjs.map +0 -1
  1289. package/lib/chunk-BDZQCGCJ.cjs +0 -77
  1290. package/lib/chunk-BDZQCGCJ.cjs.map +0 -1
  1291. package/lib/chunk-BEANHXLX.js +0 -612
  1292. package/lib/chunk-BEANHXLX.js.map +0 -1
  1293. package/lib/chunk-BF5HDO3M.cjs +0 -70
  1294. package/lib/chunk-BF5HDO3M.cjs.map +0 -1
  1295. package/lib/chunk-BFQFVHLA.cjs +0 -94
  1296. package/lib/chunk-BFQFVHLA.cjs.map +0 -1
  1297. package/lib/chunk-BTFN2FBP.js +0 -69
  1298. package/lib/chunk-BTFN2FBP.js.map +0 -1
  1299. package/lib/chunk-BY57BZ6S.cjs +0 -79
  1300. package/lib/chunk-BY57BZ6S.cjs.map +0 -1
  1301. package/lib/chunk-CDWXHURD.js +0 -96
  1302. package/lib/chunk-CDWXHURD.js.map +0 -1
  1303. package/lib/chunk-CEAYZF3Z.js +0 -120
  1304. package/lib/chunk-CEAYZF3Z.js.map +0 -1
  1305. package/lib/chunk-CEBLLOSH.cjs +0 -79
  1306. package/lib/chunk-CEBLLOSH.cjs.map +0 -1
  1307. package/lib/chunk-CEZGXW2V.cjs +0 -102
  1308. package/lib/chunk-CEZGXW2V.cjs.map +0 -1
  1309. package/lib/chunk-CITYMGFY.js +0 -78
  1310. package/lib/chunk-CITYMGFY.js.map +0 -1
  1311. package/lib/chunk-CK2UROFT.js +0 -68
  1312. package/lib/chunk-CK2UROFT.js.map +0 -1
  1313. package/lib/chunk-CMQ4CS3C.cjs +0 -84
  1314. package/lib/chunk-CMQ4CS3C.cjs.map +0 -1
  1315. package/lib/chunk-CMRTIKRS.cjs +0 -98
  1316. package/lib/chunk-CMRTIKRS.cjs.map +0 -1
  1317. package/lib/chunk-COCVOAAR.js +0 -168
  1318. package/lib/chunk-COCVOAAR.js.map +0 -1
  1319. package/lib/chunk-CPC4EDUN.js +0 -60
  1320. package/lib/chunk-CPC4EDUN.js.map +0 -1
  1321. package/lib/chunk-CQMGOKLY.js +0 -89
  1322. package/lib/chunk-CQMGOKLY.js.map +0 -1
  1323. package/lib/chunk-D433AVZU.cjs +0 -61
  1324. package/lib/chunk-D433AVZU.cjs.map +0 -1
  1325. package/lib/chunk-DGMBHG2D.cjs +0 -122
  1326. package/lib/chunk-DGMBHG2D.cjs.map +0 -1
  1327. package/lib/chunk-DH4T5JRD.cjs +0 -47
  1328. package/lib/chunk-DH4T5JRD.cjs.map +0 -1
  1329. package/lib/chunk-DIDUU3HJ.cjs +0 -98
  1330. package/lib/chunk-DIDUU3HJ.cjs.map +0 -1
  1331. package/lib/chunk-DJRBZJME.js +0 -116
  1332. package/lib/chunk-DJRBZJME.js.map +0 -1
  1333. package/lib/chunk-DN2TPVPQ.js +0 -84
  1334. package/lib/chunk-DN2TPVPQ.js.map +0 -1
  1335. package/lib/chunk-DVXTCITU.js +0 -86
  1336. package/lib/chunk-DVXTCITU.js.map +0 -1
  1337. package/lib/chunk-DXMFGRLZ.js +0 -83
  1338. package/lib/chunk-DXMFGRLZ.js.map +0 -1
  1339. package/lib/chunk-E5XRQXA3.cjs +0 -193
  1340. package/lib/chunk-E5XRQXA3.cjs.map +0 -1
  1341. package/lib/chunk-E6G7T2X4.cjs +0 -14
  1342. package/lib/chunk-E6G7T2X4.cjs.map +0 -1
  1343. package/lib/chunk-ECE464P6.js +0 -68
  1344. package/lib/chunk-ECE464P6.js.map +0 -1
  1345. package/lib/chunk-ECFID6YL.cjs +0 -179
  1346. package/lib/chunk-ECFID6YL.cjs.map +0 -1
  1347. package/lib/chunk-EG2D35UQ.js +0 -77
  1348. package/lib/chunk-EG2D35UQ.js.map +0 -1
  1349. package/lib/chunk-EIPT5P4Q.cjs +0 -120
  1350. package/lib/chunk-EIPT5P4Q.cjs.map +0 -1
  1351. package/lib/chunk-EJXIWONM.cjs +0 -88
  1352. package/lib/chunk-EJXIWONM.cjs.map +0 -1
  1353. package/lib/chunk-ELXHUTOX.js +0 -82
  1354. package/lib/chunk-ELXHUTOX.js.map +0 -1
  1355. package/lib/chunk-ENLBWOGO.cjs +0 -86
  1356. package/lib/chunk-ENLBWOGO.cjs.map +0 -1
  1357. package/lib/chunk-ENY5ZEDH.js +0 -65
  1358. package/lib/chunk-ENY5ZEDH.js.map +0 -1
  1359. package/lib/chunk-EQQVT4VQ.js +0 -77
  1360. package/lib/chunk-EQQVT4VQ.js.map +0 -1
  1361. package/lib/chunk-ESIW5CXF.js +0 -91
  1362. package/lib/chunk-ESIW5CXF.js.map +0 -1
  1363. package/lib/chunk-EWUUQ4L5.cjs +0 -62
  1364. package/lib/chunk-EWUUQ4L5.cjs.map +0 -1
  1365. package/lib/chunk-F5BYJ3P2.js +0 -59
  1366. package/lib/chunk-F5BYJ3P2.js.map +0 -1
  1367. package/lib/chunk-F7QAC5GG.js +0 -33
  1368. package/lib/chunk-F7QAC5GG.js.map +0 -1
  1369. package/lib/chunk-F7T5ONOF.js +0 -163
  1370. package/lib/chunk-F7T5ONOF.js.map +0 -1
  1371. package/lib/chunk-FCBQU5M7.js +0 -79
  1372. package/lib/chunk-FCBQU5M7.js.map +0 -1
  1373. package/lib/chunk-FCHVA2JJ.cjs +0 -70
  1374. package/lib/chunk-FCHVA2JJ.cjs.map +0 -1
  1375. package/lib/chunk-FEANKEWU.cjs +0 -52
  1376. package/lib/chunk-FEANKEWU.cjs.map +0 -1
  1377. package/lib/chunk-FHZ4JRXD.js +0 -118
  1378. package/lib/chunk-FHZ4JRXD.js.map +0 -1
  1379. package/lib/chunk-FIFWQWWX.js +0 -79
  1380. package/lib/chunk-FIFWQWWX.js.map +0 -1
  1381. package/lib/chunk-FIOQCCDK.js +0 -53
  1382. package/lib/chunk-FIOQCCDK.js.map +0 -1
  1383. package/lib/chunk-FJUOPWWJ.js +0 -77
  1384. package/lib/chunk-FJUOPWWJ.js.map +0 -1
  1385. package/lib/chunk-FKZUAC4B.cjs +0 -79
  1386. package/lib/chunk-FKZUAC4B.cjs.map +0 -1
  1387. package/lib/chunk-FRDOPI4T.cjs +0 -79
  1388. package/lib/chunk-FRDOPI4T.cjs.map +0 -1
  1389. package/lib/chunk-FVWXA45V.cjs +0 -179
  1390. package/lib/chunk-FVWXA45V.cjs.map +0 -1
  1391. package/lib/chunk-G2AIQH2C.js +0 -60
  1392. package/lib/chunk-G2AIQH2C.js.map +0 -1
  1393. package/lib/chunk-G34UCKUZ.cjs +0 -91
  1394. package/lib/chunk-G34UCKUZ.cjs.map +0 -1
  1395. package/lib/chunk-G4LJVHIH.js +0 -42
  1396. package/lib/chunk-G4LJVHIH.js.map +0 -1
  1397. package/lib/chunk-G6D5G6IF.cjs +0 -166
  1398. package/lib/chunk-G6D5G6IF.cjs.map +0 -1
  1399. package/lib/chunk-GGISBFEU.cjs +0 -69
  1400. package/lib/chunk-GGISBFEU.cjs.map +0 -1
  1401. package/lib/chunk-GGZNCXGR.js +0 -24
  1402. package/lib/chunk-GGZNCXGR.js.map +0 -1
  1403. package/lib/chunk-GINNGSFR.cjs +0 -120
  1404. package/lib/chunk-GINNGSFR.cjs.map +0 -1
  1405. package/lib/chunk-GNSSCO7B.js +0 -38
  1406. package/lib/chunk-GNSSCO7B.js.map +0 -1
  1407. package/lib/chunk-GOF6YS2G.js +0 -241
  1408. package/lib/chunk-GOF6YS2G.js.map +0 -1
  1409. package/lib/chunk-GOK6KXUU.cjs +0 -52
  1410. package/lib/chunk-GOK6KXUU.cjs.map +0 -1
  1411. package/lib/chunk-GQNMEV3Q.cjs +0 -243
  1412. package/lib/chunk-GQNMEV3Q.cjs.map +0 -1
  1413. package/lib/chunk-GQU2VL6D.js +0 -59
  1414. package/lib/chunk-GQU2VL6D.js.map +0 -1
  1415. package/lib/chunk-GU6AYW56.cjs +0 -118
  1416. package/lib/chunk-GU6AYW56.cjs.map +0 -1
  1417. package/lib/chunk-GYKGN67Z.cjs +0 -70
  1418. package/lib/chunk-GYKGN67Z.cjs.map +0 -1
  1419. package/lib/chunk-H2SPYNQJ.js +0 -68
  1420. package/lib/chunk-H2SPYNQJ.js.map +0 -1
  1421. package/lib/chunk-H3JUBJ6N.js +0 -68
  1422. package/lib/chunk-H3JUBJ6N.js.map +0 -1
  1423. package/lib/chunk-HBQRDVGM.cjs +0 -79
  1424. package/lib/chunk-HBQRDVGM.cjs.map +0 -1
  1425. package/lib/chunk-HEL2QWYR.js +0 -196
  1426. package/lib/chunk-HEL2QWYR.js.map +0 -1
  1427. package/lib/chunk-HFIPME7H.cjs +0 -86
  1428. package/lib/chunk-HFIPME7H.cjs.map +0 -1
  1429. package/lib/chunk-HI4ESMWV.cjs +0 -44
  1430. package/lib/chunk-HI4ESMWV.cjs.map +0 -1
  1431. package/lib/chunk-HKHSTGP4.cjs +0 -120
  1432. package/lib/chunk-HKHSTGP4.cjs.map +0 -1
  1433. package/lib/chunk-HLMRSUWY.cjs +0 -88
  1434. package/lib/chunk-HLMRSUWY.cjs.map +0 -1
  1435. package/lib/chunk-HXHL7HRZ.cjs +0 -179
  1436. package/lib/chunk-HXHL7HRZ.cjs.map +0 -1
  1437. package/lib/chunk-HZMMDAUQ.cjs +0 -179
  1438. package/lib/chunk-HZMMDAUQ.cjs.map +0 -1
  1439. package/lib/chunk-I2JMQPUT.js +0 -42
  1440. package/lib/chunk-I2JMQPUT.js.map +0 -1
  1441. package/lib/chunk-I5EJCLGC.js +0 -51
  1442. package/lib/chunk-I5EJCLGC.js.map +0 -1
  1443. package/lib/chunk-I6QTNC6Y.cjs +0 -81
  1444. package/lib/chunk-I6QTNC6Y.cjs.map +0 -1
  1445. package/lib/chunk-IBQCEBT3.cjs +0 -96
  1446. package/lib/chunk-IBQCEBT3.cjs.map +0 -1
  1447. package/lib/chunk-IC7XKJ55.cjs +0 -61
  1448. package/lib/chunk-IC7XKJ55.cjs.map +0 -1
  1449. package/lib/chunk-ICFJKNCL.js +0 -89
  1450. package/lib/chunk-ICFJKNCL.js.map +0 -1
  1451. package/lib/chunk-IJS5RGNW.js +0 -77
  1452. package/lib/chunk-IJS5RGNW.js.map +0 -1
  1453. package/lib/chunk-ISR6D4PG.js +0 -68
  1454. package/lib/chunk-ISR6D4PG.js.map +0 -1
  1455. package/lib/chunk-IXKNMEYJ.js +0 -82
  1456. package/lib/chunk-IXKNMEYJ.js.map +0 -1
  1457. package/lib/chunk-J6K5KGCO.js +0 -84
  1458. package/lib/chunk-J6K5KGCO.js.map +0 -1
  1459. package/lib/chunk-JBZ3YPHB.js +0 -60
  1460. package/lib/chunk-JBZ3YPHB.js.map +0 -1
  1461. package/lib/chunk-JGMO7E75.cjs +0 -193
  1462. package/lib/chunk-JGMO7E75.cjs.map +0 -1
  1463. package/lib/chunk-JHK2ADFO.js +0 -116
  1464. package/lib/chunk-JHK2ADFO.js.map +0 -1
  1465. package/lib/chunk-JO3634ZB.cjs +0 -84
  1466. package/lib/chunk-JO3634ZB.cjs.map +0 -1
  1467. package/lib/chunk-JUZQNX6I.js +0 -42
  1468. package/lib/chunk-JUZQNX6I.js.map +0 -1
  1469. package/lib/chunk-JYEJBSLC.cjs +0 -91
  1470. package/lib/chunk-JYEJBSLC.cjs.map +0 -1
  1471. package/lib/chunk-K4W33IZP.cjs +0 -70
  1472. package/lib/chunk-K4W33IZP.cjs.map +0 -1
  1473. package/lib/chunk-KBQOXEYZ.cjs +0 -81
  1474. package/lib/chunk-KBQOXEYZ.cjs.map +0 -1
  1475. package/lib/chunk-KIYHIGIY.cjs +0 -179
  1476. package/lib/chunk-KIYHIGIY.cjs.map +0 -1
  1477. package/lib/chunk-KN6QR2VT.cjs +0 -79
  1478. package/lib/chunk-KN6QR2VT.cjs.map +0 -1
  1479. package/lib/chunk-LEVF3A5F.cjs +0 -93
  1480. package/lib/chunk-LEVF3A5F.cjs.map +0 -1
  1481. package/lib/chunk-LMJZ2K6P.js +0 -77
  1482. package/lib/chunk-LMJZ2K6P.js.map +0 -1
  1483. package/lib/chunk-LSBBCEX5.js +0 -305
  1484. package/lib/chunk-LSBBCEX5.js.map +0 -1
  1485. package/lib/chunk-LSH2CQLI.js +0 -68
  1486. package/lib/chunk-LSH2CQLI.js.map +0 -1
  1487. package/lib/chunk-LV5MM4CO.js +0 -118
  1488. package/lib/chunk-LV5MM4CO.js.map +0 -1
  1489. package/lib/chunk-LVETDD3O.cjs +0 -67
  1490. package/lib/chunk-LVETDD3O.cjs.map +0 -1
  1491. package/lib/chunk-LYKCJHYR.js +0 -94
  1492. package/lib/chunk-LYKCJHYR.js.map +0 -1
  1493. package/lib/chunk-M2L4OZJ6.cjs +0 -88
  1494. package/lib/chunk-M2L4OZJ6.cjs.map +0 -1
  1495. package/lib/chunk-MF5IYI5N.js +0 -11
  1496. package/lib/chunk-MF5IYI5N.js.map +0 -1
  1497. package/lib/chunk-MFEIFGUU.js +0 -124
  1498. package/lib/chunk-MFEIFGUU.js.map +0 -1
  1499. package/lib/chunk-MIJ6DRSS.js +0 -51
  1500. package/lib/chunk-MIJ6DRSS.js.map +0 -1
  1501. package/lib/chunk-MLMK3BYP.js +0 -27
  1502. package/lib/chunk-MLMK3BYP.js.map +0 -1
  1503. package/lib/chunk-MN7T5QVU.cjs +0 -70
  1504. package/lib/chunk-MN7T5QVU.cjs.map +0 -1
  1505. package/lib/chunk-MO3ADFGB.js +0 -50
  1506. package/lib/chunk-MO3ADFGB.js.map +0 -1
  1507. package/lib/chunk-MWQLDBWJ.js +0 -51
  1508. package/lib/chunk-MWQLDBWJ.js.map +0 -1
  1509. package/lib/chunk-N25XG3WB.cjs +0 -77
  1510. package/lib/chunk-N25XG3WB.cjs.map +0 -1
  1511. package/lib/chunk-N7HMWUKO.js +0 -177
  1512. package/lib/chunk-N7HMWUKO.js.map +0 -1
  1513. package/lib/chunk-N7RIOQEE.cjs +0 -205
  1514. package/lib/chunk-N7RIOQEE.cjs.map +0 -1
  1515. package/lib/chunk-NCHSV74A.js +0 -180
  1516. package/lib/chunk-NCHSV74A.js.map +0 -1
  1517. package/lib/chunk-NHCNGRUW.js +0 -321
  1518. package/lib/chunk-NHCNGRUW.js.map +0 -1
  1519. package/lib/chunk-NJJ3AQFY.cjs +0 -75
  1520. package/lib/chunk-NJJ3AQFY.cjs.map +0 -1
  1521. package/lib/chunk-NL47AA7V.cjs +0 -323
  1522. package/lib/chunk-NL47AA7V.cjs.map +0 -1
  1523. package/lib/chunk-NXWBNR4A.js +0 -75
  1524. package/lib/chunk-NXWBNR4A.js.map +0 -1
  1525. package/lib/chunk-NZ5R6RZP.js +0 -113
  1526. package/lib/chunk-NZ5R6RZP.js.map +0 -1
  1527. package/lib/chunk-O4UBVFXZ.cjs +0 -80
  1528. package/lib/chunk-O4UBVFXZ.cjs.map +0 -1
  1529. package/lib/chunk-O5NLCRMD.cjs +0 -131
  1530. package/lib/chunk-O5NLCRMD.cjs.map +0 -1
  1531. package/lib/chunk-O7ZCUDYF.js +0 -191
  1532. package/lib/chunk-O7ZCUDYF.js.map +0 -1
  1533. package/lib/chunk-OGZMICIO.cjs +0 -62
  1534. package/lib/chunk-OGZMICIO.cjs.map +0 -1
  1535. package/lib/chunk-OI4ZCY65.js +0 -68
  1536. package/lib/chunk-OI4ZCY65.js.map +0 -1
  1537. package/lib/chunk-OJGNL5XA.js +0 -87
  1538. package/lib/chunk-OJGNL5XA.js.map +0 -1
  1539. package/lib/chunk-OKXSPFSZ.js +0 -65
  1540. package/lib/chunk-OKXSPFSZ.js.map +0 -1
  1541. package/lib/chunk-OOS4I2K6.cjs +0 -70
  1542. package/lib/chunk-OOS4I2K6.cjs.map +0 -1
  1543. package/lib/chunk-OTRQ6CRD.cjs +0 -94
  1544. package/lib/chunk-OTRQ6CRD.cjs.map +0 -1
  1545. package/lib/chunk-OVAMOIAR.js +0 -51
  1546. package/lib/chunk-OVAMOIAR.js.map +0 -1
  1547. package/lib/chunk-OXGJX4G5.cjs +0 -79
  1548. package/lib/chunk-OXGJX4G5.cjs.map +0 -1
  1549. package/lib/chunk-OXLZLXNI.js +0 -86
  1550. package/lib/chunk-OXLZLXNI.js.map +0 -1
  1551. package/lib/chunk-OXTZP6XB.js +0 -123
  1552. package/lib/chunk-OXTZP6XB.js.map +0 -1
  1553. package/lib/chunk-OZ6L33P7.cjs +0 -40
  1554. package/lib/chunk-OZ6L33P7.cjs.map +0 -1
  1555. package/lib/chunk-P2IUL4K4.cjs +0 -52
  1556. package/lib/chunk-P2IUL4K4.cjs.map +0 -1
  1557. package/lib/chunk-P7FIQR6P.cjs +0 -91
  1558. package/lib/chunk-P7FIQR6P.cjs.map +0 -1
  1559. package/lib/chunk-PA3XKIYI.cjs +0 -98
  1560. package/lib/chunk-PA3XKIYI.cjs.map +0 -1
  1561. package/lib/chunk-QELDOHCC.cjs +0 -63
  1562. package/lib/chunk-QELDOHCC.cjs.map +0 -1
  1563. package/lib/chunk-QHJ6WOJI.js +0 -69
  1564. package/lib/chunk-QHJ6WOJI.js.map +0 -1
  1565. package/lib/chunk-QIYG7O7V.js +0 -77
  1566. package/lib/chunk-QIYG7O7V.js.map +0 -1
  1567. package/lib/chunk-QM3JEWRN.cjs +0 -93
  1568. package/lib/chunk-QM3JEWRN.cjs.map +0 -1
  1569. package/lib/chunk-QQAD7R24.js +0 -61
  1570. package/lib/chunk-QQAD7R24.js.map +0 -1
  1571. package/lib/chunk-QX4Z7FX4.js +0 -177
  1572. package/lib/chunk-QX4Z7FX4.js.map +0 -1
  1573. package/lib/chunk-QZBOTY6C.js +0 -203
  1574. package/lib/chunk-QZBOTY6C.js.map +0 -1
  1575. package/lib/chunk-R4LYMSQW.cjs +0 -61
  1576. package/lib/chunk-R4LYMSQW.cjs.map +0 -1
  1577. package/lib/chunk-R7MCKMYA.js +0 -177
  1578. package/lib/chunk-R7MCKMYA.js.map +0 -1
  1579. package/lib/chunk-R7PD7BIN.js +0 -164
  1580. package/lib/chunk-R7PD7BIN.js.map +0 -1
  1581. package/lib/chunk-RHVGUEEZ.cjs +0 -82
  1582. package/lib/chunk-RHVGUEEZ.cjs.map +0 -1
  1583. package/lib/chunk-RNVBXM52.cjs +0 -79
  1584. package/lib/chunk-RNVBXM52.cjs.map +0 -1
  1585. package/lib/chunk-ROIDGFBH.js +0 -68
  1586. package/lib/chunk-ROIDGFBH.js.map +0 -1
  1587. package/lib/chunk-RT6CH7MF.js +0 -120
  1588. package/lib/chunk-RT6CH7MF.js.map +0 -1
  1589. package/lib/chunk-RZXG6SYW.js +0 -50
  1590. package/lib/chunk-RZXG6SYW.js.map +0 -1
  1591. package/lib/chunk-S2E6K3CX.js +0 -88
  1592. package/lib/chunk-S2E6K3CX.js.map +0 -1
  1593. package/lib/chunk-S3KPKHRF.cjs +0 -79
  1594. package/lib/chunk-S3KPKHRF.cjs.map +0 -1
  1595. package/lib/chunk-S3PPZ4MN.cjs +0 -170
  1596. package/lib/chunk-S3PPZ4MN.cjs.map +0 -1
  1597. package/lib/chunk-S4N7TNLE.js +0 -132
  1598. package/lib/chunk-S4N7TNLE.js.map +0 -1
  1599. package/lib/chunk-S6LUE4BK.cjs +0 -35
  1600. package/lib/chunk-S6LUE4BK.cjs.map +0 -1
  1601. package/lib/chunk-SAU26L56.js +0 -91
  1602. package/lib/chunk-SAU26L56.js.map +0 -1
  1603. package/lib/chunk-SB36RX2R.cjs +0 -85
  1604. package/lib/chunk-SB36RX2R.cjs.map +0 -1
  1605. package/lib/chunk-SD6TP5QY.cjs +0 -29
  1606. package/lib/chunk-SD6TP5QY.cjs.map +0 -1
  1607. package/lib/chunk-SITF5ZAC.js +0 -68
  1608. package/lib/chunk-SITF5ZAC.js.map +0 -1
  1609. package/lib/chunk-SQTCUWGR.cjs +0 -67
  1610. package/lib/chunk-SQTCUWGR.cjs.map +0 -1
  1611. package/lib/chunk-SSXDR6PH.js +0 -86
  1612. package/lib/chunk-SSXDR6PH.js.map +0 -1
  1613. package/lib/chunk-SYRDEPVH.js +0 -68
  1614. package/lib/chunk-SYRDEPVH.js.map +0 -1
  1615. package/lib/chunk-TBRFFV55.cjs +0 -53
  1616. package/lib/chunk-TBRFFV55.cjs.map +0 -1
  1617. package/lib/chunk-TEOE3WNS.cjs +0 -102
  1618. package/lib/chunk-TEOE3WNS.cjs.map +0 -1
  1619. package/lib/chunk-TI5JILQ4.cjs +0 -134
  1620. package/lib/chunk-TI5JILQ4.cjs.map +0 -1
  1621. package/lib/chunk-U222MLC5.cjs +0 -88
  1622. package/lib/chunk-U222MLC5.cjs.map +0 -1
  1623. package/lib/chunk-UARW4YQW.cjs +0 -70
  1624. package/lib/chunk-UARW4YQW.cjs.map +0 -1
  1625. package/lib/chunk-UCTSAXGF.cjs +0 -122
  1626. package/lib/chunk-UCTSAXGF.cjs.map +0 -1
  1627. package/lib/chunk-UE2ALA2G.js +0 -36
  1628. package/lib/chunk-UE2ALA2G.js.map +0 -1
  1629. package/lib/chunk-UEXD6ROE.cjs +0 -44
  1630. package/lib/chunk-UEXD6ROE.cjs.map +0 -1
  1631. package/lib/chunk-ULS6IZPC.js +0 -86
  1632. package/lib/chunk-ULS6IZPC.js.map +0 -1
  1633. package/lib/chunk-UUEYW4SI.cjs +0 -55
  1634. package/lib/chunk-UUEYW4SI.cjs.map +0 -1
  1635. package/lib/chunk-V3NFJBSM.js +0 -50
  1636. package/lib/chunk-V3NFJBSM.js.map +0 -1
  1637. package/lib/chunk-V4KUITPI.js +0 -86
  1638. package/lib/chunk-V4KUITPI.js.map +0 -1
  1639. package/lib/chunk-VBQSG5M5.js +0 -92
  1640. package/lib/chunk-VBQSG5M5.js.map +0 -1
  1641. package/lib/chunk-VCRPNIEH.cjs +0 -70
  1642. package/lib/chunk-VCRPNIEH.cjs.map +0 -1
  1643. package/lib/chunk-VE3SPP3G.js +0 -177
  1644. package/lib/chunk-VE3SPP3G.js.map +0 -1
  1645. package/lib/chunk-VNBY6YSL.js +0 -82
  1646. package/lib/chunk-VNBY6YSL.js.map +0 -1
  1647. package/lib/chunk-VNML47KB.js +0 -59
  1648. package/lib/chunk-VNML47KB.js.map +0 -1
  1649. package/lib/chunk-VP4IZXYD.cjs +0 -26
  1650. package/lib/chunk-VP4IZXYD.cjs.map +0 -1
  1651. package/lib/chunk-VVZDCEJY.js +0 -68
  1652. package/lib/chunk-VVZDCEJY.js.map +0 -1
  1653. package/lib/chunk-VWLPSTPL.cjs +0 -91
  1654. package/lib/chunk-VWLPSTPL.cjs.map +0 -1
  1655. package/lib/chunk-VY2QQ6GL.cjs +0 -126
  1656. package/lib/chunk-VY2QQ6GL.cjs.map +0 -1
  1657. package/lib/chunk-VZPW7ARO.cjs +0 -90
  1658. package/lib/chunk-VZPW7ARO.cjs.map +0 -1
  1659. package/lib/chunk-W35HDHDU.js +0 -191
  1660. package/lib/chunk-W35HDHDU.js.map +0 -1
  1661. package/lib/chunk-WCBPR2FU.js +0 -177
  1662. package/lib/chunk-WCBPR2FU.js.map +0 -1
  1663. package/lib/chunk-WJLT2Q6F.cjs +0 -79
  1664. package/lib/chunk-WJLT2Q6F.cjs.map +0 -1
  1665. package/lib/chunk-WKDK4TTS.cjs +0 -80
  1666. package/lib/chunk-WKDK4TTS.cjs.map +0 -1
  1667. package/lib/chunk-WMDLFAGR.cjs +0 -53
  1668. package/lib/chunk-WMDLFAGR.cjs.map +0 -1
  1669. package/lib/chunk-WTD6QSTI.js +0 -89
  1670. package/lib/chunk-WTD6QSTI.js.map +0 -1
  1671. package/lib/chunk-WVVUEB6A.cjs +0 -70
  1672. package/lib/chunk-WVVUEB6A.cjs.map +0 -1
  1673. package/lib/chunk-X6J7WQEA.js +0 -89
  1674. package/lib/chunk-X6J7WQEA.js.map +0 -1
  1675. package/lib/chunk-XE46YXZW.js +0 -51
  1676. package/lib/chunk-XE46YXZW.js.map +0 -1
  1677. package/lib/chunk-XGCAYVWC.js +0 -73
  1678. package/lib/chunk-XGCAYVWC.js.map +0 -1
  1679. package/lib/chunk-XKFKPTKY.cjs +0 -115
  1680. package/lib/chunk-XKFKPTKY.cjs.map +0 -1
  1681. package/lib/chunk-XS3PGMW7.cjs +0 -77
  1682. package/lib/chunk-XS3PGMW7.cjs.map +0 -1
  1683. package/lib/chunk-XUIGE5EC.js +0 -68
  1684. package/lib/chunk-XUIGE5EC.js.map +0 -1
  1685. package/lib/chunk-Y6XMMFGD.js +0 -68
  1686. package/lib/chunk-Y6XMMFGD.js.map +0 -1
  1687. package/lib/chunk-YKSGPQWF.cjs +0 -165
  1688. package/lib/chunk-YKSGPQWF.cjs.map +0 -1
  1689. package/lib/chunk-YLGAEBN4.js +0 -96
  1690. package/lib/chunk-YLGAEBN4.js.map +0 -1
  1691. package/lib/chunk-YOTHMSEP.js +0 -68
  1692. package/lib/chunk-YOTHMSEP.js.map +0 -1
  1693. package/lib/chunk-YPAKLMVE.js +0 -60
  1694. package/lib/chunk-YPAKLMVE.js.map +0 -1
  1695. package/lib/chunk-YQLZRFYW.js +0 -77
  1696. package/lib/chunk-YQLZRFYW.js.map +0 -1
  1697. package/lib/chunk-YZDBPUNJ.cjs +0 -313
  1698. package/lib/chunk-YZDBPUNJ.cjs.map +0 -1
  1699. package/lib/chunk-Z3LIS3PJ.js +0 -77
  1700. package/lib/chunk-Z3LIS3PJ.js.map +0 -1
  1701. package/lib/chunk-ZI7VCQUJ.cjs +0 -84
  1702. package/lib/chunk-ZI7VCQUJ.cjs.map +0 -1
  1703. package/lib/chunk-ZJX6FYOO.cjs +0 -53
  1704. package/lib/chunk-ZJX6FYOO.cjs.map +0 -1
  1705. package/lib/chunk-ZMIDBZVE.js +0 -89
  1706. package/lib/chunk-ZMIDBZVE.js.map +0 -1
  1707. package/lib/chunk-ZTDGE4FR.js +0 -92
  1708. package/lib/chunk-ZTDGE4FR.js.map +0 -1
  1709. package/lib/chunk-ZV322LW2.js +0 -89
  1710. package/lib/chunk-ZV322LW2.js.map +0 -1
  1711. package/lib/chunk-ZX75XWHD.js +0 -177
  1712. package/lib/chunk-ZX75XWHD.js.map +0 -1
@@ -1,89 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkYZDBPUNJ_cjs = require('./chunk-YZDBPUNJ.cjs');
4
-
5
- // src/resources/parcels.ts
6
- var Parcels = class _Parcels extends chunkYZDBPUNJ_cjs.ApiResource {
7
- static TYPE = "parcels";
8
- async create(resource, params, options) {
9
- return this.resources.create({ ...resource, type: _Parcels.TYPE }, params, options);
10
- }
11
- async update(resource, params, options) {
12
- return this.resources.update({ ...resource, type: _Parcels.TYPE }, params, options);
13
- }
14
- async delete(id, options) {
15
- await this.resources.delete(typeof id === "string" ? { id, type: _Parcels.TYPE } : id, options);
16
- }
17
- async shipment(parcelId, params, options) {
18
- const _parcelId = parcelId.id || parcelId;
19
- return this.resources.fetch(
20
- { type: "shipments" },
21
- `parcels/${_parcelId}/shipment`,
22
- params,
23
- options
24
- );
25
- }
26
- async package(parcelId, params, options) {
27
- const _parcelId = parcelId.id || parcelId;
28
- return this.resources.fetch(
29
- { type: "packages" },
30
- `parcels/${_parcelId}/package`,
31
- params,
32
- options
33
- );
34
- }
35
- async parcel_line_items(parcelId, params, options) {
36
- const _parcelId = parcelId.id || parcelId;
37
- return this.resources.fetch(
38
- { type: "parcel_line_items" },
39
- `parcels/${_parcelId}/parcel_line_items`,
40
- params,
41
- options
42
- );
43
- }
44
- async attachments(parcelId, params, options) {
45
- const _parcelId = parcelId.id || parcelId;
46
- return this.resources.fetch(
47
- { type: "attachments" },
48
- `parcels/${_parcelId}/attachments`,
49
- params,
50
- options
51
- );
52
- }
53
- async events(parcelId, params, options) {
54
- const _parcelId = parcelId.id || parcelId;
55
- return this.resources.fetch(
56
- { type: "events" },
57
- `parcels/${_parcelId}/events`,
58
- params,
59
- options
60
- );
61
- }
62
- async event_stores(parcelId, params, options) {
63
- const _parcelId = parcelId.id || parcelId;
64
- return this.resources.fetch(
65
- { type: "event_stores" },
66
- `parcels/${_parcelId}/event_stores`,
67
- params,
68
- options
69
- );
70
- }
71
- isParcel(resource) {
72
- return resource.type && resource.type === _Parcels.TYPE;
73
- }
74
- relationship(id) {
75
- return super.relationshipOneToOne(id);
76
- }
77
- relationshipToMany(...ids) {
78
- return super.relationshipOneToMany(...ids);
79
- }
80
- type() {
81
- return _Parcels.TYPE;
82
- }
83
- };
84
- var instance = new Parcels();
85
- var parcels_default = instance;
86
-
87
- exports.parcels_default = parcels_default;
88
- //# sourceMappingURL=chunk-5WLJRGB6.cjs.map
89
- //# sourceMappingURL=chunk-5WLJRGB6.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"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pB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,WAAW,SAAS,CAAA,aAAA,CAAA;AAAA,MACpB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,SAAS,QAAA,EAAmC;AAC1C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAEA,aAAa,EAAA,EAA2C;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EACjD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AAChD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACtD;AAAA,EAEA,IAAA,GAAmB;AACjB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EACjB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-5WLJRGB6.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Package, PackageType } from './packages'\nimport type { ParcelLineItem } from './parcel_line_items'\nimport type { Shipment, ShipmentType } from './shipments'\n\ntype ParcelType = 'parcels'\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype PackageRel = ResourceRel & { type: PackageType }\n\nexport type ParcelSort = Pick<\n Parcel,\n 'id' | 'weight' | 'tracking_status' | 'tracking_status_updated_at' | 'carrier_weight_oz'\n> &\n ResourceSort\n// export type ParcelFilter = Pick<Parcel, 'id' | 'weight' | 'contents_explanation' | 'shipping_label_url' | 'shipping_label_file_type' | 'shipping_label_size' | 'shipping_label_resolution' | 'tracking_number' | 'tracking_status' | 'tracking_status_detail' | 'tracking_status_updated_at' | 'carrier_weight_oz' | 'incoterm' | 'delivery_confirmation'> & ResourceFilter\n\ninterface Parcel extends Resource {\n readonly type: ParcelType\n\n /**\n * Unique identifier for the parcel.\n * @example ```\"#1234/S/001/P/001\"```\n */\n number?: string | null\n /**\n * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```1000```\n */\n weight: number\n /**\n * The unit of weight. One of 'gr', 'oz', or 'lb'.\n * @example ```\"gr\"```\n */\n unit_of_weight: 'gr' | 'oz' | 'lb'\n /**\n * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n * @example ```\"EEL\"```\n */\n eel_pfc?: string | null\n /**\n * The type of item you are sending.\n * @example ```\"merchandise\"```\n */\n contents_type?: string | null\n /**\n * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n */\n contents_explanation?: string | null\n /**\n * Indicates if the provided information is accurate.\n */\n customs_certify?: boolean | null\n /**\n * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n * @example ```\"John Doe\"```\n */\n customs_signer?: string | null\n /**\n * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n * @example ```\"return\"```\n */\n non_delivery_option?: string | null\n /**\n * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n * @example ```\"none\"```\n */\n restriction_type?: string | null\n /**\n * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n */\n restriction_comments?: string | null\n /**\n * Indicates if the parcel requires customs info to get the shipping rates.\n */\n customs_info_required?: boolean | null\n /**\n * The shipping label url, ready to be downloaded and printed.\n * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n */\n shipping_label_url?: string | null\n /**\n * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n * @example ```\"application/pdf\"```\n */\n shipping_label_file_type?: string | null\n /**\n * The shipping label size.\n * @example ```\"4x7\"```\n */\n shipping_label_size?: string | null\n /**\n * The shipping label resolution.\n * @example ```\"200\"```\n */\n shipping_label_resolution?: string | null\n /**\n * The tracking number associated to this parcel.\n * @example ```\"1Z4V2A000000000000\"```\n */\n tracking_number?: string | null\n /**\n * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n * @example ```\"delivered\"```\n */\n tracking_status?: string | null\n /**\n * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n * @example ```\"arrived_at_destination\"```\n */\n tracking_status_detail?: string | null\n /**\n * Time at which the parcel's tracking status was last updated.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n tracking_status_updated_at?: string | null\n /**\n * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n */\n tracking_details?: Array<Record<string, any>> | null\n /**\n * The weight of the parcel as measured by the carrier in ounces (if available).\n * @example ```\"42.32\"```\n */\n carrier_weight_oz?: string | null\n /**\n * The name of the person who signed for the parcel (if available).\n * @example ```\"John Smith\"```\n */\n signed_by?: string | null\n /**\n * The type of Incoterm (if available).\n * @example ```\"EXW\"```\n */\n incoterm?: string | null\n /**\n * The type of delivery confirmation option upon delivery.\n * @example ```\"SIGNATURE\"```\n */\n delivery_confirmation?: string | null\n\n shipment?: Shipment | null\n package?: Package | null\n parcel_line_items?: ParcelLineItem[] | null\n attachments?: Attachment[] | null\n events?: Event[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface ParcelCreate extends ResourceCreate {\n /**\n * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```1000```\n */\n weight: number\n /**\n * The unit of weight. One of 'gr', 'oz', or 'lb'.\n * @example ```\"gr\"```\n */\n unit_of_weight: 'gr' | 'oz' | 'lb'\n /**\n * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n * @example ```\"EEL\"```\n */\n eel_pfc?: string | null\n /**\n * The type of item you are sending.\n * @example ```\"merchandise\"```\n */\n contents_type?: string | null\n /**\n * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n */\n contents_explanation?: string | null\n /**\n * Indicates if the provided information is accurate.\n */\n customs_certify?: boolean | null\n /**\n * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n * @example ```\"John Doe\"```\n */\n customs_signer?: string | null\n /**\n * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n * @example ```\"return\"```\n */\n non_delivery_option?: string | null\n /**\n * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n * @example ```\"none\"```\n */\n restriction_type?: string | null\n /**\n * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n */\n restriction_comments?: string | null\n /**\n * Indicates if the parcel requires customs info to get the shipping rates.\n */\n customs_info_required?: boolean | null\n /**\n * The shipping label url, ready to be downloaded and printed.\n * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n */\n shipping_label_url?: string | null\n /**\n * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n * @example ```\"application/pdf\"```\n */\n shipping_label_file_type?: string | null\n /**\n * The shipping label size.\n * @example ```\"4x7\"```\n */\n shipping_label_size?: string | null\n /**\n * The shipping label resolution.\n * @example ```\"200\"```\n */\n shipping_label_resolution?: string | null\n /**\n * The tracking number associated to this parcel.\n * @example ```\"1Z4V2A000000000000\"```\n */\n tracking_number?: string | null\n /**\n * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n * @example ```\"delivered\"```\n */\n tracking_status?: string | null\n /**\n * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n * @example ```\"arrived_at_destination\"```\n */\n tracking_status_detail?: string | null\n /**\n * Time at which the parcel's tracking status was last updated.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n tracking_status_updated_at?: string | null\n /**\n * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n */\n tracking_details?: Array<Record<string, any>> | null\n /**\n * The weight of the parcel as measured by the carrier in ounces (if available).\n * @example ```\"42.32\"```\n */\n carrier_weight_oz?: string | null\n /**\n * The name of the person who signed for the parcel (if available).\n * @example ```\"John Smith\"```\n */\n signed_by?: string | null\n /**\n * The type of Incoterm (if available).\n * @example ```\"EXW\"```\n */\n incoterm?: string | null\n /**\n * The type of delivery confirmation option upon delivery.\n * @example ```\"SIGNATURE\"```\n */\n delivery_confirmation?: string | null\n\n shipment: ShipmentRel\n package: PackageRel\n}\n\ninterface ParcelUpdate extends ResourceUpdate {\n /**\n * The parcel weight, used to automatically calculate the tax rates from the available carrier accounts.\n * @example ```1000```\n */\n weight?: number | null\n /**\n * The unit of weight. One of 'gr', 'oz', or 'lb'.\n * @example ```\"gr\"```\n */\n unit_of_weight?: 'gr' | 'oz' | 'lb' | null\n /**\n * When shipping outside the US, you need to provide either an Exemption and Exclusion Legend (EEL) code or a Proof of Filing Citation (PFC). Which you need is based on the value of the goods being shipped. Value can be one of \"EEL\" o \"PFC\".\n * @example ```\"EEL\"```\n */\n eel_pfc?: string | null\n /**\n * The type of item you are sending.\n * @example ```\"merchandise\"```\n */\n contents_type?: string | null\n /**\n * If you specify 'other' in the 'contents_type' attribute, you must supply a brief description in this attribute.\n */\n contents_explanation?: string | null\n /**\n * Indicates if the provided information is accurate.\n */\n customs_certify?: boolean | null\n /**\n * This is the name of the person who is certifying that the information provided on the customs form is accurate. Use a name of the person in your organization who is responsible for this.\n * @example ```\"John Doe\"```\n */\n customs_signer?: string | null\n /**\n * In case the shipment cannot be delivered, this option tells the carrier what you want to happen to the parcel. You can pass either 'return', or 'abandon'. The value defaults to 'return'. If you pass 'abandon', you will not receive the parcel back if it cannot be delivered.\n * @example ```\"return\"```\n */\n non_delivery_option?: string | null\n /**\n * Describes if your parcel requires any special treatment or quarantine when entering the country. Can be one of 'none', 'other', 'quarantine', or 'sanitary_phytosanitary_inspection'.\n * @example ```\"none\"```\n */\n restriction_type?: string | null\n /**\n * If you specify 'other' in the restriction type, you must supply a brief description of what is required.\n */\n restriction_comments?: string | null\n /**\n * Indicates if the parcel requires customs info to get the shipping rates.\n */\n customs_info_required?: boolean | null\n /**\n * The shipping label url, ready to be downloaded and printed.\n * @example ```\"https://bucket.s3-us-west-2.amazonaws.com/files/postage_label/20180101/123.pdf\"```\n */\n shipping_label_url?: string | null\n /**\n * The shipping label file type. One of 'application/pdf', 'application/zpl', 'application/epl2', or 'image/png'.\n * @example ```\"application/pdf\"```\n */\n shipping_label_file_type?: string | null\n /**\n * The shipping label size.\n * @example ```\"4x7\"```\n */\n shipping_label_size?: string | null\n /**\n * The shipping label resolution.\n * @example ```\"200\"```\n */\n shipping_label_resolution?: string | null\n /**\n * The tracking number associated to this parcel.\n * @example ```\"1Z4V2A000000000000\"```\n */\n tracking_number?: string | null\n /**\n * The tracking status for this parcel, automatically updated in real time by the shipping carrier.\n * @example ```\"delivered\"```\n */\n tracking_status?: string | null\n /**\n * Additional information about the tracking status, automatically updated in real time by the shipping carrier.\n * @example ```\"arrived_at_destination\"```\n */\n tracking_status_detail?: string | null\n /**\n * Time at which the parcel's tracking status was last updated.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n tracking_status_updated_at?: string | null\n /**\n * The parcel's full tracking history, automatically updated in real time by the shipping carrier.\n * @example ```[{\"object\":\"TrackingDetail\",\"message\":\"Pre-Shipment information received\",\"status\":\"pre_transit\",\"datetime\":\"2018-02-27T16:02:17Z\",\"source\":\"DHLExpress\",\"tracking_location\":{\"object\":\"TrackingLocation\"}}]```\n */\n tracking_details?: Array<Record<string, any>> | null\n /**\n * The weight of the parcel as measured by the carrier in ounces (if available).\n * @example ```\"42.32\"```\n */\n carrier_weight_oz?: string | null\n /**\n * The name of the person who signed for the parcel (if available).\n * @example ```\"John Smith\"```\n */\n signed_by?: string | null\n /**\n * The type of Incoterm (if available).\n * @example ```\"EXW\"```\n */\n incoterm?: string | null\n /**\n * The type of delivery confirmation option upon delivery.\n * @example ```\"SIGNATURE\"```\n */\n delivery_confirmation?: string | null\n\n shipment?: ShipmentRel | null\n package?: PackageRel | null\n}\n\nclass Parcels extends ApiResource<Parcel> {\n static readonly TYPE: ParcelType = 'parcels' as const\n\n async create(\n resource: ParcelCreate,\n params?: QueryParamsRetrieve<Parcel>,\n options?: ResourcesConfig,\n ): Promise<Parcel> {\n return this.resources.create<ParcelCreate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n }\n\n async update(\n resource: ParcelUpdate,\n params?: QueryParamsRetrieve<Parcel>,\n options?: ResourcesConfig,\n ): Promise<Parcel> {\n return this.resources.update<ParcelUpdate, Parcel>({ ...resource, type: Parcels.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: Parcels.TYPE } : id, options)\n }\n\n async shipment(\n parcelId: string | Parcel,\n params?: QueryParamsRetrieve<Shipment>,\n options?: ResourcesConfig,\n ): Promise<Shipment> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Shipment>(\n { type: 'shipments' },\n `parcels/${_parcelId}/shipment`,\n params,\n options,\n ) as unknown as Shipment\n }\n\n async package(\n parcelId: string | Parcel,\n params?: QueryParamsRetrieve<Package>,\n options?: ResourcesConfig,\n ): Promise<Package> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Package>(\n { type: 'packages' },\n `parcels/${_parcelId}/package`,\n params,\n options,\n ) as unknown as Package\n }\n\n async parcel_line_items(\n parcelId: string | Parcel,\n params?: QueryParamsList<ParcelLineItem>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<ParcelLineItem>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<ParcelLineItem>(\n { type: 'parcel_line_items' },\n `parcels/${_parcelId}/parcel_line_items`,\n params,\n options,\n ) as unknown as ListResponse<ParcelLineItem>\n }\n\n async attachments(\n parcelId: string | Parcel,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `parcels/${_parcelId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async events(\n parcelId: string | Parcel,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `parcels/${_parcelId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async event_stores(\n parcelId: string | Parcel,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _parcelId = (parcelId as Parcel).id || (parcelId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `parcels/${_parcelId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isParcel(resource: any): resource is Parcel {\n return resource.type && resource.type === Parcels.TYPE\n }\n\n relationship(id: string | ResourceId | null): ParcelRel {\n return super.relationshipOneToOne<ParcelRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ParcelRel[] {\n return super.relationshipOneToMany<ParcelRel>(...ids)\n }\n\n type(): ParcelType {\n return Parcels.TYPE\n }\n}\n\nconst instance = new Parcels()\nexport default instance\n\nexport type { Parcel, ParcelCreate, Parcels, ParcelType, ParcelUpdate }\n"]}
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkYZDBPUNJ_cjs = require('./chunk-YZDBPUNJ.cjs');
4
-
5
- // src/resources/tags.ts
6
- var Tags = class _Tags extends chunkYZDBPUNJ_cjs.ApiResource {
7
- static TYPE = "tags";
8
- async create(resource, params, options) {
9
- return this.resources.create({ ...resource, type: _Tags.TYPE }, params, options);
10
- }
11
- async update(resource, params, options) {
12
- return this.resources.update({ ...resource, type: _Tags.TYPE }, params, options);
13
- }
14
- async delete(id, options) {
15
- await this.resources.delete(typeof id === "string" ? { id, type: _Tags.TYPE } : id, options);
16
- }
17
- async event_stores(tagId, params, options) {
18
- const _tagId = tagId.id || tagId;
19
- return this.resources.fetch(
20
- { type: "event_stores" },
21
- `tags/${_tagId}/event_stores`,
22
- params,
23
- options
24
- );
25
- }
26
- isTag(resource) {
27
- return resource.type && resource.type === _Tags.TYPE;
28
- }
29
- relationship(id) {
30
- return super.relationshipOneToOne(id);
31
- }
32
- relationshipToMany(...ids) {
33
- return super.relationshipOneToMany(...ids);
34
- }
35
- type() {
36
- return _Tags.TYPE;
37
- }
38
- };
39
- var instance = new Tags();
40
- var tags_default = instance;
41
-
42
- exports.tags_default = tags_default;
43
- //# sourceMappingURL=chunk-5WSJNCYM.cjs.map
44
- //# sourceMappingURL=chunk-5WSJNCYM.cjs.map
@@ -1 +0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IAAA,KAAS,KAAA,CAAK,IAAA;AAAA,EACjD;AAAA,EAEA,aAAa,EAAA,EAAwC;AACnD,IAAA,OAAO,KAAA,CAAM,qBAA6B,EAAE,CAAA;AAAA,EAC9C;AAAA,EAEA,sBAAsB,GAAA,EAAyB;AAC7C,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA8B,GAAG,GAAG,CAAA;AAAA,EACnD;AAAA,EAEA,IAAA,GAAgB;AACd,IAAA,OAAO,KAAA,CAAK,IAAA;AAAA,EACd;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,IAAA,EAAK;AAC1B,IAAO,YAAA,GAAQ","file":"chunk-5WSJNCYM.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\n\nimport type { EventStore } from './event_stores'\n\ntype TagType = 'tags'\ntype TagRel = ResourceRel & { type: TagType }\n\nexport type TagSort = Pick<Tag, 'id' | 'name'> & ResourceSort\n// export type TagFilter = Pick<Tag, 'id' | 'name'> & ResourceFilter\n\ninterface Tag extends Resource {\n readonly type: TagType\n\n /**\n * The tag name.\n * @example ```\"new_campaign\"```\n */\n name: string\n\n event_stores?: EventStore[] | null\n}\n\ninterface TagCreate extends ResourceCreate {\n /**\n * The tag name.\n * @example ```\"new_campaign\"```\n */\n name: string\n}\n\ninterface TagUpdate extends ResourceUpdate {\n /**\n * The tag name.\n * @example ```\"new_campaign\"```\n */\n name?: string | null\n}\n\nclass Tags extends ApiResource<Tag> {\n static readonly TYPE: TagType = 'tags' as const\n\n async create(resource: TagCreate, params?: QueryParamsRetrieve<Tag>, options?: ResourcesConfig): Promise<Tag> {\n return this.resources.create<TagCreate, Tag>({ ...resource, type: Tags.TYPE }, params, options)\n }\n\n async update(resource: TagUpdate, params?: QueryParamsRetrieve<Tag>, options?: ResourcesConfig): Promise<Tag> {\n return this.resources.update<TagUpdate, Tag>({ ...resource, type: Tags.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: Tags.TYPE } : id, options)\n }\n\n async event_stores(\n tagId: string | Tag,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _tagId = (tagId as Tag).id || (tagId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `tags/${_tagId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isTag(resource: any): resource is Tag {\n return resource.type && resource.type === Tags.TYPE\n }\n\n relationship(id: string | ResourceId | null): TagRel {\n return super.relationshipOneToOne<TagRel>(id)\n }\n\n relationshipToMany(...ids: string[]): TagRel[] {\n return super.relationshipOneToMany<TagRel>(...ids)\n }\n\n type(): TagType {\n return Tags.TYPE\n }\n}\n\nconst instance = new Tags()\nexport default instance\n\nexport type { Tag, TagCreate, Tags, TagType, TagUpdate }\n"]}
@@ -1,191 +0,0 @@
1
- import { ApiResource } from './chunk-LSBBCEX5.js';
2
-
3
- // src/resources/external_promotions.ts
4
- var ExternalPromotions = class _ExternalPromotions extends ApiResource {
5
- static TYPE = "external_promotions";
6
- async create(resource, params, options) {
7
- return this.resources.create(
8
- { ...resource, type: _ExternalPromotions.TYPE },
9
- params,
10
- options
11
- );
12
- }
13
- async update(resource, params, options) {
14
- return this.resources.update(
15
- { ...resource, type: _ExternalPromotions.TYPE },
16
- params,
17
- options
18
- );
19
- }
20
- async delete(id, options) {
21
- await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPromotions.TYPE } : id, options);
22
- }
23
- async market(externalPromotionId, params, options) {
24
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
25
- return this.resources.fetch(
26
- { type: "markets" },
27
- `external_promotions/${_externalPromotionId}/market`,
28
- params,
29
- options
30
- );
31
- }
32
- async order_amount_promotion_rule(externalPromotionId, params, options) {
33
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
34
- return this.resources.fetch(
35
- { type: "order_amount_promotion_rules" },
36
- `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`,
37
- params,
38
- options
39
- );
40
- }
41
- async sku_list_promotion_rule(externalPromotionId, params, options) {
42
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
43
- return this.resources.fetch(
44
- { type: "sku_list_promotion_rules" },
45
- `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`,
46
- params,
47
- options
48
- );
49
- }
50
- async coupon_codes_promotion_rule(externalPromotionId, params, options) {
51
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
52
- return this.resources.fetch(
53
- { type: "coupon_codes_promotion_rules" },
54
- `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`,
55
- params,
56
- options
57
- );
58
- }
59
- async custom_promotion_rule(externalPromotionId, params, options) {
60
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
61
- return this.resources.fetch(
62
- { type: "custom_promotion_rules" },
63
- `external_promotions/${_externalPromotionId}/custom_promotion_rule`,
64
- params,
65
- options
66
- );
67
- }
68
- async sku_list(externalPromotionId, params, options) {
69
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
70
- return this.resources.fetch(
71
- { type: "sku_lists" },
72
- `external_promotions/${_externalPromotionId}/sku_list`,
73
- params,
74
- options
75
- );
76
- }
77
- async coupons(externalPromotionId, params, options) {
78
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
79
- return this.resources.fetch(
80
- { type: "coupons" },
81
- `external_promotions/${_externalPromotionId}/coupons`,
82
- params,
83
- options
84
- );
85
- }
86
- async attachments(externalPromotionId, params, options) {
87
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
88
- return this.resources.fetch(
89
- { type: "attachments" },
90
- `external_promotions/${_externalPromotionId}/attachments`,
91
- params,
92
- options
93
- );
94
- }
95
- async events(externalPromotionId, params, options) {
96
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
97
- return this.resources.fetch(
98
- { type: "events" },
99
- `external_promotions/${_externalPromotionId}/events`,
100
- params,
101
- options
102
- );
103
- }
104
- async tags(externalPromotionId, params, options) {
105
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
106
- return this.resources.fetch(
107
- { type: "tags" },
108
- `external_promotions/${_externalPromotionId}/tags`,
109
- params,
110
- options
111
- );
112
- }
113
- async event_stores(externalPromotionId, params, options) {
114
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
115
- return this.resources.fetch(
116
- { type: "event_stores" },
117
- `external_promotions/${_externalPromotionId}/event_stores`,
118
- params,
119
- options
120
- );
121
- }
122
- async skus(externalPromotionId, params, options) {
123
- const _externalPromotionId = externalPromotionId.id || externalPromotionId;
124
- return this.resources.fetch(
125
- { type: "skus" },
126
- `external_promotions/${_externalPromotionId}/skus`,
127
- params,
128
- options
129
- );
130
- }
131
- async _disable(id, params, options) {
132
- return this.resources.update(
133
- { id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _disable: true },
134
- params,
135
- options
136
- );
137
- }
138
- async _enable(id, params, options) {
139
- return this.resources.update(
140
- { id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _enable: true },
141
- params,
142
- options
143
- );
144
- }
145
- async _add_tags(id, triggerValue, params, options) {
146
- return this.resources.update(
147
- { id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _add_tags: triggerValue },
148
- params,
149
- options
150
- );
151
- }
152
- async _remove_tags(id, triggerValue, params, options) {
153
- return this.resources.update(
154
- { id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _remove_tags: triggerValue },
155
- params,
156
- options
157
- );
158
- }
159
- async _reset_circuit(id, params, options) {
160
- return this.resources.update(
161
- { id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _reset_circuit: true },
162
- params,
163
- options
164
- );
165
- }
166
- async _regenerate_shared_secret(id, params, options) {
167
- return this.resources.update(
168
- { id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _regenerate_shared_secret: true },
169
- params,
170
- options
171
- );
172
- }
173
- isExternalPromotion(resource) {
174
- return resource.type && resource.type === _ExternalPromotions.TYPE;
175
- }
176
- relationship(id) {
177
- return super.relationshipOneToOne(id);
178
- }
179
- relationshipToMany(...ids) {
180
- return super.relationshipOneToMany(...ids);
181
- }
182
- type() {
183
- return _ExternalPromotions.TYPE;
184
- }
185
- };
186
- var instance = new ExternalPromotions();
187
- var external_promotions_default = instance;
188
-
189
- export { external_promotions_default };
190
- //# sourceMappingURL=chunk-5YY7PVEO.js.map
191
- //# sourceMappingURL=chunk-5YY7PVEO.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/external_promotions.ts"],"names":[],"mappings":";;;AA8TA,IAAM,kBAAA,GAAN,MAAM,mBAAA,SAA2B,WAAA,CAA+B;AAAA,EAC9D,OAAgB,IAAA,GAA8B,qBAAA;AAAA,EAE9C,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC4B;AAC5B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAmB,IAAA,EAAK;AAAA,MAC7C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EAC4B;AAC5B,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA;AAAA,MACpB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,oBAAmB,IAAA,EAAK;AAAA,MAC7C,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EA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O,2BAAA,GAAQ","file":"chunk-5YY7PVEO.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\ntype ExternalPromotionType = 'external_promotions'\ntype ExternalPromotionRel = ResourceRel & { type: ExternalPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\nexport type ExternalPromotionSort = Pick<\n ExternalPromotion,\n | 'id'\n | 'name'\n | 'currency_code'\n | 'exclusive'\n | 'priority'\n | 'starts_at'\n | 'expires_at'\n | 'total_usage_limit'\n | 'total_usage_count'\n | 'total_usage_reached'\n | 'disabled_at'\n | 'circuit_state'\n | 'circuit_failure_count'\n> &\n ResourceSort\n// export type ExternalPromotionFilter = Pick<ExternalPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\ninterface ExternalPromotion extends Resource {\n readonly type: ExternalPromotionType\n\n /**\n * The promotion's internal name.\n * @example ```\"Personal promotion\"```\n */\n name: string\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code?: string | null\n /**\n * Indicates if the promotion will be applied exclusively, based on its priority score.\n * @example ```true```\n */\n exclusive?: boolean | null\n /**\n * The priority assigned to the promotion (lower means higher priority).\n * @example ```2```\n */\n priority?: number | null\n /**\n * The activation date/time of this promotion.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n starts_at: string\n /**\n * The expiration date/time of this promotion (must be after starts_at).\n * @example ```\"2018-01-02T12:00:00.000Z\"```\n */\n expires_at: string\n /**\n * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n * @example ```5```\n */\n total_usage_limit?: number | null\n /**\n * The number of times this promotion has been applied.\n * @example ```2```\n */\n total_usage_count?: number | null\n /**\n * Indicates if the promotion has been applied the total number of allowed times.\n */\n total_usage_reached?: boolean | null\n /**\n * Indicates if the promotion is active (enabled and not expired).\n * @example ```true```\n */\n active?: boolean | null\n /**\n * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n * @example ```\"pending\"```\n */\n status?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n /**\n * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n * @example ```112```\n */\n weight?: number | null\n /**\n * The total number of coupons created for this promotion.\n * @example ```2```\n */\n coupons_count?: number | null\n /**\n * Time at which this resource was disabled.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n disabled_at?: string | null\n /**\n * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n * @example ```\"closed\"```\n */\n circuit_state?: string | null\n /**\n * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n * @example ```5```\n */\n circuit_failure_count?: number | null\n /**\n * The shared secret used to sign the external request payload.\n * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n */\n shared_secret: string\n /**\n * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n * @example ```[\"order.line_item_options\"]```\n */\n external_includes?: string[] | null\n /**\n * The URL to the service that will compute the discount.\n * @example ```\"https://external_promotion.yourbrand.com\"```\n */\n promotion_url: string\n\n market?: Market | null\n promotion_rules?: PromotionRule[] | null\n order_amount_promotion_rule?: OrderAmountPromotionRule | null\n sku_list_promotion_rule?: SkuListPromotionRule | null\n coupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n custom_promotion_rule?: CustomPromotionRule | null\n sku_list?: SkuList | null\n coupons?: Coupon[] | null\n attachments?: Attachment[] | null\n events?: Event[] | null\n tags?: Tag[] | null\n event_stores?: EventStore[] | null\n skus?: Sku[] | null\n}\n\ninterface ExternalPromotionCreate extends ResourceCreate {\n /**\n * The promotion's internal name.\n * @example ```\"Personal promotion\"```\n */\n name: string\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code?: string | null\n /**\n * Indicates if the promotion will be applied exclusively, based on its priority score.\n * @example ```true```\n */\n exclusive?: boolean | null\n /**\n * The priority assigned to the promotion (lower means higher priority).\n * @example ```2```\n */\n priority?: number | null\n /**\n * The activation date/time of this promotion.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n starts_at: string\n /**\n * The expiration date/time of this promotion (must be after starts_at).\n * @example ```\"2018-01-02T12:00:00.000Z\"```\n */\n expires_at: string\n /**\n * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n * @example ```5```\n */\n total_usage_limit?: number | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n * @example ```[\"order.line_item_options\"]```\n */\n external_includes?: string[] | null\n /**\n * The URL to the service that will compute the discount.\n * @example ```\"https://external_promotion.yourbrand.com\"```\n */\n promotion_url: string\n\n market?: MarketRel | null\n order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n sku_list_promotion_rule?: SkuListPromotionRuleRel | null\n coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n custom_promotion_rule?: CustomPromotionRuleRel | null\n sku_list?: SkuListRel | null\n tags?: TagRel[] | null\n}\n\ninterface ExternalPromotionUpdate extends ResourceUpdate {\n /**\n * The promotion's internal name.\n * @example ```\"Personal promotion\"```\n */\n name?: string | null\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code?: string | null\n /**\n * Indicates if the promotion will be applied exclusively, based on its priority score.\n * @example ```true```\n */\n exclusive?: boolean | null\n /**\n * The priority assigned to the promotion (lower means higher priority).\n * @example ```2```\n */\n priority?: number | null\n /**\n * The activation date/time of this promotion.\n * @example ```\"2018-01-01T12:00:00.000Z\"```\n */\n starts_at?: string | null\n /**\n * The expiration date/time of this promotion (must be after starts_at).\n * @example ```\"2018-01-02T12:00:00.000Z\"```\n */\n expires_at?: string | null\n /**\n * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n * @example ```5```\n */\n total_usage_limit?: number | null\n /**\n * Send this attribute if you want to mark this resource as disabled.\n * @example ```true```\n */\n _disable?: boolean | null\n /**\n * Send this attribute if you want to mark this resource as enabled.\n * @example ```true```\n */\n _enable?: boolean | null\n /**\n * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n */\n _add_tags?: string | null\n /**\n * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n */\n _remove_tags?: string | null\n /**\n * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n * @example ```true```\n */\n _reset_circuit?: boolean | null\n /**\n * Send this attribute if you want to regenerate the shared secret.\n * @example ```true```\n */\n _regenerate_shared_secret?: boolean | null\n /**\n * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n * @example ```[\"order.line_item_options\"]```\n */\n external_includes?: string[] | null\n /**\n * The URL to the service that will compute the discount.\n * @example ```\"https://external_promotion.yourbrand.com\"```\n */\n promotion_url?: string | null\n\n market?: MarketRel | null\n order_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n sku_list_promotion_rule?: SkuListPromotionRuleRel | null\n coupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n custom_promotion_rule?: CustomPromotionRuleRel | null\n sku_list?: SkuListRel | null\n tags?: TagRel[] | null\n}\n\nclass ExternalPromotions extends ApiResource<ExternalPromotion> {\n static readonly TYPE: ExternalPromotionType = 'external_promotions' as const\n\n async create(\n resource: ExternalPromotionCreate,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.create<ExternalPromotionCreate, ExternalPromotion>(\n { ...resource, type: ExternalPromotions.TYPE },\n params,\n options,\n )\n }\n\n async update(\n resource: ExternalPromotionUpdate,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.update<ExternalPromotionUpdate, ExternalPromotion>(\n { ...resource, type: ExternalPromotions.TYPE },\n params,\n options,\n )\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: ExternalPromotions.TYPE } : id, options)\n }\n\n async market(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsRetrieve<Market>,\n options?: ResourcesConfig,\n ): Promise<Market> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<Market>(\n { type: 'markets' },\n `external_promotions/${_externalPromotionId}/market`,\n params,\n options,\n ) as unknown as Market\n }\n\n async order_amount_promotion_rule(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsRetrieve<OrderAmountPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<OrderAmountPromotionRule> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<OrderAmountPromotionRule>(\n { type: 'order_amount_promotion_rules' },\n `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`,\n params,\n options,\n ) as unknown as OrderAmountPromotionRule\n }\n\n async sku_list_promotion_rule(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsRetrieve<SkuListPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<SkuListPromotionRule> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<SkuListPromotionRule>(\n { type: 'sku_list_promotion_rules' },\n `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`,\n params,\n options,\n ) as unknown as SkuListPromotionRule\n }\n\n async coupon_codes_promotion_rule(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsRetrieve<CouponCodesPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CouponCodesPromotionRule> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<CouponCodesPromotionRule>(\n { type: 'coupon_codes_promotion_rules' },\n `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`,\n params,\n options,\n ) as unknown as CouponCodesPromotionRule\n }\n\n async custom_promotion_rule(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsRetrieve<CustomPromotionRule>,\n options?: ResourcesConfig,\n ): Promise<CustomPromotionRule> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<CustomPromotionRule>(\n { type: 'custom_promotion_rules' },\n `external_promotions/${_externalPromotionId}/custom_promotion_rule`,\n params,\n options,\n ) as unknown as CustomPromotionRule\n }\n\n async sku_list(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsRetrieve<SkuList>,\n options?: ResourcesConfig,\n ): Promise<SkuList> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<SkuList>(\n { type: 'sku_lists' },\n `external_promotions/${_externalPromotionId}/sku_list`,\n params,\n options,\n ) as unknown as SkuList\n }\n\n async coupons(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsList<Coupon>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Coupon>> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<Coupon>(\n { type: 'coupons' },\n `external_promotions/${_externalPromotionId}/coupons`,\n params,\n options,\n ) as unknown as ListResponse<Coupon>\n }\n\n async attachments(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `external_promotions/${_externalPromotionId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async events(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsList<Event>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Event>> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<Event>(\n { type: 'events' },\n `external_promotions/${_externalPromotionId}/events`,\n params,\n options,\n ) as unknown as ListResponse<Event>\n }\n\n async tags(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsList<Tag>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Tag>> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<Tag>(\n { type: 'tags' },\n `external_promotions/${_externalPromotionId}/tags`,\n params,\n options,\n ) as unknown as ListResponse<Tag>\n }\n\n async event_stores(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `external_promotions/${_externalPromotionId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n async skus(\n externalPromotionId: string | ExternalPromotion,\n params?: QueryParamsList<Sku>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Sku>> {\n const _externalPromotionId = (externalPromotionId as ExternalPromotion).id || (externalPromotionId as string)\n return this.resources.fetch<Sku>(\n { type: 'skus' },\n `external_promotions/${_externalPromotionId}/skus`,\n params,\n options,\n ) as unknown as ListResponse<Sku>\n }\n\n async _disable(\n id: string | ExternalPromotion,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.update<ExternalPromotionUpdate, ExternalPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalPromotions.TYPE, _disable: true },\n params,\n options,\n )\n }\n\n async _enable(\n id: string | ExternalPromotion,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.update<ExternalPromotionUpdate, ExternalPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalPromotions.TYPE, _enable: true },\n params,\n options,\n )\n }\n\n async _add_tags(\n id: string | ExternalPromotion,\n triggerValue: string,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.update<ExternalPromotionUpdate, ExternalPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalPromotions.TYPE, _add_tags: triggerValue },\n params,\n options,\n )\n }\n\n async _remove_tags(\n id: string | ExternalPromotion,\n triggerValue: string,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.update<ExternalPromotionUpdate, ExternalPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalPromotions.TYPE, _remove_tags: triggerValue },\n params,\n options,\n )\n }\n\n async _reset_circuit(\n id: string | ExternalPromotion,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.update<ExternalPromotionUpdate, ExternalPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalPromotions.TYPE, _reset_circuit: true },\n params,\n options,\n )\n }\n\n async _regenerate_shared_secret(\n id: string | ExternalPromotion,\n params?: QueryParamsRetrieve<ExternalPromotion>,\n options?: ResourcesConfig,\n ): Promise<ExternalPromotion> {\n return this.resources.update<ExternalPromotionUpdate, ExternalPromotion>(\n { id: typeof id === 'string' ? id : id.id, type: ExternalPromotions.TYPE, _regenerate_shared_secret: true },\n params,\n options,\n )\n }\n\n isExternalPromotion(resource: any): resource is ExternalPromotion {\n return resource.type && resource.type === ExternalPromotions.TYPE\n }\n\n relationship(id: string | ResourceId | null): ExternalPromotionRel {\n return super.relationshipOneToOne<ExternalPromotionRel>(id)\n }\n\n relationshipToMany(...ids: string[]): ExternalPromotionRel[] {\n return super.relationshipOneToMany<ExternalPromotionRel>(...ids)\n }\n\n type(): ExternalPromotionType {\n return ExternalPromotions.TYPE\n }\n}\n\nconst instance = new ExternalPromotions()\nexport default instance\n\nexport type {\n ExternalPromotion,\n ExternalPromotionCreate,\n ExternalPromotions,\n ExternalPromotionType,\n ExternalPromotionUpdate,\n}\n"]}
@@ -1,71 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkYZDBPUNJ_cjs = require('./chunk-YZDBPUNJ.cjs');
4
-
5
- // src/resources/price_lists.ts
6
- var PriceLists = class _PriceLists extends chunkYZDBPUNJ_cjs.ApiResource {
7
- static TYPE = "price_lists";
8
- async create(resource, params, options) {
9
- return this.resources.create({ ...resource, type: _PriceLists.TYPE }, params, options);
10
- }
11
- async update(resource, params, options) {
12
- return this.resources.update({ ...resource, type: _PriceLists.TYPE }, params, options);
13
- }
14
- async delete(id, options) {
15
- await this.resources.delete(typeof id === "string" ? { id, type: _PriceLists.TYPE } : id, options);
16
- }
17
- async prices(priceListId, params, options) {
18
- const _priceListId = priceListId.id || priceListId;
19
- return this.resources.fetch(
20
- { type: "prices" },
21
- `price_lists/${_priceListId}/prices`,
22
- params,
23
- options
24
- );
25
- }
26
- async price_list_schedulers(priceListId, params, options) {
27
- const _priceListId = priceListId.id || priceListId;
28
- return this.resources.fetch(
29
- { type: "price_list_schedulers" },
30
- `price_lists/${_priceListId}/price_list_schedulers`,
31
- params,
32
- options
33
- );
34
- }
35
- async attachments(priceListId, params, options) {
36
- const _priceListId = priceListId.id || priceListId;
37
- return this.resources.fetch(
38
- { type: "attachments" },
39
- `price_lists/${_priceListId}/attachments`,
40
- params,
41
- options
42
- );
43
- }
44
- async event_stores(priceListId, params, options) {
45
- const _priceListId = priceListId.id || priceListId;
46
- return this.resources.fetch(
47
- { type: "event_stores" },
48
- `price_lists/${_priceListId}/event_stores`,
49
- params,
50
- options
51
- );
52
- }
53
- isPriceList(resource) {
54
- return resource.type && resource.type === _PriceLists.TYPE;
55
- }
56
- relationship(id) {
57
- return super.relationshipOneToOne(id);
58
- }
59
- relationshipToMany(...ids) {
60
- return super.relationshipOneToMany(...ids);
61
- }
62
- type() {
63
- return _PriceLists.TYPE;
64
- }
65
- };
66
- var instance = new PriceLists();
67
- var price_lists_default = instance;
68
-
69
- exports.price_lists_default = price_lists_default;
70
- //# sourceMappingURL=chunk-5Z5QSUVM.cjs.map
71
- //# sourceMappingURL=chunk-5Z5QSUVM.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/price_lists.ts"],"names":["ApiResource"],"mappings":";;;;;AA4HA,IAAM,UAAA,GAAN,MAAM,WAAA,SAAmBA,6BAAA,CAAuB;AAAA,EAC9C,OAAgB,IAAA,GAAsB,aAAA;AAAA,EAEtC,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACoB;AACpB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,WAAA,CAAW,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClH;AAAA,EAEA,MAAM,MAAA,CACJ,QAAA,EACA,MAAA,EACA,OAAA,EACoB;AACpB,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAmC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,WAAA,CAAW,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClH;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC9E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAO,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,WAAA,CAAW,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAClG;AAAA,EAEA,MAAM,MAAA,CACJ,WAAA,EACA,MAAA,EACA,OAAA,EAC8B;AAC9B,IAAA,MAAM,YAAA,GAAgB,YAA0B,EAAA,IAAO,WAAA;AACvD,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,QAAA,EAAS;AAAA,MACjB,eAAe,YAAY,CAAA,OAAA,CAAA;AAAA,MAC3B,MAAA;AAAA,MAC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,EACzD;AAAA,EAEA,IAAA,GAAsB;AACpB,IAAA,OAAO,WAAA,CAAW,IAAA;AAAA,EACpB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,UAAA,EAAW;AAChC,IAAO,mBAAA,GAAQ","file":"chunk-5Z5QSUVM.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { PriceListScheduler } from './price_list_schedulers'\nimport type { Price } from './prices'\n\ntype PriceListType = 'price_lists'\ntype PriceListRel = ResourceRel & { type: PriceListType }\n\nexport type PriceListSort = Pick<PriceList, 'id' | 'name' | 'code' | 'currency_code' | 'tax_included'> & ResourceSort\n// export type PriceListFilter = Pick<PriceList, 'id' | 'name' | 'code' | 'currency_code' | 'tax_included' | 'rules'> & ResourceFilter\n\ninterface PriceList extends Resource {\n readonly type: PriceListType\n\n /**\n * The price list's internal name.\n * @example ```\"EU Price list\"```\n */\n name: string\n /**\n * A string that you can use to identify the price list (must be unique within the environment).\n * @example ```\"europe1\"```\n */\n code?: string | null\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code: string\n /**\n * Indicates if the associated prices include taxes.\n * @example ```true```\n */\n tax_included?: boolean | null\n /**\n * The rule outcomes.\n * @example ```[]```\n */\n rule_outcomes?: Record<string, any> | null\n /**\n * The rules (using Rules Engine) to be applied.\n * @example ```{}```\n */\n rules?: Record<string, any> | null\n /**\n * The payload used to evaluate the rules.\n * @example ```{}```\n */\n resource_payload?: Record<string, any> | null\n\n prices?: Price[] | null\n price_list_schedulers?: PriceListScheduler[] | null\n attachments?: Attachment[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface PriceListCreate extends ResourceCreate {\n /**\n * The price list's internal name.\n * @example ```\"EU Price list\"```\n */\n name: string\n /**\n * A string that you can use to identify the price list (must be unique within the environment).\n * @example ```\"europe1\"```\n */\n code?: string | null\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code: string\n /**\n * Indicates if the associated prices include taxes.\n * @example ```true```\n */\n tax_included?: boolean | null\n /**\n * The rules (using Rules Engine) to be applied.\n * @example ```{}```\n */\n rules?: Record<string, any> | null\n}\n\ninterface PriceListUpdate extends ResourceUpdate {\n /**\n * The price list's internal name.\n * @example ```\"EU Price list\"```\n */\n name?: string | null\n /**\n * A string that you can use to identify the price list (must be unique within the environment).\n * @example ```\"europe1\"```\n */\n code?: string | null\n /**\n * The international 3-letter currency code as defined by the ISO 4217 standard.\n * @example ```\"EUR\"```\n */\n currency_code?: string | null\n /**\n * Indicates if the associated prices include taxes.\n * @example ```true```\n */\n tax_included?: boolean | null\n /**\n * The rules (using Rules Engine) to be applied.\n * @example ```{}```\n */\n rules?: Record<string, any> | null\n}\n\nclass PriceLists extends ApiResource<PriceList> {\n static readonly TYPE: PriceListType = 'price_lists' as const\n\n async create(\n resource: PriceListCreate,\n params?: QueryParamsRetrieve<PriceList>,\n options?: ResourcesConfig,\n ): Promise<PriceList> {\n return this.resources.create<PriceListCreate, PriceList>({ ...resource, type: PriceLists.TYPE }, params, options)\n }\n\n async update(\n resource: PriceListUpdate,\n params?: QueryParamsRetrieve<PriceList>,\n options?: ResourcesConfig,\n ): Promise<PriceList> {\n return this.resources.update<PriceListUpdate, PriceList>({ ...resource, type: PriceLists.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: PriceLists.TYPE } : id, options)\n }\n\n async prices(\n priceListId: string | PriceList,\n params?: QueryParamsList<Price>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Price>> {\n const _priceListId = (priceListId as PriceList).id || (priceListId as string)\n return this.resources.fetch<Price>(\n { type: 'prices' },\n `price_lists/${_priceListId}/prices`,\n params,\n options,\n ) as unknown as ListResponse<Price>\n }\n\n async price_list_schedulers(\n priceListId: string | PriceList,\n params?: QueryParamsList<PriceListScheduler>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<PriceListScheduler>> {\n const _priceListId = (priceListId as PriceList).id || (priceListId as string)\n return this.resources.fetch<PriceListScheduler>(\n { type: 'price_list_schedulers' },\n `price_lists/${_priceListId}/price_list_schedulers`,\n params,\n options,\n ) as unknown as ListResponse<PriceListScheduler>\n }\n\n async attachments(\n priceListId: string | PriceList,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _priceListId = (priceListId as PriceList).id || (priceListId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `price_lists/${_priceListId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async event_stores(\n priceListId: string | PriceList,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _priceListId = (priceListId as PriceList).id || (priceListId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `price_lists/${_priceListId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isPriceList(resource: any): resource is PriceList {\n return resource.type && resource.type === PriceLists.TYPE\n }\n\n relationship(id: string | ResourceId | null): PriceListRel {\n return super.relationshipOneToOne<PriceListRel>(id)\n }\n\n relationshipToMany(...ids: string[]): PriceListRel[] {\n return super.relationshipOneToMany<PriceListRel>(...ids)\n }\n\n type(): PriceListType {\n return PriceLists.TYPE\n }\n}\n\nconst instance = new PriceLists()\nexport default instance\n\nexport type { PriceList, PriceListCreate, PriceLists, PriceListType, PriceListUpdate }\n"]}
@@ -1,62 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkYZDBPUNJ_cjs = require('./chunk-YZDBPUNJ.cjs');
4
-
5
- // src/resources/merchants.ts
6
- var Merchants = class _Merchants extends chunkYZDBPUNJ_cjs.ApiResource {
7
- static TYPE = "merchants";
8
- async create(resource, params, options) {
9
- return this.resources.create({ ...resource, type: _Merchants.TYPE }, params, options);
10
- }
11
- async update(resource, params, options) {
12
- return this.resources.update({ ...resource, type: _Merchants.TYPE }, params, options);
13
- }
14
- async delete(id, options) {
15
- await this.resources.delete(typeof id === "string" ? { id, type: _Merchants.TYPE } : id, options);
16
- }
17
- async address(merchantId, params, options) {
18
- const _merchantId = merchantId.id || merchantId;
19
- return this.resources.fetch(
20
- { type: "addresses" },
21
- `merchants/${_merchantId}/address`,
22
- params,
23
- options
24
- );
25
- }
26
- async attachments(merchantId, params, options) {
27
- const _merchantId = merchantId.id || merchantId;
28
- return this.resources.fetch(
29
- { type: "attachments" },
30
- `merchants/${_merchantId}/attachments`,
31
- params,
32
- options
33
- );
34
- }
35
- async event_stores(merchantId, params, options) {
36
- const _merchantId = merchantId.id || merchantId;
37
- return this.resources.fetch(
38
- { type: "event_stores" },
39
- `merchants/${_merchantId}/event_stores`,
40
- params,
41
- options
42
- );
43
- }
44
- isMerchant(resource) {
45
- return resource.type && resource.type === _Merchants.TYPE;
46
- }
47
- relationship(id) {
48
- return super.relationshipOneToOne(id);
49
- }
50
- relationshipToMany(...ids) {
51
- return super.relationshipOneToMany(...ids);
52
- }
53
- type() {
54
- return _Merchants.TYPE;
55
- }
56
- };
57
- var instance = new Merchants();
58
- var merchants_default = instance;
59
-
60
- exports.merchants_default = merchants_default;
61
- //# sourceMappingURL=chunk-5ZPUTH6R.cjs.map
62
- //# sourceMappingURL=chunk-5ZPUTH6R.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/resources/merchants.ts"],"names":["ApiResource"],"mappings":";;;;;AA0DA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAC5C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,MAA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,EACF;AAAA,EAEA,MAAM,YAAA,CACJ,UAAA,EACA,MAAA,EACA,OAAA,EACmC;AACnC,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAO,UAAA;AACpD,IAAA,OAAO,KAAK,SAAA,CAAU,KAAA;AAAA,MACpB,EAAE,MAAM,cAAA,EAAe;AAAA,MACvB,aAAa,WAAW,CAAA,aAAA,CAAA;AAAA,MACxB,MAAA;AAAA,MACA;AAAA,KACF;AAAA,EACF;AAAA,EAEA,WAAW,QAAA,EAAqC;AAC9C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAQ,QAAA,CAAS,IAAA,KAAS,UAAA,CAAU,IAAA;AAAA,EACtD;AAAA,EAEA,aAAa,EAAA,EAA6C;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EACnD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AAClD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACxD;AAAA,EAEA,IAAA,GAAqB;AACnB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EACnB;AACF,CAAA;AAEA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-5ZPUTH6R.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type {\n ListResponse,\n Resource,\n ResourceCreate,\n ResourceId,\n ResourceRel,\n ResourceSort,\n /* ResourceFilter */ ResourcesConfig,\n ResourceUpdate,\n} from '../resource'\nimport { ApiResource } from '../resource'\n\nimport type { Address, AddressType } from './addresses'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\n\ntype MerchantType = 'merchants'\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype AddressRel = ResourceRel & { type: AddressType }\n\nexport type MerchantSort = Pick<Merchant, 'id' | 'name'> & ResourceSort\n// export type MerchantFilter = Pick<Merchant, 'id' | 'name'> & ResourceFilter\n\ninterface Merchant extends Resource {\n readonly type: MerchantType\n\n /**\n * The merchant's internal name.\n * @example ```\"The Brand Inc.\"```\n */\n name: string\n\n address?: Address | null\n attachments?: Attachment[] | null\n event_stores?: EventStore[] | null\n}\n\ninterface MerchantCreate extends ResourceCreate {\n /**\n * The merchant's internal name.\n * @example ```\"The Brand Inc.\"```\n */\n name: string\n\n address: AddressRel\n}\n\ninterface MerchantUpdate extends ResourceUpdate {\n /**\n * The merchant's internal name.\n * @example ```\"The Brand Inc.\"```\n */\n name?: string | null\n\n address?: AddressRel | null\n}\n\nclass Merchants extends ApiResource<Merchant> {\n static readonly TYPE: MerchantType = 'merchants' as const\n\n async create(\n resource: MerchantCreate,\n params?: QueryParamsRetrieve<Merchant>,\n options?: ResourcesConfig,\n ): Promise<Merchant> {\n return this.resources.create<MerchantCreate, Merchant>({ ...resource, type: Merchants.TYPE }, params, options)\n }\n\n async update(\n resource: MerchantUpdate,\n params?: QueryParamsRetrieve<Merchant>,\n options?: ResourcesConfig,\n ): Promise<Merchant> {\n return this.resources.update<MerchantUpdate, Merchant>({ ...resource, type: Merchants.TYPE }, params, options)\n }\n\n async delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n await this.resources.delete(typeof id === 'string' ? { id, type: Merchants.TYPE } : id, options)\n }\n\n async address(\n merchantId: string | Merchant,\n params?: QueryParamsRetrieve<Address>,\n options?: ResourcesConfig,\n ): Promise<Address> {\n const _merchantId = (merchantId as Merchant).id || (merchantId as string)\n return this.resources.fetch<Address>(\n { type: 'addresses' },\n `merchants/${_merchantId}/address`,\n params,\n options,\n ) as unknown as Address\n }\n\n async attachments(\n merchantId: string | Merchant,\n params?: QueryParamsList<Attachment>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<Attachment>> {\n const _merchantId = (merchantId as Merchant).id || (merchantId as string)\n return this.resources.fetch<Attachment>(\n { type: 'attachments' },\n `merchants/${_merchantId}/attachments`,\n params,\n options,\n ) as unknown as ListResponse<Attachment>\n }\n\n async event_stores(\n merchantId: string | Merchant,\n params?: QueryParamsList<EventStore>,\n options?: ResourcesConfig,\n ): Promise<ListResponse<EventStore>> {\n const _merchantId = (merchantId as Merchant).id || (merchantId as string)\n return this.resources.fetch<EventStore>(\n { type: 'event_stores' },\n `merchants/${_merchantId}/event_stores`,\n params,\n options,\n ) as unknown as ListResponse<EventStore>\n }\n\n isMerchant(resource: any): resource is Merchant {\n return resource.type && resource.type === Merchants.TYPE\n }\n\n relationship(id: string | ResourceId | null): MerchantRel {\n return super.relationshipOneToOne<MerchantRel>(id)\n }\n\n relationshipToMany(...ids: string[]): MerchantRel[] {\n return super.relationshipOneToMany<MerchantRel>(...ids)\n }\n\n type(): MerchantType {\n return Merchants.TYPE\n }\n}\n\nconst instance = new Merchants()\nexport default instance\n\nexport type { Merchant, MerchantCreate, Merchants, MerchantType, MerchantUpdate }\n"]}