@acmekit/js-sdk 2.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (433) hide show
  1. package/dist/admin/api-key.d.ts +164 -0
  2. package/dist/admin/api-key.d.ts.map +1 -0
  3. package/dist/admin/api-key.js +202 -0
  4. package/dist/admin/api-key.js.map +1 -0
  5. package/dist/admin/campaign.d.ts +164 -0
  6. package/dist/admin/campaign.d.ts.map +1 -0
  7. package/dist/admin/campaign.js +196 -0
  8. package/dist/admin/campaign.js.map +1 -0
  9. package/dist/admin/claim.d.ts +558 -0
  10. package/dist/admin/claim.d.ts.map +1 -0
  11. package/dist/admin/claim.js +693 -0
  12. package/dist/admin/claim.js.map +1 -0
  13. package/dist/admin/currency.d.ts +95 -0
  14. package/dist/admin/currency.d.ts.map +1 -0
  15. package/dist/admin/currency.js +104 -0
  16. package/dist/admin/currency.js.map +1 -0
  17. package/dist/admin/customer-group.d.ts +170 -0
  18. package/dist/admin/customer-group.d.ts.map +1 -0
  19. package/dist/admin/customer-group.js +206 -0
  20. package/dist/admin/customer-group.js.map +1 -0
  21. package/dist/admin/customer.d.ts +264 -0
  22. package/dist/admin/customer.d.ts.map +1 -0
  23. package/dist/admin/customer.js +323 -0
  24. package/dist/admin/customer.js.map +1 -0
  25. package/dist/admin/draft-order.d.ts +430 -0
  26. package/dist/admin/draft-order.d.ts.map +1 -0
  27. package/dist/admin/draft-order.js +547 -0
  28. package/dist/admin/draft-order.js.map +1 -0
  29. package/dist/admin/exchange.d.ts +487 -0
  30. package/dist/admin/exchange.d.ts.map +1 -0
  31. package/dist/admin/exchange.js +602 -0
  32. package/dist/admin/exchange.js.map +1 -0
  33. package/dist/admin/fulfillment-provider.d.ts +78 -0
  34. package/dist/admin/fulfillment-provider.d.ts.map +1 -0
  35. package/dist/admin/fulfillment-provider.js +88 -0
  36. package/dist/admin/fulfillment-provider.js.map +1 -0
  37. package/dist/admin/fulfillment-set.d.ts +141 -0
  38. package/dist/admin/fulfillment-set.d.ts.map +1 -0
  39. package/dist/admin/fulfillment-set.js +170 -0
  40. package/dist/admin/fulfillment-set.js.map +1 -0
  41. package/dist/admin/fulfillment.d.ts +91 -0
  42. package/dist/admin/fulfillment.d.ts.map +1 -0
  43. package/dist/admin/fulfillment.js +111 -0
  44. package/dist/admin/fulfillment.js.map +1 -0
  45. package/dist/admin/index.d.ts +247 -0
  46. package/dist/admin/index.d.ts.map +1 -0
  47. package/dist/admin/index.js +108 -0
  48. package/dist/admin/index.js.map +1 -0
  49. package/dist/admin/inventory-item.d.ts +320 -0
  50. package/dist/admin/inventory-item.d.ts.map +1 -0
  51. package/dist/admin/inventory-item.js +384 -0
  52. package/dist/admin/inventory-item.js.map +1 -0
  53. package/dist/admin/invite.d.ts +182 -0
  54. package/dist/admin/invite.d.ts.map +1 -0
  55. package/dist/admin/invite.js +211 -0
  56. package/dist/admin/invite.js.map +1 -0
  57. package/dist/admin/locale.d.ts +95 -0
  58. package/dist/admin/locale.d.ts.map +1 -0
  59. package/dist/admin/locale.js +104 -0
  60. package/dist/admin/locale.js.map +1 -0
  61. package/dist/admin/notification.d.ts +96 -0
  62. package/dist/admin/notification.d.ts.map +1 -0
  63. package/dist/admin/notification.js +107 -0
  64. package/dist/admin/notification.js.map +1 -0
  65. package/dist/admin/order-edit.d.ts +189 -0
  66. package/dist/admin/order-edit.d.ts.map +1 -0
  67. package/dist/admin/order-edit.js +240 -0
  68. package/dist/admin/order-edit.js.map +1 -0
  69. package/dist/admin/order.d.ts +452 -0
  70. package/dist/admin/order.d.ts.map +1 -0
  71. package/dist/admin/order.js +560 -0
  72. package/dist/admin/order.js.map +1 -0
  73. package/dist/admin/payment-collection.d.ts +72 -0
  74. package/dist/admin/payment-collection.d.ts.map +1 -0
  75. package/dist/admin/payment-collection.js +90 -0
  76. package/dist/admin/payment-collection.js.map +1 -0
  77. package/dist/admin/payment.d.ts +180 -0
  78. package/dist/admin/payment.d.ts.map +1 -0
  79. package/dist/admin/payment.js +208 -0
  80. package/dist/admin/payment.js.map +1 -0
  81. package/dist/admin/plugin.d.ts +27 -0
  82. package/dist/admin/plugin.d.ts.map +1 -0
  83. package/dist/admin/plugin.js +31 -0
  84. package/dist/admin/plugin.js.map +1 -0
  85. package/dist/admin/price-list.d.ts +234 -0
  86. package/dist/admin/price-list.d.ts.map +1 -0
  87. package/dist/admin/price-list.js +284 -0
  88. package/dist/admin/price-list.js.map +1 -0
  89. package/dist/admin/price-preference.d.ts +152 -0
  90. package/dist/admin/price-preference.d.ts.map +1 -0
  91. package/dist/admin/price-preference.js +182 -0
  92. package/dist/admin/price-preference.js.map +1 -0
  93. package/dist/admin/product-category.d.ts +170 -0
  94. package/dist/admin/product-category.d.ts.map +1 -0
  95. package/dist/admin/product-category.js +205 -0
  96. package/dist/admin/product-category.js.map +1 -0
  97. package/dist/admin/product-collection.d.ts +169 -0
  98. package/dist/admin/product-collection.d.ts.map +1 -0
  99. package/dist/admin/product-collection.js +203 -0
  100. package/dist/admin/product-collection.js.map +1 -0
  101. package/dist/admin/product-tag.d.ts +149 -0
  102. package/dist/admin/product-tag.d.ts.map +1 -0
  103. package/dist/admin/product-tag.js +177 -0
  104. package/dist/admin/product-tag.js.map +1 -0
  105. package/dist/admin/product-type.d.ts +150 -0
  106. package/dist/admin/product-type.d.ts.map +1 -0
  107. package/dist/admin/product-type.js +178 -0
  108. package/dist/admin/product-type.js.map +1 -0
  109. package/dist/admin/product-variant.d.ts +62 -0
  110. package/dist/admin/product-variant.d.ts.map +1 -0
  111. package/dist/admin/product-variant.js +66 -0
  112. package/dist/admin/product-variant.js.map +1 -0
  113. package/dist/admin/product.d.ts +740 -0
  114. package/dist/admin/product.d.ts.map +1 -0
  115. package/dist/admin/product.js +948 -0
  116. package/dist/admin/product.js.map +1 -0
  117. package/dist/admin/promotion.d.ts +310 -0
  118. package/dist/admin/promotion.d.ts.map +1 -0
  119. package/dist/admin/promotion.js +374 -0
  120. package/dist/admin/promotion.js.map +1 -0
  121. package/dist/admin/refund-reasons.d.ts +163 -0
  122. package/dist/admin/refund-reasons.d.ts.map +1 -0
  123. package/dist/admin/refund-reasons.js +192 -0
  124. package/dist/admin/refund-reasons.js.map +1 -0
  125. package/dist/admin/region.d.ts +152 -0
  126. package/dist/admin/region.d.ts.map +1 -0
  127. package/dist/admin/region.js +180 -0
  128. package/dist/admin/region.js.map +1 -0
  129. package/dist/admin/reservation.d.ts +154 -0
  130. package/dist/admin/reservation.d.ts.map +1 -0
  131. package/dist/admin/reservation.js +182 -0
  132. package/dist/admin/reservation.js.map +1 -0
  133. package/dist/admin/return-reason.d.ts +154 -0
  134. package/dist/admin/return-reason.d.ts.map +1 -0
  135. package/dist/admin/return-reason.js +183 -0
  136. package/dist/admin/return-reason.js.map +1 -0
  137. package/dist/admin/return.d.ts +558 -0
  138. package/dist/admin/return.d.ts.map +1 -0
  139. package/dist/admin/return.js +700 -0
  140. package/dist/admin/return.js.map +1 -0
  141. package/dist/admin/sales-channel.d.ts +196 -0
  142. package/dist/admin/sales-channel.d.ts.map +1 -0
  143. package/dist/admin/sales-channel.js +238 -0
  144. package/dist/admin/sales-channel.js.map +1 -0
  145. package/dist/admin/shipping-option-type.d.ts +152 -0
  146. package/dist/admin/shipping-option-type.d.ts.map +1 -0
  147. package/dist/admin/shipping-option-type.js +180 -0
  148. package/dist/admin/shipping-option-type.js.map +1 -0
  149. package/dist/admin/shipping-option.d.ts +171 -0
  150. package/dist/admin/shipping-option.d.ts.map +1 -0
  151. package/dist/admin/shipping-option.js +207 -0
  152. package/dist/admin/shipping-option.js.map +1 -0
  153. package/dist/admin/shipping-profile.d.ts +151 -0
  154. package/dist/admin/shipping-profile.d.ts.map +1 -0
  155. package/dist/admin/shipping-profile.js +181 -0
  156. package/dist/admin/shipping-profile.js.map +1 -0
  157. package/dist/admin/stock-location.d.ts +212 -0
  158. package/dist/admin/stock-location.d.ts.map +1 -0
  159. package/dist/admin/stock-location.js +260 -0
  160. package/dist/admin/stock-location.js.map +1 -0
  161. package/dist/admin/store.d.ts +116 -0
  162. package/dist/admin/store.d.ts.map +1 -0
  163. package/dist/admin/store.js +134 -0
  164. package/dist/admin/store.js.map +1 -0
  165. package/dist/admin/tax-provider.d.ts +64 -0
  166. package/dist/admin/tax-provider.d.ts.map +1 -0
  167. package/dist/admin/tax-provider.js +70 -0
  168. package/dist/admin/tax-provider.js.map +1 -0
  169. package/dist/admin/tax-rate.d.ts +155 -0
  170. package/dist/admin/tax-rate.d.ts.map +1 -0
  171. package/dist/admin/tax-rate.js +186 -0
  172. package/dist/admin/tax-rate.js.map +1 -0
  173. package/dist/admin/tax-region.d.ts +165 -0
  174. package/dist/admin/tax-region.d.ts.map +1 -0
  175. package/dist/admin/tax-region.js +196 -0
  176. package/dist/admin/tax-region.js.map +1 -0
  177. package/dist/admin/translation.d.ts +253 -0
  178. package/dist/admin/translation.d.ts.map +1 -0
  179. package/dist/admin/translation.js +284 -0
  180. package/dist/admin/translation.js.map +1 -0
  181. package/dist/admin/upload.d.ts +97 -0
  182. package/dist/admin/upload.d.ts.map +1 -0
  183. package/dist/admin/upload.js +139 -0
  184. package/dist/admin/upload.js.map +1 -0
  185. package/dist/admin/user.d.ts +166 -0
  186. package/dist/admin/user.d.ts.map +1 -0
  187. package/dist/admin/user.js +192 -0
  188. package/dist/admin/user.js.map +1 -0
  189. package/dist/admin/views.d.ts +54 -0
  190. package/dist/admin/views.d.ts.map +1 -0
  191. package/dist/admin/views.js +96 -0
  192. package/dist/admin/views.js.map +1 -0
  193. package/dist/admin/workflow-execution.d.ts +78 -0
  194. package/dist/admin/workflow-execution.d.ts.map +1 -0
  195. package/dist/admin/workflow-execution.js +86 -0
  196. package/dist/admin/workflow-execution.js.map +1 -0
  197. package/dist/auth/index.d.ts +264 -0
  198. package/dist/auth/index.d.ts.map +1 -0
  199. package/dist/auth/index.js +318 -0
  200. package/dist/auth/index.js.map +1 -0
  201. package/dist/client.d.ts +65 -0
  202. package/dist/client.d.ts.map +1 -0
  203. package/dist/client.js +315 -0
  204. package/dist/client.js.map +1 -0
  205. package/dist/esm/admin/api-key.d.ts +164 -0
  206. package/dist/esm/admin/api-key.d.ts.map +1 -0
  207. package/dist/esm/admin/api-key.js +221 -0
  208. package/dist/esm/admin/api-key.js.map +1 -0
  209. package/dist/esm/admin/campaign.d.ts +164 -0
  210. package/dist/esm/admin/campaign.d.ts.map +1 -0
  211. package/dist/esm/admin/campaign.js +213 -0
  212. package/dist/esm/admin/campaign.js.map +1 -0
  213. package/dist/esm/admin/claim.d.ts +558 -0
  214. package/dist/esm/admin/claim.d.ts.map +1 -0
  215. package/dist/esm/admin/claim.js +740 -0
  216. package/dist/esm/admin/claim.js.map +1 -0
  217. package/dist/esm/admin/currency.d.ts +95 -0
  218. package/dist/esm/admin/currency.d.ts.map +1 -0
  219. package/dist/esm/admin/currency.js +113 -0
  220. package/dist/esm/admin/currency.js.map +1 -0
  221. package/dist/esm/admin/customer-group.d.ts +170 -0
  222. package/dist/esm/admin/customer-group.d.ts.map +1 -0
  223. package/dist/esm/admin/customer-group.js +223 -0
  224. package/dist/esm/admin/customer-group.js.map +1 -0
  225. package/dist/esm/admin/customer.d.ts +264 -0
  226. package/dist/esm/admin/customer.d.ts.map +1 -0
  227. package/dist/esm/admin/customer.js +350 -0
  228. package/dist/esm/admin/customer.js.map +1 -0
  229. package/dist/esm/admin/draft-order.d.ts +430 -0
  230. package/dist/esm/admin/draft-order.d.ts.map +1 -0
  231. package/dist/esm/admin/draft-order.js +594 -0
  232. package/dist/esm/admin/draft-order.js.map +1 -0
  233. package/dist/esm/admin/exchange.d.ts +487 -0
  234. package/dist/esm/admin/exchange.d.ts.map +1 -0
  235. package/dist/esm/admin/exchange.js +643 -0
  236. package/dist/esm/admin/exchange.js.map +1 -0
  237. package/dist/esm/admin/fulfillment-provider.d.ts +78 -0
  238. package/dist/esm/admin/fulfillment-provider.d.ts.map +1 -0
  239. package/dist/esm/admin/fulfillment-provider.js +97 -0
  240. package/dist/esm/admin/fulfillment-provider.js.map +1 -0
  241. package/dist/esm/admin/fulfillment-set.d.ts +141 -0
  242. package/dist/esm/admin/fulfillment-set.d.ts.map +1 -0
  243. package/dist/esm/admin/fulfillment-set.js +185 -0
  244. package/dist/esm/admin/fulfillment-set.js.map +1 -0
  245. package/dist/esm/admin/fulfillment.d.ts +91 -0
  246. package/dist/esm/admin/fulfillment.d.ts.map +1 -0
  247. package/dist/esm/admin/fulfillment.js +122 -0
  248. package/dist/esm/admin/fulfillment.js.map +1 -0
  249. package/dist/esm/admin/index.d.ts +247 -0
  250. package/dist/esm/admin/index.d.ts.map +1 -0
  251. package/dist/esm/admin/index.js +101 -0
  252. package/dist/esm/admin/index.js.map +1 -0
  253. package/dist/esm/admin/inventory-item.d.ts +320 -0
  254. package/dist/esm/admin/inventory-item.d.ts.map +1 -0
  255. package/dist/esm/admin/inventory-item.js +411 -0
  256. package/dist/esm/admin/inventory-item.js.map +1 -0
  257. package/dist/esm/admin/invite.d.ts +182 -0
  258. package/dist/esm/admin/invite.d.ts.map +1 -0
  259. package/dist/esm/admin/invite.js +239 -0
  260. package/dist/esm/admin/invite.js.map +1 -0
  261. package/dist/esm/admin/locale.d.ts +95 -0
  262. package/dist/esm/admin/locale.d.ts.map +1 -0
  263. package/dist/esm/admin/locale.js +113 -0
  264. package/dist/esm/admin/locale.js.map +1 -0
  265. package/dist/esm/admin/notification.d.ts +96 -0
  266. package/dist/esm/admin/notification.d.ts.map +1 -0
  267. package/dist/esm/admin/notification.js +116 -0
  268. package/dist/esm/admin/notification.js.map +1 -0
  269. package/dist/esm/admin/order-edit.d.ts +189 -0
  270. package/dist/esm/admin/order-edit.d.ts.map +1 -0
  271. package/dist/esm/admin/order-edit.js +261 -0
  272. package/dist/esm/admin/order-edit.js.map +1 -0
  273. package/dist/esm/admin/order.d.ts +452 -0
  274. package/dist/esm/admin/order.d.ts.map +1 -0
  275. package/dist/esm/admin/order.js +603 -0
  276. package/dist/esm/admin/order.js.map +1 -0
  277. package/dist/esm/admin/payment-collection.d.ts +72 -0
  278. package/dist/esm/admin/payment-collection.d.ts.map +1 -0
  279. package/dist/esm/admin/payment-collection.js +101 -0
  280. package/dist/esm/admin/payment-collection.js.map +1 -0
  281. package/dist/esm/admin/payment.d.ts +180 -0
  282. package/dist/esm/admin/payment.d.ts.map +1 -0
  283. package/dist/esm/admin/payment.js +223 -0
  284. package/dist/esm/admin/payment.js.map +1 -0
  285. package/dist/esm/admin/plugin.d.ts +27 -0
  286. package/dist/esm/admin/plugin.d.ts.map +1 -0
  287. package/dist/esm/admin/plugin.js +38 -0
  288. package/dist/esm/admin/plugin.js.map +1 -0
  289. package/dist/esm/admin/price-list.d.ts +234 -0
  290. package/dist/esm/admin/price-list.d.ts.map +1 -0
  291. package/dist/esm/admin/price-list.js +305 -0
  292. package/dist/esm/admin/price-list.js.map +1 -0
  293. package/dist/esm/admin/price-preference.d.ts +152 -0
  294. package/dist/esm/admin/price-preference.d.ts.map +1 -0
  295. package/dist/esm/admin/price-preference.js +197 -0
  296. package/dist/esm/admin/price-preference.js.map +1 -0
  297. package/dist/esm/admin/product-category.d.ts +170 -0
  298. package/dist/esm/admin/product-category.d.ts.map +1 -0
  299. package/dist/esm/admin/product-category.js +222 -0
  300. package/dist/esm/admin/product-category.js.map +1 -0
  301. package/dist/esm/admin/product-collection.d.ts +169 -0
  302. package/dist/esm/admin/product-collection.d.ts.map +1 -0
  303. package/dist/esm/admin/product-collection.js +220 -0
  304. package/dist/esm/admin/product-collection.js.map +1 -0
  305. package/dist/esm/admin/product-tag.d.ts +149 -0
  306. package/dist/esm/admin/product-tag.d.ts.map +1 -0
  307. package/dist/esm/admin/product-tag.js +192 -0
  308. package/dist/esm/admin/product-tag.js.map +1 -0
  309. package/dist/esm/admin/product-type.d.ts +150 -0
  310. package/dist/esm/admin/product-type.d.ts.map +1 -0
  311. package/dist/esm/admin/product-type.js +193 -0
  312. package/dist/esm/admin/product-type.js.map +1 -0
  313. package/dist/esm/admin/product-variant.d.ts +62 -0
  314. package/dist/esm/admin/product-variant.d.ts.map +1 -0
  315. package/dist/esm/admin/product-variant.js +73 -0
  316. package/dist/esm/admin/product-variant.js.map +1 -0
  317. package/dist/esm/admin/product.d.ts +740 -0
  318. package/dist/esm/admin/product.d.ts.map +1 -0
  319. package/dist/esm/admin/product.js +995 -0
  320. package/dist/esm/admin/product.js.map +1 -0
  321. package/dist/esm/admin/promotion.d.ts +310 -0
  322. package/dist/esm/admin/promotion.d.ts.map +1 -0
  323. package/dist/esm/admin/promotion.js +401 -0
  324. package/dist/esm/admin/promotion.js.map +1 -0
  325. package/dist/esm/admin/refund-reasons.d.ts +163 -0
  326. package/dist/esm/admin/refund-reasons.d.ts.map +1 -0
  327. package/dist/esm/admin/refund-reasons.js +207 -0
  328. package/dist/esm/admin/refund-reasons.js.map +1 -0
  329. package/dist/esm/admin/region.d.ts +152 -0
  330. package/dist/esm/admin/region.d.ts.map +1 -0
  331. package/dist/esm/admin/region.js +195 -0
  332. package/dist/esm/admin/region.js.map +1 -0
  333. package/dist/esm/admin/reservation.d.ts +154 -0
  334. package/dist/esm/admin/reservation.d.ts.map +1 -0
  335. package/dist/esm/admin/reservation.js +199 -0
  336. package/dist/esm/admin/reservation.js.map +1 -0
  337. package/dist/esm/admin/return-reason.d.ts +154 -0
  338. package/dist/esm/admin/return-reason.d.ts.map +1 -0
  339. package/dist/esm/admin/return-reason.js +198 -0
  340. package/dist/esm/admin/return-reason.js.map +1 -0
  341. package/dist/esm/admin/return.d.ts +558 -0
  342. package/dist/esm/admin/return.d.ts.map +1 -0
  343. package/dist/esm/admin/return.js +749 -0
  344. package/dist/esm/admin/return.js.map +1 -0
  345. package/dist/esm/admin/sales-channel.d.ts +196 -0
  346. package/dist/esm/admin/sales-channel.d.ts.map +1 -0
  347. package/dist/esm/admin/sales-channel.js +257 -0
  348. package/dist/esm/admin/sales-channel.js.map +1 -0
  349. package/dist/esm/admin/shipping-option-type.d.ts +152 -0
  350. package/dist/esm/admin/shipping-option-type.d.ts.map +1 -0
  351. package/dist/esm/admin/shipping-option-type.js +195 -0
  352. package/dist/esm/admin/shipping-option-type.js.map +1 -0
  353. package/dist/esm/admin/shipping-option.d.ts +171 -0
  354. package/dist/esm/admin/shipping-option.d.ts.map +1 -0
  355. package/dist/esm/admin/shipping-option.js +224 -0
  356. package/dist/esm/admin/shipping-option.js.map +1 -0
  357. package/dist/esm/admin/shipping-profile.d.ts +151 -0
  358. package/dist/esm/admin/shipping-profile.d.ts.map +1 -0
  359. package/dist/esm/admin/shipping-profile.js +196 -0
  360. package/dist/esm/admin/shipping-profile.js.map +1 -0
  361. package/dist/esm/admin/stock-location.d.ts +212 -0
  362. package/dist/esm/admin/stock-location.d.ts.map +1 -0
  363. package/dist/esm/admin/stock-location.js +281 -0
  364. package/dist/esm/admin/stock-location.js.map +1 -0
  365. package/dist/esm/admin/store.d.ts +116 -0
  366. package/dist/esm/admin/store.d.ts.map +1 -0
  367. package/dist/esm/admin/store.js +145 -0
  368. package/dist/esm/admin/store.js.map +1 -0
  369. package/dist/esm/admin/tax-provider.d.ts +64 -0
  370. package/dist/esm/admin/tax-provider.d.ts.map +1 -0
  371. package/dist/esm/admin/tax-provider.js +77 -0
  372. package/dist/esm/admin/tax-provider.js.map +1 -0
  373. package/dist/esm/admin/tax-rate.d.ts +155 -0
  374. package/dist/esm/admin/tax-rate.d.ts.map +1 -0
  375. package/dist/esm/admin/tax-rate.js +201 -0
  376. package/dist/esm/admin/tax-rate.js.map +1 -0
  377. package/dist/esm/admin/tax-region.d.ts +165 -0
  378. package/dist/esm/admin/tax-region.d.ts.map +1 -0
  379. package/dist/esm/admin/tax-region.js +211 -0
  380. package/dist/esm/admin/tax-region.js.map +1 -0
  381. package/dist/esm/admin/translation.d.ts +253 -0
  382. package/dist/esm/admin/translation.d.ts.map +1 -0
  383. package/dist/esm/admin/translation.js +301 -0
  384. package/dist/esm/admin/translation.js.map +1 -0
  385. package/dist/esm/admin/upload.d.ts +97 -0
  386. package/dist/esm/admin/upload.d.ts.map +1 -0
  387. package/dist/esm/admin/upload.js +150 -0
  388. package/dist/esm/admin/upload.js.map +1 -0
  389. package/dist/esm/admin/user.d.ts +166 -0
  390. package/dist/esm/admin/user.d.ts.map +1 -0
  391. package/dist/esm/admin/user.js +207 -0
  392. package/dist/esm/admin/user.js.map +1 -0
  393. package/dist/esm/admin/views.d.ts +54 -0
  394. package/dist/esm/admin/views.d.ts.map +1 -0
  395. package/dist/esm/admin/views.js +117 -0
  396. package/dist/esm/admin/views.js.map +1 -0
  397. package/dist/esm/admin/workflow-execution.d.ts +78 -0
  398. package/dist/esm/admin/workflow-execution.d.ts.map +1 -0
  399. package/dist/esm/admin/workflow-execution.js +95 -0
  400. package/dist/esm/admin/workflow-execution.js.map +1 -0
  401. package/dist/esm/auth/index.d.ts +264 -0
  402. package/dist/esm/auth/index.d.ts.map +1 -0
  403. package/dist/esm/auth/index.js +325 -0
  404. package/dist/esm/auth/index.js.map +1 -0
  405. package/dist/esm/client.d.ts +65 -0
  406. package/dist/esm/client.d.ts.map +1 -0
  407. package/dist/esm/client.js +317 -0
  408. package/dist/esm/client.js.map +1 -0
  409. package/dist/esm/index.d.ts +21 -0
  410. package/dist/esm/index.d.ts.map +1 -0
  411. package/dist/esm/index.js +24 -0
  412. package/dist/esm/index.js.map +1 -0
  413. package/dist/esm/store/index.d.ts +1200 -0
  414. package/dist/esm/store/index.d.ts.map +1 -0
  415. package/dist/esm/store/index.js +1425 -0
  416. package/dist/esm/store/index.js.map +1 -0
  417. package/dist/esm/types.d.ts +60 -0
  418. package/dist/esm/types.d.ts.map +1 -0
  419. package/dist/esm/types.js +2 -0
  420. package/dist/esm/types.js.map +1 -0
  421. package/dist/index.d.ts +21 -0
  422. package/dist/index.d.ts.map +1 -0
  423. package/dist/index.js +32 -0
  424. package/dist/index.js.map +1 -0
  425. package/dist/store/index.d.ts +1200 -0
  426. package/dist/store/index.d.ts.map +1 -0
  427. package/dist/store/index.js +1419 -0
  428. package/dist/store/index.js.map +1 -0
  429. package/dist/types.d.ts +60 -0
  430. package/dist/types.d.ts.map +1 -0
  431. package/dist/types.js +3 -0
  432. package/dist/types.js.map +1 -0
  433. package/package.json +43 -0
@@ -0,0 +1,643 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ export class Exchange {
11
+ /**
12
+ * @ignore
13
+ */
14
+ constructor(client) {
15
+ this.client = client;
16
+ }
17
+ /**
18
+ * This method retrieves a paginated list of exchanges. It sends a request to the
19
+ * [List Exchanges](https://docs.acmekit.com/api/admin#exchanges_getexchanges)
20
+ * API route.
21
+ *
22
+ * @param query - Filters and pagination configurations.
23
+ * @param headers - Headers to pass in the request.
24
+ * @returns The paginated list of exchanges.
25
+ *
26
+ * @example
27
+ * To retrieve the list of exchanges:
28
+ *
29
+ * ```ts
30
+ * sdk.admin.exchange.list()
31
+ * .then(({ exchanges, count, limit, offset }) => {
32
+ * console.log(exchanges)
33
+ * })
34
+ * ```
35
+ *
36
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
37
+ *
38
+ * For example, to retrieve only 10 items and skip 10 items:
39
+ *
40
+ * ```ts
41
+ * sdk.admin.exchange.list({
42
+ * limit: 10,
43
+ * offset: 10
44
+ * })
45
+ * .then(({ exchanges, count, limit, offset }) => {
46
+ * console.log(exchanges)
47
+ * })
48
+ * ```
49
+ *
50
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
51
+ * in each exchange:
52
+ *
53
+ * ```ts
54
+ * sdk.admin.exchange.list({
55
+ * fields: "id,*order"
56
+ * })
57
+ * .then(({ exchanges, count, limit, offset }) => {
58
+ * console.log(exchanges)
59
+ * })
60
+ * ```
61
+ *
62
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
63
+ */
64
+ list(query, headers) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ return yield this.client.fetch(`/admin/exchanges`, {
67
+ query,
68
+ headers,
69
+ });
70
+ });
71
+ }
72
+ /**
73
+ * This method retrieves an exchange by its ID. It sends a request to the
74
+ * [Get Exchange](https://docs.acmekit.com/api/admin#exchanges_getexchangesid)
75
+ * API route.
76
+ *
77
+ * @param id - The exchange's ID.
78
+ * @param query - Configure the fields to retrieve in the exchange.
79
+ * @param headers - Headers to pass in the request.
80
+ * @returns The exchange's details.
81
+ *
82
+ * @example
83
+ * To retrieve an exchange by its ID:
84
+ *
85
+ * ```ts
86
+ * sdk.admin.exchange.retrieve("exchange_123")
87
+ * .then(({ exchange }) => {
88
+ * console.log(exchange)
89
+ * })
90
+ * ```
91
+ *
92
+ * To specify the fields and relations to retrieve:
93
+ *
94
+ * ```ts
95
+ * sdk.admin.exchange.retrieve("exchange_123", {
96
+ * fields: "id,*order"
97
+ * })
98
+ * .then(({ exchange }) => {
99
+ * console.log(exchange)
100
+ * })
101
+ * ```
102
+ *
103
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
104
+ */
105
+ retrieve(id, query, headers) {
106
+ return __awaiter(this, void 0, void 0, function* () {
107
+ return yield this.client.fetch(`/admin/exchanges/${id}`, {
108
+ query,
109
+ headers,
110
+ });
111
+ });
112
+ }
113
+ /**
114
+ * This method creates an admin exchange. It sends a request to the
115
+ * [Create Exchange](https://docs.acmekit.com/api/admin#exchanges_postexchanges) API route.
116
+ *
117
+ * @param body - The exchange's details.
118
+ * @param query - Configure the fields to retrieve in the exchange.
119
+ * @param headers - Headers to pass in the request.
120
+ * @returns The exchange's details.
121
+ *
122
+ * @example
123
+ * sdk.admin.exchange.create({
124
+ * order_id: "order_123"
125
+ * })
126
+ * .then(({ exchange }) => {
127
+ * console.log(exchange)
128
+ * })
129
+ */
130
+ create(body, query, headers) {
131
+ return __awaiter(this, void 0, void 0, function* () {
132
+ return yield this.client.fetch(`/admin/exchanges`, {
133
+ method: "POST",
134
+ headers,
135
+ body,
136
+ query,
137
+ });
138
+ });
139
+ }
140
+ /**
141
+ * This method cancels an exchange. It sends a request to the
142
+ * [Cancel Exchange](https://docs.acmekit.com/api/admin#exchanges_postexchangesidcancel) API route.
143
+ *
144
+ * @param id - The exchange's ID.
145
+ * @param query - Configure the fields to retrieve in the exchange.
146
+ * @param headers - Headers to pass in the request.
147
+ * @returns The exchange's details.
148
+ *
149
+ * @example
150
+ * sdk.admin.exchange.cancel("exchange_123")
151
+ * .then(({ exchange }) => {
152
+ * console.log(exchange)
153
+ * })
154
+ */
155
+ cancel(id, query, headers) {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ return yield this.client.fetch(`/admin/exchanges/${id}/cancel`, {
158
+ method: "POST",
159
+ headers,
160
+ query,
161
+ });
162
+ });
163
+ }
164
+ /**
165
+ * This method adds inbound (or return) items to an exchange. These inbound items will
166
+ * have the action `RETURN_ITEM`.
167
+ *
168
+ * This method sends a request to the [Add Inbound Items](https://docs.acmekit.com/api/admin#exchanges_postexchangesidinbounditems)
169
+ * API route.
170
+ *
171
+ * @param id - The exchange's ID.
172
+ * @param body - The items to add.
173
+ * @param query - Configure the fields to retrieve in the return.
174
+ * @param headers - Headers to pass in the request.
175
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
176
+ *
177
+ * @example
178
+ * sdk.admin.exchange.addInboundItems("exchange_123", {
179
+ * items: [{
180
+ * id: "orli_123",
181
+ * quantity: 1
182
+ * }]
183
+ * })
184
+ * .then(({ return: returnData }) => {
185
+ * console.log(returnData)
186
+ * })
187
+ */
188
+ addInboundItems(id, body, query, headers) {
189
+ return __awaiter(this, void 0, void 0, function* () {
190
+ return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items`, {
191
+ method: "POST",
192
+ headers,
193
+ body,
194
+ query,
195
+ });
196
+ });
197
+ }
198
+ /**
199
+ * This method updates an inbound (or return) item from an exchange using the ID of
200
+ * the item's `RETURN_ITEM` action.
201
+ *
202
+ * Every item has an `actions` property, whose value is an array of actions. You can
203
+ * check the action's name using its `action` property, and use the value of the `id` property.
204
+ *
205
+ * This method sends a request to the [Update Inbound Item](https://docs.acmekit.com/api/admin#exchanges_postexchangesidinbounditemsaction_id)
206
+ * API route.
207
+ *
208
+ * @param id - The exchange's ID.
209
+ * @param actionId - The id of the return item's `RETURN_ITEM` action.
210
+ * @param body - The details to update.
211
+ * @param query - Configure the fields to retrieve in the return.
212
+ * @param headers - Headers to pass in the request.
213
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
214
+ *
215
+ * @example
216
+ * sdk.admin.exchange.updateInboundItem(
217
+ * "exchange_123",
218
+ * "ordchact_123",
219
+ * {
220
+ * quantity: 1
221
+ * }
222
+ * )
223
+ * .then(({ return: returnData }) => {
224
+ * console.log(returnData)
225
+ * })
226
+ */
227
+ updateInboundItem(id, actionId, body, query, headers) {
228
+ return __awaiter(this, void 0, void 0, function* () {
229
+ return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items/${actionId}`, {
230
+ method: "POST",
231
+ headers,
232
+ body,
233
+ query,
234
+ });
235
+ });
236
+ }
237
+ /**
238
+ * This method removes an inbound (or return) item from an exchange using the ID of the
239
+ * item's `RETURN_ITEM` action.
240
+ *
241
+ * Every item has an `actions` property, whose value is an array of actions.
242
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
243
+ *
244
+ * This method sends a request to the [Remove Inbound Item](https://docs.acmekit.com/api/admin#exchanges_deleteexchangesidinbounditemsaction_id)
245
+ * API route.
246
+ *
247
+ * @param id - The exchange's ID.
248
+ * @param actionId - The id of the return item's `RETURN_ITEM` action.
249
+ * @param query - Configure the fields to retrieve in the return.
250
+ * @param headers - Headers to pass in the request.
251
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
252
+ *
253
+ * @example
254
+ * sdk.admin.exchange.removeInboundItem(
255
+ * "exchange_123",
256
+ * "ordchact_123",
257
+ * )
258
+ * .then(({ return: returnData }) => {
259
+ * console.log(returnData)
260
+ * })
261
+ */
262
+ removeInboundItem(id, actionId, query, headers) {
263
+ return __awaiter(this, void 0, void 0, function* () {
264
+ return yield this.client.fetch(`/admin/exchanges/${id}/inbound/items/${actionId}`, {
265
+ method: "DELETE",
266
+ headers,
267
+ query,
268
+ });
269
+ });
270
+ }
271
+ /**
272
+ * This method adds an inbound (or return) shipping method to an exchange.
273
+ * The inbound shipping method will have a `SHIPPING_ADD` action.
274
+ *
275
+ * This method sends a request to the [Add Inbound Shipping](https://docs.acmekit.com/api/admin#exchanges_postexchangesidinboundshippingmethod)
276
+ * API route.
277
+ *
278
+ * This method sends a request to the [Add Inbound Shipping](https://docs.acmekit.com/api/admin#exchanges_postexchangesidinboundshippingmethod)
279
+ * API route.
280
+ *
281
+ * @param id - The exchange's ID.
282
+ * @param body - The shipping method's details.
283
+ * @param query - Configure the fields to retrieve in the return.
284
+ * @param headers - Headers to pass in the request.
285
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
286
+ *
287
+ * @example
288
+ * sdk.admin.exchange.addInboundShipping("exchange_123", {
289
+ * shipping_option_id: "so_123"
290
+ * })
291
+ * .then(({ return: returnData }) => {
292
+ * console.log(returnData)
293
+ * })
294
+ */
295
+ addInboundShipping(id, body, query, headers) {
296
+ return __awaiter(this, void 0, void 0, function* () {
297
+ return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method`, {
298
+ method: "POST",
299
+ headers,
300
+ body,
301
+ query,
302
+ });
303
+ });
304
+ }
305
+ /**
306
+ * This method updates the shipping method for returning items in the exchange using the ID
307
+ * of the method's `SHIPPING_ADD` action.
308
+ *
309
+ * Every shipping method has an `actions` property, whose value is an array of actions.
310
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
311
+ *
312
+ * This method sends a request to the [Update Inbound Shipping](https://docs.acmekit.com/api/admin#exchanges_postexchangesidinboundshippingmethodaction_id)
313
+ * API route.
314
+ *
315
+ * @param id - The exchange's ID.
316
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
317
+ * @param body - The details to update.
318
+ * @param query - Configure the fields to retrieve in the return.
319
+ * @param headers - Headers to pass in the request.
320
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
321
+ *
322
+ * @example
323
+ * sdk.admin.exchange.updateInboundShipping(
324
+ * "exchange_123",
325
+ * "ordchact_123",
326
+ * {
327
+ * custom_amount: 10
328
+ * }
329
+ * )
330
+ * .then(({ return: returnData }) => {
331
+ * console.log(returnData)
332
+ * })
333
+ */
334
+ updateInboundShipping(id, actionId, body, query, headers) {
335
+ return __awaiter(this, void 0, void 0, function* () {
336
+ return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method/${actionId}`, {
337
+ method: "POST",
338
+ headers,
339
+ body,
340
+ query,
341
+ });
342
+ });
343
+ }
344
+ /**
345
+ * This method removes the shipping method for returning items in the exchange using the ID
346
+ * of the method's `SHIPPING_ADD` action.
347
+ *
348
+ * Every shipping method has an `actions` property, whose value is an array of actions.
349
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
350
+ *
351
+ * This method sends a request to the [Remove Inbound Shipping](https://docs.acmekit.com/api/admin#exchanges_deleteexchangesidinboundshippingmethodaction_id)
352
+ * API route.
353
+ *
354
+ * @param id - The exchange's ID.
355
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
356
+ * @param query - Configure the fields to retrieve in the return.
357
+ * @param headers - Headers to pass in the request.
358
+ * @returns The details of the return associated with the exchange, with a preview of the order when the exchange is applied.
359
+ *
360
+ * @example
361
+ * sdk.admin.exchange.deleteInboundShipping(
362
+ * "exchange_123",
363
+ * "ordchact_123",
364
+ * )
365
+ * .then(({ return: returnData }) => {
366
+ * console.log(returnData)
367
+ * })
368
+ */
369
+ deleteInboundShipping(id, actionId, query, headers) {
370
+ return __awaiter(this, void 0, void 0, function* () {
371
+ return yield this.client.fetch(`/admin/exchanges/${id}/inbound/shipping-method/${actionId}`, {
372
+ method: "DELETE",
373
+ headers,
374
+ query,
375
+ });
376
+ });
377
+ }
378
+ /**
379
+ * This method adds outbound (or new) items to an exchange.
380
+ * These outbound items will have the action `ITEM_ADD`.
381
+ *
382
+ * This method sends a request to the [Add Outbound Items](https://docs.acmekit.com/api/admin#exchanges_postexchangesidoutbounditems)
383
+ * API route.
384
+ *
385
+ * @param id - The exchange's ID.
386
+ * @param body - The items to add.
387
+ * @param query - Configure the fields to retrieve in the exchange.
388
+ * @param headers - Headers to pass in the request
389
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
390
+ *
391
+ * @example
392
+ * sdk.admin.exchange.addOutboundItems("exchange_123", {
393
+ * items: [{
394
+ * id: "variant_123",
395
+ * quantity: 1
396
+ * }]
397
+ * })
398
+ * .then(({ exchange }) => {
399
+ * console.log(exchange)
400
+ * })
401
+ */
402
+ addOutboundItems(id, body, query, headers) {
403
+ return __awaiter(this, void 0, void 0, function* () {
404
+ return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items`, {
405
+ method: "POST",
406
+ headers,
407
+ body,
408
+ query,
409
+ });
410
+ });
411
+ }
412
+ /**
413
+ * This method updates an outbound (or new) item from an exchange using the ID
414
+ * of the item's `ITEM_ADD` action.
415
+ *
416
+ * Every item has an `actions` property, whose value is an array of actions.
417
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
418
+ *
419
+ * This method sends a request to the [Update Inbound Item](https://docs.acmekit.com/api/admin#exchanges_postexchangesidoutbounditemsaction_id)
420
+ * API route.
421
+ *
422
+ * @param id - The exchange's ID.
423
+ * @param actionId - The id of the new exchange item's `ITEM_ADD` action.
424
+ * @param body - The item's details to update.
425
+ * @param query - Configure the fields to retrieve in the exchange.
426
+ * @param headers - Headers to pass in the request
427
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
428
+ *
429
+ * @example
430
+ * sdk.admin.exchange.updateOutboundItem(
431
+ * "exchange_123",
432
+ * "ordchact_123",
433
+ * {
434
+ * quantity: 1
435
+ * }
436
+ * )
437
+ * .then(({ exchange }) => {
438
+ * console.log(exchange)
439
+ * })
440
+ */
441
+ updateOutboundItem(id, actionId, body, query, headers) {
442
+ return __awaiter(this, void 0, void 0, function* () {
443
+ return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items/${actionId}`, {
444
+ method: "POST",
445
+ headers,
446
+ body,
447
+ query,
448
+ });
449
+ });
450
+ }
451
+ /**
452
+ * This method removes an outbound (or new) item from an exchange using the ID
453
+ * of the item's `ITEM_ADD` action.
454
+ *
455
+ * Every item has an `actions` property, whose value is an array of actions.
456
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
457
+ *
458
+ * This method sends a request to the [Update Outbound Item](https://docs.acmekit.com/api/admin#exchanges_deleteexchangesidoutbounditemsaction_id)
459
+ * API route.
460
+ *
461
+ * @param id - The exchange's ID.
462
+ * @param actionId - The id of the new exchange item's `ITEM_ADD` action.
463
+ * @param query - Configure the fields to retrieve in the exchange.
464
+ * @param headers - Headers to pass in the request
465
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
466
+ *
467
+ * @example
468
+ * sdk.admin.exchange.removeOutboundItem(
469
+ * "exchange_123",
470
+ * "ordchact_123",
471
+ * )
472
+ * .then(({ exchange }) => {
473
+ * console.log(exchange)
474
+ * })
475
+ */
476
+ removeOutboundItem(id, actionId, query, headers) {
477
+ return __awaiter(this, void 0, void 0, function* () {
478
+ return yield this.client.fetch(`/admin/exchanges/${id}/outbound/items/${actionId}`, {
479
+ method: "DELETE",
480
+ headers,
481
+ query,
482
+ });
483
+ });
484
+ }
485
+ /**
486
+ * This method adds an outbound shipping method to an exchange. The outbound shipping method
487
+ * will have a `SHIPPING_ADD` action.
488
+ *
489
+ * This method sends a request to the [Add Outbound Shipping](https://docs.acmekit.com/api/admin#exchanges_postexchangesidoutboundshippingmethod)
490
+ * API route.
491
+ *
492
+ * @param id - The exchange's ID.
493
+ * @param body - The shipping method's details.
494
+ * @param query - Configure the fields to retrieve in the exchange.
495
+ * @param headers - Headers to pass in the request
496
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
497
+ *
498
+ * @example
499
+ * sdk.admin.exchange.addOutboundShipping("exchange_123", {
500
+ * shipping_option_id: "so_123"
501
+ * })
502
+ * .then(({ exchange }) => {
503
+ * console.log(exchange)
504
+ * })
505
+ */
506
+ addOutboundShipping(id, body, query, headers) {
507
+ return __awaiter(this, void 0, void 0, function* () {
508
+ return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method`, {
509
+ method: "POST",
510
+ headers,
511
+ body,
512
+ query,
513
+ });
514
+ });
515
+ }
516
+ /**
517
+ * This method updates the shipping method for delivering outbound items in the exchange using
518
+ * the ID of the method's `SHIPPING_ADD` action.
519
+ *
520
+ * Every shipping method has an `actions` property, whose value is an array of actions.
521
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
522
+ *
523
+ * This method sends a request to the [Update Outbound Shipping](https://docs.acmekit.com/api/admin#exchanges_postexchangesidoutboundshippingmethodaction_id)
524
+ * API route.
525
+ *
526
+ * @param id - The exchange's ID.
527
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
528
+ * @param body - The details to update.
529
+ * @param query - Configure the fields to retrieve in the exchange.
530
+ * @param headers - Headers to pass in the request
531
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
532
+ *
533
+ * @example
534
+ * sdk.admin.exchange.updateOutboundShipping(
535
+ * "exchange_123",
536
+ * "ordchact_123",
537
+ * {
538
+ * custom_amount: 10
539
+ * }
540
+ * )
541
+ * .then(({ exchange }) => {
542
+ * console.log(exchange)
543
+ * })
544
+ */
545
+ updateOutboundShipping(id, actionId, body, query, headers) {
546
+ return __awaiter(this, void 0, void 0, function* () {
547
+ return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method/${actionId}`, {
548
+ method: "POST",
549
+ headers,
550
+ body,
551
+ query,
552
+ });
553
+ });
554
+ }
555
+ /**
556
+ * This method removes the shipping method for delivering outbound items in the exchange using
557
+ * the ID of the method's `SHIPPING_ADD` action.
558
+ *
559
+ * Every shipping method has an `actions` property, whose value is an array of actions.
560
+ * You can check the action's name using its `action` property, and use the value of the `id` property.
561
+ *
562
+ * This method sends a request to the [Remove Outbound Shipping](https://docs.acmekit.com/api/admin#exchanges_deleteexchangesidoutboundshippingmethodaction_id)
563
+ * API route.
564
+ *
565
+ * @param id - The exchange's ID.
566
+ * @param actionId - The id of the shipping method's `SHIPPING_ADD` action.
567
+ * @param query - Configure the fields to retrieve in the exchange.
568
+ * @param headers - Headers to pass in the request
569
+ * @returns The exchange's details with a preview of the order when the exchange is applied.
570
+ *
571
+ * @example
572
+ * sdk.admin.exchange.deleteOutboundShipping(
573
+ * "exchange_123",
574
+ * "ordchact_123",
575
+ * )
576
+ * .then(({ exchange }) => {
577
+ * console.log(exchange)
578
+ * })
579
+ */
580
+ deleteOutboundShipping(id, actionId, query, headers) {
581
+ return __awaiter(this, void 0, void 0, function* () {
582
+ return yield this.client.fetch(`/admin/exchanges/${id}/outbound/shipping-method/${actionId}`, {
583
+ method: "DELETE",
584
+ headers,
585
+ query,
586
+ });
587
+ });
588
+ }
589
+ /**
590
+ * This method confirms an exchange request, applying its changes on the associated order.
591
+ *
592
+ * This method sends a request to the [Confirm Exchange](https://docs.acmekit.com/api/admin#exchanges_postexchangesidrequest)
593
+ * API route.
594
+ *
595
+ * @param id - The exchange's ID.
596
+ * @param body - The confirmation's details.
597
+ * @param query - Configure the fields to retrieve in the exchange.
598
+ * @param headers - Headers to pass in the request
599
+ * @returns The exchange and associated return's details with a preview of the order when the exchange is applied.
600
+ *
601
+ * @example
602
+ * sdk.admin.exchange.request("exchange_123", {})
603
+ * .then(({ exchange }) => {
604
+ * console.log(exchange)
605
+ * })
606
+ */
607
+ request(id, body, query, headers) {
608
+ return __awaiter(this, void 0, void 0, function* () {
609
+ return yield this.client.fetch(`/admin/exchanges/${id}/request`, {
610
+ method: "POST",
611
+ headers,
612
+ body,
613
+ query,
614
+ });
615
+ });
616
+ }
617
+ /**
618
+ * This method cancels an exchange request. It sends a request to the
619
+ * [Cancel Exchange Request](https://docs.acmekit.com/api/admin#exchanges_deleteexchangesidrequest)
620
+ * API route.
621
+ *
622
+ * @param id - The exchange's ID.
623
+ * @param query - Configure the fields to retrieve in the exchange.
624
+ * @param headers - Headers to pass in the request
625
+ * @returns The cancelation's details.
626
+ *
627
+ * @example
628
+ * sdk.admin.exchange.cancel("exchange_123")
629
+ * .then(({ deleted }) => {
630
+ * console.log(deleted)
631
+ * })
632
+ */
633
+ cancelRequest(id, query, headers) {
634
+ return __awaiter(this, void 0, void 0, function* () {
635
+ return yield this.client.fetch(`/admin/exchanges/${id}/request`, {
636
+ method: "DELETE",
637
+ headers,
638
+ query,
639
+ });
640
+ });
641
+ }
642
+ }
643
+ //# sourceMappingURL=exchange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exchange.js","sourceRoot":"","sources":["../../../src/admin/exchange.ts"],"names":[],"mappings":";;;;;;;;;AAKA,MAAM,OAAO,QAAQ;IAKnB;;OAEG;IACH,YAAY,MAAc;QACxB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAA;IACtB,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8CG;IACG,IAAI,CACR,KAAyC,EACzC,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAC5B,kBAAkB,EAClB;gBACE,KAAK;gBACL,OAAO;aACR,CACF,CAAA;QACH,CAAC;KAAA;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,QAAQ,CACZ,EAAU,EACV,KAAoB,EACpB,OAAuB;;YAEvB,OAAO,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,C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