Oli Juhl
2bacf86d3c
chore: Remove prepublishOnly script ( #8699 )
...
* wip
* wip
* verbose logging
* remove prepublish scripts
* chore: add back prepublish scripts
* wip
* remove prepublishOnly script
* chore: Clean up rest of build scripts
* add back build script
* feedback
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-27 10:31:38 +02:00
Carlos R. L. Rodrigues
3b4eea08ef
chore: peer dependency version ( #8771 )
...
* fix peer dependency version
* dotenv
* commands
* dotenv cli
2024-08-26 21:55:57 +02:00
Carlos R. L. Rodrigues
058378970a
chore: dependecies reorg ( #8535 )
2024-08-23 07:16:04 -03:00
Carlos R. L. Rodrigues
99eca64c20
chore(order): preview removed items ( #8680 )
2024-08-20 14:53:39 -03:00
Riqwan Thamir
4791d1d775
fix(promotion): validate rules accurately when attribute is scoped by context ( #8655 )
2024-08-19 15:38:42 +02:00
Adrien de Peretti
4af7309170
fix: install modules-sdk for test-utils to work ( #8142 )
2024-07-16 12:00:24 +02:00
Adrien de Peretti
9750047af1
chore: Rename entity to model ( #7977 )
...
**What**
Start renaming `entity` to `model`
2024-07-08 07:43:49 +00:00
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
f4dd390ab1
chore: Apply defineMikroOrmCliConfig ( #7975 )
...
**What**
Ensure all module rely on the same config for the dev db
FIXES CORE-2493
2024-07-05 11:10:03 +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
Riqwan Thamir
d58a626d0a
fix: fix tabs + required fields ( #7892 )
2024-07-01 17:23:45 +02:00
Riqwan Thamir
7414034ac4
chore: scope campaign identifier index with deleted at ( #7821 )
2024-06-24 18:06:14 +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
Riqwan Thamir
03924a4ff6
chore: move to swc/jest ( #7739 )
...
* chore: move to swc
* chore: fix tax rate tests
* chore: undo failed test
* chore: fix unit tests script
* chore: use node 20
* Update scripts/run-workspace-unit-tests-in-chunks.sh
2024-06-20 12:59:33 +02:00
Riqwan Thamir
f61557712c
chore: make apis nullable ( #7763 )
...
what:
- makes top level attributes of each object an optional field in the http layer where possible
RESOLVES CORE-2229
2024-06-20 10:10:59 +00: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
Riqwan Thamir
0d04c548f5
feat(dashboard,types,promotion,medusa): hide fields on promotions depending on templates ( #7746 )
...
**what:**
- hides different fields depending on the chosen template
- remove operator values API
- fixes to edit promotion rules
- make currency optional for promotion
RESOLVES CORE-2297
2024-06-18 16:47:42 +00:00
Riqwan Thamir
3d33f06e77
chore: upgrade jest everywhere ( #7703 )
2024-06-14 07:35:30 +02: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
Carlos R. L. Rodrigues
096372463e
chore(promotion): big number calc ( #7537 )
2024-05-30 07:23:57 -03:00
Carlos R. L. Rodrigues
f1ced57d5f
chore: payment auto capture + remove enum from utils ( #7513 )
...
What:
- handles payments session that are auto captured
- removes all the enums from `@medusajs/types`
- move all `@medusajs/types` to devDependencies
2024-05-29 11:12:59 +00:00
Riqwan Thamir
d1d23f1e8d
feat(dashboard,medusa): Promotion Campaign fixes ( #7337 )
...
* chore(medusa): strict zod versions in workspace
* feat(dashboard): add campaign create to promotion UI
* wip
* fix(medusa): Missing middlewares export (#7289 )
* fix(docblock-generator): fix how type names created from Zod objects are inferred (#7292 )
* feat(api-ref): show schema of a tag (#7297 )
* feat: Add support for sendgrid and logger notification providers (#7290 )
* feat: Add support for sendgrid and logger notification providers
* fix: changes based on PR review
* chore: add action to automatically label docs (#7284 )
* chore: add action to automatically label docs
* removes the paths param
* docs: preparations for preview (#7267 )
* configured base paths + added development banner
* fix typelist site url
* added navbar and sidebar badges
* configure algolia filters
* remove AI assistant
* remove unused imports
* change navbar text and badge
* lint fixes
* fix build error
* add to api reference rewrites
* fix build error
* fix build errors in user-guide
* fix feedback component
* add parent title to pagination
* added breadcrumbs component
* remove user-guide links
* resolve todos
* fix details about authentication
* change documentation title
* lint content
* chore: fix bug with form reset
* chore: address reviews
* chore: fix specs
* chore: loads of FE fixes + BE adds
* chore: add more polishes + reorg files
* chore: fixes to promotions modal
* chore: cleanup
* chore: cleanup
* chore: fix build
* chore: fkix cart spec
* chore: fix module tests
* chore: fix moar tests
* wip
* chore: templates + fixes + migrate currency
* chore: fix build, add validation for max_quantity
* chore: allow removing campaigns
* chore: fix specs
* chore: scope campaigns based on currency
* remove console logs
* chore: add translations + update keys
* chore: move over filesfrom v2 to routes
* chore(dashboard): Delete old translation files (#7423 )
* feat(dashboard,admin-sdk,admin-shared,admin-vite-plugin): Add support for UI extensions (#7383 )
* intial work
* update lock
* add routes and fix HMR of configs
* cleanup
* rm imports
* rm debug from plugin
* address feedback
* address feedback
* temp skip specs
---------
Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com >
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
Co-authored-by: Stevche Radevski <sradevski@live.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
2024-05-23 15:28:00 +02:00
Carlos R. L. Rodrigues
9dae86daa2
chore: es target 2021 ( #7325 )
2024-05-14 08:07:14 -03: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
Riqwan Thamir
9a14aeebcf
feat(core-flows,types,medusa): API to add promotions to campaign ( #7277 )
...
what:
- adds an API to add promotions to campaign
- reworks module to perform atomic actions
2024-05-10 07:53:56 +00:00
Riqwan Thamir
6da2964998
feat(dashboard,core,medusa,promotion): add campaigns UI ( #7269 )
...
* feat(dashboard,core,medusa,promotion): add campaigns UI
* chore: add without campaign choice to promotion ui
* chore: fix builds and types
* chore: fix design issues
* chore: address pr reviews
2024-05-09 10:00:28 +02: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