@commercelayer/sdk 7.10.0 → 8.0.0-beta.1

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 (1665) hide show
  1. package/lib/api-CxFbvblr.d.ts +18107 -0
  2. package/lib/api-o1gYTpPm.d.cts +18107 -0
  3. package/lib/api.cjs +265 -270
  4. package/lib/api.d.cts +1 -1
  5. package/lib/api.d.ts +1 -1
  6. package/lib/api.js +134 -135
  7. package/lib/bundle.cjs +267 -271
  8. package/lib/bundle.cjs.map +1 -1
  9. package/lib/bundle.d.cts +1 -2
  10. package/lib/bundle.d.ts +1 -2
  11. package/lib/bundle.js +135 -139
  12. package/lib/bundle.js.map +1 -1
  13. package/lib/chunk-26Q2QNAQ.cjs +30 -0
  14. package/lib/chunk-26Q2QNAQ.cjs.map +1 -0
  15. package/lib/chunk-27YKND3S.js +93 -0
  16. package/lib/chunk-27YKND3S.js.map +1 -0
  17. package/lib/chunk-2CMJ2SZM.cjs +57 -0
  18. package/lib/chunk-2CMJ2SZM.cjs.map +1 -0
  19. package/lib/chunk-2HNW5KNF.js +45 -0
  20. package/lib/chunk-2HNW5KNF.js.map +1 -0
  21. package/lib/chunk-2NWYRIJZ.js +41 -0
  22. package/lib/chunk-2NWYRIJZ.js.map +1 -0
  23. package/lib/chunk-2QXENUO7.cjs +51 -0
  24. package/lib/chunk-2QXENUO7.cjs.map +1 -0
  25. package/lib/chunk-2VI6OWLV.cjs +61 -0
  26. package/lib/chunk-2VI6OWLV.cjs.map +1 -0
  27. package/lib/chunk-2WVBEUMO.js +53 -0
  28. package/lib/chunk-2WVBEUMO.js.map +1 -0
  29. package/lib/chunk-2XDVUDJS.cjs +34 -0
  30. package/lib/chunk-2XDVUDJS.cjs.map +1 -0
  31. package/lib/chunk-35Q3ZTZC.js +75 -0
  32. package/lib/chunk-35Q3ZTZC.js.map +1 -0
  33. package/lib/chunk-3EX76AZW.js +3 -0
  34. package/lib/chunk-3EX76AZW.js.map +1 -0
  35. package/lib/chunk-3PAID2YG.cjs +54 -0
  36. package/lib/chunk-3PAID2YG.cjs.map +1 -0
  37. package/lib/chunk-3PXZUPZE.cjs +43 -0
  38. package/lib/chunk-3PXZUPZE.cjs.map +1 -0
  39. package/lib/chunk-3YS6NHUH.cjs +50 -0
  40. package/lib/chunk-3YS6NHUH.cjs.map +1 -0
  41. package/lib/chunk-43JU63UQ.js +51 -0
  42. package/lib/chunk-43JU63UQ.js.map +1 -0
  43. package/lib/chunk-4C55SMIS.js +55 -0
  44. package/lib/chunk-4C55SMIS.js.map +1 -0
  45. package/lib/chunk-4E5BE47D.cjs +61 -0
  46. package/lib/chunk-4E5BE47D.cjs.map +1 -0
  47. package/lib/chunk-4P3MBQVY.cjs +156 -0
  48. package/lib/chunk-4P3MBQVY.cjs.map +1 -0
  49. package/lib/chunk-4PNXT6OT.js +36 -0
  50. package/lib/chunk-4PNXT6OT.js.map +1 -0
  51. package/lib/chunk-4S3I222F.cjs +285 -0
  52. package/lib/chunk-4S3I222F.cjs.map +1 -0
  53. package/lib/chunk-4YR6JIEN.js +154 -0
  54. package/lib/chunk-4YR6JIEN.js.map +1 -0
  55. package/lib/chunk-4ZIGP3FO.cjs +59 -0
  56. package/lib/chunk-4ZIGP3FO.cjs.map +1 -0
  57. package/lib/chunk-536MZPMI.cjs +26 -0
  58. package/lib/chunk-536MZPMI.cjs.map +1 -0
  59. package/lib/chunk-54VT56WS.cjs +126 -0
  60. package/lib/chunk-54VT56WS.cjs.map +1 -0
  61. package/lib/chunk-56HCMG32.js +31 -0
  62. package/lib/chunk-56HCMG32.js.map +1 -0
  63. package/lib/chunk-5AFBGKJ4.js +53 -0
  64. package/lib/chunk-5AFBGKJ4.js.map +1 -0
  65. package/lib/chunk-5P67UEWW.cjs +56 -0
  66. package/lib/chunk-5P67UEWW.cjs.map +1 -0
  67. package/lib/chunk-5RJW5RAK.js +40 -0
  68. package/lib/chunk-5RJW5RAK.js.map +1 -0
  69. package/lib/chunk-5TLVMKOO.cjs +52 -0
  70. package/lib/chunk-5TLVMKOO.cjs.map +1 -0
  71. package/lib/chunk-5YMHXTJG.cjs +4 -0
  72. package/lib/chunk-5YMHXTJG.cjs.map +1 -0
  73. package/lib/chunk-65XBHNZH.js +96 -0
  74. package/lib/chunk-65XBHNZH.js.map +1 -0
  75. package/lib/chunk-6BXCQFTI.js +37 -0
  76. package/lib/chunk-6BXCQFTI.js.map +1 -0
  77. package/lib/chunk-6EUKX4RC.cjs +47 -0
  78. package/lib/chunk-6EUKX4RC.cjs.map +1 -0
  79. package/lib/chunk-6UIVNEE7.cjs +53 -0
  80. package/lib/chunk-6UIVNEE7.cjs.map +1 -0
  81. package/lib/chunk-7473V4XD.js +59 -0
  82. package/lib/chunk-7473V4XD.js.map +1 -0
  83. package/lib/chunk-74JBCKFT.cjs +30 -0
  84. package/lib/chunk-74JBCKFT.cjs.map +1 -0
  85. package/lib/chunk-77HRCSA5.cjs +55 -0
  86. package/lib/chunk-77HRCSA5.cjs.map +1 -0
  87. package/lib/chunk-7ZBEKCA5.cjs +75 -0
  88. package/lib/chunk-7ZBEKCA5.cjs.map +1 -0
  89. package/lib/chunk-A6E33WC3.cjs +53 -0
  90. package/lib/chunk-A6E33WC3.cjs.map +1 -0
  91. package/lib/chunk-A77RAUIU.cjs +54 -0
  92. package/lib/chunk-A77RAUIU.cjs.map +1 -0
  93. package/lib/chunk-A7BK3Z22.cjs +38 -0
  94. package/lib/chunk-A7BK3Z22.cjs.map +1 -0
  95. package/lib/chunk-AEP6D5QV.cjs +38 -0
  96. package/lib/chunk-AEP6D5QV.cjs.map +1 -0
  97. package/lib/chunk-AN2Y6XMS.js +28 -0
  98. package/lib/chunk-AN2Y6XMS.js.map +1 -0
  99. package/lib/chunk-ANRUEWG5.js +51 -0
  100. package/lib/chunk-ANRUEWG5.js.map +1 -0
  101. package/lib/chunk-AP5WOJMJ.js +49 -0
  102. package/lib/chunk-AP5WOJMJ.js.map +1 -0
  103. package/lib/chunk-APMYXRFX.js +96 -0
  104. package/lib/chunk-APMYXRFX.js.map +1 -0
  105. package/lib/chunk-APTNONWZ.js +40 -0
  106. package/lib/chunk-APTNONWZ.js.map +1 -0
  107. package/lib/chunk-AS6CAIIM.js +65 -0
  108. package/lib/chunk-AS6CAIIM.js.map +1 -0
  109. package/lib/chunk-ATK6TFVA.cjs +43 -0
  110. package/lib/chunk-ATK6TFVA.cjs.map +1 -0
  111. package/lib/chunk-AVYPSM4A.cjs +43 -0
  112. package/lib/chunk-AVYPSM4A.cjs.map +1 -0
  113. package/lib/chunk-AWEYC4IM.js +45 -0
  114. package/lib/chunk-AWEYC4IM.js.map +1 -0
  115. package/lib/chunk-AWLS4LR4.cjs +53 -0
  116. package/lib/chunk-AWLS4LR4.cjs.map +1 -0
  117. package/lib/chunk-AY7MWZ7Y.js +48 -0
  118. package/lib/chunk-AY7MWZ7Y.js.map +1 -0
  119. package/lib/chunk-B7T7DQEK.js +52 -0
  120. package/lib/chunk-B7T7DQEK.js.map +1 -0
  121. package/lib/chunk-BANZUNLK.js +40 -0
  122. package/lib/chunk-BANZUNLK.js.map +1 -0
  123. package/lib/chunk-BQE56RMQ.js +45 -0
  124. package/lib/chunk-BQE56RMQ.js.map +1 -0
  125. package/lib/chunk-C7AHHS53.cjs +51 -0
  126. package/lib/chunk-C7AHHS53.cjs.map +1 -0
  127. package/lib/chunk-CDFM6RPB.cjs +63 -0
  128. package/lib/chunk-CDFM6RPB.cjs.map +1 -0
  129. package/lib/chunk-CDNYZAMV.js +51 -0
  130. package/lib/chunk-CDNYZAMV.js.map +1 -0
  131. package/lib/chunk-CH4K74JN.cjs +55 -0
  132. package/lib/chunk-CH4K74JN.cjs.map +1 -0
  133. package/lib/chunk-CJPAOOG5.cjs +34 -0
  134. package/lib/chunk-CJPAOOG5.cjs.map +1 -0
  135. package/lib/chunk-CKSLVNN7.js +45 -0
  136. package/lib/chunk-CKSLVNN7.js.map +1 -0
  137. package/lib/chunk-CM4DAVO4.js +40 -0
  138. package/lib/chunk-CM4DAVO4.js.map +1 -0
  139. package/lib/chunk-CNMMWVI6.js +48 -0
  140. package/lib/chunk-CNMMWVI6.js.map +1 -0
  141. package/lib/chunk-CTTA6S5K.cjs +61 -0
  142. package/lib/chunk-CTTA6S5K.cjs.map +1 -0
  143. package/lib/chunk-CUYSBPPJ.js +45 -0
  144. package/lib/chunk-CUYSBPPJ.js.map +1 -0
  145. package/lib/chunk-CWD5DM6G.cjs +54 -0
  146. package/lib/chunk-CWD5DM6G.cjs.map +1 -0
  147. package/lib/chunk-D3VJO4HP.js +40 -0
  148. package/lib/chunk-D3VJO4HP.js.map +1 -0
  149. package/lib/chunk-D3YQS6YA.js +66 -0
  150. package/lib/chunk-D3YQS6YA.js.map +1 -0
  151. package/lib/chunk-DBJEPEBT.js +45 -0
  152. package/lib/chunk-DBJEPEBT.js.map +1 -0
  153. package/lib/chunk-DBNDWZZW.cjs +98 -0
  154. package/lib/chunk-DBNDWZZW.cjs.map +1 -0
  155. package/lib/chunk-DFUIO6OY.js +53 -0
  156. package/lib/chunk-DFUIO6OY.js.map +1 -0
  157. package/lib/chunk-DHGTIF6A.cjs +56 -0
  158. package/lib/chunk-DHGTIF6A.cjs.map +1 -0
  159. package/lib/chunk-DJRBEANR.js +57 -0
  160. package/lib/chunk-DJRBEANR.js.map +1 -0
  161. package/lib/chunk-DNVIOKDM.cjs +55 -0
  162. package/lib/chunk-DNVIOKDM.cjs.map +1 -0
  163. package/lib/chunk-DQUGPCYZ.js +37 -0
  164. package/lib/chunk-DQUGPCYZ.js.map +1 -0
  165. package/lib/chunk-DUQVVWSA.js +54 -0
  166. package/lib/chunk-DUQVVWSA.js.map +1 -0
  167. package/lib/chunk-E2UP2BWG.cjs +39 -0
  168. package/lib/chunk-E2UP2BWG.cjs.map +1 -0
  169. package/lib/chunk-E5G3LS6Y.js +53 -0
  170. package/lib/chunk-E5G3LS6Y.js.map +1 -0
  171. package/lib/chunk-EEXXJFJO.cjs +47 -0
  172. package/lib/chunk-EEXXJFJO.cjs.map +1 -0
  173. package/lib/chunk-EFFMFEBS.cjs +47 -0
  174. package/lib/chunk-EFFMFEBS.cjs.map +1 -0
  175. package/lib/chunk-EI2KOTCG.js +37 -0
  176. package/lib/chunk-EI2KOTCG.js.map +1 -0
  177. package/lib/chunk-ELTYSKHB.js +68 -0
  178. package/lib/chunk-ELTYSKHB.js.map +1 -0
  179. package/lib/chunk-EO7RCCV2.js +45 -0
  180. package/lib/chunk-EO7RCCV2.js.map +1 -0
  181. package/lib/chunk-EOV3GRPM.js +27 -0
  182. package/lib/chunk-EOV3GRPM.js.map +1 -0
  183. package/lib/chunk-EQ5ASSXQ.cjs +95 -0
  184. package/lib/chunk-EQ5ASSXQ.cjs.map +1 -0
  185. package/lib/chunk-EQZMPSGR.js +55 -0
  186. package/lib/chunk-EQZMPSGR.js.map +1 -0
  187. package/lib/chunk-ESI7A34I.js +52 -0
  188. package/lib/chunk-ESI7A34I.js.map +1 -0
  189. package/lib/chunk-EWFAT7KA.js +283 -0
  190. package/lib/chunk-EWFAT7KA.js.map +1 -0
  191. package/lib/chunk-FANJUOI3.cjs +51 -0
  192. package/lib/chunk-FANJUOI3.cjs.map +1 -0
  193. package/lib/chunk-FB6DA6TM.cjs +49 -0
  194. package/lib/chunk-FB6DA6TM.cjs.map +1 -0
  195. package/lib/chunk-FRVEAP6J.js +73 -0
  196. package/lib/chunk-FRVEAP6J.js.map +1 -0
  197. package/lib/chunk-FUQA5XT7.cjs +47 -0
  198. package/lib/chunk-FUQA5XT7.cjs.map +1 -0
  199. package/lib/chunk-FVRWASHH.js +32 -0
  200. package/lib/chunk-FVRWASHH.js.map +1 -0
  201. package/lib/chunk-FWBO3MH4.js +54 -0
  202. package/lib/chunk-FWBO3MH4.js.map +1 -0
  203. package/lib/chunk-FZKENL3J.js +53 -0
  204. package/lib/chunk-FZKENL3J.js.map +1 -0
  205. package/lib/chunk-GCY5B73J.cjs +47 -0
  206. package/lib/chunk-GCY5B73J.cjs.map +1 -0
  207. package/lib/chunk-GIZE32ZY.js +73 -0
  208. package/lib/chunk-GIZE32ZY.js.map +1 -0
  209. package/lib/chunk-GZPZZ262.js +49 -0
  210. package/lib/chunk-GZPZZ262.js.map +1 -0
  211. package/lib/chunk-H6K62JGC.cjs +47 -0
  212. package/lib/chunk-H6K62JGC.cjs.map +1 -0
  213. package/lib/chunk-H7J2F6QG.cjs +47 -0
  214. package/lib/chunk-H7J2F6QG.cjs.map +1 -0
  215. package/lib/chunk-H7KZGQXZ.cjs +71 -0
  216. package/lib/chunk-H7KZGQXZ.cjs.map +1 -0
  217. package/lib/chunk-HFKNOYWV.cjs +98 -0
  218. package/lib/chunk-HFKNOYWV.cjs.map +1 -0
  219. package/lib/chunk-HLR5KZ6S.js +51 -0
  220. package/lib/chunk-HLR5KZ6S.js.map +1 -0
  221. package/lib/chunk-HZYPMFTS.cjs +49 -0
  222. package/lib/chunk-HZYPMFTS.cjs.map +1 -0
  223. package/lib/chunk-I2E2P72P.cjs +70 -0
  224. package/lib/chunk-I2E2P72P.cjs.map +1 -0
  225. package/lib/chunk-I2FEIMVG.cjs +53 -0
  226. package/lib/chunk-I2FEIMVG.cjs.map +1 -0
  227. package/lib/chunk-I2UV76EQ.js +102 -0
  228. package/lib/chunk-I2UV76EQ.js.map +1 -0
  229. package/lib/chunk-I64ZCB4W.cjs +55 -0
  230. package/lib/chunk-I64ZCB4W.cjs.map +1 -0
  231. package/lib/chunk-IG2P6JOK.js +40 -0
  232. package/lib/chunk-IG2P6JOK.js.map +1 -0
  233. package/lib/chunk-IG6UCDED.js +59 -0
  234. package/lib/chunk-IG6UCDED.js.map +1 -0
  235. package/lib/chunk-IIUBCLDN.js +47 -0
  236. package/lib/chunk-IIUBCLDN.js.map +1 -0
  237. package/lib/chunk-IKU3CD3A.cjs +75 -0
  238. package/lib/chunk-IKU3CD3A.cjs.map +1 -0
  239. package/lib/chunk-IL2AXMUE.js +45 -0
  240. package/lib/chunk-IL2AXMUE.js.map +1 -0
  241. package/lib/chunk-IL66CF3O.js +105 -0
  242. package/lib/chunk-IL66CF3O.js.map +1 -0
  243. package/lib/chunk-ILAFDO4M.js +36 -0
  244. package/lib/chunk-ILAFDO4M.js.map +1 -0
  245. package/lib/chunk-INBIEH6H.cjs +44 -0
  246. package/lib/chunk-INBIEH6H.cjs.map +1 -0
  247. package/lib/chunk-IOSR7D3F.cjs +47 -0
  248. package/lib/chunk-IOSR7D3F.cjs.map +1 -0
  249. package/lib/chunk-IOYGVLML.js +41 -0
  250. package/lib/chunk-IOYGVLML.js.map +1 -0
  251. package/lib/chunk-IP5G2VCS.cjs +38 -0
  252. package/lib/chunk-IP5G2VCS.cjs.map +1 -0
  253. package/lib/chunk-IWH7CXBG.js +124 -0
  254. package/lib/chunk-IWH7CXBG.js.map +1 -0
  255. package/lib/chunk-IYGFGGZR.js +59 -0
  256. package/lib/chunk-IYGFGGZR.js.map +1 -0
  257. package/lib/chunk-IYQFTOVG.cjs +39 -0
  258. package/lib/chunk-IYQFTOVG.cjs.map +1 -0
  259. package/lib/chunk-J2ULMBWQ.js +89 -0
  260. package/lib/chunk-J2ULMBWQ.js.map +1 -0
  261. package/lib/chunk-JARZZUPY.js +93 -0
  262. package/lib/chunk-JARZZUPY.js.map +1 -0
  263. package/lib/chunk-JBKJAYRL.cjs +50 -0
  264. package/lib/chunk-JBKJAYRL.cjs.map +1 -0
  265. package/lib/chunk-JEOA64GW.cjs +46 -0
  266. package/lib/chunk-JEOA64GW.cjs.map +1 -0
  267. package/lib/chunk-JGTC32IT.cjs +69 -0
  268. package/lib/chunk-JGTC32IT.cjs.map +1 -0
  269. package/lib/chunk-JHYHQV3E.js +67 -0
  270. package/lib/chunk-JHYHQV3E.js.map +1 -0
  271. package/lib/chunk-JIDX6RAT.js +103 -0
  272. package/lib/chunk-JIDX6RAT.js.map +1 -0
  273. package/lib/chunk-JIQRQ5TK.cjs +39 -0
  274. package/lib/chunk-JIQRQ5TK.cjs.map +1 -0
  275. package/lib/chunk-JMKSIDZI.cjs +51 -0
  276. package/lib/chunk-JMKSIDZI.cjs.map +1 -0
  277. package/lib/chunk-JO2S5NYR.js +51 -0
  278. package/lib/chunk-JO2S5NYR.js.map +1 -0
  279. package/lib/chunk-JR6TYHVG.js +41 -0
  280. package/lib/chunk-JR6TYHVG.js.map +1 -0
  281. package/lib/chunk-JRVZ4JQI.js +32 -0
  282. package/lib/chunk-JRVZ4JQI.js.map +1 -0
  283. package/lib/chunk-JSHKAVYF.js +45 -0
  284. package/lib/chunk-JSHKAVYF.js.map +1 -0
  285. package/lib/chunk-K3GPCGMJ.cjs +47 -0
  286. package/lib/chunk-K3GPCGMJ.cjs.map +1 -0
  287. package/lib/chunk-KC46F2PJ.cjs +47 -0
  288. package/lib/chunk-KC46F2PJ.cjs.map +1 -0
  289. package/lib/chunk-KLO6RFMQ.cjs +89 -0
  290. package/lib/chunk-KLO6RFMQ.cjs.map +1 -0
  291. package/lib/chunk-KN2KHVGW.js +93 -0
  292. package/lib/chunk-KN2KHVGW.js.map +1 -0
  293. package/lib/chunk-KU5M6CZ5.js +48 -0
  294. package/lib/chunk-KU5M6CZ5.js.map +1 -0
  295. package/lib/chunk-KUJFQHAN.js +52 -0
  296. package/lib/chunk-KUJFQHAN.js.map +1 -0
  297. package/lib/chunk-KZDGS2SG.cjs +70 -0
  298. package/lib/chunk-KZDGS2SG.cjs.map +1 -0
  299. package/lib/chunk-L4PEYYXQ.cjs +51 -0
  300. package/lib/chunk-L4PEYYXQ.cjs.map +1 -0
  301. package/lib/chunk-L7FT6NDZ.cjs +284 -0
  302. package/lib/chunk-L7FT6NDZ.cjs.map +1 -0
  303. package/lib/chunk-LFNJLWV4.cjs +33 -0
  304. package/lib/chunk-LFNJLWV4.cjs.map +1 -0
  305. package/lib/chunk-LHESCZ5L.cjs +39 -0
  306. package/lib/chunk-LHESCZ5L.cjs.map +1 -0
  307. package/lib/chunk-LOJ7246E.js +44 -0
  308. package/lib/chunk-LOJ7246E.js.map +1 -0
  309. package/lib/chunk-LP52UBLY.js +54 -0
  310. package/lib/chunk-LP52UBLY.js.map +1 -0
  311. package/lib/chunk-LPP7TYFN.js +45 -0
  312. package/lib/chunk-LPP7TYFN.js.map +1 -0
  313. package/lib/chunk-LS7VSSB4.js +49 -0
  314. package/lib/chunk-LS7VSSB4.js.map +1 -0
  315. package/lib/chunk-LSISPTNQ.cjs +47 -0
  316. package/lib/chunk-LSISPTNQ.cjs.map +1 -0
  317. package/lib/chunk-LZO46NMA.js +60 -0
  318. package/lib/chunk-LZO46NMA.js.map +1 -0
  319. package/lib/chunk-M22WZEWB.js +37 -0
  320. package/lib/chunk-M22WZEWB.js.map +1 -0
  321. package/lib/chunk-M63P3MQC.cjs +51 -0
  322. package/lib/chunk-M63P3MQC.cjs.map +1 -0
  323. package/lib/chunk-M7EUSLT2.js +51 -0
  324. package/lib/chunk-M7EUSLT2.js.map +1 -0
  325. package/lib/chunk-M7SVKQ7R.cjs +51 -0
  326. package/lib/chunk-M7SVKQ7R.cjs.map +1 -0
  327. package/lib/chunk-MFDKS22G.js +536 -0
  328. package/lib/chunk-MFDKS22G.js.map +1 -0
  329. package/lib/chunk-MHNJALUB.cjs +42 -0
  330. package/lib/chunk-MHNJALUB.cjs.map +1 -0
  331. package/lib/chunk-MOYV2F4C.js +50 -0
  332. package/lib/chunk-MOYV2F4C.js.map +1 -0
  333. package/lib/chunk-MVXKHM42.cjs +47 -0
  334. package/lib/chunk-MVXKHM42.cjs.map +1 -0
  335. package/lib/chunk-N2TACGKJ.js +59 -0
  336. package/lib/chunk-N2TACGKJ.js.map +1 -0
  337. package/lib/chunk-N5BGBBOP.js +47 -0
  338. package/lib/chunk-N5BGBBOP.js.map +1 -0
  339. package/lib/chunk-NGJN2PES.cjs +95 -0
  340. package/lib/chunk-NGJN2PES.cjs.map +1 -0
  341. package/lib/chunk-NIFNQI3P.js +49 -0
  342. package/lib/chunk-NIFNQI3P.js.map +1 -0
  343. package/lib/chunk-NLL7EH7Y.cjs +42 -0
  344. package/lib/chunk-NLL7EH7Y.cjs.map +1 -0
  345. package/lib/chunk-NOGYLNW5.cjs +49 -0
  346. package/lib/chunk-NOGYLNW5.cjs.map +1 -0
  347. package/lib/chunk-NPZA6AMN.js +95 -0
  348. package/lib/chunk-NPZA6AMN.js.map +1 -0
  349. package/lib/chunk-NSMPVEO4.js +49 -0
  350. package/lib/chunk-NSMPVEO4.js.map +1 -0
  351. package/lib/chunk-NURW5BJN.js +37 -0
  352. package/lib/chunk-NURW5BJN.js.map +1 -0
  353. package/lib/chunk-NWPF43O7.js +50 -0
  354. package/lib/chunk-NWPF43O7.js.map +1 -0
  355. package/lib/chunk-NXSK65YY.cjs +47 -0
  356. package/lib/chunk-NXSK65YY.cjs.map +1 -0
  357. package/lib/chunk-OBNGBDLS.js +47 -0
  358. package/lib/chunk-OBNGBDLS.js.map +1 -0
  359. package/lib/chunk-OEMRZEYB.js +45 -0
  360. package/lib/chunk-OEMRZEYB.js.map +1 -0
  361. package/lib/chunk-ONVG32V5.cjs +63 -0
  362. package/lib/chunk-ONVG32V5.cjs.map +1 -0
  363. package/lib/chunk-P2IDAXTS.cjs +62 -0
  364. package/lib/chunk-P2IDAXTS.cjs.map +1 -0
  365. package/lib/chunk-P47JG2WA.js +48 -0
  366. package/lib/chunk-P47JG2WA.js.map +1 -0
  367. package/lib/chunk-P5EEPVZA.cjs +77 -0
  368. package/lib/chunk-P5EEPVZA.cjs.map +1 -0
  369. package/lib/chunk-PB6VKR7P.js +49 -0
  370. package/lib/chunk-PB6VKR7P.js.map +1 -0
  371. package/lib/chunk-PBEQTSJS.cjs +47 -0
  372. package/lib/chunk-PBEQTSJS.cjs.map +1 -0
  373. package/lib/chunk-PL6A37WA.js +45 -0
  374. package/lib/chunk-PL6A37WA.js.map +1 -0
  375. package/lib/chunk-PMV3JPUR.cjs +51 -0
  376. package/lib/chunk-PMV3JPUR.cjs.map +1 -0
  377. package/lib/chunk-PQJ2ODW3.cjs +67 -0
  378. package/lib/chunk-PQJ2ODW3.cjs.map +1 -0
  379. package/lib/chunk-PUBFRIEQ.cjs +95 -0
  380. package/lib/chunk-PUBFRIEQ.cjs.map +1 -0
  381. package/lib/chunk-PULH7AI4.cjs +68 -0
  382. package/lib/chunk-PULH7AI4.cjs.map +1 -0
  383. package/lib/chunk-PUTVVRLC.js +69 -0
  384. package/lib/chunk-PUTVVRLC.js.map +1 -0
  385. package/lib/chunk-PVBBO54F.js +49 -0
  386. package/lib/chunk-PVBBO54F.js.map +1 -0
  387. package/lib/chunk-Q3WUCLM5.js +37 -0
  388. package/lib/chunk-Q3WUCLM5.js.map +1 -0
  389. package/lib/chunk-Q5OKMDOT.js +24 -0
  390. package/lib/chunk-Q5OKMDOT.js.map +1 -0
  391. package/lib/chunk-QCY5BXWM.cjs +46 -0
  392. package/lib/chunk-QCY5BXWM.cjs.map +1 -0
  393. package/lib/chunk-QDZI3I46.cjs +43 -0
  394. package/lib/chunk-QDZI3I46.cjs.map +1 -0
  395. package/lib/chunk-QF6DOS2C.js +42 -0
  396. package/lib/chunk-QF6DOS2C.js.map +1 -0
  397. package/lib/chunk-QI4UFW5A.js +59 -0
  398. package/lib/chunk-QI4UFW5A.js.map +1 -0
  399. package/lib/chunk-QJDQS6PE.cjs +107 -0
  400. package/lib/chunk-QJDQS6PE.cjs.map +1 -0
  401. package/lib/chunk-QTBUH3V7.js +61 -0
  402. package/lib/chunk-QTBUH3V7.js.map +1 -0
  403. package/lib/chunk-QVJZ2PSX.cjs +51 -0
  404. package/lib/chunk-QVJZ2PSX.cjs.map +1 -0
  405. package/lib/chunk-QWJAX42Q.cjs +53 -0
  406. package/lib/chunk-QWJAX42Q.cjs.map +1 -0
  407. package/lib/chunk-QXXLGQVN.js +45 -0
  408. package/lib/chunk-QXXLGQVN.js.map +1 -0
  409. package/lib/chunk-R3IJVFKR.cjs +53 -0
  410. package/lib/chunk-R3IJVFKR.cjs.map +1 -0
  411. package/lib/chunk-RDZZJ22W.cjs +39 -0
  412. package/lib/chunk-RDZZJ22W.cjs.map +1 -0
  413. package/lib/chunk-RGGHPNOB.js +49 -0
  414. package/lib/chunk-RGGHPNOB.js.map +1 -0
  415. package/lib/chunk-RKD7U6QH.cjs +51 -0
  416. package/lib/chunk-RKD7U6QH.cjs.map +1 -0
  417. package/lib/chunk-RMTTRB7R.js +51 -0
  418. package/lib/chunk-RMTTRB7R.js.map +1 -0
  419. package/lib/chunk-RNJOCB3T.cjs +42 -0
  420. package/lib/chunk-RNJOCB3T.cjs.map +1 -0
  421. package/lib/chunk-RQAOPSUW.cjs +47 -0
  422. package/lib/chunk-RQAOPSUW.cjs.map +1 -0
  423. package/lib/chunk-RW4KKMPX.js +93 -0
  424. package/lib/chunk-RW4KKMPX.js.map +1 -0
  425. package/lib/chunk-S4UDNFDR.js +44 -0
  426. package/lib/chunk-S4UDNFDR.js.map +1 -0
  427. package/lib/chunk-SGXMH2JP.cjs +29 -0
  428. package/lib/chunk-SGXMH2JP.cjs.map +1 -0
  429. package/lib/chunk-SIUUVOQC.js +51 -0
  430. package/lib/chunk-SIUUVOQC.js.map +1 -0
  431. package/lib/chunk-SO73YTDF.cjs +53 -0
  432. package/lib/chunk-SO73YTDF.cjs.map +1 -0
  433. package/lib/chunk-SOA5XGA2.js +51 -0
  434. package/lib/chunk-SOA5XGA2.js.map +1 -0
  435. package/lib/chunk-SOOB4KI7.cjs +53 -0
  436. package/lib/chunk-SOOB4KI7.cjs.map +1 -0
  437. package/lib/chunk-SSHXUS6Q.js +49 -0
  438. package/lib/chunk-SSHXUS6Q.js.map +1 -0
  439. package/lib/chunk-STQYJKBK.cjs +55 -0
  440. package/lib/chunk-STQYJKBK.cjs.map +1 -0
  441. package/lib/chunk-SZARKLAL.js +68 -0
  442. package/lib/chunk-SZARKLAL.js.map +1 -0
  443. package/lib/chunk-SZM64XMO.cjs +68 -0
  444. package/lib/chunk-SZM64XMO.cjs.map +1 -0
  445. package/lib/chunk-T2DEYIX6.cjs +57 -0
  446. package/lib/chunk-T2DEYIX6.cjs.map +1 -0
  447. package/lib/chunk-T2YGQC4C.js +61 -0
  448. package/lib/chunk-T2YGQC4C.js.map +1 -0
  449. package/lib/chunk-T5OEKW7A.cjs +55 -0
  450. package/lib/chunk-T5OEKW7A.cjs.map +1 -0
  451. package/lib/chunk-T6CBFUT6.cjs +51 -0
  452. package/lib/chunk-T6CBFUT6.cjs.map +1 -0
  453. package/lib/chunk-TMP744WP.js +45 -0
  454. package/lib/chunk-TMP744WP.js.map +1 -0
  455. package/lib/chunk-TMSNRZEW.cjs +50 -0
  456. package/lib/chunk-TMSNRZEW.cjs.map +1 -0
  457. package/lib/chunk-TRDTLOUY.js +66 -0
  458. package/lib/chunk-TRDTLOUY.js.map +1 -0
  459. package/lib/chunk-TTVTRX76.cjs +93 -0
  460. package/lib/chunk-TTVTRX76.cjs.map +1 -0
  461. package/lib/chunk-TUKV2ZIA.cjs +52 -0
  462. package/lib/chunk-TUKV2ZIA.cjs.map +1 -0
  463. package/lib/chunk-TVKGUM2Z.js +99 -0
  464. package/lib/chunk-TVKGUM2Z.js.map +1 -0
  465. package/lib/chunk-U6G7T5WX.cjs +47 -0
  466. package/lib/chunk-U6G7T5WX.cjs.map +1 -0
  467. package/lib/chunk-UFUZNSZI.cjs +61 -0
  468. package/lib/chunk-UFUZNSZI.cjs.map +1 -0
  469. package/lib/chunk-UHZABEQZ.js +45 -0
  470. package/lib/chunk-UHZABEQZ.js.map +1 -0
  471. package/lib/chunk-UIRXTLC6.cjs +61 -0
  472. package/lib/chunk-UIRXTLC6.cjs.map +1 -0
  473. package/lib/chunk-UJ4OEOZA.js +87 -0
  474. package/lib/chunk-UJ4OEOZA.js.map +1 -0
  475. package/lib/chunk-UL4JQZUD.cjs +42 -0
  476. package/lib/chunk-UL4JQZUD.cjs.map +1 -0
  477. package/lib/chunk-UNPVTCLZ.cjs +47 -0
  478. package/lib/chunk-UNPVTCLZ.cjs.map +1 -0
  479. package/lib/chunk-USP4O34Q.js +28 -0
  480. package/lib/chunk-USP4O34Q.js.map +1 -0
  481. package/lib/chunk-UV6BETTC.js +48 -0
  482. package/lib/chunk-UV6BETTC.js.map +1 -0
  483. package/lib/chunk-UXLDPLOA.js +45 -0
  484. package/lib/chunk-UXLDPLOA.js.map +1 -0
  485. package/lib/chunk-V6VQMQQX.js +91 -0
  486. package/lib/chunk-V6VQMQQX.js.map +1 -0
  487. package/lib/chunk-V74OBMS3.cjs +95 -0
  488. package/lib/chunk-V74OBMS3.cjs.map +1 -0
  489. package/lib/chunk-VA6VDBQS.js +41 -0
  490. package/lib/chunk-VA6VDBQS.js.map +1 -0
  491. package/lib/chunk-VB7XUWBF.cjs +47 -0
  492. package/lib/chunk-VB7XUWBF.cjs.map +1 -0
  493. package/lib/chunk-VESU72KU.js +93 -0
  494. package/lib/chunk-VESU72KU.js.map +1 -0
  495. package/lib/chunk-VEV4DZKI.cjs +51 -0
  496. package/lib/chunk-VEV4DZKI.cjs.map +1 -0
  497. package/lib/chunk-VI2NCCWC.js +49 -0
  498. package/lib/chunk-VI2NCCWC.js.map +1 -0
  499. package/lib/chunk-VTSEVEKJ.cjs +53 -0
  500. package/lib/chunk-VTSEVEKJ.cjs.map +1 -0
  501. package/lib/chunk-VVS2M4QH.js +53 -0
  502. package/lib/chunk-VVS2M4QH.js.map +1 -0
  503. package/lib/chunk-VWUS4YUX.js +49 -0
  504. package/lib/chunk-VWUS4YUX.js.map +1 -0
  505. package/lib/chunk-VXXJ3CIC.js +49 -0
  506. package/lib/chunk-VXXJ3CIC.js.map +1 -0
  507. package/lib/chunk-VZQLDW2G.cjs +95 -0
  508. package/lib/chunk-VZQLDW2G.cjs.map +1 -0
  509. package/lib/chunk-WO5PFLID.js +45 -0
  510. package/lib/chunk-WO5PFLID.js.map +1 -0
  511. package/lib/chunk-WWUZP5BE.cjs +50 -0
  512. package/lib/chunk-WWUZP5BE.cjs.map +1 -0
  513. package/lib/chunk-X55DEMOC.js +45 -0
  514. package/lib/chunk-X55DEMOC.js.map +1 -0
  515. package/lib/chunk-X5TTCMYD.cjs +105 -0
  516. package/lib/chunk-X5TTCMYD.cjs.map +1 -0
  517. package/lib/chunk-XEAXNFP4.js +49 -0
  518. package/lib/chunk-XEAXNFP4.js.map +1 -0
  519. package/lib/chunk-XJLJ77JI.cjs +107 -0
  520. package/lib/chunk-XJLJ77JI.cjs.map +1 -0
  521. package/lib/chunk-XK7ZO7EI.js +40 -0
  522. package/lib/chunk-XK7ZO7EI.js.map +1 -0
  523. package/lib/chunk-XPPCVN6T.cjs +53 -0
  524. package/lib/chunk-XPPCVN6T.cjs.map +1 -0
  525. package/lib/chunk-XREISFN4.cjs +42 -0
  526. package/lib/chunk-XREISFN4.cjs.map +1 -0
  527. package/lib/chunk-XTJSTAG5.js +45 -0
  528. package/lib/chunk-XTJSTAG5.js.map +1 -0
  529. package/lib/chunk-XTN5Y5IT.cjs +56 -0
  530. package/lib/chunk-XTN5Y5IT.cjs.map +1 -0
  531. package/lib/chunk-XU6ZCB7C.cjs +47 -0
  532. package/lib/chunk-XU6ZCB7C.cjs.map +1 -0
  533. package/lib/chunk-XWBNNCYU.cjs +97 -0
  534. package/lib/chunk-XWBNNCYU.cjs.map +1 -0
  535. package/lib/chunk-XWIVM4OM.cjs +42 -0
  536. package/lib/chunk-XWIVM4OM.cjs.map +1 -0
  537. package/lib/chunk-Y4GGZ4EQ.cjs +101 -0
  538. package/lib/chunk-Y4GGZ4EQ.cjs.map +1 -0
  539. package/lib/chunk-YBX7UV5N.cjs +91 -0
  540. package/lib/chunk-YBX7UV5N.cjs.map +1 -0
  541. package/lib/chunk-YETXFXFO.cjs +550 -0
  542. package/lib/chunk-YETXFXFO.cjs.map +1 -0
  543. package/lib/chunk-YFTJA634.js +36 -0
  544. package/lib/chunk-YFTJA634.js.map +1 -0
  545. package/lib/chunk-YRCCY6RV.js +276 -0
  546. package/lib/chunk-YRCCY6RV.js.map +1 -0
  547. package/lib/chunk-YYAEAKBO.cjs +51 -0
  548. package/lib/chunk-YYAEAKBO.cjs.map +1 -0
  549. package/lib/chunk-ZGX3A2OH.cjs +42 -0
  550. package/lib/chunk-ZGX3A2OH.cjs.map +1 -0
  551. package/lib/chunk-ZJE7A6E6.cjs +39 -0
  552. package/lib/chunk-ZJE7A6E6.cjs.map +1 -0
  553. package/lib/chunk-ZM2HKUHW.cjs +50 -0
  554. package/lib/chunk-ZM2HKUHW.cjs.map +1 -0
  555. package/lib/chunk-ZVSNJOYP.js +51 -0
  556. package/lib/chunk-ZVSNJOYP.js.map +1 -0
  557. package/lib/commercelayer.cjs +7 -7
  558. package/lib/commercelayer.d.cts +3 -3
  559. package/lib/commercelayer.d.ts +3 -3
  560. package/lib/commercelayer.js +3 -3
  561. package/lib/enum.cjs +14 -22
  562. package/lib/enum.d.cts +1 -1
  563. package/lib/enum.d.ts +1 -1
  564. package/lib/enum.js +1 -1
  565. package/lib/index.cjs +270 -275
  566. package/lib/index.d.cts +1 -1
  567. package/lib/index.d.ts +1 -1
  568. package/lib/index.js +136 -137
  569. package/lib/jsonapi.cjs +4 -4
  570. package/lib/jsonapi.d.cts +1 -1
  571. package/lib/jsonapi.d.ts +1 -1
  572. package/lib/jsonapi.js +2 -2
  573. package/lib/model.d.cts +1 -1
  574. package/lib/model.d.ts +1 -1
  575. package/lib/query.d.cts +1 -1
  576. package/lib/query.d.ts +1 -1
  577. package/lib/resource.cjs +7 -7
  578. package/lib/resource.d.cts +1 -1
  579. package/lib/resource.d.ts +1 -1
  580. package/lib/resource.js +2 -2
  581. package/lib/resources/addresses.cjs +4 -4
  582. package/lib/resources/addresses.d.cts +2 -2
  583. package/lib/resources/addresses.d.ts +1 -1
  584. package/lib/resources/addresses.js +3 -3
  585. package/lib/resources/adjustments.cjs +4 -4
  586. package/lib/resources/adjustments.d.cts +2 -2
  587. package/lib/resources/adjustments.d.ts +1 -1
  588. package/lib/resources/adjustments.js +3 -3
  589. package/lib/resources/adyen_gateways.cjs +4 -4
  590. package/lib/resources/adyen_gateways.d.cts +2 -2
  591. package/lib/resources/adyen_gateways.d.ts +1 -1
  592. package/lib/resources/adyen_gateways.js +3 -3
  593. package/lib/resources/adyen_payments.cjs +4 -4
  594. package/lib/resources/adyen_payments.d.cts +2 -2
  595. package/lib/resources/adyen_payments.d.ts +1 -1
  596. package/lib/resources/adyen_payments.js +3 -3
  597. package/lib/resources/applications.cjs +4 -4
  598. package/lib/resources/applications.d.cts +2 -2
  599. package/lib/resources/applications.d.ts +1 -1
  600. package/lib/resources/applications.js +3 -3
  601. package/lib/resources/attachments.cjs +4 -4
  602. package/lib/resources/attachments.d.cts +2 -2
  603. package/lib/resources/attachments.d.ts +1 -1
  604. package/lib/resources/attachments.js +3 -3
  605. package/lib/resources/authorizations.cjs +4 -4
  606. package/lib/resources/authorizations.d.cts +2 -2
  607. package/lib/resources/authorizations.d.ts +1 -1
  608. package/lib/resources/authorizations.js +3 -3
  609. package/lib/resources/avalara_accounts.cjs +4 -4
  610. package/lib/resources/avalara_accounts.d.cts +2 -2
  611. package/lib/resources/avalara_accounts.d.ts +1 -1
  612. package/lib/resources/avalara_accounts.js +3 -3
  613. package/lib/resources/axerve_gateways.cjs +4 -4
  614. package/lib/resources/axerve_gateways.d.cts +2 -2
  615. package/lib/resources/axerve_gateways.d.ts +1 -1
  616. package/lib/resources/axerve_gateways.js +3 -3
  617. package/lib/resources/axerve_payments.cjs +4 -4
  618. package/lib/resources/axerve_payments.d.cts +2 -2
  619. package/lib/resources/axerve_payments.d.ts +1 -1
  620. package/lib/resources/axerve_payments.js +3 -3
  621. package/lib/resources/bing_geocoders.cjs +4 -4
  622. package/lib/resources/bing_geocoders.d.cts +2 -2
  623. package/lib/resources/bing_geocoders.d.ts +1 -1
  624. package/lib/resources/bing_geocoders.js +3 -3
  625. package/lib/resources/braintree_gateways.cjs +4 -4
  626. package/lib/resources/braintree_gateways.d.cts +2 -2
  627. package/lib/resources/braintree_gateways.d.ts +1 -1
  628. package/lib/resources/braintree_gateways.js +3 -3
  629. package/lib/resources/braintree_payments.cjs +4 -4
  630. package/lib/resources/braintree_payments.d.cts +2 -2
  631. package/lib/resources/braintree_payments.d.ts +1 -1
  632. package/lib/resources/braintree_payments.js +3 -3
  633. package/lib/resources/bundles.cjs +4 -4
  634. package/lib/resources/bundles.d.cts +2 -2
  635. package/lib/resources/bundles.d.ts +1 -1
  636. package/lib/resources/bundles.js +3 -3
  637. package/lib/resources/buy_x_pay_y_promotions.cjs +4 -4
  638. package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
  639. package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
  640. package/lib/resources/buy_x_pay_y_promotions.js +3 -3
  641. package/lib/resources/captures.cjs +4 -4
  642. package/lib/resources/captures.d.cts +2 -2
  643. package/lib/resources/captures.d.ts +1 -1
  644. package/lib/resources/captures.js +3 -3
  645. package/lib/resources/carrier_accounts.cjs +4 -4
  646. package/lib/resources/carrier_accounts.d.cts +2 -2
  647. package/lib/resources/carrier_accounts.d.ts +1 -1
  648. package/lib/resources/carrier_accounts.js +3 -3
  649. package/lib/resources/checkout_com_gateways.cjs +4 -4
  650. package/lib/resources/checkout_com_gateways.d.cts +2 -2
  651. package/lib/resources/checkout_com_gateways.d.ts +1 -1
  652. package/lib/resources/checkout_com_gateways.js +3 -3
  653. package/lib/resources/checkout_com_payments.cjs +4 -4
  654. package/lib/resources/checkout_com_payments.d.cts +2 -2
  655. package/lib/resources/checkout_com_payments.d.ts +1 -1
  656. package/lib/resources/checkout_com_payments.js +3 -3
  657. package/lib/resources/cleanups.cjs +4 -4
  658. package/lib/resources/cleanups.d.cts +2 -2
  659. package/lib/resources/cleanups.d.ts +1 -1
  660. package/lib/resources/cleanups.js +3 -3
  661. package/lib/resources/coupon_codes_promotion_rules.cjs +4 -4
  662. package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
  663. package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
  664. package/lib/resources/coupon_codes_promotion_rules.js +3 -3
  665. package/lib/resources/coupon_recipients.cjs +4 -4
  666. package/lib/resources/coupon_recipients.d.cts +2 -2
  667. package/lib/resources/coupon_recipients.d.ts +1 -1
  668. package/lib/resources/coupon_recipients.js +3 -3
  669. package/lib/resources/coupons.cjs +4 -4
  670. package/lib/resources/coupons.d.cts +2 -2
  671. package/lib/resources/coupons.d.ts +1 -1
  672. package/lib/resources/coupons.js +3 -3
  673. package/lib/resources/custom_promotion_rules.cjs +4 -4
  674. package/lib/resources/custom_promotion_rules.d.cts +2 -2
  675. package/lib/resources/custom_promotion_rules.d.ts +1 -1
  676. package/lib/resources/custom_promotion_rules.js +3 -3
  677. package/lib/resources/customer_addresses.cjs +4 -4
  678. package/lib/resources/customer_addresses.d.cts +2 -2
  679. package/lib/resources/customer_addresses.d.ts +1 -1
  680. package/lib/resources/customer_addresses.js +3 -3
  681. package/lib/resources/customer_groups.cjs +4 -4
  682. package/lib/resources/customer_groups.d.cts +2 -2
  683. package/lib/resources/customer_groups.d.ts +1 -1
  684. package/lib/resources/customer_groups.js +3 -3
  685. package/lib/resources/customer_password_resets.cjs +4 -4
  686. package/lib/resources/customer_password_resets.d.cts +2 -2
  687. package/lib/resources/customer_password_resets.d.ts +1 -1
  688. package/lib/resources/customer_password_resets.js +3 -3
  689. package/lib/resources/customer_payment_sources.cjs +4 -4
  690. package/lib/resources/customer_payment_sources.d.cts +2 -2
  691. package/lib/resources/customer_payment_sources.d.ts +1 -1
  692. package/lib/resources/customer_payment_sources.js +3 -3
  693. package/lib/resources/customer_subscriptions.cjs +4 -4
  694. package/lib/resources/customer_subscriptions.d.cts +2 -2
  695. package/lib/resources/customer_subscriptions.d.ts +1 -1
  696. package/lib/resources/customer_subscriptions.js +3 -3
  697. package/lib/resources/customers.cjs +4 -4
  698. package/lib/resources/customers.d.cts +2 -2
  699. package/lib/resources/customers.d.ts +1 -1
  700. package/lib/resources/customers.js +3 -3
  701. package/lib/resources/delivery_lead_times.cjs +4 -4
  702. package/lib/resources/delivery_lead_times.d.cts +2 -2
  703. package/lib/resources/delivery_lead_times.d.ts +1 -1
  704. package/lib/resources/delivery_lead_times.js +3 -3
  705. package/lib/resources/discount_engine_items.cjs +4 -4
  706. package/lib/resources/discount_engine_items.d.cts +2 -2
  707. package/lib/resources/discount_engine_items.d.ts +1 -1
  708. package/lib/resources/discount_engine_items.js +3 -3
  709. package/lib/resources/discount_engines.cjs +4 -4
  710. package/lib/resources/discount_engines.d.cts +2 -2
  711. package/lib/resources/discount_engines.d.ts +1 -1
  712. package/lib/resources/discount_engines.js +3 -3
  713. package/lib/resources/easypost_pickups.cjs +4 -4
  714. package/lib/resources/easypost_pickups.d.cts +2 -2
  715. package/lib/resources/easypost_pickups.d.ts +1 -1
  716. package/lib/resources/easypost_pickups.js +3 -3
  717. package/lib/resources/event_callbacks.cjs +4 -4
  718. package/lib/resources/event_callbacks.d.cts +2 -2
  719. package/lib/resources/event_callbacks.d.ts +1 -1
  720. package/lib/resources/event_callbacks.js +3 -3
  721. package/lib/resources/event_stores.cjs +4 -4
  722. package/lib/resources/event_stores.d.cts +2 -2
  723. package/lib/resources/event_stores.d.ts +1 -1
  724. package/lib/resources/event_stores.js +3 -3
  725. package/lib/resources/events.cjs +4 -4
  726. package/lib/resources/events.d.cts +2 -2
  727. package/lib/resources/events.d.ts +1 -1
  728. package/lib/resources/events.js +3 -3
  729. package/lib/resources/exports.cjs +4 -4
  730. package/lib/resources/exports.d.cts +2 -2
  731. package/lib/resources/exports.d.ts +1 -1
  732. package/lib/resources/exports.js +3 -3
  733. package/lib/resources/external_gateways.cjs +4 -4
  734. package/lib/resources/external_gateways.d.cts +2 -2
  735. package/lib/resources/external_gateways.d.ts +1 -1
  736. package/lib/resources/external_gateways.js +3 -3
  737. package/lib/resources/external_payments.cjs +4 -4
  738. package/lib/resources/external_payments.d.cts +2 -2
  739. package/lib/resources/external_payments.d.ts +1 -1
  740. package/lib/resources/external_payments.js +3 -3
  741. package/lib/resources/external_promotions.cjs +4 -4
  742. package/lib/resources/external_promotions.d.cts +2 -2
  743. package/lib/resources/external_promotions.d.ts +1 -1
  744. package/lib/resources/external_promotions.js +3 -3
  745. package/lib/resources/external_tax_calculators.cjs +4 -4
  746. package/lib/resources/external_tax_calculators.d.cts +2 -2
  747. package/lib/resources/external_tax_calculators.d.ts +1 -1
  748. package/lib/resources/external_tax_calculators.js +3 -3
  749. package/lib/resources/fixed_amount_promotions.cjs +4 -4
  750. package/lib/resources/fixed_amount_promotions.d.cts +2 -2
  751. package/lib/resources/fixed_amount_promotions.d.ts +1 -1
  752. package/lib/resources/fixed_amount_promotions.js +3 -3
  753. package/lib/resources/fixed_price_promotions.cjs +4 -4
  754. package/lib/resources/fixed_price_promotions.d.cts +2 -2
  755. package/lib/resources/fixed_price_promotions.d.ts +1 -1
  756. package/lib/resources/fixed_price_promotions.js +3 -3
  757. package/lib/resources/flex_promotions.cjs +4 -4
  758. package/lib/resources/flex_promotions.d.cts +2 -2
  759. package/lib/resources/flex_promotions.d.ts +1 -1
  760. package/lib/resources/flex_promotions.js +3 -3
  761. package/lib/resources/free_gift_promotions.cjs +4 -4
  762. package/lib/resources/free_gift_promotions.d.cts +2 -2
  763. package/lib/resources/free_gift_promotions.d.ts +1 -1
  764. package/lib/resources/free_gift_promotions.js +3 -3
  765. package/lib/resources/free_shipping_promotions.cjs +4 -4
  766. package/lib/resources/free_shipping_promotions.d.cts +2 -2
  767. package/lib/resources/free_shipping_promotions.d.ts +1 -1
  768. package/lib/resources/free_shipping_promotions.js +3 -3
  769. package/lib/resources/geocoders.cjs +4 -4
  770. package/lib/resources/geocoders.d.cts +2 -2
  771. package/lib/resources/geocoders.d.ts +1 -1
  772. package/lib/resources/geocoders.js +3 -3
  773. package/lib/resources/gift_card_recipients.cjs +4 -4
  774. package/lib/resources/gift_card_recipients.d.cts +2 -2
  775. package/lib/resources/gift_card_recipients.d.ts +1 -1
  776. package/lib/resources/gift_card_recipients.js +3 -3
  777. package/lib/resources/gift_cards.cjs +4 -4
  778. package/lib/resources/gift_cards.d.cts +2 -2
  779. package/lib/resources/gift_cards.d.ts +1 -1
  780. package/lib/resources/gift_cards.js +3 -3
  781. package/lib/resources/google_geocoders.cjs +4 -4
  782. package/lib/resources/google_geocoders.d.cts +2 -2
  783. package/lib/resources/google_geocoders.d.ts +1 -1
  784. package/lib/resources/google_geocoders.js +3 -3
  785. package/lib/resources/imports.cjs +4 -4
  786. package/lib/resources/imports.d.cts +2 -2
  787. package/lib/resources/imports.d.ts +1 -1
  788. package/lib/resources/imports.js +3 -3
  789. package/lib/resources/in_stock_subscriptions.cjs +4 -4
  790. package/lib/resources/in_stock_subscriptions.d.cts +2 -2
  791. package/lib/resources/in_stock_subscriptions.d.ts +1 -1
  792. package/lib/resources/in_stock_subscriptions.js +3 -3
  793. package/lib/resources/inventory_models.cjs +4 -4
  794. package/lib/resources/inventory_models.d.cts +2 -2
  795. package/lib/resources/inventory_models.d.ts +1 -1
  796. package/lib/resources/inventory_models.js +3 -3
  797. package/lib/resources/inventory_return_locations.cjs +4 -4
  798. package/lib/resources/inventory_return_locations.d.cts +2 -2
  799. package/lib/resources/inventory_return_locations.d.ts +1 -1
  800. package/lib/resources/inventory_return_locations.js +3 -3
  801. package/lib/resources/inventory_stock_locations.cjs +4 -4
  802. package/lib/resources/inventory_stock_locations.d.cts +2 -2
  803. package/lib/resources/inventory_stock_locations.d.ts +1 -1
  804. package/lib/resources/inventory_stock_locations.js +3 -3
  805. package/lib/resources/klarna_gateways.cjs +4 -4
  806. package/lib/resources/klarna_gateways.d.cts +2 -2
  807. package/lib/resources/klarna_gateways.d.ts +1 -1
  808. package/lib/resources/klarna_gateways.js +3 -3
  809. package/lib/resources/klarna_payments.cjs +4 -4
  810. package/lib/resources/klarna_payments.d.cts +2 -2
  811. package/lib/resources/klarna_payments.d.ts +1 -1
  812. package/lib/resources/klarna_payments.js +3 -3
  813. package/lib/resources/line_item_options.cjs +4 -4
  814. package/lib/resources/line_item_options.d.cts +2 -2
  815. package/lib/resources/line_item_options.d.ts +1 -1
  816. package/lib/resources/line_item_options.js +3 -3
  817. package/lib/resources/line_items.cjs +4 -4
  818. package/lib/resources/line_items.d.cts +2 -2
  819. package/lib/resources/line_items.d.ts +1 -1
  820. package/lib/resources/line_items.js +3 -3
  821. package/lib/resources/links.cjs +4 -4
  822. package/lib/resources/links.d.cts +2 -2
  823. package/lib/resources/links.d.ts +1 -1
  824. package/lib/resources/links.js +3 -3
  825. package/lib/resources/manual_gateways.cjs +4 -4
  826. package/lib/resources/manual_gateways.d.cts +2 -2
  827. package/lib/resources/manual_gateways.d.ts +1 -1
  828. package/lib/resources/manual_gateways.js +3 -3
  829. package/lib/resources/manual_tax_calculators.cjs +4 -4
  830. package/lib/resources/manual_tax_calculators.d.cts +2 -2
  831. package/lib/resources/manual_tax_calculators.d.ts +1 -1
  832. package/lib/resources/manual_tax_calculators.js +3 -3
  833. package/lib/resources/markets.cjs +4 -4
  834. package/lib/resources/markets.d.cts +2 -2
  835. package/lib/resources/markets.d.ts +1 -1
  836. package/lib/resources/markets.js +3 -3
  837. package/lib/resources/merchants.cjs +4 -4
  838. package/lib/resources/merchants.d.cts +2 -2
  839. package/lib/resources/merchants.d.ts +1 -1
  840. package/lib/resources/merchants.js +3 -3
  841. package/lib/resources/notifications.cjs +4 -4
  842. package/lib/resources/notifications.d.cts +2 -2
  843. package/lib/resources/notifications.d.ts +1 -1
  844. package/lib/resources/notifications.js +3 -3
  845. package/lib/resources/order_amount_promotion_rules.cjs +4 -4
  846. package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
  847. package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
  848. package/lib/resources/order_amount_promotion_rules.js +3 -3
  849. package/lib/resources/order_copies.cjs +4 -4
  850. package/lib/resources/order_copies.d.cts +2 -2
  851. package/lib/resources/order_copies.d.ts +1 -1
  852. package/lib/resources/order_copies.js +3 -3
  853. package/lib/resources/order_factories.cjs +4 -4
  854. package/lib/resources/order_factories.d.cts +2 -2
  855. package/lib/resources/order_factories.d.ts +1 -1
  856. package/lib/resources/order_factories.js +3 -3
  857. package/lib/resources/order_subscription_items.cjs +4 -4
  858. package/lib/resources/order_subscription_items.d.cts +2 -2
  859. package/lib/resources/order_subscription_items.d.ts +1 -1
  860. package/lib/resources/order_subscription_items.js +3 -3
  861. package/lib/resources/order_subscriptions.cjs +4 -4
  862. package/lib/resources/order_subscriptions.d.cts +2 -2
  863. package/lib/resources/order_subscriptions.d.ts +1 -1
  864. package/lib/resources/order_subscriptions.js +3 -3
  865. package/lib/resources/orders.cjs +4 -4
  866. package/lib/resources/orders.d.cts +2 -2
  867. package/lib/resources/orders.d.ts +1 -1
  868. package/lib/resources/orders.js +3 -3
  869. package/lib/resources/organizations.cjs +4 -4
  870. package/lib/resources/organizations.d.cts +2 -2
  871. package/lib/resources/organizations.d.ts +1 -1
  872. package/lib/resources/organizations.js +3 -3
  873. package/lib/resources/packages.cjs +4 -4
  874. package/lib/resources/packages.d.cts +2 -2
  875. package/lib/resources/packages.d.ts +1 -1
  876. package/lib/resources/packages.js +3 -3
  877. package/lib/resources/parcel_line_items.cjs +4 -4
  878. package/lib/resources/parcel_line_items.d.cts +2 -2
  879. package/lib/resources/parcel_line_items.d.ts +1 -1
  880. package/lib/resources/parcel_line_items.js +3 -3
  881. package/lib/resources/parcels.cjs +4 -4
  882. package/lib/resources/parcels.d.cts +2 -2
  883. package/lib/resources/parcels.d.ts +1 -1
  884. package/lib/resources/parcels.js +3 -3
  885. package/lib/resources/payment_gateways.cjs +4 -4
  886. package/lib/resources/payment_gateways.d.cts +2 -2
  887. package/lib/resources/payment_gateways.d.ts +1 -1
  888. package/lib/resources/payment_gateways.js +3 -3
  889. package/lib/resources/payment_methods.cjs +4 -4
  890. package/lib/resources/payment_methods.d.cts +2 -2
  891. package/lib/resources/payment_methods.d.ts +1 -1
  892. package/lib/resources/payment_methods.js +3 -3
  893. package/lib/resources/payment_options.cjs +4 -4
  894. package/lib/resources/payment_options.d.cts +2 -2
  895. package/lib/resources/payment_options.d.ts +1 -1
  896. package/lib/resources/payment_options.js +3 -3
  897. package/lib/resources/paypal_gateways.cjs +4 -4
  898. package/lib/resources/paypal_gateways.d.cts +2 -2
  899. package/lib/resources/paypal_gateways.d.ts +1 -1
  900. package/lib/resources/paypal_gateways.js +3 -3
  901. package/lib/resources/paypal_payments.cjs +4 -4
  902. package/lib/resources/paypal_payments.d.cts +2 -2
  903. package/lib/resources/paypal_payments.d.ts +1 -1
  904. package/lib/resources/paypal_payments.js +3 -3
  905. package/lib/resources/percentage_discount_promotions.cjs +4 -4
  906. package/lib/resources/percentage_discount_promotions.d.cts +2 -2
  907. package/lib/resources/percentage_discount_promotions.d.ts +1 -1
  908. package/lib/resources/percentage_discount_promotions.js +3 -3
  909. package/lib/resources/pickups.cjs +4 -4
  910. package/lib/resources/pickups.d.cts +2 -2
  911. package/lib/resources/pickups.d.ts +1 -1
  912. package/lib/resources/pickups.js +3 -3
  913. package/lib/resources/price_frequency_tiers.cjs +4 -4
  914. package/lib/resources/price_frequency_tiers.d.cts +2 -2
  915. package/lib/resources/price_frequency_tiers.d.ts +1 -1
  916. package/lib/resources/price_frequency_tiers.js +3 -3
  917. package/lib/resources/price_list_schedulers.cjs +4 -4
  918. package/lib/resources/price_list_schedulers.d.cts +2 -2
  919. package/lib/resources/price_list_schedulers.d.ts +1 -1
  920. package/lib/resources/price_list_schedulers.js +3 -3
  921. package/lib/resources/price_lists.cjs +4 -4
  922. package/lib/resources/price_lists.d.cts +2 -2
  923. package/lib/resources/price_lists.d.ts +1 -1
  924. package/lib/resources/price_lists.js +3 -3
  925. package/lib/resources/price_tiers.cjs +4 -4
  926. package/lib/resources/price_tiers.d.cts +2 -2
  927. package/lib/resources/price_tiers.d.ts +1 -1
  928. package/lib/resources/price_tiers.js +3 -3
  929. package/lib/resources/price_volume_tiers.cjs +4 -4
  930. package/lib/resources/price_volume_tiers.d.cts +2 -2
  931. package/lib/resources/price_volume_tiers.d.ts +1 -1
  932. package/lib/resources/price_volume_tiers.js +3 -3
  933. package/lib/resources/prices.cjs +4 -4
  934. package/lib/resources/prices.d.cts +2 -2
  935. package/lib/resources/prices.d.ts +1 -1
  936. package/lib/resources/prices.js +3 -3
  937. package/lib/resources/promotion_rules.cjs +4 -4
  938. package/lib/resources/promotion_rules.d.cts +2 -2
  939. package/lib/resources/promotion_rules.d.ts +1 -1
  940. package/lib/resources/promotion_rules.js +3 -3
  941. package/lib/resources/promotions.cjs +4 -4
  942. package/lib/resources/promotions.d.cts +2 -2
  943. package/lib/resources/promotions.d.ts +1 -1
  944. package/lib/resources/promotions.js +3 -3
  945. package/lib/resources/recurring_order_copies.cjs +4 -4
  946. package/lib/resources/recurring_order_copies.d.cts +2 -2
  947. package/lib/resources/recurring_order_copies.d.ts +1 -1
  948. package/lib/resources/recurring_order_copies.js +3 -3
  949. package/lib/resources/refunds.cjs +4 -4
  950. package/lib/resources/refunds.d.cts +2 -2
  951. package/lib/resources/refunds.d.ts +1 -1
  952. package/lib/resources/refunds.js +3 -3
  953. package/lib/resources/reserved_stocks.cjs +4 -4
  954. package/lib/resources/reserved_stocks.d.cts +2 -2
  955. package/lib/resources/reserved_stocks.d.ts +1 -1
  956. package/lib/resources/reserved_stocks.js +3 -3
  957. package/lib/resources/resource_errors.cjs +4 -4
  958. package/lib/resources/resource_errors.d.cts +2 -2
  959. package/lib/resources/resource_errors.d.ts +1 -1
  960. package/lib/resources/resource_errors.js +3 -3
  961. package/lib/resources/return_line_items.cjs +4 -4
  962. package/lib/resources/return_line_items.d.cts +2 -2
  963. package/lib/resources/return_line_items.d.ts +1 -1
  964. package/lib/resources/return_line_items.js +3 -3
  965. package/lib/resources/returns.cjs +4 -4
  966. package/lib/resources/returns.d.cts +2 -2
  967. package/lib/resources/returns.d.ts +1 -1
  968. package/lib/resources/returns.js +3 -3
  969. package/lib/resources/satispay_gateways.cjs +4 -4
  970. package/lib/resources/satispay_gateways.d.cts +2 -2
  971. package/lib/resources/satispay_gateways.d.ts +1 -1
  972. package/lib/resources/satispay_gateways.js +3 -3
  973. package/lib/resources/satispay_payments.cjs +4 -4
  974. package/lib/resources/satispay_payments.d.cts +2 -2
  975. package/lib/resources/satispay_payments.d.ts +1 -1
  976. package/lib/resources/satispay_payments.js +3 -3
  977. package/lib/resources/shipments.cjs +4 -4
  978. package/lib/resources/shipments.d.cts +2 -2
  979. package/lib/resources/shipments.d.ts +1 -1
  980. package/lib/resources/shipments.js +3 -3
  981. package/lib/resources/shipping_categories.cjs +4 -4
  982. package/lib/resources/shipping_categories.d.cts +2 -2
  983. package/lib/resources/shipping_categories.d.ts +1 -1
  984. package/lib/resources/shipping_categories.js +3 -3
  985. package/lib/resources/shipping_method_tiers.cjs +4 -4
  986. package/lib/resources/shipping_method_tiers.d.cts +2 -2
  987. package/lib/resources/shipping_method_tiers.d.ts +1 -1
  988. package/lib/resources/shipping_method_tiers.js +3 -3
  989. package/lib/resources/shipping_methods.cjs +4 -4
  990. package/lib/resources/shipping_methods.d.cts +2 -2
  991. package/lib/resources/shipping_methods.d.ts +1 -1
  992. package/lib/resources/shipping_methods.js +3 -3
  993. package/lib/resources/shipping_weight_tiers.cjs +4 -4
  994. package/lib/resources/shipping_weight_tiers.d.cts +2 -2
  995. package/lib/resources/shipping_weight_tiers.d.ts +1 -1
  996. package/lib/resources/shipping_weight_tiers.js +3 -3
  997. package/lib/resources/shipping_zones.cjs +4 -4
  998. package/lib/resources/shipping_zones.d.cts +2 -2
  999. package/lib/resources/shipping_zones.d.ts +1 -1
  1000. package/lib/resources/shipping_zones.js +3 -3
  1001. package/lib/resources/sku_list_items.cjs +4 -4
  1002. package/lib/resources/sku_list_items.d.cts +2 -2
  1003. package/lib/resources/sku_list_items.d.ts +1 -1
  1004. package/lib/resources/sku_list_items.js +3 -3
  1005. package/lib/resources/sku_list_promotion_rules.cjs +4 -4
  1006. package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
  1007. package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
  1008. package/lib/resources/sku_list_promotion_rules.js +3 -3
  1009. package/lib/resources/sku_lists.cjs +4 -4
  1010. package/lib/resources/sku_lists.d.cts +2 -2
  1011. package/lib/resources/sku_lists.d.ts +1 -1
  1012. package/lib/resources/sku_lists.js +3 -3
  1013. package/lib/resources/sku_options.cjs +4 -4
  1014. package/lib/resources/sku_options.d.cts +2 -2
  1015. package/lib/resources/sku_options.d.ts +1 -1
  1016. package/lib/resources/sku_options.js +3 -3
  1017. package/lib/resources/skus.cjs +4 -4
  1018. package/lib/resources/skus.d.cts +2 -2
  1019. package/lib/resources/skus.d.ts +1 -1
  1020. package/lib/resources/skus.js +3 -3
  1021. package/lib/resources/stock_items.cjs +4 -4
  1022. package/lib/resources/stock_items.d.cts +2 -2
  1023. package/lib/resources/stock_items.d.ts +1 -1
  1024. package/lib/resources/stock_items.js +3 -3
  1025. package/lib/resources/stock_line_items.cjs +4 -4
  1026. package/lib/resources/stock_line_items.d.cts +2 -2
  1027. package/lib/resources/stock_line_items.d.ts +1 -1
  1028. package/lib/resources/stock_line_items.js +3 -3
  1029. package/lib/resources/stock_locations.cjs +4 -4
  1030. package/lib/resources/stock_locations.d.cts +2 -2
  1031. package/lib/resources/stock_locations.d.ts +1 -1
  1032. package/lib/resources/stock_locations.js +3 -3
  1033. package/lib/resources/stock_reservations.cjs +4 -4
  1034. package/lib/resources/stock_reservations.d.cts +2 -2
  1035. package/lib/resources/stock_reservations.d.ts +1 -1
  1036. package/lib/resources/stock_reservations.js +3 -3
  1037. package/lib/resources/stock_transfers.cjs +4 -4
  1038. package/lib/resources/stock_transfers.d.cts +2 -2
  1039. package/lib/resources/stock_transfers.d.ts +1 -1
  1040. package/lib/resources/stock_transfers.js +3 -3
  1041. package/lib/resources/stores.cjs +4 -4
  1042. package/lib/resources/stores.d.cts +2 -2
  1043. package/lib/resources/stores.d.ts +1 -1
  1044. package/lib/resources/stores.js +3 -3
  1045. package/lib/resources/stripe_gateways.cjs +4 -4
  1046. package/lib/resources/stripe_gateways.d.cts +2 -2
  1047. package/lib/resources/stripe_gateways.d.ts +1 -1
  1048. package/lib/resources/stripe_gateways.js +3 -3
  1049. package/lib/resources/stripe_payments.cjs +4 -4
  1050. package/lib/resources/stripe_payments.d.cts +2 -2
  1051. package/lib/resources/stripe_payments.d.ts +1 -1
  1052. package/lib/resources/stripe_payments.js +3 -3
  1053. package/lib/resources/stripe_tax_accounts.cjs +4 -4
  1054. package/lib/resources/stripe_tax_accounts.d.cts +2 -2
  1055. package/lib/resources/stripe_tax_accounts.d.ts +1 -1
  1056. package/lib/resources/stripe_tax_accounts.js +3 -3
  1057. package/lib/resources/subscription_models.cjs +4 -4
  1058. package/lib/resources/subscription_models.d.cts +2 -2
  1059. package/lib/resources/subscription_models.d.ts +1 -1
  1060. package/lib/resources/subscription_models.js +3 -3
  1061. package/lib/resources/tags.cjs +4 -4
  1062. package/lib/resources/tags.d.cts +2 -2
  1063. package/lib/resources/tags.d.ts +1 -1
  1064. package/lib/resources/tags.js +3 -3
  1065. package/lib/resources/talon_one_accounts.cjs +4 -4
  1066. package/lib/resources/talon_one_accounts.d.cts +2 -2
  1067. package/lib/resources/talon_one_accounts.d.ts +1 -1
  1068. package/lib/resources/talon_one_accounts.js +3 -3
  1069. package/lib/resources/tax_calculators.cjs +4 -4
  1070. package/lib/resources/tax_calculators.d.cts +2 -2
  1071. package/lib/resources/tax_calculators.d.ts +1 -1
  1072. package/lib/resources/tax_calculators.js +3 -3
  1073. package/lib/resources/tax_categories.cjs +4 -4
  1074. package/lib/resources/tax_categories.d.cts +2 -2
  1075. package/lib/resources/tax_categories.d.ts +1 -1
  1076. package/lib/resources/tax_categories.js +3 -3
  1077. package/lib/resources/tax_rules.cjs +4 -4
  1078. package/lib/resources/tax_rules.d.cts +2 -2
  1079. package/lib/resources/tax_rules.d.ts +1 -1
  1080. package/lib/resources/tax_rules.js +3 -3
  1081. package/lib/resources/taxjar_accounts.cjs +4 -4
  1082. package/lib/resources/taxjar_accounts.d.cts +2 -2
  1083. package/lib/resources/taxjar_accounts.d.ts +1 -1
  1084. package/lib/resources/taxjar_accounts.js +3 -3
  1085. package/lib/resources/transactions.cjs +4 -4
  1086. package/lib/resources/transactions.d.cts +2 -2
  1087. package/lib/resources/transactions.d.ts +1 -1
  1088. package/lib/resources/transactions.js +3 -3
  1089. package/lib/resources/vertex_accounts.cjs +4 -4
  1090. package/lib/resources/vertex_accounts.d.cts +2 -2
  1091. package/lib/resources/vertex_accounts.d.ts +1 -1
  1092. package/lib/resources/vertex_accounts.js +3 -3
  1093. package/lib/resources/voids.cjs +4 -4
  1094. package/lib/resources/voids.d.cts +2 -2
  1095. package/lib/resources/voids.d.ts +1 -1
  1096. package/lib/resources/voids.js +3 -3
  1097. package/lib/resources/webhooks.cjs +4 -4
  1098. package/lib/resources/webhooks.d.cts +2 -2
  1099. package/lib/resources/webhooks.d.ts +1 -1
  1100. package/lib/resources/webhooks.js +3 -3
  1101. package/lib/resources/wire_transfers.cjs +4 -4
  1102. package/lib/resources/wire_transfers.d.cts +2 -2
  1103. package/lib/resources/wire_transfers.d.ts +1 -1
  1104. package/lib/resources/wire_transfers.js +3 -3
  1105. package/lib/static.cjs +5 -5
  1106. package/lib/static.d.cts +1 -2
  1107. package/lib/static.d.ts +1 -2
  1108. package/lib/static.js +4 -4
  1109. package/package.json +9 -11
  1110. package/lib/api-C56k_eNN.d.cts +0 -18274
  1111. package/lib/api-fR7vDjer.d.ts +0 -18274
  1112. package/lib/chunk-22YZMDGS.js +0 -73
  1113. package/lib/chunk-22YZMDGS.js.map +0 -1
  1114. package/lib/chunk-24DYX22L.cjs +0 -34
  1115. package/lib/chunk-24DYX22L.cjs.map +0 -1
  1116. package/lib/chunk-25LV6XNE.js +0 -57
  1117. package/lib/chunk-25LV6XNE.js.map +0 -1
  1118. package/lib/chunk-25SYMOHP.js +0 -63
  1119. package/lib/chunk-25SYMOHP.js.map +0 -1
  1120. package/lib/chunk-26IU3VMW.cjs +0 -73
  1121. package/lib/chunk-26IU3VMW.cjs.map +0 -1
  1122. package/lib/chunk-2COD7SFI.js +0 -24
  1123. package/lib/chunk-2COD7SFI.js.map +0 -1
  1124. package/lib/chunk-2TD56UNA.js +0 -97
  1125. package/lib/chunk-2TD56UNA.js.map +0 -1
  1126. package/lib/chunk-2UBHGJAR.cjs +0 -30
  1127. package/lib/chunk-2UBHGJAR.cjs.map +0 -1
  1128. package/lib/chunk-353DTUT5.js +0 -56
  1129. package/lib/chunk-353DTUT5.js.map +0 -1
  1130. package/lib/chunk-3AQSJH4T.js +0 -53
  1131. package/lib/chunk-3AQSJH4T.js.map +0 -1
  1132. package/lib/chunk-3CYUKNAO.js +0 -48
  1133. package/lib/chunk-3CYUKNAO.js.map +0 -1
  1134. package/lib/chunk-3F4JHN42.cjs +0 -72
  1135. package/lib/chunk-3F4JHN42.cjs.map +0 -1
  1136. package/lib/chunk-3KCHHQTI.js +0 -97
  1137. package/lib/chunk-3KCHHQTI.js.map +0 -1
  1138. package/lib/chunk-3QSWUE22.cjs +0 -43
  1139. package/lib/chunk-3QSWUE22.cjs.map +0 -1
  1140. package/lib/chunk-3R5E4QEL.cjs +0 -57
  1141. package/lib/chunk-3R5E4QEL.cjs.map +0 -1
  1142. package/lib/chunk-3XPKZ3WM.js +0 -77
  1143. package/lib/chunk-3XPKZ3WM.js.map +0 -1
  1144. package/lib/chunk-42TXSEGY.js +0 -53
  1145. package/lib/chunk-42TXSEGY.js.map +0 -1
  1146. package/lib/chunk-42VXKVD6.js +0 -53
  1147. package/lib/chunk-42VXKVD6.js.map +0 -1
  1148. package/lib/chunk-4KIM2UAJ.cjs +0 -72
  1149. package/lib/chunk-4KIM2UAJ.cjs.map +0 -1
  1150. package/lib/chunk-4KPMQG57.js +0 -49
  1151. package/lib/chunk-4KPMQG57.js.map +0 -1
  1152. package/lib/chunk-4QMCNTO4.js +0 -44
  1153. package/lib/chunk-4QMCNTO4.js.map +0 -1
  1154. package/lib/chunk-4W5EFFJ5.js +0 -48
  1155. package/lib/chunk-4W5EFFJ5.js.map +0 -1
  1156. package/lib/chunk-4WQKP2HI.js +0 -44
  1157. package/lib/chunk-4WQKP2HI.js.map +0 -1
  1158. package/lib/chunk-4YEJFKWN.cjs +0 -55
  1159. package/lib/chunk-4YEJFKWN.cjs.map +0 -1
  1160. package/lib/chunk-4YS4H4WH.cjs +0 -54
  1161. package/lib/chunk-4YS4H4WH.cjs.map +0 -1
  1162. package/lib/chunk-52L77NN2.js +0 -59
  1163. package/lib/chunk-52L77NN2.js.map +0 -1
  1164. package/lib/chunk-53R4X7QD.js +0 -49
  1165. package/lib/chunk-53R4X7QD.js.map +0 -1
  1166. package/lib/chunk-54765SFP.js +0 -55
  1167. package/lib/chunk-54765SFP.js.map +0 -1
  1168. package/lib/chunk-56DPVYQJ.js +0 -41
  1169. package/lib/chunk-56DPVYQJ.js.map +0 -1
  1170. package/lib/chunk-57EVDZVF.js +0 -63
  1171. package/lib/chunk-57EVDZVF.js.map +0 -1
  1172. package/lib/chunk-5CXQ67TT.js +0 -53
  1173. package/lib/chunk-5CXQ67TT.js.map +0 -1
  1174. package/lib/chunk-5FZ57V3M.cjs +0 -93
  1175. package/lib/chunk-5FZ57V3M.cjs.map +0 -1
  1176. package/lib/chunk-5NX7MHXP.cjs +0 -51
  1177. package/lib/chunk-5NX7MHXP.cjs.map +0 -1
  1178. package/lib/chunk-5QA264ZF.cjs +0 -74
  1179. package/lib/chunk-5QA264ZF.cjs.map +0 -1
  1180. package/lib/chunk-5QFZLLE2.js +0 -37
  1181. package/lib/chunk-5QFZLLE2.js.map +0 -1
  1182. package/lib/chunk-5T44TAQU.cjs +0 -130
  1183. package/lib/chunk-5T44TAQU.cjs.map +0 -1
  1184. package/lib/chunk-5UPTFJAY.cjs +0 -51
  1185. package/lib/chunk-5UPTFJAY.cjs.map +0 -1
  1186. package/lib/chunk-5WLMMRAX.js +0 -93
  1187. package/lib/chunk-5WLMMRAX.js.map +0 -1
  1188. package/lib/chunk-5Z47LT7L.js +0 -53
  1189. package/lib/chunk-5Z47LT7L.js.map +0 -1
  1190. package/lib/chunk-5ZWOLVB6.js +0 -128
  1191. package/lib/chunk-5ZWOLVB6.js.map +0 -1
  1192. package/lib/chunk-65QUR5IL.js +0 -97
  1193. package/lib/chunk-65QUR5IL.js.map +0 -1
  1194. package/lib/chunk-66BQF7RB.cjs +0 -61
  1195. package/lib/chunk-66BQF7RB.cjs.map +0 -1
  1196. package/lib/chunk-6ES3UMTH.cjs +0 -286
  1197. package/lib/chunk-6ES3UMTH.cjs.map +0 -1
  1198. package/lib/chunk-6EY5MW3N.js +0 -53
  1199. package/lib/chunk-6EY5MW3N.js.map +0 -1
  1200. package/lib/chunk-6GB4YMFB.js +0 -52
  1201. package/lib/chunk-6GB4YMFB.js.map +0 -1
  1202. package/lib/chunk-6RLGIXTB.cjs +0 -61
  1203. package/lib/chunk-6RLGIXTB.cjs.map +0 -1
  1204. package/lib/chunk-6YX6BZB6.js +0 -55
  1205. package/lib/chunk-6YX6BZB6.js.map +0 -1
  1206. package/lib/chunk-73IEITRE.js +0 -44
  1207. package/lib/chunk-73IEITRE.js.map +0 -1
  1208. package/lib/chunk-73XFO6GL.cjs +0 -51
  1209. package/lib/chunk-73XFO6GL.cjs.map +0 -1
  1210. package/lib/chunk-76RBIF4U.cjs +0 -79
  1211. package/lib/chunk-76RBIF4U.cjs.map +0 -1
  1212. package/lib/chunk-7FKCICOI.js +0 -55
  1213. package/lib/chunk-7FKCICOI.js.map +0 -1
  1214. package/lib/chunk-7N7KBV6L.js +0 -158
  1215. package/lib/chunk-7N7KBV6L.js.map +0 -1
  1216. package/lib/chunk-7UCAVCXA.cjs +0 -99
  1217. package/lib/chunk-7UCAVCXA.cjs.map +0 -1
  1218. package/lib/chunk-7XIPWO7I.cjs +0 -61
  1219. package/lib/chunk-7XIPWO7I.cjs.map +0 -1
  1220. package/lib/chunk-A7PIWL4I.js +0 -58
  1221. package/lib/chunk-A7PIWL4I.js.map +0 -1
  1222. package/lib/chunk-AGJQ5BMW.cjs +0 -107
  1223. package/lib/chunk-AGJQ5BMW.cjs.map +0 -1
  1224. package/lib/chunk-AHJQVBKB.cjs +0 -160
  1225. package/lib/chunk-AHJQVBKB.cjs.map +0 -1
  1226. package/lib/chunk-AJ5YOH5P.cjs +0 -30
  1227. package/lib/chunk-AJ5YOH5P.cjs.map +0 -1
  1228. package/lib/chunk-AQHMSOPU.js +0 -45
  1229. package/lib/chunk-AQHMSOPU.js.map +0 -1
  1230. package/lib/chunk-ASRC3G5N.cjs +0 -42
  1231. package/lib/chunk-ASRC3G5N.cjs.map +0 -1
  1232. package/lib/chunk-B3IWIR5W.cjs +0 -46
  1233. package/lib/chunk-B3IWIR5W.cjs.map +0 -1
  1234. package/lib/chunk-B4ASY4NL.js +0 -45
  1235. package/lib/chunk-B4ASY4NL.js.map +0 -1
  1236. package/lib/chunk-B6IY37XK.js +0 -70
  1237. package/lib/chunk-B6IY37XK.js.map +0 -1
  1238. package/lib/chunk-B6RRN2R4.cjs +0 -51
  1239. package/lib/chunk-B6RRN2R4.cjs.map +0 -1
  1240. package/lib/chunk-BBNWP52Z.cjs +0 -44
  1241. package/lib/chunk-BBNWP52Z.cjs.map +0 -1
  1242. package/lib/chunk-BCFDI5BB.cjs +0 -51
  1243. package/lib/chunk-BCFDI5BB.cjs.map +0 -1
  1244. package/lib/chunk-BE7FUFTL.js +0 -53
  1245. package/lib/chunk-BE7FUFTL.js.map +0 -1
  1246. package/lib/chunk-BGS3XVZ5.js +0 -107
  1247. package/lib/chunk-BGS3XVZ5.js.map +0 -1
  1248. package/lib/chunk-BLZ627KE.js +0 -59
  1249. package/lib/chunk-BLZ627KE.js.map +0 -1
  1250. package/lib/chunk-BOFLUBPB.js +0 -55
  1251. package/lib/chunk-BOFLUBPB.js.map +0 -1
  1252. package/lib/chunk-BUCTRSWS.js +0 -45
  1253. package/lib/chunk-BUCTRSWS.js.map +0 -1
  1254. package/lib/chunk-BUKCNQRD.cjs +0 -43
  1255. package/lib/chunk-BUKCNQRD.cjs.map +0 -1
  1256. package/lib/chunk-C2JKMWGR.cjs +0 -51
  1257. package/lib/chunk-C2JKMWGR.cjs.map +0 -1
  1258. package/lib/chunk-C5ML5FMX.cjs +0 -53
  1259. package/lib/chunk-C5ML5FMX.cjs.map +0 -1
  1260. package/lib/chunk-C77T7SV5.js +0 -49
  1261. package/lib/chunk-C77T7SV5.js.map +0 -1
  1262. package/lib/chunk-CAR7HCIH.cjs +0 -50
  1263. package/lib/chunk-CAR7HCIH.cjs.map +0 -1
  1264. package/lib/chunk-CD4WJZWD.js +0 -49
  1265. package/lib/chunk-CD4WJZWD.js.map +0 -1
  1266. package/lib/chunk-CHJOIVWT.cjs +0 -51
  1267. package/lib/chunk-CHJOIVWT.cjs.map +0 -1
  1268. package/lib/chunk-CIEVYLNA.cjs +0 -57
  1269. package/lib/chunk-CIEVYLNA.cjs.map +0 -1
  1270. package/lib/chunk-CRRVMIDJ.js +0 -32
  1271. package/lib/chunk-CRRVMIDJ.js.map +0 -1
  1272. package/lib/chunk-CSRXWHGF.cjs +0 -662
  1273. package/lib/chunk-CSRXWHGF.cjs.map +0 -1
  1274. package/lib/chunk-CXDNL2TL.cjs +0 -57
  1275. package/lib/chunk-CXDNL2TL.cjs.map +0 -1
  1276. package/lib/chunk-CZVJWKHF.cjs +0 -51
  1277. package/lib/chunk-CZVJWKHF.cjs.map +0 -1
  1278. package/lib/chunk-D5KCXRAI.js +0 -57
  1279. package/lib/chunk-D5KCXRAI.js.map +0 -1
  1280. package/lib/chunk-DGYQ3LEP.cjs +0 -34
  1281. package/lib/chunk-DGYQ3LEP.cjs.map +0 -1
  1282. package/lib/chunk-DHT6PN4S.js +0 -72
  1283. package/lib/chunk-DHT6PN4S.js.map +0 -1
  1284. package/lib/chunk-DKKVAVBN.cjs +0 -99
  1285. package/lib/chunk-DKKVAVBN.cjs.map +0 -1
  1286. package/lib/chunk-DKUONF23.cjs +0 -56
  1287. package/lib/chunk-DKUONF23.cjs.map +0 -1
  1288. package/lib/chunk-DZ6EOOOY.js +0 -41
  1289. package/lib/chunk-DZ6EOOOY.js.map +0 -1
  1290. package/lib/chunk-E2GOZ7ZV.js +0 -55
  1291. package/lib/chunk-E2GOZ7ZV.js.map +0 -1
  1292. package/lib/chunk-E4RUQPMF.js +0 -40
  1293. package/lib/chunk-E4RUQPMF.js.map +0 -1
  1294. package/lib/chunk-ED72HDOR.js +0 -31
  1295. package/lib/chunk-ED72HDOR.js.map +0 -1
  1296. package/lib/chunk-EGM5WCK7.js +0 -40
  1297. package/lib/chunk-EGM5WCK7.js.map +0 -1
  1298. package/lib/chunk-EN3E3X22.cjs +0 -46
  1299. package/lib/chunk-EN3E3X22.cjs.map +0 -1
  1300. package/lib/chunk-EOSTJ3GG.cjs +0 -50
  1301. package/lib/chunk-EOSTJ3GG.cjs.map +0 -1
  1302. package/lib/chunk-ESUFQPT7.cjs +0 -71
  1303. package/lib/chunk-ESUFQPT7.cjs.map +0 -1
  1304. package/lib/chunk-ESW2GV47.js +0 -100
  1305. package/lib/chunk-ESW2GV47.js.map +0 -1
  1306. package/lib/chunk-EV7JAD4X.js +0 -91
  1307. package/lib/chunk-EV7JAD4X.js.map +0 -1
  1308. package/lib/chunk-EY3D7ONH.cjs +0 -109
  1309. package/lib/chunk-EY3D7ONH.cjs.map +0 -1
  1310. package/lib/chunk-EZQHOZI2.js +0 -49
  1311. package/lib/chunk-EZQHOZI2.js.map +0 -1
  1312. package/lib/chunk-F3P63HYI.cjs +0 -65
  1313. package/lib/chunk-F3P63HYI.cjs.map +0 -1
  1314. package/lib/chunk-F6J4CRBZ.cjs +0 -38
  1315. package/lib/chunk-F6J4CRBZ.cjs.map +0 -1
  1316. package/lib/chunk-FBGHKFDZ.js +0 -68
  1317. package/lib/chunk-FBGHKFDZ.js.map +0 -1
  1318. package/lib/chunk-FEKNIG3W.js +0 -99
  1319. package/lib/chunk-FEKNIG3W.js.map +0 -1
  1320. package/lib/chunk-FKAKFPAS.js +0 -61
  1321. package/lib/chunk-FKAKFPAS.js.map +0 -1
  1322. package/lib/chunk-FSXKG62A.js +0 -100
  1323. package/lib/chunk-FSXKG62A.js.map +0 -1
  1324. package/lib/chunk-FT2UGQVD.js +0 -54
  1325. package/lib/chunk-FT2UGQVD.js.map +0 -1
  1326. package/lib/chunk-FUYP7J3H.js +0 -53
  1327. package/lib/chunk-FUYP7J3H.js.map +0 -1
  1328. package/lib/chunk-FYI5M2XM.cjs +0 -57
  1329. package/lib/chunk-FYI5M2XM.cjs.map +0 -1
  1330. package/lib/chunk-FYKH5NLF.cjs +0 -50
  1331. package/lib/chunk-FYKH5NLF.cjs.map +0 -1
  1332. package/lib/chunk-G2XGWVV4.cjs +0 -81
  1333. package/lib/chunk-G2XGWVV4.cjs.map +0 -1
  1334. package/lib/chunk-GNLY3HQ4.js +0 -105
  1335. package/lib/chunk-GNLY3HQ4.js.map +0 -1
  1336. package/lib/chunk-GRKXRJZE.js +0 -65
  1337. package/lib/chunk-GRKXRJZE.js.map +0 -1
  1338. package/lib/chunk-GSHDLOHZ.js +0 -97
  1339. package/lib/chunk-GSHDLOHZ.js.map +0 -1
  1340. package/lib/chunk-GSTAUOVL.js +0 -57
  1341. package/lib/chunk-GSTAUOVL.js.map +0 -1
  1342. package/lib/chunk-H3IBVZVF.js +0 -28
  1343. package/lib/chunk-H3IBVZVF.js.map +0 -1
  1344. package/lib/chunk-H4MPRTXI.js +0 -37
  1345. package/lib/chunk-H4MPRTXI.js.map +0 -1
  1346. package/lib/chunk-H5JOZYXN.cjs +0 -51
  1347. package/lib/chunk-H5JOZYXN.cjs.map +0 -1
  1348. package/lib/chunk-H7ZINK52.cjs +0 -93
  1349. package/lib/chunk-H7ZINK52.cjs.map +0 -1
  1350. package/lib/chunk-HFAQPY4K.cjs +0 -42
  1351. package/lib/chunk-HFAQPY4K.cjs.map +0 -1
  1352. package/lib/chunk-HLL6WIIC.js +0 -91
  1353. package/lib/chunk-HLL6WIIC.js.map +0 -1
  1354. package/lib/chunk-HLPUCTAZ.js +0 -103
  1355. package/lib/chunk-HLPUCTAZ.js.map +0 -1
  1356. package/lib/chunk-HNADBQ2G.cjs +0 -55
  1357. package/lib/chunk-HNADBQ2G.cjs.map +0 -1
  1358. package/lib/chunk-HOKEKQDI.js +0 -49
  1359. package/lib/chunk-HOKEKQDI.js.map +0 -1
  1360. package/lib/chunk-HP2WA7CM.cjs +0 -59
  1361. package/lib/chunk-HP2WA7CM.cjs.map +0 -1
  1362. package/lib/chunk-HQZ3S65M.js +0 -44
  1363. package/lib/chunk-HQZ3S65M.js.map +0 -1
  1364. package/lib/chunk-HR6ZQP3L.cjs +0 -66
  1365. package/lib/chunk-HR6ZQP3L.cjs.map +0 -1
  1366. package/lib/chunk-HR773LV5.cjs +0 -54
  1367. package/lib/chunk-HR773LV5.cjs.map +0 -1
  1368. package/lib/chunk-HTQJYP75.cjs +0 -46
  1369. package/lib/chunk-HTQJYP75.cjs.map +0 -1
  1370. package/lib/chunk-HWEIUKPN.cjs +0 -57
  1371. package/lib/chunk-HWEIUKPN.cjs.map +0 -1
  1372. package/lib/chunk-HWL3MJQJ.cjs +0 -60
  1373. package/lib/chunk-HWL3MJQJ.cjs.map +0 -1
  1374. package/lib/chunk-HZB22SU2.cjs +0 -51
  1375. package/lib/chunk-HZB22SU2.cjs.map +0 -1
  1376. package/lib/chunk-I22GQQSK.js +0 -97
  1377. package/lib/chunk-I22GQQSK.js.map +0 -1
  1378. package/lib/chunk-IESEQGGO.js +0 -65
  1379. package/lib/chunk-IESEQGGO.js.map +0 -1
  1380. package/lib/chunk-IFLQJWJG.cjs +0 -55
  1381. package/lib/chunk-IFLQJWJG.cjs.map +0 -1
  1382. package/lib/chunk-IGK3AET6.cjs +0 -47
  1383. package/lib/chunk-IGK3AET6.cjs.map +0 -1
  1384. package/lib/chunk-IJT6ADCT.cjs +0 -70
  1385. package/lib/chunk-IJT6ADCT.cjs.map +0 -1
  1386. package/lib/chunk-IMZ67YBL.cjs +0 -55
  1387. package/lib/chunk-IMZ67YBL.cjs.map +0 -1
  1388. package/lib/chunk-IR7ERHZU.js +0 -57
  1389. package/lib/chunk-IR7ERHZU.js.map +0 -1
  1390. package/lib/chunk-IWQQN4E4.js +0 -47
  1391. package/lib/chunk-IWQQN4E4.js.map +0 -1
  1392. package/lib/chunk-J3K32YXQ.js +0 -49
  1393. package/lib/chunk-J3K32YXQ.js.map +0 -1
  1394. package/lib/chunk-J5QKU3U7.cjs +0 -54
  1395. package/lib/chunk-J5QKU3U7.cjs.map +0 -1
  1396. package/lib/chunk-JAL5VEJ4.cjs +0 -51
  1397. package/lib/chunk-JAL5VEJ4.cjs.map +0 -1
  1398. package/lib/chunk-JBNN5FLR.cjs +0 -99
  1399. package/lib/chunk-JBNN5FLR.cjs.map +0 -1
  1400. package/lib/chunk-JEFXEO7O.js +0 -49
  1401. package/lib/chunk-JEFXEO7O.js.map +0 -1
  1402. package/lib/chunk-JIAAPIJS.js +0 -69
  1403. package/lib/chunk-JIAAPIJS.js.map +0 -1
  1404. package/lib/chunk-JNDUIJGS.js +0 -32
  1405. package/lib/chunk-JNDUIJGS.js.map +0 -1
  1406. package/lib/chunk-JTECSGQK.cjs +0 -95
  1407. package/lib/chunk-JTECSGQK.cjs.map +0 -1
  1408. package/lib/chunk-JU2GYUKV.js +0 -54
  1409. package/lib/chunk-JU2GYUKV.js.map +0 -1
  1410. package/lib/chunk-JW3TKFSF.cjs +0 -99
  1411. package/lib/chunk-JW3TKFSF.cjs.map +0 -1
  1412. package/lib/chunk-JWW6RX2L.cjs +0 -47
  1413. package/lib/chunk-JWW6RX2L.cjs.map +0 -1
  1414. package/lib/chunk-JZ5VDGTD.cjs +0 -29
  1415. package/lib/chunk-JZ5VDGTD.cjs.map +0 -1
  1416. package/lib/chunk-K4FGKWEQ.js +0 -36
  1417. package/lib/chunk-K4FGKWEQ.js.map +0 -1
  1418. package/lib/chunk-KAARRP5O.js +0 -59
  1419. package/lib/chunk-KAARRP5O.js.map +0 -1
  1420. package/lib/chunk-KDCQAUUV.js +0 -48
  1421. package/lib/chunk-KDCQAUUV.js.map +0 -1
  1422. package/lib/chunk-KMPHWFCV.cjs +0 -47
  1423. package/lib/chunk-KMPHWFCV.cjs.map +0 -1
  1424. package/lib/chunk-KRNU2FZC.js +0 -53
  1425. package/lib/chunk-KRNU2FZC.js.map +0 -1
  1426. package/lib/chunk-KUX4X636.js +0 -49
  1427. package/lib/chunk-KUX4X636.js.map +0 -1
  1428. package/lib/chunk-KWIFQC7H.js +0 -52
  1429. package/lib/chunk-KWIFQC7H.js.map +0 -1
  1430. package/lib/chunk-KZNM2CKM.cjs +0 -59
  1431. package/lib/chunk-KZNM2CKM.cjs.map +0 -1
  1432. package/lib/chunk-L27E3EGQ.js +0 -49
  1433. package/lib/chunk-L27E3EGQ.js.map +0 -1
  1434. package/lib/chunk-L2R5G3V5.js +0 -276
  1435. package/lib/chunk-L2R5G3V5.js.map +0 -1
  1436. package/lib/chunk-L6OLNB6W.js +0 -41
  1437. package/lib/chunk-L6OLNB6W.js.map +0 -1
  1438. package/lib/chunk-L7VZ5ST5.cjs +0 -60
  1439. package/lib/chunk-L7VZ5ST5.cjs.map +0 -1
  1440. package/lib/chunk-LBY2RHI4.js +0 -45
  1441. package/lib/chunk-LBY2RHI4.js.map +0 -1
  1442. package/lib/chunk-LGYK5DTL.cjs +0 -50
  1443. package/lib/chunk-LGYK5DTL.cjs.map +0 -1
  1444. package/lib/chunk-LLRE4DNW.cjs +0 -55
  1445. package/lib/chunk-LLRE4DNW.cjs.map +0 -1
  1446. package/lib/chunk-MAU4GMOM.js +0 -52
  1447. package/lib/chunk-MAU4GMOM.js.map +0 -1
  1448. package/lib/chunk-MBDEK4FD.cjs +0 -51
  1449. package/lib/chunk-MBDEK4FD.cjs.map +0 -1
  1450. package/lib/chunk-MDT7RJZY.cjs +0 -39
  1451. package/lib/chunk-MDT7RJZY.cjs.map +0 -1
  1452. package/lib/chunk-MF72Q5LL.cjs +0 -39
  1453. package/lib/chunk-MF72Q5LL.cjs.map +0 -1
  1454. package/lib/chunk-MGIOWUKO.cjs +0 -38
  1455. package/lib/chunk-MGIOWUKO.cjs.map +0 -1
  1456. package/lib/chunk-MIBC5G27.js +0 -77
  1457. package/lib/chunk-MIBC5G27.js.map +0 -1
  1458. package/lib/chunk-MU6PHJWP.js +0 -48
  1459. package/lib/chunk-MU6PHJWP.js.map +0 -1
  1460. package/lib/chunk-MVNE63MT.cjs +0 -67
  1461. package/lib/chunk-MVNE63MT.cjs.map +0 -1
  1462. package/lib/chunk-MWDZBQOU.cjs +0 -47
  1463. package/lib/chunk-MWDZBQOU.cjs.map +0 -1
  1464. package/lib/chunk-NEZXHBGE.js +0 -3
  1465. package/lib/chunk-NEZXHBGE.js.map +0 -1
  1466. package/lib/chunk-NKPMXNFW.js +0 -49
  1467. package/lib/chunk-NKPMXNFW.js.map +0 -1
  1468. package/lib/chunk-NKSXB523.js +0 -42
  1469. package/lib/chunk-NKSXB523.js.map +0 -1
  1470. package/lib/chunk-NL65GQHX.cjs +0 -39
  1471. package/lib/chunk-NL65GQHX.cjs.map +0 -1
  1472. package/lib/chunk-NM2TVMKS.cjs +0 -43
  1473. package/lib/chunk-NM2TVMKS.cjs.map +0 -1
  1474. package/lib/chunk-NUQ5KNXC.cjs +0 -63
  1475. package/lib/chunk-NUQ5KNXC.cjs.map +0 -1
  1476. package/lib/chunk-OQ3ZPPCE.js +0 -55
  1477. package/lib/chunk-OQ3ZPPCE.js.map +0 -1
  1478. package/lib/chunk-OR5ULL43.js +0 -55
  1479. package/lib/chunk-OR5ULL43.js.map +0 -1
  1480. package/lib/chunk-OSGNFURJ.js +0 -63
  1481. package/lib/chunk-OSGNFURJ.js.map +0 -1
  1482. package/lib/chunk-OSPDLBK7.cjs +0 -57
  1483. package/lib/chunk-OSPDLBK7.cjs.map +0 -1
  1484. package/lib/chunk-OTJ3AG3G.js +0 -45
  1485. package/lib/chunk-OTJ3AG3G.js.map +0 -1
  1486. package/lib/chunk-OUZO3UT3.cjs +0 -65
  1487. package/lib/chunk-OUZO3UT3.cjs.map +0 -1
  1488. package/lib/chunk-OXMHLYDD.js +0 -49
  1489. package/lib/chunk-OXMHLYDD.js.map +0 -1
  1490. package/lib/chunk-P2B3G2TZ.js +0 -44
  1491. package/lib/chunk-P2B3G2TZ.js.map +0 -1
  1492. package/lib/chunk-P3AQZNTG.js +0 -79
  1493. package/lib/chunk-P3AQZNTG.js.map +0 -1
  1494. package/lib/chunk-P3C4DMT6.cjs +0 -57
  1495. package/lib/chunk-P3C4DMT6.cjs.map +0 -1
  1496. package/lib/chunk-P6H53BD7.cjs +0 -102
  1497. package/lib/chunk-P6H53BD7.cjs.map +0 -1
  1498. package/lib/chunk-PAWJTO7I.js +0 -49
  1499. package/lib/chunk-PAWJTO7I.js.map +0 -1
  1500. package/lib/chunk-PD4I73FB.cjs +0 -105
  1501. package/lib/chunk-PD4I73FB.cjs.map +0 -1
  1502. package/lib/chunk-PGXMLN7A.js +0 -49
  1503. package/lib/chunk-PGXMLN7A.js.map +0 -1
  1504. package/lib/chunk-PUX7CAAV.js +0 -53
  1505. package/lib/chunk-PUX7CAAV.js.map +0 -1
  1506. package/lib/chunk-QE7S4OUZ.cjs +0 -51
  1507. package/lib/chunk-QE7S4OUZ.cjs.map +0 -1
  1508. package/lib/chunk-QKCTP2RD.cjs +0 -55
  1509. package/lib/chunk-QKCTP2RD.cjs.map +0 -1
  1510. package/lib/chunk-QNFZBJFQ.cjs +0 -58
  1511. package/lib/chunk-QNFZBJFQ.cjs.map +0 -1
  1512. package/lib/chunk-QU4NPZQC.cjs +0 -56
  1513. package/lib/chunk-QU4NPZQC.cjs.map +0 -1
  1514. package/lib/chunk-QVJTWTUN.cjs +0 -54
  1515. package/lib/chunk-QVJTWTUN.cjs.map +0 -1
  1516. package/lib/chunk-R3PNGGDR.cjs +0 -55
  1517. package/lib/chunk-R3PNGGDR.cjs.map +0 -1
  1518. package/lib/chunk-R7JDWIQK.cjs +0 -107
  1519. package/lib/chunk-R7JDWIQK.cjs.map +0 -1
  1520. package/lib/chunk-R7PR3V6Z.cjs +0 -51
  1521. package/lib/chunk-R7PR3V6Z.cjs.map +0 -1
  1522. package/lib/chunk-RH363QI7.cjs +0 -99
  1523. package/lib/chunk-RH363QI7.cjs.map +0 -1
  1524. package/lib/chunk-RLZGD4WS.cjs +0 -57
  1525. package/lib/chunk-RLZGD4WS.cjs.map +0 -1
  1526. package/lib/chunk-RNCWBCHU.js +0 -55
  1527. package/lib/chunk-RNCWBCHU.js.map +0 -1
  1528. package/lib/chunk-SEY2W62A.js +0 -53
  1529. package/lib/chunk-SEY2W62A.js.map +0 -1
  1530. package/lib/chunk-SGJTWE5I.js +0 -40
  1531. package/lib/chunk-SGJTWE5I.js.map +0 -1
  1532. package/lib/chunk-SK7SIING.cjs +0 -42
  1533. package/lib/chunk-SK7SIING.cjs.map +0 -1
  1534. package/lib/chunk-SNHW3YC5.cjs +0 -55
  1535. package/lib/chunk-SNHW3YC5.cjs.map +0 -1
  1536. package/lib/chunk-SRYEFARJ.cjs +0 -4
  1537. package/lib/chunk-SRYEFARJ.cjs.map +0 -1
  1538. package/lib/chunk-SWZUFDHY.js +0 -102
  1539. package/lib/chunk-SWZUFDHY.js.map +0 -1
  1540. package/lib/chunk-SXCTTGYT.cjs +0 -50
  1541. package/lib/chunk-SXCTTGYT.cjs.map +0 -1
  1542. package/lib/chunk-SXQSMTHR.js +0 -58
  1543. package/lib/chunk-SXQSMTHR.js.map +0 -1
  1544. package/lib/chunk-SZYWVDPJ.cjs +0 -42
  1545. package/lib/chunk-SZYWVDPJ.cjs.map +0 -1
  1546. package/lib/chunk-T4SW2CZX.cjs +0 -67
  1547. package/lib/chunk-T4SW2CZX.cjs.map +0 -1
  1548. package/lib/chunk-TE54DOJ6.cjs +0 -75
  1549. package/lib/chunk-TE54DOJ6.cjs.map +0 -1
  1550. package/lib/chunk-TJGZYDVV.js +0 -58
  1551. package/lib/chunk-TJGZYDVV.js.map +0 -1
  1552. package/lib/chunk-TPFXLI3J.js +0 -27
  1553. package/lib/chunk-TPFXLI3J.js.map +0 -1
  1554. package/lib/chunk-U43UPLTK.cjs +0 -42
  1555. package/lib/chunk-U43UPLTK.cjs.map +0 -1
  1556. package/lib/chunk-U5ZUHRP7.cjs +0 -65
  1557. package/lib/chunk-U5ZUHRP7.cjs.map +0 -1
  1558. package/lib/chunk-U7NVUYAO.js +0 -71
  1559. package/lib/chunk-U7NVUYAO.js.map +0 -1
  1560. package/lib/chunk-UBH2EC5P.cjs +0 -284
  1561. package/lib/chunk-UBH2EC5P.cjs.map +0 -1
  1562. package/lib/chunk-UMIZNUUK.js +0 -45
  1563. package/lib/chunk-UMIZNUUK.js.map +0 -1
  1564. package/lib/chunk-UR35VE5O.js +0 -53
  1565. package/lib/chunk-UR35VE5O.js.map +0 -1
  1566. package/lib/chunk-UTJX7SU6.cjs +0 -55
  1567. package/lib/chunk-UTJX7SU6.cjs.map +0 -1
  1568. package/lib/chunk-V2JFGTP4.cjs +0 -33
  1569. package/lib/chunk-V2JFGTP4.cjs.map +0 -1
  1570. package/lib/chunk-V3VI5SLU.cjs +0 -58
  1571. package/lib/chunk-V3VI5SLU.cjs.map +0 -1
  1572. package/lib/chunk-V57VEB52.cjs +0 -51
  1573. package/lib/chunk-V57VEB52.cjs.map +0 -1
  1574. package/lib/chunk-VCJOH3IE.js +0 -63
  1575. package/lib/chunk-VCJOH3IE.js.map +0 -1
  1576. package/lib/chunk-VROIQJ2H.js +0 -48
  1577. package/lib/chunk-VROIQJ2H.js.map +0 -1
  1578. package/lib/chunk-W5HJOZUZ.js +0 -55
  1579. package/lib/chunk-W5HJOZUZ.js.map +0 -1
  1580. package/lib/chunk-W6D7ACVK.cjs +0 -26
  1581. package/lib/chunk-W6D7ACVK.cjs.map +0 -1
  1582. package/lib/chunk-W76GDFLA.cjs +0 -49
  1583. package/lib/chunk-W76GDFLA.cjs.map +0 -1
  1584. package/lib/chunk-W7A5TBOT.js +0 -37
  1585. package/lib/chunk-W7A5TBOT.js.map +0 -1
  1586. package/lib/chunk-W7QZ4IET.js +0 -55
  1587. package/lib/chunk-W7QZ4IET.js.map +0 -1
  1588. package/lib/chunk-WAXSMT74.js +0 -49
  1589. package/lib/chunk-WAXSMT74.js.map +0 -1
  1590. package/lib/chunk-WENVZ7YQ.cjs +0 -60
  1591. package/lib/chunk-WENVZ7YQ.cjs.map +0 -1
  1592. package/lib/chunk-WN4NEQG3.cjs +0 -47
  1593. package/lib/chunk-WN4NEQG3.cjs.map +0 -1
  1594. package/lib/chunk-WPMZGCSL.js +0 -49
  1595. package/lib/chunk-WPMZGCSL.js.map +0 -1
  1596. package/lib/chunk-WVXUXB6M.cjs +0 -51
  1597. package/lib/chunk-WVXUXB6M.cjs.map +0 -1
  1598. package/lib/chunk-WYSCB65K.cjs +0 -65
  1599. package/lib/chunk-WYSCB65K.cjs.map +0 -1
  1600. package/lib/chunk-WZKB5BTI.cjs +0 -57
  1601. package/lib/chunk-WZKB5BTI.cjs.map +0 -1
  1602. package/lib/chunk-X3FOQEIP.cjs +0 -57
  1603. package/lib/chunk-X3FOQEIP.cjs.map +0 -1
  1604. package/lib/chunk-X435FPBT.js +0 -70
  1605. package/lib/chunk-X435FPBT.js.map +0 -1
  1606. package/lib/chunk-XAHCI5JE.js +0 -284
  1607. package/lib/chunk-XAHCI5JE.js.map +0 -1
  1608. package/lib/chunk-XAWZYCIT.cjs +0 -51
  1609. package/lib/chunk-XAWZYCIT.cjs.map +0 -1
  1610. package/lib/chunk-XFOVGIFM.cjs +0 -59
  1611. package/lib/chunk-XFOVGIFM.cjs.map +0 -1
  1612. package/lib/chunk-XGQYAM2O.cjs +0 -102
  1613. package/lib/chunk-XGQYAM2O.cjs.map +0 -1
  1614. package/lib/chunk-XHRLLOTH.cjs +0 -46
  1615. package/lib/chunk-XHRLLOTH.cjs.map +0 -1
  1616. package/lib/chunk-XLHGFYJD.js +0 -40
  1617. package/lib/chunk-XLHGFYJD.js.map +0 -1
  1618. package/lib/chunk-XLSIK3Q5.js +0 -40
  1619. package/lib/chunk-XLSIK3Q5.js.map +0 -1
  1620. package/lib/chunk-XMOZVHO7.js +0 -56
  1621. package/lib/chunk-XMOZVHO7.js.map +0 -1
  1622. package/lib/chunk-YDYPUEOW.js +0 -52
  1623. package/lib/chunk-YDYPUEOW.js.map +0 -1
  1624. package/lib/chunk-YF5IJQZK.cjs +0 -55
  1625. package/lib/chunk-YF5IJQZK.cjs.map +0 -1
  1626. package/lib/chunk-YI3IDZIR.js +0 -646
  1627. package/lib/chunk-YI3IDZIR.js.map +0 -1
  1628. package/lib/chunk-YNFTOIKI.cjs +0 -47
  1629. package/lib/chunk-YNFTOIKI.cjs.map +0 -1
  1630. package/lib/chunk-YOAULZCB.js +0 -28
  1631. package/lib/chunk-YOAULZCB.js.map +0 -1
  1632. package/lib/chunk-YOH56Z73.js +0 -64
  1633. package/lib/chunk-YOH56Z73.js.map +0 -1
  1634. package/lib/chunk-YYFNNQAF.js +0 -49
  1635. package/lib/chunk-YYFNNQAF.js.map +0 -1
  1636. package/lib/chunk-Z7FWE3KQ.cjs +0 -55
  1637. package/lib/chunk-Z7FWE3KQ.cjs.map +0 -1
  1638. package/lib/chunk-ZA4UM7JC.js +0 -36
  1639. package/lib/chunk-ZA4UM7JC.js.map +0 -1
  1640. package/lib/chunk-ZBKA7LEU.js +0 -51
  1641. package/lib/chunk-ZBKA7LEU.js.map +0 -1
  1642. package/lib/chunk-ZDO4C624.cjs +0 -79
  1643. package/lib/chunk-ZDO4C624.cjs.map +0 -1
  1644. package/lib/chunk-ZDPMTK4O.js +0 -49
  1645. package/lib/chunk-ZDPMTK4O.js.map +0 -1
  1646. package/lib/chunk-ZKTVCW5B.cjs +0 -51
  1647. package/lib/chunk-ZKTVCW5B.cjs.map +0 -1
  1648. package/lib/chunk-ZKZLRD43.cjs +0 -46
  1649. package/lib/chunk-ZKZLRD43.cjs.map +0 -1
  1650. package/lib/chunk-ZNRKFQBN.cjs +0 -59
  1651. package/lib/chunk-ZNRKFQBN.cjs.map +0 -1
  1652. package/lib/chunk-ZU3CNZKE.cjs +0 -51
  1653. package/lib/chunk-ZU3CNZKE.cjs.map +0 -1
  1654. package/lib/chunk-ZUURLADK.cjs +0 -55
  1655. package/lib/chunk-ZUURLADK.cjs.map +0 -1
  1656. package/lib/chunk-ZWTMB75R.js +0 -49
  1657. package/lib/chunk-ZWTMB75R.js.map +0 -1
  1658. package/lib/chunk-ZYU4XA7Z.cjs +0 -101
  1659. package/lib/chunk-ZYU4XA7Z.cjs.map +0 -1
  1660. package/lib/resources/versions.cjs +0 -20
  1661. package/lib/resources/versions.cjs.map +0 -1
  1662. package/lib/resources/versions.d.cts +0 -7
  1663. package/lib/resources/versions.d.ts +0 -4
  1664. package/lib/resources/versions.js +0 -12
  1665. package/lib/resources/versions.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/organizations.ts"],"names":[],"mappings":";;;AAmSA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsB,YAAA,CAA2B;AAAA,EAEtD,OAAgB,IAAA,GAAyB,eAAA;AAAA,EAEzC,MAAM,YAAA,CAAa,cAAA,EAAuC,MAAA,EAAsC,OAAA,EAA8D;AAC7J,IAAA,MAAM,eAAA,GAAmB,eAAgC,EAAA,IAAM,cAAA;AAC/D,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,aAAA,EAAgB,eAAe,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClI;AAAA,EAGA,eAAe,QAAA,EAAyC;AACvD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,cAAA,CAAc,IAAA;AAAA,EAC1D;AAAA,EAGA,aAAa,EAAA,EAAiD;AAC7D,IAAA,OAAO,KAAA,CAAM,qBAAsC,EAAE,CAAA;AAAA,EACtD;AAAA,EAEA,sBAAsB,GAAA,EAAkC;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAuC,GAAG,GAAG,CAAA;AAAA,EAC3D;AAAA,EAGA,IAAA,GAAyB;AACxB,IAAA,OAAO,cAAA,CAAc,IAAA;AAAA,EACtB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,cAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,qBAAA,GAAQ","file":"chunk-56HCMG32.js","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiSingleton } from '../resource'\n\nimport type { EventStore } from './event_stores'\n\n\ntype OrganizationType = 'organizations'\ntype OrganizationRel = ResourceRel & { type: OrganizationType }\n\n\nexport type OrganizationSort = Pick<Organization, 'id'> & ResourceSort\n// export type OrganizationFilter = Pick<Organization, 'id'> & ResourceFilter\n\n\ninterface Organization extends Resource {\n\t\n\treadonly type: OrganizationType\n\n\t/** \n\t * The organization's internal name.\n\t * @example ```\"The Blue Brand\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The organization's slug name.\n\t * @example ```\"the-blue-brand\"```\n\t */\n\tslug?: string | null\n\t/** \n\t * The organization's domain.\n\t * @example ```\"the-blue-brand.commercelayer.io\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The organization's support phone.\n\t * @example ```\"+01 30800857\"```\n\t */\n\tsupport_phone?: string | null\n\t/** \n\t * The organization's support email.\n\t * @example ```\"support@bluebrand.com\"```\n\t */\n\tsupport_email?: string | null\n\t/** \n\t * The URL to the organization's logo.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tlogo_url?: string | null\n\t/** \n\t * The URL to the organization's favicon.\n\t * @example ```\"https://bluebrand.com/img/favicon.ico\"```\n\t */\n\tfavicon_url?: string | null\n\t/** \n\t * The organization's primary color.\n\t * @example ```\"#C8984E\"```\n\t */\n\tprimary_color?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID.\n\t * @example ```\"GTM-5FJXX6\"```\n\t */\n\tgtm_id?: string | null\n\t/** \n\t * The organization's Google Tag Manager ID for test.\n\t * @example ```\"GTM-5FJXX7\"```\n\t */\n\tgtm_id_test?: string | null\n\t/** \n\t * The organization's configuration.\n\t * @example ```{\"mfe\":{\"default\":{\"links\":{\"cart\":\"https://cart.example.com/:order_id?accessToken=:access_token\",\"checkout\":\"https://checkout.example.com/:order_id?accessToken=:accessToken\",\"identity\":\"https://example.com/login\",\"microstore\":\"https://example.com/microstore/?accessToken=:access_token\",\"my_account\":\"https://example.com/my-custom-account?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:lang/:orderId\",\"billing_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"shipping_countries\":[{\"value\":\"ES\",\"label\":\"Espana\"},{\"value\":\"IT\",\"label\":\"Italia\"},{\"value\":\"US\",\"label\":\"Unites States of America\"}],\"billing_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"shipping_states\":{\"FR\":[{\"value\":\"PA\",\"label\":\"Paris\"},{\"value\":\"LY\",\"label\":\"Lyon\"},{\"value\":\"NI\",\"label\":\"Nice\"},{\"value\":\"MA\",\"label\":\"Marseille\"},{\"value\":\"BO\",\"label\":\"Bordeaux\"}]},\"default_country\":\"US\"},\"urls\":{\"privacy\":\"https://example.com/privacy/:lang\",\"terms\":\"https://example.com/terms/:lang\"}},\"market:id:ZKcv13rT\":{\"links\":{\"cart\":\"https://example.com/custom-cart/:order_id?accessToken=:access_token\"},\"checkout\":{\"thankyou_page\":\"https://example.com/thanks/:order_id\"}}}}```\n\t */\n\tconfig?: Record<string, any> | null\n\t/** \n\t * Enables the redirect on the new Auth API.\n\t * @example ```true```\n\t */\n\tapi_auth_redirect?: boolean | null\n\t/** \n\t * Enables the rules engine for flex promotions and price list rules.\n\t */\n\tapi_rules_engine?: boolean | null\n\t/** \n\t * The fallback maximum number of conditions within a rules payload on a ruleable object, default is 150.\n\t * @example ```150```\n\t */\n\tapi_rules_engine_max_conditions_size?: number | null\n\t/** \n\t * The fallback maximum number of rules within a rules payload on a ruleable object, default is 15.\n\t * @example ```15```\n\t */\n\tapi_rules_engine_max_rules_size?: number | null\n\t/** \n\t * Forces the usage of the new Authentication API.\n\t * @example ```true```\n\t */\n\tapi_new_auth?: boolean | null\n\t/** \n\t * Enables the purge of cached single resources when list is purged.\n\t */\n\tapi_purge_single_resource?: boolean | null\n\t/** \n\t * The maximum length for the regular expressions, default is 5000.\n\t * @example ```5000```\n\t */\n\tapi_max_regex_length?: number | null\n\t/** \n\t * Indicates if AVS checking will be enforced during payment workflow by passing specific attributes, default is true.\n\t * @example ```true```\n\t */\n\taddresses_avs_check?: boolean | null\n\t/** \n\t * Indicates if the phone attribute is required for addresses, default is true.\n\t * @example ```true```\n\t */\n\taddresses_phone_required?: boolean | null\n\t/** \n\t * Indicates if a sales channel application without customer can read and update just guest orders.\n\t * @example ```true```\n\t */\n\torders_sales_channel_guest_only?: boolean | null\n\t/** \n\t * The minimum lapse in fraction of seconds to be observed between two consecutive shipments rebuilt. If shipments rebuilt is triggered within the minimum lapse, the update is performed, but no rebuilt is done.\n\t */\n\torders_min_rebuild_shipments_lapse?: number | null\n\t/** \n\t * The minimum lapse in fraction of seconds to be observed between two consecutive order refreshes. If refresh is triggered within the minimum lapse, the update is performed, but no order refresh is done.\n\t */\n\torders_min_refresh_lapse?: number | null\n\t/** \n\t * The maximum number line items allowed for a test order before disabling the autorefresh option.\n\t * @example ```50```\n\t */\n\torders_autorefresh_cutoff_test?: number | null\n\t/** \n\t * The maximum number line items allowed for a live order before disabling the autorefresh option.\n\t * @example ```500```\n\t */\n\torders_autorefresh_cutoff_live?: number | null\n\t/** \n\t * Enables orders number editing as a string in test (for enterprise plans only).\n\t */\n\torders_number_editable_test?: boolean | null\n\t/** \n\t * Enables orders number editing as a string in live (for enterprise plans only).\n\t */\n\torders_number_editable_live?: boolean | null\n\t/** \n\t * Enables to use the order number as payment reference on supported gateways.\n\t * @example ```true```\n\t */\n\torders_number_as_reference?: boolean | null\n\t/** \n\t * Enables raising of API errors in case the provided coupon code is invalid, default is true.\n\t * @example ```true```\n\t */\n\torders_invalid_coupon_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case the provided gift card code is invalid, default is true.\n\t * @example ```true```\n\t */\n\torders_invalid_gift_card_errors?: boolean | null\n\t/** \n\t * Enables the validation of the generated stock line items and stock transfers before placing the order, default is false.\n\t */\n\torders_validate_shipping_stock?: boolean | null\n\t/** \n\t * The maximum number of SKUs allowed for bundles, default is 10.\n\t * @example ```10```\n\t */\n\tbundles_max_items_count?: number | null\n\t/** \n\t * The minimum length for coupon code, default is 8.\n\t * @example ```8```\n\t */\n\tcoupons_min_code_length?: number | null\n\t/** \n\t * The maximum length for coupon code, default is 40.\n\t * @example ```40```\n\t */\n\tcoupons_max_code_length?: number | null\n\t/** \n\t * Enables matching the gift card code by its exact value, instead of by its first charachters, default is false.\n\t */\n\tgift_cards_exact_code_matching?: boolean | null\n\t/** \n\t * The minimum length for gift card code, default is 8.\n\t * @example ```8```\n\t */\n\tgift_cards_min_code_length?: number | null\n\t/** \n\t * The maximum length for gift card code, default is 40.\n\t * @example ```40```\n\t */\n\tgift_cards_max_code_length?: number | null\n\t/** \n\t * The maximum number of concurrent cleanups allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tcleanups_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent exports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\texports_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of concurrent imports allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\timports_max_concurrent_count?: number | null\n\t/** \n\t * Enables purging of cached resources upon succeeded imports.\n\t * @example ```true```\n\t */\n\timports_purge_cache?: boolean | null\n\t/** \n\t * Disables the interruption of the import in case its errors exceeds the 10% threshold, default is false.\n\t */\n\timports_skip_errors?: boolean | null\n\t/** \n\t * The maximum number for stock locations cutoff, default is 10.\n\t * @example ```10```\n\t */\n\tinventory_models_max_stock_locations_cutoff?: number | null\n\t/** \n\t * The maximum number of active concurrent promotions allowed for your organization, default is 10.\n\t * @example ```10```\n\t */\n\tpromotions_max_concurrent_count?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a promotion object, default is 150.\n\t * @example ```150```\n\t */\n\tpromotions_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a promotion object, default is 15.\n\t * @example ```15```\n\t */\n\tpromotions_max_rules_size?: number | null\n\t/** \n\t * The maximum number of conditions within a rules payload on a price list object, default is 150.\n\t * @example ```150```\n\t */\n\tprice_lists_max_conditions_size?: number | null\n\t/** \n\t * The maximum number of rules within a rules payload on a price list object, default is 15.\n\t * @example ```15```\n\t */\n\tprice_lists_max_rules_size?: number | null\n\t/** \n\t * Enables triggering of webhooks during imports, default is false.\n\t */\n\timports_trigger_webhooks?: number | null\n\t/** \n\t * Enables the use of an external discount engine in place of the standard one, default is false.\n\t */\n\tdiscount_engines_enabled?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of discount engine failure, default is false.\n\t */\n\tdiscount_engines_errors?: boolean | null\n\t/** \n\t * The maximum length for the tag name, default is 25.\n\t * @example ```25```\n\t */\n\ttags_max_name_length?: number | null\n\t/** \n\t * The maximum allowed number of tags for each resource, default is 10.\n\t * @example ```10```\n\t */\n\ttags_max_allowed_number?: number | null\n\t/** \n\t * Enables raising of API errors in case of tax calculation failure, default is false.\n\t */\n\ttax_calculators_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of external promotion failure, default is false.\n\t */\n\texternal_promotions_errors?: boolean | null\n\t/** \n\t * Enables raising of API errors in case of external price failure, default is true.\n\t * @example ```true```\n\t */\n\texternal_prices_errors?: boolean | null\n\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Organizations extends ApiSingleton<Organization> {\n\n\tstatic readonly TYPE: OrganizationType = 'organizations' as const\n\n\tasync event_stores(organizationId: string | Organization, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _organizationId = (organizationId as Organization).id || organizationId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `organization/${_organizationId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisOrganization(resource: any): resource is Organization {\n\t\treturn resource.type && (resource.type === Organizations.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrganizationRel {\n\t\treturn super.relationshipOneToOne<OrganizationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrganizationRel[] {\n\t\treturn super.relationshipOneToMany<OrganizationRel>(...ids)\n\t}\n\n\n\ttype(): OrganizationType {\n\t\treturn Organizations.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'organization'\n\t}\n\n}\n\n\nconst instance = new Organizations()\nexport default instance\n\nexport type { Organization, Organizations, OrganizationType }\n"]}
@@ -0,0 +1,53 @@
1
+ import { ApiResource } from './chunk-YRCCY6RV.js';
2
+
3
+ // src/resources/manual_tax_calculators.ts
4
+ var ManualTaxCalculators = class _ManualTaxCalculators extends ApiResource {
5
+ static TYPE = "manual_tax_calculators";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _ManualTaxCalculators.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _ManualTaxCalculators.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _ManualTaxCalculators.TYPE } : id, options);
14
+ }
15
+ async markets(manualTaxCalculatorId, params, options) {
16
+ const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
17
+ return this.resources.fetch({ type: "markets" }, `manual_tax_calculators/${_manualTaxCalculatorId}/markets`, params, options);
18
+ }
19
+ async attachments(manualTaxCalculatorId, params, options) {
20
+ const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
21
+ return this.resources.fetch({ type: "attachments" }, `manual_tax_calculators/${_manualTaxCalculatorId}/attachments`, params, options);
22
+ }
23
+ async events(manualTaxCalculatorId, params, options) {
24
+ const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
25
+ return this.resources.fetch({ type: "events" }, `manual_tax_calculators/${_manualTaxCalculatorId}/events`, params, options);
26
+ }
27
+ async event_stores(manualTaxCalculatorId, params, options) {
28
+ const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
29
+ return this.resources.fetch({ type: "event_stores" }, `manual_tax_calculators/${_manualTaxCalculatorId}/event_stores`, params, options);
30
+ }
31
+ async tax_rules(manualTaxCalculatorId, params, options) {
32
+ const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
33
+ return this.resources.fetch({ type: "tax_rules" }, `manual_tax_calculators/${_manualTaxCalculatorId}/tax_rules`, params, options);
34
+ }
35
+ isManualTaxCalculator(resource) {
36
+ return resource.type && resource.type === _ManualTaxCalculators.TYPE;
37
+ }
38
+ relationship(id) {
39
+ return super.relationshipOneToOne(id);
40
+ }
41
+ relationshipToMany(...ids) {
42
+ return super.relationshipOneToMany(...ids);
43
+ }
44
+ type() {
45
+ return _ManualTaxCalculators.TYPE;
46
+ }
47
+ };
48
+ var instance = new ManualTaxCalculators();
49
+ var manual_tax_calculators_default = instance;
50
+
51
+ export { manual_tax_calculators_default };
52
+ //# sourceMappingURL=chunk-5AFBGKJ4.js.map
53
+ //# sourceMappingURL=chunk-5AFBGKJ4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/manual_tax_calculators.ts"],"names":[],"mappings":"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","file":"chunk-5AFBGKJ4.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\nimport type { TaxRule, TaxRuleType } from './tax_rules'\n\n\ntype ManualTaxCalculatorType = 'manual_tax_calculators'\ntype ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType }\ntype TaxRuleRel = ResourceRel & { type: TaxRuleType }\n\n\nexport type ManualTaxCalculatorSort = Pick<ManualTaxCalculator, 'id' | 'name'> & ResourceSort\n// export type ManualTaxCalculatorFilter = Pick<ManualTaxCalculator, 'id' | 'name'> & ResourceFilter\n\n\ninterface ManualTaxCalculator extends Resource {\n\t\n\treadonly type: ManualTaxCalculatorType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\ttax_rules?: TaxRule[] | null\n\n}\n\n\ninterface ManualTaxCalculatorCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\n\ttax_rules?: TaxRuleRel[] | null\n\n}\n\n\ninterface ManualTaxCalculatorUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\n\ttax_rules?: TaxRuleRel[] | null\n\n}\n\n\nclass ManualTaxCalculators extends ApiResource<ManualTaxCalculator> {\n\n\tstatic readonly TYPE: ManualTaxCalculatorType = 'manual_tax_calculators' as const\n\n\tasync create(resource: ManualTaxCalculatorCreate, params?: QueryParamsRetrieve<ManualTaxCalculator>, options?: ResourcesConfig): Promise<ManualTaxCalculator> {\n\t\treturn this.resources.create<ManualTaxCalculatorCreate, ManualTaxCalculator>({ ...resource, type: ManualTaxCalculators.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ManualTaxCalculatorUpdate, params?: QueryParamsRetrieve<ManualTaxCalculator>, options?: ResourcesConfig): Promise<ManualTaxCalculator> {\n\t\treturn this.resources.update<ManualTaxCalculatorUpdate, ManualTaxCalculator>({ ...resource, type: ManualTaxCalculators.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ManualTaxCalculators.TYPE } : id, options)\n\t}\n\n\tasync markets(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `manual_tax_calculators/${_manualTaxCalculatorId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `manual_tax_calculators/${_manualTaxCalculatorId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `manual_tax_calculators/${_manualTaxCalculatorId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `manual_tax_calculators/${_manualTaxCalculatorId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync tax_rules(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<TaxRule>, options?: ResourcesConfig): Promise<ListResponse<TaxRule>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<TaxRule>({ type: 'tax_rules' }, `manual_tax_calculators/${_manualTaxCalculatorId}/tax_rules`, params, options) as unknown as ListResponse<TaxRule>\n\t}\n\n\n\tisManualTaxCalculator(resource: any): resource is ManualTaxCalculator {\n\t\treturn resource.type && (resource.type === ManualTaxCalculators.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ManualTaxCalculatorRel {\n\t\treturn super.relationshipOneToOne<ManualTaxCalculatorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ManualTaxCalculatorRel[] {\n\t\treturn super.relationshipOneToMany<ManualTaxCalculatorRel>(...ids)\n\t}\n\n\n\ttype(): ManualTaxCalculatorType {\n\t\treturn ManualTaxCalculators.TYPE\n\t}\n\n}\n\n\nconst instance = new ManualTaxCalculators()\nexport default instance\n\nexport type { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculators, ManualTaxCalculatorType, ManualTaxCalculatorUpdate }\n"]}
@@ -0,0 +1,56 @@
1
+ 'use strict';
2
+
3
+ var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
4
+
5
+ // src/resources/refunds.ts
6
+ var Refunds = class _Refunds extends chunkL7FT6NDZ_cjs.ApiResource {
7
+ static TYPE = "refunds";
8
+ async update(resource, params, options) {
9
+ return this.resources.update({ ...resource, type: _Refunds.TYPE }, params, options);
10
+ }
11
+ async order(refundId, params, options) {
12
+ const _refundId = refundId.id || refundId;
13
+ return this.resources.fetch({ type: "orders" }, `refunds/${_refundId}/order`, params, options);
14
+ }
15
+ async attachments(refundId, params, options) {
16
+ const _refundId = refundId.id || refundId;
17
+ return this.resources.fetch({ type: "attachments" }, `refunds/${_refundId}/attachments`, params, options);
18
+ }
19
+ async events(refundId, params, options) {
20
+ const _refundId = refundId.id || refundId;
21
+ return this.resources.fetch({ type: "events" }, `refunds/${_refundId}/events`, params, options);
22
+ }
23
+ async event_stores(refundId, params, options) {
24
+ const _refundId = refundId.id || refundId;
25
+ return this.resources.fetch({ type: "event_stores" }, `refunds/${_refundId}/event_stores`, params, options);
26
+ }
27
+ async reference_capture(refundId, params, options) {
28
+ const _refundId = refundId.id || refundId;
29
+ return this.resources.fetch({ type: "captures" }, `refunds/${_refundId}/reference_capture`, params, options);
30
+ }
31
+ async return(refundId, params, options) {
32
+ const _refundId = refundId.id || refundId;
33
+ return this.resources.fetch({ type: "returns" }, `refunds/${_refundId}/return`, params, options);
34
+ }
35
+ async _forward(id, params, options) {
36
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Refunds.TYPE, _forward: true }, params, options);
37
+ }
38
+ isRefund(resource) {
39
+ return resource.type && resource.type === _Refunds.TYPE;
40
+ }
41
+ relationship(id) {
42
+ return super.relationshipOneToOne(id);
43
+ }
44
+ relationshipToMany(...ids) {
45
+ return super.relationshipOneToMany(...ids);
46
+ }
47
+ type() {
48
+ return _Refunds.TYPE;
49
+ }
50
+ };
51
+ var instance = new Refunds();
52
+ var refunds_default = instance;
53
+
54
+ exports.refunds_default = refunds_default;
55
+ //# sourceMappingURL=chunk-5P67UEWW.cjs.map
56
+ //# sourceMappingURL=chunk-5P67UEWW.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/refunds.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-5P67UEWW.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { Attachment } from './attachments'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { Capture } from './captures'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { Order } from './orders'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { Return } from './returns'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype RefundType = 'refunds'\ntype RefundRel = ResourceRel & { type: RefundType }\n\n\nexport type RefundSort = Pick<Refund, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type RefundFilter = Pick<Refund, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Refund extends Resource {\n\t\n\treadonly type: RefundType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * Information about the payment method used in the transaction.\n\t * @example ```\"credit card\"```\n\t */\n\tpayment_method_type?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\treference_capture?: Capture | null\n\treturn?: Return | null\n\n}\n\n\ninterface RefundUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t\n}\n\n\nclass Refunds extends ApiResource<Refund> {\n\n\tstatic readonly TYPE: RefundType = 'refunds' as const\n\n\tasync update(resource: RefundUpdate, params?: QueryParamsRetrieve<Refund>, options?: ResourcesConfig): Promise<Refund> {\n\t\treturn this.resources.update<RefundUpdate, Refund>({ ...resource, type: Refunds.TYPE }, params, options)\n\t}\n\n\tasync order(refundId: string | Refund, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `refunds/${_refundId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(refundId: string | Refund, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `refunds/${_refundId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(refundId: string | Refund, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `refunds/${_refundId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(refundId: string | Refund, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `refunds/${_refundId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync reference_capture(refundId: string | Refund, params?: QueryParamsRetrieve<Capture>, options?: ResourcesConfig): Promise<Capture> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Capture>({ type: 'captures' }, `refunds/${_refundId}/reference_capture`, params, options) as unknown as Capture\n\t}\n\n\tasync return(refundId: string | Refund, params?: QueryParamsRetrieve<Return>, options?: ResourcesConfig): Promise<Return> {\n\t\tconst _refundId = (refundId as Refund).id || refundId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `refunds/${_refundId}/return`, params, options) as unknown as Return\n\t}\n\n\tasync _forward(id: string | Refund, params?: QueryParamsRetrieve<Refund>, options?: ResourcesConfig): Promise<Refund> {\n\t\treturn this.resources.update<RefundUpdate, Refund>({ id: (typeof id === 'string')? id: id.id, type: Refunds.TYPE, _forward: true }, params, options)\n\t}\n\n\n\tisRefund(resource: any): resource is Refund {\n\t\treturn resource.type && (resource.type === Refunds.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): RefundRel {\n\t\treturn super.relationshipOneToOne<RefundRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): RefundRel[] {\n\t\treturn super.relationshipOneToMany<RefundRel>(...ids)\n\t}\n\n\n\ttype(): RefundType {\n\t\treturn Refunds.TYPE\n\t}\n\n}\n\n\nconst instance = new Refunds()\nexport default instance\n\nexport type { Refund, Refunds, RefundType, RefundUpdate }\n"]}
@@ -0,0 +1,40 @@
1
+ import { ApiResource } from './chunk-YRCCY6RV.js';
2
+
3
+ // src/resources/pickups.ts
4
+ var Pickups = class _Pickups extends ApiResource {
5
+ static TYPE = "pickups";
6
+ async shipment(pickupId, params, options) {
7
+ const _pickupId = pickupId.id || pickupId;
8
+ return this.resources.fetch({ type: "shipments" }, `pickups/${_pickupId}/shipment`, params, options);
9
+ }
10
+ async parcels(pickupId, params, options) {
11
+ const _pickupId = pickupId.id || pickupId;
12
+ return this.resources.fetch({ type: "parcels" }, `pickups/${_pickupId}/parcels`, params, options);
13
+ }
14
+ async events(pickupId, params, options) {
15
+ const _pickupId = pickupId.id || pickupId;
16
+ return this.resources.fetch({ type: "events" }, `pickups/${_pickupId}/events`, params, options);
17
+ }
18
+ async event_stores(pickupId, params, options) {
19
+ const _pickupId = pickupId.id || pickupId;
20
+ return this.resources.fetch({ type: "event_stores" }, `pickups/${_pickupId}/event_stores`, params, options);
21
+ }
22
+ isPickup(resource) {
23
+ return resource.type && resource.type === _Pickups.TYPE;
24
+ }
25
+ relationship(id) {
26
+ return super.relationshipOneToOne(id);
27
+ }
28
+ relationshipToMany(...ids) {
29
+ return super.relationshipOneToMany(...ids);
30
+ }
31
+ type() {
32
+ return _Pickups.TYPE;
33
+ }
34
+ };
35
+ var instance = new Pickups();
36
+ var pickups_default = instance;
37
+
38
+ export { pickups_default };
39
+ //# sourceMappingURL=chunk-5RJW5RAK.js.map
40
+ //# sourceMappingURL=chunk-5RJW5RAK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/pickups.ts"],"names":[],"mappings":";;;AAwCA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgB,WAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,QAAA,CAAS,QAAA,EAA2B,MAAA,EAAwC,OAAA,EAA8C;AAC/H,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAgB,EAAE,IAAA,EAAM,WAAA,EAAY,EAAG,CAAA,QAAA,EAAW,SAAS,CAAA,SAAA,CAAA,EAAa,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,OAAA,CAAQ,QAAA,EAA2B,MAAA,EAAkC,OAAA,EAA0D;AACpI,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAc,EAAE,IAAA,EAAM,SAAA,EAAU,EAAG,CAAA,QAAA,EAAW,SAAS,CAAA,QAAA,CAAA,EAAY,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA2B,MAAA,EAAiC,OAAA,EAAyD;AACjI,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CAAA,QAAA,EAAW,SAAS,CAAA,OAAA,CAAA,EAAW,MAAA,EAAQ,OAAO,CAAA;AAAA,EACtG;AAAA,EAEA,MAAM,YAAA,CAAa,QAAA,EAA2B,MAAA,EAAsC,OAAA,EAA8D;AACjJ,IAAA,MAAM,SAAA,GAAa,SAAoB,EAAA,IAAM,QAAA;AAC7C,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,QAAA,EAAW,SAAS,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvH;AAAA,EAGA,SAAS,QAAA,EAAmC;AAC3C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,QAAA,CAAQ,IAAA;AAAA,EACpD;AAAA,EAGA,aAAa,EAAA,EAA2C;AACvD,IAAA,OAAO,KAAA,CAAM,qBAAgC,EAAE,CAAA;AAAA,EAChD;AAAA,EAEA,sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-5RJW5RAK.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Parcel } from './parcels'\nimport type { Shipment } from './shipments'\n\n\ntype PickupType = 'pickups'\ntype PickupRel = ResourceRel & { type: PickupType }\n\n\nexport type PickupSort = Pick<Pickup, 'id' | 'status'> & ResourceSort\n// export type PickupFilter = Pick<Pickup, 'id' | 'status'> & ResourceFilter\n\n\ninterface Pickup extends Resource {\n\t\n\treadonly type: PickupType\n\n\t/** \n\t * The pick up status.\n\t * @example ```\"unknown\"```\n\t */\n\tstatus?: string | null\n\t/** \n\t * The pick up service internal ID.\n\t * @example ```\"pickup_13e5d7e2a7824432a07975bc553944bc\"```\n\t */\n\tinternal_id: string\n\n\tshipment?: Shipment | null\n\tparcels?: Parcel[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Pickups extends ApiResource<Pickup> {\n\n\tstatic readonly TYPE: PickupType = 'pickups' as const\n\n\tasync shipment(pickupId: string | Pickup, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\tconst _pickupId = (pickupId as Pickup).id || pickupId as string\n\t\treturn this.resources.fetch<Shipment>({ type: 'shipments' }, `pickups/${_pickupId}/shipment`, params, options) as unknown as Shipment\n\t}\n\n\tasync parcels(pickupId: string | Pickup, params?: QueryParamsList<Parcel>, options?: ResourcesConfig): Promise<ListResponse<Parcel>> {\n\t\tconst _pickupId = (pickupId as Pickup).id || pickupId as string\n\t\treturn this.resources.fetch<Parcel>({ type: 'parcels' }, `pickups/${_pickupId}/parcels`, params, options) as unknown as ListResponse<Parcel>\n\t}\n\n\tasync events(pickupId: string | Pickup, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _pickupId = (pickupId as Pickup).id || pickupId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `pickups/${_pickupId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(pickupId: string | Pickup, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _pickupId = (pickupId as Pickup).id || pickupId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `pickups/${_pickupId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPickup(resource: any): resource is Pickup {\n\t\treturn resource.type && (resource.type === Pickups.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PickupRel {\n\t\treturn super.relationshipOneToOne<PickupRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PickupRel[] {\n\t\treturn super.relationshipOneToMany<PickupRel>(...ids)\n\t}\n\n\n\ttype(): PickupType {\n\t\treturn Pickups.TYPE\n\t}\n\n}\n\n\nconst instance = new Pickups()\nexport default instance\n\nexport type { Pickup, Pickups, PickupType }\n"]}
@@ -0,0 +1,52 @@
1
+ 'use strict';
2
+
3
+ var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
4
+
5
+ // src/resources/webhooks.ts
6
+ var Webhooks = class _Webhooks extends chunkL7FT6NDZ_cjs.ApiResource {
7
+ static TYPE = "webhooks";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _Webhooks.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _Webhooks.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _Webhooks.TYPE } : id, options);
16
+ }
17
+ async last_event_callbacks(webhookId, params, options) {
18
+ const _webhookId = webhookId.id || webhookId;
19
+ return this.resources.fetch({ type: "event_callbacks" }, `webhooks/${_webhookId}/last_event_callbacks`, params, options);
20
+ }
21
+ async event_stores(webhookId, params, options) {
22
+ const _webhookId = webhookId.id || webhookId;
23
+ return this.resources.fetch({ type: "event_stores" }, `webhooks/${_webhookId}/event_stores`, params, options);
24
+ }
25
+ async _disable(id, params, options) {
26
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Webhooks.TYPE, _disable: true }, params, options);
27
+ }
28
+ async _enable(id, params, options) {
29
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Webhooks.TYPE, _enable: true }, params, options);
30
+ }
31
+ async _reset_circuit(id, params, options) {
32
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Webhooks.TYPE, _reset_circuit: true }, params, options);
33
+ }
34
+ isWebhook(resource) {
35
+ return resource.type && resource.type === _Webhooks.TYPE;
36
+ }
37
+ relationship(id) {
38
+ return super.relationshipOneToOne(id);
39
+ }
40
+ relationshipToMany(...ids) {
41
+ return super.relationshipOneToMany(...ids);
42
+ }
43
+ type() {
44
+ return _Webhooks.TYPE;
45
+ }
46
+ };
47
+ var instance = new Webhooks();
48
+ var webhooks_default = instance;
49
+
50
+ exports.webhooks_default = webhooks_default;
51
+ //# sourceMappingURL=chunk-5TLVMKOO.cjs.map
52
+ //# sourceMappingURL=chunk-5TLVMKOO.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/webhooks.ts"],"names":["ApiResource"],"mappings":"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","file":"chunk-5TLVMKOO.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\n\nimport type { EventCallback } from './event_callbacks'\nimport type { EventStore } from './event_stores'\n\n\ntype WebhookType = 'webhooks'\ntype WebhookRel = ResourceRel & { type: WebhookType }\n\n\nexport type WebhookSort = Pick<Webhook, 'id' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type WebhookFilter = Pick<Webhook, 'id' | 'name' | 'topic' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface Webhook extends Resource {\n\t\n\treadonly type: WebhookType\n\n\t/** \n\t * Unique name for the webhook.\n\t * @example ```\"myorg-orders.place\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The identifier of the resource/event that will trigger the webhook.\n\t * @example ```\"orders.place\"```\n\t */\n\ttopic: string\n\t/** \n\t * URI where the webhook subscription should send the POST request when the event occurs.\n\t * @example ```\"https://yourapp.com/webhooks\"```\n\t */\n\tcallback_url: string\n\t/** \n\t * List of related resources that should be included in the webhook body.\n\t * @example ```[\"customer\",\"shipping_address\",\"billing_address\"]```\n\t */\n\tinclude_resources?: string[] | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The 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\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\n\tlast_event_callbacks?: EventCallback[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface WebhookCreate extends ResourceCreate {\n\t\n\t/** \n\t * Unique name for the webhook.\n\t * @example ```\"myorg-orders.place\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The identifier of the resource/event that will trigger the webhook.\n\t * @example ```\"orders.place\"```\n\t */\n\ttopic: string\n\t/** \n\t * URI where the webhook subscription should send the POST request when the event occurs.\n\t * @example ```\"https://yourapp.com/webhooks\"```\n\t */\n\tcallback_url: string\n\t/** \n\t * List of related resources that should be included in the webhook body.\n\t * @example ```[\"customer\",\"shipping_address\",\"billing_address\"]```\n\t */\n\tinclude_resources?: string[] | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t\n}\n\n\ninterface WebhookUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Unique name for the webhook.\n\t * @example ```\"myorg-orders.place\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The identifier of the resource/event that will trigger the webhook.\n\t * @example ```\"orders.place\"```\n\t */\n\ttopic?: string | null\n\t/** \n\t * URI where the webhook subscription should send the POST request when the event occurs.\n\t * @example ```\"https://yourapp.com/webhooks\"```\n\t */\n\tcallback_url?: string | null\n\t/** \n\t * List of related resources that should be included in the webhook body.\n\t * @example ```[\"customer\",\"shipping_address\",\"billing_address\"]```\n\t */\n\tinclude_resources?: string[] | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * 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\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t\n}\n\n\nclass Webhooks extends ApiResource<Webhook> {\n\n\tstatic readonly TYPE: WebhookType = 'webhooks' as const\n\n\tasync create(resource: WebhookCreate, params?: QueryParamsRetrieve<Webhook>, options?: ResourcesConfig): Promise<Webhook> {\n\t\treturn this.resources.create<WebhookCreate, Webhook>({ ...resource, type: Webhooks.TYPE }, params, options)\n\t}\n\n\tasync update(resource: WebhookUpdate, params?: QueryParamsRetrieve<Webhook>, options?: ResourcesConfig): Promise<Webhook> {\n\t\treturn this.resources.update<WebhookUpdate, Webhook>({ ...resource, type: Webhooks.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Webhooks.TYPE } : id, options)\n\t}\n\n\tasync last_event_callbacks(webhookId: string | Webhook, params?: QueryParamsList<EventCallback>, options?: ResourcesConfig): Promise<ListResponse<EventCallback>> {\n\t\tconst _webhookId = (webhookId as Webhook).id || webhookId as string\n\t\treturn this.resources.fetch<EventCallback>({ type: 'event_callbacks' }, `webhooks/${_webhookId}/last_event_callbacks`, params, options) as unknown as ListResponse<EventCallback>\n\t}\n\n\tasync event_stores(webhookId: string | Webhook, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _webhookId = (webhookId as Webhook).id || webhookId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `webhooks/${_webhookId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | Webhook, params?: QueryParamsRetrieve<Webhook>, options?: ResourcesConfig): Promise<Webhook> {\n\t\treturn this.resources.update<WebhookUpdate, Webhook>({ id: (typeof id === 'string')? id: id.id, type: Webhooks.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | Webhook, params?: QueryParamsRetrieve<Webhook>, options?: ResourcesConfig): Promise<Webhook> {\n\t\treturn this.resources.update<WebhookUpdate, Webhook>({ id: (typeof id === 'string')? id: id.id, type: Webhooks.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | Webhook, params?: QueryParamsRetrieve<Webhook>, options?: ResourcesConfig): Promise<Webhook> {\n\t\treturn this.resources.update<WebhookUpdate, Webhook>({ id: (typeof id === 'string')? id: id.id, type: Webhooks.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisWebhook(resource: any): resource is Webhook {\n\t\treturn resource.type && (resource.type === Webhooks.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): WebhookRel {\n\t\treturn super.relationshipOneToOne<WebhookRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): WebhookRel[] {\n\t\treturn super.relationshipOneToMany<WebhookRel>(...ids)\n\t}\n\n\n\ttype(): WebhookType {\n\t\treturn Webhooks.TYPE\n\t}\n\n}\n\n\nconst instance = new Webhooks()\nexport default instance\n\nexport type { Webhook, WebhookCreate, Webhooks, WebhookType, WebhookUpdate }\n"]}
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ //# sourceMappingURL=chunk-5YMHXTJG.cjs.map
4
+ //# sourceMappingURL=chunk-5YMHXTJG.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-5YMHXTJG.cjs"}
@@ -0,0 +1,96 @@
1
+ import { ApiResource } from './chunk-YRCCY6RV.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({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _ExternalPromotions.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _ExternalPromotions.TYPE } : id, options);
14
+ }
15
+ async market(externalPromotionId, params, options) {
16
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
17
+ return this.resources.fetch({ type: "markets" }, `external_promotions/${_externalPromotionId}/market`, params, options);
18
+ }
19
+ async order_amount_promotion_rule(externalPromotionId, params, options) {
20
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
21
+ return this.resources.fetch({ type: "order_amount_promotion_rules" }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options);
22
+ }
23
+ async sku_list_promotion_rule(externalPromotionId, params, options) {
24
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
25
+ return this.resources.fetch({ type: "sku_list_promotion_rules" }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options);
26
+ }
27
+ async coupon_codes_promotion_rule(externalPromotionId, params, options) {
28
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
29
+ return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options);
30
+ }
31
+ async custom_promotion_rule(externalPromotionId, params, options) {
32
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
33
+ return this.resources.fetch({ type: "custom_promotion_rules" }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options);
34
+ }
35
+ async sku_list(externalPromotionId, params, options) {
36
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
37
+ return this.resources.fetch({ type: "sku_lists" }, `external_promotions/${_externalPromotionId}/sku_list`, params, options);
38
+ }
39
+ async coupons(externalPromotionId, params, options) {
40
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
41
+ return this.resources.fetch({ type: "coupons" }, `external_promotions/${_externalPromotionId}/coupons`, params, options);
42
+ }
43
+ async attachments(externalPromotionId, params, options) {
44
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
45
+ return this.resources.fetch({ type: "attachments" }, `external_promotions/${_externalPromotionId}/attachments`, params, options);
46
+ }
47
+ async events(externalPromotionId, params, options) {
48
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
49
+ return this.resources.fetch({ type: "events" }, `external_promotions/${_externalPromotionId}/events`, params, options);
50
+ }
51
+ async tags(externalPromotionId, params, options) {
52
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
53
+ return this.resources.fetch({ type: "tags" }, `external_promotions/${_externalPromotionId}/tags`, params, options);
54
+ }
55
+ async event_stores(externalPromotionId, params, options) {
56
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
57
+ return this.resources.fetch({ type: "event_stores" }, `external_promotions/${_externalPromotionId}/event_stores`, params, options);
58
+ }
59
+ async skus(externalPromotionId, params, options) {
60
+ const _externalPromotionId = externalPromotionId.id || externalPromotionId;
61
+ return this.resources.fetch({ type: "skus" }, `external_promotions/${_externalPromotionId}/skus`, params, options);
62
+ }
63
+ async _disable(id, params, options) {
64
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _disable: true }, params, options);
65
+ }
66
+ async _enable(id, params, options) {
67
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _enable: true }, params, options);
68
+ }
69
+ async _add_tags(id, triggerValue, params, options) {
70
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options);
71
+ }
72
+ async _remove_tags(id, triggerValue, params, options) {
73
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options);
74
+ }
75
+ async _reset_circuit(id, params, options) {
76
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalPromotions.TYPE, _reset_circuit: true }, params, options);
77
+ }
78
+ isExternalPromotion(resource) {
79
+ return resource.type && resource.type === _ExternalPromotions.TYPE;
80
+ }
81
+ relationship(id) {
82
+ return super.relationshipOneToOne(id);
83
+ }
84
+ relationshipToMany(...ids) {
85
+ return super.relationshipOneToMany(...ids);
86
+ }
87
+ type() {
88
+ return _ExternalPromotions.TYPE;
89
+ }
90
+ };
91
+ var instance = new ExternalPromotions();
92
+ var external_promotions_default = instance;
93
+
94
+ export { external_promotions_default };
95
+ //# sourceMappingURL=chunk-65XBHNZH.js.map
96
+ //# sourceMappingURL=chunk-65XBHNZH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/external_promotions.ts"],"names":[],"mappings":"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","file":"chunk-65XBHNZH.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } 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\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\n\nexport type ExternalPromotionSort = 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'> & 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\n\ninterface ExternalPromotion extends Resource {\n\t\n\treadonly type: ExternalPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion has been applied the total number of allowed times.\n\t */\n\ttotal_usage_reached?: boolean | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * The total number of coupons created for this promotion.\n\t * @example ```2```\n\t */\n\tcoupons_count?: number | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\t/** \n\t * 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\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * 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\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\tskus?: Sku[] | null\n\n}\n\n\ninterface ExternalPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url: string\n\t/** \n\t * 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\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface ExternalPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * The URL to the service that will compute the discount.\n\t * @example ```\"https://external_promotion.yourbrand.com\"```\n\t */\n\tpromotion_url?: string | null\n\t/** \n\t * 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\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * 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\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass ExternalPromotions extends ApiResource<ExternalPromotion> {\n\n\tstatic readonly TYPE: ExternalPromotionType = 'external_promotions' as const\n\n\tasync create(resource: ExternalPromotionCreate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.create<ExternalPromotionCreate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalPromotionUpdate, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ ...resource, type: ExternalPromotions.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ExternalPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `external_promotions/${_externalPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `external_promotions/${_externalPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `external_promotions/${_externalPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `external_promotions/${_externalPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `external_promotions/${_externalPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(externalPromotionId: string | ExternalPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `external_promotions/${_externalPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `external_promotions/${_externalPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `external_promotions/${_externalPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `external_promotions/${_externalPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `external_promotions/${_externalPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_promotions/${_externalPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(externalPromotionId: string | ExternalPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _externalPromotionId = (externalPromotionId as ExternalPromotion).id || externalPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `external_promotions/${_externalPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | ExternalPromotion, triggerValue: string, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalPromotion, params?: QueryParamsRetrieve<ExternalPromotion>, options?: ResourcesConfig): Promise<ExternalPromotion> {\n\t\treturn this.resources.update<ExternalPromotionUpdate, ExternalPromotion>({ id: (typeof id === 'string')? id: id.id, type: ExternalPromotions.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalPromotion(resource: any): resource is ExternalPromotion {\n\t\treturn resource.type && (resource.type === ExternalPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalPromotionRel {\n\t\treturn super.relationshipOneToOne<ExternalPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalPromotionRel[] {\n\t\treturn super.relationshipOneToMany<ExternalPromotionRel>(...ids)\n\t}\n\n\n\ttype(): ExternalPromotionType {\n\t\treturn ExternalPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalPromotions()\nexport default instance\n\nexport type { ExternalPromotion, ExternalPromotionCreate, ExternalPromotions, ExternalPromotionType, ExternalPromotionUpdate }\n"]}
@@ -0,0 +1,37 @@
1
+ import { ApiResource } from './chunk-YRCCY6RV.js';
2
+
3
+ // src/resources/attachments.ts
4
+ var Attachments = class _Attachments extends ApiResource {
5
+ static TYPE = "attachments";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _Attachments.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _Attachments.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _Attachments.TYPE } : id, options);
14
+ }
15
+ async event_stores(attachmentId, params, options) {
16
+ const _attachmentId = attachmentId.id || attachmentId;
17
+ return this.resources.fetch({ type: "event_stores" }, `attachments/${_attachmentId}/event_stores`, params, options);
18
+ }
19
+ isAttachment(resource) {
20
+ return resource.type && resource.type === _Attachments.TYPE;
21
+ }
22
+ relationship(id) {
23
+ return super.relationshipOneToOne(id);
24
+ }
25
+ relationshipToMany(...ids) {
26
+ return super.relationshipOneToMany(...ids);
27
+ }
28
+ type() {
29
+ return _Attachments.TYPE;
30
+ }
31
+ };
32
+ var instance = new Attachments();
33
+ var attachments_default = instance;
34
+
35
+ export { attachments_default };
36
+ //# sourceMappingURL=chunk-6BXCQFTI.js.map
37
+ //# sourceMappingURL=chunk-6BXCQFTI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/attachments.ts"],"names":[],"mappings":";;;AAkKA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoB,WAAA,CAAwB;AAAA,EAEjD,OAAgB,IAAA,GAAuB,aAAA;AAAA,EAEvC,MAAM,MAAA,CAAO,QAAA,EAA4B,MAAA,EAA0C,OAAA,EAAgD;AAClI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACpH;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA4B,MAAA,EAA0C,OAAA,EAAgD;AAClI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACpH;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACnG;AAAA,EAEA,MAAM,YAAA,CAAa,YAAA,EAAmC,MAAA,EAAsC,OAAA,EAA8D;AACzJ,IAAA,MAAM,aAAA,GAAiB,aAA4B,EAAA,IAAM,YAAA;AACzD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,YAAA,EAAe,aAAa,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/H;AAAA,EAGA,aAAa,QAAA,EAAuC;AACnD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,YAAA,CAAY,IAAA;AAAA,EACxD;AAAA,EAGA,aAAa,EAAA,EAA+C;AAC3D,IAAA,OAAO,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA,EACpD;AAAA,EAEA,sBAAsB,GAAA,EAAgC;AACrD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAqC,GAAG,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,IAAA,GAAuB;AACtB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACpB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,mBAAA,GAAQ","file":"chunk-6BXCQFTI.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Bundle, BundleType } from './bundles'\nimport type { CarrierAccount, CarrierAccountType } from './carrier_accounts'\nimport type { CouponRecipient, CouponRecipientType } from './coupon_recipients'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { Customer, CustomerType } from './customers'\nimport type { DeliveryLeadTime, DeliveryLeadTimeType } from './delivery_lead_times'\nimport type { DiscountEngine, DiscountEngineType } from './discount_engines'\nimport type { EventStore } from './event_stores'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { GiftCardRecipient, GiftCardRecipientType } from './gift_card_recipients'\nimport type { GiftCard, GiftCardType } from './gift_cards'\nimport type { InventoryModel, InventoryModelType } from './inventory_models'\nimport type { Market, MarketType } from './markets'\nimport type { Merchant, MerchantType } from './merchants'\nimport type { Order, OrderType } from './orders'\nimport type { Package, PackageType } from './packages'\nimport type { Parcel, ParcelType } from './parcels'\nimport type { PaymentMethod, PaymentMethodType } from './payment_methods'\nimport type { PaymentOption, PaymentOptionType } from './payment_options'\nimport type { PriceList, PriceListType } from './price_lists'\nimport type { PriceTier, PriceTierType } from './price_tiers'\nimport type { Price, PriceType } from './prices'\nimport type { Promotion, PromotionType } from './promotions'\nimport type { Return, ReturnType } from './returns'\nimport type { Shipment, ShipmentType } from './shipments'\nimport type { ShippingCategory, ShippingCategoryType } from './shipping_categories'\nimport type { ShippingMethodTier, ShippingMethodTierType } from './shipping_method_tiers'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { ShippingZone, ShippingZoneType } from './shipping_zones'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { SkuOption, SkuOptionType } from './sku_options'\nimport type { Sku, SkuType } from './skus'\nimport type { StockItem, StockItemType } from './stock_items'\nimport type { StockLocation, StockLocationType } from './stock_locations'\nimport type { StockTransfer, StockTransferType } from './stock_transfers'\nimport type { SubscriptionModel, SubscriptionModelType } from './subscription_models'\nimport type { TaxCalculator, TaxCalculatorType } from './tax_calculators'\nimport type { TaxCategory, TaxCategoryType } from './tax_categories'\nimport type { Transaction, TransactionType } from './transactions'\n\n\ntype AttachmentType = 'attachments'\ntype AttachmentRel = ResourceRel & { type: AttachmentType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype PriceListRel = ResourceRel & { type: PriceListType }\ntype PaymentMethodRel = ResourceRel & { type: PaymentMethodType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype PromotionRel = ResourceRel & { type: PromotionType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype TransactionRel = ResourceRel & { type: TransactionType }\ntype TaxCalculatorRel = ResourceRel & { type: TaxCalculatorType }\ntype TaxCategoryRel = ResourceRel & { type: TaxCategoryType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype StockItemRel = ResourceRel & { type: StockItemType }\ntype StockLocationRel = ResourceRel & { type: StockLocationType }\ntype ReturnRel = ResourceRel & { type: ReturnType }\ntype CarrierAccountRel = ResourceRel & { type: CarrierAccountType }\ntype CouponRecipientRel = ResourceRel & { type: CouponRecipientType }\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype DeliveryLeadTimeRel = ResourceRel & { type: DeliveryLeadTimeType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype DiscountEngineRel = ResourceRel & { type: DiscountEngineType }\ntype ParcelRel = ResourceRel & { type: ParcelType }\ntype GiftCardRecipientRel = ResourceRel & { type: GiftCardRecipientType }\ntype GiftCardRel = ResourceRel & { type: GiftCardType }\ntype InventoryModelRel = ResourceRel & { type: InventoryModelType }\ntype StockTransferRel = ResourceRel & { type: StockTransferType }\ntype SkuOptionRel = ResourceRel & { type: SkuOptionType }\ntype MerchantRel = ResourceRel & { type: MerchantType }\ntype SubscriptionModelRel = ResourceRel & { type: SubscriptionModelType }\ntype PaymentOptionRel = ResourceRel & { type: PaymentOptionType }\ntype PackageRel = ResourceRel & { type: PackageType }\ntype PriceRel = ResourceRel & { type: PriceType }\ntype PriceTierRel = ResourceRel & { type: PriceTierType }\ntype ShippingMethodTierRel = ResourceRel & { type: ShippingMethodTierType }\ntype ShippingZoneRel = ResourceRel & { type: ShippingZoneType }\n\n\nexport type AttachmentSort = Pick<Attachment, 'id' | 'name'> & ResourceSort\n// export type AttachmentFilter = Pick<Attachment, 'id' | 'name' | 'description'> & ResourceFilter\n\n\ninterface Attachment extends Resource {\n\t\n\treadonly type: AttachmentType\n\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable?: Geocoder | PriceList | PaymentMethod | Market | CustomerGroup | Promotion | Order | Transaction | TaxCalculator | TaxCategory | Sku | ShippingCategory | Bundle | SkuList | StockItem | StockLocation | Return | CarrierAccount | CouponRecipient | Customer | DeliveryLeadTime | ShippingMethod | Shipment | DiscountEngine | Parcel | GiftCardRecipient | GiftCard | InventoryModel | StockTransfer | SkuOption | Merchant | SubscriptionModel | PaymentOption | Package | Price | PriceTier | ShippingMethodTier | ShippingZone | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AttachmentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname: string\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable: GeocoderRel | PriceListRel | PaymentMethodRel | MarketRel | CustomerGroupRel | PromotionRel | OrderRel | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel\n\n}\n\n\ninterface AttachmentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The internal name of the attachment.\n\t * @example ```\"DDT transport document\"```\n\t */\n\tname?: string | null\n\t/** \n\t * An internal description of the attachment.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The attachment URL.\n\t * @example ```\"https://s3.yourdomain.com/attachment.pdf\"```\n\t */\n\turl?: string | null\n\n\tattachable?: GeocoderRel | PriceListRel | PaymentMethodRel | MarketRel | CustomerGroupRel | PromotionRel | OrderRel | TransactionRel | TaxCalculatorRel | TaxCategoryRel | SkuRel | ShippingCategoryRel | BundleRel | SkuListRel | StockItemRel | StockLocationRel | ReturnRel | CarrierAccountRel | CouponRecipientRel | CustomerRel | DeliveryLeadTimeRel | ShippingMethodRel | ShipmentRel | DiscountEngineRel | ParcelRel | GiftCardRecipientRel | GiftCardRel | InventoryModelRel | StockTransferRel | SkuOptionRel | MerchantRel | SubscriptionModelRel | PaymentOptionRel | PackageRel | PriceRel | PriceTierRel | ShippingMethodTierRel | ShippingZoneRel | null\n\n}\n\n\nclass Attachments extends ApiResource<Attachment> {\n\n\tstatic readonly TYPE: AttachmentType = 'attachments' as const\n\n\tasync create(resource: AttachmentCreate, params?: QueryParamsRetrieve<Attachment>, options?: ResourcesConfig): Promise<Attachment> {\n\t\treturn this.resources.create<AttachmentCreate, Attachment>({ ...resource, type: Attachments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AttachmentUpdate, params?: QueryParamsRetrieve<Attachment>, options?: ResourcesConfig): Promise<Attachment> {\n\t\treturn this.resources.update<AttachmentUpdate, Attachment>({ ...resource, type: Attachments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Attachments.TYPE } : id, options)\n\t}\n\n\tasync event_stores(attachmentId: string | Attachment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _attachmentId = (attachmentId as Attachment).id || attachmentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `attachments/${_attachmentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisAttachment(resource: any): resource is Attachment {\n\t\treturn resource.type && (resource.type === Attachments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AttachmentRel {\n\t\treturn super.relationshipOneToOne<AttachmentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AttachmentRel[] {\n\t\treturn super.relationshipOneToMany<AttachmentRel>(...ids)\n\t}\n\n\n\ttype(): AttachmentType {\n\t\treturn Attachments.TYPE\n\t}\n\n}\n\n\nconst instance = new Attachments()\nexport default instance\n\nexport type { Attachment, AttachmentCreate, Attachments, AttachmentType, AttachmentUpdate }\n"]}
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ var chunkL7FT6NDZ_cjs = require('./chunk-L7FT6NDZ.cjs');
4
+
5
+ // src/resources/sku_list_promotion_rules.ts
6
+ var SkuListPromotionRules = class _SkuListPromotionRules extends chunkL7FT6NDZ_cjs.ApiResource {
7
+ static TYPE = "sku_list_promotion_rules";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _SkuListPromotionRules.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _SkuListPromotionRules.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _SkuListPromotionRules.TYPE } : id, options);
16
+ }
17
+ async event_stores(skuListPromotionRuleId, params, options) {
18
+ const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
19
+ return this.resources.fetch({ type: "event_stores" }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/event_stores`, params, options);
20
+ }
21
+ async sku_list(skuListPromotionRuleId, params, options) {
22
+ const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
23
+ return this.resources.fetch({ type: "sku_lists" }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/sku_list`, params, options);
24
+ }
25
+ async skus(skuListPromotionRuleId, params, options) {
26
+ const _skuListPromotionRuleId = skuListPromotionRuleId.id || skuListPromotionRuleId;
27
+ return this.resources.fetch({ type: "skus" }, `sku_list_promotion_rules/${_skuListPromotionRuleId}/skus`, params, options);
28
+ }
29
+ isSkuListPromotionRule(resource) {
30
+ return resource.type && resource.type === _SkuListPromotionRules.TYPE;
31
+ }
32
+ relationship(id) {
33
+ return super.relationshipOneToOne(id);
34
+ }
35
+ relationshipToMany(...ids) {
36
+ return super.relationshipOneToMany(...ids);
37
+ }
38
+ type() {
39
+ return _SkuListPromotionRules.TYPE;
40
+ }
41
+ };
42
+ var instance = new SkuListPromotionRules();
43
+ var sku_list_promotion_rules_default = instance;
44
+
45
+ exports.sku_list_promotion_rules_default = sku_list_promotion_rules_default;
46
+ //# sourceMappingURL=chunk-6EUKX4RC.cjs.map
47
+ //# sourceMappingURL=chunk-6EUKX4RC.cjs.map