Stevche Radevski
ee1c77a01f
feat: Add support for multiple active keys at a time ( #13754 )
2025-10-16 10:07:08 +02:00
Adrien de Peretti
12a96a7c70
chore(): Move peer deps into a single package and re export from framework ( #13439 )
...
* chore(): Move peer deps into a single package and re export from framework
* WIP
* update core packages
* update cli and deps
* update medusa
* update exports path
* remove analyze
* update modules deps
* finalise changes
* fix yarn
* fix import
* Refactor peer dependencies into a single package
Consolidate peer dependencies into one package and re-export from the framework.
* update changeset
* Update .changeset/brown-cows-sleep.md
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* rm deps
* fix deps
* increase timeout
* upgrade version
* update versions
* update versions
* fixes
* update lock
* fix missing import
* fix missing import
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-09-22 18:36:22 +02:00
Adrien de Peretti
e8822f3e69
chore(): Module Internal Events ( #13296 )
...
* chore(): Ensure the product module emits all necessary events
* chore(): Ensure the product module emits all necessary events
* Update events tests
* more events and fixes
* more tests and category fixes
* more tests and category fixes
* Add todo
* update updateProduct_ event emitting and adjust test
* Adjust update products implementation to rely on already computed events
* rm unnecessary update variants events
* Fix formatting in changeset for product events
* refactor: Manage event emitting automatically (WIP)
* refactor: Manage event emitting automatically (WIP)
* chore(api-key): Add missing emit events and refactoring
* chore(cart): Add missing emit events and refactoring
* chore(customer): Add missing emit events and refactoring
* chore(fufillment, utils): Add missing emit events and refactoring
* chore(fufillment, utils): Add missing emit events and refactoring
* chore(inventory): Add missing emit events and refactoring
* chore(notification): Add missing emit events and refactoring
* chore(utils): Remove medusa service event handling legacy
* chore(product): Add missing emit events and refactoring
* chore(order): Add missing emit events and refactoring
* chore(payment): Add missing emit events and refactoring
* chore(pricing, util): Add missing emit events and refactoring, fix internal service upsertWithReplace event dispatching
* chore(promotions): Add missing emit events and refactoring
* chore(region): Add missing emit events and refactoring
* chore(sales-channel): Add missing emit events and refactoring
* chore(settings): Add missing emit events and refactoring
* chore(stock-location): Add missing emit events and refactoring
* chore(store): Add missing emit events and refactoring
* chore(taxes): Add missing emit events and refactoring
* chore(user): Add missing emit events and refactoring
* fix unit tests
* rm changeset for regeneration
* Create changeset for Medusa.js patch updates
Add a changeset for patch updates to multiple Medusa.js modules.
* rm unused product event builders
* address feedback
* remove old changeset
* fix event action for token generated
* fix user module events
* fix import
* fix promotion events
* add new module integration tests shard
* fix medusa service
* revert shard
* fix event action
* fix pipeline
* fix pipeline
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-09-10 14:37:38 +02:00
Harminder Virk
016e332e9b
feat: make AbstractModuleService create method type-safe ( #11216 )
2025-02-03 21:25:01 +05:30
Harminder Virk
70d77ea22f
refactor: migrate api key module to DML ( #10450 )
...
Fixes: FRMW-2827
2024-12-05 16:37:54 +00:00
Harminder Virk
48e00169d2
breaking: move shared HTTP utils to the framework ( #9402 )
...
Fixes: FRMW-2728, FRMW-2729
After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path.
- applyParamsAsFilters
- clearFiltersByKey
- applyDefaultFilters
- setContext
- getQueryConfig
- httpCompression
- maybeApplyLinkFilter
- refetchEntities
- unlessPath
- validateBody
- validateQuery
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-10-03 09:42:00 +00:00
Adrien de Peretti
e096feb7d5
chore: Update modules deps ( #9286 )
2024-09-26 11:14:35 +05:30
Adrien de Peretti
90d530565b
chore(): Remove default limit from the build query ( #9257 )
...
* chore(): Remove default limit from the build query
* rm take: null
* fix tests
* fix tests
* fix db usage
* fix typo
* rm unsused template arg
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
2024-09-24 16:06:45 +02:00
Adrien de Peretti
81d3ae01c7
chore: Cleanup manager decorator usage ( #9181 )
2024-09-18 14:16:20 +02:00
Carlos R. L. Rodrigues
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Riqwan Thamir
64d5b74c12
feat(api-key,js-sdk,dashboard): allow deleting api keys only once its revoked ( #9118 )
...
what:
- module only deletes api keys once its revoked
- disables ui elements
https://github.com/user-attachments/assets/437821ae-497e-4b59-b02c-4a6ff36e6a30
RESOLVES CC-106
RESOLVES CC-105
RESOLVES CC-104
2024-09-12 10:16:15 +00:00
Adrien de Peretti
2c5e72d141
feat: Application types generation from project GQL schema's ( #8995 )
2024-09-06 15:15:32 +05:30
Adrien de Peretti
b368251ca3
chore: Migrate modules to use the Module util ( #7964 )
...
**What**
Apply the `Module` util to each module to handle the export and provide the linkable configuration object.
- Most joiner config that does not have any special config are removed/cleaned up in favor of the autogenerated one or simpler one
- linkable are now available in all modules
- cleaned up the dependencies of the modules
FIXES CORE-2410
2024-07-05 13:00:40 +00:00
Adrien de Peretti
617a5972bf
feat: refactor module joiner config and links generation ( #7859 )
...
* feat: refactor module joiner config and links generation
* improve typings
* WIP
* WIP
* WIP
* rename type file
* create link config
* finish typings and add utils
* improve links
* WIP typings
* finalize ExportModule utils
* finalize ExportModule utils
* fix: dml tests
* improve and fixes
* simplify typings with id changes
* add toJSON
* multiple fixes and entity builder fixes
* fix currency searchable
* fix tests
* medusa service refactoring
* cleanup
* cleanup and fixes
* make module name optional
* renaming
---------
Co-authored-by: Harminder Virk <virk.officials@gmail.com >
2024-07-03 13:12:49 +02:00
Adrien de Peretti
937a632eb6
chore: make module loaders DML aware and auto generate joiner config ( #7781 )
...
* chore: make module loaders DML aware and auto generate joiner config
* fixes and cleanup
* improve dml entity check
* add unit tests on load resources
* cleanup deps
* cleanup deps
* cleanup Modules
* finalise
* fix modules-sdk jest
* fix modules-sdk jest
* fix import
* fix import
2024-06-20 18:18:07 +02:00
Adrien de Peretti
48963f55ef
Chore/rm main entity concept ( #7709 )
...
**What**
Update the `MedusaService` class, factory and types to remove the concept of main modules. The idea being that all method will be explicitly named and suffixes to represent the object you are trying to manipulate.
This pr also includes various fixes in different modules
Co-authored-by: Stevche Radevski <4820812+sradevski@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-06-19 13:02:16 +00:00
Adrien de Peretti
d2a5201eeb
chore: Refactor and improve abstract module service factory ( #7688 )
...
* chore: Refactor and improve abstract module service factory
* align naming
* clean up some template args and tests
* partially migrate modules
* partially migrate modules
* migrate more modules
* migrate last modules
* fix typings
* rename interface
* rename interface
* fixes
* fixes
* rm local plain tests
2024-06-13 13:12:37 +02:00
Stevche Radevski
e44fe78b96
fix: Several fixes to store product endpoints, moved several test suites to HTTP ( #7601 )
...
* chore: Move publishable api key tests to HTTP
* chore: Move store tests to HTTP folder
* fix: Add tests for store products, fix several bugs around publishable keys
2024-06-04 21:00:07 +02:00
Stevche Radevski
ee924b1b28
feat: Add a simple configurable notifications subscriber ( #7331 )
...
* feat: Add a simple configurable notifications subscriber that is configurable
* Proposal on awaiting all subscribers to run
* fix: Clean up wait subscribers util and notifications test
---------
Co-authored-by: adrien2p <adrien.deperetti@gmail.com >
2024-05-16 13:36:09 +02:00
Adrien de Peretti
63623422fe
chore(): Autoload module resources ( #7291 )
...
**What**
- automatically build and consume connection and container loader if not exported by the module
- therefore load the services and repositories automatically, including baseRepository
- automatically build run and revert migrations if not provided
- cleaup modules to remove extra unnecessary bits and pieces
- remove the `initializeFactory` in favor of using `medusaApp`
Should drastically improve the module building DX by removing a lot of boilerplate to handle by the user, that plus the base entity should simplify quite a lot the flow cc @shahednasser
**Note**
I had to choose a way to identify connection and container loader from the exported loader from the module. I decided to go with named function `connectionLoader` and `containerLoader`, also, now the factories will return named function so if the user use the factories we are providing to build those loaders, the function will also be named and identified
2024-05-13 12:12:36 +00:00
Adrien de Peretti
4eae25e1ef
chore(): Reorganize modules ( #7210 )
...
**What**
Move all modules to the modules directory
2024-05-02 15:33:34 +00:00