Commit Graph

8089 Commits

Author SHA1 Message Date
Shahed Nasser 7c76ee24cb chore: fix documentation links in TSDocs (#10511) 2024-12-09 18:52:02 +02:00
Riqwan Thamir a04238a7f1 fix(payment): ensure that payment error is captured in logger (#10506)
what:

- when an error occurs upon retrieving a provider, log the original error through the logger

Helps https://github.com/medusajs/medusa/issues/10500 in debugging.
2024-12-09 16:44:32 +00:00
Riqwan Thamir f8f5d57c7c chore(types): add price types for shipping option endpoints (#10509)
what:

- adds missing price types for shipping options
2024-12-09 16:30:31 +00:00
github-actions[bot] 9534751b5c chore(docs): Generated References (automated) (#10508)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2024-12-09 15:27:01 +02:00
Shahed Nasser 866cabf384 docs-util: normalize RelationNullableModifier in model references (#10505) 2024-12-09 15:11:45 +02:00
Shahed Nasser f4b45b8080 docs: fix imports across docs 2024-12-09 15:10:38 +02:00
Shahed Nasser 8dedb97e40 docs: fix links to steps in workflow references (#10503) 2024-12-09 14:55:35 +02:00
Shahed Nasser 0ae98c51eb docs: revise main docs outline (#10502) 2024-12-09 13:54:42 +02:00
Shahed Nasser c8cb9b5c1a fix(medusa): add query type argument to RequestWithContext (#10469) 2024-12-09 11:43:52 +02:00
Kasper Fabricius Kristensen a1a1e0e789 feat(dashboard): SO cart item total rules UI (#10386) 2024-12-09 09:44:11 +01:00
Riqwan Thamir 9e797dc3d2 feat(core-flows, types): update shipping methods upon cart ops (#10382)
* feat(core-flows,framework,medusa): list shipping options pass in cart as pricing context

* chore: add test for shipping options returning free shipping

* feat(core-flows, types): update shipping methods upon cart ops

* chore: fix specs

* chore: fix bugs + specs

* Update update-shipping-methods.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* Update mutations.ts

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>

* chore: undo refresh changes

* chore: merge with latest

* chore: address PR comments

* chore: fix conflicts

* chore: fix specs

* chore: address reviews

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2024-12-08 14:06:50 +01:00
Riqwan Thamir f95c4e240c fix(promotion, core-flows): updating cart with removed promotion removes adjustments (#10489) 2024-12-08 13:13:31 +01:00
Kasper Fabricius Kristensen 864f53011b fix(dashboard,types): Fix TS errors (#10457)
**What**
- Fixes TS erros in dashboard project
- Updates incorrect HTTP Invite types
- Fixes incorrectly formatted dates in dashboard
2024-12-08 11:51:13 +00:00
Hirotaka Mizutani 55f5ce4690 feat: added Japanese translation (#10379)
* feat: add Japanese language support

* feat: add missing required keys for Japanese translation
2024-12-07 21:52:15 +08:00
Shahed Nasser c247f5bca1 docs: fix self hosting deployments not showing (#10486) 2024-12-07 00:10:52 +02:00
Shahed Nasser e7e36f39fb docs: support detecting broken link cross-projects (#10483)
* docs: support detecting broken link cross-projects

* remove double separators
2024-12-06 19:54:46 +02:00
Shahed Nasser a76b533604 docs: revise last chapters of customizations (#10480) 2024-12-06 17:56:27 +02:00
Shahed Nasser 21b0e0c26b docs: revise admin customization pages (#10466)
* docs: revise admin customization pages

* fix prerequisites link

* apply lint
2024-12-06 16:34:02 +02:00
Adrien de Peretti 0a077d48e1 chore(workflow-engine): Migrate to DML (#10477)
RESOLVES FRMW-2832
RESOLVES FRMW-2833

**What**
Migrate workflow engines to DML. Alos includes and update to the linkable generation which now takes into account id and primary keys to generate the linkable instead of only primary keys
2024-12-06 13:23:07 +00:00
Carlos R. L. Rodrigues b0448a7c35 chore: locking-postgres provider dml (#10478) 2024-12-06 10:14:14 -03:00
Carlos R. L. Rodrigues f65a3cc06d fix(utils): avoid optional properties on graphql generated file (#10476)
FIXES: SUP-367
2024-12-06 12:16:02 +00:00
Harminder Virk f3c91c908a refactor: migrate store module to DML (#10467) 2024-12-06 17:38:15 +05:30
Kasper Fabricius Kristensen 7e04091b49 fix(dashboard): Prevent sending off empty string as handle for product category (#10473) 2024-12-06 12:33:18 +01:00
Shahed Nasser abdd4c9e99 docs-util: support new query type argument (#10468)
* add support for second query argument

* more fixes
2024-12-06 12:21:19 +02:00
Shahed Nasser e3459b1f2f docs: fix links in extend product guide (#10472)
* docs: fix links in extend product guide

* fix links
2024-12-06 11:32:57 +02:00
Shahed Nasser 597bffaab3 fix(framework): add missing query type argument in request types (#10456)
* fix(framework): add missing query type argument in request types

* fix types
2024-12-06 09:53:34 +02:00
Stevche Radevski bed00e154d feat(js-sdk): Make credentials configurable in SDK (#10464) 2024-12-06 15:39:35 +08:00
Carlos R. L. Rodrigues 90ae187e09 fix(workflows-sdk): name for when/then step (#10459) 2024-12-05 15:47:42 -03:00
Sebastian Rindom 7ff3f15d6d fix(medusa): calculate sales channel availability correctly for variants (#10448)
* fix: calculate inventory quantities based on sales channel and locations

* Update packages/medusa/src/api/utils/middlewares/products/variant-inventory-quantity.ts

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

* Update packages/medusa/src/api/utils/middlewares/products/variant-inventory-quantity.ts

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

* Update packages/core/core-flows/src/product/steps/get-variant-availability.ts

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

* fix: crk

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-12-05 19:29:47 +01:00
Adrien de Peretti b160fd3cbf fix(utils): DML one to one definition (#10415)
RESOLVES FRMW-2819

**What**
Fix one to one definition.
2024-12-05 16:55:57 +00:00
Harminder Virk 70d77ea22f refactor: migrate api key module to DML (#10450)
Fixes: FRMW-2827
2024-12-05 16:37:54 +00:00
Adrien de Peretti 559fc6587a fix(): Deleted default sales channel should be prevented (#10193)
FIXES CMRC-722

**What**
- It should not be allowed to delete a default sales channel
- The admin does not allow to delete a sales channel use as the default for the store
2024-12-05 16:19:45 +00:00
Kasper Fabricius Kristensen 2b455b15a6 fix(dashboard): Cleanup unsafe accesses to possibly undefined values in order timeline (#10454)
**What**
- Fixes an unsafe access to a field that may be undefined if an order was created through a custom workflow.
2024-12-05 15:51:35 +00:00
Salvador Girones Gil a7ad809520 fix(core/js-sdk) Add the credentials field in the fetch() only if supported (#10446)
fixes https://github.com/medusajs/nextjs-starter-medusa/issues/421

The root cause of the issue is that credentials is not supported by CloudFlare workers.
2024-12-05 14:10:40 +00:00
Kasper Fabricius Kristensen 16663ec813 fix(dashboard,types): Add missing Metadata form for Region domain and fix payload types (#10449) 2024-12-05 14:03:29 +00:00
Harminder Virk be15240909 refactor: migrate sales-channel to DML (#10452)
Fixes: FRMW-2830
2024-12-05 14:02:08 +00:00
Harminder Virk 0a16efa426 refactor: migrate cart module to DML (#10385)
FIXES: FRMW-2815

This PR has no breaking changes
2024-12-05 12:30:50 +00:00
Shahed Nasser 7013c37fda docs: revise query linked records (#10447) 2024-12-05 13:12:21 +02:00
Shahed Nasser 9690e44280 docs: revise extend create product (#10444)
* docs: revise extend create product

* change sidebar title
2024-12-05 12:41:12 +02:00
Adrien de Peretti 90d7f4ff39 chore(utils): DML#hasOne allow mappedBy to not be defined (#10442)
RESOLVES FRMW-2826

**What**
We have many places where we define only one to one on one side of the relation. In that case it is a one to one that does not mapped by to the other side relation since it is not defined. This pr allow to create a one to one without mapped by. In order to remove breaking changes, in that case we ask the user to explicitly define the `mappedBy` as `undefined`
2024-12-05 09:31:38 +00:00
Harminder Virk 223bcff379 feat: add support for defining hasOne with FK (#10441) 2024-12-05 14:15:13 +05:30
Shahed Nasser 1cb885d566 docs: generate references manually (#10438) 2024-12-04 21:37:07 +02:00
github-actions[bot] c9eeaebdd9 chore(docs): Updated API Reference (automated) (#10437)
* chore(docs): Generated API Reference (automated)

* fixes

---------

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-12-04 20:31:03 +02:00
github-actions[bot] 29e463e8c3 chore(docs): Generated DML JSON files (automated) (#10436)
* chore(docs): Generated DML JSON files (automated)

* fixes

---------

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-12-04 20:26:43 +02:00
github-actions[bot] 35eeb18a99 chore(docs): Update version in documentation (automated) (#10435) 2024-12-04 20:05:43 +02:00
Shahed Nasser 644f1fbbaf docs: add note about default owner table in many-to-many (#10426) 2024-12-04 20:04:57 +02:00
Shahed Nasser b41a4ceea8 docs: add documentation for check constraints (#10425) 2024-12-04 20:04:36 +02:00
Shahed Nasser a943dfb529 docs: revise define brand link (#10434) 2024-12-04 19:51:28 +02:00
olivermrbl 648be3cde3 chore: Release 2024-12-04 18:44:27 +01:00
olivermrbl 4723acd949 chore: Version packages 2024-12-04 18:36:57 +01:00