@commercelayer/sdk 8.0.0-beta.5 → 8.0.0-beta.7

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 (1660) hide show
  1. package/README.md +15 -20
  2. package/lib/api--5wB5Y2R.d.ts +18326 -0
  3. package/lib/api-D_vKsy0h.d.cts +18326 -0
  4. package/lib/api.cjs +264 -264
  5. package/lib/api.d.cts +2 -2
  6. package/lib/api.d.ts +2 -2
  7. package/lib/api.js +133 -133
  8. package/lib/bundle.cjs +296 -296
  9. package/lib/bundle.cjs.map +1 -1
  10. package/lib/bundle.d.cts +18 -18
  11. package/lib/bundle.d.ts +18 -18
  12. package/lib/bundle.js +180 -180
  13. package/lib/bundle.js.map +1 -1
  14. package/lib/chunk-24HV4EKV.js +45 -0
  15. package/lib/chunk-24HV4EKV.js.map +1 -0
  16. package/lib/chunk-2BYCZUKD.cjs +47 -0
  17. package/lib/chunk-2BYCZUKD.cjs.map +1 -0
  18. package/lib/chunk-2C5TBSGQ.cjs +56 -0
  19. package/lib/chunk-2C5TBSGQ.cjs.map +1 -0
  20. package/lib/chunk-2LDIS6UA.js +53 -0
  21. package/lib/chunk-2LDIS6UA.js.map +1 -0
  22. package/lib/chunk-2MSLSBHY.js +57 -0
  23. package/lib/chunk-2MSLSBHY.js.map +1 -0
  24. package/lib/chunk-2O5WYDVL.js +37 -0
  25. package/lib/chunk-2O5WYDVL.js.map +1 -0
  26. package/lib/chunk-2WHGIJGU.js +54 -0
  27. package/lib/chunk-2WHGIJGU.js.map +1 -0
  28. package/lib/chunk-35ININM5.js +54 -0
  29. package/lib/chunk-35ININM5.js.map +1 -0
  30. package/lib/chunk-376W3RHK.js +27 -0
  31. package/lib/chunk-376W3RHK.js.map +1 -0
  32. package/lib/chunk-3DEA3IGY.cjs +47 -0
  33. package/lib/chunk-3DEA3IGY.cjs.map +1 -0
  34. package/lib/chunk-3MGWBMJ2.cjs +68 -0
  35. package/lib/chunk-3MGWBMJ2.cjs.map +1 -0
  36. package/lib/chunk-3P4FFWTQ.cjs +56 -0
  37. package/lib/chunk-3P4FFWTQ.cjs.map +1 -0
  38. package/lib/chunk-3U7MK4SX.js +68 -0
  39. package/lib/chunk-3U7MK4SX.js.map +1 -0
  40. package/lib/chunk-3VI355UT.cjs +62 -0
  41. package/lib/chunk-3VI355UT.cjs.map +1 -0
  42. package/lib/chunk-3VVT6CKA.cjs +70 -0
  43. package/lib/chunk-3VVT6CKA.cjs.map +1 -0
  44. package/lib/chunk-3XGAVG4L.cjs +34 -0
  45. package/lib/chunk-3XGAVG4L.cjs.map +1 -0
  46. package/lib/chunk-3XSYH6SE.cjs +38 -0
  47. package/lib/chunk-3XSYH6SE.cjs.map +1 -0
  48. package/lib/chunk-3YIYVGMM.cjs +42 -0
  49. package/lib/chunk-3YIYVGMM.cjs.map +1 -0
  50. package/lib/chunk-4474ZEVS.js +124 -0
  51. package/lib/chunk-4474ZEVS.js.map +1 -0
  52. package/lib/chunk-4BE3G6GK.js +51 -0
  53. package/lib/chunk-4BE3G6GK.js.map +1 -0
  54. package/lib/chunk-4CLAI7ZC.cjs +47 -0
  55. package/lib/chunk-4CLAI7ZC.cjs.map +1 -0
  56. package/lib/chunk-4FW3MLHR.js +53 -0
  57. package/lib/chunk-4FW3MLHR.js.map +1 -0
  58. package/lib/chunk-4LAL3DCH.cjs +55 -0
  59. package/lib/chunk-4LAL3DCH.cjs.map +1 -0
  60. package/lib/chunk-53GWR3UF.js +99 -0
  61. package/lib/chunk-53GWR3UF.js.map +1 -0
  62. package/lib/chunk-5JDGRW3K.cjs +47 -0
  63. package/lib/chunk-5JDGRW3K.cjs.map +1 -0
  64. package/lib/chunk-5QFBTA7C.cjs +61 -0
  65. package/lib/chunk-5QFBTA7C.cjs.map +1 -0
  66. package/lib/chunk-5UISCFSR.cjs +50 -0
  67. package/lib/chunk-5UISCFSR.cjs.map +1 -0
  68. package/lib/chunk-62GRSGIA.js +45 -0
  69. package/lib/chunk-62GRSGIA.js.map +1 -0
  70. package/lib/chunk-64ENQFIL.cjs +63 -0
  71. package/lib/chunk-64ENQFIL.cjs.map +1 -0
  72. package/lib/chunk-6CE3DQTO.js +53 -0
  73. package/lib/chunk-6CE3DQTO.js.map +1 -0
  74. package/lib/chunk-6KXZ76ZM.js +49 -0
  75. package/lib/chunk-6KXZ76ZM.js.map +1 -0
  76. package/lib/chunk-6OF4JUHR.js +45 -0
  77. package/lib/chunk-6OF4JUHR.js.map +1 -0
  78. package/lib/chunk-6P72FNDJ.js +53 -0
  79. package/lib/chunk-6P72FNDJ.js.map +1 -0
  80. package/lib/chunk-73YM5XTA.cjs +38 -0
  81. package/lib/chunk-73YM5XTA.cjs.map +1 -0
  82. package/lib/chunk-74WLCRAL.cjs +34 -0
  83. package/lib/chunk-74WLCRAL.cjs.map +1 -0
  84. package/lib/chunk-7E73FXEL.cjs +53 -0
  85. package/lib/chunk-7E73FXEL.cjs.map +1 -0
  86. package/lib/chunk-7GSZFUJV.cjs +59 -0
  87. package/lib/chunk-7GSZFUJV.cjs.map +1 -0
  88. package/lib/chunk-7OUZNR45.js +54 -0
  89. package/lib/chunk-7OUZNR45.js.map +1 -0
  90. package/lib/chunk-7TGNLLZ4.js +105 -0
  91. package/lib/chunk-7TGNLLZ4.js.map +1 -0
  92. package/lib/chunk-7TM7YEPY.js +89 -0
  93. package/lib/chunk-7TM7YEPY.js.map +1 -0
  94. package/lib/chunk-A2CJAI7L.js +24 -0
  95. package/lib/chunk-A2CJAI7L.js.map +1 -0
  96. package/lib/chunk-A6DVFU4I.cjs +46 -0
  97. package/lib/chunk-A6DVFU4I.cjs.map +1 -0
  98. package/lib/chunk-A7NVPT5R.cjs +55 -0
  99. package/lib/chunk-A7NVPT5R.cjs.map +1 -0
  100. package/lib/chunk-A7ZFL7GH.js +54 -0
  101. package/lib/chunk-A7ZFL7GH.js.map +1 -0
  102. package/lib/chunk-AINFK7XE.js +50 -0
  103. package/lib/chunk-AINFK7XE.js.map +1 -0
  104. package/lib/chunk-AORS3S6A.js +99 -0
  105. package/lib/chunk-AORS3S6A.js.map +1 -0
  106. package/lib/chunk-APVQZ7L7.js +48 -0
  107. package/lib/chunk-APVQZ7L7.js.map +1 -0
  108. package/lib/chunk-ATT2PKKW.cjs +95 -0
  109. package/lib/chunk-ATT2PKKW.cjs.map +1 -0
  110. package/lib/chunk-AW6TSK6S.cjs +42 -0
  111. package/lib/chunk-AW6TSK6S.cjs.map +1 -0
  112. package/lib/chunk-AYKGUDP3.cjs +285 -0
  113. package/lib/chunk-AYKGUDP3.cjs.map +1 -0
  114. package/lib/chunk-AYPMKIN6.js +51 -0
  115. package/lib/chunk-AYPMKIN6.js.map +1 -0
  116. package/lib/chunk-B2MBAQSE.js +41 -0
  117. package/lib/chunk-B2MBAQSE.js.map +1 -0
  118. package/lib/chunk-BB3CT6HZ.js +45 -0
  119. package/lib/chunk-BB3CT6HZ.js.map +1 -0
  120. package/lib/chunk-BHLODYAT.js +28 -0
  121. package/lib/chunk-BHLODYAT.js.map +1 -0
  122. package/lib/chunk-BLI75VEN.cjs +51 -0
  123. package/lib/chunk-BLI75VEN.cjs.map +1 -0
  124. package/lib/chunk-BMO7YKG5.js +60 -0
  125. package/lib/chunk-BMO7YKG5.js.map +1 -0
  126. package/lib/chunk-BMOWFIX5.js +45 -0
  127. package/lib/chunk-BMOWFIX5.js.map +1 -0
  128. package/lib/chunk-BNCF46ZI.js +61 -0
  129. package/lib/chunk-BNCF46ZI.js.map +1 -0
  130. package/lib/chunk-BSXJPL6J.cjs +55 -0
  131. package/lib/chunk-BSXJPL6J.cjs.map +1 -0
  132. package/lib/chunk-BVQ2UTRP.cjs +39 -0
  133. package/lib/chunk-BVQ2UTRP.cjs.map +1 -0
  134. package/lib/chunk-BYDZPVOJ.js +75 -0
  135. package/lib/chunk-BYDZPVOJ.js.map +1 -0
  136. package/lib/chunk-C3I7H3HE.js +49 -0
  137. package/lib/chunk-C3I7H3HE.js.map +1 -0
  138. package/lib/chunk-C3UX7IBG.cjs +59 -0
  139. package/lib/chunk-C3UX7IBG.cjs.map +1 -0
  140. package/lib/chunk-C7OXTOX3.js +36 -0
  141. package/lib/chunk-C7OXTOX3.js.map +1 -0
  142. package/lib/chunk-CB5HXUPC.js +31 -0
  143. package/lib/chunk-CB5HXUPC.js.map +1 -0
  144. package/lib/chunk-CBFT5GYL.js +103 -0
  145. package/lib/chunk-CBFT5GYL.js.map +1 -0
  146. package/lib/chunk-D3LM2KQW.cjs +47 -0
  147. package/lib/chunk-D3LM2KQW.cjs.map +1 -0
  148. package/lib/chunk-D3ZUNI32.js +67 -0
  149. package/lib/chunk-D3ZUNI32.js.map +1 -0
  150. package/lib/chunk-D6CUKQZS.cjs +55 -0
  151. package/lib/chunk-D6CUKQZS.cjs.map +1 -0
  152. package/lib/chunk-DCEUM6EI.cjs +30 -0
  153. package/lib/chunk-DCEUM6EI.cjs.map +1 -0
  154. package/lib/chunk-DDV3U4FY.js +48 -0
  155. package/lib/chunk-DDV3U4FY.js.map +1 -0
  156. package/lib/chunk-DEQMKHOP.js +40 -0
  157. package/lib/chunk-DEQMKHOP.js.map +1 -0
  158. package/lib/chunk-DVDWNVCT.cjs +49 -0
  159. package/lib/chunk-DVDWNVCT.cjs.map +1 -0
  160. package/lib/chunk-DZP3JVEB.js +45 -0
  161. package/lib/chunk-DZP3JVEB.js.map +1 -0
  162. package/lib/chunk-E6MUVI6C.cjs +51 -0
  163. package/lib/chunk-E6MUVI6C.cjs.map +1 -0
  164. package/lib/chunk-E7GTEUA7.js +49 -0
  165. package/lib/chunk-E7GTEUA7.js.map +1 -0
  166. package/lib/chunk-EHEMWPTO.js +102 -0
  167. package/lib/chunk-EHEMWPTO.js.map +1 -0
  168. package/lib/chunk-EINVA4BK.cjs +61 -0
  169. package/lib/chunk-EINVA4BK.cjs.map +1 -0
  170. package/lib/chunk-EK7QE2CA.cjs +47 -0
  171. package/lib/chunk-EK7QE2CA.cjs.map +1 -0
  172. package/lib/chunk-EMD66UZY.cjs +156 -0
  173. package/lib/chunk-EMD66UZY.cjs.map +1 -0
  174. package/lib/chunk-ESJGAJ3L.js +48 -0
  175. package/lib/chunk-ESJGAJ3L.js.map +1 -0
  176. package/lib/chunk-EVFHODWY.js +45 -0
  177. package/lib/chunk-EVFHODWY.js.map +1 -0
  178. package/lib/chunk-F5GFKBDK.cjs +95 -0
  179. package/lib/chunk-F5GFKBDK.cjs.map +1 -0
  180. package/lib/chunk-F6REPWKJ.cjs +77 -0
  181. package/lib/chunk-F6REPWKJ.cjs.map +1 -0
  182. package/lib/chunk-F7F4VRB2.js +45 -0
  183. package/lib/chunk-F7F4VRB2.js.map +1 -0
  184. package/lib/chunk-FDLALORX.cjs +47 -0
  185. package/lib/chunk-FDLALORX.cjs.map +1 -0
  186. package/lib/chunk-FDTEUCMP.cjs +26 -0
  187. package/lib/chunk-FDTEUCMP.cjs.map +1 -0
  188. package/lib/chunk-FIRCMJCB.js +93 -0
  189. package/lib/chunk-FIRCMJCB.js.map +1 -0
  190. package/lib/chunk-FK3XYZ3Q.js +45 -0
  191. package/lib/chunk-FK3XYZ3Q.js.map +1 -0
  192. package/lib/chunk-FLOVFVKA.cjs +51 -0
  193. package/lib/chunk-FLOVFVKA.cjs.map +1 -0
  194. package/lib/chunk-FMQ5JHN6.cjs +51 -0
  195. package/lib/chunk-FMQ5JHN6.cjs.map +1 -0
  196. package/lib/chunk-FNIFFIDD.cjs +39 -0
  197. package/lib/chunk-FNIFFIDD.cjs.map +1 -0
  198. package/lib/chunk-FON2463F.js +99 -0
  199. package/lib/chunk-FON2463F.js.map +1 -0
  200. package/lib/chunk-G4GV5S6R.js +283 -0
  201. package/lib/chunk-G4GV5S6R.js.map +1 -0
  202. package/lib/chunk-G6BY3EA3.cjs +51 -0
  203. package/lib/chunk-G6BY3EA3.cjs.map +1 -0
  204. package/lib/chunk-GB23LWF6.js +36 -0
  205. package/lib/chunk-GB23LWF6.js.map +1 -0
  206. package/lib/chunk-GBM34MD2.cjs +107 -0
  207. package/lib/chunk-GBM34MD2.cjs.map +1 -0
  208. package/lib/chunk-GDD5SAYK.js +36 -0
  209. package/lib/chunk-GDD5SAYK.js.map +1 -0
  210. package/lib/chunk-GDPBS2DA.js +154 -0
  211. package/lib/chunk-GDPBS2DA.js.map +1 -0
  212. package/lib/chunk-GHJDV7RE.js +59 -0
  213. package/lib/chunk-GHJDV7RE.js.map +1 -0
  214. package/lib/chunk-GVVAHJ7J.cjs +55 -0
  215. package/lib/chunk-GVVAHJ7J.cjs.map +1 -0
  216. package/lib/chunk-GYCMQIMO.cjs +550 -0
  217. package/lib/chunk-GYCMQIMO.cjs.map +1 -0
  218. package/lib/chunk-H35WD77K.js +49 -0
  219. package/lib/chunk-H35WD77K.js.map +1 -0
  220. package/lib/chunk-H4OZFLUI.js +37 -0
  221. package/lib/chunk-H4OZFLUI.js.map +1 -0
  222. package/lib/chunk-HAF3NSFM.js +93 -0
  223. package/lib/chunk-HAF3NSFM.js.map +1 -0
  224. package/lib/chunk-HBEFGWUI.cjs +49 -0
  225. package/lib/chunk-HBEFGWUI.cjs.map +1 -0
  226. package/lib/chunk-HCK6NM5P.cjs +47 -0
  227. package/lib/chunk-HCK6NM5P.cjs.map +1 -0
  228. package/lib/chunk-HE4KWG6X.js +55 -0
  229. package/lib/chunk-HE4KWG6X.js.map +1 -0
  230. package/lib/chunk-HG36VCO5.js +28 -0
  231. package/lib/chunk-HG36VCO5.js.map +1 -0
  232. package/lib/chunk-HHOMPSSL.js +91 -0
  233. package/lib/chunk-HHOMPSSL.js.map +1 -0
  234. package/lib/chunk-HK6PGHU6.js +57 -0
  235. package/lib/chunk-HK6PGHU6.js.map +1 -0
  236. package/lib/chunk-HLI7KDN3.js +45 -0
  237. package/lib/chunk-HLI7KDN3.js.map +1 -0
  238. package/lib/chunk-HOQPWW7K.js +40 -0
  239. package/lib/chunk-HOQPWW7K.js.map +1 -0
  240. package/lib/chunk-HP6ZFYAJ.js +37 -0
  241. package/lib/chunk-HP6ZFYAJ.js.map +1 -0
  242. package/lib/chunk-HQZKODMU.js +57 -0
  243. package/lib/chunk-HQZKODMU.js.map +1 -0
  244. package/lib/chunk-HYO7YG3G.js +45 -0
  245. package/lib/chunk-HYO7YG3G.js.map +1 -0
  246. package/lib/chunk-HZ555CAY.js +48 -0
  247. package/lib/chunk-HZ555CAY.js.map +1 -0
  248. package/lib/chunk-IANMFIQD.js +45 -0
  249. package/lib/chunk-IANMFIQD.js.map +1 -0
  250. package/lib/chunk-IBXRFMT6.js +69 -0
  251. package/lib/chunk-IBXRFMT6.js.map +1 -0
  252. package/lib/chunk-IIWTNBRQ.cjs +50 -0
  253. package/lib/chunk-IIWTNBRQ.cjs.map +1 -0
  254. package/lib/chunk-IWC4U5GF.js +49 -0
  255. package/lib/chunk-IWC4U5GF.js.map +1 -0
  256. package/lib/chunk-IXLAN7TH.cjs +61 -0
  257. package/lib/chunk-IXLAN7TH.cjs.map +1 -0
  258. package/lib/chunk-JDAGKW5W.js +44 -0
  259. package/lib/chunk-JDAGKW5W.js.map +1 -0
  260. package/lib/chunk-JEWF32HM.js +41 -0
  261. package/lib/chunk-JEWF32HM.js.map +1 -0
  262. package/lib/chunk-JKO7QP65.cjs +93 -0
  263. package/lib/chunk-JKO7QP65.cjs.map +1 -0
  264. package/lib/chunk-JLC6MA4J.js +65 -0
  265. package/lib/chunk-JLC6MA4J.js.map +1 -0
  266. package/lib/chunk-JNXHE7P7.cjs +42 -0
  267. package/lib/chunk-JNXHE7P7.cjs.map +1 -0
  268. package/lib/chunk-JRMNMJVD.js +61 -0
  269. package/lib/chunk-JRMNMJVD.js.map +1 -0
  270. package/lib/chunk-JRUC5BXS.cjs +42 -0
  271. package/lib/chunk-JRUC5BXS.cjs.map +1 -0
  272. package/lib/chunk-JWPPED4R.js +47 -0
  273. package/lib/chunk-JWPPED4R.js.map +1 -0
  274. package/lib/chunk-K577VLOE.js +45 -0
  275. package/lib/chunk-K577VLOE.js.map +1 -0
  276. package/lib/chunk-K5YQI6TW.cjs +47 -0
  277. package/lib/chunk-K5YQI6TW.cjs.map +1 -0
  278. package/lib/chunk-KAMFWXPM.cjs +51 -0
  279. package/lib/chunk-KAMFWXPM.cjs.map +1 -0
  280. package/lib/chunk-KKB2YNT3.cjs +100 -0
  281. package/lib/chunk-KKB2YNT3.cjs.map +1 -0
  282. package/lib/chunk-KLPFAEV7.js +55 -0
  283. package/lib/chunk-KLPFAEV7.js.map +1 -0
  284. package/lib/chunk-KR3CTO6J.js +53 -0
  285. package/lib/chunk-KR3CTO6J.js.map +1 -0
  286. package/lib/chunk-KU43R6UR.js +49 -0
  287. package/lib/chunk-KU43R6UR.js.map +1 -0
  288. package/lib/chunk-L25AS3VU.cjs +61 -0
  289. package/lib/chunk-L25AS3VU.cjs.map +1 -0
  290. package/lib/chunk-L3ZQAILV.js +45 -0
  291. package/lib/chunk-L3ZQAILV.js.map +1 -0
  292. package/lib/chunk-LFPSATJW.js +40 -0
  293. package/lib/chunk-LFPSATJW.js.map +1 -0
  294. package/lib/chunk-LGYQGCME.cjs +61 -0
  295. package/lib/chunk-LGYQGCME.cjs.map +1 -0
  296. package/lib/chunk-LIWSHAZ4.cjs +43 -0
  297. package/lib/chunk-LIWSHAZ4.cjs.map +1 -0
  298. package/lib/chunk-LPHKPEHK.cjs +69 -0
  299. package/lib/chunk-LPHKPEHK.cjs.map +1 -0
  300. package/lib/chunk-LSWGTCTI.js +59 -0
  301. package/lib/chunk-LSWGTCTI.js.map +1 -0
  302. package/lib/chunk-LXVXNCLG.cjs +71 -0
  303. package/lib/chunk-LXVXNCLG.cjs.map +1 -0
  304. package/lib/chunk-M377L2KC.cjs +59 -0
  305. package/lib/chunk-M377L2KC.cjs.map +1 -0
  306. package/lib/chunk-MEN4RRXP.js +41 -0
  307. package/lib/chunk-MEN4RRXP.js.map +1 -0
  308. package/lib/chunk-MEZO63WH.js +49 -0
  309. package/lib/chunk-MEZO63WH.js.map +1 -0
  310. package/lib/chunk-ML4B3K2M.cjs +126 -0
  311. package/lib/chunk-ML4B3K2M.cjs.map +1 -0
  312. package/lib/chunk-NFJG6NQJ.cjs +57 -0
  313. package/lib/chunk-NFJG6NQJ.cjs.map +1 -0
  314. package/lib/chunk-NKXOTCMF.js +42 -0
  315. package/lib/chunk-NKXOTCMF.js.map +1 -0
  316. package/lib/chunk-NQW3T4PY.js +40 -0
  317. package/lib/chunk-NQW3T4PY.js.map +1 -0
  318. package/lib/chunk-NSLBPISG.cjs +51 -0
  319. package/lib/chunk-NSLBPISG.cjs.map +1 -0
  320. package/lib/chunk-NTPA4Q5S.js +40 -0
  321. package/lib/chunk-NTPA4Q5S.js.map +1 -0
  322. package/lib/chunk-NW4PT4NA.cjs +75 -0
  323. package/lib/chunk-NW4PT4NA.cjs.map +1 -0
  324. package/lib/chunk-NWDZHCQQ.cjs +50 -0
  325. package/lib/chunk-NWDZHCQQ.cjs.map +1 -0
  326. package/lib/chunk-O3GDTCML.cjs +101 -0
  327. package/lib/chunk-O3GDTCML.cjs.map +1 -0
  328. package/lib/chunk-O5452XSG.js +41 -0
  329. package/lib/chunk-O5452XSG.js.map +1 -0
  330. package/lib/chunk-OE4JCN6L.cjs +47 -0
  331. package/lib/chunk-OE4JCN6L.cjs.map +1 -0
  332. package/lib/chunk-OESVAYOY.cjs +44 -0
  333. package/lib/chunk-OESVAYOY.cjs.map +1 -0
  334. package/lib/chunk-OFXYCDYF.js +44 -0
  335. package/lib/chunk-OFXYCDYF.js.map +1 -0
  336. package/lib/chunk-ONK4A4VG.js +49 -0
  337. package/lib/chunk-ONK4A4VG.js.map +1 -0
  338. package/lib/chunk-OOJKRV4I.js +93 -0
  339. package/lib/chunk-OOJKRV4I.js.map +1 -0
  340. package/lib/chunk-OXGE4UIS.cjs +51 -0
  341. package/lib/chunk-OXGE4UIS.cjs.map +1 -0
  342. package/lib/chunk-P2SHNYXZ.cjs +47 -0
  343. package/lib/chunk-P2SHNYXZ.cjs.map +1 -0
  344. package/lib/chunk-P3SFKEXE.js +37 -0
  345. package/lib/chunk-P3SFKEXE.js.map +1 -0
  346. package/lib/chunk-P7TCVHNF.cjs +56 -0
  347. package/lib/chunk-P7TCVHNF.cjs.map +1 -0
  348. package/lib/chunk-PE4GN5GN.cjs +39 -0
  349. package/lib/chunk-PE4GN5GN.cjs.map +1 -0
  350. package/lib/chunk-PERRXGB6.js +52 -0
  351. package/lib/chunk-PERRXGB6.js.map +1 -0
  352. package/lib/chunk-PHTOGAMR.js +93 -0
  353. package/lib/chunk-PHTOGAMR.js.map +1 -0
  354. package/lib/chunk-PKRD2QKS.js +51 -0
  355. package/lib/chunk-PKRD2QKS.js.map +1 -0
  356. package/lib/chunk-PLWDHUYW.cjs +95 -0
  357. package/lib/chunk-PLWDHUYW.cjs.map +1 -0
  358. package/lib/chunk-PX5VMNOJ.cjs +39 -0
  359. package/lib/chunk-PX5VMNOJ.cjs.map +1 -0
  360. package/lib/chunk-PYJG4KKQ.js +49 -0
  361. package/lib/chunk-PYJG4KKQ.js.map +1 -0
  362. package/lib/chunk-Q3NXEKVS.cjs +51 -0
  363. package/lib/chunk-Q3NXEKVS.cjs.map +1 -0
  364. package/lib/chunk-Q3QW53MA.js +53 -0
  365. package/lib/chunk-Q3QW53MA.js.map +1 -0
  366. package/lib/chunk-QIL2RRUJ.cjs +54 -0
  367. package/lib/chunk-QIL2RRUJ.cjs.map +1 -0
  368. package/lib/chunk-QQU5KYKX.cjs +33 -0
  369. package/lib/chunk-QQU5KYKX.cjs.map +1 -0
  370. package/lib/chunk-QQZRPK6S.js +536 -0
  371. package/lib/chunk-QQZRPK6S.js.map +1 -0
  372. package/lib/chunk-QTXR3MOC.cjs +51 -0
  373. package/lib/chunk-QTXR3MOC.cjs.map +1 -0
  374. package/lib/chunk-QURTUQAU.cjs +43 -0
  375. package/lib/chunk-QURTUQAU.cjs.map +1 -0
  376. package/lib/chunk-QVFORRXP.cjs +51 -0
  377. package/lib/chunk-QVFORRXP.cjs.map +1 -0
  378. package/lib/chunk-QWW2P4EV.js +68 -0
  379. package/lib/chunk-QWW2P4EV.js.map +1 -0
  380. package/lib/chunk-R5RAVJU6.cjs +53 -0
  381. package/lib/chunk-R5RAVJU6.cjs.map +1 -0
  382. package/lib/chunk-R7ZZCZYK.cjs +55 -0
  383. package/lib/chunk-R7ZZCZYK.cjs.map +1 -0
  384. package/lib/chunk-REV57I2G.cjs +56 -0
  385. package/lib/chunk-REV57I2G.cjs.map +1 -0
  386. package/lib/chunk-RG2NWGVK.cjs +101 -0
  387. package/lib/chunk-RG2NWGVK.cjs.map +1 -0
  388. package/lib/chunk-RKP2R57M.js +48 -0
  389. package/lib/chunk-RKP2R57M.js.map +1 -0
  390. package/lib/chunk-RLR77QCI.cjs +70 -0
  391. package/lib/chunk-RLR77QCI.cjs.map +1 -0
  392. package/lib/chunk-RMNQWTPJ.cjs +54 -0
  393. package/lib/chunk-RMNQWTPJ.cjs.map +1 -0
  394. package/lib/chunk-ROXM5D5R.cjs +50 -0
  395. package/lib/chunk-ROXM5D5R.cjs.map +1 -0
  396. package/lib/chunk-RQ2EM4Q3.cjs +56 -0
  397. package/lib/chunk-RQ2EM4Q3.cjs.map +1 -0
  398. package/lib/chunk-RSLLFTPW.js +49 -0
  399. package/lib/chunk-RSLLFTPW.js.map +1 -0
  400. package/lib/chunk-S2BT3STJ.js +32 -0
  401. package/lib/chunk-S2BT3STJ.js.map +1 -0
  402. package/lib/chunk-S5DFPL4R.cjs +91 -0
  403. package/lib/chunk-S5DFPL4R.cjs.map +1 -0
  404. package/lib/chunk-S7RDGMD4.cjs +55 -0
  405. package/lib/chunk-S7RDGMD4.cjs.map +1 -0
  406. package/lib/chunk-SEHGRWGG.js +66 -0
  407. package/lib/chunk-SEHGRWGG.js.map +1 -0
  408. package/lib/chunk-SFMVCOGC.cjs +47 -0
  409. package/lib/chunk-SFMVCOGC.cjs.map +1 -0
  410. package/lib/chunk-SP4HOXSO.js +45 -0
  411. package/lib/chunk-SP4HOXSO.js.map +1 -0
  412. package/lib/chunk-TDLRTDXU.cjs +89 -0
  413. package/lib/chunk-TDLRTDXU.cjs.map +1 -0
  414. package/lib/chunk-TFCFXW7O.cjs +101 -0
  415. package/lib/chunk-TFCFXW7O.cjs.map +1 -0
  416. package/lib/chunk-TGFLFIXT.cjs +47 -0
  417. package/lib/chunk-TGFLFIXT.cjs.map +1 -0
  418. package/lib/chunk-TKDL7G4N.cjs +53 -0
  419. package/lib/chunk-TKDL7G4N.cjs.map +1 -0
  420. package/lib/chunk-TKZJTEON.cjs +57 -0
  421. package/lib/chunk-TKZJTEON.cjs.map +1 -0
  422. package/lib/chunk-TLYGE3RY.cjs +38 -0
  423. package/lib/chunk-TLYGE3RY.cjs.map +1 -0
  424. package/lib/chunk-TORNEVKC.js +32 -0
  425. package/lib/chunk-TORNEVKC.js.map +1 -0
  426. package/lib/chunk-TTE2YUFU.js +54 -0
  427. package/lib/chunk-TTE2YUFU.js.map +1 -0
  428. package/lib/chunk-TUANHZ5V.cjs +56 -0
  429. package/lib/chunk-TUANHZ5V.cjs.map +1 -0
  430. package/lib/chunk-TXH5CJLS.cjs +49 -0
  431. package/lib/chunk-TXH5CJLS.cjs.map +1 -0
  432. package/lib/chunk-TZ3RWTTE.cjs +51 -0
  433. package/lib/chunk-TZ3RWTTE.cjs.map +1 -0
  434. package/lib/chunk-UAYQ3LTT.cjs +43 -0
  435. package/lib/chunk-UAYQ3LTT.cjs.map +1 -0
  436. package/lib/chunk-UP7FMESP.js +55 -0
  437. package/lib/chunk-UP7FMESP.js.map +1 -0
  438. package/lib/chunk-URD6KUKM.js +49 -0
  439. package/lib/chunk-URD6KUKM.js.map +1 -0
  440. package/lib/chunk-USIBTSYD.js +276 -0
  441. package/lib/chunk-USIBTSYD.js.map +1 -0
  442. package/lib/chunk-V5S4O57M.js +45 -0
  443. package/lib/chunk-V5S4O57M.js.map +1 -0
  444. package/lib/chunk-VAZIDWSC.js +87 -0
  445. package/lib/chunk-VAZIDWSC.js.map +1 -0
  446. package/lib/chunk-VEPFANF7.js +53 -0
  447. package/lib/chunk-VEPFANF7.js.map +1 -0
  448. package/lib/chunk-VII4ZVM7.cjs +42 -0
  449. package/lib/chunk-VII4ZVM7.cjs.map +1 -0
  450. package/lib/chunk-VMKHXGVC.js +73 -0
  451. package/lib/chunk-VMKHXGVC.js.map +1 -0
  452. package/lib/chunk-VODDUQ3X.js +49 -0
  453. package/lib/chunk-VODDUQ3X.js.map +1 -0
  454. package/lib/chunk-VVY3GX6X.cjs +56 -0
  455. package/lib/chunk-VVY3GX6X.cjs.map +1 -0
  456. package/lib/chunk-WCZEGCEC.js +37 -0
  457. package/lib/chunk-WCZEGCEC.js.map +1 -0
  458. package/lib/chunk-WHLOYOJC.cjs +107 -0
  459. package/lib/chunk-WHLOYOJC.cjs.map +1 -0
  460. package/lib/chunk-WOZH2ZEF.js +51 -0
  461. package/lib/chunk-WOZH2ZEF.js.map +1 -0
  462. package/lib/chunk-WQICC32S.js +59 -0
  463. package/lib/chunk-WQICC32S.js.map +1 -0
  464. package/lib/chunk-WQLPOO4N.js +45 -0
  465. package/lib/chunk-WQLPOO4N.js.map +1 -0
  466. package/lib/chunk-WQOB2KER.js +37 -0
  467. package/lib/chunk-WQOB2KER.js.map +1 -0
  468. package/lib/chunk-WQSPNJNP.cjs +63 -0
  469. package/lib/chunk-WQSPNJNP.cjs.map +1 -0
  470. package/lib/chunk-WUI2XWKI.cjs +47 -0
  471. package/lib/chunk-WUI2XWKI.cjs.map +1 -0
  472. package/lib/chunk-WW7C4RZJ.js +59 -0
  473. package/lib/chunk-WW7C4RZJ.js.map +1 -0
  474. package/lib/chunk-WYUB5WZL.js +98 -0
  475. package/lib/chunk-WYUB5WZL.js.map +1 -0
  476. package/lib/chunk-WZV2V6IT.cjs +39 -0
  477. package/lib/chunk-WZV2V6IT.cjs.map +1 -0
  478. package/lib/chunk-X5V7ZUU7.js +49 -0
  479. package/lib/chunk-X5V7ZUU7.js.map +1 -0
  480. package/lib/chunk-X6RCAGFS.cjs +67 -0
  481. package/lib/chunk-X6RCAGFS.cjs.map +1 -0
  482. package/lib/chunk-XBXDURPZ.js +93 -0
  483. package/lib/chunk-XBXDURPZ.js.map +1 -0
  484. package/lib/chunk-XEAHROOE.cjs +95 -0
  485. package/lib/chunk-XEAHROOE.cjs.map +1 -0
  486. package/lib/chunk-XEPHQGPG.cjs +57 -0
  487. package/lib/chunk-XEPHQGPG.cjs.map +1 -0
  488. package/lib/chunk-XI6YNNGF.js +52 -0
  489. package/lib/chunk-XI6YNNGF.js.map +1 -0
  490. package/lib/chunk-XJ5QSB4X.js +45 -0
  491. package/lib/chunk-XJ5QSB4X.js.map +1 -0
  492. package/lib/chunk-XJHXJ2X2.js +47 -0
  493. package/lib/chunk-XJHXJ2X2.js.map +1 -0
  494. package/lib/chunk-XJP7O6DK.cjs +53 -0
  495. package/lib/chunk-XJP7O6DK.cjs.map +1 -0
  496. package/lib/chunk-XJUQEJMI.js +40 -0
  497. package/lib/chunk-XJUQEJMI.js.map +1 -0
  498. package/lib/chunk-XMRYT2R6.cjs +29 -0
  499. package/lib/chunk-XMRYT2R6.cjs.map +1 -0
  500. package/lib/chunk-XMWIRROB.cjs +43 -0
  501. package/lib/chunk-XMWIRROB.cjs.map +1 -0
  502. package/lib/chunk-XP4BWHD3.cjs +47 -0
  503. package/lib/chunk-XP4BWHD3.cjs.map +1 -0
  504. package/lib/chunk-XVLKPTNO.cjs +68 -0
  505. package/lib/chunk-XVLKPTNO.cjs.map +1 -0
  506. package/lib/chunk-XZB5NHLE.cjs +42 -0
  507. package/lib/chunk-XZB5NHLE.cjs.map +1 -0
  508. package/lib/chunk-Y56DKJ4Z.cjs +284 -0
  509. package/lib/chunk-Y56DKJ4Z.cjs.map +1 -0
  510. package/lib/chunk-Y5HM4EFJ.js +54 -0
  511. package/lib/chunk-Y5HM4EFJ.js.map +1 -0
  512. package/lib/chunk-Y7NYGZPZ.cjs +95 -0
  513. package/lib/chunk-Y7NYGZPZ.cjs.map +1 -0
  514. package/lib/chunk-Y7W5KVDM.cjs +105 -0
  515. package/lib/chunk-Y7W5KVDM.cjs.map +1 -0
  516. package/lib/chunk-YADXOWEP.cjs +51 -0
  517. package/lib/chunk-YADXOWEP.cjs.map +1 -0
  518. package/lib/chunk-YAVBHKRL.js +49 -0
  519. package/lib/chunk-YAVBHKRL.js.map +1 -0
  520. package/lib/chunk-YBHKXAWG.js +66 -0
  521. package/lib/chunk-YBHKXAWG.js.map +1 -0
  522. package/lib/chunk-YEFSXXFU.cjs +52 -0
  523. package/lib/chunk-YEFSXXFU.cjs.map +1 -0
  524. package/lib/chunk-YJ5ZKAK5.cjs +42 -0
  525. package/lib/chunk-YJ5ZKAK5.cjs.map +1 -0
  526. package/lib/chunk-YJTJJDRF.cjs +46 -0
  527. package/lib/chunk-YJTJJDRF.cjs.map +1 -0
  528. package/lib/chunk-YNVTCQEO.js +54 -0
  529. package/lib/chunk-YNVTCQEO.js.map +1 -0
  530. package/lib/chunk-YQNDMEVM.cjs +50 -0
  531. package/lib/chunk-YQNDMEVM.cjs.map +1 -0
  532. package/lib/chunk-YW5OSIBL.cjs +30 -0
  533. package/lib/chunk-YW5OSIBL.cjs.map +1 -0
  534. package/lib/chunk-YYJATDDO.js +47 -0
  535. package/lib/chunk-YYJATDDO.js.map +1 -0
  536. package/lib/chunk-Z22N4HZK.cjs +47 -0
  537. package/lib/chunk-Z22N4HZK.cjs.map +1 -0
  538. package/lib/chunk-ZADQ5IPG.js +59 -0
  539. package/lib/chunk-ZADQ5IPG.js.map +1 -0
  540. package/lib/chunk-ZAFMNQT3.cjs +75 -0
  541. package/lib/chunk-ZAFMNQT3.cjs.map +1 -0
  542. package/lib/chunk-ZCPDCC6N.js +40 -0
  543. package/lib/chunk-ZCPDCC6N.js.map +1 -0
  544. package/lib/chunk-ZFKOVGKA.js +73 -0
  545. package/lib/chunk-ZFKOVGKA.js.map +1 -0
  546. package/lib/chunk-ZGM7TVRO.cjs +51 -0
  547. package/lib/chunk-ZGM7TVRO.cjs.map +1 -0
  548. package/lib/chunk-ZJGCKI5T.cjs +47 -0
  549. package/lib/chunk-ZJGCKI5T.cjs.map +1 -0
  550. package/lib/chunk-ZK6DZMC3.cjs +47 -0
  551. package/lib/chunk-ZK6DZMC3.cjs.map +1 -0
  552. package/lib/chunk-ZZ6FBYJX.cjs +39 -0
  553. package/lib/chunk-ZZ6FBYJX.cjs.map +1 -0
  554. package/lib/client.d.cts +1 -1
  555. package/lib/client.d.ts +1 -1
  556. package/lib/commercelayer.cjs +10 -10
  557. package/lib/commercelayer.d.cts +5 -5
  558. package/lib/commercelayer.d.ts +5 -5
  559. package/lib/commercelayer.js +3 -3
  560. package/lib/config.d.cts +1 -1
  561. package/lib/config.d.ts +1 -1
  562. package/lib/enum.cjs +14 -14
  563. package/lib/enum.d.cts +2 -2
  564. package/lib/enum.d.ts +2 -2
  565. package/lib/enum.js +1 -1
  566. package/lib/fetch-B8-kP4X0.d.cts +55 -0
  567. package/lib/fetch-B8-kP4X0.d.ts +55 -0
  568. package/lib/fetch.d.cts +1 -1
  569. package/lib/fetch.d.ts +1 -1
  570. package/lib/index.cjs +269 -269
  571. package/lib/index.d.cts +2 -2
  572. package/lib/index.d.ts +2 -2
  573. package/lib/index.js +135 -135
  574. package/lib/interceptor.d.cts +1 -1
  575. package/lib/interceptor.d.ts +1 -1
  576. package/lib/jsonapi.cjs +4 -4
  577. package/lib/jsonapi.d.cts +2 -2
  578. package/lib/jsonapi.d.ts +2 -2
  579. package/lib/jsonapi.js +2 -2
  580. package/lib/model.d.cts +2 -2
  581. package/lib/model.d.ts +2 -2
  582. package/lib/query.d.cts +2 -2
  583. package/lib/query.d.ts +2 -2
  584. package/lib/resource.cjs +7 -7
  585. package/lib/resource.d.cts +2 -2
  586. package/lib/resource.d.ts +2 -2
  587. package/lib/resource.js +2 -2
  588. package/lib/resources/addresses.cjs +4 -4
  589. package/lib/resources/addresses.d.cts +3 -3
  590. package/lib/resources/addresses.d.ts +2 -2
  591. package/lib/resources/addresses.js +3 -3
  592. package/lib/resources/adjustments.cjs +4 -4
  593. package/lib/resources/adjustments.d.cts +3 -3
  594. package/lib/resources/adjustments.d.ts +2 -2
  595. package/lib/resources/adjustments.js +3 -3
  596. package/lib/resources/adyen_gateways.cjs +4 -4
  597. package/lib/resources/adyen_gateways.d.cts +3 -3
  598. package/lib/resources/adyen_gateways.d.ts +2 -2
  599. package/lib/resources/adyen_gateways.js +3 -3
  600. package/lib/resources/adyen_payments.cjs +4 -4
  601. package/lib/resources/adyen_payments.d.cts +3 -3
  602. package/lib/resources/adyen_payments.d.ts +2 -2
  603. package/lib/resources/adyen_payments.js +3 -3
  604. package/lib/resources/applications.cjs +4 -4
  605. package/lib/resources/applications.d.cts +3 -3
  606. package/lib/resources/applications.d.ts +2 -2
  607. package/lib/resources/applications.js +3 -3
  608. package/lib/resources/attachments.cjs +4 -4
  609. package/lib/resources/attachments.d.cts +3 -3
  610. package/lib/resources/attachments.d.ts +2 -2
  611. package/lib/resources/attachments.js +3 -3
  612. package/lib/resources/authorizations.cjs +4 -4
  613. package/lib/resources/authorizations.d.cts +3 -3
  614. package/lib/resources/authorizations.d.ts +2 -2
  615. package/lib/resources/authorizations.js +3 -3
  616. package/lib/resources/avalara_accounts.cjs +4 -4
  617. package/lib/resources/avalara_accounts.d.cts +3 -3
  618. package/lib/resources/avalara_accounts.d.ts +2 -2
  619. package/lib/resources/avalara_accounts.js +3 -3
  620. package/lib/resources/axerve_gateways.cjs +4 -4
  621. package/lib/resources/axerve_gateways.d.cts +3 -3
  622. package/lib/resources/axerve_gateways.d.ts +2 -2
  623. package/lib/resources/axerve_gateways.js +3 -3
  624. package/lib/resources/axerve_payments.cjs +4 -4
  625. package/lib/resources/axerve_payments.d.cts +3 -3
  626. package/lib/resources/axerve_payments.d.ts +2 -2
  627. package/lib/resources/axerve_payments.js +3 -3
  628. package/lib/resources/bing_geocoders.cjs +4 -4
  629. package/lib/resources/bing_geocoders.d.cts +3 -3
  630. package/lib/resources/bing_geocoders.d.ts +2 -2
  631. package/lib/resources/bing_geocoders.js +3 -3
  632. package/lib/resources/braintree_gateways.cjs +4 -4
  633. package/lib/resources/braintree_gateways.d.cts +3 -3
  634. package/lib/resources/braintree_gateways.d.ts +2 -2
  635. package/lib/resources/braintree_gateways.js +3 -3
  636. package/lib/resources/braintree_payments.cjs +4 -4
  637. package/lib/resources/braintree_payments.d.cts +3 -3
  638. package/lib/resources/braintree_payments.d.ts +2 -2
  639. package/lib/resources/braintree_payments.js +3 -3
  640. package/lib/resources/bundles.cjs +4 -4
  641. package/lib/resources/bundles.d.cts +3 -3
  642. package/lib/resources/bundles.d.ts +2 -2
  643. package/lib/resources/bundles.js +3 -3
  644. package/lib/resources/buy_x_pay_y_promotions.cjs +4 -4
  645. package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
  646. package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
  647. package/lib/resources/buy_x_pay_y_promotions.js +3 -3
  648. package/lib/resources/captures.cjs +4 -4
  649. package/lib/resources/captures.d.cts +3 -3
  650. package/lib/resources/captures.d.ts +2 -2
  651. package/lib/resources/captures.js +3 -3
  652. package/lib/resources/carrier_accounts.cjs +4 -4
  653. package/lib/resources/carrier_accounts.d.cts +3 -3
  654. package/lib/resources/carrier_accounts.d.ts +2 -2
  655. package/lib/resources/carrier_accounts.js +3 -3
  656. package/lib/resources/checkout_com_gateways.cjs +4 -4
  657. package/lib/resources/checkout_com_gateways.d.cts +3 -3
  658. package/lib/resources/checkout_com_gateways.d.ts +2 -2
  659. package/lib/resources/checkout_com_gateways.js +3 -3
  660. package/lib/resources/checkout_com_payments.cjs +4 -4
  661. package/lib/resources/checkout_com_payments.d.cts +3 -3
  662. package/lib/resources/checkout_com_payments.d.ts +2 -2
  663. package/lib/resources/checkout_com_payments.js +3 -3
  664. package/lib/resources/cleanups.cjs +4 -4
  665. package/lib/resources/cleanups.d.cts +3 -3
  666. package/lib/resources/cleanups.d.ts +2 -2
  667. package/lib/resources/cleanups.js +3 -3
  668. package/lib/resources/coupon_codes_promotion_rules.cjs +4 -4
  669. package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
  670. package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
  671. package/lib/resources/coupon_codes_promotion_rules.js +3 -3
  672. package/lib/resources/coupon_recipients.cjs +4 -4
  673. package/lib/resources/coupon_recipients.d.cts +3 -3
  674. package/lib/resources/coupon_recipients.d.ts +2 -2
  675. package/lib/resources/coupon_recipients.js +3 -3
  676. package/lib/resources/coupons.cjs +4 -4
  677. package/lib/resources/coupons.d.cts +3 -3
  678. package/lib/resources/coupons.d.ts +2 -2
  679. package/lib/resources/coupons.js +3 -3
  680. package/lib/resources/custom_promotion_rules.cjs +4 -4
  681. package/lib/resources/custom_promotion_rules.d.cts +3 -3
  682. package/lib/resources/custom_promotion_rules.d.ts +2 -2
  683. package/lib/resources/custom_promotion_rules.js +3 -3
  684. package/lib/resources/customer_addresses.cjs +4 -4
  685. package/lib/resources/customer_addresses.d.cts +3 -3
  686. package/lib/resources/customer_addresses.d.ts +2 -2
  687. package/lib/resources/customer_addresses.js +3 -3
  688. package/lib/resources/customer_groups.cjs +4 -4
  689. package/lib/resources/customer_groups.d.cts +3 -3
  690. package/lib/resources/customer_groups.d.ts +2 -2
  691. package/lib/resources/customer_groups.js +3 -3
  692. package/lib/resources/customer_password_resets.cjs +4 -4
  693. package/lib/resources/customer_password_resets.d.cts +3 -3
  694. package/lib/resources/customer_password_resets.d.ts +2 -2
  695. package/lib/resources/customer_password_resets.js +3 -3
  696. package/lib/resources/customer_payment_sources.cjs +4 -4
  697. package/lib/resources/customer_payment_sources.d.cts +3 -3
  698. package/lib/resources/customer_payment_sources.d.ts +2 -2
  699. package/lib/resources/customer_payment_sources.js +3 -3
  700. package/lib/resources/customer_subscriptions.cjs +4 -4
  701. package/lib/resources/customer_subscriptions.d.cts +3 -3
  702. package/lib/resources/customer_subscriptions.d.ts +2 -2
  703. package/lib/resources/customer_subscriptions.js +3 -3
  704. package/lib/resources/customers.cjs +4 -4
  705. package/lib/resources/customers.d.cts +3 -3
  706. package/lib/resources/customers.d.ts +2 -2
  707. package/lib/resources/customers.js +3 -3
  708. package/lib/resources/delivery_lead_times.cjs +4 -4
  709. package/lib/resources/delivery_lead_times.d.cts +3 -3
  710. package/lib/resources/delivery_lead_times.d.ts +2 -2
  711. package/lib/resources/delivery_lead_times.js +3 -3
  712. package/lib/resources/discount_engine_items.cjs +4 -4
  713. package/lib/resources/discount_engine_items.d.cts +3 -3
  714. package/lib/resources/discount_engine_items.d.ts +2 -2
  715. package/lib/resources/discount_engine_items.js +3 -3
  716. package/lib/resources/discount_engines.cjs +4 -4
  717. package/lib/resources/discount_engines.d.cts +3 -3
  718. package/lib/resources/discount_engines.d.ts +2 -2
  719. package/lib/resources/discount_engines.js +3 -3
  720. package/lib/resources/easypost_pickups.cjs +4 -4
  721. package/lib/resources/easypost_pickups.d.cts +3 -3
  722. package/lib/resources/easypost_pickups.d.ts +2 -2
  723. package/lib/resources/easypost_pickups.js +3 -3
  724. package/lib/resources/event_callbacks.cjs +4 -4
  725. package/lib/resources/event_callbacks.d.cts +3 -3
  726. package/lib/resources/event_callbacks.d.ts +2 -2
  727. package/lib/resources/event_callbacks.js +3 -3
  728. package/lib/resources/event_stores.cjs +4 -4
  729. package/lib/resources/event_stores.d.cts +3 -3
  730. package/lib/resources/event_stores.d.ts +2 -2
  731. package/lib/resources/event_stores.js +3 -3
  732. package/lib/resources/events.cjs +4 -4
  733. package/lib/resources/events.d.cts +3 -3
  734. package/lib/resources/events.d.ts +2 -2
  735. package/lib/resources/events.js +3 -3
  736. package/lib/resources/exports.cjs +4 -4
  737. package/lib/resources/exports.d.cts +3 -3
  738. package/lib/resources/exports.d.ts +2 -2
  739. package/lib/resources/exports.js +3 -3
  740. package/lib/resources/external_gateways.cjs +4 -4
  741. package/lib/resources/external_gateways.d.cts +3 -3
  742. package/lib/resources/external_gateways.d.ts +2 -2
  743. package/lib/resources/external_gateways.js +3 -3
  744. package/lib/resources/external_payments.cjs +4 -4
  745. package/lib/resources/external_payments.d.cts +3 -3
  746. package/lib/resources/external_payments.d.ts +2 -2
  747. package/lib/resources/external_payments.js +3 -3
  748. package/lib/resources/external_promotions.cjs +4 -4
  749. package/lib/resources/external_promotions.d.cts +3 -3
  750. package/lib/resources/external_promotions.d.ts +2 -2
  751. package/lib/resources/external_promotions.js +3 -3
  752. package/lib/resources/external_tax_calculators.cjs +4 -4
  753. package/lib/resources/external_tax_calculators.d.cts +3 -3
  754. package/lib/resources/external_tax_calculators.d.ts +2 -2
  755. package/lib/resources/external_tax_calculators.js +3 -3
  756. package/lib/resources/fixed_amount_promotions.cjs +4 -4
  757. package/lib/resources/fixed_amount_promotions.d.cts +3 -3
  758. package/lib/resources/fixed_amount_promotions.d.ts +2 -2
  759. package/lib/resources/fixed_amount_promotions.js +3 -3
  760. package/lib/resources/fixed_price_promotions.cjs +4 -4
  761. package/lib/resources/fixed_price_promotions.d.cts +3 -3
  762. package/lib/resources/fixed_price_promotions.d.ts +2 -2
  763. package/lib/resources/fixed_price_promotions.js +3 -3
  764. package/lib/resources/flex_promotions.cjs +4 -4
  765. package/lib/resources/flex_promotions.d.cts +3 -3
  766. package/lib/resources/flex_promotions.d.ts +2 -2
  767. package/lib/resources/flex_promotions.js +3 -3
  768. package/lib/resources/free_gift_promotions.cjs +4 -4
  769. package/lib/resources/free_gift_promotions.d.cts +3 -3
  770. package/lib/resources/free_gift_promotions.d.ts +2 -2
  771. package/lib/resources/free_gift_promotions.js +3 -3
  772. package/lib/resources/free_shipping_promotions.cjs +4 -4
  773. package/lib/resources/free_shipping_promotions.d.cts +3 -3
  774. package/lib/resources/free_shipping_promotions.d.ts +2 -2
  775. package/lib/resources/free_shipping_promotions.js +3 -3
  776. package/lib/resources/geocoders.cjs +4 -4
  777. package/lib/resources/geocoders.d.cts +3 -3
  778. package/lib/resources/geocoders.d.ts +2 -2
  779. package/lib/resources/geocoders.js +3 -3
  780. package/lib/resources/gift_card_recipients.cjs +4 -4
  781. package/lib/resources/gift_card_recipients.d.cts +3 -3
  782. package/lib/resources/gift_card_recipients.d.ts +2 -2
  783. package/lib/resources/gift_card_recipients.js +3 -3
  784. package/lib/resources/gift_cards.cjs +4 -4
  785. package/lib/resources/gift_cards.d.cts +3 -3
  786. package/lib/resources/gift_cards.d.ts +2 -2
  787. package/lib/resources/gift_cards.js +3 -3
  788. package/lib/resources/google_geocoders.cjs +4 -4
  789. package/lib/resources/google_geocoders.d.cts +3 -3
  790. package/lib/resources/google_geocoders.d.ts +2 -2
  791. package/lib/resources/google_geocoders.js +3 -3
  792. package/lib/resources/imports.cjs +4 -4
  793. package/lib/resources/imports.d.cts +3 -3
  794. package/lib/resources/imports.d.ts +2 -2
  795. package/lib/resources/imports.js +3 -3
  796. package/lib/resources/in_stock_subscriptions.cjs +4 -4
  797. package/lib/resources/in_stock_subscriptions.d.cts +3 -3
  798. package/lib/resources/in_stock_subscriptions.d.ts +2 -2
  799. package/lib/resources/in_stock_subscriptions.js +3 -3
  800. package/lib/resources/inventory_models.cjs +4 -4
  801. package/lib/resources/inventory_models.d.cts +3 -3
  802. package/lib/resources/inventory_models.d.ts +2 -2
  803. package/lib/resources/inventory_models.js +3 -3
  804. package/lib/resources/inventory_return_locations.cjs +4 -4
  805. package/lib/resources/inventory_return_locations.d.cts +3 -3
  806. package/lib/resources/inventory_return_locations.d.ts +2 -2
  807. package/lib/resources/inventory_return_locations.js +3 -3
  808. package/lib/resources/inventory_stock_locations.cjs +4 -4
  809. package/lib/resources/inventory_stock_locations.d.cts +3 -3
  810. package/lib/resources/inventory_stock_locations.d.ts +2 -2
  811. package/lib/resources/inventory_stock_locations.js +3 -3
  812. package/lib/resources/klarna_gateways.cjs +4 -4
  813. package/lib/resources/klarna_gateways.d.cts +3 -3
  814. package/lib/resources/klarna_gateways.d.ts +2 -2
  815. package/lib/resources/klarna_gateways.js +3 -3
  816. package/lib/resources/klarna_payments.cjs +4 -4
  817. package/lib/resources/klarna_payments.d.cts +3 -3
  818. package/lib/resources/klarna_payments.d.ts +2 -2
  819. package/lib/resources/klarna_payments.js +3 -3
  820. package/lib/resources/line_item_options.cjs +4 -4
  821. package/lib/resources/line_item_options.d.cts +3 -3
  822. package/lib/resources/line_item_options.d.ts +2 -2
  823. package/lib/resources/line_item_options.js +3 -3
  824. package/lib/resources/line_items.cjs +4 -4
  825. package/lib/resources/line_items.d.cts +3 -3
  826. package/lib/resources/line_items.d.ts +2 -2
  827. package/lib/resources/line_items.js +3 -3
  828. package/lib/resources/links.cjs +4 -4
  829. package/lib/resources/links.d.cts +3 -3
  830. package/lib/resources/links.d.ts +2 -2
  831. package/lib/resources/links.js +3 -3
  832. package/lib/resources/manual_gateways.cjs +4 -4
  833. package/lib/resources/manual_gateways.d.cts +3 -3
  834. package/lib/resources/manual_gateways.d.ts +2 -2
  835. package/lib/resources/manual_gateways.js +3 -3
  836. package/lib/resources/manual_tax_calculators.cjs +4 -4
  837. package/lib/resources/manual_tax_calculators.d.cts +3 -3
  838. package/lib/resources/manual_tax_calculators.d.ts +2 -2
  839. package/lib/resources/manual_tax_calculators.js +3 -3
  840. package/lib/resources/markets.cjs +4 -4
  841. package/lib/resources/markets.d.cts +3 -3
  842. package/lib/resources/markets.d.ts +2 -2
  843. package/lib/resources/markets.js +3 -3
  844. package/lib/resources/merchants.cjs +4 -4
  845. package/lib/resources/merchants.d.cts +3 -3
  846. package/lib/resources/merchants.d.ts +2 -2
  847. package/lib/resources/merchants.js +3 -3
  848. package/lib/resources/notifications.cjs +4 -4
  849. package/lib/resources/notifications.d.cts +3 -3
  850. package/lib/resources/notifications.d.ts +2 -2
  851. package/lib/resources/notifications.js +3 -3
  852. package/lib/resources/order_amount_promotion_rules.cjs +4 -4
  853. package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
  854. package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
  855. package/lib/resources/order_amount_promotion_rules.js +3 -3
  856. package/lib/resources/order_copies.cjs +4 -4
  857. package/lib/resources/order_copies.d.cts +3 -3
  858. package/lib/resources/order_copies.d.ts +2 -2
  859. package/lib/resources/order_copies.js +3 -3
  860. package/lib/resources/order_factories.cjs +4 -4
  861. package/lib/resources/order_factories.d.cts +3 -3
  862. package/lib/resources/order_factories.d.ts +2 -2
  863. package/lib/resources/order_factories.js +3 -3
  864. package/lib/resources/order_subscription_items.cjs +4 -4
  865. package/lib/resources/order_subscription_items.d.cts +3 -3
  866. package/lib/resources/order_subscription_items.d.ts +2 -2
  867. package/lib/resources/order_subscription_items.js +3 -3
  868. package/lib/resources/order_subscriptions.cjs +4 -4
  869. package/lib/resources/order_subscriptions.d.cts +3 -3
  870. package/lib/resources/order_subscriptions.d.ts +2 -2
  871. package/lib/resources/order_subscriptions.js +3 -3
  872. package/lib/resources/orders.cjs +4 -4
  873. package/lib/resources/orders.d.cts +3 -3
  874. package/lib/resources/orders.d.ts +2 -2
  875. package/lib/resources/orders.js +3 -3
  876. package/lib/resources/organizations.cjs +4 -4
  877. package/lib/resources/organizations.d.cts +3 -3
  878. package/lib/resources/organizations.d.ts +2 -2
  879. package/lib/resources/organizations.js +3 -3
  880. package/lib/resources/packages.cjs +4 -4
  881. package/lib/resources/packages.d.cts +3 -3
  882. package/lib/resources/packages.d.ts +2 -2
  883. package/lib/resources/packages.js +3 -3
  884. package/lib/resources/parcel_line_items.cjs +4 -4
  885. package/lib/resources/parcel_line_items.d.cts +3 -3
  886. package/lib/resources/parcel_line_items.d.ts +2 -2
  887. package/lib/resources/parcel_line_items.js +3 -3
  888. package/lib/resources/parcels.cjs +4 -4
  889. package/lib/resources/parcels.d.cts +3 -3
  890. package/lib/resources/parcels.d.ts +2 -2
  891. package/lib/resources/parcels.js +3 -3
  892. package/lib/resources/payment_gateways.cjs +4 -4
  893. package/lib/resources/payment_gateways.d.cts +3 -3
  894. package/lib/resources/payment_gateways.d.ts +2 -2
  895. package/lib/resources/payment_gateways.js +3 -3
  896. package/lib/resources/payment_methods.cjs +4 -4
  897. package/lib/resources/payment_methods.d.cts +3 -3
  898. package/lib/resources/payment_methods.d.ts +2 -2
  899. package/lib/resources/payment_methods.js +3 -3
  900. package/lib/resources/payment_options.cjs +4 -4
  901. package/lib/resources/payment_options.d.cts +3 -3
  902. package/lib/resources/payment_options.d.ts +2 -2
  903. package/lib/resources/payment_options.js +3 -3
  904. package/lib/resources/paypal_gateways.cjs +4 -4
  905. package/lib/resources/paypal_gateways.d.cts +3 -3
  906. package/lib/resources/paypal_gateways.d.ts +2 -2
  907. package/lib/resources/paypal_gateways.js +3 -3
  908. package/lib/resources/paypal_payments.cjs +4 -4
  909. package/lib/resources/paypal_payments.d.cts +3 -3
  910. package/lib/resources/paypal_payments.d.ts +2 -2
  911. package/lib/resources/paypal_payments.js +3 -3
  912. package/lib/resources/percentage_discount_promotions.cjs +4 -4
  913. package/lib/resources/percentage_discount_promotions.d.cts +3 -3
  914. package/lib/resources/percentage_discount_promotions.d.ts +2 -2
  915. package/lib/resources/percentage_discount_promotions.js +3 -3
  916. package/lib/resources/pickups.cjs +4 -4
  917. package/lib/resources/pickups.d.cts +3 -3
  918. package/lib/resources/pickups.d.ts +2 -2
  919. package/lib/resources/pickups.js +3 -3
  920. package/lib/resources/price_frequency_tiers.cjs +4 -4
  921. package/lib/resources/price_frequency_tiers.d.cts +3 -3
  922. package/lib/resources/price_frequency_tiers.d.ts +2 -2
  923. package/lib/resources/price_frequency_tiers.js +3 -3
  924. package/lib/resources/price_list_schedulers.cjs +4 -4
  925. package/lib/resources/price_list_schedulers.d.cts +3 -3
  926. package/lib/resources/price_list_schedulers.d.ts +2 -2
  927. package/lib/resources/price_list_schedulers.js +3 -3
  928. package/lib/resources/price_lists.cjs +4 -4
  929. package/lib/resources/price_lists.d.cts +3 -3
  930. package/lib/resources/price_lists.d.ts +2 -2
  931. package/lib/resources/price_lists.js +3 -3
  932. package/lib/resources/price_tiers.cjs +4 -4
  933. package/lib/resources/price_tiers.d.cts +3 -3
  934. package/lib/resources/price_tiers.d.ts +2 -2
  935. package/lib/resources/price_tiers.js +3 -3
  936. package/lib/resources/price_volume_tiers.cjs +4 -4
  937. package/lib/resources/price_volume_tiers.d.cts +3 -3
  938. package/lib/resources/price_volume_tiers.d.ts +2 -2
  939. package/lib/resources/price_volume_tiers.js +3 -3
  940. package/lib/resources/prices.cjs +4 -4
  941. package/lib/resources/prices.d.cts +3 -3
  942. package/lib/resources/prices.d.ts +2 -2
  943. package/lib/resources/prices.js +3 -3
  944. package/lib/resources/promotion_rules.cjs +4 -4
  945. package/lib/resources/promotion_rules.d.cts +3 -3
  946. package/lib/resources/promotion_rules.d.ts +2 -2
  947. package/lib/resources/promotion_rules.js +3 -3
  948. package/lib/resources/promotions.cjs +4 -4
  949. package/lib/resources/promotions.d.cts +3 -3
  950. package/lib/resources/promotions.d.ts +2 -2
  951. package/lib/resources/promotions.js +3 -3
  952. package/lib/resources/recurring_order_copies.cjs +4 -4
  953. package/lib/resources/recurring_order_copies.d.cts +3 -3
  954. package/lib/resources/recurring_order_copies.d.ts +2 -2
  955. package/lib/resources/recurring_order_copies.js +3 -3
  956. package/lib/resources/refunds.cjs +4 -4
  957. package/lib/resources/refunds.d.cts +3 -3
  958. package/lib/resources/refunds.d.ts +2 -2
  959. package/lib/resources/refunds.js +3 -3
  960. package/lib/resources/reserved_stocks.cjs +4 -4
  961. package/lib/resources/reserved_stocks.d.cts +3 -3
  962. package/lib/resources/reserved_stocks.d.ts +2 -2
  963. package/lib/resources/reserved_stocks.js +3 -3
  964. package/lib/resources/resource_errors.cjs +4 -4
  965. package/lib/resources/resource_errors.d.cts +3 -3
  966. package/lib/resources/resource_errors.d.ts +2 -2
  967. package/lib/resources/resource_errors.js +3 -3
  968. package/lib/resources/return_line_items.cjs +4 -4
  969. package/lib/resources/return_line_items.d.cts +3 -3
  970. package/lib/resources/return_line_items.d.ts +2 -2
  971. package/lib/resources/return_line_items.js +3 -3
  972. package/lib/resources/returns.cjs +4 -4
  973. package/lib/resources/returns.d.cts +3 -3
  974. package/lib/resources/returns.d.ts +2 -2
  975. package/lib/resources/returns.js +3 -3
  976. package/lib/resources/satispay_gateways.cjs +4 -4
  977. package/lib/resources/satispay_gateways.d.cts +3 -3
  978. package/lib/resources/satispay_gateways.d.ts +2 -2
  979. package/lib/resources/satispay_gateways.js +3 -3
  980. package/lib/resources/satispay_payments.cjs +4 -4
  981. package/lib/resources/satispay_payments.d.cts +3 -3
  982. package/lib/resources/satispay_payments.d.ts +2 -2
  983. package/lib/resources/satispay_payments.js +3 -3
  984. package/lib/resources/shipments.cjs +4 -4
  985. package/lib/resources/shipments.d.cts +3 -3
  986. package/lib/resources/shipments.d.ts +2 -2
  987. package/lib/resources/shipments.js +3 -3
  988. package/lib/resources/shipping_categories.cjs +4 -4
  989. package/lib/resources/shipping_categories.d.cts +3 -3
  990. package/lib/resources/shipping_categories.d.ts +2 -2
  991. package/lib/resources/shipping_categories.js +3 -3
  992. package/lib/resources/shipping_method_tiers.cjs +4 -4
  993. package/lib/resources/shipping_method_tiers.d.cts +3 -3
  994. package/lib/resources/shipping_method_tiers.d.ts +2 -2
  995. package/lib/resources/shipping_method_tiers.js +3 -3
  996. package/lib/resources/shipping_methods.cjs +4 -4
  997. package/lib/resources/shipping_methods.d.cts +3 -3
  998. package/lib/resources/shipping_methods.d.ts +2 -2
  999. package/lib/resources/shipping_methods.js +3 -3
  1000. package/lib/resources/shipping_weight_tiers.cjs +4 -4
  1001. package/lib/resources/shipping_weight_tiers.d.cts +3 -3
  1002. package/lib/resources/shipping_weight_tiers.d.ts +2 -2
  1003. package/lib/resources/shipping_weight_tiers.js +3 -3
  1004. package/lib/resources/shipping_zones.cjs +4 -4
  1005. package/lib/resources/shipping_zones.d.cts +3 -3
  1006. package/lib/resources/shipping_zones.d.ts +2 -2
  1007. package/lib/resources/shipping_zones.js +3 -3
  1008. package/lib/resources/sku_list_items.cjs +4 -4
  1009. package/lib/resources/sku_list_items.d.cts +3 -3
  1010. package/lib/resources/sku_list_items.d.ts +2 -2
  1011. package/lib/resources/sku_list_items.js +3 -3
  1012. package/lib/resources/sku_list_promotion_rules.cjs +4 -4
  1013. package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
  1014. package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
  1015. package/lib/resources/sku_list_promotion_rules.js +3 -3
  1016. package/lib/resources/sku_lists.cjs +4 -4
  1017. package/lib/resources/sku_lists.d.cts +3 -3
  1018. package/lib/resources/sku_lists.d.ts +2 -2
  1019. package/lib/resources/sku_lists.js +3 -3
  1020. package/lib/resources/sku_options.cjs +4 -4
  1021. package/lib/resources/sku_options.d.cts +3 -3
  1022. package/lib/resources/sku_options.d.ts +2 -2
  1023. package/lib/resources/sku_options.js +3 -3
  1024. package/lib/resources/skus.cjs +4 -4
  1025. package/lib/resources/skus.d.cts +3 -3
  1026. package/lib/resources/skus.d.ts +2 -2
  1027. package/lib/resources/skus.js +3 -3
  1028. package/lib/resources/stock_items.cjs +4 -4
  1029. package/lib/resources/stock_items.d.cts +3 -3
  1030. package/lib/resources/stock_items.d.ts +2 -2
  1031. package/lib/resources/stock_items.js +3 -3
  1032. package/lib/resources/stock_line_items.cjs +4 -4
  1033. package/lib/resources/stock_line_items.d.cts +3 -3
  1034. package/lib/resources/stock_line_items.d.ts +2 -2
  1035. package/lib/resources/stock_line_items.js +3 -3
  1036. package/lib/resources/stock_locations.cjs +4 -4
  1037. package/lib/resources/stock_locations.d.cts +3 -3
  1038. package/lib/resources/stock_locations.d.ts +2 -2
  1039. package/lib/resources/stock_locations.js +3 -3
  1040. package/lib/resources/stock_reservations.cjs +4 -4
  1041. package/lib/resources/stock_reservations.d.cts +3 -3
  1042. package/lib/resources/stock_reservations.d.ts +2 -2
  1043. package/lib/resources/stock_reservations.js +3 -3
  1044. package/lib/resources/stock_transfers.cjs +4 -4
  1045. package/lib/resources/stock_transfers.d.cts +3 -3
  1046. package/lib/resources/stock_transfers.d.ts +2 -2
  1047. package/lib/resources/stock_transfers.js +3 -3
  1048. package/lib/resources/stores.cjs +4 -4
  1049. package/lib/resources/stores.d.cts +3 -3
  1050. package/lib/resources/stores.d.ts +2 -2
  1051. package/lib/resources/stores.js +3 -3
  1052. package/lib/resources/stripe_gateways.cjs +4 -4
  1053. package/lib/resources/stripe_gateways.d.cts +3 -3
  1054. package/lib/resources/stripe_gateways.d.ts +2 -2
  1055. package/lib/resources/stripe_gateways.js +3 -3
  1056. package/lib/resources/stripe_payments.cjs +4 -4
  1057. package/lib/resources/stripe_payments.d.cts +3 -3
  1058. package/lib/resources/stripe_payments.d.ts +2 -2
  1059. package/lib/resources/stripe_payments.js +3 -3
  1060. package/lib/resources/stripe_tax_accounts.cjs +4 -4
  1061. package/lib/resources/stripe_tax_accounts.d.cts +3 -3
  1062. package/lib/resources/stripe_tax_accounts.d.ts +2 -2
  1063. package/lib/resources/stripe_tax_accounts.js +3 -3
  1064. package/lib/resources/subscription_models.cjs +4 -4
  1065. package/lib/resources/subscription_models.d.cts +3 -3
  1066. package/lib/resources/subscription_models.d.ts +2 -2
  1067. package/lib/resources/subscription_models.js +3 -3
  1068. package/lib/resources/tags.cjs +4 -4
  1069. package/lib/resources/tags.d.cts +3 -3
  1070. package/lib/resources/tags.d.ts +2 -2
  1071. package/lib/resources/tags.js +3 -3
  1072. package/lib/resources/talon_one_accounts.cjs +4 -4
  1073. package/lib/resources/talon_one_accounts.d.cts +3 -3
  1074. package/lib/resources/talon_one_accounts.d.ts +2 -2
  1075. package/lib/resources/talon_one_accounts.js +3 -3
  1076. package/lib/resources/tax_calculators.cjs +4 -4
  1077. package/lib/resources/tax_calculators.d.cts +3 -3
  1078. package/lib/resources/tax_calculators.d.ts +2 -2
  1079. package/lib/resources/tax_calculators.js +3 -3
  1080. package/lib/resources/tax_categories.cjs +4 -4
  1081. package/lib/resources/tax_categories.d.cts +3 -3
  1082. package/lib/resources/tax_categories.d.ts +2 -2
  1083. package/lib/resources/tax_categories.js +3 -3
  1084. package/lib/resources/tax_rules.cjs +4 -4
  1085. package/lib/resources/tax_rules.d.cts +3 -3
  1086. package/lib/resources/tax_rules.d.ts +2 -2
  1087. package/lib/resources/tax_rules.js +3 -3
  1088. package/lib/resources/taxjar_accounts.cjs +4 -4
  1089. package/lib/resources/taxjar_accounts.d.cts +3 -3
  1090. package/lib/resources/taxjar_accounts.d.ts +2 -2
  1091. package/lib/resources/taxjar_accounts.js +3 -3
  1092. package/lib/resources/transactions.cjs +4 -4
  1093. package/lib/resources/transactions.d.cts +3 -3
  1094. package/lib/resources/transactions.d.ts +2 -2
  1095. package/lib/resources/transactions.js +3 -3
  1096. package/lib/resources/vertex_accounts.cjs +4 -4
  1097. package/lib/resources/vertex_accounts.d.cts +3 -3
  1098. package/lib/resources/vertex_accounts.d.ts +2 -2
  1099. package/lib/resources/vertex_accounts.js +3 -3
  1100. package/lib/resources/voids.cjs +4 -4
  1101. package/lib/resources/voids.d.cts +3 -3
  1102. package/lib/resources/voids.d.ts +2 -2
  1103. package/lib/resources/voids.js +3 -3
  1104. package/lib/resources/webhooks.cjs +4 -4
  1105. package/lib/resources/webhooks.d.cts +3 -3
  1106. package/lib/resources/webhooks.d.ts +2 -2
  1107. package/lib/resources/webhooks.js +3 -3
  1108. package/lib/resources/wire_transfers.cjs +4 -4
  1109. package/lib/resources/wire_transfers.d.cts +3 -3
  1110. package/lib/resources/wire_transfers.d.ts +2 -2
  1111. package/lib/resources/wire_transfers.js +3 -3
  1112. package/lib/static.cjs +5 -5
  1113. package/lib/static.d.cts +2 -2
  1114. package/lib/static.d.ts +2 -2
  1115. package/lib/static.js +4 -4
  1116. package/package.json +4 -2
  1117. package/lib/api-1MadbJ5r.d.cts +0 -18176
  1118. package/lib/api-Cn4znEVC.d.ts +0 -18176
  1119. package/lib/chunk-26Q2QNAQ.cjs +0 -30
  1120. package/lib/chunk-26Q2QNAQ.cjs.map +0 -1
  1121. package/lib/chunk-27YKND3S.js +0 -93
  1122. package/lib/chunk-27YKND3S.js.map +0 -1
  1123. package/lib/chunk-2CMJ2SZM.cjs +0 -57
  1124. package/lib/chunk-2CMJ2SZM.cjs.map +0 -1
  1125. package/lib/chunk-2HNW5KNF.js +0 -45
  1126. package/lib/chunk-2HNW5KNF.js.map +0 -1
  1127. package/lib/chunk-2NWYRIJZ.js +0 -41
  1128. package/lib/chunk-2NWYRIJZ.js.map +0 -1
  1129. package/lib/chunk-2QXENUO7.cjs +0 -51
  1130. package/lib/chunk-2QXENUO7.cjs.map +0 -1
  1131. package/lib/chunk-2TOLW3UO.cjs +0 -56
  1132. package/lib/chunk-2TOLW3UO.cjs.map +0 -1
  1133. package/lib/chunk-2VI6OWLV.cjs +0 -61
  1134. package/lib/chunk-2VI6OWLV.cjs.map +0 -1
  1135. package/lib/chunk-2WVBEUMO.js +0 -53
  1136. package/lib/chunk-2WVBEUMO.js.map +0 -1
  1137. package/lib/chunk-2XDVUDJS.cjs +0 -34
  1138. package/lib/chunk-2XDVUDJS.cjs.map +0 -1
  1139. package/lib/chunk-35Q3ZTZC.js +0 -75
  1140. package/lib/chunk-35Q3ZTZC.js.map +0 -1
  1141. package/lib/chunk-3PAID2YG.cjs +0 -54
  1142. package/lib/chunk-3PAID2YG.cjs.map +0 -1
  1143. package/lib/chunk-3PXZUPZE.cjs +0 -43
  1144. package/lib/chunk-3PXZUPZE.cjs.map +0 -1
  1145. package/lib/chunk-3YS6NHUH.cjs +0 -50
  1146. package/lib/chunk-3YS6NHUH.cjs.map +0 -1
  1147. package/lib/chunk-43JU63UQ.js +0 -51
  1148. package/lib/chunk-43JU63UQ.js.map +0 -1
  1149. package/lib/chunk-47UCMORS.cjs +0 -51
  1150. package/lib/chunk-47UCMORS.cjs.map +0 -1
  1151. package/lib/chunk-4C55SMIS.js +0 -55
  1152. package/lib/chunk-4C55SMIS.js.map +0 -1
  1153. package/lib/chunk-4E5BE47D.cjs +0 -61
  1154. package/lib/chunk-4E5BE47D.cjs.map +0 -1
  1155. package/lib/chunk-4OM2Y7BS.cjs +0 -46
  1156. package/lib/chunk-4OM2Y7BS.cjs.map +0 -1
  1157. package/lib/chunk-4P3MBQVY.cjs +0 -156
  1158. package/lib/chunk-4P3MBQVY.cjs.map +0 -1
  1159. package/lib/chunk-4PNXT6OT.js +0 -36
  1160. package/lib/chunk-4PNXT6OT.js.map +0 -1
  1161. package/lib/chunk-4S3I222F.cjs +0 -285
  1162. package/lib/chunk-4S3I222F.cjs.map +0 -1
  1163. package/lib/chunk-4YR6JIEN.js +0 -154
  1164. package/lib/chunk-4YR6JIEN.js.map +0 -1
  1165. package/lib/chunk-4ZIGP3FO.cjs +0 -59
  1166. package/lib/chunk-4ZIGP3FO.cjs.map +0 -1
  1167. package/lib/chunk-54VT56WS.cjs +0 -126
  1168. package/lib/chunk-54VT56WS.cjs.map +0 -1
  1169. package/lib/chunk-56324YRB.js +0 -54
  1170. package/lib/chunk-56324YRB.js.map +0 -1
  1171. package/lib/chunk-5AFBGKJ4.js +0 -53
  1172. package/lib/chunk-5AFBGKJ4.js.map +0 -1
  1173. package/lib/chunk-5P67UEWW.cjs +0 -56
  1174. package/lib/chunk-5P67UEWW.cjs.map +0 -1
  1175. package/lib/chunk-5RJW5RAK.js +0 -40
  1176. package/lib/chunk-5RJW5RAK.js.map +0 -1
  1177. package/lib/chunk-5TLVMKOO.cjs +0 -52
  1178. package/lib/chunk-5TLVMKOO.cjs.map +0 -1
  1179. package/lib/chunk-6BXCQFTI.js +0 -37
  1180. package/lib/chunk-6BXCQFTI.js.map +0 -1
  1181. package/lib/chunk-6EUKX4RC.cjs +0 -47
  1182. package/lib/chunk-6EUKX4RC.cjs.map +0 -1
  1183. package/lib/chunk-6SQ4LNTP.js +0 -54
  1184. package/lib/chunk-6SQ4LNTP.js.map +0 -1
  1185. package/lib/chunk-73P72ADW.js +0 -54
  1186. package/lib/chunk-73P72ADW.js.map +0 -1
  1187. package/lib/chunk-7473V4XD.js +0 -59
  1188. package/lib/chunk-7473V4XD.js.map +0 -1
  1189. package/lib/chunk-74JBCKFT.cjs +0 -30
  1190. package/lib/chunk-74JBCKFT.cjs.map +0 -1
  1191. package/lib/chunk-77HRCSA5.cjs +0 -55
  1192. package/lib/chunk-77HRCSA5.cjs.map +0 -1
  1193. package/lib/chunk-7B46YAQU.cjs +0 -98
  1194. package/lib/chunk-7B46YAQU.cjs.map +0 -1
  1195. package/lib/chunk-7LKA7FXN.js +0 -47
  1196. package/lib/chunk-7LKA7FXN.js.map +0 -1
  1197. package/lib/chunk-7P36FTRX.js +0 -44
  1198. package/lib/chunk-7P36FTRX.js.map +0 -1
  1199. package/lib/chunk-7TVIC5GW.cjs +0 -56
  1200. package/lib/chunk-7TVIC5GW.cjs.map +0 -1
  1201. package/lib/chunk-7ZBEKCA5.cjs +0 -75
  1202. package/lib/chunk-7ZBEKCA5.cjs.map +0 -1
  1203. package/lib/chunk-A6E33WC3.cjs +0 -53
  1204. package/lib/chunk-A6E33WC3.cjs.map +0 -1
  1205. package/lib/chunk-A77RAUIU.cjs +0 -54
  1206. package/lib/chunk-A77RAUIU.cjs.map +0 -1
  1207. package/lib/chunk-A7BK3Z22.cjs +0 -38
  1208. package/lib/chunk-A7BK3Z22.cjs.map +0 -1
  1209. package/lib/chunk-AEP6D5QV.cjs +0 -38
  1210. package/lib/chunk-AEP6D5QV.cjs.map +0 -1
  1211. package/lib/chunk-AN2Y6XMS.js +0 -28
  1212. package/lib/chunk-AN2Y6XMS.js.map +0 -1
  1213. package/lib/chunk-AP5WOJMJ.js +0 -49
  1214. package/lib/chunk-AP5WOJMJ.js.map +0 -1
  1215. package/lib/chunk-APMYXRFX.js +0 -96
  1216. package/lib/chunk-APMYXRFX.js.map +0 -1
  1217. package/lib/chunk-APTNONWZ.js +0 -40
  1218. package/lib/chunk-APTNONWZ.js.map +0 -1
  1219. package/lib/chunk-AS6CAIIM.js +0 -65
  1220. package/lib/chunk-AS6CAIIM.js.map +0 -1
  1221. package/lib/chunk-ATK6TFVA.cjs +0 -43
  1222. package/lib/chunk-ATK6TFVA.cjs.map +0 -1
  1223. package/lib/chunk-AVYPSM4A.cjs +0 -43
  1224. package/lib/chunk-AVYPSM4A.cjs.map +0 -1
  1225. package/lib/chunk-AWEYC4IM.js +0 -45
  1226. package/lib/chunk-AWEYC4IM.js.map +0 -1
  1227. package/lib/chunk-AWLS4LR4.cjs +0 -53
  1228. package/lib/chunk-AWLS4LR4.cjs.map +0 -1
  1229. package/lib/chunk-AY7MWZ7Y.js +0 -48
  1230. package/lib/chunk-AY7MWZ7Y.js.map +0 -1
  1231. package/lib/chunk-BANZUNLK.js +0 -40
  1232. package/lib/chunk-BANZUNLK.js.map +0 -1
  1233. package/lib/chunk-BQE56RMQ.js +0 -45
  1234. package/lib/chunk-BQE56RMQ.js.map +0 -1
  1235. package/lib/chunk-C7AHHS53.cjs +0 -51
  1236. package/lib/chunk-C7AHHS53.cjs.map +0 -1
  1237. package/lib/chunk-CDFM6RPB.cjs +0 -63
  1238. package/lib/chunk-CDFM6RPB.cjs.map +0 -1
  1239. package/lib/chunk-CH4K74JN.cjs +0 -55
  1240. package/lib/chunk-CH4K74JN.cjs.map +0 -1
  1241. package/lib/chunk-CJPAOOG5.cjs +0 -34
  1242. package/lib/chunk-CJPAOOG5.cjs.map +0 -1
  1243. package/lib/chunk-CKSLVNN7.js +0 -45
  1244. package/lib/chunk-CKSLVNN7.js.map +0 -1
  1245. package/lib/chunk-CM4DAVO4.js +0 -40
  1246. package/lib/chunk-CM4DAVO4.js.map +0 -1
  1247. package/lib/chunk-CNMMWVI6.js +0 -48
  1248. package/lib/chunk-CNMMWVI6.js.map +0 -1
  1249. package/lib/chunk-CQXW23HJ.cjs +0 -56
  1250. package/lib/chunk-CQXW23HJ.cjs.map +0 -1
  1251. package/lib/chunk-CSCAHLQ3.cjs +0 -49
  1252. package/lib/chunk-CSCAHLQ3.cjs.map +0 -1
  1253. package/lib/chunk-CTTA6S5K.cjs +0 -61
  1254. package/lib/chunk-CTTA6S5K.cjs.map +0 -1
  1255. package/lib/chunk-CUYSBPPJ.js +0 -45
  1256. package/lib/chunk-CUYSBPPJ.js.map +0 -1
  1257. package/lib/chunk-D3VJO4HP.js +0 -40
  1258. package/lib/chunk-D3VJO4HP.js.map +0 -1
  1259. package/lib/chunk-D3YQS6YA.js +0 -66
  1260. package/lib/chunk-D3YQS6YA.js.map +0 -1
  1261. package/lib/chunk-DBJEPEBT.js +0 -45
  1262. package/lib/chunk-DBJEPEBT.js.map +0 -1
  1263. package/lib/chunk-DFUIO6OY.js +0 -53
  1264. package/lib/chunk-DFUIO6OY.js.map +0 -1
  1265. package/lib/chunk-DHGTIF6A.cjs +0 -56
  1266. package/lib/chunk-DHGTIF6A.cjs.map +0 -1
  1267. package/lib/chunk-DJRBEANR.js +0 -57
  1268. package/lib/chunk-DJRBEANR.js.map +0 -1
  1269. package/lib/chunk-DNVIOKDM.cjs +0 -55
  1270. package/lib/chunk-DNVIOKDM.cjs.map +0 -1
  1271. package/lib/chunk-DQUGPCYZ.js +0 -37
  1272. package/lib/chunk-DQUGPCYZ.js.map +0 -1
  1273. package/lib/chunk-E2UP2BWG.cjs +0 -39
  1274. package/lib/chunk-E2UP2BWG.cjs.map +0 -1
  1275. package/lib/chunk-E5G3LS6Y.js +0 -53
  1276. package/lib/chunk-E5G3LS6Y.js.map +0 -1
  1277. package/lib/chunk-EEXXJFJO.cjs +0 -47
  1278. package/lib/chunk-EEXXJFJO.cjs.map +0 -1
  1279. package/lib/chunk-EI2KOTCG.js +0 -37
  1280. package/lib/chunk-EI2KOTCG.js.map +0 -1
  1281. package/lib/chunk-ELTYSKHB.js +0 -68
  1282. package/lib/chunk-ELTYSKHB.js.map +0 -1
  1283. package/lib/chunk-EO7RCCV2.js +0 -45
  1284. package/lib/chunk-EO7RCCV2.js.map +0 -1
  1285. package/lib/chunk-EOV3GRPM.js +0 -27
  1286. package/lib/chunk-EOV3GRPM.js.map +0 -1
  1287. package/lib/chunk-EQ5ASSXQ.cjs +0 -95
  1288. package/lib/chunk-EQ5ASSXQ.cjs.map +0 -1
  1289. package/lib/chunk-EQZMPSGR.js +0 -55
  1290. package/lib/chunk-EQZMPSGR.js.map +0 -1
  1291. package/lib/chunk-ESI7A34I.js +0 -52
  1292. package/lib/chunk-ESI7A34I.js.map +0 -1
  1293. package/lib/chunk-EWFAT7KA.js +0 -283
  1294. package/lib/chunk-EWFAT7KA.js.map +0 -1
  1295. package/lib/chunk-F2PKXIJQ.js +0 -52
  1296. package/lib/chunk-F2PKXIJQ.js.map +0 -1
  1297. package/lib/chunk-F6OOTDNW.js +0 -49
  1298. package/lib/chunk-F6OOTDNW.js.map +0 -1
  1299. package/lib/chunk-FANJUOI3.cjs +0 -51
  1300. package/lib/chunk-FANJUOI3.cjs.map +0 -1
  1301. package/lib/chunk-FAX5NCHT.cjs +0 -47
  1302. package/lib/chunk-FAX5NCHT.cjs.map +0 -1
  1303. package/lib/chunk-FECG6WIR.js +0 -96
  1304. package/lib/chunk-FECG6WIR.js.map +0 -1
  1305. package/lib/chunk-FRVEAP6J.js +0 -73
  1306. package/lib/chunk-FRVEAP6J.js.map +0 -1
  1307. package/lib/chunk-FUQA5XT7.cjs +0 -47
  1308. package/lib/chunk-FUQA5XT7.cjs.map +0 -1
  1309. package/lib/chunk-FVRWASHH.js +0 -32
  1310. package/lib/chunk-FVRWASHH.js.map +0 -1
  1311. package/lib/chunk-FWBO3MH4.js +0 -54
  1312. package/lib/chunk-FWBO3MH4.js.map +0 -1
  1313. package/lib/chunk-FZKENL3J.js +0 -53
  1314. package/lib/chunk-FZKENL3J.js.map +0 -1
  1315. package/lib/chunk-GCY5B73J.cjs +0 -47
  1316. package/lib/chunk-GCY5B73J.cjs.map +0 -1
  1317. package/lib/chunk-GIZE32ZY.js +0 -73
  1318. package/lib/chunk-GIZE32ZY.js.map +0 -1
  1319. package/lib/chunk-GZPZZ262.js +0 -49
  1320. package/lib/chunk-GZPZZ262.js.map +0 -1
  1321. package/lib/chunk-H6K62JGC.cjs +0 -47
  1322. package/lib/chunk-H6K62JGC.cjs.map +0 -1
  1323. package/lib/chunk-H7J2F6QG.cjs +0 -47
  1324. package/lib/chunk-H7J2F6QG.cjs.map +0 -1
  1325. package/lib/chunk-H7KZGQXZ.cjs +0 -71
  1326. package/lib/chunk-H7KZGQXZ.cjs.map +0 -1
  1327. package/lib/chunk-HFKNOYWV.cjs +0 -98
  1328. package/lib/chunk-HFKNOYWV.cjs.map +0 -1
  1329. package/lib/chunk-HLR5KZ6S.js +0 -51
  1330. package/lib/chunk-HLR5KZ6S.js.map +0 -1
  1331. package/lib/chunk-HWCQ4G5Z.js +0 -45
  1332. package/lib/chunk-HWCQ4G5Z.js.map +0 -1
  1333. package/lib/chunk-HZYPMFTS.cjs +0 -49
  1334. package/lib/chunk-HZYPMFTS.cjs.map +0 -1
  1335. package/lib/chunk-I2E2P72P.cjs +0 -70
  1336. package/lib/chunk-I2E2P72P.cjs.map +0 -1
  1337. package/lib/chunk-I4EPVSJX.js +0 -102
  1338. package/lib/chunk-I4EPVSJX.js.map +0 -1
  1339. package/lib/chunk-I64ZCB4W.cjs +0 -55
  1340. package/lib/chunk-I64ZCB4W.cjs.map +0 -1
  1341. package/lib/chunk-I7LHMPOY.cjs +0 -107
  1342. package/lib/chunk-I7LHMPOY.cjs.map +0 -1
  1343. package/lib/chunk-IG2P6JOK.js +0 -40
  1344. package/lib/chunk-IG2P6JOK.js.map +0 -1
  1345. package/lib/chunk-IG6UCDED.js +0 -59
  1346. package/lib/chunk-IG6UCDED.js.map +0 -1
  1347. package/lib/chunk-IIUBCLDN.js +0 -47
  1348. package/lib/chunk-IIUBCLDN.js.map +0 -1
  1349. package/lib/chunk-IKU3CD3A.cjs +0 -75
  1350. package/lib/chunk-IKU3CD3A.cjs.map +0 -1
  1351. package/lib/chunk-IL2AXMUE.js +0 -45
  1352. package/lib/chunk-IL2AXMUE.js.map +0 -1
  1353. package/lib/chunk-IL66CF3O.js +0 -105
  1354. package/lib/chunk-IL66CF3O.js.map +0 -1
  1355. package/lib/chunk-ILAFDO4M.js +0 -36
  1356. package/lib/chunk-ILAFDO4M.js.map +0 -1
  1357. package/lib/chunk-INBIEH6H.cjs +0 -44
  1358. package/lib/chunk-INBIEH6H.cjs.map +0 -1
  1359. package/lib/chunk-IOSR7D3F.cjs +0 -47
  1360. package/lib/chunk-IOSR7D3F.cjs.map +0 -1
  1361. package/lib/chunk-IOYGVLML.js +0 -41
  1362. package/lib/chunk-IOYGVLML.js.map +0 -1
  1363. package/lib/chunk-IP5G2VCS.cjs +0 -38
  1364. package/lib/chunk-IP5G2VCS.cjs.map +0 -1
  1365. package/lib/chunk-IWH7CXBG.js +0 -124
  1366. package/lib/chunk-IWH7CXBG.js.map +0 -1
  1367. package/lib/chunk-IYGFGGZR.js +0 -59
  1368. package/lib/chunk-IYGFGGZR.js.map +0 -1
  1369. package/lib/chunk-IYQFTOVG.cjs +0 -39
  1370. package/lib/chunk-IYQFTOVG.cjs.map +0 -1
  1371. package/lib/chunk-J2ULMBWQ.js +0 -89
  1372. package/lib/chunk-J2ULMBWQ.js.map +0 -1
  1373. package/lib/chunk-JARZZUPY.js +0 -93
  1374. package/lib/chunk-JARZZUPY.js.map +0 -1
  1375. package/lib/chunk-JBKJAYRL.cjs +0 -50
  1376. package/lib/chunk-JBKJAYRL.cjs.map +0 -1
  1377. package/lib/chunk-JE3P5NJP.cjs +0 -56
  1378. package/lib/chunk-JE3P5NJP.cjs.map +0 -1
  1379. package/lib/chunk-JGTC32IT.cjs +0 -69
  1380. package/lib/chunk-JGTC32IT.cjs.map +0 -1
  1381. package/lib/chunk-JHYHQV3E.js +0 -67
  1382. package/lib/chunk-JHYHQV3E.js.map +0 -1
  1383. package/lib/chunk-JIDX6RAT.js +0 -103
  1384. package/lib/chunk-JIDX6RAT.js.map +0 -1
  1385. package/lib/chunk-JIQRQ5TK.cjs +0 -39
  1386. package/lib/chunk-JIQRQ5TK.cjs.map +0 -1
  1387. package/lib/chunk-JMKSIDZI.cjs +0 -51
  1388. package/lib/chunk-JMKSIDZI.cjs.map +0 -1
  1389. package/lib/chunk-JR6TYHVG.js +0 -41
  1390. package/lib/chunk-JR6TYHVG.js.map +0 -1
  1391. package/lib/chunk-JRVZ4JQI.js +0 -32
  1392. package/lib/chunk-JRVZ4JQI.js.map +0 -1
  1393. package/lib/chunk-JSHKAVYF.js +0 -45
  1394. package/lib/chunk-JSHKAVYF.js.map +0 -1
  1395. package/lib/chunk-K3GPCGMJ.cjs +0 -47
  1396. package/lib/chunk-K3GPCGMJ.cjs.map +0 -1
  1397. package/lib/chunk-KATZAZKF.cjs +0 -56
  1398. package/lib/chunk-KATZAZKF.cjs.map +0 -1
  1399. package/lib/chunk-KC46F2PJ.cjs +0 -47
  1400. package/lib/chunk-KC46F2PJ.cjs.map +0 -1
  1401. package/lib/chunk-KJWEQIEM.js +0 -54
  1402. package/lib/chunk-KJWEQIEM.js.map +0 -1
  1403. package/lib/chunk-KLO6RFMQ.cjs +0 -89
  1404. package/lib/chunk-KLO6RFMQ.cjs.map +0 -1
  1405. package/lib/chunk-KN2KHVGW.js +0 -93
  1406. package/lib/chunk-KN2KHVGW.js.map +0 -1
  1407. package/lib/chunk-KU5M6CZ5.js +0 -48
  1408. package/lib/chunk-KU5M6CZ5.js.map +0 -1
  1409. package/lib/chunk-KUJFQHAN.js +0 -52
  1410. package/lib/chunk-KUJFQHAN.js.map +0 -1
  1411. package/lib/chunk-KUZBO6ZM.js +0 -54
  1412. package/lib/chunk-KUZBO6ZM.js.map +0 -1
  1413. package/lib/chunk-KZDGS2SG.cjs +0 -70
  1414. package/lib/chunk-KZDGS2SG.cjs.map +0 -1
  1415. package/lib/chunk-L4PEYYXQ.cjs +0 -51
  1416. package/lib/chunk-L4PEYYXQ.cjs.map +0 -1
  1417. package/lib/chunk-L7FT6NDZ.cjs +0 -284
  1418. package/lib/chunk-L7FT6NDZ.cjs.map +0 -1
  1419. package/lib/chunk-LHESCZ5L.cjs +0 -39
  1420. package/lib/chunk-LHESCZ5L.cjs.map +0 -1
  1421. package/lib/chunk-LP52UBLY.js +0 -54
  1422. package/lib/chunk-LP52UBLY.js.map +0 -1
  1423. package/lib/chunk-LPP7TYFN.js +0 -45
  1424. package/lib/chunk-LPP7TYFN.js.map +0 -1
  1425. package/lib/chunk-LS7VSSB4.js +0 -49
  1426. package/lib/chunk-LS7VSSB4.js.map +0 -1
  1427. package/lib/chunk-LSISPTNQ.cjs +0 -47
  1428. package/lib/chunk-LSISPTNQ.cjs.map +0 -1
  1429. package/lib/chunk-LZO46NMA.js +0 -60
  1430. package/lib/chunk-LZO46NMA.js.map +0 -1
  1431. package/lib/chunk-M22WZEWB.js +0 -37
  1432. package/lib/chunk-M22WZEWB.js.map +0 -1
  1433. package/lib/chunk-M63P3MQC.cjs +0 -51
  1434. package/lib/chunk-M63P3MQC.cjs.map +0 -1
  1435. package/lib/chunk-M7EUSLT2.js +0 -51
  1436. package/lib/chunk-M7EUSLT2.js.map +0 -1
  1437. package/lib/chunk-M7SVKQ7R.cjs +0 -51
  1438. package/lib/chunk-M7SVKQ7R.cjs.map +0 -1
  1439. package/lib/chunk-MFDKS22G.js +0 -536
  1440. package/lib/chunk-MFDKS22G.js.map +0 -1
  1441. package/lib/chunk-MHNJALUB.cjs +0 -42
  1442. package/lib/chunk-MHNJALUB.cjs.map +0 -1
  1443. package/lib/chunk-MOYV2F4C.js +0 -50
  1444. package/lib/chunk-MOYV2F4C.js.map +0 -1
  1445. package/lib/chunk-MVXKHM42.cjs +0 -47
  1446. package/lib/chunk-MVXKHM42.cjs.map +0 -1
  1447. package/lib/chunk-N2TACGKJ.js +0 -59
  1448. package/lib/chunk-N2TACGKJ.js.map +0 -1
  1449. package/lib/chunk-NGJN2PES.cjs +0 -95
  1450. package/lib/chunk-NGJN2PES.cjs.map +0 -1
  1451. package/lib/chunk-NIFNQI3P.js +0 -49
  1452. package/lib/chunk-NIFNQI3P.js.map +0 -1
  1453. package/lib/chunk-NLL7EH7Y.cjs +0 -42
  1454. package/lib/chunk-NLL7EH7Y.cjs.map +0 -1
  1455. package/lib/chunk-NOGYLNW5.cjs +0 -49
  1456. package/lib/chunk-NOGYLNW5.cjs.map +0 -1
  1457. package/lib/chunk-NPZA6AMN.js +0 -95
  1458. package/lib/chunk-NPZA6AMN.js.map +0 -1
  1459. package/lib/chunk-NSMPVEO4.js +0 -49
  1460. package/lib/chunk-NSMPVEO4.js.map +0 -1
  1461. package/lib/chunk-NURW5BJN.js +0 -37
  1462. package/lib/chunk-NURW5BJN.js.map +0 -1
  1463. package/lib/chunk-NWPF43O7.js +0 -50
  1464. package/lib/chunk-NWPF43O7.js.map +0 -1
  1465. package/lib/chunk-O6QJMGK7.cjs +0 -56
  1466. package/lib/chunk-O6QJMGK7.cjs.map +0 -1
  1467. package/lib/chunk-OBNGBDLS.js +0 -47
  1468. package/lib/chunk-OBNGBDLS.js.map +0 -1
  1469. package/lib/chunk-OEMRZEYB.js +0 -45
  1470. package/lib/chunk-OEMRZEYB.js.map +0 -1
  1471. package/lib/chunk-OLJT7GB7.js +0 -31
  1472. package/lib/chunk-OLJT7GB7.js.map +0 -1
  1473. package/lib/chunk-ONVG32V5.cjs +0 -63
  1474. package/lib/chunk-ONVG32V5.cjs.map +0 -1
  1475. package/lib/chunk-P2IDAXTS.cjs +0 -62
  1476. package/lib/chunk-P2IDAXTS.cjs.map +0 -1
  1477. package/lib/chunk-P47JG2WA.js +0 -48
  1478. package/lib/chunk-P47JG2WA.js.map +0 -1
  1479. package/lib/chunk-P5EEPVZA.cjs +0 -77
  1480. package/lib/chunk-P5EEPVZA.cjs.map +0 -1
  1481. package/lib/chunk-PB6VKR7P.js +0 -49
  1482. package/lib/chunk-PB6VKR7P.js.map +0 -1
  1483. package/lib/chunk-PBEQTSJS.cjs +0 -47
  1484. package/lib/chunk-PBEQTSJS.cjs.map +0 -1
  1485. package/lib/chunk-PL6A37WA.js +0 -45
  1486. package/lib/chunk-PL6A37WA.js.map +0 -1
  1487. package/lib/chunk-PMV3JPUR.cjs +0 -51
  1488. package/lib/chunk-PMV3JPUR.cjs.map +0 -1
  1489. package/lib/chunk-PQJ2ODW3.cjs +0 -67
  1490. package/lib/chunk-PQJ2ODW3.cjs.map +0 -1
  1491. package/lib/chunk-PUBFRIEQ.cjs +0 -95
  1492. package/lib/chunk-PUBFRIEQ.cjs.map +0 -1
  1493. package/lib/chunk-PULH7AI4.cjs +0 -68
  1494. package/lib/chunk-PULH7AI4.cjs.map +0 -1
  1495. package/lib/chunk-PUTVVRLC.js +0 -69
  1496. package/lib/chunk-PUTVVRLC.js.map +0 -1
  1497. package/lib/chunk-PVBBO54F.js +0 -49
  1498. package/lib/chunk-PVBBO54F.js.map +0 -1
  1499. package/lib/chunk-Q3WUCLM5.js +0 -37
  1500. package/lib/chunk-Q3WUCLM5.js.map +0 -1
  1501. package/lib/chunk-QDZI3I46.cjs +0 -43
  1502. package/lib/chunk-QDZI3I46.cjs.map +0 -1
  1503. package/lib/chunk-QF6DOS2C.js +0 -42
  1504. package/lib/chunk-QF6DOS2C.js.map +0 -1
  1505. package/lib/chunk-QI4UFW5A.js +0 -59
  1506. package/lib/chunk-QI4UFW5A.js.map +0 -1
  1507. package/lib/chunk-QIN5DNKJ.cjs +0 -46
  1508. package/lib/chunk-QIN5DNKJ.cjs.map +0 -1
  1509. package/lib/chunk-QJDQS6PE.cjs +0 -107
  1510. package/lib/chunk-QJDQS6PE.cjs.map +0 -1
  1511. package/lib/chunk-QTBUH3V7.js +0 -61
  1512. package/lib/chunk-QTBUH3V7.js.map +0 -1
  1513. package/lib/chunk-QVJZ2PSX.cjs +0 -51
  1514. package/lib/chunk-QVJZ2PSX.cjs.map +0 -1
  1515. package/lib/chunk-QXXLGQVN.js +0 -45
  1516. package/lib/chunk-QXXLGQVN.js.map +0 -1
  1517. package/lib/chunk-RDZZJ22W.cjs +0 -39
  1518. package/lib/chunk-RDZZJ22W.cjs.map +0 -1
  1519. package/lib/chunk-RGGHPNOB.js +0 -49
  1520. package/lib/chunk-RGGHPNOB.js.map +0 -1
  1521. package/lib/chunk-RKD7U6QH.cjs +0 -51
  1522. package/lib/chunk-RKD7U6QH.cjs.map +0 -1
  1523. package/lib/chunk-RMTTRB7R.js +0 -51
  1524. package/lib/chunk-RMTTRB7R.js.map +0 -1
  1525. package/lib/chunk-RNJOCB3T.cjs +0 -42
  1526. package/lib/chunk-RNJOCB3T.cjs.map +0 -1
  1527. package/lib/chunk-RQAOPSUW.cjs +0 -47
  1528. package/lib/chunk-RQAOPSUW.cjs.map +0 -1
  1529. package/lib/chunk-RW4KKMPX.js +0 -93
  1530. package/lib/chunk-RW4KKMPX.js.map +0 -1
  1531. package/lib/chunk-SGXMH2JP.cjs +0 -29
  1532. package/lib/chunk-SGXMH2JP.cjs.map +0 -1
  1533. package/lib/chunk-SOOB4KI7.cjs +0 -53
  1534. package/lib/chunk-SOOB4KI7.cjs.map +0 -1
  1535. package/lib/chunk-SSHXUS6Q.js +0 -49
  1536. package/lib/chunk-SSHXUS6Q.js.map +0 -1
  1537. package/lib/chunk-STQYJKBK.cjs +0 -55
  1538. package/lib/chunk-STQYJKBK.cjs.map +0 -1
  1539. package/lib/chunk-SZARKLAL.js +0 -68
  1540. package/lib/chunk-SZARKLAL.js.map +0 -1
  1541. package/lib/chunk-SZM64XMO.cjs +0 -68
  1542. package/lib/chunk-SZM64XMO.cjs.map +0 -1
  1543. package/lib/chunk-T2DEYIX6.cjs +0 -57
  1544. package/lib/chunk-T2DEYIX6.cjs.map +0 -1
  1545. package/lib/chunk-T2YGQC4C.js +0 -61
  1546. package/lib/chunk-T2YGQC4C.js.map +0 -1
  1547. package/lib/chunk-T5OEKW7A.cjs +0 -55
  1548. package/lib/chunk-T5OEKW7A.cjs.map +0 -1
  1549. package/lib/chunk-T6CBFUT6.cjs +0 -51
  1550. package/lib/chunk-T6CBFUT6.cjs.map +0 -1
  1551. package/lib/chunk-TMSNRZEW.cjs +0 -50
  1552. package/lib/chunk-TMSNRZEW.cjs.map +0 -1
  1553. package/lib/chunk-TRDTLOUY.js +0 -66
  1554. package/lib/chunk-TRDTLOUY.js.map +0 -1
  1555. package/lib/chunk-TTVTRX76.cjs +0 -93
  1556. package/lib/chunk-TTVTRX76.cjs.map +0 -1
  1557. package/lib/chunk-TUKV2ZIA.cjs +0 -52
  1558. package/lib/chunk-TUKV2ZIA.cjs.map +0 -1
  1559. package/lib/chunk-TVKGUM2Z.js +0 -99
  1560. package/lib/chunk-TVKGUM2Z.js.map +0 -1
  1561. package/lib/chunk-U6G7T5WX.cjs +0 -47
  1562. package/lib/chunk-U6G7T5WX.cjs.map +0 -1
  1563. package/lib/chunk-UFUZNSZI.cjs +0 -61
  1564. package/lib/chunk-UFUZNSZI.cjs.map +0 -1
  1565. package/lib/chunk-UHZABEQZ.js +0 -45
  1566. package/lib/chunk-UHZABEQZ.js.map +0 -1
  1567. package/lib/chunk-UIRXTLC6.cjs +0 -61
  1568. package/lib/chunk-UIRXTLC6.cjs.map +0 -1
  1569. package/lib/chunk-UJ4OEOZA.js +0 -87
  1570. package/lib/chunk-UJ4OEOZA.js.map +0 -1
  1571. package/lib/chunk-UL4JQZUD.cjs +0 -42
  1572. package/lib/chunk-UL4JQZUD.cjs.map +0 -1
  1573. package/lib/chunk-UNPVTCLZ.cjs +0 -47
  1574. package/lib/chunk-UNPVTCLZ.cjs.map +0 -1
  1575. package/lib/chunk-USP4O34Q.js +0 -28
  1576. package/lib/chunk-USP4O34Q.js.map +0 -1
  1577. package/lib/chunk-UTQEHWH2.js +0 -54
  1578. package/lib/chunk-UTQEHWH2.js.map +0 -1
  1579. package/lib/chunk-UV6BETTC.js +0 -48
  1580. package/lib/chunk-UV6BETTC.js.map +0 -1
  1581. package/lib/chunk-UXLDPLOA.js +0 -45
  1582. package/lib/chunk-UXLDPLOA.js.map +0 -1
  1583. package/lib/chunk-V6VQMQQX.js +0 -91
  1584. package/lib/chunk-V6VQMQQX.js.map +0 -1
  1585. package/lib/chunk-V74OBMS3.cjs +0 -95
  1586. package/lib/chunk-V74OBMS3.cjs.map +0 -1
  1587. package/lib/chunk-VA6VDBQS.js +0 -41
  1588. package/lib/chunk-VA6VDBQS.js.map +0 -1
  1589. package/lib/chunk-VB7XUWBF.cjs +0 -47
  1590. package/lib/chunk-VB7XUWBF.cjs.map +0 -1
  1591. package/lib/chunk-VESU72KU.js +0 -93
  1592. package/lib/chunk-VESU72KU.js.map +0 -1
  1593. package/lib/chunk-VEV4DZKI.cjs +0 -51
  1594. package/lib/chunk-VEV4DZKI.cjs.map +0 -1
  1595. package/lib/chunk-VI2NCCWC.js +0 -49
  1596. package/lib/chunk-VI2NCCWC.js.map +0 -1
  1597. package/lib/chunk-VTSEVEKJ.cjs +0 -53
  1598. package/lib/chunk-VTSEVEKJ.cjs.map +0 -1
  1599. package/lib/chunk-VUEZCOXT.cjs +0 -33
  1600. package/lib/chunk-VUEZCOXT.cjs.map +0 -1
  1601. package/lib/chunk-VVS2M4QH.js +0 -53
  1602. package/lib/chunk-VVS2M4QH.js.map +0 -1
  1603. package/lib/chunk-VWUS4YUX.js +0 -49
  1604. package/lib/chunk-VWUS4YUX.js.map +0 -1
  1605. package/lib/chunk-VXXJ3CIC.js +0 -49
  1606. package/lib/chunk-VXXJ3CIC.js.map +0 -1
  1607. package/lib/chunk-VZQLDW2G.cjs +0 -95
  1608. package/lib/chunk-VZQLDW2G.cjs.map +0 -1
  1609. package/lib/chunk-WKIAJGJO.js +0 -44
  1610. package/lib/chunk-WKIAJGJO.js.map +0 -1
  1611. package/lib/chunk-WMM5EI62.js +0 -24
  1612. package/lib/chunk-WMM5EI62.js.map +0 -1
  1613. package/lib/chunk-WO5PFLID.js +0 -45
  1614. package/lib/chunk-WO5PFLID.js.map +0 -1
  1615. package/lib/chunk-WWUZP5BE.cjs +0 -50
  1616. package/lib/chunk-WWUZP5BE.cjs.map +0 -1
  1617. package/lib/chunk-X55DEMOC.js +0 -45
  1618. package/lib/chunk-X55DEMOC.js.map +0 -1
  1619. package/lib/chunk-X5TTCMYD.cjs +0 -105
  1620. package/lib/chunk-X5TTCMYD.cjs.map +0 -1
  1621. package/lib/chunk-XEAXNFP4.js +0 -49
  1622. package/lib/chunk-XEAXNFP4.js.map +0 -1
  1623. package/lib/chunk-XK7ZO7EI.js +0 -40
  1624. package/lib/chunk-XK7ZO7EI.js.map +0 -1
  1625. package/lib/chunk-XPPCVN6T.cjs +0 -53
  1626. package/lib/chunk-XPPCVN6T.cjs.map +0 -1
  1627. package/lib/chunk-XREISFN4.cjs +0 -42
  1628. package/lib/chunk-XREISFN4.cjs.map +0 -1
  1629. package/lib/chunk-XU6ZCB7C.cjs +0 -47
  1630. package/lib/chunk-XU6ZCB7C.cjs.map +0 -1
  1631. package/lib/chunk-XWBNNCYU.cjs +0 -97
  1632. package/lib/chunk-XWBNNCYU.cjs.map +0 -1
  1633. package/lib/chunk-XWIVM4OM.cjs +0 -42
  1634. package/lib/chunk-XWIVM4OM.cjs.map +0 -1
  1635. package/lib/chunk-Y4GGZ4EQ.cjs +0 -101
  1636. package/lib/chunk-Y4GGZ4EQ.cjs.map +0 -1
  1637. package/lib/chunk-YBX7UV5N.cjs +0 -91
  1638. package/lib/chunk-YBX7UV5N.cjs.map +0 -1
  1639. package/lib/chunk-YETXFXFO.cjs +0 -550
  1640. package/lib/chunk-YETXFXFO.cjs.map +0 -1
  1641. package/lib/chunk-YFTJA634.js +0 -36
  1642. package/lib/chunk-YFTJA634.js.map +0 -1
  1643. package/lib/chunk-YNWHCH2N.cjs +0 -26
  1644. package/lib/chunk-YNWHCH2N.cjs.map +0 -1
  1645. package/lib/chunk-YRCCY6RV.js +0 -276
  1646. package/lib/chunk-YRCCY6RV.js.map +0 -1
  1647. package/lib/chunk-YYAEAKBO.cjs +0 -51
  1648. package/lib/chunk-YYAEAKBO.cjs.map +0 -1
  1649. package/lib/chunk-ZGX3A2OH.cjs +0 -42
  1650. package/lib/chunk-ZGX3A2OH.cjs.map +0 -1
  1651. package/lib/chunk-ZJE7A6E6.cjs +0 -39
  1652. package/lib/chunk-ZJE7A6E6.cjs.map +0 -1
  1653. package/lib/chunk-ZJGFUHDX.cjs +0 -54
  1654. package/lib/chunk-ZJGFUHDX.cjs.map +0 -1
  1655. package/lib/chunk-ZM2HKUHW.cjs +0 -50
  1656. package/lib/chunk-ZM2HKUHW.cjs.map +0 -1
  1657. package/lib/chunk-ZVSNJOYP.js +0 -51
  1658. package/lib/chunk-ZVSNJOYP.js.map +0 -1
  1659. package/lib/fetch-DQyRNxTg.d.cts +0 -55
  1660. package/lib/fetch-DQyRNxTg.d.ts +0 -55
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/percentage_discount_promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AAyQA,IAAM,4BAAA,GAAN,MAAM,6BAAA,SAAqCA,6BAAA,CAAyC;AAAA,EAEnF,OAAgB,IAAA,GAAwC,gCAAA;AAAA,EAExD,MAAM,MAAA,CAAO,QAAA,EAA6C,MAAA,EAA2D,OAAA,EAAiE;AACrL,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,6BAAA,CAA6B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvK;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA6C,MAAA,EAA2D,OAAA,EAAiE;AACrL,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAuE,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,6BAAA,CAA6B,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvK;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,6BAAA,CAA6B,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACpH;AAAA,EAEA,MAAM,MAAA,CAAO,6BAAA,EAAqE,MAAA,EAAsC,OAAA,EAA4C;AACnK,IAAA,MAAM,8BAAA,GAAkC,8BAA8D,EAAA,IAAM,6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CAAS,IAAA,KAAS,6BAAA,CAA6B,IAAA;AAAA,EACzE;AAAA,EAGA,aAAa,EAAA,EAAgE;AAC5E,IAAA,OAAO,KAAA,CAAM,qBAAqD,EAAE,CAAA;AAAA,EACrE;AAAA,EAEA,sBAAsB,GAAA,EAAiD;AACtE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsD,GAAG,GAAG,CAAA;AAAA,EAC1E;AAAA,EAGA,IAAA,GAAwC;AACvC,IAAA,OAAO,6BAAA,CAA6B,IAAA;AAAA,EACrC;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,4BAAA,EAA6B;AAClD,IAAO,sCAAA,GAAQ","file":"chunk-XEAHROOE.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'\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 PercentageDiscountPromotionType = 'percentage_discount_promotions'\ntype PercentageDiscountPromotionRel = ResourceRel & { type: PercentageDiscountPromotionType }\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 PercentageDiscountPromotionSort = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort\n// export type PercentageDiscountPromotionFilter = Pick<PercentageDiscountPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceFilter\n\n\ninterface PercentageDiscountPromotion extends Resource {\n\t\n\treadonly type: PercentageDiscountPromotionType\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 discount percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage: number\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 PercentageDiscountPromotionCreate 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 discount percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage: number\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 PercentageDiscountPromotionUpdate 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 discount percentage to be applied.\n\t * @example ```10```\n\t */\n\tpercentage?: number | 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 PercentageDiscountPromotions extends ApiResource<PercentageDiscountPromotion> {\n\n\tstatic readonly TYPE: PercentageDiscountPromotionType = 'percentage_discount_promotions' as const\n\n\tasync create(resource: PercentageDiscountPromotionCreate, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.create<PercentageDiscountPromotionCreate, PercentageDiscountPromotion>({ ...resource, type: PercentageDiscountPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: PercentageDiscountPromotionUpdate, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ ...resource, type: PercentageDiscountPromotions.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: PercentageDiscountPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync skus(percentageDiscountPromotionId: string | PercentageDiscountPromotion, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _percentageDiscountPromotionId = (percentageDiscountPromotionId as PercentageDiscountPromotion).id || percentageDiscountPromotionId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `percentage_discount_promotions/${_percentageDiscountPromotionId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync _disable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | PercentageDiscountPromotion, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | PercentageDiscountPromotion, triggerValue: string, params?: QueryParamsRetrieve<PercentageDiscountPromotion>, options?: ResourcesConfig): Promise<PercentageDiscountPromotion> {\n\t\treturn this.resources.update<PercentageDiscountPromotionUpdate, PercentageDiscountPromotion>({ id: (typeof id === 'string')? id: id.id, type: PercentageDiscountPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisPercentageDiscountPromotion(resource: any): resource is PercentageDiscountPromotion {\n\t\treturn resource.type && (resource.type === PercentageDiscountPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PercentageDiscountPromotionRel {\n\t\treturn super.relationshipOneToOne<PercentageDiscountPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PercentageDiscountPromotionRel[] {\n\t\treturn super.relationshipOneToMany<PercentageDiscountPromotionRel>(...ids)\n\t}\n\n\n\ttype(): PercentageDiscountPromotionType {\n\t\treturn PercentageDiscountPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new PercentageDiscountPromotions()\nexport default instance\n\nexport type { PercentageDiscountPromotion, PercentageDiscountPromotionCreate, PercentageDiscountPromotions, PercentageDiscountPromotionType, PercentageDiscountPromotionUpdate }\n"]}
@@ -0,0 +1,57 @@
1
+ 'use strict';
2
+
3
+ var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
4
+
5
+ // src/resources/addresses.ts
6
+ var Addresses = class _Addresses extends chunkY56DKJ4Z_cjs.ApiResource {
7
+ static TYPE = "addresses";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _Addresses.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _Addresses.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _Addresses.TYPE } : id, options);
16
+ }
17
+ async geocoder(addressId, params, options) {
18
+ const _addressId = addressId.id || addressId;
19
+ return this.resources.fetch({ type: "geocoders" }, `addresses/${_addressId}/geocoder`, params, options);
20
+ }
21
+ async events(addressId, params, options) {
22
+ const _addressId = addressId.id || addressId;
23
+ return this.resources.fetch({ type: "events" }, `addresses/${_addressId}/events`, params, options);
24
+ }
25
+ async tags(addressId, params, options) {
26
+ const _addressId = addressId.id || addressId;
27
+ return this.resources.fetch({ type: "tags" }, `addresses/${_addressId}/tags`, params, options);
28
+ }
29
+ async event_stores(addressId, params, options) {
30
+ const _addressId = addressId.id || addressId;
31
+ return this.resources.fetch({ type: "event_stores" }, `addresses/${_addressId}/event_stores`, params, options);
32
+ }
33
+ async _add_tags(id, triggerValue, params, options) {
34
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _add_tags: triggerValue }, params, options);
35
+ }
36
+ async _remove_tags(id, triggerValue, params, options) {
37
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Addresses.TYPE, _remove_tags: triggerValue }, params, options);
38
+ }
39
+ isAddress(resource) {
40
+ return resource.type && resource.type === _Addresses.TYPE;
41
+ }
42
+ relationship(id) {
43
+ return super.relationshipOneToOne(id);
44
+ }
45
+ relationshipToMany(...ids) {
46
+ return super.relationshipOneToMany(...ids);
47
+ }
48
+ type() {
49
+ return _Addresses.TYPE;
50
+ }
51
+ };
52
+ var instance = new Addresses();
53
+ var addresses_default = instance;
54
+
55
+ exports.addresses_default = addresses_default;
56
+ //# sourceMappingURL=chunk-XEPHQGPG.cjs.map
57
+ //# sourceMappingURL=chunk-XEPHQGPG.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/addresses.ts"],"names":["ApiResource"],"mappings":";;;;;AA+UA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAqB;AAAA,EAE5C,OAAgB,IAAA,GAAoB,WAAA;AAAA,EAEpC,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAyB,MAAA,EAAuC,OAAA,EAA6C;AACzH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC5G;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,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QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Geocoder, GeocoderType } from './geocoders'\nimport type { Tag, TagType } from './tags'\n\n\ntype AddressType = 'addresses'\ntype AddressRel = ResourceRel & { type: AddressType }\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type AddressSort = Pick<Address, 'id' | 'city' | 'state_code' | 'country_code'> & ResourceSort\n// export type AddressFilter = Pick<Address, 'id' | 'business' | 'first_name' | 'last_name' | 'company' | 'line_1' | 'line_2' | 'city' | 'zip_code' | 'state_code' | 'country_code' | 'phone' | 'email' | 'notes' | 'lat' | 'lng' | 'billing_info'> & ResourceFilter\n\n\ninterface Address extends Resource {\n\t\n\treadonly type: AddressType\n\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Company name (business) of first name and last name (personal).\n\t * @example ```\"John Smith\"```\n\t */\n\tfull_name?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Compact description of the address location, without the full name.\n\t * @example ```\"2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tfull_address?: string | null\n\t/** \n\t * Compact description of the address location, including the full name.\n\t * @example ```\"John Smith, 2883 Geraldine Lane Apt.23, 10013 New York NY (US) (212) 646-338-1228\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Indicates if the latitude and logitude are present, either geocoded or manually updated.\n\t * @example ```true```\n\t */\n\tis_localized?: boolean | null\n\t/** \n\t * Indicates if the address has been successfully geocoded.\n\t * @example ```true```\n\t */\n\tis_geocoded?: boolean | null\n\t/** \n\t * The geocoder provider name (either Google or Bing).\n\t * @example ```\"google\"```\n\t */\n\tprovider_name?: string | null\n\t/** \n\t * The map url of the geocoded address (if geocoded).\n\t * @example ```\"https://www.google.com/maps/search/?api=1&query=40.6971494,-74.2598672\"```\n\t */\n\tmap_url?: string | null\n\t/** \n\t * The static map image url of the geocoded address (if geocoded).\n\t * @example ```\"https://maps.googleapis.com/maps/api/staticmap?center=40.6971494,-74.2598672&size=640x320&zoom=15\"```\n\t */\n\tstatic_map_url?: string | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: Geocoder | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AddressCreate extends ResourceCreate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1: string\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity: string\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code: string\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone: string\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface AddressUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if it's a business or a personal address.\n\t */\n\tbusiness?: boolean | null\n\t/** \n\t * Address first name (personal).\n\t * @example ```\"John\"```\n\t */\n\tfirst_name?: string | null\n\t/** \n\t * Address last name (personal).\n\t * @example ```\"Smith\"```\n\t */\n\tlast_name?: string | null\n\t/** \n\t * Address company name (business).\n\t * @example ```\"The Red Brand Inc.\"```\n\t */\n\tcompany?: string | null\n\t/** \n\t * Address line 1, i.e. Street address, PO Box.\n\t * @example ```\"2883 Geraldine Lane\"```\n\t */\n\tline_1?: string | null\n\t/** \n\t * Address line 2, i.e. Apartment, Suite, Building.\n\t * @example ```\"Apt.23\"```\n\t */\n\tline_2?: string | null\n\t/** \n\t * Address city.\n\t * @example ```\"New York\"```\n\t */\n\tcity?: string | null\n\t/** \n\t * ZIP or postal code.\n\t * @example ```\"10013\"```\n\t */\n\tzip_code?: string | null\n\t/** \n\t * State, province or region code.\n\t * @example ```\"NY\"```\n\t */\n\tstate_code?: string | null\n\t/** \n\t * The international 2-letter country code as defined by the ISO 3166-1 standard.\n\t * @example ```\"US\"```\n\t */\n\tcountry_code?: string | null\n\t/** \n\t * Phone number (including extension).\n\t * @example ```\"(212) 646-338-1228\"```\n\t */\n\tphone?: string | null\n\t/** \n\t * Email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * A free notes attached to the address. When used as a shipping address, this can be useful to let the customers add specific delivery instructions.\n\t * @example ```\"Please ring the bell twice\"```\n\t */\n\tnotes?: string | null\n\t/** \n\t * The address geocoded latitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```40.6971494```\n\t */\n\tlat?: number | null\n\t/** \n\t * The address geocoded longitude. This is automatically generated when creating a shipping/billing address for an order and a valid geocoder is attached to the order's market.\n\t * @example ```-74.2598672```\n\t */\n\tlng?: number | null\n\t/** \n\t * Customer's billing information (i.e. VAT number, codice fiscale).\n\t * @example ```\"VAT ID IT02382940977\"```\n\t */\n\tbilling_info?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tgeocoder?: GeocoderRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Addresses extends ApiResource<Address> {\n\n\tstatic readonly TYPE: AddressType = 'addresses' as const\n\n\tasync create(resource: AddressCreate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.create<AddressCreate, Address>({ ...resource, type: Addresses.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AddressUpdate, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ ...resource, type: Addresses.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: Addresses.TYPE } : id, options)\n\t}\n\n\tasync geocoder(addressId: string | Address, params?: QueryParamsRetrieve<Geocoder>, options?: ResourcesConfig): Promise<Geocoder> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Geocoder>({ type: 'geocoders' }, `addresses/${_addressId}/geocoder`, params, options) as unknown as Geocoder\n\t}\n\n\tasync events(addressId: string | Address, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `addresses/${_addressId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(addressId: string | Address, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `addresses/${_addressId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(addressId: string | Address, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _addressId = (addressId as Address).id || addressId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `addresses/${_addressId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Address, triggerValue: string, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\treturn this.resources.update<AddressUpdate, Address>({ id: (typeof id === 'string')? id: id.id, type: Addresses.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisAddress(resource: any): resource is Address {\n\t\treturn resource.type && (resource.type === Addresses.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AddressRel {\n\t\treturn super.relationshipOneToOne<AddressRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AddressRel[] {\n\t\treturn super.relationshipOneToMany<AddressRel>(...ids)\n\t}\n\n\n\ttype(): AddressType {\n\t\treturn Addresses.TYPE\n\t}\n\n}\n\n\nconst instance = new Addresses()\nexport default instance\n\nexport type { Address, AddressCreate, Addresses, AddressType, AddressUpdate }\n"]}
@@ -0,0 +1,52 @@
1
+ import { ApiResource } from './chunk-USIBTSYD.js';
2
+
3
+ // src/resources/vertex_accounts.ts
4
+ var VertexAccounts = class _VertexAccounts extends ApiResource {
5
+ static TYPE = "vertex_accounts";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _VertexAccounts.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _VertexAccounts.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _VertexAccounts.TYPE } : id, options);
14
+ }
15
+ async markets(vertexAccountId, params, options) {
16
+ const _vertexAccountId = vertexAccountId.id || vertexAccountId;
17
+ return this.resources.fetch({ type: "markets" }, `vertex_accounts/${_vertexAccountId}/markets`, params, options);
18
+ }
19
+ async attachments(vertexAccountId, params, options) {
20
+ const _vertexAccountId = vertexAccountId.id || vertexAccountId;
21
+ return this.resources.fetch({ type: "attachments" }, `vertex_accounts/${_vertexAccountId}/attachments`, params, options);
22
+ }
23
+ async events(vertexAccountId, params, options) {
24
+ const _vertexAccountId = vertexAccountId.id || vertexAccountId;
25
+ return this.resources.fetch({ type: "events" }, `vertex_accounts/${_vertexAccountId}/events`, params, options);
26
+ }
27
+ async event_stores(vertexAccountId, params, options) {
28
+ const _vertexAccountId = vertexAccountId.id || vertexAccountId;
29
+ return this.resources.fetch({ type: "event_stores" }, `vertex_accounts/${_vertexAccountId}/event_stores`, params, options);
30
+ }
31
+ async _refresh_token(id, params, options) {
32
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _VertexAccounts.TYPE, _refresh_token: true }, params, options);
33
+ }
34
+ isVertexAccount(resource) {
35
+ return resource.type && resource.type === _VertexAccounts.TYPE;
36
+ }
37
+ relationship(id) {
38
+ return super.relationshipOneToOne(id);
39
+ }
40
+ relationshipToMany(...ids) {
41
+ return super.relationshipOneToMany(...ids);
42
+ }
43
+ type() {
44
+ return _VertexAccounts.TYPE;
45
+ }
46
+ };
47
+ var instance = new VertexAccounts();
48
+ var vertex_accounts_default = instance;
49
+
50
+ export { vertex_accounts_default };
51
+ //# sourceMappingURL=chunk-XI6YNNGF.js.map
52
+ //# sourceMappingURL=chunk-XI6YNNGF.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/vertex_accounts.ts"],"names":[],"mappings":";;;AAwJA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA+B,MAAA,EAA6C,OAAA,EAAmD;AAC3I,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,eAAA,CAAe,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7H;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,eAAA,CAAe,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACtG;AAAA,EAEA,MAAM,OAAA,CAAQ,eAAA,EAAyC,MAAA,EAAkC,OAAA,EAA0D;A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OAAA,EAAmD;AAChJ,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAA2C,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,eAAA,CAAe,IAAA,EAAM,gBAAgB,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC/K;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-XI6YNNGF.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'\n\n\ntype VertexAccountType = 'vertex_accounts'\ntype VertexAccountRel = ResourceRel & { type: VertexAccountType }\n\n\nexport type VertexAccountSort = Pick<VertexAccount, 'id' | 'name'> & ResourceSort\n// export type VertexAccountFilter = Pick<VertexAccount, 'id' | 'name'> & ResourceFilter\n\n\ninterface VertexAccount extends Resource {\n\t\n\treadonly type: VertexAccountType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Vertex account kind. One of 'cloud' (default), 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The OAuth audience sent with the token request, when required by the deployment.\n\t * @example ```\"verx://xyz\"```\n\t */\n\taudience?: string | null\n\t/** \n\t * The API endpoint as computed by specified kind and baseurl.\n\t * @example ```\"https://my_baseurl.ondemand.vertexinc.com\"```\n\t */\n\tapi_endpoint?: string | null\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * The expiration date/time of the access token.\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\ttoken_expires_at?: string | null\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface VertexAccountCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\t/** \n\t * The Vertex account kind. One of 'cloud' (default), 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The OAuth audience sent with the token request, when required by the deployment.\n\t * @example ```\"verx://xyz\"```\n\t */\n\taudience?: string | null\n\t/** \n\t * The Vertex account client ID.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The Vertex account client secret.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_secret: string\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t\n}\n\n\ninterface VertexAccountUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The Vertex account kind. One of 'cloud' (default), 'on_demand', or 'on_premise'.\n\t * @example ```\"cloud\"```\n\t */\n\tkind?: 'cloud' | 'on_demand' | 'on_premise' | null\n\t/** \n\t * The Vertex API baseurl, optional for 'cloud' kind.\n\t * @example ```\"yourbaseurl\"```\n\t */\n\tbaseurl?: string | null\n\t/** \n\t * The OAuth audience sent with the token request, when required by the deployment.\n\t * @example ```\"verx://xyz\"```\n\t */\n\taudience?: string | null\n\t/** \n\t * The Vertex account client ID.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_id?: string | null\n\t/** \n\t * The Vertex account client secret.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * Indicates if the transaction will be recorded and visible on the Vertex website.\n\t * @example ```true```\n\t */\n\tcommit_invoice?: boolean | null\n\t/** \n\t * Send this attribute if you want to manually refresh the access token.\n\t * @example ```true```\n\t */\n\t_refresh_token?: boolean | null\n\t\n}\n\n\nclass VertexAccounts extends ApiResource<VertexAccount> {\n\n\tstatic readonly TYPE: VertexAccountType = 'vertex_accounts' as const\n\n\tasync create(resource: VertexAccountCreate, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.create<VertexAccountCreate, VertexAccount>({ ...resource, type: VertexAccounts.TYPE }, params, options)\n\t}\n\n\tasync update(resource: VertexAccountUpdate, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.update<VertexAccountUpdate, VertexAccount>({ ...resource, type: VertexAccounts.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: VertexAccounts.TYPE } : id, options)\n\t}\n\n\tasync markets(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `vertex_accounts/${_vertexAccountId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `vertex_accounts/${_vertexAccountId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(vertexAccountId: string | VertexAccount, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `vertex_accounts/${_vertexAccountId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(vertexAccountId: string | VertexAccount, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _vertexAccountId = (vertexAccountId as VertexAccount).id || vertexAccountId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `vertex_accounts/${_vertexAccountId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _refresh_token(id: string | VertexAccount, params?: QueryParamsRetrieve<VertexAccount>, options?: ResourcesConfig): Promise<VertexAccount> {\n\t\treturn this.resources.update<VertexAccountUpdate, VertexAccount>({ id: (typeof id === 'string')? id: id.id, type: VertexAccounts.TYPE, _refresh_token: true }, params, options)\n\t}\n\n\n\tisVertexAccount(resource: any): resource is VertexAccount {\n\t\treturn resource.type && (resource.type === VertexAccounts.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): VertexAccountRel {\n\t\treturn super.relationshipOneToOne<VertexAccountRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): VertexAccountRel[] {\n\t\treturn super.relationshipOneToMany<VertexAccountRel>(...ids)\n\t}\n\n\n\ttype(): VertexAccountType {\n\t\treturn VertexAccounts.TYPE\n\t}\n\n}\n\n\nconst instance = new VertexAccounts()\nexport default instance\n\nexport type { VertexAccount, VertexAccountCreate, VertexAccounts, VertexAccountType, VertexAccountUpdate }\n"]}
@@ -0,0 +1,45 @@
1
+ import { API_SCHEMA_VERSION } from './chunk-EHEMWPTO.js';
2
+ import { isTokenExpired } from './chunk-4MV6VICV.js';
3
+ import { isTaggable, isDeletable, isUpdatable, isCreatable, isSingleton, getSingletons, getResources } from './chunk-QQZRPK6S.js';
4
+ import { isApiError, isSdkError } from './chunk-PIHQS6OG.js';
5
+
6
+ // src/static.ts
7
+ var CommerceLayerStatic = {
8
+ resources: (sort) => {
9
+ return getResources(sort);
10
+ },
11
+ singletons: (sort) => {
12
+ return getSingletons(sort);
13
+ },
14
+ isSingleton: (resource) => {
15
+ return isSingleton(resource);
16
+ },
17
+ isCreatable: (resource) => {
18
+ return isCreatable(resource);
19
+ },
20
+ isUpdatable: (resource) => {
21
+ return isUpdatable(resource);
22
+ },
23
+ isDeletable: (resource) => {
24
+ return isDeletable(resource);
25
+ },
26
+ isTaggable: (resource) => {
27
+ return isTaggable(resource);
28
+ },
29
+ isSdkError: (error) => {
30
+ return isSdkError(error);
31
+ },
32
+ isApiError: (error) => {
33
+ return isApiError(error);
34
+ },
35
+ isTokenExpired: (token) => {
36
+ return isTokenExpired(token);
37
+ },
38
+ get schemaVersion() {
39
+ return API_SCHEMA_VERSION;
40
+ }
41
+ };
42
+
43
+ export { Comm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AA,EAAmB;AAEzD","file":"chunk-XJ5QSB4X.js","sourcesContent":["\nimport { API_SCHEMA_VERSION } from './commercelayer'\nimport type { ResourceTypeLock } from './enum'\nimport { getResources, getSingletons, isCreatable, isDeletable, isSingleton, isTaggable, isUpdatable } from './enum'\nimport { type ApiError, isApiError, isSdkError, type SdkError } from './error'\nimport { isTokenExpired } from './util'\n\n\n/* Static functions */\nexport const CommerceLayerStatic = {\n\n\tresources: (sort?: boolean): readonly string[] => {\n\t\treturn getResources(sort)\n\t},\n\n\tsingletons: (sort?: boolean): readonly string[] => {\n\t\treturn getSingletons(sort)\n\t},\n\n\tisSingleton: (resource: ResourceTypeLock): boolean => {\n\t\treturn isSingleton(resource)\n\t},\n\n\tisCreatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isCreatable(resource)\n\t},\n\n\tisUpdatable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isUpdatable(resource)\n\t},\n\n\tisDeletable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isDeletable(resource)\n\t},\n\n\tisTaggable: (resource: ResourceTypeLock): boolean => {\n\t\treturn isTaggable(resource)\n\t},\n\n\tisSdkError: (error: unknown): error is SdkError => {\n\t\treturn isSdkError(error)\n\t},\n\n\tisApiError: (error: unknown): error is ApiError => {\n\t\treturn isApiError(error)\n\t},\n\n\tisTokenExpired: (token: string): boolean => {\n\t\treturn isTokenExpired(token)\n\t},\n\n\tget schemaVersion(): string { return API_SCHEMA_VERSION }\n\n}\n"]}
@@ -0,0 +1,47 @@
1
+ import { ApiResource } from './chunk-USIBTSYD.js';
2
+
3
+ // src/resources/links.ts
4
+ var Links = class _Links extends ApiResource {
5
+ static TYPE = "links";
6
+ async create(resource, params, options) {
7
+ return this.resources.create({ ...resource, type: _Links.TYPE }, params, options);
8
+ }
9
+ async update(resource, params, options) {
10
+ return this.resources.update({ ...resource, type: _Links.TYPE }, params, options);
11
+ }
12
+ async delete(id, options) {
13
+ await this.resources.delete(typeof id === "string" ? { id, type: _Links.TYPE } : id, options);
14
+ }
15
+ async events(linkId, params, options) {
16
+ const _linkId = linkId.id || linkId;
17
+ return this.resources.fetch({ type: "events" }, `links/${_linkId}/events`, params, options);
18
+ }
19
+ async event_stores(linkId, params, options) {
20
+ const _linkId = linkId.id || linkId;
21
+ return this.resources.fetch({ type: "event_stores" }, `links/${_linkId}/event_stores`, params, options);
22
+ }
23
+ async _disable(id, params, options) {
24
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Links.TYPE, _disable: true }, params, options);
25
+ }
26
+ async _enable(id, params, options) {
27
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Links.TYPE, _enable: true }, params, options);
28
+ }
29
+ isLink(resource) {
30
+ return resource.type && resource.type === _Links.TYPE;
31
+ }
32
+ relationship(id) {
33
+ return super.relationshipOneToOne(id);
34
+ }
35
+ relationshipToMany(...ids) {
36
+ return super.relationshipOneToMany(...ids);
37
+ }
38
+ type() {
39
+ return _Links.TYPE;
40
+ }
41
+ };
42
+ var instance = new Links();
43
+ var links_default = instance;
44
+
45
+ export { links_default };
46
+ //# sourceMappingURL=chunk-XJHXJ2X2.js.map
47
+ //# sourceMappingURL=chunk-XJHXJ2X2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/links.ts"],"names":[],"mappings":";;;AA4MA,IAAM,KAAA,GAAN,MAAM,MAAA,SAAc,WAAA,CAAkB;AAAA,EAErC,OAAgB,IAAA,GAAiB,OAAA;AAAA,EAEjC,MAAM,MAAA,CAAO,QAAA,EAAsB,MAAA,EAAoC,OAAA,EAA0C;AAChH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyB,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,MAAA,CAAM,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAsB,MAAA,EAAoC,OAAA,EAA0C;AAChH,IAAA,OAAO,IAAA,CA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,OAAO,CAAA;AAAA,EAC9I;AAAA,EAEA,MAAM,OAAA,CAAQ,EAAA,EAAmB,MAAA,EAAoC,OAAA,EAA0C;AAC9G,IAAA,OAAO,KAAK,SAAA,CAAU,MAAA,CAAyB,EAAE,EAAA,EAAK,OAAO,OAAO,QAAA,GAAW,EAAA,GAAI,EAAA,CAAG,EAAA,EAAI,MAAM,MAAA,CAAM,IAAA,EAAM,SAAS,IAAA,EAAK,EAAG,QAAQ,OAAO,CAAA;AAAA,EAC7I;AAAA,EAGA,OAAO,QAAA,EAAiC;AACvC,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,MAAA,CAAM,IAAA;AAAA,EAClD;AAAA,EAGA,aAAa,EAAA,EAAyC;AACrD,IAAA,OAAO,KAAA,CAAM,qBAA8B,EAAE,CAAA;AAAA,EAC9C;AAAA,EAEA,sBAAsB,GAAA,EAA0B;AAC/C,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA+B,GAAG,GAAG,CAAA;AAAA,EACnD;AAAA,EAGA,IAAA,GAAiB;AAChB,IAAA,OAAO,MAAA,CAAM,IAAA;AAAA,EACd;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,KAAA,EAAM;AAC3B,IAAO,aAAA,GAAQ","file":"chunk-XJHXJ2X2.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 { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Order, OrderType } from './orders'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku, SkuType } from './skus'\n\n\ntype LinkType = 'links'\ntype LinkRel = ResourceRel & { type: LinkType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\n\n\nexport type LinkSort = Pick<Link, 'id' | 'name' | 'starts_at' | 'expires_at' | 'item_type' | 'disabled_at'> & ResourceSort\n// export type LinkFilter = Pick<Link, 'id' | 'name' | 'client_id' | 'scope' | 'starts_at' | 'expires_at' | 'item_type' | 'params' | 'disabled_at'> & ResourceFilter\n\n\ninterface Link extends Resource {\n\t\n\treadonly type: LinkType\n\n\t/** \n\t * The link internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The link application client id, used to fetch JWT.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The link application scope, used to fetch JWT.\n\t * @example ```\"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr\"```\n\t */\n\tscope: string\n\t/** \n\t * The activation date/time of this link.\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 link (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 * Indicates if the link is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The link status. One of 'disabled', 'expired', 'pending', or 'active'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | null\n\t/** \n\t * The link URL second level domain.\n\t * @example ```\"commercelayer.link\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The link URL.\n\t * @example ```\"https://commercelayer.link/ZXUtd2VzdC0xLzE5ZjBlMGVlLTg4OGMtNDQ1Yi1iYTA0LTg3MTUxY2FjZjFmYQ\"```\n\t */\n\turl?: string | null\n\t/** \n\t * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.\n\t * @example ```\"orders\"```\n\t */\n\titem_type?: 'orders' | 'skus' | 'sku_lists' | null\n\t/** \n\t * The link params to be passed in URL the query string.\n\t * @example ```{\"param1\":\"ABC\",\"param2\":\"XYZ\"}```\n\t */\n\tparams?: Record<string, any> | 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\n\titem?: Order | Sku | SkuList | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface LinkCreate extends ResourceCreate {\n\t\n\t/** \n\t * The link internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname: string\n\t/** \n\t * The link application client id, used to fetch JWT.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id: string\n\t/** \n\t * The link application scope, used to fetch JWT.\n\t * @example ```\"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr\"```\n\t */\n\tscope: string\n\t/** \n\t * The activation date/time of this link.\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 link (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 link URL second level domain.\n\t * @example ```\"commercelayer.link\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The type of the associated item. One of 'orders', 'skus', or 'sku_lists'.\n\t * @example ```\"orders\"```\n\t */\n\titem_type?: 'orders' | 'skus' | 'sku_lists' | null\n\t/** \n\t * The link params to be passed in URL the query string.\n\t * @example ```{\"param1\":\"ABC\",\"param2\":\"XYZ\"}```\n\t */\n\tparams?: Record<string, any> | 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\n\titem: OrderRel | SkuRel | SkuListRel\n\n}\n\n\ninterface LinkUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The link internal name.\n\t * @example ```\"FW SALE 2023\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The link application client id, used to fetch JWT.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tclient_id?: string | null\n\t/** \n\t * The link application scope, used to fetch JWT.\n\t * @example ```\"market:id:GhvCxsElAQ,market:id:kJhgVcxZDr\"```\n\t */\n\tscope?: string | null\n\t/** \n\t * The activation date/time of this link.\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 link (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 link URL second level domain.\n\t * @example ```\"commercelayer.link\"```\n\t */\n\tdomain?: string | null\n\t/** \n\t * The link params to be passed in URL the query string.\n\t * @example ```{\"param1\":\"ABC\",\"param2\":\"XYZ\"}```\n\t */\n\tparams?: Record<string, any> | 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\n\titem?: OrderRel | SkuRel | SkuListRel | null\n\n}\n\n\nclass Links extends ApiResource<Link> {\n\n\tstatic readonly TYPE: LinkType = 'links' as const\n\n\tasync create(resource: LinkCreate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.create<LinkCreate, Link>({ ...resource, type: Links.TYPE }, params, options)\n\t}\n\n\tasync update(resource: LinkUpdate, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.update<LinkUpdate, Link>({ ...resource, type: Links.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: Links.TYPE } : id, options)\n\t}\n\n\tasync events(linkId: string | Link, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _linkId = (linkId as Link).id || linkId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `links/${_linkId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(linkId: string | Link, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _linkId = (linkId as Link).id || linkId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `links/${_linkId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.update<LinkUpdate, Link>({ id: (typeof id === 'string')? id: id.id, type: Links.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | Link, params?: QueryParamsRetrieve<Link>, options?: ResourcesConfig): Promise<Link> {\n\t\treturn this.resources.update<LinkUpdate, Link>({ id: (typeof id === 'string')? id: id.id, type: Links.TYPE, _enable: true }, params, options)\n\t}\n\n\n\tisLink(resource: any): resource is Link {\n\t\treturn resource.type && (resource.type === Links.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): LinkRel {\n\t\treturn super.relationshipOneToOne<LinkRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): LinkRel[] {\n\t\treturn super.relationshipOneToMany<LinkRel>(...ids)\n\t}\n\n\n\ttype(): LinkType {\n\t\treturn Links.TYPE\n\t}\n\n}\n\n\nconst instance = new Links()\nexport default instance\n\nexport type { Link, LinkCreate, Links, LinkType, LinkUpdate }\n"]}
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
4
+
5
+ // src/resources/stripe_payments.ts
6
+ var StripePayments = class _StripePayments extends chunkY56DKJ4Z_cjs.ApiResource {
7
+ static TYPE = "stripe_payments";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _StripePayments.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _StripePayments.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _StripePayments.TYPE } : id, options);
16
+ }
17
+ async order(stripePaymentId, params, options) {
18
+ const _stripePaymentId = stripePaymentId.id || stripePaymentId;
19
+ return this.resources.fetch({ type: "orders" }, `stripe_payments/${_stripePaymentId}/order`, params, options);
20
+ }
21
+ async payment_gateway(stripePaymentId, params, options) {
22
+ const _stripePaymentId = stripePaymentId.id || stripePaymentId;
23
+ return this.resources.fetch({ type: "payment_gateways" }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options);
24
+ }
25
+ async event_stores(stripePaymentId, params, options) {
26
+ const _stripePaymentId = stripePaymentId.id || stripePaymentId;
27
+ return this.resources.fetch({ type: "event_stores" }, `stripe_payments/${_stripePaymentId}/event_stores`, params, options);
28
+ }
29
+ async _update(id, params, options) {
30
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _update: true }, params, options);
31
+ }
32
+ async _refresh(id, params, options) {
33
+ return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _StripePayments.TYPE, _refresh: true }, params, options);
34
+ }
35
+ isStripePayment(resource) {
36
+ return resource.type && resource.type === _StripePayments.TYPE;
37
+ }
38
+ relationship(id) {
39
+ return super.relationshipOneToOne(id);
40
+ }
41
+ relationshipToMany(...ids) {
42
+ return super.relationshipOneToMany(...ids);
43
+ }
44
+ type() {
45
+ return _StripePayments.TYPE;
46
+ }
47
+ };
48
+ var instance = new StripePayments();
49
+ var stripe_payments_default = instance;
50
+
51
+ exports.stripe_payments_default = stripe_payments_default;
52
+ //# sourceMappingURL=chunk-XJP7O6DK.cjs.map
53
+ //# sourceMappingURL=chunk-XJP7O6DK.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/stripe_payments.ts"],"names":["ApiResource"],"mappings":";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,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-XJP7O6DK.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'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\nimport type { PaymentGateway } from './payment_gateways'\n\n\ntype StripePaymentType = 'stripe_payments'\ntype StripePaymentRel = ResourceRel & { type: StripePaymentType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type StripePaymentSort = Pick<StripePayment, 'id'> & ResourceSort\n// export type StripePaymentFilter = Pick<StripePayment, 'id'> & ResourceFilter\n\n\ninterface StripePayment extends Resource {\n\t\n\treadonly type: StripePaymentType\n\n\t/** \n\t * The Stripe payment intent ID. Required to identify a payment session on stripe.\n\t * @example ```\"pi_1234XXX\"```\n\t */\n\tstripe_id?: string | null\n\t/** \n\t * The Stripe payment intent client secret. Required to create a charge through Stripe.js.\n\t * @example ```\"pi_1234XXX_secret_5678YYY\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * The account (if any) for which the funds of the PaymentIntent are intended.\n\t * @example ```\"acct_xxxx-yyyy-zzzz\"```\n\t */\n\tconnected_account?: string | null\n\t/** \n\t * The Stripe charge ID. Identifies money movement upon the payment intent confirmation.\n\t * @example ```\"ch_1234XXX\"```\n\t */\n\tcharge_id?: string | null\n\t/** \n\t * The Stripe publishable API key.\n\t * @example ```\"pk_live_xxxx-yyyy-zzzz\"```\n\t */\n\tpublishable_key?: string | null\n\t/** \n\t * The Stripe account ID that these funds are intended for.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ton_behalf_of?: string | null\n\t/** \n\t * A string that identifies the resulting payment as part of a group.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttransfer_group?: string | null\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * Stripe 'payment_method', set by webhook.\n\t * @example ```{\"id\":\"pm_xxx\"}```\n\t */\n\tpayment_method?: Record<string, any> | null\n\t/** \n\t * Indicates if the order current amount differs form the one of the created payment intent.\n\t */\n\tmismatched_amounts?: boolean | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The email address to send the receipt to.\n\t * @example ```\"john@example.com\"```\n\t */\n\treceipt_email?: string | null\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tpayment_gateway?: PaymentGateway | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface StripePaymentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The Stripe payment intent ID. Required to identify a payment session on stripe.\n\t * @example ```\"pi_1234XXX\"```\n\t */\n\tstripe_id?: string | null\n\t/** \n\t * The Stripe payment intent client secret. Required to create a charge through Stripe.js.\n\t * @example ```\"pi_1234XXX_secret_5678YYY\"```\n\t */\n\tclient_secret?: string | null\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * The email address to send the receipt to.\n\t * @example ```\"john@example.com\"```\n\t */\n\treceipt_email?: string | null\n\n\torder: OrderRel\n\n}\n\n\ninterface StripePaymentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Stripe payment options: 'customer', 'payment_method', 'return_url', etc. Check Stripe payment intent API for more details.\n\t * @example ```{\"customer\":\"cus_xxx\",\"payment_method\":\"pm_xxx\"}```\n\t */\n\toptions?: Record<string, any> | null\n\t/** \n\t * The URL to return to when a redirect payment is completed.\n\t * @example ```\"https://yourdomain.com/thankyou\"```\n\t */\n\treturn_url?: string | null\n\t/** \n\t * Send this attribute if you want to update the created payment intent with fresh order data.\n\t * @example ```true```\n\t */\n\t_update?: boolean | null\n\t/** \n\t * Send this attribute if you want to refresh the payment status, can be used as webhooks fallback logic.\n\t * @example ```true```\n\t */\n\t_refresh?: boolean | null\n\n\torder?: OrderRel | null\n\n}\n\n\nclass StripePayments extends ApiResource<StripePayment> {\n\n\tstatic readonly TYPE: StripePaymentType = 'stripe_payments' as const\n\n\tasync create(resource: StripePaymentCreate, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.create<StripePaymentCreate, StripePayment>({ ...resource, type: StripePayments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: StripePaymentUpdate, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ ...resource, type: StripePayments.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: StripePayments.TYPE } : id, options)\n\t}\n\n\tasync order(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `stripe_payments/${_stripePaymentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync payment_gateway(stripePaymentId: string | StripePayment, params?: QueryParamsRetrieve<PaymentGateway>, options?: ResourcesConfig): Promise<PaymentGateway> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<PaymentGateway>({ type: 'payment_gateways' }, `stripe_payments/${_stripePaymentId}/payment_gateway`, params, options) as unknown as PaymentGateway\n\t}\n\n\tasync event_stores(stripePaymentId: string | StripePayment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _stripePaymentId = (stripePaymentId as StripePayment).id || stripePaymentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `stripe_payments/${_stripePaymentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _update(id: string | StripePayment, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ id: (typeof id === 'string')? id: id.id, type: StripePayments.TYPE, _update: true }, params, options)\n\t}\n\n\tasync _refresh(id: string | StripePayment, params?: QueryParamsRetrieve<StripePayment>, options?: ResourcesConfig): Promise<StripePayment> {\n\t\treturn this.resources.update<StripePaymentUpdate, StripePayment>({ id: (typeof id === 'string')? id: id.id, type: StripePayments.TYPE, _refresh: true }, params, options)\n\t}\n\n\n\tisStripePayment(resource: any): resource is StripePayment {\n\t\treturn resource.type && (resource.type === StripePayments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): StripePaymentRel {\n\t\treturn super.relationshipOneToOne<StripePaymentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): StripePaymentRel[] {\n\t\treturn super.relationshipOneToMany<StripePaymentRel>(...ids)\n\t}\n\n\n\ttype(): StripePaymentType {\n\t\treturn StripePayments.TYPE\n\t}\n\n}\n\n\nconst instance = new StripePayments()\nexport default instance\n\nexport type { StripePayment, StripePaymentCreate, StripePayments, StripePaymentType, StripePaymentUpdate }\n"]}
@@ -0,0 +1,40 @@
1
+ import { ApiResource } from './chunk-USIBTSYD.js';
2
+
3
+ // src/resources/tax_calculators.ts
4
+ var TaxCalculators = class _TaxCalculators extends ApiResource {
5
+ static TYPE = "tax_calculators";
6
+ async markets(taxCalculatorId, params, options) {
7
+ const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
8
+ return this.resources.fetch({ type: "markets" }, `tax_calculators/${_taxCalculatorId}/markets`, params, options);
9
+ }
10
+ async attachments(taxCalculatorId, params, options) {
11
+ const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
12
+ return this.resources.fetch({ type: "attachments" }, `tax_calculators/${_taxCalculatorId}/attachments`, params, options);
13
+ }
14
+ async events(taxCalculatorId, params, options) {
15
+ const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
16
+ return this.resources.fetch({ type: "events" }, `tax_calculators/${_taxCalculatorId}/events`, params, options);
17
+ }
18
+ async event_stores(taxCalculatorId, params, options) {
19
+ const _taxCalculatorId = taxCalculatorId.id || taxCalculatorId;
20
+ return this.resources.fetch({ type: "event_stores" }, `tax_calculators/${_taxCalculatorId}/event_stores`, params, options);
21
+ }
22
+ isTaxCalculator(resource) {
23
+ return resource.type && resource.type === _TaxCalculators.TYPE;
24
+ }
25
+ relationship(id) {
26
+ return super.relationshipOneToOne(id);
27
+ }
28
+ relationshipToMany(...ids) {
29
+ return super.relationshipOneToMany(...ids);
30
+ }
31
+ type() {
32
+ return _TaxCalculators.TYPE;
33
+ }
34
+ };
35
+ var instance = new TaxCalculators();
36
+ var tax_calculators_default = instance;
37
+
38
+ export { tax_calculators_default };
39
+ //# sourceMappingURL=chunk-XJUQEJMI.js.map
40
+ //# sourceMappingURL=chunk-XJUQEJMI.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/tax_calculators.ts"],"names":[],"mappings":";;;AAmCA,IAAM,cAAA,GAAN,MAAM,eAAA,SAAuB,WAAA,CAA2B;AAAA,EAEvD,OAAgB,IAAA,GAA0B,iBAAA;AAAA,EAE1C,MAAM,OAAA,CAAQ,eAAA,EAAyC,MAAA,EAAkC,OAAA,EAA0D;AAClJ,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAc,EAAE,IAAA,EAAM,SAAA,EAAU,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,QAAA,CAAA,EAAY,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxH;AAAA,EAEA,MAAM,WAAA,CAAY,eAAA,EAAyC,MAAA,EAAsC,OAAA,EAA8D;AAC9J,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAA,EAAc,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,YAAA,CAAA,EAAgB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACpI;AAAA,EAEA,MAAM,MAAA,CAAO,eAAA,EAAyC,MAAA,EAAiC,OAAA,EAAyD;AAC/I,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAa,EAAE,IAAA,EAAM,QAAA,EAAS,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,OAAA,CAAA,EAAW,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrH;AAAA,EAEA,MAAM,YAAA,CAAa,eAAA,EAAyC,MAAA,EAAsC,OAAA,EAA8D;AAC/J,IAAA,MAAM,gBAAA,GAAoB,gBAAkC,EAAA,IAAM,eAAA;AAClE,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,gBAAA,EAAmB,gBAAgB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACtI;AAAA,EAGA,gBAAgB,QAAA,EAA0C;AACzD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,eAAA,CAAe,IAAA;AAAA,EAC3D;AAAA,EAGA,aAAa,EAAA,EAAkD;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAuC,EAAE,CAAA;AAAA,EACvD;AAAA,EAEA,sBAAsB,GAAA,EAAmC;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAwC,GAAG,GAAG,CAAA;AAAA,EAC5D;AAAA,EAGA,IAAA,GAA0B;AACzB,IAAA,OAAO,eAAA,CAAe,IAAA;AAAA,EACvB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,cAAA,EAAe;AACpC,IAAO,uBAAA,GAAQ","file":"chunk-XJUQEJMI.js","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } 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'\n\n\ntype TaxCalculatorType = 'tax_calculators'\ntype TaxCalculatorRel = ResourceRel & { type: TaxCalculatorType }\n\n\nexport type TaxCalculatorSort = Pick<TaxCalculator, 'id' | 'name'> & ResourceSort\n// export type TaxCalculatorFilter = Pick<TaxCalculator, 'id' | 'name'> & ResourceFilter\n\n\ninterface TaxCalculator extends Resource {\n\t\n\treadonly type: TaxCalculatorType\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\n}\n\n\nclass TaxCalculators extends ApiResource<TaxCalculator> {\n\n\tstatic readonly TYPE: TaxCalculatorType = 'tax_calculators' as const\n\n\tasync markets(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _taxCalculatorId = (taxCalculatorId as TaxCalculator).id || taxCalculatorId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `tax_calculators/${_taxCalculatorId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _taxCalculatorId = (taxCalculatorId as TaxCalculator).id || taxCalculatorId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `tax_calculators/${_taxCalculatorId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _taxCalculatorId = (taxCalculatorId as TaxCalculator).id || taxCalculatorId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `tax_calculators/${_taxCalculatorId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(taxCalculatorId: string | TaxCalculator, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _taxCalculatorId = (taxCalculatorId as TaxCalculator).id || taxCalculatorId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `tax_calculators/${_taxCalculatorId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisTaxCalculator(resource: any): resource is TaxCalculator {\n\t\treturn resource.type && (resource.type === TaxCalculators.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): TaxCalculatorRel {\n\t\treturn super.relationshipOneToOne<TaxCalculatorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): TaxCalculatorRel[] {\n\t\treturn super.relationshipOneToMany<TaxCalculatorRel>(...ids)\n\t}\n\n\n\ttype(): TaxCalculatorType {\n\t\treturn TaxCalculators.TYPE\n\t}\n\n}\n\n\nconst instance = new TaxCalculators()\nexport default instance\n\nexport type { TaxCalculator, TaxCalculators, TaxCalculatorType }\n"]}
@@ -0,0 +1,29 @@
1
+ 'use strict';
2
+
3
+ var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
4
+
5
+ // src/resources/applications.ts
6
+ var Applications = class _Applications extends chunkY56DKJ4Z_cjs.ApiSingleton {
7
+ static TYPE = "applications";
8
+ isApplication(resource) {
9
+ return resource.type && resource.type === _Applications.TYPE;
10
+ }
11
+ relationship(id) {
12
+ return super.relationshipOneToOne(id);
13
+ }
14
+ relationshipToMany(...ids) {
15
+ return super.relationshipOneToMany(...ids);
16
+ }
17
+ type() {
18
+ return _Applications.TYPE;
19
+ }
20
+ path() {
21
+ return "application";
22
+ }
23
+ };
24
+ var instance = new Applications();
25
+ var applications_default = instance;
26
+
27
+ exports.applications_default = applications_default;
28
+ //# sourceMappingURL=chunk-XMRYT2R6.cjs.map
29
+ //# sourceMappingURL=chunk-XMRYT2R6.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/applications.ts"],"names":["ApiSingleton"],"mappings":";;;;;AA+CA,IAAM,YAAA,GAAN,MAAM,aAAA,SAAqBA,8BAAA,CAA0B;AAAA,EAEpD,OAAgB,IAAA,GAAwB,cAAA;AAAA,EAKxC,cAAc,QAAA,EAAwC;AACrD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,aAAA,CAAa,IAAA;AAAA,EACzD;AAAA,EAGA,aAAa,EAAA,EAAgD;AAC5D,IAAA,OAAO,KAAA,CAAM,qBAAqC,EAAE,CAAA;AAAA,EACrD;AAAA,EAEA,sBAAsB,GAAA,EAAiC;AACtD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAsC,GAAG,GAAG,CAAA;AAAA,EAC1D;AAAA,EAGA,IAAA,GAAwB;AACvB,IAAA,OAAO,aAAA,CAAa,IAAA;AAAA,EACrB;AAAA,EAEA,IAAA,GAAe;AACd,IAAA,OAAO,aAAA;AAAA,EACR;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,YAAA,EAAa;AAClC,IAAO,oBAAA,GAAQ","file":"chunk-XMRYT2R6.cjs","sourcesContent":["import type { Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ } from '../resource'\nimport { ApiSingleton } from '../resource'\n\n\n\n\ntype ApplicationType = 'applications'\ntype ApplicationRel = ResourceRel & { type: ApplicationType }\n\n\nexport type ApplicationSort = Pick<Application, 'id'> & ResourceSort\n// export type ApplicationFilter = Pick<Application, 'id' | 'name' | 'kind' | 'public_access' | 'scopes'> & ResourceFilter\n\n\ninterface Application extends Resource {\n\t\n\treadonly type: ApplicationType\n\n\t/** \n\t * The application's internal name.\n\t * @example ```\"My app\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The application's kind. One of 'sales_channel', 'integration', or 'webapp'.\n\t * @example ```\"sales-channel\"```\n\t */\n\tkind?: 'dashboard' | 'user' | 'contentful' | 'bundles' | 'customers' | 'datocms' | 'exports' | 'external' | 'generic' | 'gift_cards' | 'imports' | 'integration' | 'inventory' | 'metrics' | 'orders' | 'price_lists' | 'promotions' | 'resources' | 'returns' | 'sales_channel' | 'sanity' | 'shipments' | 'skus' | 'sku_lists' | 'stock_transfers' | 'subscriptions' | 'tags' | 'webapp' | 'webhooks' | 'zapier' | null\n\t/** \n\t * Indicates if the application has public access.\n\t * @example ```true```\n\t */\n\tpublic_access?: boolean | null\n\t/** \n\t * The application's redirect URI.\n\t * @example ```\"https://bluebrand.com/img/logo.svg\"```\n\t */\n\tredirect_uri?: string | null\n\t/** \n\t * The application's scopes.\n\t * @example ```\"market:all market:9 market:122 market:6 stock_location:6 stock_location:33\"```\n\t */\n\tscopes?: string | null\n\t\n}\n\n\nclass Applications extends ApiSingleton<Application> {\n\n\tstatic readonly TYPE: ApplicationType = 'applications' as const\n\n\t\n\n\n\tisApplication(resource: any): resource is Application {\n\t\treturn resource.type && (resource.type === Applications.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ApplicationRel {\n\t\treturn super.relationshipOneToOne<ApplicationRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ApplicationRel[] {\n\t\treturn super.relationshipOneToMany<ApplicationRel>(...ids)\n\t}\n\n\n\ttype(): ApplicationType {\n\t\treturn Applications.TYPE\n\t}\n\n\tpath(): string {\n\t\treturn 'application'\n\t}\n\n}\n\n\nconst instance = new Applications()\nexport default instance\n\nexport type { Application, Applications, ApplicationType }\n"]}
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ var chunkY56DKJ4Z_cjs = require('./chunk-Y56DKJ4Z.cjs');
4
+
5
+ // src/resources/wire_transfers.ts
6
+ var WireTransfers = class _WireTransfers extends chunkY56DKJ4Z_cjs.ApiResource {
7
+ static TYPE = "wire_transfers";
8
+ async create(resource, params, options) {
9
+ return this.resources.create({ ...resource, type: _WireTransfers.TYPE }, params, options);
10
+ }
11
+ async update(resource, params, options) {
12
+ return this.resources.update({ ...resource, type: _WireTransfers.TYPE }, params, options);
13
+ }
14
+ async delete(id, options) {
15
+ await this.resources.delete(typeof id === "string" ? { id, type: _WireTransfers.TYPE } : id, options);
16
+ }
17
+ async order(wireTransferId, params, options) {
18
+ const _wireTransferId = wireTransferId.id || wireTransferId;
19
+ return this.resources.fetch({ type: "orders" }, `wire_transfers/${_wireTransferId}/order`, params, options);
20
+ }
21
+ async event_stores(wireTransferId, params, options) {
22
+ const _wireTransferId = wireTransferId.id || wireTransferId;
23
+ return this.resources.fetch({ type: "event_stores" }, `wire_transfers/${_wireTransferId}/event_stores`, params, options);
24
+ }
25
+ isWireTransfer(resource) {
26
+ return resource.type && resource.type === _WireTransfers.TYPE;
27
+ }
28
+ relationship(id) {
29
+ return super.relationshipOneToOne(id);
30
+ }
31
+ relationshipToMany(...ids) {
32
+ return super.relationshipOneToMany(...ids);
33
+ }
34
+ type() {
35
+ return _WireTransfers.TYPE;
36
+ }
37
+ };
38
+ var instance = new WireTransfers();
39
+ var wire_transfers_default = instance;
40
+
41
+ exports.wire_transfers_default = wire_transfers_default;
42
+ //# sourceMappingURL=chunk-XMWIRROB.cjs.map
43
+ //# sourceMappingURL=chunk-XMWIRROB.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/resources/wire_transfers.ts"],"names":["ApiResource"],"mappings":";;;;;AA8CA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,O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ROB.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'\nimport type { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\n\n\ntype WireTransferType = 'wire_transfers'\ntype WireTransferRel = ResourceRel & { type: WireTransferType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type WireTransferSort = Pick<WireTransfer, 'id'> & ResourceSort\n// export type WireTransferFilter = Pick<WireTransfer, 'id'> & ResourceFilter\n\n\ninterface WireTransfer extends Resource {\n\t\n\treadonly type: WireTransferType\n\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface WireTransferCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface WireTransferUpdate extends ResourceUpdate {\n\t\n\torder?: OrderRel | null\n\n}\n\n\nclass WireTransfers extends ApiResource<WireTransfer> {\n\n\tstatic readonly TYPE: WireTransferType = 'wire_transfers' as const\n\n\tasync create(resource: WireTransferCreate, params?: QueryParamsRetrieve<WireTransfer>, options?: ResourcesConfig): Promise<WireTransfer> {\n\t\treturn this.resources.create<WireTransferCreate, WireTransfer>({ ...resource, type: WireTransfers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: WireTransferUpdate, params?: QueryParamsRetrieve<WireTransfer>, options?: ResourcesConfig): Promise<WireTransfer> {\n\t\treturn this.resources.update<WireTransferUpdate, WireTransfer>({ ...resource, type: WireTransfers.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: WireTransfers.TYPE } : id, options)\n\t}\n\n\tasync order(wireTransferId: string | WireTransfer, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _wireTransferId = (wireTransferId as WireTransfer).id || wireTransferId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `wire_transfers/${_wireTransferId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync event_stores(wireTransferId: string | WireTransfer, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _wireTransferId = (wireTransferId as WireTransfer).id || wireTransferId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `wire_transfers/${_wireTransferId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisWireTransfer(resource: any): resource is WireTransfer {\n\t\treturn resource.type && (resource.type === WireTransfers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): WireTransferRel {\n\t\treturn super.relationshipOneToOne<WireTransferRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): WireTransferRel[] {\n\t\treturn super.relationshipOneToMany<WireTransferRel>(...ids)\n\t}\n\n\n\ttype(): WireTransferType {\n\t\treturn WireTransfers.TYPE\n\t}\n\n}\n\n\nconst instance = new WireTransfers()\nexport default instance\n\nexport type { WireTransfer, WireTransferCreate, WireTransfers, WireTransferType, WireTransferUpdate }\n"]}