Adrien de Peretti
a45da9215d
fix(medusa, modules-sdk, modules): Module loading missing dependencies + remote query reference issue ( #5468 )
2023-10-26 20:24:38 +02:00
Oli Juhl
ebba93e03d
fix(medusa): Revert status type in API ( #5428 )
2023-10-26 08:11:01 +02:00
Adrien de Peretti
e64823d1b9
fix(medusa): totals calculation with gift card ( #5075 )
...
**What**
Resolve potential discrepency between what is calculated in the `createFromCart` and the cart/order totals calculation.
When the giftCard is taxable then the following calculation is applied
```ts
cart.subtotal + cart.shipping_total - cart.discount_total
```
otherwise
```ts
cart.subtotal +
cart.shipping_total +
cart.tax_total -
cart.discount_total
```
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-10-25 10:29:30 +00:00
Shahed Nasser
c67d490db3
chore(oas): Fix OAS related to JWT authentication ( #5448 )
...
* chore(oas): Fix OAS related to JWT authentication
* generate openapi spec files
* remove L option in curl examples
2023-10-23 11:48:02 +03:00
Shahed Nasser
8bc902fb0f
chore(oas): update order OAS schema to include new fields ( #5436 )
2023-10-20 18:34:26 +03:00
Shahed Nasser
c28935b4e8
docs: update endpoints to use file-routing approach ( #5397 )
...
- Move the original guides for creating endpoints and middlewares to sub-sections in the Endpoints category.
- Replace existing guides for endpoints and middlewares with the new approach.
- Update all endpoints-related snippets across docs to use this new approach.
2023-10-19 15:56:26 +00:00
github-actions[bot]
c0d74bc682
chore: Version Packages ( #5340 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-19 15:58:48 +02:00
Florent Quienne
c1cabac721
fix(medusa): Dont set cache if ignore_cache option is true ( #5408 )
...
* Dont 'set' in cache if ignore_cache option is true
* Create big-countries-drive.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-10-19 15:43:17 +02:00
Frane Polić
aba9ded2a3
feat(workflows): update product workflow ( #4982 )
...
**What**
- added "update product" workflow
Co-authored-by: Riqwan Thamir <5105988+riqwan@users.noreply.github.com >
2023-10-19 12:02:40 +00:00
pepijn-vanvlaanderen
0d7c5543dd
feat(medusa): Add item and shipping tax totals to order ( #5385 )
...
* Expose item tax total and shipping tax total in order totals
* Added changeset
* Fixes to tests
* Fixes to integration tests
* Fixes to integration tests
* Fixes to integration tests
* Change changeset to patch
2023-10-19 09:57:37 +02:00
Kasper Fabricius Kristensen
ddff919655
feat(medusa): support file based routing ( #5365 )
...
* feat(medusa): Implement file base routing mechanism
* cleanup
* cleanup and improvements
* improve tests
* update tests
* Create tame-trains-grin.md
* fix tests, move fixtures
* fix tests
* lint
* init work
* work on supported methods
* add config generator
* progress
* progress
* rework middleware registartion
* progress
* progress
* export MiddlewareConfig type
* add type extensions
* work on improving logs
* work on loggers
* apply cors, json parsing, and admin authentication per default
* address feedback
* rm changeset
---------
Co-authored-by: adrien2p <adrien.deperetti@gmail.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-10-18 16:26:27 +02:00
Shahed Nasser
49ed7de752
chore: fix OAS for User Login JWT ( #5403 )
2023-10-18 17:12:30 +03:00
Oli Juhl
a0963f0edf
fix(admin-ui): Remove t() on product.status update ( #5394 )
...
* fix(admin-ui): Remove t() on product.status update
* Create tidy-games-drum.md
2023-10-18 13:50:47 +02:00
Adrien de Peretti
69cf7215f1
fix(medusa, types): Mark properties as nullable to reflect their correct types ( #5281 )
...
* fix(medusa, types): Mark properties as nullable to reflect their correct types
* Create chilly-pugs-doubt.md
* fix column type to prevent inference
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-10-15 18:10:36 +02:00
Philip Korsholm
ca6e7dc350
feat(medusa): add pricing integration feature flag ( #5287 )
2023-10-13 13:35:06 +00:00
Didier Guyon
ec27d02d99
fix(medusa): Filter statement in partitionItems_ method of Fulfillment Service ( #5247 )
...
* Fixed filter statement in partitionItems_ method of Fulfillment Service
* Fix custom batch job activity card
* Added changeset
* Revert unrelated change
---------
Co-authored-by: Pepijn van Vlaanderen <pepijn@webbers.com >
2023-10-12 10:55:07 -07:00
Shahed Nasser
cacc443fc2
chore(oas): add note about returned fields in list product variants endpoint ( #5360 )
2023-10-12 14:55:13 +03:00
Shahed Nasser
c02fdeb789
chore(oas): fix typo in product variant's OAS ( #5352 )
...
* chore(oas): fix typo in product variant's OAS
* fix oas error
2023-10-12 14:20:08 +03:00
Sebastian Rindom
66413d094e
feat: move create inventory to @medusajs/workflows ( #5301 )
...
**Why**
- We have some workflow-like flows in @medusajs/medusa. These should be moved over to the workflows package.
- Inventory Items <> Variant currently assume a 1-1 mapping. There should be support for a many-to-many mapping.
**What**
- PR introduces a feature flag for supporting many-to-many mappings for inventory and variants.
- Deletes legacy transaction handler in @medusajs/medusa.
- Adjusts existing createInventoryItems handler to remove dependency on variant data.
**Unkowns**
~~1. Couldn't find an existing test for the CreateProduct workflow. It should be tested that this still works as expected.~~
2. Have removed transaction managers as we should move to handling consistency through orchestration tooling. Are we ready for that?
2023-10-11 18:01:56 +00:00
github-actions[bot]
daea35fe73
chore(docs): Generated JS Client Reference ( #5334 )
...
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request ) GitHub action
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2023-10-10 17:47:07 +00:00
Shahed Nasser
4ada22d656
chore: fix OAS of batch delete product prices endpoint ( #5318 )
...
* chore: fix OAS of batch delete product prices endpoint
* fix oas check
2023-10-09 13:13:00 +03:00
github-actions[bot]
35d5fbe8cc
chore: Version Packages ( #5272 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-06 08:41:24 -07:00
Kasper Fabricius Kristensen
0f34e0f381
feat(admin-ui, medusa, medusa-react, medusa-js): Price List UI revamp ( #5233 )
...
* progress on cleanup
* rm forceMount
* close modal on succesful submit
* fix: invalidate price list query on useAdminCreatePriceListPrices
* sync translation keys
* add last translations
* sync translation keys
* improve tabbing between cells
* add comment
* fix: remove double variant, set collision boundary on column dropdown
* add widgets
* update lock file
* decrease details info size, and add missing status update function
* sync translation keys
* add snapshots and remove min/max
* add missing filter menu for customer groups table
* add translation keys for filter menu
* rm unused code
* Create tall-apricots-run.md
* Update tall-apricots-run.md
* fix: discard invalid paste values
* add translation keys
* bump snapshots + minor fixes
* rm console.log
* bump snapshots
* bump ui packages, and add missing tax inclusive display in New form
* update lock file
* fix filter menu
* update snapshot
* update ui package and fix sub menu position
---------
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-10-06 08:22:25 -07:00
chemicalkosek
ea8d9e30e7
fix(medusa): Send INSUFFICIENT_INVENTORY code with error ( #5265 )
2023-10-04 15:41:48 -07:00
Carlos R. L. Rodrigues
130cbc1f43
feat(*): Modules export entities and fields ( #5242 )
2023-10-03 14:20:43 -07:00
Adrien de Peretti
f9264c479e
fix(medusa): Accept invite should not require first/last name ( #5279 )
...
**What**
Makes the first and last name optional when accepting an invite since those column can be nullable
2023-10-03 14:30:27 +00:00
Philip Korsholm
90e24c593f
Fix/pricing update fixes ( #5275 )
...
* fix for merging line items and quantity prices
* add changeset
* fix draft order unit_price calculation
* update test to reflect only quantity change
* fix unit tests
* update conditional
2023-10-03 11:20:49 +02:00
Shahed Nasser
22130ecb63
oas: update examples and security tags ( #5256 )
...
- Change cURL examples to use `x-medusa-access-token` instead of bearer
- Add `jwt_token` to `securitySchemes` and update existing `api_token`.
2023-09-29 19:43:57 +00:00
github-actions[bot]
dab8a82cc1
chore: Version Packages ( #5171 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-29 14:17:21 -04:00
Philip Korsholm
2b91049f58
fix(medusa): quantity prices for line item updates ( #5137 )
...
* initial code push
* update metadata and only merge if the existing line item allows merging
* update should_merge check
* undo changes to taxrate service
* update results with unit pricing corresponding to the db values after update
* add should_merge property to line_item creation
* add should_merge property to line_item creation
* fix unit tests
* undo adding "should_merge" to create-line-item
* undo change to "addOrUpdateLineItem"
* :wqh_merge from generate method
* undo changes to unit tests
* revert to adding pricing in updateLineItem method
* update cart service test
* Create funny-radios-juggle.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-28 14:26:58 +02:00
Adrien de Peretti
c68ba63c1b
fix(medusa): In product isolation, throw if product not found ( #5224 )
...
**What**
Throw not found error if product does not exists
2023-09-27 12:41:50 +00:00
Carlos R. L. Rodrigues
b3f1135fba
chore(medusa): link modules as medusa dependency ( #5208 )
2023-09-26 08:20:29 -04:00
Shahed Nasser
63aea62d7a
docs: improve tailwind configuration ( #5215 )
2023-09-26 15:08:30 +03:00
Adrien de Peretti
240c439beb
fix(medusa): Product model before insert hook ( #5200 )
...
**What**
When the id is provided, the rest of the hook should still apply. At the moment, when the id is provided the hook is skipped
2023-09-26 09:48:26 +00:00
David Preininger
2caff2efc7
feat(medusa): Authentication overhaul ( #4064 )
...
* implemented bearer auth
* changed naming strat
* changed session auth to not use jwt
* typo
* changed auth header prefix for admin api token auth
* fixed supporting functions to work with new session type
* removed database calls for bearer auth improving performance
* removed unused deps
* changed auth in tests
* added integration tests
* Accepted suggested change
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* Typo
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* more typos
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* proper formatting
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* removed endregion
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* removed startregion
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
* fixed admin JWT integration test
* added more fixes to integration tests
* Update OAS
* Create fluffy-donkeys-hope.md
* created API reference for new auth
* implemented getToken in medusa-js
* Apply suggestions from code review
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
* Apply suggestions from code review
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
* deleted files which should be autogenerated
* Update fluffy-donkeys-hope.md
* JSDoc update
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* added missing route exports
* implemented runtime domain safety in jwt token manager
* fixed jwt manager
* lint get-token files
* Update fluffy-donkeys-hope.md
* Revert "deleted files which should be autogenerated"
This reverts commit cd5e86623b822e6a6ac37322b952143ccc493df9.
* Revert "Apply suggestions from code review"
This reverts commit f02f07ce58fd9fcc2dfc80cadbb9df2665108d65.
* Revert "created API reference for new auth"
This reverts commit c9eafbb36453f5cf8047c79e94f470cb2d023c7d.
* renamed header for sending api access tokens
* medusa-js - changed apiKey header
---------
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: olivermrbl <oliver@mrbltech.com >
Co-authored-by: Shahed Nasser <shahednasser@gmail.com >
2023-09-25 13:57:44 -04:00
Adrien de Peretti
f285a67123
feat(medusa): Remove create product unnecessary input config workflow ( #5196 )
...
* feat(medusa): Remove create product unnecessary input config workflow
* Create sharp-pets-type.md
2023-09-25 10:21:21 -04:00
Adrien de Peretti
f1512605d2
feat(medusa): Admin list product with product isolated module ( #5046 )
...
**What**
First iteration:
Admin list products return everything but does not include proper filtering by discount id or price list id. Also, same as the previous pr, the fields/expand is not included
depends on https://github.com/medusajs/medusa/pull/5130
2023-09-22 11:14:23 +00:00
Adrien de Peretti
5f76b967d9
feat(medusa): Admin get product with isolated module ( #5054 )
...
* feat(medusa): Admin get product with isolated module
* Create pretty-dryers-prove.md
* use object instead of string
* fix merge
* fix
* fix
2023-09-22 12:43:23 +02:00
Adrien de Peretti
dfa5d041c9
feat(medusa): Add product isolation FF to update cart ( #5168 )
...
**What**
Update cart must use the remote query when being in product isolation mode.
This pr is a first iteration that aims to quickly make compatible the end point in isolation. In a future iteration, this end point will be migrated to a workflow
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-09-22 08:49:59 +00:00
Adrien de Peretti
19c5d5ba36
feat(medusa): Migrate remote query usage in store product domain to use an object ( #5131 )
...
* feat(medusa): Migrate remote query usage in store product domain to use an object
* fix profile level
2023-09-21 17:29:49 +02:00
Adrien de Peretti
202049f8aa
fix(medusa, workflows): Create product workflow with Isolated modules + module registration ( #5081 )
...
* fix(medusa, workflows): Isolated modules
* Create polite-kangaroos-rhyme.md
* finalise
* naming
2023-09-21 17:10:14 +02:00
github-actions[bot]
ed2c31d8e2
chore: Version Packages ( #5157 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-21 08:57:25 +02:00
Adrien de Peretti
6c808dd6d9
fix(medusa): Handle variant error during line item generation ( #5145 )
...
* fix(medusa): Handle variant error during line item generation
* improve and tests
* cleanup
* update messages
* Create few-masks-draw.md
* change error type
* fix unit tests
2023-09-20 10:19:02 +02:00
github-actions[bot]
223a4a4cd9
chore: Version Packages ( #5002 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-15 17:09:34 +02:00
Adrien de Peretti
92237db7fe
fix(medusa): Money amount detached migration ( #5079 )
2023-09-15 13:51:19 +02:00
Adrien de Peretti
60360d2fd2
fix(medusa): Fix order service linting issues ( #5071 )
...
* style(medusa): Fix order service linting issues
* Create short-ligers-pull.md
2023-09-15 10:58:30 +02:00
Oli Juhl
dc94f053d3
fix(medusa): Support fields param in list-variants ( #5053 )
...
* fix(medusa): Support fields param in list-variants
* Create cuddly-pigs-tease.md
* address pr comments
2023-09-15 09:08:04 +02:00
Adrien de Peretti
05a32683a3
feat(medusa): Get product with isolated product module ( #5010 )
2023-09-13 14:39:59 +02:00
Adrien de Peretti
4fa675ec25
chore(medusa, modules-sdk, types): Refactor modules loading from medusa ( #5018 )
2023-09-13 14:26:54 +02:00
Carlos R. L. Rodrigues
5362bfc348
feat(medusa): Drop FKs to isolate products ( #5042 )
...
What:
Remove FKs related to product domain tables
2023-09-13 12:05:37 +00:00