Commit Graph

2908 Commits

Author SHA1 Message Date
Shahed Nasser
15a7ba2914 chore(docs): updated docusaurus to v2.3.0 (#3145) 2023-01-30 16:41:02 +02:00
github-actions[bot]
061a0a37fa chore(docs): Updated API Reference (#3142)
* chore(docs): Generated API Reference

* Update admin-spec3.json

* Update admin-spec3.yaml

* Update openapi.yaml

---------

Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-01-30 15:37:43 +02:00
Shahed Nasser
6f058b389b docs: added information about metadata attribute (#3139)
* docs: added information about metdata fields

* docs: changed a subheader to avoid confusion

* added acronym expanding for jsonb
2023-01-30 15:24:44 +02:00
Shahed Nasser
771c54952a chore: fixed OAS using incorrect store resource (#3138) (#3140) 2023-01-30 15:24:26 +02:00
Shahed Nasser
3566bccb76 docs: added publish plugin documentation (#3137) 2023-01-30 14:11:00 +02:00
Shahed Nasser
cf89624747 docs: fixed mobile usability of tooltips (#3124) 2023-01-27 11:05:57 +02:00
Shahed Nasser
a65e115844 docs: added user guide for order editing (#3120) 2023-01-26 19:30:17 +02:00
Shahed Nasser
5af39e7beb docs: added product category events to reference (#3118) 2023-01-26 16:54:27 +02:00
Shahed Nasser
589cb18f98 docs: improved SEO of documentation (#3117)
* docs: added description to documentation pages

* docs: added more descriptions

* docs: finished improving meta description

* docs: added searchbox structured data

* docs: added breadcrumbs structured data

* docs: added how to structured data

* docs: improved 404 page

* docs: added how-to frontmatter option
2023-01-26 15:58:33 +02:00
github-actions[bot]
4e82ec0734 chore(docs): Updated API Reference (#3107)
* chore(docs): Generated API Reference

* small fix

Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-01-25 10:28:11 +02:00
github-actions[bot]
0312eceda7 chore(docs): Removed Docs Announcement Bar (automated) (#3106)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-01-25 10:07:20 +02:00
olivermrbl
8f07738d88 chore(release): Publish 2023-01-24 13:58:41 +01:00
Kasper Fabricius Kristensen
6293fccc65 hotfix(medusa-react): Invalidate query keys on successful mutations (#3099)
**What**
- Fixes an issue where query keys weren't invalidated on successful mutations.

**How**
- Update `buildOptions` function to be called per `QueryKey` instead of passing them all as a single query key, resulting in no matches found.
- Fixes imports that aren't compatible with ESM modules.
2023-01-24 12:55:24 +00:00
Shahed Nasser
a248bf6e4f docs: added medusa-react snippets in how-to guides (#3091)
* added medusa-react snippets

* added more code snippets

* added medusa-react snippets

* docs: added medusa-react snippets to storefront how-to

* docs: added medusa-react snippets in admin how-to

* docs: fixed incorrect link
2023-01-23 21:04:09 +02:00
Shahed Nasser
7418a0025c docs: added a fix for QueryClient error in medusa-react upgrade guide (#3089) 2023-01-23 16:23:49 +02:00
Shahed Nasser
b5d2625d82 chore: fixed redirect urls for upgrade guides (#3084) 2023-01-23 10:58:04 +02:00
github-actions[bot]
5b7856a6ed chore(docs): Generated Docs Announcement Bar (automated) (#3073)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-01-19 20:00:09 +02:00
olivermrbl
a48c533bec chore(release): Publish 2023-01-19 18:29:07 +01:00
Oliver Windall Juhl
9c2169422d fix(medusa): Only add Sales Channel relation + field when enabled (#3069) 2023-01-19 18:26:10 +01:00
Shahed Nasser
8915abbacf docs: fix upgrade command in Medusa React upgrade guide (#3071)
* docs: fix upgrade command in Medusa React upgrade guide

* changed to an install latest command
2023-01-19 19:04:33 +02:00
Oliver Windall Juhl
9427bc7f25 fix(medusa): Move migration to correct folder (#3067) 2023-01-19 17:34:59 +01:00
Shahed Nasser
ff319cb800 docs: fixed npm/yarn blocks (#3070) 2023-01-19 18:31:40 +02:00
Shahed Nasser
b2a37109e1 docs: fixed issue with document title for Medusa React upgrade guide (#3068) 2023-01-19 18:01:48 +02:00
Shahed Nasser
7cafff14b9 docs: added migration guide for Medusa React (#3066)
* docs: added migration guide for Medusa React

* docs: fixed vale error
2023-01-19 16:59:49 +02:00
github-actions[bot]
296d6e229f chore(docs): Generated API Reference (#3061)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-01-19 10:06:17 +02:00
github-actions[bot]
3a0f37ef02 chore(docs): Generated Docs Announcement Bar (automated) (#3062)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-01-18 22:38:48 +01:00
olivermrbl
6481b0c357 chore(release): Publish 2023-01-18 18:48:57 +01:00
Philip Korsholm
9c4647383e Feat/reservations endpoints (#2995)
**What**
- add reservation endpoints: 
 - `create-reservation`
 - `update-reservation`
 - `delete-reservation`
 - `get-reservation`
 - `list-reservations`
 - `orders/create-reservation-for-line-item`
 - `orders/get-reservations`

Fixes CORE-979
2023-01-18 16:39:33 +00:00
olivermrbl
838948c4e8 Merge branch 'master' into develop 2023-01-18 15:54:27 +01:00
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
Carlos R. L. Rodrigues
aa54d902e5 chore: added missing withTransacton, create-variant using TO (#3047)
Create variant integrated with Inventory modules
2023-01-18 09:29:06 -03:00
Kasper Fabricius Kristensen
150696de99 feat(medusa, medusa-js, medusa-react): Add endpoint to retrieve product tags from the storefront (#3051) 2023-01-18 10:47:15 +01:00
olivermrbl
ab580066ae fix: Merge conflicts with master 2023-01-18 10:17:39 +01:00
Philip Korsholm
76d1752310 fix(medusa): Draft order inventory management (#3040)
* reserve quantities when creating a draft order

* only adjust quantities if a location is provided on a fulfillment

* initial fix for fulfillments

* changeset

* add check for inventory service when cancelling fulfillment

* update test-request with module loaders

* remove unused variable
2023-01-17 16:14:58 +01:00
Patrick
cb1ec0076b chore(oas): replace response with $ref class JSDoc (Store PRO-V) (#3044)
### Scope

Store routes directories PRO to V.

### What

Move inline OAS response schema declaration under their respective class declarations in order to expose them through  `#/components/schemas`. Replace inline OAS response schema with a `$ref` reference pointing to the newly declared schema.

### Why

Having response declared as its own "named" schema will allow OAS code generators to output typed entities/DTO that can be consumed without having to reference the route/operation.

### How

Declare a new @schema JSDoc for each "Res" class used to parse and validate request body. Move the current inline requestBody to the new @schema.

### Test

- Ran OAS validator.
- Ran docs build script.

Expect no visible changes to the documentation.
2023-01-17 14:22:10 +00: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
Carlos R. L. Rodrigues
0175388835 feat(medusa): Transaction Orchestrator (#2861)
* chore: transaction orchestrator
2023-01-16 20:16:41 -03:00
Riqwan Thamir
7d4b8b9cc5 feat(medusa): List (service + controller) product categories #3004 (#3023)
**What:**

Introduces a store endpoint to retrieve a list of product categories

**Why:**

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

**How:**

- Creates an endpoint in store routes

RESOLVES CORE-968
2023-01-16 19:20:42 +00:00
Patrick
c49747b3ad Merge pull request #3043 from medusajs/chore/oas-res-schema-AtoPAY
chore(oas): replace response with $ref class JSDoc (Store A-PAY)
2023-01-16 13:32:21 -05:00
Patrick
1ec1a78dfa Merge branch 'develop' into chore/oas-res-schema-AtoPAY 2023-01-16 11:59:19 -05:00
Patrick
542daeeadd chore: changeset 2023-01-16 11:59:05 -05:00
Patrick
b791e34589 chore(oas): replace response with $ref class JSDoc (Store A-PAY)
chore(oas): replace response with $ref class JSDoc (Store A-PAY)
2023-01-16 11:54:48 -05: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
Patrick
a0c4cfe0f7 chore(oas): replace response with $ref class JSDoc (Admin PR0-SAL) (#3030)
### Scope

Admin routes directories PRO to SAL.

### What

Move inline OAS response schema declaration under their respective class declarations in order to expose them through  `#/components/schemas`. Replace inline OAS response schema with a `$ref` reference pointing to the newly declared schema.

### Why

Having response declared as its own "named" schema will allow OAS code generators to output typed entities/DTO that can be consumed without having to reference the route/operation.

### How

Declare a new @schema JSDoc for each "Res" class used to parse and validate request body. Move the current inline requestBody to the new @schema.

### Test

- Ran OAS validator.
- Ran docs build script.

Expect no visible changes to the documentation.

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-01-16 16:00:05 +00:00
Shahed Nasser
5c6931953a docs: fixed note about database_schema option (#3037) 2023-01-16 11:22:38 +02:00
Adrien de Peretti
8c08d00319 fix(medusa): Legacy total service to accept custom items (#3027) 2023-01-16 09:57:01 +01:00
Patrick
27a29ef24e chore(oas): replace response with $ref class JSDoc (Admin SHI-V) (#3031)
### Scope

Admin routes directories SHI to V.

### What

Move inline OAS response schema declaration under their respective class declarations in order to expose them through  `#/components/schemas`. Replace inline OAS response schema with a `$ref` reference pointing to the newly declared schema.

### Why

Having response declared as its own "named" schema will allow OAS code generators to output typed entities/DTO that can be consumed without having to reference the route/operation.

### How

Declare a new @schema JSDoc for each "Res" class used to parse and validate request body. Move the current inline requestBody to the new @schema.

### Test

- Ran OAS validator.
- Ran docs build script.

Expect no visible changes to the documentation.

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-01-15 19:04:26 +00:00