Commit Graph

8712 Commits

Author SHA1 Message Date
github-actions[bot] 623cf05fab chore(docs): Generated References (automated) (#13206)
Generated the following references:
- `api_key_models`
- `auth_models`
- `cart_models`
- `core_flows`
- `currency_models`
- `customer_models`
- `fulfillment_models`
- `inventory_next_models`
- `js_sdk`
- `order`
- `order_models`
- `payment_models`
- `pricing_models`
- `product`
- `product_models`
- `promotion`
- `promotion_models`
- `region_models`
- `sales_channel_models`
- `stock_location_next_models`
- `store_models`
- `tax_models`
- `user_models`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-08-14 15:43:48 +00:00
github-actions[bot] f0f3847f27 chore(docs): Generated + Updated UI Reference (automated) (#13205)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-08-14 18:32:53 +03:00
William Bouchard 34c3c14e0a chore(types, api): support shipping option type api endpoints (#13191)
* chore(types, api): support shipping option type api endpoints

* core flows

* api

* typos

* compiler errors

* integration tests

* remove metadata

* changeset

* modify test

* upsert

* change remote query

* minor to patch

* description optional

* description optional

* woops my bad

* my bad again

---------

Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
2025-08-14 10:15:51 -04:00
github-actions[bot] aa27240b7f chore(docs): Update version in documentation (automated) (#13204)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-08-14 16:30:37 +03:00
github-actions[bot] d73890d656 chore(docs): Generated API Reference (automated) (#13207)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2025-08-14 16:30:33 +03:00
olivermrbl 61a25dd073 chore: Release 2025-08-14 13:28:04 +02:00
github-actions[bot] 01fa17d2ad chore: Version Packages (#13045)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-08-14 13:23:45 +02:00
Aditya Erlangga Wibowo ae12623ca6 fix(types): add option_id field to FilterableProductOptionValueProps (#13085)
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-08-14 11:49:29 +02:00
Oli Juhl f4ae615a3e fix(tax): Use correct rule reference for shipping (#13195)
* fix(tax): Use correct rule reference

* fix tests
2025-08-13 21:06:19 +02:00
Carlos R. L. Rodrigues 356b2862d2 chore(core-flows): import zod (#13197) 2025-08-13 15:12:14 -03:00
Shahed Nasser 96f4ed90ad docs: integrate reo.dev (#13192) 2025-08-13 11:53:01 +03:00
William Bouchard f1da73cb58 fix(types): remove order_id in apis that do not handle it (#13185)
* fix(types): remove order_id in apis that do not handle it

* changeset

---------

Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
2025-08-11 20:56:57 +02:00
Chirag Singh c2ba01acd6 Update page.mdx (#13180)
Fixed a typo:  "percision" to "precision"
2025-08-11 06:47:36 +00:00
Stevche Radevski 2c1fe4cfe4 fix: Allow getting the token from the SDK client (#13164) 2025-08-08 08:42:44 +02:00
Riqwan Thamir 224eaedf5c fix(dashboard,promotion): percentage promotions + set currency code on percentage promotions (#13161) 2025-08-07 13:07:41 +02:00
Carlos R. L. Rodrigues 9725bff25d fix(index): logical operators (#13137) 2025-08-07 07:34:50 -03:00
Carlos R. L. Rodrigues a52708769d chore(util): avoid promotion value precision limit (#13145) 2025-08-06 15:49:10 -03:00
Carlos R. L. Rodrigues b1cba9fdeb fix(workflow-engine-inmemory): fix cron job schedule (#13151) 2025-08-06 11:14:44 -03:00
William Bouchard b7083b9f0f fix(dashboard): variants disappearing when removing an option on product creation (#13150)
* fix(dashboard): variants disappearing when removing an option on product creation

* error border on option without values

---------

Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
2025-08-06 08:53:04 -04:00
William Bouchard acf6bbc2ec chore(core-flows): throw error on invalid promo code (#13140)
* chore(core-flows): throw error on invalid promo code

* add changelog

* better error handling in test

---------

Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2025-08-05 09:01:41 -04:00
Oli Juhl ee0b873f82 chore: Update CODEOWNERS 2025-08-05 13:21:52 +02:00
Mikkel Lindstrøm Hansen 93d7a93b28 Made in operator work as In insted of equal logic (#13078)
Changed the In operator to actually work like an In instead of being same logic as Equals. This means that in promotions you can add a rule to apply when a product is in a category or multiple different. Before the logic had to match all the products categories to apply, which doesnt really make sense when you have nested category structure on products. The logic also applies to tags where you can make a rule apply based on a tag before it also had to match all tags on a product to apply.

Issue:

https://github.com/medusajs/medusa/issues/12669

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2025-08-05 11:10:29 +00:00
Oli Juhl 02dd83f59a fix(pricing): Calculate prices with multiple rule values (#13079) 2025-08-05 13:04:55 +02:00
William Bouchard 8616248adc chore: add willbouch to teams.yml (#13141)
Co-authored-by: william bouchard <williambouchard@williams-MacBook-Pro.local>
2025-08-04 13:56:53 -04:00
Nicklas Gellner 0bb9a20c47 Update Integrations link in README
New link to www
2025-08-04 14:32:16 +02:00
Shahed Nasser 7c85ede384 docs: generate invoice tutorial (#13077)
* docs: generate invoice tutorial

* fix vale error

* add missing icon

* fix sidebar

* update date
2025-08-04 12:42:47 +03:00
Aldo Román 55d0879576 feat: Add MCP instructions for Claude Code (#13134)
Fixes #13135


Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2025-08-04 06:57:53 +00:00
Frane Polić 0452eba20b chore(dashboard): add missing US states (#13094)
* chore(dashboard): add missing US states

* fix: add missing territiories
2025-08-03 19:17:12 +02:00
scherddel 51d4751d95 fix(utils): Fix on precision for high quantities for items when promotion is applied (#13131)
* Fix on precision for high quantities for items when promotion is applied

* Fix on precision for high quantities for items when promotion is applied
2025-08-03 19:16:16 +02:00
Shahed Nasser 89886ba518 docs: general updates to documentation pages (#13128) 2025-08-01 18:59:46 +03:00
Shahed Nasser 522fc12d7a docs: change from detecting version to since tag (#13127)
* update everything from version to since

* update events

* regenerate oas
2025-08-01 18:22:42 +03:00
Shahed Nasser 57ad8fc755 chore: use since instead of version tag in TSDocs (#13126) 2025-08-01 17:52:52 +03:00
Shahed Nasser f9ca2691be docs: document the fetchStream method of the JS SDK (#13125) 2025-08-01 17:47:26 +03:00
Shahed Nasser 6ec530b2a5 docs: add buffer example in workflows + tip for type error in admin global variables (#13124) 2025-08-01 17:15:47 +03:00
Shahed Nasser dd9a644272 docs: added guide on sending invite user emails + updates to reset password guide (#13122)
* docs: added guide on sending invite user emails + updates to reset password guide

* fix vale error
2025-08-01 16:17:43 +03:00
scherddel 9766570827 fix(types,utils,promotion): Move from total to original_total to resolve edge case for adjustments calculation (#13106)
* Move from total to original_total to resolve edge case in adjustment calculation

* Added changeset

* Added test case for correction

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-08-01 12:52:04 +02:00
Shahed Nasser b37a87c355 docs: fix code block titles not showing in UI docs (#13119) 2025-08-01 13:30:46 +03:00
Shahed Nasser 714087ca5a docs: fix search not opening sometimes (#13118) 2025-08-01 12:29:44 +03:00
Shahed Nasser b0d0e7b1a6 docs: updates to nested workflow docs (#13117) 2025-08-01 11:54:41 +03:00
Shahed Nasser db60ec5a1a chore: add links to package.json (#13100) 2025-08-01 10:59:47 +03:00
Shahed Nasser 15692bfd3f docs: add more totals to retrieve cart and totals guides (#13110) 2025-08-01 10:51:31 +03:00
Shahed Nasser db0eb0f035 chore: fix example in createProductsWorkflow TSDocs (#13112) 2025-08-01 10:50:51 +03:00
tehaulp 881c8a4969 feat: added pacific franc currency (#13086) 2025-08-01 09:32:50 +02:00
Frane Polić 7814710610 chore(ui): sync Figma resources (#13088)
**What**
- sync latest Figma icons and ui presets
2025-08-01 06:54:38 +00:00
Shahed Nasser 7bf8ecc013 docs: update list of resources in module containers + conventions on loaders (#13107) 2025-07-31 18:14:39 +03:00
Shahed Nasser fcb8036412 docs: add links to technical guides in user guides (#13108) 2025-07-31 18:14:29 +03:00
Shahed Nasser 54d9edc1ab docs: improve instructions to install Medusa UI in standalone projects (#13104) 2025-07-31 16:04:20 +03:00
Carlos R. L. Rodrigues f6736d9661 fix(core-flows): refresh payment collection (#13103) 2025-07-31 09:06:20 -03:00
Shahed Nasser a48063ec26 docs: add link to manage metadata section in OAS and API reference (#13102) 2025-07-31 14:42:14 +03:00
scherddel 1bdf602f1c This fixes the discount_ calculation logic and promotion tax inclusiveness calculation (#12960)
* This fixes the discount_ calculation logic

* This fixes the adjustment to be handled as a subtotal value in every calculation and applies the tax inclusive logic on the promotion value itself

* Added some testcases and revoked some changes to improve testing output

* Fixed a test case based on feedback

* Corrected promotion/admin test cases

* Corrected cart/store test case

* Improved cart/store test cases for more robust promotion testing considering tax inclusion flags

* Remove unnessary changes as adjustments now automatically are subtotals and therefore the tax inclusive flag does not need to be applied again

* Remove adjustments->is_tax_inclusive usage everywhere

* Migration script to remove is_tax_inclusive in cart line item adjustment

* Forgot to adjust one more testcase

* Corrections based on fPolic feedback

* Refactored PR to consider feedback from oliver

* Added more testcases for promotion in cart

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2025-07-31 13:27:43 +02:00