@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,1200 @@
1
+ import { FindParams, HttpTypes, SelectParams } from "@acmekit/types";
2
+ import { Client } from "../client";
3
+ import { ClientHeaders } from "../types";
4
+ export declare class Store {
5
+ /**
6
+ * @ignore
7
+ */
8
+ private client;
9
+ /**
10
+ * @ignore
11
+ */
12
+ constructor(client: Client);
13
+ /**
14
+ * @tags region
15
+ */
16
+ region: {
17
+ /**
18
+ * This method retrieves the paginated list of regions in the store. It sends a request to the
19
+ * [List Regions API route](https://docs.acmekit.com/api/store#regions_getregions).
20
+ *
21
+ * Related guide: [How to list regions in a storefront](https://docs.acmekit.com/resources/storefront-development/regions/list).
22
+ *
23
+ * @param query - Filters and pagination configurations.
24
+ * @param headers - Headers to pass in the request
25
+ * @returns The paginated list of regions.
26
+ *
27
+ * @example
28
+ * To retrieve the list of regions:
29
+ *
30
+ * ```ts
31
+ * sdk.store.region.list()
32
+ * .then(({ regions, count, limit, offset }) => {
33
+ * console.log(regions)
34
+ * })
35
+ * ```
36
+ *
37
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
38
+ *
39
+ * For example, to retrieve only 10 items and skip 10 items:
40
+ *
41
+ * ```ts
42
+ * sdk.store.region.list({
43
+ * limit: 10,
44
+ * offset: 10
45
+ * })
46
+ * .then(({ regions, count, limit, offset }) => {
47
+ * console.log(regions)
48
+ * })
49
+ * ```
50
+ *
51
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
52
+ * in each region:
53
+ *
54
+ * ```ts
55
+ * sdk.store.region.list({
56
+ * fields: "id,*countries"
57
+ * })
58
+ * .then(({ regions, count, limit, offset }) => {
59
+ * console.log(regions)
60
+ * })
61
+ * ```
62
+ *
63
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
64
+ */
65
+ list: (query?: FindParams & HttpTypes.StoreRegionFilters, headers?: ClientHeaders) => Promise<HttpTypes.StoreRegionListResponse>;
66
+ /**
67
+ * This method retrieves a region by its ID. It sends a request to the [Get Region](https://docs.acmekit.com/api/store#regions_getregionsid)
68
+ * API route.
69
+ *
70
+ * Related guide: [Store and retrieve regions in a storefront](https://docs.acmekit.com/resources/storefront-development/regions/store-retrieve-region).
71
+ *
72
+ * @param id - The region's ID.
73
+ * @param query - Configure the fields to retrieve in the region.
74
+ * @param headers - Headers to pass in the request
75
+ * @returns The region.
76
+ *
77
+ * @example
78
+ * To retrieve a region by its ID:
79
+ *
80
+ * ```ts
81
+ * sdk.store.region.retrieve("reg_123")
82
+ * .then(({ region }) => {
83
+ * console.log(region)
84
+ * })
85
+ * ```
86
+ *
87
+ * To specify the fields and relations to retrieve:
88
+ *
89
+ * ```ts
90
+ * sdk.store.region.retrieve(
91
+ * "reg_123",
92
+ * {
93
+ * fields: "id,*countries"
94
+ * }
95
+ * )
96
+ * .then(({ region }) => {
97
+ * console.log(region)
98
+ * })
99
+ * ```
100
+ *
101
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
102
+ */
103
+ retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreRegionResponse>;
104
+ };
105
+ /**
106
+ * @tags product
107
+ */
108
+ collection: {
109
+ /**
110
+ * This method retrieves a paginated list of product collections. It sends a request to the
111
+ * [List Collections](https://docs.acmekit.com/api/store#collections_getcollections) API route.
112
+ *
113
+ * Related guide: [How to retrieve collections in a storefront](https://docs.acmekit.com/resources/storefront-development/products/collections/list).
114
+ *
115
+ * @param query - Filters and pagination configurations.
116
+ * @param headers - Headers to pass in the request
117
+ * @returns The paginated list of collections.
118
+ *
119
+ * @example
120
+ * To retrieve the list of collections:
121
+ *
122
+ * ```ts
123
+ * sdk.store.collection.list()
124
+ * .then(({ collections, count, limit, offset }) => {
125
+ * console.log(collections)
126
+ * })
127
+ * ```
128
+ *
129
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
130
+ *
131
+ * For example, to retrieve only 10 items and skip 10 items:
132
+ *
133
+ * ```ts
134
+ * sdk.store.collection.list({
135
+ * limit: 10,
136
+ * offset: 10
137
+ * })
138
+ * .then(({ collections, count, limit, offset }) => {
139
+ * console.log(collections)
140
+ * })
141
+ * ```
142
+ *
143
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
144
+ * in each collection:
145
+ *
146
+ * ```ts
147
+ * sdk.store.collection.list({
148
+ * fields: "id,handle"
149
+ * })
150
+ * .then(({ collections, count, limit, offset }) => {
151
+ * console.log(collections)
152
+ * })
153
+ * ```
154
+ *
155
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
156
+ */
157
+ list: (query?: FindParams & HttpTypes.StoreCollectionListParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCollectionListResponse>;
158
+ /**
159
+ * This method retrieves a collection by its ID. It sends a request to the [Get Collection](https://docs.acmekit.com/api/store#collections_getcollectionsid)
160
+ * API route.
161
+ *
162
+ * Related guide: [How to retrieve a collection in a storefront](https://docs.acmekit.com/resources/storefront-development/products/collections/retrieve).
163
+ *
164
+ * @param id - The ID of the collection to retrieve.
165
+ * @param query - Configure the fields to retrieve in the collection.
166
+ * @param headers - Headers to pass in the request
167
+ * @returns The collection.
168
+ *
169
+ * @example
170
+ * To retrieve a collection by its ID:
171
+ *
172
+ * ```ts
173
+ * sdk.store.collection.retrieve("pcol_123")
174
+ * .then(({ collection }) => {
175
+ * console.log(collection)
176
+ * })
177
+ * ```
178
+ *
179
+ * To specify the fields and relations to retrieve:
180
+ *
181
+ * ```ts
182
+ * sdk.store.collection.retrieve("pcol_123", {
183
+ * fields: "id,handle"
184
+ * })
185
+ * .then(({ collection }) => {
186
+ * console.log(collection)
187
+ * })
188
+ * ```
189
+ *
190
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
191
+ */
192
+ retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCollectionResponse>;
193
+ };
194
+ /**
195
+ * @tags product
196
+ */
197
+ category: {
198
+ /**
199
+ * This method retrieves a paginated list of product categories. It sends a request to the
200
+ * [List Categories](https://docs.acmekit.com/api/store#product-categories_getproductcategories) API route.
201
+ *
202
+ * Related guide: [How to retrieve list of categories in the storefront](https://docs.acmekit.com/resources/storefront-development/products/categories/list).
203
+ *
204
+ * @param query - Filters and pagination configurations.
205
+ * @param headers - Headers to pass in the request.
206
+ * @returns The paginated list of categories.
207
+ *
208
+ * @example
209
+ * To retrieve the list of categories:
210
+ *
211
+ * ```ts
212
+ * sdk.store.category.list()
213
+ * .then(({ product_categories, count, offset, limit }) => {
214
+ * console.log(product_categories)
215
+ * })
216
+ * ```
217
+ *
218
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
219
+ *
220
+ * For example, to retrieve only 10 items and skip 10 items:
221
+ *
222
+ * ```ts
223
+ * sdk.store.category.list({
224
+ * limit: 10,
225
+ * offset: 10
226
+ * })
227
+ * .then(({ product_categories, count, offset, limit }) => {
228
+ * console.log(product_categories)
229
+ * })
230
+ * ```
231
+ *
232
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
233
+ * in each category:
234
+ *
235
+ * ```ts
236
+ * sdk.store.category.list({
237
+ * fields: "id,*parent_category"
238
+ * })
239
+ * .then(({ product_categories, count, offset, limit }) => {
240
+ * console.log(product_categories)
241
+ * })
242
+ * ```
243
+ *
244
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
245
+ */
246
+ list: (query?: FindParams & HttpTypes.StoreProductCategoryListParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreProductCategoryListResponse>;
247
+ /**
248
+ * This method retrieves a category by its ID. It sends a request to the
249
+ * [Retrieve Product Category](https://docs.acmekit.com/api/store#product-categories_getproductcategoriesid).
250
+ *
251
+ * Related guide: [How to retrieve a category in the storefront](https://docs.acmekit.com/resources/storefront-development/products/categories/retrieve).
252
+ *
253
+ * @param id - The ID of the category to retrieve.
254
+ * @param query - Configure the fields to retrieve in the category.
255
+ * @param headers - Headers to pass in the request
256
+ * @returns The category.
257
+ *
258
+ * @example
259
+ * To retrieve a category by its ID:
260
+ *
261
+ * ```ts
262
+ * sdk.store.category.retrieve("pcat_123")
263
+ * .then(({ product_category }) => {
264
+ * console.log(product_category)
265
+ * })
266
+ * ```
267
+ *
268
+ * To specify the fields and relations to retrieve:
269
+ *
270
+ * ```ts
271
+ * sdk.store.category.retrieve("pcat_123", {
272
+ * fields: "id,*parent_category"
273
+ * })
274
+ * .then(({ product_category }) => {
275
+ * console.log(product_category)
276
+ * })
277
+ * ```
278
+ *
279
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
280
+ */
281
+ retrieve: (id: string, query?: HttpTypes.StoreProductCategoryParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreProductCategoryResponse>;
282
+ };
283
+ /**
284
+ * @tags product
285
+ */
286
+ product: {
287
+ /**
288
+ * This method retrieves a list of products. It sends a request to the
289
+ * [List Products API route](https://docs.acmekit.com/api/store#products_getproducts).
290
+ *
291
+ * Related guides:
292
+ *
293
+ * - [How to list products in a storefront](https://docs.acmekit.com/resources/storefront-development/products/list).
294
+ * - [How to retrieve a product variant's prices in the storefront](https://docs.acmekit.com/resources/storefront-development/products/price)
295
+ *
296
+ * @param query - Filters and pagination configurations.
297
+ * @param headers - Headers to pass in the request.
298
+ * @returns The paginated list of products.
299
+ *
300
+ * @example
301
+ * To retrieve the list of products:
302
+ *
303
+ * ```ts
304
+ * sdk.store.product.list()
305
+ * .then(({ products, count, offset, limit }) => {
306
+ * console.log(products)
307
+ * })
308
+ * ```
309
+ *
310
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
311
+ *
312
+ * For example, to retrieve only 10 items and skip 10 items:
313
+ *
314
+ * ```ts
315
+ * sdk.store.product.list({
316
+ * limit: 10,
317
+ * offset: 10
318
+ * })
319
+ * .then(({ products, count, offset, limit }) => {
320
+ * console.log(products)
321
+ * })
322
+ * ```
323
+ *
324
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
325
+ * in each product:
326
+ *
327
+ * ```ts
328
+ * sdk.store.product.list({
329
+ * fields: "id,*collection"
330
+ * })
331
+ * .then(({ products, count, offset, limit }) => {
332
+ * console.log(products)
333
+ * })
334
+ * ```
335
+ *
336
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
337
+ */
338
+ list: (query?: HttpTypes.StoreProductListParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreProductListResponse>;
339
+ /**
340
+ * This method is used to retrieve a product by its ID. It sends a request to the
341
+ * [Get Product](https://docs.acmekit.com/api/store#products_getproductsid) API route.
342
+ *
343
+ * Related guides:
344
+ *
345
+ * - [How to retrieve a product in the storefront](https://docs.acmekit.com/resources/storefront-development/products/retrieve).
346
+ * - [How to retrieve a product variant's prices in the storefront](https://docs.acmekit.com/resources/storefront-development/products/price)
347
+ *
348
+ * @param id - The product's ID.
349
+ * @param query - Configure the fields to retrieve in the product.
350
+ * @param headers - Headers to pass in the request
351
+ * @returns The product.
352
+ *
353
+ * @example
354
+ * To retrieve a product by its ID:
355
+ *
356
+ * ```ts
357
+ * sdk.store.product.retrieve("prod_123")
358
+ * .then(({ product }) => {
359
+ * console.log(product)
360
+ * })
361
+ * ```
362
+ *
363
+ * To specify the fields and relations to retrieve:
364
+ *
365
+ * ```ts
366
+ * sdk.store.product.retrieve("prod_123", {
367
+ * fields: "id,*collection"
368
+ * })
369
+ * .then(({ product }) => {
370
+ * console.log(product)
371
+ * })
372
+ * ```
373
+ *
374
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
375
+ */
376
+ retrieve: (id: string, query?: HttpTypes.StoreProductParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreProductResponse>;
377
+ };
378
+ /**
379
+ * Related guides: [How to implement carts in the storefront](https://docs.acmekit.com/resources/storefront-development/cart).
380
+ *
381
+ * @tags cart
382
+ */
383
+ cart: {
384
+ /**
385
+ * This method creates a cart. It sends a request to the [Create Cart](https://docs.acmekit.com/api/store#carts_postcarts)
386
+ * API route.
387
+ *
388
+ * Related guide: [How to create a cart in the storefront](https://docs.acmekit.com/resources/storefront-development/cart/create).
389
+ *
390
+ * @param body - The details of the cart to create.
391
+ * @param query - Configure the fields to retrieve in the cart.
392
+ * @param headers - Headers to pass in the request.
393
+ * @returns The created cart.
394
+ *
395
+ * @example
396
+ * sdk.store.cart.create({
397
+ * region_id: "reg_123"
398
+ * })
399
+ * .then(({ cart }) => {
400
+ * console.log(cart)
401
+ * })
402
+ */
403
+ create: (body: HttpTypes.StoreCreateCart, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCartResponse>;
404
+ /**
405
+ * This method updates a cart. It sends a request to the
406
+ * [Update Cart](https://docs.acmekit.com/api/store#carts_postcartsid) API route.
407
+ *
408
+ * Related guide: [How to update a cart in the storefront](https://docs.acmekit.com/resources/storefront-development/cart/update).
409
+ *
410
+ * @param id - The cart's ID.
411
+ * @param body - The data to update in the cart.
412
+ * @param query - Configure the fields to retrieve in the cart.
413
+ * @param headers - Headers to pass in the request.
414
+ * @returns The updated cart.
415
+ *
416
+ * @example
417
+ * sdk.store.cart.update("cart_123", {
418
+ * region_id: "reg_123"
419
+ * })
420
+ * .then(({ cart }) => {
421
+ * console.log(cart)
422
+ * })
423
+ */
424
+ update: (id: string, body: HttpTypes.StoreUpdateCart, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCartResponse>;
425
+ /**
426
+ * This method retrieves a cart by its ID. It sends a request to the
427
+ * [Get Cart](https://docs.acmekit.com/api/store#carts_getcartsid) API route.
428
+ *
429
+ * Related guide: [How to retrieve a cart in the storefront](https://docs.acmekit.com/resources/storefront-development/cart/retrieve).
430
+ *
431
+ * @param id - The cart's ID.
432
+ * @param query - Configure the fields to retrieve in the cart.
433
+ * @param headers - Headers to pass in the request.
434
+ * @returns The cart's details.
435
+ *
436
+ * @example
437
+ * To retrieve a cart by its ID:
438
+ *
439
+ * ```ts
440
+ * sdk.store.cart.retrieve("cart_123")
441
+ * .then(({ cart }) => {
442
+ * console.log(cart)
443
+ * })
444
+ * ```
445
+ *
446
+ * To specify the fields and relations to retrieve:
447
+ *
448
+ * ```ts
449
+ * sdk.store.cart.retrieve("cart_123", {
450
+ * fields: "id,*items"
451
+ * })
452
+ * .then(({ cart }) => {
453
+ * console.log(cart)
454
+ * })
455
+ * ```
456
+ *
457
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
458
+ */
459
+ retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCartResponse>;
460
+ /**
461
+ * This methods adds a product variant to the cart as a line item. It sends a request to the
462
+ * [Add Line Item](https://docs.acmekit.com/api/store#carts_postcartsidlineitems) API route.
463
+ *
464
+ * Related guide: [How to manage a cart's line items in the storefront](https://docs.acmekit.com/resources/storefront-development/cart/manage-items).
465
+ *
466
+ * @param cartId - The cart's ID.
467
+ * @param body - The details of the item to add.
468
+ * @param query - Configure the fields to retrieve in the cart.
469
+ * @param headers - Headers to pass in the request.
470
+ * @returns The cart's details.
471
+ *
472
+ * @example
473
+ * sdk.store.cart.createLineItem("cart_123", {
474
+ * variant_id: "variant_123",
475
+ * quantity: 1
476
+ * })
477
+ * .then(({ cart }) => {
478
+ * console.log(cart)
479
+ * })
480
+ */
481
+ createLineItem: (cartId: string, body: HttpTypes.StoreAddCartLineItem, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCartResponse>;
482
+ /**
483
+ * This method updates a line item in a cart. It sends a request to the
484
+ * [Update Line Item](https://docs.acmekit.com/api/store#carts_postcartsidlineitemsline_id) API route.
485
+ *
486
+ * Related guide: [How to manage a cart's line items in the storefront](https://docs.acmekit.com/resources/storefront-development/cart/manage-items).
487
+ *
488
+ * @param cartId - The cart's ID.
489
+ * @param lineItemId - The line item's ID.
490
+ * @param body - The data to update.
491
+ * @param query - Configure the fields to retrieve in the cart.
492
+ * @param headers - Headers to pass in the request.
493
+ * @returns The cart's details.
494
+ *
495
+ * @example
496
+ * sdk.store.cart.updateLineItem(
497
+ * "cart_123",
498
+ * "li_123",
499
+ * {
500
+ * quantity: 1
501
+ * }
502
+ * )
503
+ * .then(({ cart }) => {
504
+ * console.log(cart)
505
+ * })
506
+ */
507
+ updateLineItem: (cartId: string, lineItemId: string, body: HttpTypes.StoreUpdateCartLineItem, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCartResponse>;
508
+ /**
509
+ * This method deletes a line item from a cart. It sends a request to the
510
+ * [Remove Line Item](https://docs.acmekit.com/api/store#carts_deletecartsidlineitemsline_id) API route.
511
+ *
512
+ * Related guide: [How to manage a cart's line items in the storefront](https://docs.acmekit.com/resources/storefront-development/cart/manage-items).
513
+ *
514
+ * @param cartId - The cart's ID.
515
+ * @param lineItemId - The item's ID.
516
+ * @param query - Configure the fields to retrieve in the cart.
517
+ * @param headers - Headers to pass in the request.
518
+ * @returns The deletion's details.
519
+ *
520
+ * @example
521
+ * sdk.store.cart.deleteLineItem(
522
+ * "cart_123",
523
+ * "li_123"
524
+ * )
525
+ * .then(({ deleted, parent: cart }) => {
526
+ * console.log(deleted, cart)
527
+ * })
528
+ */
529
+ deleteLineItem: (cartId: string, lineItemId: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreLineItemDeleteResponse>;
530
+ /**
531
+ * This method adds a shipping method to a cart. It sends a request to
532
+ * the [Add Shipping Method](https://docs.acmekit.com/api/store#carts_postcartsidshippingmethods) API routes.
533
+ *
534
+ * Related guide: [Implement shipping step during checkout](https://docs.acmekit.com/resources/storefront-development/checkout/shipping).
535
+ *
536
+ * @param cartId - The cart's ID.
537
+ * @param body - The shipping method's details.
538
+ * @param query - Configure the fields to retrieve in the cart.
539
+ * @param headers - Headers to pass in the request.
540
+ * @returns The cart's details.
541
+ *
542
+ * @example
543
+ * sdk.store.cart.addShippingMethod("cart_123", {
544
+ * option_id: "so_123",
545
+ * data: {
546
+ * // custom data for fulfillment provider.
547
+ * }
548
+ * })
549
+ * .then(({ cart }) => {
550
+ * console.log(cart)
551
+ * })
552
+ */
553
+ addShippingMethod: (cartId: string, body: HttpTypes.StoreAddCartShippingMethods, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCartResponse>;
554
+ /**
555
+ * This method completes a cart and places the order. It's the last step of the checkout flow.
556
+ * The method sends a request to the [Complete Cart](https://docs.acmekit.com/api/store#carts_postcartsidcomplete)
557
+ * API route.
558
+ *
559
+ * Related guide: [Learn how to complete cart in checkout flow](https://docs.acmekit.com/resources/storefront-development/checkout/complete-cart).
560
+ *
561
+ * @param cartId - The cart's ID.
562
+ * @param query - Configure the fields to retrieve in the created order.
563
+ * @param headers - Headers to pass in the request.
564
+ * @returns The order's details, if it was placed successfully. Otherwise, the cart is returned with an error.
565
+ *
566
+ * @example
567
+ * sdk.store.cart.complete("cart_123")
568
+ * .then((data) => {
569
+ * if(data.type === "cart") {
570
+ * // an error occurred
571
+ * console.log(data.error, data.cart)
572
+ * } else {
573
+ * // order placed successfully
574
+ * console.log(data.order)
575
+ * }
576
+ * })
577
+ */
578
+ complete: (cartId: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCompleteCartResponse>;
579
+ /**
580
+ * This method updates the customer of a cart.
581
+ *
582
+ * @param id - The cart's ID.
583
+ * @param query - Configure the fields to retrieve in the cart.
584
+ * @param headers - Headers to pass in the request.
585
+ * @returns The updated cart.
586
+ *
587
+ * @example
588
+ * // TODO must be authenticated as the customer to set the cart's customer
589
+ * sdk.store.cart.transferCart("cart_123")
590
+ * .then(({ cart }) => {
591
+ * console.log(cart)
592
+ * })
593
+ */
594
+ transferCart: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCartResponse>;
595
+ };
596
+ /**
597
+ * @tags fulfillment
598
+ */
599
+ fulfillment: {
600
+ /**
601
+ * This method retrieves the list of shipping options for a cart. It sends a request to
602
+ * the [List Shipping Options](https://docs.acmekit.com/api/store#shipping-options_getshippingoptions)
603
+ * API route.
604
+ *
605
+ * Related guide: [Implement shipping step during checkout](https://docs.acmekit.com/resources/storefront-development/checkout/shipping).
606
+ *
607
+ * @param query - The cart's details along with configurations of the fields to retrieve in the options.
608
+ * @param headers - Headers to pass in the request.
609
+ * @returns The shipping options that can be used for the cart.
610
+ *
611
+ * @example
612
+ * sdk.store.fulfillment.listCartOptions({
613
+ * cart_id: "cart_123"
614
+ * })
615
+ * .then(({ shipping_options }) => {
616
+ * console.log(shipping_options)
617
+ * })
618
+ */
619
+ listCartOptions: (query?: HttpTypes.StoreGetShippingOptionList, headers?: ClientHeaders) => Promise<HttpTypes.StoreShippingOptionListResponse>;
620
+ /**
621
+ * This method calculates the price of a shipping option in a cart, which is useful during checkout.
622
+ * It sends a request to the [Calculate Shipping Option Price](https://docs.acmekit.com/api/store#shipping-options_postshippingoptionsidcalculate)
623
+ * API route.
624
+ *
625
+ * @param id - The shipping option's ID.
626
+ * @param body - The price calculation's details.
627
+ * @param query - Configure the fields to retrieve in the shipping option.
628
+ * @param headers - Headers to pass in the request.
629
+ * @returns The shipping option's details.
630
+ *
631
+ * @example
632
+ * sdk.store.fulfillment.calculate("so_123", {
633
+ * cart_id: "cart_123"
634
+ * })
635
+ * .then(({ shipping_option }) => {
636
+ * console.log(shipping_option)
637
+ * })
638
+ */
639
+ calculate: (id: string, body: HttpTypes.StoreCalculateShippingOptionPrice, query?: HttpTypes.SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreShippingOptionResponse>;
640
+ };
641
+ /**
642
+ * @tags payment
643
+ */
644
+ payment: {
645
+ /**
646
+ * This method retrieves the payment providers available in a region, which is useful during checkout.
647
+ * It sends a request to the [List Payment Providers](https://docs.acmekit.com/api/store#payment-providers_getpaymentproviders)
648
+ * API route.
649
+ *
650
+ * Related guide: [Implement payment step during checkout](https://docs.acmekit.com/resources/storefront-development/checkout/payment).
651
+ *
652
+ * @param query - The filters to apply on the retrieved providers, along with configurations of the
653
+ * fields to retrieve in the options.
654
+ * @param headers - Headers to pass in the request.
655
+ * @returns The list of payment providers.
656
+ *
657
+ * @example
658
+ * To retrieve the list of payment providers for a region:
659
+ *
660
+ * ```ts
661
+ * sdk.store.payment.listPaymentProviders({
662
+ * region_id: "reg_123"
663
+ * })
664
+ * .then(({ payment_providers, count, offset, limit }) => {
665
+ * console.log(payment_providers)
666
+ * })
667
+ * ```
668
+ *
669
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
670
+ *
671
+ * For example, to retrieve only 10 items and skip 10 items:
672
+ *
673
+ * ```ts
674
+ * sdk.store.payment.listPaymentProviders({
675
+ * region_id: "reg_123",
676
+ * limit: 10,
677
+ * offset: 10
678
+ * })
679
+ * .then(({ payment_providers, count, offset, limit }) => {
680
+ * console.log(payment_providers)
681
+ * })
682
+ * ```
683
+ *
684
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
685
+ * in each provider:
686
+ *
687
+ * ```ts
688
+ * sdk.store.payment.listPaymentProviders({
689
+ * region_id: "reg_123",
690
+ * limit: 10,
691
+ * offset: 10,
692
+ * fields: "id"
693
+ * })
694
+ * .then(({ payment_providers, count, offset, limit }) => {
695
+ * console.log(payment_providers)
696
+ * })
697
+ * ```
698
+ *
699
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
700
+ */
701
+ listPaymentProviders: (query?: FindParams & HttpTypes.StorePaymentProviderFilters, headers?: ClientHeaders) => Promise<HttpTypes.StorePaymentProviderListResponse>;
702
+ /**
703
+ * This method creates a payment session of a cart's payment collection, selecting a payment provider.
704
+ * It sends a request to the [Initialize Payment Session](https://docs.acmekit.com/api/store#payment-collections_postpaymentcollectionsidpaymentsessions)
705
+ * API route.
706
+ *
707
+ * If the cart doesn't have a payment collection, a payment collection is created for the cart by
708
+ * sending a request to the [Create Payment Collection](https://docs.acmekit.com/api/store#payment-collections_postpaymentcollections)
709
+ * API route.
710
+ *
711
+ * Related guide: [Implement payment step during checkout](https://docs.acmekit.com/resources/storefront-development/checkout/payment).
712
+ *
713
+ * @param cart - The cart's details.
714
+ * @param body - The payment session's details.
715
+ * @param query - Configure the fields to retrieve in the payment collection.
716
+ * @param headers - Headers to pass in the request.
717
+ * @returns The payment collection's details.
718
+ *
719
+ * @example
720
+ * sdk.store.payment.initiatePaymentSession(
721
+ * cart, // assuming you already have the cart object.
722
+ * {
723
+ * provider_id: "pp_stripe_stripe",
724
+ * data: {
725
+ * // any data relevant for the provider.
726
+ * }
727
+ * }
728
+ * )
729
+ * .then(({ payment_collection }) => {
730
+ * console.log(payment_collection)
731
+ * })
732
+ */
733
+ initiatePaymentSession: (cart: HttpTypes.StoreCart, body: HttpTypes.StoreInitializePaymentSession, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StorePaymentCollectionResponse>;
734
+ };
735
+ /**
736
+ * @tags order
737
+ */
738
+ order: {
739
+ /**
740
+ * This method retrieves a paginated list of orders matching the specified filters. It
741
+ * sends a request to the [List Orders](https://docs.acmekit.com/api/store#orders_getorders)
742
+ * API route.
743
+ *
744
+ * @param query - Configure the fields to retrieve in the orders.
745
+ * @param headers - Headers to pass in the request.
746
+ * @returns The paginated list of orders.
747
+ *
748
+ * @example
749
+ * To retrieve the list of orders:
750
+ *
751
+ * ```ts
752
+ * // TODO must be authenticated as the customer to list their orders
753
+ * sdk.store.order.list()
754
+ * .then(({ orders, count, offset, limit }) => {
755
+ * console.log(orders)
756
+ * })
757
+ * ```
758
+ *
759
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
760
+ *
761
+ * For example, to retrieve only 10 items and skip 10 items:
762
+ *
763
+ * ```ts
764
+ * // TODO must be authenticated as the customer to list their orders
765
+ * sdk.store.order.list({
766
+ * limit: 10,
767
+ * offset: 10
768
+ * })
769
+ * .then(({ orders, count, offset, limit }) => {
770
+ * console.log(orders)
771
+ * })
772
+ * ```
773
+ *
774
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
775
+ * in each order:
776
+ *
777
+ * ```ts
778
+ * // TODO must be authenticated as the customer to list their orders
779
+ * sdk.store.order.list({
780
+ * fields: "id,*items"
781
+ * })
782
+ * .then(({ orders, count, offset, limit }) => {
783
+ * console.log(orders)
784
+ * })
785
+ * ```
786
+ *
787
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
788
+ */
789
+ list: (query?: HttpTypes.StoreOrderFilters, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderListResponse>;
790
+ /**
791
+ * This method retrieves an order by its ID. It sends a request to the
792
+ * [Get Order](https://docs.acmekit.com/api/store#orders_getordersid) API route.
793
+ *
794
+ * @param id - The order's ID.
795
+ * @param query - Configure the fields to retrieve in the order.
796
+ * @param headers - Headers to pass in the request.
797
+ * @returns The order's details.
798
+ *
799
+ * @example
800
+ * To retrieve an order by its ID:
801
+ *
802
+ * ```ts
803
+ * sdk.store.order.retrieve("order_123")
804
+ * .then(({ order }) => {
805
+ * console.log(order)
806
+ * })
807
+ * ```
808
+ *
809
+ * To specify the fields and relations to retrieve:
810
+ *
811
+ * ```ts
812
+ * sdk.store.order.retrieve("order_123", {
813
+ * fields: "id,*items"
814
+ * })
815
+ * .then(({ order }) => {
816
+ * console.log(order)
817
+ * })
818
+ * ```
819
+ *
820
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
821
+ */
822
+ retrieve: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<{
823
+ order: HttpTypes.StoreOrder;
824
+ }>;
825
+ /**
826
+ * This method requests a order transfer from a guest account to the current, logged in customer account.
827
+ *
828
+ * Customer requesting the transfer must be logged in.
829
+ *
830
+ * @param body - The transfer's details.
831
+ * @param query - Configure the fields to retrieve in the order.
832
+ * @param headers - Headers to pass in the request.
833
+ * @returns The order details.
834
+ *
835
+ * @example
836
+ * // TODO must be authenticated as the customer to request the order transfer
837
+ * sdk.store.order.requestTransfer(
838
+ * "order_123",
839
+ * {
840
+ * description: "I want to transfer this order to my friend."
841
+ * },
842
+ * {},
843
+ * {
844
+ * Authorization: `Bearer ${token}`
845
+ * }
846
+ * )
847
+ * .then(({ order }) => {
848
+ * console.log(order)
849
+ * })
850
+ */
851
+ requestTransfer: (id: string, body: HttpTypes.StoreRequestOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
852
+ /**
853
+ * This method cancels an order transfer request.
854
+ *
855
+ * Customer requesting the transfer must be logged in.
856
+ *
857
+ * @param id - The order's ID.
858
+ * @param query - Configure the fields to retrieve in the order.
859
+ * @param headers - Headers to pass in the request.
860
+ * @returns The order details.
861
+ *
862
+ * @example
863
+ * // TODO must be authenticated as the customer to cancel the order transfer
864
+ * sdk.store.order.cancelTransfer(
865
+ * "order_123",
866
+ * {},
867
+ * {
868
+ * Authorization: `Bearer ${token}`
869
+ * }
870
+ * )
871
+ * .then(({ order }) => {
872
+ * console.log(order)
873
+ * })
874
+ */
875
+ cancelTransfer: (id: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
876
+ /**
877
+ * The method called for the original owner to accept the order transfer to a new owner.
878
+ *
879
+ * @param id - The order's ID.
880
+ * @param body - The payload containing the transfer token.
881
+ * @param query - Configure the fields to retrieve in the order.
882
+ * @param headers - Headers to pass in the request.
883
+ * @returns The order details.
884
+ *
885
+ * @example
886
+ * sdk.store.order.acceptTransfer(
887
+ * "order_123",
888
+ * {
889
+ * token: "transfer_token"
890
+ * },
891
+ * {
892
+ * Authorization: `Bearer ${token}`
893
+ * }
894
+ * )
895
+ * .then(({ order }) => {
896
+ * console.log(order)
897
+ * })
898
+ */
899
+ acceptTransfer: (id: string, body: HttpTypes.StoreAcceptOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
900
+ /**
901
+ * The method called for the original owner to decline the order transfer to a new owner.
902
+ *
903
+ * @param id - The order's ID.
904
+ * @param body - The payload containing the transfer token.
905
+ * @param query - Configure the fields to retrieve in the order.
906
+ * @param headers - Headers to pass in the request.
907
+ * @returns The order details.
908
+ *
909
+ * @example
910
+ * sdk.store.order.declineTransfer(
911
+ * "order_123",
912
+ * {
913
+ * token: "transfer_token"
914
+ * },
915
+ * {
916
+ * Authorization: `Bearer ${token}`
917
+ * }
918
+ * )
919
+ * .then(({ order }) => {
920
+ * console.log(order)
921
+ * })
922
+ */
923
+ declineTransfer: (id: string, body: HttpTypes.StoreDeclineOrderTransfer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreOrderResponse>;
924
+ };
925
+ /**
926
+ * @tags customer
927
+ */
928
+ customer: {
929
+ /**
930
+ * This method registers a customer. It sends a request to the [Register Customer](https://docs.acmekit.com/api/store#customers_postcustomers)
931
+ * API route.
932
+ *
933
+ * You must use the {@link Auth.register} method first to retrieve a registration token. Then, pass that
934
+ * registration token in the `headers` parameter of this method as an authorization bearer header.
935
+ *
936
+ * Related guide: [How to register customer in storefront](https://docs.acmekit.com/resources/storefront-development/customers/register)
937
+ *
938
+ * @param body - The customer's details.
939
+ * @param query - Configure the fields to retrieve in the customer.
940
+ * @param headers - Headers to pass in the request. This is where you include the authorization JWT registration token.
941
+ * @returns The customer's details.
942
+ *
943
+ * @example
944
+ * const token = await sdk.auth.register("customer", "emailpass", {
945
+ * "email": "customer@gmail.com",
946
+ * "password": "supersecret"
947
+ * })
948
+ *
949
+ * sdk.store.customer.create(
950
+ * {
951
+ * "email": "customer@gmail.com"
952
+ * },
953
+ * {},
954
+ * {
955
+ * Authorization: `Bearer ${token}`
956
+ * }
957
+ * )
958
+ * .then(({ customer }) => {
959
+ * console.log(customer)
960
+ * })
961
+ */
962
+ create: (body: HttpTypes.StoreCreateCustomer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerResponse>;
963
+ /**
964
+ * This method updates the logged-in customer's details. The customer must be logged in
965
+ * first with the {@link Auth.login} method.
966
+ *
967
+ * It sends a request to the
968
+ * [Update Customer](https://docs.acmekit.com/api/store#customers_postcustomersme) API route.
969
+ *
970
+ * Related guide: [How to edit customer's profile in the storefront](https://docs.acmekit.com/resources/storefront-development/customers/profile).
971
+ *
972
+ * @param body - The customer's details to update.
973
+ * @param query - Configure the fields to retrieve in the customer.
974
+ * @param headers - Headers to pass in the request.
975
+ * @returns The customer's details.
976
+ *
977
+ * @example
978
+ * // TODO must be authenticated as the customer to update their details
979
+ * sdk.store.customer.update({
980
+ * first_name: "John"
981
+ * })
982
+ * .then(({ customer }) => {
983
+ * console.log(customer)
984
+ * })
985
+ */
986
+ update: (body: HttpTypes.StoreUpdateCustomer, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerResponse>;
987
+ /**
988
+ * This method retrieves the logged-in customer's details. The customer must be logged in
989
+ * first with the {@link Auth.login} method.
990
+ *
991
+ * It sends a request to the [Get Logged-In Customer](https://docs.acmekit.com/api/store#customers_getcustomersme)
992
+ * API route.
993
+ *
994
+ * @param query - Configure the fields to retrieve in the customer.
995
+ * @param headers - Headers to pass in the request.
996
+ * @returns The customer's details.
997
+ *
998
+ * @example
999
+ * // TODO must be authenticated as the customer to retrieve their details
1000
+ * sdk.store.customer.retrieve()
1001
+ * .then(({ customer }) => {
1002
+ * console.log(customer)
1003
+ * })
1004
+ */
1005
+ retrieve: (query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerResponse>;
1006
+ /**
1007
+ * This method creates an address for the logged-in customer. The customer must be logged in
1008
+ * first with the {@link Auth.login} method.
1009
+ *
1010
+ * It sends a request to the [Create Address](https://docs.acmekit.com/api/store#customers_postcustomersmeaddresses)
1011
+ * API route.
1012
+ *
1013
+ * Related guides: [How to manage customer's addresses in the storefront](https://docs.acmekit.com/resources/storefront-development/customers/addresses)
1014
+ *
1015
+ * @param body - The address's details.
1016
+ * @param query - Configure the fields to retrieve in the customer.
1017
+ * @param headers - Headers to pass in the request.
1018
+ * @returns The customer's details.
1019
+ *
1020
+ * @example
1021
+ * // TODO must be authenticated as the customer to create an address
1022
+ * sdk.store.customer.createAddress({
1023
+ * country_code: "us"
1024
+ * })
1025
+ * .then(({ customer }) => {
1026
+ * console.log(customer)
1027
+ * })
1028
+ */
1029
+ createAddress: (body: HttpTypes.StoreCreateCustomerAddress, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerResponse>;
1030
+ /**
1031
+ * This method updates the address of the logged-in customer. The customer must be logged in
1032
+ * first with the {@link Auth.login} method.
1033
+ *
1034
+ * It sends a request to the [Update Address](https://docs.acmekit.com/api/store#customers_postcustomersmeaddressesaddress_id)
1035
+ * API route.
1036
+ *
1037
+ * Related guides: [How to manage customer's addresses in the storefront](https://docs.acmekit.com/resources/storefront-development/customers/addresses)
1038
+ *
1039
+ * @param addressId - The ID of the address to update.
1040
+ * @param body - The details to update in the address.
1041
+ * @param query - Configure the fields to retrieve in the customer.
1042
+ * @param headers - Headers to pass in the request.
1043
+ * @returns The customer's details.
1044
+ *
1045
+ * @example
1046
+ * // TODO must be authenticated as the customer to update their address
1047
+ * sdk.store.customer.updateAddress(
1048
+ * "caddr_123",
1049
+ * {
1050
+ * country_code: "us"
1051
+ * }
1052
+ * )
1053
+ * .then(({ customer }) => {
1054
+ * console.log(customer)
1055
+ * })
1056
+ */
1057
+ updateAddress: (addressId: string, body: HttpTypes.StoreUpdateCustomerAddress, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerResponse>;
1058
+ /**
1059
+ * This method retrieves the logged-in customer's address. The customer must be logged in
1060
+ * first with the {@link Auth.login} method.
1061
+ *
1062
+ * It sends a request to the [List Customer's Address](https://docs.acmekit.com/api/store#customers_getcustomersmeaddresses)
1063
+ * API route.
1064
+ *
1065
+ * Related guides: [How to manage customer's addresses in the storefront](https://docs.acmekit.com/resources/storefront-development/customers/addresses)
1066
+ *
1067
+ * @param query - Configure the fields to retrieve in the addresses.
1068
+ * @param headers - Headers to pass in the request.
1069
+ * @returns The paginated list of addresses.
1070
+ *
1071
+ * @example
1072
+ * To retrieve the list of addresses:
1073
+ *
1074
+ * ```ts
1075
+ * // TODO must be authenticated as the customer to list their addresses
1076
+ * sdk.store.customer.listAddress()
1077
+ * .then(({ addresses, count, offset, limit }) => {
1078
+ * console.log(addresses)
1079
+ * })
1080
+ * ```
1081
+ *
1082
+ * To configure the pagination, pass the `limit` and `offset` query parameters.
1083
+ *
1084
+ * For example, to retrieve only 10 items and skip 10 items:
1085
+ *
1086
+ * ```ts
1087
+ * // TODO must be authenticated as the customer to list their addresses
1088
+ * sdk.store.customer.listAddress({
1089
+ * limit: 10,
1090
+ * offset: 10
1091
+ * })
1092
+ * .then(({ addresses, count, offset, limit }) => {
1093
+ * console.log(addresses)
1094
+ * })
1095
+ * ```
1096
+ *
1097
+ * Using the `fields` query parameter, you can specify the fields and relations to retrieve
1098
+ * in each address:
1099
+ *
1100
+ * ```ts
1101
+ * // TODO must be authenticated as the customer to list their addresses
1102
+ * sdk.store.customer.listAddress({
1103
+ * fields: "id,country_code"
1104
+ * })
1105
+ * .then(({ addresses, count, offset, limit }) => {
1106
+ * console.log(addresses)
1107
+ * })
1108
+ * ```
1109
+ *
1110
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
1111
+ */
1112
+ listAddress: (query?: FindParams & HttpTypes.StoreCustomerAddressFilters, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerAddressListResponse>;
1113
+ /**
1114
+ * This method retrieves an address of the logged-in customer. The customer must be logged in
1115
+ * first with the {@link Auth.login} method.
1116
+ *
1117
+ * It sends a request to the [Get Address](https://docs.acmekit.com/api/store#customers_getcustomersmeaddressesaddress_id)
1118
+ * API route.
1119
+ *
1120
+ * Related guides: [How to manage customer's addresses in the storefront](https://docs.acmekit.com/resources/storefront-development/customers/addresses)
1121
+ *
1122
+ * @param addressId - The address's ID.
1123
+ * @param query - Configure the fields to retrieve in the address.
1124
+ * @param headers - Headers to pass in the request.
1125
+ * @returns The address's details.
1126
+ *
1127
+ * @example
1128
+ * To retrieve an address by its ID:
1129
+ *
1130
+ * ```ts
1131
+ * // TODO must be authenticated as the customer to retrieve their address
1132
+ * sdk.store.customer.retrieveAddress(
1133
+ * "caddr_123"
1134
+ * )
1135
+ * .then(({ address }) => {
1136
+ * console.log(address)
1137
+ * })
1138
+ * ```
1139
+ *
1140
+ * To specify the fields and relations to retrieve:
1141
+ *
1142
+ * ```ts
1143
+ * // TODO must be authenticated as the customer to retrieve their address
1144
+ * sdk.store.customer.retrieveAddress(
1145
+ * "caddr_123",
1146
+ * {
1147
+ * fields: "id,country_code"
1148
+ * }
1149
+ * )
1150
+ * .then(({ address }) => {
1151
+ * console.log(address)
1152
+ * })
1153
+ * ```
1154
+ *
1155
+ * Learn more about the `fields` property in the [API reference](https://docs.acmekit.com/api/store#select-fields-and-relations).
1156
+ */
1157
+ retrieveAddress: (addressId: string, query?: SelectParams, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerAddressResponse>;
1158
+ /**
1159
+ * This method deletes an address of the logged-in customer. The customer must be logged in
1160
+ * first with the {@link Auth.login} method.
1161
+ *
1162
+ * It sends a request to the [Remove Address](https://docs.acmekit.com/api/store#customers_deletecustomersmeaddressesaddress_id)
1163
+ * API route.
1164
+ *
1165
+ * Related guides: [How to manage customer's addresses in the storefront](https://docs.acmekit.com/resources/storefront-development/customers/addresses)
1166
+ *
1167
+ * @param addressId - The address's ID.
1168
+ * @param headers - Headers to pass in the request.
1169
+ * @returns The deletion's details.
1170
+ *
1171
+ * @example
1172
+ * // TODO must be authenticated as the customer to delete their address
1173
+ * sdk.store.customer.deleteAddress("caddr_123")
1174
+ * .then(({ deleted, parent: customer }) => {
1175
+ * console.log(customer)
1176
+ * })
1177
+ */
1178
+ deleteAddress: (addressId: string, headers?: ClientHeaders) => Promise<HttpTypes.StoreCustomerAddressDeleteResponse>;
1179
+ };
1180
+ /**
1181
+ * @tags locale
1182
+ */
1183
+ locale: {
1184
+ /**
1185
+ * This method retrieves the list of supported locales in the store. It sends a request to the
1186
+ * [List Locales](https://docs.acmekit.com/api/store#locales_getlocales) API route.
1187
+ *
1188
+ * @param headers - Headers to pass in the request.
1189
+ * @returns The list of supported locales.
1190
+ *
1191
+ * @example
1192
+ * sdk.store.locale.list()
1193
+ * .then(({ locales }) => {
1194
+ * console.log(locales)
1195
+ * })
1196
+ */
1197
+ list: (headers?: ClientHeaders) => Promise<HttpTypes.StoreLocaleListResponse>;
1198
+ };
1199
+ }
1200
+ //# sourceMappingURL=index.d.ts.map