Commit Graph

2847 Commits

Author SHA1 Message Date
Shahed Nasser 27749eae40 docs: added documentation for Medusa React (#3059)
* chore: fixed issue in typedoc plugin

* chore: updated typedoc dependencies

* docs: added Medusa React documentation

* fixed link to js-client

* fixes to package.json

* fixes to package.json

* undo changes other than docs
2023-01-18 16:42:49 +02:00
Shahed Nasser 4b5d760c96 docs: fix start command for storefront (#3058) 2023-01-18 15:57:13 +02:00
Shahed Nasser 8417757d92 docs: added a troubleshooting guide for updates (#3057) 2023-01-18 14:49:47 +02:00
Shahed Nasser 107cd4de4c docs: fixed note about custom database schema (#3049) 2023-01-17 10:38:13 +02:00
github-actions[bot] 31daa964a7 chore(docs): Removed Docs Announcement Bar (automated) (#3048)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-01-17 09:55:22 +02:00
Kasper Fabricius Kristensen cb25244007 hotfix(medusa-js, medusa-react): Fix issue with JS client bundle (#3038) 2023-01-16 17:44:24 +01:00
Shahed Nasser 5c6931953a docs: fixed note about database_schema option (#3037) 2023-01-16 11:22:38 +02:00
Shahed Nasser dc26a28a53 docs: improved feedback component (#3026) 2023-01-13 15:31:26 +02:00
Shahed Nasser e1292dca5f chore(medusa-js): changed README to link to the docs (#3024) 2023-01-13 15:20:03 +02:00
github-actions[bot] 853f8efdf3 chore(docs): Generated API Reference (#3021)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-01-13 09:27:24 +02:00
Shahed Nasser 2c2c70d88c chore(oas): fixed oas for product category endpoints and model (#3019) 2023-01-13 09:21:50 +02:00
Shahed Nasser dd87e62536 docs: added middleware documentation (#3000)
* docs: added a middleware documentation

* docs: fixes based on eslint
2023-01-11 20:15:17 +02:00
Shahed Nasser 76d6d26b3a docs: fix search bar not focused when using keyboard shortcut (#2999)
* docs: only render mobile search bar on mobile devices

* docs: prevent rendering desktop search bar on mobile devices
2023-01-11 19:30:08 +02:00
Shahed Nasser cbd5943ddb docs: updated user guide following sidebar redesign of admin (#2998) 2023-01-11 19:09:06 +02:00
Shahed Nasser c10437f22c docs: fix note about migration script in upgrade guide (#2996) 2023-01-11 18:52:59 +02:00
github-actions[bot] f7e23afff2 chore(docs): Generated API Reference (#2994)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-01-11 18:08:33 +02:00
github-actions[bot] f521260a8f chore(docs): Generated Services Reference (automated) (#2993)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-01-11 18:08:25 +02:00
olivermrbl 6dafb51547 Merge branch 'master' into develop 2023-01-11 16:46:32 +01:00
github-actions[bot] 3b632c5130 chore(docs): Generated API Reference (#2991)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-01-11 17:43:03 +02:00
github-actions[bot] f20cdeb680 chore(docs): Generated Docs Announcement Bar (automated) (#2990)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-01-11 17:41:01 +02:00
Oliver Windall Juhl 0d9e3e86dd docs: Temporarily remove note on peer deps in documentation (#2988)
* docs: Temporarily remove note on peer deps in documentation

* Update docs/content/advanced/backend/plugins/create.md

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-01-11 17:37:00 +02:00
Shahed Nasser 4156e280ab docs: added publishable API keys documentation pages (#2972)
* docs: added publishable api keys docs

* Update docs/content/advanced/admin/manage-publishable-api-keys.mdx

Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>

* Update publishable-api-keys.mdx

* Update docs/content/advanced/storefront/use-sales-channels.mdx

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

* added note in admin how-to guide

* added note in conceptual guide

* Update docs/content/advanced/backend/publishable-api-keys/index.md

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

* small fixes

Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-01-11 17:36:51 +02:00
Shahed Nasser c94ce03aa2 docs: added upgrade guide for 1.7.3 (#2968)
* docs: added upgrade guide for 1.7.3

* remove sales channel note
2023-01-11 17:36:29 +02:00
olivermrbl a8bde8ba74 chore(release): Publish 2023-01-11 16:27:54 +01:00
olivermrbl 9cf971c6bd chore: Add missing changeset for PayPal plugin 2023-01-11 16:24:41 +01:00
Riqwan Thamir 8ed4eab73a feat(medusa): added admin create endpoint for nested categories (#2985)
What:

Introduces an admin endpoint that allows a user to create a product category

Why:

This is part of a greater goal of allowing products to be added to multiple categories.

How:

- Creates a route on the admin scope to create category
- Creates a method in product category services to create a category

RESOLVES CORE-958
2023-01-11 13:29:02 +00:00
Oliver Windall Juhl 39c3513b2c fix(medusa): Rename location migration (#2987) 2023-01-11 14:06:12 +01:00
Adrien de Peretti 6239fa0704 feat(medusa): Migrate setPaymentSession to use new session flow (#2982)
**What**
When selecting a payment session, we do not necessarily run setPaymentSessions. manage the previously selected session.m accordingly.
2023-01-11 10:43:54 +00:00
Shahed Nasser 21b1ae53e4 docs: changed links on the homepage (#2981)
* docs: changed homepage

* added missing import

* added related links

* added a link to the user guide on homepage
2023-01-10 21:09:11 +02:00
olivermrbl 8e80e50638 chore: Update changesets 2023-01-10 19:26:34 +01:00
olivermrbl abb98f99dd Merge branch 'master' into develop 2023-01-10 19:23:34 +01:00
Carlos R. L. Rodrigues 93ee248493 feat(medusa, inventory): Inventory Management module (#2956)
* feat: inventory module
2023-01-10 14:38:30 -03:00
Adrien de Peretti a2df11fc10 fix(medusa-payment-manual): Correct wrongly used input data (#2979) 2023-01-10 18:23:24 +01:00
Oliver Windall Juhl 3308766389 chore(feature-flags): Sales Channels enabled by default (#2966) 2023-01-10 16:45:23 +00:00
Adrien de Peretti cac81749ea feat(medusa): Update payment session management (#2937) 2023-01-10 16:33:24 +01:00
Riqwan Thamir 71fa60892c feat(medusa): Nested Categories Admin Delete Endpoint (#2975)
**What:**

Introduces an admin endpoint that allows a user to delete a product category, given an ID.

Why:

This is part of a greater goal of allowing products to be added to multiple categories.

How:

- Creates a route on the admin scope to delete category
- Creates a method in product category services to delete a category

RESOLVES CORE-957
2023-01-10 14:28:46 +00:00
Kasper Fabricius Kristensen f6c81dab9e feat(medusa-js): Bundle package using Rollup (#2964) 2023-01-10 14:44:25 +01:00
Riqwan Thamir f3ced106ad feat(medusa): Nested Categories Admin List Endpoint (#2973)
* chore: added get route for admin categories API

* chore: add tree method to mock repository

* chore: added changeset to the PR

* chore: rename id to productCategoryId in service

* chore: switch cli option to string

* chore: lint fixes, tests for parent category

* chore: move Nested Categories behind feature flag

* chore: use transformQuery hook in api

* chore: add feature flag in migrations

* chore: remove migration FF, fix FF name

* chore: add free text search + count repo function

* chore: added list endpoint for admin

* chore: added changeset for feature

* chore: address pr review comments

* chore: change oas comment

* chore: add nullable parent category filter + test
2023-01-10 12:52:31 +01:00
Adrien de Peretti 4a50786fbc feat(medusa): Introduce Payment Processor API (#2737) 2023-01-10 12:15:42 +01:00
Adrien de Peretti 1817b810fc fix(medusa): Cancel order missing refunds relation (#2976)
**What**

The order cancelation does not include the refunds relation. It means that the check of the length of the refund is never true and therefore no errors are thrown if the order contains the refunds.

**How**

Add the refunds relation and tests

FIXES CORE-976

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-01-10 09:38:59 +00:00
Riqwan Thamir 47d075351f feat(medusa): Get route for admin product categories API (#2961) 2023-01-10 10:08:16 +01:00
Oliver Windall Juhl 33b3e5f16d chore(feature-flags): Publishable Keys enabled by default (#2967) 2023-01-10 08:59:57 +01:00
Philip Korsholm 16716f5a4f feat(medusa): Create fulfillment with location (#2931)
* remove duplicate key from oas

* changeset

* initial suggestion for adding locations to fulfillments

* update migration

* re-add functionality for removing entire reservations

* fix tests

* add location when adjusting reserved inventory of a line_item

* add changest

* handle multiple reservations for a product in the same channel

* confirm inventory in stock location previous to creating the fulfillment

* fix tests after updating create-fulfillment to confirm inventory prior to creating fulfillment

* remove bugged code

* initial validation

* initial changes for review

* chekcpoint

* update validate inventory at location

* redo some unwanted changes

* typing

* update snapshots

* redo change for eslintrc

* add eslint disable

* re-order methods in interface

* assert no_notification

* iterate one time less

* add test for validation of correct inventory adjustments in case of no inventory service installation

* ensure correct adjustments for order cancellations

* remove comment

* fix tests

* fix but with coalescing

* remove location id from confirm inventory

* don't throw when adjusting reservations for a line item without reservations

* move reservation adjustments to the api

* add multiplication for updating a reservation quantity

* move inventory adjustments from the service layer to the api

* delete reservation if quantity is adjusted to 0

* rename updateReservation to updateReservationItem

* update dto fields

* reference the correct fields

* update with transaction

* add jsdocs

* force boolean cast

* context-ize cancel and create fulfillment transaction methods

* undo notification cast

* update with changes

* refactor withTransaction to variable

* use maps

* fix service mocks
2023-01-09 14:44:34 +01:00
Adrien de Peretti 28bec599ae fix(medusa): Repository util mention of entity specifics (#2965) 2023-01-09 14:18:55 +01:00
Oliver Windall Juhl 32b038fc3f feat(medusa): Reliable retrying of jobs (#2947) 2023-01-09 11:56:29 +01:00
Adrien de Peretti e4af968531 fix(medusa): Custom repository take/skip when called without relations (#2962)
**What**
The actual behavior is that the skip/take is applied in a first query returning the correct number of results. When there is no relations, we are calling findByIds with the previously retrieved ids, but we also pass skip/take which means that no result are returned after the first increment of the skip.

The skip/take should not be applied in that case as it has already been applied.

FIXES CORE-970
2023-01-09 09:54:25 +00:00
Binzi 0f039a087a docs: Correct import products url (#2960)
Fixes broken URL in `introduction.md`
2023-01-09 10:21:56 +02:00
Riqwan Thamir b280e53bd3 refactor(medusa): move repository specs into its own folder (#2952)
**What:**

Introduces a new folder under which repository specs will be placed. 

Why:

We don't currently have a good place to test ORM logic or custom queries against the database. The repository folder tests are a place for just exactly that. 

How:

Creates an internal package similar to other integration tests - api and plugins. 

CORE-965
2023-01-09 08:19:01 +00:00
Adrien de Peretti baeacd1cc5 feat(medusa): Disable subscriber when no search engine is installed (#2958) 2023-01-07 15:58:06 +01:00
Sebastian Rindom a93d5d437c chore: star prompt (#2955)
Shows a prompt to star Medusa after killing the develop server the first time:
![CleanShot 2023-01-06 at 2 30 19](https://user-images.githubusercontent.com/7554214/211022169-8a0d753e-1628-485e-9037-0e817adf5d3f.png)

The prompt will not reappear on subsequent kills.
2023-01-06 15:12:47 +00:00