@medusajs/types 3.0.0-snapshot-20250410112222 → 3.0.0-snapshot-20251104011621

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 (442) hide show
  1. package/dist/analytics/index.d.ts +5 -0
  2. package/dist/analytics/index.d.ts.map +1 -0
  3. package/dist/analytics/index.js +21 -0
  4. package/dist/analytics/index.js.map +1 -0
  5. package/dist/analytics/mutations.d.ts +71 -0
  6. package/dist/analytics/mutations.d.ts.map +1 -0
  7. package/dist/{index-data/sotrage-provider.js → analytics/mutations.js} +1 -1
  8. package/dist/analytics/mutations.js.map +1 -0
  9. package/dist/analytics/provider.d.ts +41 -0
  10. package/dist/analytics/provider.d.ts.map +1 -0
  11. package/dist/analytics/provider.js +3 -0
  12. package/dist/analytics/provider.js.map +1 -0
  13. package/dist/analytics/providers/index.d.ts +3 -0
  14. package/dist/analytics/providers/index.d.ts.map +1 -0
  15. package/dist/analytics/providers/index.js +19 -0
  16. package/dist/analytics/providers/index.js.map +1 -0
  17. package/dist/analytics/providers/local.d.ts +3 -0
  18. package/dist/analytics/providers/local.d.ts.map +1 -0
  19. package/dist/analytics/providers/local.js +3 -0
  20. package/dist/analytics/providers/local.js.map +1 -0
  21. package/dist/analytics/providers/posthog.d.ts +11 -0
  22. package/dist/analytics/providers/posthog.d.ts.map +1 -0
  23. package/dist/analytics/providers/posthog.js +3 -0
  24. package/dist/analytics/providers/posthog.js.map +1 -0
  25. package/dist/analytics/service.d.ts +51 -0
  26. package/dist/analytics/service.d.ts.map +1 -0
  27. package/dist/analytics/service.js +3 -0
  28. package/dist/analytics/service.js.map +1 -0
  29. package/dist/auth/provider.d.ts +1 -7
  30. package/dist/auth/provider.d.ts.map +1 -1
  31. package/dist/auth/service.d.ts +50 -0
  32. package/dist/auth/service.d.ts.map +1 -1
  33. package/dist/bundles.d.ts +3 -0
  34. package/dist/bundles.d.ts.map +1 -1
  35. package/dist/bundles.js +21 -8
  36. package/dist/bundles.js.map +1 -1
  37. package/dist/caching/index.d.ts +532 -0
  38. package/dist/caching/index.d.ts.map +1 -0
  39. package/dist/caching/index.js +3 -0
  40. package/dist/caching/index.js.map +1 -0
  41. package/dist/cart/common.d.ts +5 -1
  42. package/dist/cart/common.d.ts.map +1 -1
  43. package/dist/cart/mutations.d.ts +5 -1
  44. package/dist/cart/mutations.d.ts.map +1 -1
  45. package/dist/cart/mutations.js.map +1 -1
  46. package/dist/cart/service.d.ts +70 -0
  47. package/dist/cart/service.d.ts.map +1 -1
  48. package/dist/cart/workflows.d.ts +25 -1
  49. package/dist/cart/workflows.d.ts.map +1 -1
  50. package/dist/common/common.d.ts +10 -0
  51. package/dist/common/common.d.ts.map +1 -1
  52. package/dist/common/config-file.d.ts +8 -0
  53. package/dist/common/config-file.d.ts.map +1 -0
  54. package/dist/common/config-file.js +3 -0
  55. package/dist/common/config-file.js.map +1 -0
  56. package/dist/common/config-module.d.ts +230 -70
  57. package/dist/common/config-module.d.ts.map +1 -1
  58. package/dist/common/index.d.ts +1 -0
  59. package/dist/common/index.d.ts.map +1 -1
  60. package/dist/common/index.js +1 -0
  61. package/dist/common/index.js.map +1 -1
  62. package/dist/common/medusa-container.d.ts +1 -1
  63. package/dist/common/medusa-container.d.ts.map +1 -1
  64. package/dist/customer/common.d.ts +2 -2
  65. package/dist/customer/mutations.d.ts +2 -2
  66. package/dist/customer/service.d.ts +56 -0
  67. package/dist/customer/service.d.ts.map +1 -1
  68. package/dist/dal/index.d.ts +1 -1
  69. package/dist/dal/index.d.ts.map +1 -1
  70. package/dist/dal/repository-service.d.ts +1 -1
  71. package/dist/dal/repository-service.d.ts.map +1 -1
  72. package/dist/event-bus/common.d.ts +4 -0
  73. package/dist/event-bus/common.d.ts.map +1 -1
  74. package/dist/event-bus/event-bus-module.d.ts +32 -2
  75. package/dist/event-bus/event-bus-module.d.ts.map +1 -1
  76. package/dist/file/common.d.ts +19 -0
  77. package/dist/file/common.d.ts.map +1 -1
  78. package/dist/file/mutations.d.ts +17 -2
  79. package/dist/file/mutations.d.ts.map +1 -1
  80. package/dist/file/provider.d.ts +67 -5
  81. package/dist/file/provider.d.ts.map +1 -1
  82. package/dist/file/service.d.ts +80 -9
  83. package/dist/file/service.d.ts.map +1 -1
  84. package/dist/fulfillment/common/address.d.ts +1 -1
  85. package/dist/fulfillment/common/geo-zone.d.ts +2 -2
  86. package/dist/fulfillment/common/order.d.ts +1 -1
  87. package/dist/fulfillment/common/shipping-option.d.ts +1 -1
  88. package/dist/fulfillment/mutations/fulfillment-address.d.ts +1 -1
  89. package/dist/fulfillment/mutations/geo-zone.d.ts +6 -6
  90. package/dist/fulfillment/mutations/shipping-option-type.d.ts +7 -6
  91. package/dist/fulfillment/mutations/shipping-option-type.d.ts.map +1 -1
  92. package/dist/fulfillment/mutations/shipping-option.d.ts +2 -2
  93. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  94. package/dist/fulfillment/provider.d.ts +1 -0
  95. package/dist/fulfillment/provider.d.ts.map +1 -1
  96. package/dist/fulfillment/service.d.ts +325 -3
  97. package/dist/fulfillment/service.d.ts.map +1 -1
  98. package/dist/fulfillment/workflows.d.ts +26 -0
  99. package/dist/fulfillment/workflows.d.ts.map +1 -1
  100. package/dist/http/api-key/admin/payloads.d.ts +3 -0
  101. package/dist/http/api-key/admin/payloads.d.ts.map +1 -1
  102. package/dist/http/campaign/admin/payloads.d.ts +16 -31
  103. package/dist/http/campaign/admin/payloads.d.ts.map +1 -1
  104. package/dist/http/campaign/admin/responses.d.ts +10 -0
  105. package/dist/http/campaign/admin/responses.d.ts.map +1 -1
  106. package/dist/http/cart/common.d.ts +58 -20
  107. package/dist/http/cart/common.d.ts.map +1 -1
  108. package/dist/http/cart/store/payloads.d.ts +3 -1
  109. package/dist/http/cart/store/payloads.d.ts.map +1 -1
  110. package/dist/http/claim/admin/payloads.d.ts +6 -2
  111. package/dist/http/claim/admin/payloads.d.ts.map +1 -1
  112. package/dist/http/claim/admin/queries.d.ts +37 -0
  113. package/dist/http/claim/admin/queries.d.ts.map +1 -1
  114. package/dist/http/collection/store/queries.d.ts +4 -2
  115. package/dist/http/collection/store/queries.d.ts.map +1 -1
  116. package/dist/http/common/request.d.ts +4 -0
  117. package/dist/http/common/request.d.ts.map +1 -1
  118. package/dist/http/common/response.d.ts +7 -0
  119. package/dist/http/common/response.d.ts.map +1 -1
  120. package/dist/http/customer/admin/queries.d.ts +2 -1
  121. package/dist/http/customer/admin/queries.d.ts.map +1 -1
  122. package/dist/http/customer/common.d.ts +4 -4
  123. package/dist/http/exchange/admin/payloads.d.ts +48 -20
  124. package/dist/http/exchange/admin/payloads.d.ts.map +1 -1
  125. package/dist/http/exchange/admin/payloads.js +0 -7
  126. package/dist/http/exchange/admin/payloads.js.map +1 -1
  127. package/dist/http/exchange/admin/queries.d.ts +42 -2
  128. package/dist/http/exchange/admin/queries.d.ts.map +1 -1
  129. package/dist/http/file/admin/payloads.d.ts +18 -0
  130. package/dist/http/file/admin/payloads.d.ts.map +1 -1
  131. package/dist/http/file/admin/responses.d.ts +27 -0
  132. package/dist/http/file/admin/responses.d.ts.map +1 -1
  133. package/dist/http/fulfillment/admin/entitites.d.ts +1 -1
  134. package/dist/http/fulfillment/admin/index.d.ts +0 -1
  135. package/dist/http/fulfillment/admin/index.d.ts.map +1 -1
  136. package/dist/http/fulfillment/admin/index.js +0 -1
  137. package/dist/http/fulfillment/admin/index.js.map +1 -1
  138. package/dist/http/fulfillment/admin/payloads.d.ts +1 -1
  139. package/dist/http/fulfillment/store/index.d.ts +99 -0
  140. package/dist/http/fulfillment/store/index.d.ts.map +1 -1
  141. package/dist/http/fulfillment-provider/admin/queries.d.ts +1 -1
  142. package/dist/http/fulfillment-set/admin/entities.d.ts +1 -1
  143. package/dist/http/fulfillment-set/admin/index.d.ts +1 -0
  144. package/dist/http/fulfillment-set/admin/index.d.ts.map +1 -1
  145. package/dist/http/fulfillment-set/admin/index.js +1 -0
  146. package/dist/http/fulfillment-set/admin/index.js.map +1 -1
  147. package/dist/http/fulfillment-set/admin/payloads.d.ts +6 -6
  148. package/dist/http/index/admin/payload.d.ts +4 -0
  149. package/dist/http/index/admin/payload.d.ts.map +1 -0
  150. package/dist/http/index/admin/payload.js +3 -0
  151. package/dist/http/index/admin/payload.js.map +1 -0
  152. package/dist/http/index/admin/responses.d.ts +5 -0
  153. package/dist/http/index/admin/responses.d.ts.map +1 -0
  154. package/dist/http/index/admin/responses.js +3 -0
  155. package/dist/http/index/admin/responses.js.map +1 -0
  156. package/dist/http/index/index.d.ts +3 -0
  157. package/dist/http/index/index.d.ts.map +1 -0
  158. package/dist/http/index/index.js +19 -0
  159. package/dist/http/index/index.js.map +1 -0
  160. package/dist/http/index.d.ts +4 -0
  161. package/dist/http/index.d.ts.map +1 -1
  162. package/dist/http/index.js +4 -0
  163. package/dist/http/index.js.map +1 -1
  164. package/dist/http/inventory/admin/queries.d.ts +1 -1
  165. package/dist/http/inventory/admin/queries.d.ts.map +1 -1
  166. package/dist/http/order/admin/payload.d.ts +28 -1
  167. package/dist/http/order/admin/payload.d.ts.map +1 -1
  168. package/dist/http/order/admin/queries.d.ts +24 -8
  169. package/dist/http/order/admin/queries.d.ts.map +1 -1
  170. package/dist/http/order/common.d.ts +18 -2
  171. package/dist/http/order/common.d.ts.map +1 -1
  172. package/dist/http/payment/admin/entities.d.ts +1 -3
  173. package/dist/http/payment/admin/entities.d.ts.map +1 -1
  174. package/dist/http/payment/admin/payloads.d.ts +4 -9
  175. package/dist/http/payment/admin/payloads.d.ts.map +1 -1
  176. package/dist/http/payment/admin/queries.d.ts +1 -1
  177. package/dist/http/payment/admin/queries.d.ts.map +1 -1
  178. package/dist/http/payment/admin/responses.d.ts +2 -2
  179. package/dist/http/payment/admin/responses.d.ts.map +1 -1
  180. package/dist/http/payment/common.d.ts +2 -27
  181. package/dist/http/payment/common.d.ts.map +1 -1
  182. package/dist/http/payment/store/queries.d.ts +2 -1
  183. package/dist/http/payment/store/queries.d.ts.map +1 -1
  184. package/dist/http/price-list/admin/payloads.d.ts +3 -3
  185. package/dist/http/price-list/admin/payloads.d.ts.map +1 -1
  186. package/dist/http/product/admin/entitites.d.ts +16 -0
  187. package/dist/http/product/admin/entitites.d.ts.map +1 -1
  188. package/dist/http/product/admin/payloads.d.ts +67 -0
  189. package/dist/http/product/admin/payloads.d.ts.map +1 -1
  190. package/dist/http/product/admin/queries.d.ts +25 -1
  191. package/dist/http/product/admin/queries.d.ts.map +1 -1
  192. package/dist/http/product/admin/responses.d.ts +22 -0
  193. package/dist/http/product/admin/responses.d.ts.map +1 -1
  194. package/dist/http/product/common.d.ts +5 -1
  195. package/dist/http/product/common.d.ts.map +1 -1
  196. package/dist/http/product/store/queries.d.ts +3 -3
  197. package/dist/http/product/store/queries.d.ts.map +1 -1
  198. package/dist/http/product/store/responses.d.ts +13 -1
  199. package/dist/http/product/store/responses.d.ts.map +1 -1
  200. package/dist/http/promotion/admin/payloads.d.ts +8 -0
  201. package/dist/http/promotion/admin/payloads.d.ts.map +1 -1
  202. package/dist/http/promotion/admin/queries.d.ts +34 -5
  203. package/dist/http/promotion/admin/queries.d.ts.map +1 -1
  204. package/dist/http/promotion/common.d.ts +1 -0
  205. package/dist/http/promotion/common.d.ts.map +1 -1
  206. package/dist/http/refund-reason/admin/entities.d.ts +4 -0
  207. package/dist/http/refund-reason/admin/entities.d.ts.map +1 -0
  208. package/dist/http/refund-reason/admin/entities.js +3 -0
  209. package/dist/http/refund-reason/admin/entities.js.map +1 -0
  210. package/dist/http/refund-reason/admin/index.d.ts +5 -0
  211. package/dist/http/refund-reason/admin/index.d.ts.map +1 -0
  212. package/dist/http/refund-reason/admin/index.js +21 -0
  213. package/dist/http/refund-reason/admin/index.js.map +1 -0
  214. package/dist/http/refund-reason/admin/payloads.d.ts +30 -0
  215. package/dist/http/refund-reason/admin/payloads.d.ts.map +1 -0
  216. package/dist/http/refund-reason/admin/payloads.js +3 -0
  217. package/dist/http/refund-reason/admin/payloads.js.map +1 -0
  218. package/dist/http/refund-reason/admin/queries.d.ts +8 -0
  219. package/dist/http/refund-reason/admin/queries.d.ts.map +1 -0
  220. package/dist/http/refund-reason/admin/queries.js.map +1 -0
  221. package/dist/http/refund-reason/admin/responses.d.ts +18 -0
  222. package/dist/http/refund-reason/admin/responses.d.ts.map +1 -0
  223. package/dist/http/refund-reason/admin/responses.js +3 -0
  224. package/dist/http/refund-reason/admin/responses.js.map +1 -0
  225. package/dist/http/refund-reason/common.d.ts +65 -0
  226. package/dist/http/refund-reason/common.d.ts.map +1 -0
  227. package/dist/http/refund-reason/common.js +3 -0
  228. package/dist/http/refund-reason/common.js.map +1 -0
  229. package/dist/http/refund-reason/index.d.ts +2 -0
  230. package/dist/http/refund-reason/index.d.ts.map +1 -0
  231. package/dist/http/refund-reason/index.js +18 -0
  232. package/dist/http/refund-reason/index.js.map +1 -0
  233. package/dist/http/region/store/queries.d.ts +2 -1
  234. package/dist/http/region/store/queries.d.ts.map +1 -1
  235. package/dist/http/reservation/admin/queries.d.ts +8 -8
  236. package/dist/http/reservation/admin/queries.d.ts.map +1 -1
  237. package/dist/http/return/admin/payloads.d.ts +20 -0
  238. package/dist/http/return/admin/payloads.d.ts.map +1 -1
  239. package/dist/http/shipping-option/admin/payloads.d.ts +53 -22
  240. package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
  241. package/dist/http/shipping-option/admin/queries.d.ts +31 -1
  242. package/dist/http/shipping-option/admin/queries.d.ts.map +1 -1
  243. package/dist/http/shipping-option/admin/responses.d.ts +16 -1
  244. package/dist/http/shipping-option/admin/responses.d.ts.map +1 -1
  245. package/dist/http/shipping-option/store/responses.d.ts +2 -2
  246. package/dist/http/shipping-option/store/responses.d.ts.map +1 -1
  247. package/dist/http/stock-locations/admin/payloads.d.ts +1 -1
  248. package/dist/http/tax-provider/admin/entities.d.ts +11 -0
  249. package/dist/http/tax-provider/admin/entities.d.ts.map +1 -0
  250. package/dist/http/tax-provider/admin/entities.js +3 -0
  251. package/dist/http/tax-provider/admin/entities.js.map +1 -0
  252. package/dist/http/tax-provider/admin/index.d.ts +4 -0
  253. package/dist/http/tax-provider/admin/index.d.ts.map +1 -0
  254. package/dist/http/tax-provider/admin/index.js +20 -0
  255. package/dist/http/tax-provider/admin/index.js.map +1 -0
  256. package/dist/http/tax-provider/admin/queries.d.ts +13 -0
  257. package/dist/http/tax-provider/admin/queries.d.ts.map +1 -0
  258. package/dist/http/tax-provider/admin/queries.js +3 -0
  259. package/dist/http/tax-provider/admin/queries.js.map +1 -0
  260. package/dist/http/tax-provider/admin/responses.d.ts +9 -0
  261. package/dist/http/tax-provider/admin/responses.d.ts.map +1 -0
  262. package/dist/http/tax-provider/admin/responses.js +3 -0
  263. package/dist/http/tax-provider/admin/responses.js.map +1 -0
  264. package/dist/http/tax-provider/index.d.ts +2 -0
  265. package/dist/http/tax-provider/index.d.ts.map +1 -0
  266. package/dist/http/tax-provider/index.js +18 -0
  267. package/dist/http/tax-provider/index.js.map +1 -0
  268. package/dist/http/tax-rate/admin/payloads.d.ts +1 -2
  269. package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -1
  270. package/dist/http/tax-region/admin/entities.d.ts +6 -2
  271. package/dist/http/tax-region/admin/entities.d.ts.map +1 -1
  272. package/dist/http/tax-region/admin/payloads.d.ts +22 -1
  273. package/dist/http/tax-region/admin/payloads.d.ts.map +1 -1
  274. package/dist/http/tax-region/admin/queries.d.ts +1 -1
  275. package/dist/http/view-configuration/admin/columns.d.ts +72 -0
  276. package/dist/http/view-configuration/admin/columns.d.ts.map +1 -0
  277. package/dist/http/view-configuration/admin/columns.js +3 -0
  278. package/dist/http/view-configuration/admin/columns.js.map +1 -0
  279. package/dist/http/view-configuration/admin/index.d.ts +5 -0
  280. package/dist/http/view-configuration/admin/index.d.ts.map +1 -0
  281. package/dist/http/view-configuration/admin/index.js +21 -0
  282. package/dist/http/view-configuration/admin/index.js.map +1 -0
  283. package/dist/http/view-configuration/admin/payloads.d.ts +103 -0
  284. package/dist/http/view-configuration/admin/payloads.d.ts.map +1 -0
  285. package/dist/http/view-configuration/admin/payloads.js +3 -0
  286. package/dist/http/view-configuration/admin/payloads.js.map +1 -0
  287. package/dist/http/view-configuration/admin/queries.d.ts +35 -0
  288. package/dist/http/view-configuration/admin/queries.d.ts.map +1 -0
  289. package/dist/http/view-configuration/admin/queries.js +3 -0
  290. package/dist/http/view-configuration/admin/queries.js.map +1 -0
  291. package/dist/http/view-configuration/admin/responses.d.ts +78 -0
  292. package/dist/http/view-configuration/admin/responses.d.ts.map +1 -0
  293. package/dist/http/view-configuration/admin/responses.js +3 -0
  294. package/dist/http/view-configuration/admin/responses.js.map +1 -0
  295. package/dist/http/view-configuration/index.d.ts +2 -0
  296. package/dist/http/view-configuration/index.d.ts.map +1 -0
  297. package/dist/http/view-configuration/index.js +18 -0
  298. package/dist/http/view-configuration/index.js.map +1 -0
  299. package/dist/http/workflow-execution/admin/entities.d.ts +16 -1
  300. package/dist/http/workflow-execution/admin/entities.d.ts.map +1 -1
  301. package/dist/http/workflow-execution/admin/queries.d.ts +4 -0
  302. package/dist/http/workflow-execution/admin/queries.d.ts.map +1 -1
  303. package/dist/index-data/common.d.ts +11 -0
  304. package/dist/index-data/common.d.ts.map +1 -1
  305. package/dist/index-data/index-operator-map.d.ts +14 -10
  306. package/dist/index-data/index-operator-map.d.ts.map +1 -1
  307. package/dist/index-data/index.d.ts +1 -1
  308. package/dist/index-data/index.js +1 -1
  309. package/dist/index-data/query-config/query-input-config-fields.d.ts +3 -1
  310. package/dist/index-data/query-config/query-input-config-fields.d.ts.map +1 -1
  311. package/dist/index-data/query-config/query-input-config-filters.d.ts +1 -1
  312. package/dist/index-data/query-config/query-input-config-filters.d.ts.map +1 -1
  313. package/dist/index-data/query-config/query-input-config.d.ts +50 -6
  314. package/dist/index-data/query-config/query-input-config.d.ts.map +1 -1
  315. package/dist/index-data/service.d.ts +24 -0
  316. package/dist/index-data/service.d.ts.map +1 -1
  317. package/dist/index-data/{sotrage-provider.d.ts → storage-provider.d.ts} +1 -1
  318. package/dist/index-data/{sotrage-provider.d.ts.map → storage-provider.d.ts.map} +1 -1
  319. package/dist/index-data/storage-provider.js +3 -0
  320. package/dist/index-data/storage-provider.js.map +1 -0
  321. package/dist/index.d.ts +3 -0
  322. package/dist/index.d.ts.map +1 -1
  323. package/dist/index.js +3 -0
  324. package/dist/index.js.map +1 -1
  325. package/dist/inventory/service.d.ts +63 -0
  326. package/dist/inventory/service.d.ts.map +1 -1
  327. package/dist/joiner/index.d.ts +43 -0
  328. package/dist/joiner/index.d.ts.map +1 -1
  329. package/dist/link-modules/service.d.ts +1 -1
  330. package/dist/link-modules/service.d.ts.map +1 -1
  331. package/dist/logger/index.d.ts +16 -13
  332. package/dist/logger/index.d.ts.map +1 -1
  333. package/dist/modules-sdk/index.d.ts +5 -0
  334. package/dist/modules-sdk/index.d.ts.map +1 -1
  335. package/dist/modules-sdk/remote-query-object-from-string.d.ts +50 -3
  336. package/dist/modules-sdk/remote-query-object-from-string.d.ts.map +1 -1
  337. package/dist/modules-sdk/remote-query.d.ts +3 -5
  338. package/dist/modules-sdk/remote-query.d.ts.map +1 -1
  339. package/dist/modules-sdk/to-remote-query.d.ts +13 -3
  340. package/dist/modules-sdk/to-remote-query.d.ts.map +1 -1
  341. package/dist/notification/common.d.ts +1 -1
  342. package/dist/notification/mutations.d.ts +6 -2
  343. package/dist/notification/mutations.d.ts.map +1 -1
  344. package/dist/notification/service.d.ts +21 -0
  345. package/dist/notification/service.d.ts.map +1 -1
  346. package/dist/order/common.d.ts +23 -30
  347. package/dist/order/common.d.ts.map +1 -1
  348. package/dist/order/mutations.d.ts +18 -14
  349. package/dist/order/mutations.d.ts.map +1 -1
  350. package/dist/order/service.d.ts +186 -4
  351. package/dist/order/service.d.ts.map +1 -1
  352. package/dist/payment/common.d.ts +4 -0
  353. package/dist/payment/common.d.ts.map +1 -1
  354. package/dist/payment/mutations.d.ts +17 -1
  355. package/dist/payment/mutations.d.ts.map +1 -1
  356. package/dist/payment/provider.d.ts +67 -10
  357. package/dist/payment/provider.d.ts.map +1 -1
  358. package/dist/payment/service.d.ts +69 -3
  359. package/dist/payment/service.d.ts.map +1 -1
  360. package/dist/pricing/common/price-preference.d.ts +4 -4
  361. package/dist/pricing/common/price-preference.d.ts.map +1 -1
  362. package/dist/pricing/common/price-rule.d.ts +8 -4
  363. package/dist/pricing/common/price-rule.d.ts.map +1 -1
  364. package/dist/pricing/service.d.ts +98 -2
  365. package/dist/pricing/service.d.ts.map +1 -1
  366. package/dist/product/common.d.ts +30 -14
  367. package/dist/product/common.d.ts.map +1 -1
  368. package/dist/product/service.d.ts +214 -5
  369. package/dist/product/service.d.ts.map +1 -1
  370. package/dist/promotion/common/campaign-budget.d.ts +22 -1
  371. package/dist/promotion/common/campaign-budget.d.ts.map +1 -1
  372. package/dist/promotion/common/campaing-budget-usage.d.ts +58 -0
  373. package/dist/promotion/common/campaing-budget-usage.d.ts.map +1 -0
  374. package/dist/promotion/common/campaing-budget-usage.js +3 -0
  375. package/dist/promotion/common/campaing-budget-usage.js.map +1 -0
  376. package/dist/promotion/common/compute-actions.d.ts +29 -1
  377. package/dist/promotion/common/compute-actions.d.ts.map +1 -1
  378. package/dist/promotion/common/index.d.ts +1 -0
  379. package/dist/promotion/common/index.d.ts.map +1 -1
  380. package/dist/promotion/common/index.js +1 -0
  381. package/dist/promotion/common/index.js.map +1 -1
  382. package/dist/promotion/common/promotion.d.ts +12 -0
  383. package/dist/promotion/common/promotion.d.ts.map +1 -1
  384. package/dist/promotion/mutations.d.ts +10 -0
  385. package/dist/promotion/mutations.d.ts.map +1 -1
  386. package/dist/promotion/service.d.ts +61 -4
  387. package/dist/promotion/service.d.ts.map +1 -1
  388. package/dist/region/service.d.ts +42 -0
  389. package/dist/region/service.d.ts.map +1 -1
  390. package/dist/settings/common.d.ts +151 -0
  391. package/dist/settings/common.d.ts.map +1 -0
  392. package/dist/settings/common.js +3 -0
  393. package/dist/settings/common.js.map +1 -0
  394. package/dist/settings/index.d.ts +4 -0
  395. package/dist/settings/index.d.ts.map +1 -0
  396. package/dist/settings/index.js +20 -0
  397. package/dist/settings/index.js.map +1 -0
  398. package/dist/settings/mutations.d.ts +121 -0
  399. package/dist/settings/mutations.d.ts.map +1 -0
  400. package/dist/settings/mutations.js +3 -0
  401. package/dist/settings/mutations.js.map +1 -0
  402. package/dist/settings/service.d.ts +25 -0
  403. package/dist/settings/service.d.ts.map +1 -0
  404. package/dist/settings/service.js +3 -0
  405. package/dist/settings/service.js.map +1 -0
  406. package/dist/shared-context.d.ts +13 -0
  407. package/dist/shared-context.d.ts.map +1 -1
  408. package/dist/stock-location/common.d.ts +4 -4
  409. package/dist/stock-location/service.d.ts +14 -0
  410. package/dist/stock-location/service.d.ts.map +1 -1
  411. package/dist/tax/common.d.ts +31 -3
  412. package/dist/tax/common.d.ts.map +1 -1
  413. package/dist/tax/mutations.d.ts +39 -2
  414. package/dist/tax/mutations.d.ts.map +1 -1
  415. package/dist/tax/provider.d.ts +46 -12
  416. package/dist/tax/provider.d.ts.map +1 -1
  417. package/dist/tax/service.d.ts +109 -5
  418. package/dist/tax/service.d.ts.map +1 -1
  419. package/dist/tsconfig.tsbuildinfo +1 -1
  420. package/dist/workflow/fulfillment/create-fulfillment.d.ts +1 -1
  421. package/dist/workflow/fulfillment/create-shipping-options.d.ts +9 -2
  422. package/dist/workflow/fulfillment/create-shipping-options.d.ts.map +1 -1
  423. package/dist/workflow/fulfillment/update-shipping-options.d.ts +5 -1
  424. package/dist/workflow/fulfillment/update-shipping-options.d.ts.map +1 -1
  425. package/dist/workflow/index.js +17 -7
  426. package/dist/workflow/index.js.map +1 -1
  427. package/dist/workflow/order/begin-order-edit.d.ts +3 -0
  428. package/dist/workflow/order/begin-order-edit.d.ts.map +1 -1
  429. package/dist/workflow/order/request-item-return.d.ts +8 -0
  430. package/dist/workflow/order/request-item-return.d.ts.map +1 -1
  431. package/dist/workflow/order/request-transfer.d.ts +16 -0
  432. package/dist/workflow/order/request-transfer.d.ts.map +1 -1
  433. package/dist/workflows-sdk/common.d.ts +8 -4
  434. package/dist/workflows-sdk/common.d.ts.map +1 -1
  435. package/dist/workflows-sdk/service.d.ts +4 -0
  436. package/dist/workflows-sdk/service.d.ts.map +1 -1
  437. package/package.json +5 -11
  438. package/dist/http/fulfillment/admin/queries.d.ts +0 -7
  439. package/dist/http/fulfillment/admin/queries.d.ts.map +0 -1
  440. package/dist/http/fulfillment/admin/queries.js.map +0 -1
  441. package/dist/index-data/sotrage-provider.js.map +0 -1
  442. /package/dist/http/{fulfillment → refund-reason}/admin/queries.js +0 -0
@@ -1,7 +1,9 @@
1
+ import type { Secret, SignOptions, VerifyOptions } from "jsonwebtoken";
1
2
  import { ExternalModuleDeclaration, InternalModuleDeclaration } from "../modules-sdk";
2
3
  import type { RedisOptions } from "ioredis";
3
4
  import { ConnectionOptions } from "node:tls";
4
5
  import type { InlineConfig } from "vite";
6
+ import type { Logger } from "../logger";
5
7
  /**
6
8
  * @interface
7
9
  *
@@ -13,7 +15,7 @@ export interface AdminOptions {
13
15
  * in both development and production environments. The default value is `false`.
14
16
  *
15
17
  * @example
16
- * ```js title="medusa-config.js"
18
+ * ```js title="medusa-config.ts"
17
19
  * module.exports = defineConfig({
18
20
  * admin: {
19
21
  * disable: process.env.ADMIN_DISABLED === "true" ||
@@ -34,7 +36,7 @@ export interface AdminOptions {
34
36
  * - `/`
35
37
  *
36
38
  * @example
37
- * ```js title="medusa-config.js"
39
+ * ```ts title="medusa-config.ts"
38
40
  * module.exports = defineConfig({
39
41
  * admin: {
40
42
  * path: process.env.ADMIN_PATH || `/app`,
@@ -48,7 +50,7 @@ export interface AdminOptions {
48
50
  * The URL of your Medusa application. Defaults to the browser origin. This is useful to set when running the admin on a separate domain.
49
51
  *
50
52
  * @example
51
- * ```js title="medusa-config.js"
53
+ * ```js title="medusa-config.ts"
52
54
  * module.exports = defineConfig({
53
55
  * admin: {
54
56
  * backendUrl: process.env.MEDUSA_BACKEND_URL ||
@@ -64,7 +66,7 @@ export interface AdminOptions {
64
66
  * to provide to customers to complete any processes
65
67
  *
66
68
  * @example
67
- * ```js title="medusa-config.js"
69
+ * ```js title="medusa-config.ts"
68
70
  * module.exports = defineConfig({
69
71
  * admin: {
70
72
  * storefrontUrl: process.env.MEDUSA_STOREFRONT_URL ||
@@ -75,6 +77,11 @@ export interface AdminOptions {
75
77
  * ```
76
78
  */
77
79
  storefrontUrl?: string;
80
+ /**
81
+ * The directory where the admin build is output. This is where the build process places the generated files.
82
+ * The default value is `./build`.
83
+ */
84
+ outDir?: string;
78
85
  /**
79
86
  * Configure the Vite configuration for the admin dashboard. This function receives the default Vite configuration
80
87
  * and returns the modified configuration. The default value is `undefined`.
@@ -88,7 +95,7 @@ export interface AdminOptions {
88
95
  *
89
96
  * Options to pass to `express-session`.
90
97
  */
91
- type SessionOptions = {
98
+ export type SessionOptions = {
92
99
  /**
93
100
  * The name of the session ID cookie to set in the response (and read from in the request). The default value is `connect.sid`.
94
101
  * Refer to [express-session’s documentation](https://www.npmjs.com/package/express-session#name) for more details.
@@ -119,6 +126,50 @@ type SessionOptions = {
119
126
  * Refer to [express-session’s documentation](https://www.npmjs.com/package/express-session#cookiemaxage) for details.
120
127
  */
121
128
  ttl?: number;
129
+ /**
130
+ * Specify the options for storing session data to dynamoDB. Make
131
+ * sure to install the following dependencies first.
132
+ *
133
+ * - @aws-sdk/client-dynamodb@^3.218.0
134
+ * - connect-dynamodb@^3.0.5
135
+ */
136
+ dynamodbOptions?: {
137
+ clientOptions?: {
138
+ endpoint?: string;
139
+ };
140
+ table?: string;
141
+ /** Defaults to 'sess:' */
142
+ prefix?: string;
143
+ /** Defaults to 'id' */
144
+ hashKey?: string;
145
+ readCapacityUnits?: number;
146
+ writeCapacityUnits?: number;
147
+ specialKeys?: {
148
+ name: string;
149
+ type: string;
150
+ }[];
151
+ skipThrowMissingSpecialKeys?: boolean;
152
+ /**
153
+ * Disable initialization.
154
+ * Useful if the table already exists or if you want to skip existence checks in a serverless environment such as AWS Lambda.
155
+ */
156
+ initialized?: boolean;
157
+ };
158
+ };
159
+ /**
160
+ * @interface
161
+ *
162
+ * Options to pass to `express-session`.
163
+ */
164
+ export type CookieOptions = Record<string, any> & {
165
+ secure?: boolean;
166
+ sameSite?: "lax" | "strict" | "none";
167
+ maxAge?: number;
168
+ httpOnly?: boolean;
169
+ priority?: "low" | "medium" | "high";
170
+ domain?: string;
171
+ path?: string;
172
+ signed?: boolean;
122
173
  };
123
174
  /**
124
175
  * @interface
@@ -146,6 +197,37 @@ export type HttpCompressionOptions = {
146
197
  */
147
198
  threshold?: number | string;
148
199
  };
200
+ /**
201
+ * @interface
202
+ *
203
+ * Medusa Cloud configurations.
204
+ */
205
+ export type MedusaCloudOptions = {
206
+ /**
207
+ * The environment handle of the Medusa Cloud environment.
208
+ */
209
+ environmentHandle?: string;
210
+ /**
211
+ * The sandbox handle of the Medusa Cloud sandbox.
212
+ */
213
+ sandboxHandle?: string;
214
+ /**
215
+ * The API key used to access Medusa Cloud services.
216
+ */
217
+ apiKey?: string;
218
+ /**
219
+ * The webhook secret used to verify webhooks.
220
+ */
221
+ webhookSecret?: string;
222
+ /**
223
+ * The endpoint of the Medusa Cloud payment service.
224
+ */
225
+ paymentsEndpoint?: string;
226
+ /**
227
+ * The endpoint of the Medusa Cloud email service.
228
+ */
229
+ emailsEndpoint?: string;
230
+ };
149
231
  /**
150
232
  * @interface
151
233
  *
@@ -159,7 +241,7 @@ export type ProjectConfigOptions = {
159
241
  * [PostgreSQL's documentation](https://www.postgresql.org/docs/current/sql-createdatabase.html).
160
242
  *
161
243
  * @example
162
- * ```js title="medusa-config.js"
244
+ * ```js title="medusa-config.ts"
163
245
  * module.exports = defineConfig({
164
246
  * projectConfig: {
165
247
  * databaseName: process.env.DATABASE_NAME ||
@@ -195,9 +277,9 @@ export type ProjectConfigOptions = {
195
277
  * DATABASE_URL=postgres://postgres@localhost/medusa-store
196
278
  * ```
197
279
  *
198
- * Then, use the value in `medusa-config.js`:
280
+ * Then, use the value in `medusa-config.ts`:
199
281
  *
200
- * ```js title="medusa-config.js"
282
+ * ```js title="medusa-config.ts"
201
283
  * module.exports = defineConfig({
202
284
  * projectConfig: {
203
285
  * databaseUrl: process.env.DATABASE_URL,
@@ -211,7 +293,7 @@ export type ProjectConfigOptions = {
211
293
  /**
212
294
  * The database schema to connect to. This is not required to provide if you’re using the default schema, which is `public`.
213
295
  *
214
- * ```js title="medusa-config.js"
296
+ * ```js title="medusa-config.ts"
215
297
  * module.exports = defineConfig({
216
298
  * projectConfig: {
217
299
  * databaseSchema: process.env.DATABASE_SCHEMA ||
@@ -227,7 +309,7 @@ export type ProjectConfigOptions = {
227
309
  * This configuration specifies whether database messages should be logged.
228
310
  *
229
311
  * @example
230
- * ```js title="medusa-config.js"
312
+ * ```js title="medusa-config.ts"
231
313
  * module.exports = defineConfig({
232
314
  * projectConfig: {
233
315
  * databaseLogging: false
@@ -252,7 +334,7 @@ export type ProjectConfigOptions = {
252
334
  * :::
253
335
  *
254
336
  * @example
255
- * ```js title="medusa-config.js"
337
+ * ```js title="medusa-config.ts"
256
338
  * module.exports = defineConfig({
257
339
  * projectConfig: {
258
340
  * databaseDriverOptions: process.env.NODE_ENV !== "development" ?
@@ -289,7 +371,7 @@ export type ProjectConfigOptions = {
289
371
  * For a local Redis installation, the connection URL should be `redis://localhost:6379` unless you’ve made any changes to the Redis configuration during installation.
290
372
  *
291
373
  * @example
292
- * ```js title="medusa-config.js"
374
+ * ```js title="medusa-config.ts"
293
375
  * module.exports = defineConfig({
294
376
  * projectConfig: {
295
377
  * redisUrl: process.env.REDIS_URL ||
@@ -307,7 +389,7 @@ export type ProjectConfigOptions = {
307
389
  * If this configuration option is provided, it is prepended to `sess:`.
308
390
  *
309
391
  * @example
310
- * ```js title="medusa-config.js"
392
+ * ```js title="medusa-config.ts"
311
393
  * module.exports = defineConfig({
312
394
  * projectConfig: {
313
395
  * redisPrefix: process.env.REDIS_URL || "medusa:",
@@ -323,7 +405,7 @@ export type ProjectConfigOptions = {
323
405
  * for the list of available options.
324
406
  *
325
407
  * @example
326
- * ```js title="medusa-config.js"
408
+ * ```js title="medusa-config.ts"
327
409
  * module.exports = defineConfig({
328
410
  * projectConfig: {
329
411
  * redisOptions: {
@@ -341,7 +423,7 @@ export type ProjectConfigOptions = {
341
423
  * This configuration defines additional options to pass to [express-session](https://www.npmjs.com/package/express-session), which is used to store the Medusa server's session.
342
424
  *
343
425
  * @example
344
- * ```js title="medusa-config.js"
426
+ * ```js title="medusa-config.ts"
345
427
  * module.exports = defineConfig({
346
428
  * projectConfig: {
347
429
  * sessionOptions: {
@@ -354,11 +436,12 @@ export type ProjectConfigOptions = {
354
436
  * ```
355
437
  */
356
438
  sessionOptions?: SessionOptions;
439
+ cookieOptions?: CookieOptions;
357
440
  /**
358
441
  * Configure the number of staged jobs that are polled from the database. Default is `1000`.
359
442
  *
360
443
  * @example
361
- * ```js title="medusa-config.js"
444
+ * ```js title="medusa-config.ts"
362
445
  * module.exports = defineConfig({
363
446
  * projectConfig: {
364
447
  * jobsBatchSize: 100
@@ -395,7 +478,7 @@ export type ProjectConfigOptions = {
395
478
  * 2. Another having the `workerMode` configuration set to `worker`.
396
479
  *
397
480
  * @example
398
- * ```js title="medusa-config.js"
481
+ * ```js title="medusa-config.ts"
399
482
  * module.exports = defineConfig({
400
483
  * projectConfig: {
401
484
  * workerMode: process.env.WORKER_MODE || "shared"
@@ -410,7 +493,7 @@ export type ProjectConfigOptions = {
410
493
  * This property configures the application's http-specific settings.
411
494
  *
412
495
  * @example
413
- * ```js title="medusa-config.js"
496
+ * ```js title="medusa-config.ts"
414
497
  * module.exports = defineConfig({
415
498
  * projectConfig: {
416
499
  * http: {
@@ -433,7 +516,7 @@ export type ProjectConfigOptions = {
433
516
  * error is thrown and the application crashes.
434
517
  *
435
518
  * @example
436
- * ```js title="medusa-config.js"
519
+ * ```js title="medusa-config.ts"
437
520
  * module.exports = defineConfig({
438
521
  * projectConfig: {
439
522
  * http: {
@@ -445,14 +528,73 @@ export type ProjectConfigOptions = {
445
528
  * })
446
529
  * ```
447
530
  */
448
- jwtSecret?: string;
531
+ jwtSecret?: Secret;
532
+ /**
533
+ * The public key used to verify the JWT token in combination with the JWT secret and the JWT options.
534
+ * Only used when the JWT secret is a secret key for asymetric validation.
535
+ *
536
+ * @example
537
+ * ```js title="medusa-config.ts"
538
+ * module.exports = defineConfig({
539
+ * projectConfig: {
540
+ * http: {
541
+ * jwtPublicKey: "public-key"
542
+ * }
543
+ * // ...
544
+ * },
545
+ * // ...
546
+ * })
547
+ * ```
548
+ */
549
+ jwtPublicKey?: Secret;
550
+ /**
551
+ * Options for the JWT token when using asymetric signing private/public key. Will be used for validation if `jwtVerifyOptions` is not provided.
552
+ *
553
+ * @example
554
+ * ```js title="medusa-config.ts"
555
+ * module.exports = defineConfig({
556
+ * projectConfig: {
557
+ * http: {
558
+ * jwtOptions: {
559
+ * algorithm: "RS256",
560
+ * expiresIn: "1h",
561
+ * issuer: "medusa",
562
+ * keyid: "medusa",
563
+ * }
564
+ * }
565
+ * // ...
566
+ * },
567
+ * // ...
568
+ * })
569
+ * ```
570
+ */
571
+ jwtOptions?: SignOptions;
572
+ /**
573
+ * Options for the JWT token when using asymetric validation private/public key.
574
+ *
575
+ * @example
576
+ * ```js title="medusa-config.ts"
577
+ * module.exports = defineConfig({
578
+ * projectConfig: {
579
+ * http: {
580
+ * jwtVerifyOptions: {
581
+ * // ...
582
+ * }
583
+ * }
584
+ * // ...
585
+ * },
586
+ * // ...
587
+ * })
588
+ * ```
589
+ */
590
+ jwtVerifyOptions?: VerifyOptions;
449
591
  /**
450
592
  * The expiration time for the JWT token. Its format is based off the [ms package](https://github.com/vercel/ms).
451
593
  *
452
594
  * If not provided, the default value is `24h`.
453
595
  *
454
596
  * @example
455
- * ```js title="medusa-config.js"
597
+ * ```js title="medusa-config.ts"
456
598
  * module.exports = defineConfig({
457
599
  * projectConfig: {
458
600
  * http: {
@@ -472,7 +614,7 @@ export type ProjectConfigOptions = {
472
614
  * the application crashes.
473
615
  *
474
616
  * @example
475
- * ```js title="medusa-config.js"
617
+ * ```js title="medusa-config.ts"
476
618
  * module.exports = defineConfig({
477
619
  * projectConfig: {
478
620
  * http: {
@@ -509,9 +651,9 @@ export type ProjectConfigOptions = {
509
651
  * AUTH_CORS=/http:\/\/.+/
510
652
  * ```
511
653
  *
512
- * Then, set the configuration in `medusa-config.js`:
654
+ * Then, set the configuration in `medusa-config.ts`:
513
655
  *
514
- * ```js title="medusa-config.js"
656
+ * ```js title="medusa-config.ts"
515
657
  * module.exports = defineConfig({
516
658
  * projectConfig: {
517
659
  * http: {
@@ -523,9 +665,9 @@ export type ProjectConfigOptions = {
523
665
  * })
524
666
  * ```
525
667
  *
526
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
668
+ * If you’re adding the value directly within `medusa-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
527
669
  *
528
- * ```js title="medusa-config.js"
670
+ * ```js title="medusa-config.ts"
529
671
  * module.exports = defineConfig({
530
672
  * projectConfig: {
531
673
  * http: {
@@ -547,7 +689,7 @@ export type ProjectConfigOptions = {
547
689
  * Learn more in the [API Reference](https://docs.medusajs.com/api/store#http-compression).
548
690
  *
549
691
  * @example
550
- * ```js title="medusa-config.js"
692
+ * ```js title="medusa-config.ts"
551
693
  * module.exports = defineConfig({
552
694
  * projectConfig: {
553
695
  * http: {
@@ -589,9 +731,9 @@ export type ProjectConfigOptions = {
589
731
  * STORE_CORS=/http:\/\/.+/
590
732
  * ```
591
733
  *
592
- * Then, set the configuration in `medusa-config.js`:
734
+ * Then, set the configuration in `medusa-config.ts`:
593
735
  *
594
- * ```js title="medusa-config.js"
736
+ * ```js title="medusa-config.ts"
595
737
  * module.exports = defineConfig({
596
738
  * projectConfig: {
597
739
  * http: {
@@ -603,9 +745,9 @@ export type ProjectConfigOptions = {
603
745
  * })
604
746
  * ```
605
747
  *
606
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
748
+ * If you’re adding the value directly within `medusa-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
607
749
  *
608
- * ```js title="medusa-config.js"
750
+ * ```js title="medusa-config.ts"
609
751
  * module.exports = defineConfig({
610
752
  * projectConfig: {
611
753
  * http: {
@@ -642,9 +784,9 @@ export type ProjectConfigOptions = {
642
784
  * ADMIN_CORS=/http:\/\/.+/
643
785
  * ```
644
786
  *
645
- * Then, set the configuration in `medusa-config.js`:
787
+ * Then, set the configuration in `medusa-config.ts`:
646
788
  *
647
- * ```js title="medusa-config.js"
789
+ * ```js title="medusa-config.ts"
648
790
  * module.exports = defineConfig({
649
791
  * projectConfig: {
650
792
  * http: {
@@ -656,9 +798,9 @@ export type ProjectConfigOptions = {
656
798
  * })
657
799
  * ```
658
800
  *
659
- * If you’re adding the value directly within `medusa-config.js`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
801
+ * If you’re adding the value directly within `medusa-config.ts`, make sure to add an extra escaping `/` for every backslash in the pattern. For example:
660
802
  *
661
- * ```js title="medusa-config.js"
803
+ * ```js title="medusa-config.ts"
662
804
  * module.exports = defineConfig({
663
805
  * projectConfig: {
664
806
  * http: {
@@ -680,9 +822,9 @@ export type ProjectConfigOptions = {
680
822
  * @example
681
823
  * Some example values of common use cases:
682
824
  *
683
- * Then, set the configuration in `medusa-config.js`:
825
+ * Then, set the configuration in `medusa-config.ts`:
684
826
  *
685
- * ```js title="medusa-config.js"
827
+ * ```js title="medusa-config.ts"
686
828
  * module.exports = defineConfig({
687
829
  * projectConfig: {
688
830
  * http: {
@@ -704,7 +846,7 @@ export type ProjectConfigOptions = {
704
846
  *
705
847
  * @example
706
848
  *
707
- * ```js title="medusa-config.js"
849
+ * ```js title="medusa-config.ts"
708
850
  * module.exports = defineConfig({
709
851
  * projectConfig: {
710
852
  * http: {
@@ -718,24 +860,36 @@ export type ProjectConfigOptions = {
718
860
  store?: string[];
719
861
  };
720
862
  };
863
+ /**
864
+ * This property holds configurations for running in Medusa Cloud.
865
+ * It gets automatically populated in the cloud, and is not needed outside of it.
866
+ */
867
+ cloud?: MedusaCloudOptions;
721
868
  };
722
869
  /**
723
870
  * @interface
724
871
  *
725
- * The configurations for your Medusa application are in `medusa-config.js` located in the root of your Medusa project. The configurations include configurations for database, modules, and more.
872
+ * The configurations for your Medusa application are set in `medusa-config.ts` located in the root of your Medusa project. The configurations include configurations for database, modules, and more.
726
873
  *
727
- * `medusa-config.js` exports the value returned by the `defineConfig` utility function imported from `@medusajs/utils`.
874
+ * :::note
875
+ *
876
+ * Some Medusa configurations are set through environment variables, which you can find in [this documentation](https://docs.medusajs.com/learn/fundamentals/environment-variables#predefined-medusa-environment-variables).
877
+ *
878
+ * :::
879
+ *
880
+ * `medusa-config.ts` exports the value returned by the `defineConfig` utility function imported from `@medusajs/framework/utils`.
728
881
  *
729
882
  * `defineConfig` accepts as a parameter an object with the following properties:
730
883
  *
731
884
  * - {@link ConfigModule.projectConfig | projectConfig} (required): An object that holds general configurations related to the Medusa application, such as database or CORS configurations.
885
+ * - {@link ConfigModule.plugins | plugins}: An array of strings or objects that hold the configurations of the plugins installed in the Medusa application.
732
886
  * - {@link ConfigModule.admin | admin}: An object that holds admin-related configurations.
733
887
  * - {@link ConfigModule.modules | modules}: An object that configures the Medusa application's modules.
734
888
  * - {@link ConfigModule.featureFlags | featureFlags}: An object that enables or disables features guarded by a feature flag.
735
889
  *
736
890
  * For example:
737
891
  *
738
- * ```js title="medusa-config.js"
892
+ * ```ts title="medusa-config.ts"
739
893
  * module.exports = defineConfig({
740
894
  * projectConfig: {
741
895
  * // ...
@@ -756,7 +910,7 @@ export type ProjectConfigOptions = {
756
910
  *
757
911
  * ## Environment Variables
758
912
  *
759
- * It's highly recommended to store the values of configurations in environment variables, then reference them within `medusa-config.js`.
913
+ * It's highly recommended to store the values of configurations in environment variables, then reference them within `medusa-config.ts`.
760
914
  *
761
915
  * During development, you can set your environment variables in the `.env` file at the root of your Medusa application project. In production,
762
916
  * setting the environment variables depends on the hosting provider.
@@ -765,14 +919,14 @@ export type ProjectConfigOptions = {
765
919
  */
766
920
  export type ConfigModule = {
767
921
  /**
768
- * This property holds essential configurations related to the Medusa application, such as database and CORS configurations.
922
+ * This property holds essential configurations related to the Medusa application, such as database, CORS configurations and Logger.
769
923
  */
770
924
  projectConfig: ProjectConfigOptions;
771
925
  /**
772
926
  * This property holds configurations for the Medusa Admin dashboard.
773
927
  *
774
928
  * @example
775
- * ```js title="medusa-config.js"
929
+ * ```ts title="medusa-config.ts"
776
930
  * module.exports = defineConfig({
777
931
  * admin: {
778
932
  * backendUrl: process.env.MEDUSA_BACKEND_URL ||
@@ -784,20 +938,22 @@ export type ConfigModule = {
784
938
  */
785
939
  admin: AdminOptions;
786
940
  /**
787
- * On your Medusa backend, you can use [Plugins](https://docs.medusajs.com/development/plugins/overview) to add custom features or integrate third-party services.
788
- * For example, installing a plugin to use Stripe as a payment processor.
941
+ * On your Medusa server, you can use [Plugins](https://docs.medusajs.com/learn/fundamentals/plugins) to add re-usable Medusa customizations. Plugins
942
+ * can include modules, workflows, API Routes, and other customizations. Plugins are available starting from [Medusa v2.3.0](https://github.com/medusajs/medusa/releases/tag/v2.3.0).
789
943
  *
790
- * Aside from installing the plugin with NPM, you need to pass the plugin you installed into the `plugins` array defined in `medusa-config.js`.
944
+ * Aside from installing the plugin with NPM, you need to pass the plugin you installed into the `plugins` array defined in `medusa-config.ts`.
791
945
  *
792
946
  * The items in the array can either be:
793
947
  *
794
- * - A string, which is the name of the plugin to add. You can pass a plugin as a string if it doesn’t require any configurations.
948
+ * - A string, which is the name of the plugin's package as specified in the plugin's `package.json` file. You can pass a plugin as a string if it doesn’t require any options.
795
949
  * - An object having the following properties:
796
- * - `resolve`: The name of the plugin.
797
- * - `options`: An object that includes the plugin’s options. These options vary for each plugin, and you should refer to the plugin’s documentation for available options.
950
+ * - `resolve`: The name of the plugin's package as specified in the plugin's `package.json` file.
951
+ * - `options`: An object that includes options to be passed to the modules within the plugin. Learn more in [this documentation](https://docs.medusajs.com/learn/fundamentals/modules/options).
952
+ *
953
+ * Learn how to create a plugin in [this documentation](https://docs.medusajs.com/learn/fundamentals/plugins/create).
798
954
  *
799
955
  * @example
800
- * ```js title="medusa-config.js"
956
+ * ```ts title="medusa-config.ts"
801
957
  * module.exports = {
802
958
  * plugins: [
803
959
  * `medusa-my-plugin-1`,
@@ -813,14 +969,16 @@ export type ConfigModule = {
813
969
  * // ...
814
970
  * }
815
971
  * ```
816
- *
817
- * @ignore
818
- *
819
- * @privateRemarks
820
- * Added the `@\ignore` tag for now so it's not generated in the main docs until we figure out what to do with plugins
821
972
  */
822
973
  plugins: ({
974
+ /**
975
+ * The name of the plugin's package as specified in the plugin's `package.json` file.
976
+ */
823
977
  resolve: string;
978
+ /**
979
+ * An object that includes options to be passed to the modules within the plugin.
980
+ * Learn more in [this documentation](https://docs.medusajs.com/learn/fundamentals/modules/options).
981
+ */
824
982
  options: Record<string, unknown>;
825
983
  } | string)[];
826
984
  /**
@@ -828,26 +986,24 @@ export type ConfigModule = {
828
986
  *
829
987
  * :::note
830
988
  *
831
- * Medusa's commerce modules are configured by default, so only
989
+ * Medusa's Commerce Modules are configured by default, so only
832
990
  * add them to this property if you're changing their configurations or adding providers to a module.
833
991
  *
834
992
  * :::
835
993
  *
836
- * The keys of the `modules` configuration object refer to the module's registration name. Its value can be one of the following:
994
+ * `modules` is an array of objects, each holding a module's registration configurations. Each object has the following properties:
837
995
  *
838
- * 1. A boolean value indicating whether the module type is enabled. This is only supported for Medusa's commerce and architectural modules;
839
- * 2. Or an object having the following properties:
840
- * 1. `resolve`: a string indicating the path to the module relative to `src`, or the module's NPM package name. For example, `./modules/my-module`.
841
- * 2. `options`: (optional) an object indicating the options to pass to the module.
996
+ * 1. `resolve`: a string indicating the path to the module relative to `src`, or the module's NPM package name. For example, `./modules/my-module`.
997
+ * 2. `options`: (optional) an object indicating the options to pass to the module.
842
998
  *
843
999
  * @example
844
- * ```js title="medusa-config.js"
1000
+ * ```ts title="medusa-config.ts"
845
1001
  * module.exports = defineConfig({
846
- * modules: {
847
- * helloModuleService: {
1002
+ * modules: [
1003
+ * {
848
1004
  * resolve: "./modules/hello"
849
1005
  * }
850
- * }
1006
+ * ]
851
1007
  * // ...
852
1008
  * })
853
1009
  * ```
@@ -857,14 +1013,14 @@ export type ConfigModule = {
857
1013
  * Some features in the Medusa application are guarded by a feature flag. This ensures constant shipping of new features while maintaining the engine’s stability.
858
1014
  *
859
1015
  * You can enable a feature in your application by enabling its feature flag. Feature flags are enabled through either environment
860
- * variables or through this configuration property exported in `medusa-config.js`.
1016
+ * variables or through this configuration property exported in `medusa-config.ts`.
861
1017
  *
862
1018
  * The `featureFlags`'s value is an object. Its properties are the names of the feature flags, and their value is a boolean indicating whether the feature flag is enabled.
863
1019
  *
864
- * You can find available feature flags and their key name [here](https://github.com/medusajs/medusa/tree/develop/packages/medusa/src/loaders/feature-flags).
1020
+ * You can find available feature flags and their key name [here](https://github.com/medusajs/medusa/tree/develop/packages/medusa/src/feature-flags).
865
1021
  *
866
1022
  * @example
867
- * ```js title="medusa-config.js"
1023
+ * ```ts title="medusa-config.ts"
868
1024
  * module.exports = defineConfig({
869
1025
  * featureFlags: {
870
1026
  * analytics: true,
@@ -881,6 +1037,10 @@ export type ConfigModule = {
881
1037
  * :::
882
1038
  */
883
1039
  featureFlags: Record<string, boolean | string | Record<string, boolean>>;
1040
+ /**
1041
+ * The Logger instance to be used by the application.
1042
+ */
1043
+ logger?: Logger;
884
1044
  };
885
1045
  type InternalModuleDeclarationOverride = InternalModuleDeclaration & {
886
1046
  /**
@@ -910,7 +1070,7 @@ export type InputConfigModules = Partial<InternalModuleDeclarationOverride | Ext
910
1070
  * The configuration accepted by the "defineConfig" helper
911
1071
  */
912
1072
  export type InputConfig = Partial<Omit<ConfigModule, "admin" | "modules"> & {
913
- admin: Partial<ConfigModule["admin"]>;
1073
+ admin?: Partial<ConfigModule["admin"]>;
914
1074
  modules: InputConfigModules
915
1075
  /**
916
1076
  * @deprecated use the array instead
@@ -1 +1 @@
1
- {"version":3,"file":"config-module.d.ts","sourceRoot":"","sources":["../../src/common/config-module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,yBAAyB,EAC1B,MAAM,gBAAgB,CAAA;AAEvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;;;;;;;;;;;;;;;;OAkBG;IACH,IAAI,EAAE,IAAI,MAAM,EAAE,CAAA;IAClB;;;;;;;;;;;;;OAaG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;;;;;;;;;;OAcG;IACH,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,YAAY,CAAA;CAC9C;AAED;;;;GAIG;AACH,KAAK,cAAc,GAAG;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAA;AAED;;;;GAIG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB;;;OAGG;IACH,KA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