Shahed Nasser
ddc6cc13a0
docs: add TSDoc for payment processor + generate docs ( #5917 )
...
* added tsdocs for payment processor
* generated reference for payment processor
2023-12-18 14:02:18 +02:00
Frane Polić
1d7888afca
feat(medusa, link-modules): sales channel <> product module link ( #5450 )
...
* feat: sales channel joiner config
* feat: product sales channel link config, SC list method
* feat: migration
* fix: refactor list SC
* refactor: SC repo api
* chore: changeset
* feat: add dedicated FF
* feat: product<> sc join entity
* fix: update case
* fix: add FF on in the repository, fix tests
* fix: assign id when FF is on
* fix: target table
* feat: product service - fetch SC with RQ
* feat: admin list products & SC with isolated product domain
* feat: get admin product
* feat: store endpoints
* fix: remove duplicate import
* fix: remove "name" prop
* feat: refactor
* fix: product seeder if FF is on
* fix: env
* refactor: workflow product handlers to handle remote links
* fix: condition
* fix: use correct method
* fix: build
* wip: update FF
* fix: update FF in the handlers
* chore: migrate to medusav2 FF
* chore: uncomment test
* fix: product factory
* fix: unlinking SC and product
* fix: use module name variable
* refactor: cleanup query definitions
* fix: add constraint
* chore: rename prop
* fix: add hook
* fix: address comments
* fix: temp sc filtering
* fix: use RQ to filter by SC
* fix: add sc to filter to list
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-12-15 13:43:00 +01:00
Philip Korsholm
56b07ed0cf
feat(medusa): Update shipping option price type ( #5895 )
...
**What**
- allow updates to shipping option price type
- Clean up the use of strings in the api validation
Fixes #5824
2023-12-15 10:12:43 +00:00
Riqwan Thamir
2d79eeeecc
feat(medusa): add currency to region responses ( #5857 )
...
Resolves https://github.com/medusajs/medusa/issues/5837
2023-12-14 15:52:54 +00:00
github-actions[bot]
7f5e638f61
chore: Version Packages ( #5754 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 15:27:39 +01:00
Adrien de Peretti
2826605b01
fix(medusa): Order edit confirmation conflict line items update ( #5867 )
...
* fix(medusa): Order edit confirmation conflict line items update
* naming
* Create serious-flowers-provide.md
* another proposal
* fixes
2023-12-14 14:52:27 +01:00
Adrien de Peretti
b5748ab59e
chore(medusa): Prefer logger instead of console.log ( #5846 )
...
* chore(medusa): Prefer logger instead of console.log
* Create nasty-comics-leave.md
* fix imports
2023-12-13 16:09:48 +01:00
Riqwan Thamir
07107f3565
feat(orchestration,core-flows,medusa,product,types,utils): product import/export uses workflows ( #5811 )
2023-12-12 12:09:25 +00:00
Zarar Siddiqi
6f96ced40f
feat(medusa): Emit "discount.created" event when discount is created ( #5816 )
2023-12-12 10:52:57 +01:00
Riqwan Thamir
079f0da83f
feat(core-flows,pricing,medusa,pricing,types,utils): Price List Prices can have their own rules ( #5752 )
...
**What**
- Add price-rules for prices in price-lists
- make rules object optional when creating prices
**Why**
- more price granularity
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-12-12 08:20:21 +00:00
josetr
d9e29e8e45
fix(medusa): Updating note doesn't require loading author relationship ( #5825 )
2023-12-10 19:37:29 +01:00
Adrien de Peretti
85cda7ce37
feat(medusa, core-workflows, product): slightly improve create cart workflow ( #5725 )
2023-12-07 17:05:23 +01:00
Adrien de Peretti
946db51a9b
chore(): Add engines to all package.json if needed ( #5812 )
2023-12-07 17:03:50 +01:00
mortenengel
9b447f99ff
fix(medusa): Product option values in CSV Export ( #5781 )
...
* https://github.com/medusajs/medusa/issues/5712
* fix-5712 added a comment
* fix/5712 - changing to context object
* Create yellow-games-reflect.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-12-06 15:12:05 +01:00
pepijn-vanvlaanderen
a53ae1e29b
feat(medusa): Replace Node Redis with ioredis ( #5656 )
...
* Replaced Node Redis with ioredis
* Update express.ts
2023-12-06 09:10:56 +01:00
Adrien de Peretti
6975eacb33
feat(medusa): Improve add line item to cart perf and transaction management + clustering start command ( #5701 )
2023-12-06 08:53:35 +01:00
Shahed Nasser
892d737c1f
docs: enhance how references are generated ( #5805 )
...
* adjusted configurations
* enhancements to tool and configurations
* change reference in docs
* fixed issue in workflows reference
* added project name
* more optimizations
* fix context error
* added a types reference
* resolved missing types
* fix reference reflection types not having children
* add an expand url parameter
* added new option to the README
* added details about new option
2023-12-05 15:29:41 +02:00
driver005
fd317f1a6b
feat(medusa-cli): add monorepo support command develop ( #5723 )
...
* add monorepo support command develop
* fix formating bug in @medusa/admin package.json
* Create grumpy-bees-laugh.md
---------
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-12-03 14:29:55 +01:00
Oli Juhl
428331a653
feat(medusa): Respond with order when cart is already completed ( #5766 )
2023-12-01 09:17:12 +01:00
Shahed Nasser
f802e2460f
docs: TSDoc + reference of fulfillment service ( #5761 )
2023-11-29 11:58:08 +00:00
Philip Korsholm
e4bfa6c88a
fix(medusa): throw proper error when product doesn't exist w/ key header ( #5745 )
...
**What**
- ensure that an error is raised properly if the requested product doesn't exist and a publishable-key header is set
**Why**
- previously endpoints would hang if the product didn't exist and requests would time out
closes #5724
2023-11-28 10:24:50 +00:00
github-actions[bot]
935e9f0561
chore: Version Packages ( #5673 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-27 16:43:51 +00:00
Riqwan Thamir
2e6b110316
fix(medusa,pricing): Fix migrations for existing databases ( #5730 )
2023-11-27 13:36:56 +00:00
Philip Korsholm
18afe0b9ad
Fix(medusa, inventory, stock-location, types, utils): Modules sdk build query ( #5713 )
...
* remove defaults
* take 2
* works now
* add changeset
* pricing module and pricing service list take null updates
* update handlers
* update product module service with take:null where relevant
* no spread
* note to self:default offset should be 0, not 15
2023-11-27 10:17:42 +00:00
olivermrbl
a982e60a0e
chore: Bump lock-file
2023-11-27 08:28:09 +00:00
Philip Korsholm
aa6c4cbac5
fix(medusa): pricing module list prices return type ( #5715 )
2023-11-26 16:30:21 +00:00
Adrien de Peretti
ddbeed4ea6
chore(workflows, core-flows): Split workflows tooling and definitions ( #5705 )
2023-11-24 13:55:48 +00:00
Riqwan Thamir
fc1ef29ed9
fix(medusa,pricing,types): rules only gets updated/deleted upon passing an explicit object ( #5711 )
2023-11-24 13:54:23 +00:00
Philip Korsholm
712c4496ce
fix(medusa): Update default relations in admin for list-product from module
2023-11-24 12:50:42 +00:00
Kasper Fabricius Kristensen
22bea2724d
fix(medusa): Normalize subscriber paths ( #5703 )
2023-11-23 17:33:51 +00:00
Riqwan Thamir
1e39a95f8a
fix(pricing, medusa): resolve minor pricing-module bugs ( #5685 )
...
* fix region price updates
* pricing migration: include title/name field value migration
* update migration scripts for pricing module
* move file to script utils
* rename file
* rename file
* add changeset
* remove redundant maps
* update migration script
* nit
* remove unnecessary variable
* filter before map
* array function naming cleanup
* chore: address pr reviews
---------
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-11-23 17:11:47 +01:00
Carlos R. L. Rodrigues
9f9db39698
feat(workflows): Workflow DX ( #5607 )
2023-11-22 17:23:39 +00:00
Philip Korsholm
dc5750dd66
feat(medusa,types,workflows,utils,product): PricingModule Integration of PriceLists into Core ( #5536 )
2023-11-21 17:42:37 +00:00
github-actions[bot]
f4085dbede
chore: Version Packages ( #5622 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-21 08:46:09 +00:00
Shahed Nasser
c51dce164d
docs: general fixes to references ( #5653 )
...
* fixed typedoc plugin's escape strategy
* move props comments to the associated property
* regenerate references
2023-11-17 19:36:58 +02:00
Bastien
b3093c3e3d
feat(medusa): Add metadata to Product Category ( #5599 )
...
* ✨ feat(migrations): add metadata column to product_category table in database to store additional information about each product category
* ✨ feat(product-category.ts): add metadata field to ProductCategory model to store additional details
📝 docs(product-category.ts): add documentation for new metadata field in ProductCategory model
* ✨ feat(product-category.ts): add metadata field to ProductCategoryInput type to support additional data
* ✨ feat(ProductCategory.ts): add optional metadata field to ProductCategory model to store additional details
* ✨ feat(product-categories): add metadata field to product categories for additional information storage
📝 docs(product-categories): add documentation for new metadata field in product categories
* ✨ feat(product-categories): add 'metadata' field to default and allowed product category fields for enhanced data tracking
* ✨ feat(product-category.ts): add metadata support to product categories
🔧 refactor(product-category.ts): import setMetadata from utils to handle metadata setting in a more efficient way
* ✨ feat(models): add metadata field to AdminPostProductCategoriesCategoryReq and AdminPostProductCategoriesReq models to store additional information
* 📝 docs(api-reference): add metadata field to ProductCategory schema in both admin and store specs
🔧 fix(api-reference): make metadata field required in ProductCategory schema to ensure data consistency
* Create nine-fishes-matter.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-11-16 20:37:02 +01:00
Kasper Fabricius Kristensen
57573ed4d7
feat(medusa): Alternative Subscriber API and new ScheduledJobs API ( #5624 )
...
* workking subscribers API
* progress
* update registrar args
* cleanup
* progress
* progress
* tests
* rename to loaders
* rm build artifacts
* improve validation and change jobs args to object
* spread context on subscribe
* add changeset
* address comments
* fix spelling of warning and add warning on Redis not enabled for Scheduled Jobs
* fix tests
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-11-16 20:36:02 +01:00
Riqwan Thamir
1772e80ed1
feat(pricing,types): price list API + price calculations with price lists ( #5498 )
...
**what:**
**PriceList Service APIs:**
- createPriceList
- updatePriceList
- addPriceListPrices
- removePriceListRules
- setPriceListRules
- deletePriceList
- listPriceLists
- listAndCountPriceLists
**Price Calculations**
- Returns prices with price list prices
- Returns a new shape with calculated and original prices
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-11-15 20:24:29 +00:00
Kasper Fabricius Kristensen
2947f57db1
fix(medusa): Update wrapHandler so it also passes errors in non-async route handlers to the errorHandler middleware ( #5597 )
...
* fix: Align @types/react versions across UI packages
* update codeowners
* fix: Update wrapHandler so it also catches errors for non-async route handlers
* rm chaining
* align wrapHandler in utils and add deprecation note
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-11-15 19:41:10 +01:00
Kasper Fabricius Kristensen
52800710a2
fix(medusa): Error handling middleware should be applied when no config is exported ( #5634 )
...
**What**
- Fixes an issue where the default errorHandler middleware was not applied if the user did not have a `middlewares.ts` file.
- Updates the type of `MiddlewaresConfig` so `middlewares` is now optional, as people might want to only set a bodyParser config for a matcher and not provide any additional middleware.
2023-11-14 20:48:10 +00:00
chemicalkosek
7226f5b699
fix(medusa): Add missing promiseAll import ( #5635 )
2023-11-14 19:37:00 +01:00
Shahed Nasser
b1826a8e01
chore: add missing error responses to currency OAS ( #5627 )
2023-11-14 10:18:37 +02:00
Riqwan Thamir
cedab58339
feat(workflows,medusa,utils): add medusa v2 feature flag ( #5603 )
...
* chore: add medusa v2 feature flag
* chore: cleanup more FF
* chore: cleanup workflows FF
* chore: add comments on broken specs
* chore: added check for package registration
* chore: reenable workflows FF for create order workflow
* chore: disable FF on test cli db
* chore: hide loader validation behind FF
* chore: use medusa v2 enabled
* chore: register feature flag router in use-db
* chore: change to minro
2023-11-13 16:18:05 +01:00
github-actions[bot]
71d59d2c81
chore: Version Packages ( #5527 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-10 10:28:21 +01:00
adamlamaa
203e1fccb4
feat(medusa): Include Product Collections in Seed command ( #5510 )
2023-11-10 08:55:08 +01:00
Adrien de Peretti
4ad66c1795
fix(medusa): Load legacy modules entities ( #5594 )
2023-11-10 08:51:55 +01:00
Shahed Nasser
91615f9c45
chore: improve JS Client TSDoc comments ( #5582 )
...
* add oas schema to tsdoc parser
* add tsdoc (part 1)
* Finished tsdoc in js client
* general fixes
* added tsdoc in core medusa package
* parse schema tags in model files
* added maxlevel option
* added more tsdoc
* added tsdoc in core
* added TSDoc in core package
* generated client types
* support featureFlag and expandable tags
* added support for resource feature flag note
* fix api ignore plugin
* added eslint plugin
* support feature flag and expandable badges
* adjusted overview page + generated reference
* revert generated files
* added changeset
* add details about new typedoc options
* fix broken link
2023-11-09 12:51:17 +02:00
Kasper Fabricius Kristensen
c68da6d685
feat(medusa): API routes body parser config ( #5537 )
2023-11-09 09:10:45 +01:00
Adrien de Peretti
f90ba02087
feat(utils): Introduce promiseAll util ( #5543 )
2023-11-08 08:48:48 +01:00
Shahed Nasser
2576a0fd23
docs(api-reference): added local server to list of servers ( #5572 )
...
* docs(api-reference): added local server to list of servers
* fix publishable api key route
2023-11-06 17:30:56 +02:00