@medusajs/types 1.12.0-snapshot-20240607093839 → 1.12.0-snapshot-20240703074611

Sign up to get free protection for your applications and to get access to all the features.
Files changed (458) hide show
  1. package/dist/api-key/service.d.ts +24 -24
  2. package/dist/api-key/service.d.ts.map +1 -1
  3. package/dist/auth/service.d.ts +18 -18
  4. package/dist/auth/service.d.ts.map +1 -1
  5. package/dist/bundles.d.ts +2 -1
  6. package/dist/bundles.d.ts.map +1 -1
  7. package/dist/bundles.js +3 -2
  8. package/dist/bundles.js.map +1 -1
  9. package/dist/cart/mutations.d.ts +8 -0
  10. package/dist/cart/mutations.d.ts.map +1 -1
  11. package/dist/cart/mutations.js.map +1 -1
  12. package/dist/cart/service.d.ts +30 -52
  13. package/dist/cart/service.d.ts.map +1 -1
  14. package/dist/common/common.d.ts +6 -1
  15. package/dist/common/common.d.ts.map +1 -1
  16. package/dist/currency/service.d.ts +9 -9
  17. package/dist/currency/service.d.ts.map +1 -1
  18. package/dist/customer/mutations.d.ts +27 -26
  19. package/dist/customer/mutations.d.ts.map +1 -1
  20. package/dist/customer/service.d.ts +40 -43
  21. package/dist/customer/service.d.ts.map +1 -1
  22. package/dist/dal/repository-service.d.ts +2 -2
  23. package/dist/dal/repository-service.d.ts.map +1 -1
  24. package/dist/dml/index.d.ts +161 -0
  25. package/dist/dml/index.d.ts.map +1 -0
  26. package/dist/dml/index.js +5 -0
  27. package/dist/dml/index.js.map +1 -0
  28. package/dist/event-bus/common.d.ts +12 -20
  29. package/dist/event-bus/common.d.ts.map +1 -1
  30. package/dist/event-bus/event-bus-module.d.ts +4 -4
  31. package/dist/event-bus/event-bus-module.d.ts.map +1 -1
  32. package/dist/event-bus/event-bus.d.ts +2 -4
  33. package/dist/event-bus/event-bus.d.ts.map +1 -1
  34. package/dist/file/service.d.ts +12 -12
  35. package/dist/file/service.d.ts.map +1 -1
  36. package/dist/fulfillment/mutations/service-zone.d.ts +1 -1
  37. package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
  38. package/dist/fulfillment/service.d.ts +27 -27
  39. package/dist/fulfillment/service.d.ts.map +1 -1
  40. package/dist/http/currency/admin/entities.d.ts +14 -0
  41. package/dist/http/currency/admin/entities.d.ts.map +1 -0
  42. package/dist/http/currency/admin/entities.js +3 -0
  43. package/dist/http/currency/admin/entities.js.map +1 -0
  44. package/dist/http/currency/admin/index.d.ts +2 -0
  45. package/dist/http/currency/admin/index.d.ts.map +1 -0
  46. package/dist/{inventory/bundle.js → http/currency/admin/index.js} +2 -3
  47. package/dist/http/currency/admin/index.js.map +1 -0
  48. package/dist/http/currency/index.d.ts +2 -0
  49. package/dist/http/currency/index.d.ts.map +1 -0
  50. package/dist/{region__legacy → http/currency}/index.js +1 -1
  51. package/dist/http/currency/index.js.map +1 -0
  52. package/dist/http/fulfillment-provider/admin/entities.d.ts +1 -5
  53. package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -1
  54. package/dist/http/fulfillment-set/admin/entities.d.ts +3 -1
  55. package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -1
  56. package/dist/http/index.d.ts +5 -0
  57. package/dist/http/index.d.ts.map +1 -1
  58. package/dist/http/index.js +5 -0
  59. package/dist/http/index.js.map +1 -1
  60. package/dist/http/inventory/{inventory.d.ts → admin/entities.d.ts} +2 -10
  61. package/dist/http/inventory/admin/entities.d.ts.map +1 -0
  62. package/dist/http/inventory/admin/entities.js +3 -0
  63. package/dist/http/inventory/admin/entities.js.map +1 -0
  64. package/dist/http/inventory/admin/index.d.ts +5 -0
  65. package/dist/http/inventory/admin/index.d.ts.map +1 -0
  66. package/dist/http/inventory/admin/index.js +21 -0
  67. package/dist/http/inventory/admin/index.js.map +1 -0
  68. package/dist/http/inventory/admin/payloads.d.ts +19 -0
  69. package/dist/http/inventory/admin/payloads.d.ts.map +1 -0
  70. package/dist/http/inventory/admin/payloads.js +3 -0
  71. package/dist/http/inventory/admin/payloads.js.map +1 -0
  72. package/dist/http/inventory/admin/queries.d.ts +18 -0
  73. package/dist/http/inventory/admin/queries.d.ts.map +1 -0
  74. package/dist/http/{product/store.js → inventory/admin/queries.js} +1 -1
  75. package/dist/http/inventory/admin/queries.js.map +1 -0
  76. package/dist/http/inventory/admin/responses.d.ts +10 -0
  77. package/dist/http/inventory/admin/responses.d.ts.map +1 -0
  78. package/dist/http/inventory/admin/responses.js +3 -0
  79. package/dist/http/inventory/admin/responses.js.map +1 -0
  80. package/dist/http/inventory/index.d.ts +1 -2
  81. package/dist/http/inventory/index.d.ts.map +1 -1
  82. package/dist/http/inventory/index.js +1 -2
  83. package/dist/http/inventory/index.js.map +1 -1
  84. package/dist/http/inventory-level/admin/entities.d.ts +11 -0
  85. package/dist/http/inventory-level/admin/entities.d.ts.map +1 -0
  86. package/dist/http/inventory-level/admin/entities.js +3 -0
  87. package/dist/http/inventory-level/admin/entities.js.map +1 -0
  88. package/dist/http/inventory-level/admin/index.d.ts +5 -0
  89. package/dist/http/inventory-level/admin/index.d.ts.map +1 -0
  90. package/dist/http/inventory-level/admin/index.js +21 -0
  91. package/dist/http/inventory-level/admin/index.js.map +1 -0
  92. package/dist/http/inventory-level/admin/payloads.d.ts +15 -0
  93. package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -0
  94. package/dist/http/inventory-level/admin/payloads.js +3 -0
  95. package/dist/http/inventory-level/admin/payloads.js.map +1 -0
  96. package/dist/http/inventory-level/admin/queries.d.ts +5 -0
  97. package/dist/http/inventory-level/admin/queries.d.ts.map +1 -0
  98. package/dist/http/{product/admin.js → inventory-level/admin/queries.js} +1 -1
  99. package/dist/http/inventory-level/admin/queries.js.map +1 -0
  100. package/dist/http/inventory-level/admin/responses.d.ts +9 -0
  101. package/dist/http/inventory-level/admin/responses.d.ts.map +1 -0
  102. package/dist/http/{inventory/inventory.js → inventory-level/admin/responses.js} +1 -1
  103. package/dist/http/inventory-level/admin/responses.js.map +1 -0
  104. package/dist/http/inventory-level/index.d.ts +2 -0
  105. package/dist/http/inventory-level/index.d.ts.map +1 -0
  106. package/dist/http/inventory-level/index.js +18 -0
  107. package/dist/http/inventory-level/index.js.map +1 -0
  108. package/dist/http/order/common.d.ts +2 -0
  109. package/dist/http/order/common.d.ts.map +1 -1
  110. package/dist/http/price-list/admin/entities.d.ts +21 -0
  111. package/dist/http/price-list/admin/entities.d.ts.map +1 -0
  112. package/dist/http/price-list/admin/entities.js +3 -0
  113. package/dist/http/price-list/admin/entities.js.map +1 -0
  114. package/dist/http/price-list/admin/index.d.ts +5 -0
  115. package/dist/http/price-list/admin/index.d.ts.map +1 -0
  116. package/dist/http/price-list/admin/index.js +21 -0
  117. package/dist/http/price-list/admin/index.js.map +1 -0
  118. package/dist/http/price-list/admin/payloads.d.ts +46 -0
  119. package/dist/http/price-list/admin/payloads.d.ts.map +1 -0
  120. package/dist/http/price-list/admin/payloads.js +3 -0
  121. package/dist/http/price-list/admin/payloads.js.map +1 -0
  122. package/dist/http/price-list/admin/queries.d.ts +14 -0
  123. package/dist/http/price-list/admin/queries.d.ts.map +1 -0
  124. package/dist/http/{product-category/store.js → price-list/admin/queries.js} +1 -1
  125. package/dist/http/price-list/admin/queries.js.map +1 -0
  126. package/dist/http/price-list/admin/responses.d.ts +12 -0
  127. package/dist/http/price-list/admin/responses.d.ts.map +1 -0
  128. package/dist/http/price-list/admin/responses.js +3 -0
  129. package/dist/http/price-list/admin/responses.js.map +1 -0
  130. package/dist/http/price-list/index.d.ts +2 -0
  131. package/dist/http/price-list/index.d.ts.map +1 -0
  132. package/dist/http/price-list/index.js +18 -0
  133. package/dist/http/price-list/index.js.map +1 -0
  134. package/dist/http/pricing/admin/{entitites.d.ts → entities.d.ts} +1 -1
  135. package/dist/http/pricing/admin/entities.d.ts.map +1 -0
  136. package/dist/http/pricing/admin/entities.js +3 -0
  137. package/dist/http/pricing/admin/entities.js.map +1 -0
  138. package/dist/http/pricing/admin/index.d.ts +1 -1
  139. package/dist/http/pricing/admin/index.d.ts.map +1 -1
  140. package/dist/http/pricing/admin/index.js +1 -1
  141. package/dist/http/pricing/admin/index.js.map +1 -1
  142. package/dist/http/product/admin/entitites.d.ts +26 -0
  143. package/dist/http/product/admin/entitites.d.ts.map +1 -0
  144. package/dist/http/product/admin/entitites.js.map +1 -0
  145. package/dist/http/product/admin/index.d.ts +5 -0
  146. package/dist/http/product/admin/index.d.ts.map +1 -0
  147. package/dist/http/product/admin/index.js +21 -0
  148. package/dist/http/product/admin/index.js.map +1 -0
  149. package/dist/http/product/admin/payloads.d.ts +152 -0
  150. package/dist/http/product/admin/payloads.d.ts.map +1 -0
  151. package/dist/http/product/admin/payloads.js +3 -0
  152. package/dist/http/product/admin/payloads.js.map +1 -0
  153. package/dist/http/product/admin/queries.d.ts +12 -0
  154. package/dist/http/product/admin/queries.d.ts.map +1 -0
  155. package/dist/http/product/admin/queries.js +3 -0
  156. package/dist/http/product/admin/queries.js.map +1 -0
  157. package/dist/http/product/admin/responses.d.ts +35 -0
  158. package/dist/http/product/admin/responses.d.ts.map +1 -0
  159. package/dist/http/product/admin/responses.js +3 -0
  160. package/dist/http/product/admin/responses.js.map +1 -0
  161. package/dist/http/product/common.d.ts +72 -106
  162. package/dist/http/product/common.d.ts.map +1 -1
  163. package/dist/http/product/store/entitites.d.ts +19 -0
  164. package/dist/http/product/store/entitites.d.ts.map +1 -0
  165. package/dist/http/product/store/entitites.js +3 -0
  166. package/dist/http/product/store/entitites.js.map +1 -0
  167. package/dist/http/product/store/index.d.ts +4 -0
  168. package/dist/http/product/store/index.d.ts.map +1 -0
  169. package/dist/http/product/store/index.js +20 -0
  170. package/dist/http/product/store/index.js.map +1 -0
  171. package/dist/http/product/store/queries.d.ts +13 -0
  172. package/dist/http/product/store/queries.d.ts.map +1 -0
  173. package/dist/http/product/store/queries.js +3 -0
  174. package/dist/http/product/store/queries.js.map +1 -0
  175. package/dist/http/product/store/responses.d.ts +9 -0
  176. package/dist/http/product/store/responses.d.ts.map +1 -0
  177. package/dist/http/product/store/responses.js +3 -0
  178. package/dist/http/product/store/responses.js.map +1 -0
  179. package/dist/http/product-category/admin/entities.d.ts +8 -0
  180. package/dist/http/product-category/admin/entities.d.ts.map +1 -0
  181. package/dist/http/product-category/admin/entities.js +3 -0
  182. package/dist/http/product-category/admin/entities.js.map +1 -0
  183. package/dist/http/product-category/admin/index.d.ts +5 -0
  184. package/dist/http/product-category/admin/index.d.ts.map +1 -0
  185. package/dist/http/product-category/admin/index.js +21 -0
  186. package/dist/http/product-category/admin/index.js.map +1 -0
  187. package/dist/http/product-category/admin/payloads.d.ts +25 -0
  188. package/dist/http/product-category/admin/payloads.d.ts.map +1 -0
  189. package/dist/http/product-category/admin/payloads.js +3 -0
  190. package/dist/http/product-category/admin/payloads.js.map +1 -0
  191. package/dist/http/product-category/admin/queries.d.ts +8 -0
  192. package/dist/http/product-category/admin/queries.d.ts.map +1 -0
  193. package/dist/http/product-category/{admin.js → admin/queries.js} +1 -1
  194. package/dist/http/product-category/admin/queries.js.map +1 -0
  195. package/dist/http/product-category/admin/responses.d.ts +12 -0
  196. package/dist/http/product-category/admin/responses.d.ts.map +1 -0
  197. package/dist/http/product-category/admin/responses.js +3 -0
  198. package/dist/http/product-category/admin/responses.js.map +1 -0
  199. package/dist/http/product-category/common.d.ts +31 -7
  200. package/dist/http/product-category/common.d.ts.map +1 -1
  201. package/dist/http/product-category/store/entities.d.ts +6 -0
  202. package/dist/http/product-category/store/entities.d.ts.map +1 -0
  203. package/dist/http/product-category/store/entities.js +3 -0
  204. package/dist/http/product-category/store/entities.js.map +1 -0
  205. package/dist/http/product-category/store/index.d.ts +4 -0
  206. package/dist/http/product-category/store/index.d.ts.map +1 -0
  207. package/dist/http/product-category/store/index.js +20 -0
  208. package/dist/http/product-category/store/index.js.map +1 -0
  209. package/dist/http/product-category/store/queries.d.ts +6 -0
  210. package/dist/http/product-category/store/queries.d.ts.map +1 -0
  211. package/dist/http/product-category/store/queries.js +3 -0
  212. package/dist/http/product-category/store/queries.js.map +1 -0
  213. package/dist/http/product-category/store/responses.d.ts +10 -0
  214. package/dist/http/product-category/store/responses.d.ts.map +1 -0
  215. package/dist/http/product-category/store/responses.js +3 -0
  216. package/dist/http/product-category/store/responses.js.map +1 -0
  217. package/dist/http/product-type/admin/entities.d.ts +4 -0
  218. package/dist/http/product-type/admin/entities.d.ts.map +1 -0
  219. package/dist/http/product-type/admin/entities.js +3 -0
  220. package/dist/http/product-type/admin/entities.js.map +1 -0
  221. package/dist/http/product-type/admin/index.d.ts +5 -0
  222. package/dist/http/product-type/admin/index.d.ts.map +1 -0
  223. package/dist/http/product-type/admin/index.js +21 -0
  224. package/dist/http/product-type/admin/index.js.map +1 -0
  225. package/dist/http/product-type/admin/payloads.d.ts +9 -0
  226. package/dist/http/product-type/admin/payloads.d.ts.map +1 -0
  227. package/dist/http/product-type/admin/payloads.js +3 -0
  228. package/dist/http/product-type/admin/payloads.js.map +1 -0
  229. package/dist/http/product-type/admin/queries.d.ts +13 -0
  230. package/dist/http/product-type/admin/queries.d.ts.map +1 -0
  231. package/dist/http/product-type/admin/queries.js +3 -0
  232. package/dist/http/product-type/admin/queries.js.map +1 -0
  233. package/dist/http/product-type/admin/responses.d.ts +12 -0
  234. package/dist/http/product-type/admin/responses.d.ts.map +1 -0
  235. package/dist/http/product-type/admin/responses.js +3 -0
  236. package/dist/http/product-type/admin/responses.js.map +1 -0
  237. package/dist/http/product-type/common.d.ts +9 -0
  238. package/dist/http/product-type/common.d.ts.map +1 -0
  239. package/dist/{inventory → http/product-type}/common.js.map +1 -1
  240. package/dist/http/product-type/index.d.ts +3 -0
  241. package/dist/http/product-type/index.d.ts.map +1 -0
  242. package/dist/http/product-type/index.js +19 -0
  243. package/dist/http/product-type/index.js.map +1 -0
  244. package/dist/http/product-type/store/entities.d.ts +4 -0
  245. package/dist/http/product-type/store/entities.d.ts.map +1 -0
  246. package/dist/http/product-type/store/entities.js +3 -0
  247. package/dist/http/product-type/store/entities.js.map +1 -0
  248. package/dist/http/product-type/store/index.d.ts +2 -0
  249. package/dist/http/product-type/store/index.d.ts.map +1 -0
  250. package/dist/http/product-type/store/index.js +18 -0
  251. package/dist/http/product-type/store/index.js.map +1 -0
  252. package/dist/http/promotion/admin/rule-attribute-options.d.ts +5 -0
  253. package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -1
  254. package/dist/http/sales-channel/admin/queries.d.ts +2 -4
  255. package/dist/http/sales-channel/admin/queries.d.ts.map +1 -1
  256. package/dist/http/shipping-option/admin/entities.d.ts +9 -1
  257. package/dist/http/shipping-option/admin/entities.d.ts.map +1 -1
  258. package/dist/http/shipping-option/admin/payloads.d.ts +8 -9
  259. package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
  260. package/dist/http/stock-locations/admin/entities.d.ts +2 -1
  261. package/dist/http/stock-locations/admin/entities.d.ts.map +1 -1
  262. package/dist/http/store/admin/entities.d.ts +23 -0
  263. package/dist/http/store/admin/entities.d.ts.map +1 -0
  264. package/dist/http/store/admin/entities.js +3 -0
  265. package/dist/http/store/admin/entities.js.map +1 -0
  266. package/dist/http/store/admin/index.d.ts +5 -0
  267. package/dist/http/store/admin/index.d.ts.map +1 -0
  268. package/dist/http/store/admin/index.js +21 -0
  269. package/dist/http/store/admin/index.js.map +1 -0
  270. package/dist/http/store/admin/payloads.d.ts +14 -0
  271. package/dist/http/store/admin/payloads.d.ts.map +1 -0
  272. package/dist/http/store/admin/payloads.js +3 -0
  273. package/dist/http/store/admin/payloads.js.map +1 -0
  274. package/dist/http/store/admin/queries.d.ts +10 -0
  275. package/dist/http/store/admin/queries.d.ts.map +1 -0
  276. package/dist/http/store/admin/queries.js +3 -0
  277. package/dist/http/store/admin/queries.js.map +1 -0
  278. package/dist/http/store/admin/responses.d.ts +10 -0
  279. package/dist/http/store/admin/responses.d.ts.map +1 -0
  280. package/dist/http/store/admin/responses.js +3 -0
  281. package/dist/http/store/admin/responses.js.map +1 -0
  282. package/dist/http/store/index.d.ts +2 -0
  283. package/dist/http/store/index.d.ts.map +1 -0
  284. package/dist/http/store/index.js +18 -0
  285. package/dist/http/store/index.js.map +1 -0
  286. package/dist/index.d.ts +1 -1
  287. package/dist/index.d.ts.map +1 -1
  288. package/dist/index.js +1 -1
  289. package/dist/index.js.map +1 -1
  290. package/dist/inventory/common/reservation-item.d.ts +1 -1
  291. package/dist/inventory/index.d.ts +1 -2
  292. package/dist/inventory/index.d.ts.map +1 -1
  293. package/dist/inventory/index.js +1 -15
  294. package/dist/inventory/index.js.map +1 -1
  295. package/dist/inventory/mutations/reservation-item.d.ts +7 -7
  296. package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
  297. package/dist/inventory/service.d.ts +671 -640
  298. package/dist/inventory/service.d.ts.map +1 -1
  299. package/dist/joiner/index.d.ts +5 -2
  300. package/dist/joiner/index.d.ts.map +1 -1
  301. package/dist/modules-sdk/index.d.ts +12 -12
  302. package/dist/modules-sdk/index.d.ts.map +1 -1
  303. package/dist/modules-sdk/index.js +1 -1
  304. package/dist/modules-sdk/index.js.map +1 -1
  305. package/dist/modules-sdk/{internal-module-service.d.ts → medusa-internal-service.d.ts} +19 -18
  306. package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -0
  307. package/dist/{http/inventory/inventory-level.js → modules-sdk/medusa-internal-service.js} +1 -1
  308. package/dist/modules-sdk/medusa-internal-service.js.map +1 -0
  309. package/dist/notification/service.d.ts +15 -15
  310. package/dist/notification/service.d.ts.map +1 -1
  311. package/dist/order/common.d.ts +50 -1
  312. package/dist/order/common.d.ts.map +1 -1
  313. package/dist/order/mutations.d.ts +68 -17
  314. package/dist/order/mutations.d.ts.map +1 -1
  315. package/dist/order/service.d.ts +41 -30
  316. package/dist/order/service.d.ts.map +1 -1
  317. package/dist/pricing/common/index.d.ts +0 -2
  318. package/dist/pricing/common/index.d.ts.map +1 -1
  319. package/dist/pricing/common/index.js +0 -2
  320. package/dist/pricing/common/index.js.map +1 -1
  321. package/dist/pricing/common/money-amount.d.ts +2 -2
  322. package/dist/pricing/common/money-amount.d.ts.map +1 -1
  323. package/dist/pricing/common/price-list.d.ts +25 -125
  324. package/dist/pricing/common/price-list.d.ts.map +1 -1
  325. package/dist/pricing/common/price-rule.d.ts +8 -16
  326. package/dist/pricing/common/price-rule.d.ts.map +1 -1
  327. package/dist/pricing/common/price-set.d.ts +7 -56
  328. package/dist/pricing/common/price-set.d.ts.map +1 -1
  329. package/dist/pricing/service.d.ts +31 -290
  330. package/dist/pricing/service.d.ts.map +1 -1
  331. package/dist/pricing/workflows.d.ts +5 -5
  332. package/dist/pricing/workflows.d.ts.map +1 -1
  333. package/dist/product/common.d.ts +99 -79
  334. package/dist/product/common.d.ts.map +1 -1
  335. package/dist/product/service.d.ts +322 -203
  336. package/dist/product/service.d.ts.map +1 -1
  337. package/dist/promotion/common/application-method.d.ts +1 -1
  338. package/dist/promotion/common/application-method.d.ts.map +1 -1
  339. package/dist/promotion/mutations.d.ts +7 -7
  340. package/dist/promotion/mutations.d.ts.map +1 -1
  341. package/dist/promotion/service.d.ts +29 -29
  342. package/dist/promotion/service.d.ts.map +1 -1
  343. package/dist/region/common.d.ts.map +1 -1
  344. package/dist/region/mutations.d.ts +4 -3
  345. package/dist/region/mutations.d.ts.map +1 -1
  346. package/dist/region/service.d.ts +31 -31
  347. package/dist/region/service.d.ts.map +1 -1
  348. package/dist/sales-channel/mutations.d.ts +4 -3
  349. package/dist/sales-channel/mutations.d.ts.map +1 -1
  350. package/dist/sales-channel/service.d.ts +28 -28
  351. package/dist/sales-channel/service.d.ts.map +1 -1
  352. package/dist/shared-context.d.ts +2 -3
  353. package/dist/shared-context.d.ts.map +1 -1
  354. package/dist/stock-location/common.d.ts +12 -17
  355. package/dist/stock-location/common.d.ts.map +1 -1
  356. package/dist/stock-location/index.d.ts +0 -1
  357. package/dist/stock-location/index.d.ts.map +1 -1
  358. package/dist/stock-location/index.js +0 -1
  359. package/dist/stock-location/index.js.map +1 -1
  360. package/dist/stock-location/service.d.ts +193 -180
  361. package/dist/stock-location/service.d.ts.map +1 -1
  362. package/dist/store/common/store.d.ts +31 -5
  363. package/dist/store/common/store.d.ts.map +1 -1
  364. package/dist/store/mutations/store.d.ts +14 -40
  365. package/dist/store/mutations/store.d.ts.map +1 -1
  366. package/dist/store/service.d.ts +32 -37
  367. package/dist/store/service.d.ts.map +1 -1
  368. package/dist/tax/mutations.d.ts +7 -6
  369. package/dist/tax/mutations.d.ts.map +1 -1
  370. package/dist/tax/service.d.ts +35 -35
  371. package/dist/tax/service.d.ts.map +1 -1
  372. package/dist/user/service.d.ts +22 -22
  373. package/dist/user/service.d.ts.map +1 -1
  374. package/dist/workflow/fulfillment/service-zones.d.ts +1 -1
  375. package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -1
  376. package/dist/workflow/order/create-fulfillment.d.ts +2 -2
  377. package/dist/workflow/order/create-fulfillment.d.ts.map +1 -1
  378. package/dist/workflow/order/create-return-order.d.ts +8 -7
  379. package/dist/workflow/order/create-return-order.d.ts.map +1 -1
  380. package/dist/workflow/order/create-shipment.d.ts +2 -1
  381. package/dist/workflow/order/create-shipment.d.ts.map +1 -1
  382. package/dist/workflow/order/index.d.ts +1 -0
  383. package/dist/workflow/order/index.d.ts.map +1 -1
  384. package/dist/workflow/order/index.js +1 -0
  385. package/dist/workflow/order/index.js.map +1 -1
  386. package/dist/workflow/order/receive-return.d.ts +17 -0
  387. package/dist/workflow/order/receive-return.d.ts.map +1 -0
  388. package/dist/workflow/order/receive-return.js +3 -0
  389. package/dist/workflow/order/receive-return.js.map +1 -0
  390. package/dist/workflow/price-list/create-price-list.d.ts +1 -2
  391. package/dist/workflow/price-list/create-price-list.d.ts.map +1 -1
  392. package/dist/workflow/product-category/index.d.ts +6 -6
  393. package/dist/workflow/product-category/index.d.ts.map +1 -1
  394. package/dist/workflow/reservation/create-reservations.d.ts +3 -3
  395. package/dist/workflow/reservation/create-reservations.d.ts.map +1 -1
  396. package/dist/workflow/reservation/update-reservations.d.ts +3 -3
  397. package/dist/workflow/reservation/update-reservations.d.ts.map +1 -1
  398. package/dist/workflows/products/mutations.d.ts +2 -2
  399. package/dist/workflows/products/mutations.d.ts.map +1 -1
  400. package/dist/workflows-sdk/service.d.ts +2 -2
  401. package/dist/workflows-sdk/service.d.ts.map +1 -1
  402. package/package.json +1 -2
  403. package/dist/http/inventory/inventory-level.d.ts +0 -20
  404. package/dist/http/inventory/inventory-level.d.ts.map +0 -1
  405. package/dist/http/inventory/inventory-level.js.map +0 -1
  406. package/dist/http/inventory/inventory.d.ts.map +0 -1
  407. package/dist/http/inventory/inventory.js.map +0 -1
  408. package/dist/http/pricing/admin/entitites.d.ts.map +0 -1
  409. package/dist/http/pricing/admin/entitites.js.map +0 -1
  410. package/dist/http/product/admin.d.ts +0 -99
  411. package/dist/http/product/admin.d.ts.map +0 -1
  412. package/dist/http/product/admin.js.map +0 -1
  413. package/dist/http/product/store.d.ts +0 -33
  414. package/dist/http/product/store.d.ts.map +0 -1
  415. package/dist/http/product/store.js.map +0 -1
  416. package/dist/http/product-category/admin.d.ts +0 -9
  417. package/dist/http/product-category/admin.d.ts.map +0 -1
  418. package/dist/http/product-category/admin.js.map +0 -1
  419. package/dist/http/product-category/store.d.ts +0 -9
  420. package/dist/http/product-category/store.d.ts.map +0 -1
  421. package/dist/http/product-category/store.js.map +0 -1
  422. package/dist/inventory/bundle.d.ts +0 -3
  423. package/dist/inventory/bundle.d.ts.map +0 -1
  424. package/dist/inventory/bundle.js.map +0 -1
  425. package/dist/inventory/common.d.ts +0 -495
  426. package/dist/inventory/common.d.ts.map +0 -1
  427. package/dist/inventory/service-next.d.ts +0 -937
  428. package/dist/inventory/service-next.d.ts.map +0 -1
  429. package/dist/inventory/service-next.js +0 -3
  430. package/dist/inventory/service-next.js.map +0 -1
  431. package/dist/modules-sdk/internal-module-service.d.ts.map +0 -1
  432. package/dist/modules-sdk/internal-module-service.js +0 -3
  433. package/dist/modules-sdk/internal-module-service.js.map +0 -1
  434. package/dist/modules-sdk/module-service.d.ts +0 -1
  435. package/dist/modules-sdk/module-service.d.ts.map +0 -1
  436. package/dist/modules-sdk/module-service.js +0 -1
  437. package/dist/modules-sdk/module-service.js.map +0 -1
  438. package/dist/pricing/common/price-set-rule-type.d.ts +0 -24
  439. package/dist/pricing/common/price-set-rule-type.d.ts.map +0 -1
  440. package/dist/pricing/common/price-set-rule-type.js +0 -3
  441. package/dist/pricing/common/price-set-rule-type.js.map +0 -1
  442. package/dist/pricing/common/rule-type.d.ts +0 -102
  443. package/dist/pricing/common/rule-type.d.ts.map +0 -1
  444. package/dist/pricing/common/rule-type.js +0 -3
  445. package/dist/pricing/common/rule-type.js.map +0 -1
  446. package/dist/region__legacy/common.d.ts +0 -44
  447. package/dist/region__legacy/common.d.ts.map +0 -1
  448. package/dist/region__legacy/common.js +0 -3
  449. package/dist/region__legacy/common.js.map +0 -1
  450. package/dist/region__legacy/index.d.ts +0 -2
  451. package/dist/region__legacy/index.d.ts.map +0 -1
  452. package/dist/region__legacy/index.js.map +0 -1
  453. package/dist/stock-location/service-next.d.ts +0 -279
  454. package/dist/stock-location/service-next.d.ts.map +0 -1
  455. package/dist/stock-location/service-next.js +0 -3
  456. package/dist/stock-location/service-next.js.map +0 -1
  457. /package/dist/http/{pricing → product}/admin/entitites.js +0 -0
  458. /package/dist/{inventory → http/product-type}/common.js +0 -0
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./common"), exports);
18
18
  __exportStar(require("./service"), exports);
19
- __exportStar(require("./service-next"), exports);
20
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stock-location/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,4CAAyB;AACzB,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/stock-location/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,4CAAyB"}
@@ -1,266 +1,279 @@
1
- import { CreateStockLocationInput, FilterableStockLocationProps, StockLocationDTO, UpdateStockLocationInput } from "./common";
1
+ import { CreateStockLocationInput, FilterableStockLocationProps, StockLocationDTO, UpdateStockLocationInput, UpsertStockLocationInput } from "./common";
2
+ import { RestoreReturn, SoftDeleteReturn } from "../dal";
3
+ import { Context } from "../shared-context";
2
4
  import { FindConfig } from "../common/common";
3
5
  import { IModuleService } from "../modules-sdk";
4
- import { SharedContext } from "../shared-context";
5
6
  /**
6
- * The main service interface for the stock location's module.
7
+ * The main service interface for the Stock Location Module.
7
8
  */
8
9
  export interface IStockLocationService extends IModuleService {
9
10
  /**
10
- * This method is used to retrieve a paginated list of stock locations based on optional filters and configuration.
11
+ * This method retrieves a paginated list of stock locations based on optional filters and configuration.
11
12
  *
12
13
  * @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
13
- * @param {FindConfig<StockLocationDTO>} config -
14
- * The configurations determining how the stock locations are retrieved. Its properties, such as `select` or `relations`, accept the
14
+ * @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
15
15
  * attributes or relations associated with a stock location.
16
- * @param {SharedContext} context - A context used to share resources, such as transaction manager, between the application and the module.
17
- * @return {Promise<StockLocationDTO[]>} The list of stock locations.
16
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
17
+ * @returns {Promise<StockLocationDTO[]>} The list of stock locations.
18
18
  *
19
19
  * @example
20
20
  * To retrieve a list of stock locations using their IDs:
21
21
  *
22
22
  * ```ts
23
- * import {
24
- * initialize as initializeStockLocationModule,
25
- * } from "@medusajs/stock-location"
26
- *
27
- * async function listStockLocations (ids: string[]) {
28
- * const stockLocationModule = await initializeStockLocationModule({})
29
- *
30
- * const stockLocations = await stockLocationModule.list({
31
- * id: ids
32
- * })
33
- *
34
- * // do something with the stock locations or return them
35
- * }
23
+ * const stockLocations = await stockLocationModuleService.listStockLocations({
24
+ * id: ["sloc_123", "sloc_321"],
25
+ * })
36
26
  * ```
37
27
  *
38
28
  * To specify relations that should be retrieved within the stock locations:
39
29
  *
40
30
  * ```ts
41
- * import {
42
- * initialize as initializeStockLocationModule,
43
- * } from "@medusajs/stock-location"
44
- *
45
- * async function listStockLocations (ids: string[]) {
46
- * const stockLocationModule = await initializeStockLocationModule({})
47
- *
48
- * const stockLocations = await stockLocationModule.list({
49
- * id: ids
50
- * }, {
51
- * relations: ["address"]
52
- * })
53
- *
54
- * // do something with the stock locations or return them
55
- * }
31
+ * const stockLocations = await stockLocationModuleService.listStockLocations(
32
+ * {
33
+ * id: ["sloc_123", "sloc_321"],
34
+ * },
35
+ * {
36
+ * relations: ["address"],
37
+ * }
38
+ * )
56
39
  * ```
57
40
  *
58
41
  * By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
59
42
  *
60
43
  * ```ts
61
- * import {
62
- * initialize as initializeStockLocationModule,
63
- * } from "@medusajs/stock-location"
64
- *
65
- * async function listStockLocations (ids: string[], skip: number, take: number) {
66
- * const stockLocationModule = await initializeStockLocationModule({})
67
- *
68
- * const stockLocations = await stockLocationModule.list({
69
- * id: ids
70
- * }, {
44
+ * const stockLocations = await stockLocationModuleService.listStockLocations(
45
+ * {
46
+ * id: ["sloc_123", "sloc_321"],
47
+ * },
48
+ * {
71
49
  * relations: ["address"],
72
- * skip,
73
- * take
74
- * })
75
- *
76
- * // do something with the stock locations or return them
77
- * }
50
+ * take: 20,
51
+ * skip: 2,
52
+ * }
53
+ * )
78
54
  * ```
79
55
  */
80
- list(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: SharedContext): Promise<StockLocationDTO[]>;
56
+ listStockLocations(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO[]>;
81
57
  /**
82
- * This method is used to retrieve a paginated list of stock locations along with the total count of available stock locations satisfying the provided filters.
58
+ * This method retrieves a paginated list of stock locations along with the total count of available stock locations satisfying the provided filters.
83
59
  *
84
60
  * @param {FilterableStockLocationProps} selector - The filters to apply on the retrieved stock locations.
85
- * @param {FindConfig<StockLocationDTO>} config -
86
- * The configurations determining how the stock locations are retrieved. Its properties, such as `select` or `relations`, accept the
61
+ * @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
87
62
  * attributes or relations associated with a stock location.
88
- * @param {SharedContext} context - A context used to share resources, such as transaction manager, between the application and the module.
89
- * @return {Promise<[StockLocationDTO[], number]>} The list of stock locations along with the total count.
63
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
64
+ * @returns {Promise<[StockLocationDTO[], number]>} The list of stock locations along with their total count.
90
65
  *
91
66
  * @example
92
67
  * To retrieve a list of stock locations using their IDs:
93
68
  *
94
69
  * ```ts
95
- * import {
96
- * initialize as initializeStockLocationModule,
97
- * } from "@medusajs/stock-location"
98
- *
99
- * async function listStockLocations (ids: string[]) {
100
- * const stockLocationModule = await initializeStockLocationModule({})
101
- *
102
- * const [stockLocations, count] = await stockLocationModule.listAndCount({
103
- * id: ids
70
+ * const [stockLocations, count] =
71
+ * await stockLocationModuleService.listandCountStockLocations({
72
+ * id: ["sloc_123", "sloc_321"],
104
73
  * })
105
- *
106
- * // do something with the stock locations or return them
107
- * }
108
74
  * ```
109
75
  *
110
76
  * To specify relations that should be retrieved within the stock locations:
111
77
  *
112
78
  * ```ts
113
- * import {
114
- * initialize as initializeStockLocationModule,
115
- * } from "@medusajs/stock-location"
116
- *
117
- * async function listStockLocations (ids: string[]) {
118
- * const stockLocationModule = await initializeStockLocationModule({})
119
- *
120
- * const [stockLocations, count] = await stockLocationModule.listAndCount({
121
- * id: ids
122
- * }, {
123
- * relations: ["address"]
124
- * })
125
- *
126
- * // do something with the stock locations or return them
127
- * }
79
+ * const [stockLocations, count] =
80
+ * await stockLocationModuleService.listandCountStockLocations(
81
+ * {
82
+ * id: ["sloc_123", "sloc_321"],
83
+ * },
84
+ * {
85
+ * relations: ["address"],
86
+ * }
87
+ * )
128
88
  * ```
129
89
  *
130
90
  * By default, only the first `10` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
131
91
  *
132
92
  * ```ts
133
- * import {
134
- * initialize as initializeStockLocationModule,
135
- * } from "@medusajs/stock-location"
136
- *
137
- * async function listStockLocations (ids: string[], skip: number, take: number) {
138
- * const stockLocationModule = await initializeStockLocationModule({})
139
- *
140
- * const [stockLocations, count] = await stockLocationModule.listAndCount({
141
- * id: ids
142
- * }, {
143
- * relations: ["address"],
144
- * skip,
145
- * take
146
- * })
147
- *
148
- * // do something with the stock locations or return them
149
- * }
93
+ * const [stockLocations, count] =
94
+ * await stockLocationModuleService.listandCountStockLocations(
95
+ * {
96
+ * id: ["sloc_123", "sloc_321"],
97
+ * },
98
+ * {
99
+ * relations: ["address"],
100
+ * take: 20,
101
+ * skip: 2,
102
+ * }
103
+ * )
150
104
  * ```
151
105
  */
152
- listAndCount(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: SharedContext): Promise<[StockLocationDTO[], number]>;
106
+ listAndCountStockLocations(selector: FilterableStockLocationProps, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<[StockLocationDTO[], number]>;
153
107
  /**
154
- * This method is used to retrieve a stock location by its ID
108
+ * This method retrieves a stock location by its ID.
155
109
  *
156
- * @param {string} id - The ID of the stock location
157
- * @param {FindConfig<StockLocationDTO>} config -
158
- * The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
110
+ * @param {string} id - The ID of the stock location.
111
+ * @param {FindConfig<StockLocationDTO>} config - The configurations determining how the stock location is retrieved. Its properties, such as `select` or `relations`, accept the
159
112
  * attributes or relations associated with a stock location.
160
- * @param {SharedContext} context - A context used to share resources, such as transaction manager, between the application and the module.
161
- * @returns {Promise<StockLocationDTO>} The stock location's details.
113
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
114
+ * @returns {Promise<StockLocationDTO>} The retrieved stock location.
162
115
  *
163
116
  * @example
164
- * A simple example that retrieves a inventory item by its ID:
165
- *
166
- * ```ts
167
- * import {
168
- * initialize as initializeStockLocationModule,
169
- * } from "@medusajs/stock-location"
117
+ * const stockLocation =
118
+ * await stockLocationModuleService.retrieveStockLocation("sloc_123")
119
+ */
120
+ retrieveStockLocation(id: string, config?: FindConfig<StockLocationDTO>, context?: Context): Promise<StockLocationDTO>;
121
+ /**
122
+ * This method creates a stock location.
170
123
  *
171
- * async function retrieveStockLocation (id: string) {
172
- * const stockLocationModule = await initializeStockLocationModule({})
124
+ * @param {CreateStockLocationInput} input - The stock location to create.
125
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
126
+ * @returns {Promise<StockLocationDTO>} The created stock location.
173
127
  *
174
- * const stockLocation = await stockLocationModule.retrieve(id)
128
+ * @example
129
+ * const stockLocation = await stockLocationModuleService.createStockLocations(
130
+ * {
131
+ * name: "Warehouse",
132
+ * address: {
133
+ * address_1: "1855 Powder Mill Rd",
134
+ * country_code: "us",
135
+ * },
136
+ * }
137
+ * )
138
+ */
139
+ createStockLocations(input: CreateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
140
+ /**
141
+ * This method creates stock locations.
175
142
  *
176
- * // do something with the stock location or return it
177
- * }
178
- * ```
143
+ * @param {CreateStockLocationInput[]} input - The stock locations to create.
144
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
145
+ * @returns {Promise<StockLocationDTO[]>} The created stock locations.
179
146
  *
180
- * To specify relations that should be retrieved:
147
+ * @example
148
+ * const stockLocations =
149
+ * await stockLocationModuleService.createStockLocations([
150
+ * {
151
+ * name: "Warehouse",
152
+ * address: {
153
+ * address_1: "1855 Powder Mill Rd",
154
+ * country_code: "us",
155
+ * },
156
+ * },
157
+ * {
158
+ * name: "Warehouse 2",
159
+ * address_id: "laddr_123",
160
+ * },
161
+ * ])
162
+ */
163
+ createStockLocations(input: CreateStockLocationInput[], context?: Context): Promise<StockLocationDTO[]>;
164
+ /**
165
+ * This method updates or creates stock location service nexts if they don't exist.
181
166
  *
182
- * ```ts
183
- * import {
184
- * initialize as initializeStockLocationModule,
185
- * } from "@medusajs/stock-location"
167
+ * @param {Partial<UpdateStockLocationInput>[]} data - The list of Make all properties in t optional
168
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
169
+ * @returns {Promise<StockLocationDTO[]>} The created or updated stock location service nexts.
186
170
  *
187
- * async function retrieveStockLocation (id: string) {
188
- * const stockLocationModule = await initializeStockLocationModule({})
171
+ * @example
172
+ * {example-code}
173
+ */
174
+ upsertStockLocations(data: UpsertStockLocationInput[], sharedContext?: Context): Promise<StockLocationDTO[]>;
175
+ /**
176
+ * This method updates or creates a stock location service next if it doesn't exist.
189
177
  *
190
- * const stockLocation = await stockLocationModule.retrieve(id, {
191
- * relations: ["address"]
192
- * })
178
+ * @param {Partial<UpdateStockLocationInput>} data - Make all properties in T optional
179
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
180
+ * @returns {Promise<StockLocationDTO>} The created or updated stock location service next.
193
181
  *
194
- * // do something with the stock location or return it
195
- * }
196
- * ```
182
+ * @example
183
+ * {example-code}
197
184
  */
198
- retrieve(id: string, config?: FindConfig<StockLocationDTO>, context?: SharedContext): Promise<StockLocationDTO>;
185
+ upsertStockLocations(data: UpsertStockLocationInput, sharedContext?: Context): Promise<StockLocationDTO>;
199
186
  /**
200
- * This method is used to create a stock location.
187
+ * This method updates existing stock locations.
201
188
  *
202
- * @param {CreateStockLocationInput} input - The details of the stock location to create.
203
- * @param {SharedContext} context - A context used to share resources, such as transaction manager, between the application and the module.
204
- * @returns {Promise<StockLocationDTO>} The created stock location's details.
189
+ * @param {UpdateStockLocationInput[]} input - The attributes to update in the stock locations.
190
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
191
+ * @returns {Promise<StockLocationDTO[]>} The updated stock locations.
205
192
  *
206
193
  * @example
207
- * import {
208
- * initialize as initializeStockLocationModule,
209
- * } from "@medusajs/stock-location"
194
+ * const stockLocations =
195
+ * await stockLocationModuleService.updateStockLocations([
196
+ * {
197
+ * id: "sloc_123",
198
+ * name: "Warehouse",
199
+ * },
200
+ * {
201
+ * id: "sloc_321",
202
+ * address_id: "laddr_123",
203
+ * },
204
+ * ])
205
+ */
206
+ updateStockLocations(id: string, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO>;
207
+ /**
208
+ * This method updates existing stock locations matching the specified filters.
210
209
  *
211
- * async function createStockLocation (name: string) {
212
- * const stockLocationModule = await initializeStockLocationModule({})
210
+ * @param {FilterableStockLocationProps} selector - The filters specifying which stock locations to update.
211
+ * @param {UpdateStockLocationInput} input - The attributes to update in the stock locations.
212
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
213
+ * @returns {Promise<StockLocationDTO[]>} The updated stock locations.
213
214
  *
214
- * const stockLocation = await stockLocationModule.create({
215
- * name
216
- * })
217
- *
218
- * // do something with the stock location or return it
219
- * }
215
+ * @example
216
+ * const stockLocations =
217
+ * await stockLocationModuleService.updateStockLocations(
218
+ * {
219
+ * name: "Warehouse",
220
+ * },
221
+ * {
222
+ * address_id: "laddr_123",
223
+ * }
224
+ * )
220
225
  */
221
- create(input: CreateStockLocationInput, context?: SharedContext): Promise<StockLocationDTO>;
226
+ updateStockLocations(selector: FilterableStockLocationProps, input: UpdateStockLocationInput, context?: Context): Promise<StockLocationDTO[]>;
222
227
  /**
223
- * This method is used to update a stock location.
228
+ * This method deletes a stock location by its ID.
224
229
  *
225
230
  * @param {string} id - The ID of the stock location.
226
- * @param {UpdateStockLocationInput} input - The attributes to update in the stock location.
227
- * @param {SharedContext} context - A context used to share resources, such as transaction manager, between the application and the module.
228
- * @returns {Promise<StockLocationDTO>} The stock location's details.
231
+ * @param {Context} context - A context used to share resources, such as transaction manager, between the application and the module.
232
+ * @returns {Promise<void>} Resolves when the stock location is deleted successfully.
229
233
  *
230
234
  * @example
231
- * import {
232
- * initialize as initializeStockLocationModule,
233
- * } from "@medusajs/stock-location"
235
+ * await stockLocationModuleService.deleteStockLocations("sloc_123")
236
+ */
237
+ deleteStockLocations(id: string | string[], context?: Context): Promise<void>;
238
+ /**
239
+ * This method soft deletes stock locations by their IDs.
234
240
  *
235
- * async function updateStockLocation (id:string, name: string) {
236
- * const stockLocationModule = await initializeStockLocationModule({})
241
+ * @param {string[]} stockLocationIds - The IDs of the stock locations.
242
+ * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config - An object that is used to specify an entity's related entities that should be soft-deleted when the main entity is soft-deleted.
243
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
244
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were also soft deleted, such as the ID of the associated address.
245
+ * The object's keys are the ID attribute names of the stock location entity's relations, such as `address_id`, and its value is an array of strings, each being the ID of a record associated
246
+ * with the stock location through this relation, such as the IDs of associated address.
237
247
  *
238
- * const stockLocation = await stockLocationModule.update(id, {
239
- * name
240
- * })
248
+ * If there are no related records, the promise resolves to `void`.
241
249
  *
242
- * // do something with the stock location or return it
243
- * }
250
+ * @example
251
+ * await stockLocationModuleService.softDeleteStockLocations([
252
+ * "sloc_123",
253
+ * "sloc_321",
254
+ * ])
244
255
  */
245
- update(id: string, input: UpdateStockLocationInput, context?: SharedContext): Promise<StockLocationDTO>;
256
+ softDeleteStockLocations<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
246
257
  /**
247
- * This method is used to delete a stock location.
258
+ * This method restores soft deleted stock locations by their IDs.
248
259
  *
249
- * @param {string} id - The ID of the stock location.
250
- * @param {SharedContext} context - A context used to share resources, such as transaction manager, between the application and the module.
251
- * @returns {Promise<void>} Resolves when the stock location is successfully deleted.
260
+ * @param {string[]} stockLocationIds - The IDs of the stock locations.
261
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config - Configurations determining which relations to restore along with each of the stock location. You can pass to its `returnLinkableKeys`
262
+ * property any of the stock location's relation attribute names, such as `address`.
263
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
264
+ * @returns {Promise<void | Record<string, string[]>>} An object that includes the IDs of related records that were restored, such as the ID of associated address.
265
+ * The object's keys are the ID attribute names of the stock location entity's relations, such as `address_id`,
266
+ * and its value is an array of strings, each being the ID of the record associated with the stock location through this relation,
267
+ * such as the ID of associated address.
252
268
  *
253
- * @example
254
- * import {
255
- * initialize as initializeStockLocationModule,
256
- * } from "@medusajs/stock-location"
257
- *
258
- * async function deleteStockLocation (id:string) {
259
- * const stockLocationModule = await initializeStockLocationModule({})
269
+ * If there are no related records restored, the promise resolves to `void`.
260
270
  *
261
- * await stockLocationModule.delete(id)
262
- * }
271
+ * @example
272
+ * await stockLocationModuleService.restoreStockLocations([
273
+ * "sloc_123",
274
+ * "sloc_321",
275
+ * ])
263
276
  */
264
- delete(id: string, context?: SharedContext): Promise<void>;
277
+ restoreStockLocations<TReturnableLinkableKeys extends string = string>(stockLocationIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
265
278
  }
266
279
  //# sourceMappingURL=service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../src/stock-location/service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACzB,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEjD;;GAEG;AACH,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAsEG;IACH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AgB,EAAE,MAAM,EAAE,EAC1B,MAAM,CAAC,EAAE,aAAa,CAAC,uBAAuB,CAAC,EAC/C,aAAa,CAAC,EAAE,OAAO,GACtB,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,IAAI,CAAC,CAAA;CAC5C"}
@@ -1,4 +1,34 @@
1
1
  import { BaseFilterable } from "../../dal";
2
+ export interface StoreCurrencyDTO {
3
+ /**
4
+ * The ID of the store currency.
5
+ */
6
+ id: string;
7
+ /**
8
+ * The currency code of the store currency.
9
+ */
10
+ currency_code: string;
11
+ /**
12
+ * Whether the currency is the default one for the store.
13
+ */
14
+ is_default: boolean;
15
+ /**
16
+ * The store ID associated with the currency.
17
+ */
18
+ store_id: string;
19
+ /**
20
+ * The created date of the currency
21
+ */
22
+ created_at: string;
23
+ /**
24
+ * The updated date of the currency
25
+ */
26
+ updated_at: string;
27
+ /**
28
+ * The deleted date of the currency
29
+ */
30
+ deleted_at: string | null;
31
+ }
2
32
  /**
3
33
  * The store details.
4
34
  */
@@ -14,11 +44,7 @@ export interface StoreDTO {
14
44
  /**
15
45
  * The supported currency codes of the store.
16
46
  */
17
- supported_currency_codes: string[];
18
- /**
19
- * The default currency code of the store.
20
- */
21
- default_currency_code?: string;
47
+ supported_currencies?: StoreCurrencyDTO[];
22
48
  /**
23
49
  * The associated default sales channel's ID.
24
50
  */
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/common/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAE1C;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAA;IAEV;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IAEZ;;OAEG;IACH,wBAAwB,EAAE,MAAM,EAAE,CAAA;IAElC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B;;OAE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OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;IAEjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAA;IAEpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAElB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,oBACf,SAAQ,cAAc,CAAC,oBAAoB,CAAC;IAC5C;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAA;IACV;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACzB"}
@@ -1,3 +1,13 @@
1
+ export interface CreateStoreCurrencyDTO {
2
+ /**
3
+ * The currency code of the store currency.
4
+ */
5
+ currency_code: string;
6
+ /**
7
+ * Whether the currency is the default one for the store.
8
+ */
9
+ is_default?: boolean;
10
+ }
1
11
  /**
2
12
  * The store to be created.
3
13
  */
@@ -9,11 +19,7 @@ export interface CreateStoreDTO {
9
19
  /**
10
20
  * The supported currency codes of the store.
11
21
  */
12
- supported_currency_codes?: string[];
13
- /**
14
- * The default currency code of the store.
15
- */
16
- default_currency_code?: string;
22
+ supported_currencies?: CreateStoreCurrencyDTO[];
17
23
  /**
18
24
  * The associated default sales channel's ID.
19
25
  */
@@ -34,39 +40,11 @@ export interface CreateStoreDTO {
34
40
  /**
35
41
  * The attributes in the store to be created or updated.
36
42
  */
37
- export interface UpsertStoreDTO {
43
+ export interface UpsertStoreDTO extends UpdateStoreDTO {
38
44
  /**
39
- * The ID of the store.
45
+ * The ID of the store when doing an update.
40
46
  */
41
47
  id?: string;
42
- /**
43
- * The name of the store.
44
- */
45
- name?: string;
46
- /**
47
- * The supported currency codes of the store.
48
- */
49
- supported_currency_codes?: string[];
50
- /**
51
- * The default currency code of the store.
52
- */
53
- default_currency_code?: string;
54
- /**
55
- * The associated default sales channel's ID.
56
- */
57
- default_sales_channel_id?: string;
58
- /**
59
- * The associated default region's ID.
60
- */
61
- default_region_id?: string;
62
- /**
63
- * The associated default location's ID.
64
- */
65
- default_location_id?: string;
66
- /**
67
- * Holds custom data in key-value pairs.
68
- */
69
- metadata?: Record<string, any>;
70
48
  }
71
49
  /**
72
50
  * The attributes to update in the store.
@@ -79,11 +57,7 @@ export interface UpdateStoreDTO {
79
57
  /**
80
58
  * The supported currency codes of the store.
81
59
  */
82
- supported_currency_codes?: string[];
83
- /**
84
- * The default currency code of the store.
85
- */
86
- default_currency_code?: string;
60
+ supported_currencies?: CreateStoreCurrencyDTO[];
87
61
  /**
88
62
  * The associated default sales channel's ID.
89
63
  */
@@ -1 +1 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/store/mutations/store.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAA;IAEnC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAE9B;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAA;IAEjC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAE1B;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAE5B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IAEX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;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