Commit Graph

2781 Commits

Author SHA1 Message Date
Shahed Nasser
af7e67e827 docs: added gift card documentation guides (#2939) 2023-01-04 18:16:51 +02:00
github-actions[bot]
c62e309629 chore(docs): Generated API Reference (#2935)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-01-03 16:26:45 +02:00
Shahed Nasser
8263dc1906 docs: fixed oas tag of price list products endpoint (#2933) 2023-01-03 16:10:15 +02:00
Shahed Nasser
82d66408f9 docs: changed behavior of feedback component (#2929) 2023-01-03 13:09:47 +02:00
github-actions[bot]
cd32795595 chore(docs): Generated API Reference (#2927)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-01-03 10:40:03 +02:00
Shahed Nasser
19d7be31eb docs: added missing oas tag of uploads endpoints (#2924) 2023-01-03 10:30:23 +02:00
Yessica Bao
663a0d1a59 docs: fix wrong key for order placed in sendgrid docs (#2923)
Hello!

I just found out that the key in plugin options for Order Placed `order.placed` is wrong. It should be `order_placed_template` instead.
2023-01-03 10:27:27 +02:00
Shahed Nasser
45f7ed8d1b docs: updated steps in MinIO documentation (#2922) 2023-01-02 17:33:10 +02:00
Shahed Nasser
d1b4b11ff6 chore(docs): added eslint to lint documentation code blocks (#2920)
* docs: added rule for code length

* chore: fixes based on vale errors

* changed to use eslint

* fixes using eslint

* added github action for documentation eslint

* changed allowed max-length

* fixed incorrect heading level

* removed comment
2022-12-30 18:44:46 +02:00
Shahed Nasser
99add15fc3 docs: added a note about watching changes (#2917) 2022-12-29 16:51:30 +02:00
Shahed Nasser
3d4e71aa45 docs: added a section to the troubleshooting guide (#2916) 2022-12-29 16:38:33 +02:00
github-actions[bot]
93f4780519 chore(docs): Removed Docs Announcement Bar (automated) (#2912)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2022-12-29 09:55:52 +02:00
Shahed Nasser
123d910ef6 docs: added Manage Customers documentation (#2911)
* docs: added Manage Customers documentation

* fixed link
2022-12-28 19:36:18 +02:00
Shahed Nasser
f89759f069 docs: added Implement Customer Profiles documentation (#2910) 2022-12-28 17:43:35 +02:00
Shahed Nasser
800059bf6e docs: added Customers conceptual guide (#2908) 2022-12-27 18:01:59 +02:00
Akarsh Jain
48baf48eff docs: add git as in the prerequisites section of the Quickstart Guide (#2892)
* docs: Added git as in the prerequisites section of the Quickstart Guide

Fixes: #2850

* added divider

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-12-27 15:21:20 +02:00
github-actions[bot]
d93d337df7 chore(docs): Updated API Reference (#2903)
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>
2022-12-26 16:30:38 +00:00
Shahed Nasser
1f1b85afbb docs: shortened summaries in API reference (#2902) 2022-12-26 18:09:22 +02:00
Shahed Nasser
035790606e docs: added missing sections (#2901)
* docs: added a link to the quickstart guide

* docs: added env variables section
2022-12-26 17:01:23 +02:00
Shahed Nasser
2916ff9861 docs: added troubleshooting docs (#2900) 2022-12-26 16:19:10 +02:00
Shahed Nasser
b0ebfd6bcf docs: added dividers + see also section (#2899) 2022-12-26 15:52:08 +02:00
Shahed Nasser
b0e5769e27 docs: added a feedback component in quickstart guides (#2894)
* docs: added a feedback component in quickstart guides

* docs: added feedback to admin docs
2022-12-23 16:54:18 +02:00
github-actions[bot]
1de91693fc chore(docs): Generated Docs Announcement Bar (automated) (#2893)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-12-23 10:21:01 +02:00
github-actions[bot]
a32a2c4cf1 chore(docs): Generated Services Reference (automated) (#2891)
Co-authored-by: kodiakhq[bot] <kodiakhq[bot]@users.noreply.github.com>
2022-12-23 10:20:47 +02:00
olivermrbl
8cbd627fb7 chore(release): Publish 2022-12-23 08:56:46 +01:00
Oliver Windall Juhl
d843bc1023 hotfix(medusa): Assign jobSchedulerService in EventBus (#2889)
Solves #2886
2022-12-22 20:16:31 +00:00
Shahed Nasser
365d11aca7 fix(docs): fixed redirects for api reference (#2888) 2022-12-22 20:13:52 +02:00
Shahed Nasser
8d6db2b5d8 chore(docs): added rewrites for old links (#2887) 2022-12-22 19:55:20 +02:00
Shahed Nasser
bf200c5528 docs: added order edit documentation pages (#2885) 2022-12-22 19:24:44 +02:00
github-actions[bot]
21b4015ff7 chore(docs): Generated Docs Announcement Bar (automated) (#2884)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-12-22 17:29:56 +02:00
Shahed Nasser
c414dd5498 docs: added schema option (#2880) 2022-12-22 17:15:12 +02:00
Shahed Nasser
87256e81b3 docs: added an upgrade guide for v1.7.1 (#2868)
* docs: added an upgrade guide for 1.7.1

* docs: added more required changes for the release

* docs: removed link to payment provider docs

* docs: reordered upgrade guides in desc order

* added export to code snippet

* added details about update_request property

* fixed the text

* added link to scheduled jobs docs
2022-12-22 17:13:20 +02:00
github-actions[bot]
4814045036 chore(docs): Generated API Reference (#2882)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2022-12-22 17:09:49 +02:00
olivermrbl
233d6904f8 chore(release): Publish 2022-12-22 15:54:20 +01:00
olivermrbl
30e2fc3057 chore: Update changeset minor -> patch 2022-12-22 15:49:45 +01:00
olivermrbl
51c61f401e Merge branch 'master' into develop 2022-12-22 15:45:16 +01:00
Philip Korsholm
3f097b7987 allow module definitions to have no default package (#2878)
* allow module definitions to have no default package

* remove duplicated test

* update modulesresponse type
2022-12-22 14:51:24 +01:00
Shahed Nasser
c78e78de28 docs: fixed typo in upgrade guide v1.7 (#2879) 2022-12-22 15:30:18 +02:00
Philip Korsholm
37aaca0da4 feat(medusa): Extend Module Resolution configuration (#2864)
**What**
update module definitions in `ConfigModule` to support the following module configuration methods:
- none: defaults are loaded
- boolean `inventoryService: true|false`, if true the defaults are loaded, false throws if it's a required module, if the module is not required it's not loaded 
- string: `inventoryService: "..."`, treats the string as a path to the overriding module, (we dont handle the case where a string is given but the module is not overridable, we just load the default in that case)
- `ConfigurableModuleDeclaration = { resolve?: string, options?: Record } `, like plugins, options can be used to pass configs to the main service of the module, if not defined no options are passed. Resolve is like string, if defined it's used to look for a custom module, otherwise the default is loaded.

Testing: 
- Added unit tests for: 
  - `loaders/modules.ts`
  - `loaders/module-definitions/index.ts`

Fixes CORE-932
2022-12-22 12:20:57 +00:00
Adrien de Peretti
463f83ffdd feat(medusa): Ordering products on retrieval (#2815)
**What**

Move to transformQuery which adds a default ordering and also allows to order the product list from the store API

**How**
Among other things, fix the product repo to allow ordering by either a key from the product or a key from a relation

FIXES CORE-911
FIXES CORE-901
2022-12-22 10:33:53 +00:00
Shahed Nasser
f4c9a4698f docs: added a note about running migrations (#2875)
* docs: added a note about running migrations

* docs: fixed link
2022-12-22 12:12:21 +02:00
olivermrbl
5ae319004f Merge branch 'master' into develop 2022-12-22 10:43:29 +01:00
Adrien de Peretti
e27b1940c7 fix(medusa): Include items.variant relation in order calculation (#2869)
**What**

When an order require to decorate the totals, the variant relation should be added

FIXES CORE-930
2022-12-22 09:32:49 +00:00
Shahed Nasser
7c0ae7f6ba docs: added customize medusa admin docs (#2870) 2022-12-21 19:23:16 +02:00
Patrick
b700c6ba5b chore(oas): replace requestBody with $ref to req class JSDoc OAS (#2867)
### What

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

### Why

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

### How

Declare a new @schema JSDoc for each class-validator 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.

### Out-of-scope

requestBody of type `multipart/form-data` used for file uploads. These will be address as part of CORE-934
- [create-upload.ts](58d23a7b45/packages/medusa/src/api/routes/admin/uploads/create-upload.ts (L87-L90))
- [create-protected-upload.ts](58d23a7b45/packages/medusa/src/api/routes/admin/uploads/create-protected-upload.ts (L87-L90))

Path Parameter and Query Parameter. These will need more research and experimentation, part of CORE-931

---

Resolves CORE-853
2022-12-21 14:08:16 +00:00
Debashis Biswal
34b5b63ee0 docs: add test medusa cli after installation in set up dev env docs (#2866)
* Update Set up your development doc for Medusa CLI section

* Remove auto changes by VS code.

* Update docs/content/tutorial/0-set-up-your-development-environment.mdx

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

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2022-12-21 11:51:38 +02:00
Jon Jahr
355228c449 docs: add a note about running migrations after changing database type (#2699)
* Add note to run migrations

I think it will be helpful to remind newbies to run migrations after they change their `database_type`.  I'm a newbie and today I got stuck for a while because I didn't know I had to run migrations after I changed from `sqlite` to `postgres`.

* Add H3 header "Changing Database Type"
2022-12-21 10:43:29 +02:00
Riqwan Thamir
8a60a73389 fix(medusa): gift card values & taxes are calculated correctly (#2777)
* chore: tax_rate is added to giftcards

* chore: minor

* chore: update gift card tax calculations to look at giftCard.tax_rate

* chore: gift card transactions use tax rate from gift card for legacy

* fix: gift cart total check for transaction should check the length

* chore: use tax exclusive cost + use giftcard tax rate for gctransactions + refactor

* chore: fix integration test

* chore: address issues brought up in comments

* chore: move gift card creation as a part of order service on order placed

* chore: add type handling for gift card creation

* chore: fix specs

* chore: use taxLines to calculate tax of a gift card

* chore: specs for line items containing gift cards and without

* chore: add integration specs + fix tax rate bug

* chore: round totaling + add GC application specs

* chore: cleanup trialables

* chore: write migration script to backfill gift cards with null tax_rate

* chore: update legacy totals service for gift cards

* chore: add changeset

* chore: address PR review changes

* chore: fix tests based on new totals calc

* chore: address review comments

Co-authored-by: adrien2p <adrien.deperetti@gmail.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-12-20 22:24:25 +01:00
josetr
3113d8024f feat(medusa): Allow creating DraftOrders without items (#2719) 2022-12-20 18:37:42 +01:00
Shahed Nasser
907f7f83d8 docs: added user guide for custom gift cards (#2862) 2022-12-20 17:51:06 +02:00