Commit Graph

5849 Commits

Author SHA1 Message Date
Shahed Nasser
a02f6cbca6 fix(types,order): fixes to order module's service and data models (#8247)
* fix(types,order): fixes to order module's service and data models

* revert change for createLineItemAdjustments

* add missing context parameter
2024-07-24 09:00:21 +02:00
Carlos R. L. Rodrigues
cae27b08bd fix(order): remove nested entities (#8250) 2024-07-23 18:21:33 +00:00
Carlos R. L. Rodrigues
1aa2d7b611 chore: rm testing path (#8249) 2024-07-23 16:58:54 +00:00
Carlos R. L. Rodrigues
7a5349c0ae chore(core-flows): adjust inventory when return is received (#8222) 2024-07-23 13:36:46 -03:00
Carlos R. L. Rodrigues
f38f6d53b4 fix(core-flows): confirm return request (#8242) 2024-07-23 13:29:06 -03:00
Adrien de Peretti
47dde05517 chore(framework): Initial commit (#8221)
**What**
- Initiate the framework package (which is just a place to move things around for now)
- move the config loader and related resources as well as the `ConfigModule` type
- Create a ConfigManager singleton which prepare and store the config (later can be stored entirely in the container) and allow for easier test override
- re export the logger from the framework
- replace medusa config loader with the framework one
- `build` run type check on tests as well but `prepublishOnly` will not fail on build if tests are typed broken

FIXES FRMW-2607
FIXES FRMW-2609
FIXES FRMW-2614
FIXES FRMW-2618
2024-07-23 15:46:28 +00:00
Shahed Nasser
97f64a5cfe docs: fix note about how method names are generated (#8240)
* docs: fix note about how method names are generated

* small fix
2024-07-23 18:28:34 +03:00
Stevche Radevski
bcba5b3a6c chore: Make scheduled job tests less likely to fail (#8241) 2024-07-23 16:59:27 +02:00
Adrien de Peretti
a9abf448c6 fix(utils): Fix inferrence of public method name and service registration name based on configuration (#8237) 2024-07-23 14:43:46 +02:00
github-actions[bot]
1b61c9b309 chore(docs): Generated References (automated) (#8229)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-07-23 13:51:36 +02:00
github-actions[bot]
d71b0bac36 chore(docs): Generated API Reference (v2) (#8230)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-07-23 13:51:27 +02:00
Stevche Radevski
4b09be3a88 feat: Add skeleton for supporting product imports in BE (#8232) 2024-07-23 11:16:14 +02:00
Shahed Nasser
55b55b6a92 docs: updates and fixes to marketplace recipe example (#8150)
- Add compensation functions to workflows
- Use steps/workflows provided by Medusa instead of implementing the steps.
- Other fixes

PR in examples repo: https://github.com/medusajs/examples/pull/1 (might be easier to review)
2024-07-23 07:10:05 +00:00
Stevche Radevski
4c67599730 fix: Event emitter not cleared in export tests (#8228) 2024-07-22 21:43:22 +02:00
Frane Polić
223325eb09 feat: allow filtering returns by order_id (#8225) 2024-07-22 21:09:14 +02:00
Carlos R. L. Rodrigues
3772b805ef fix(core-flows): create return items (#8227) 2024-07-22 21:08:34 +02:00
Carlos R. L. Rodrigues
037ddd2cec fix(medusa): GET return/:id (#8226) 2024-07-22 21:08:13 +02:00
Stevche Radevski
0d2e7befbd feat: Add support for exporting products in backend (#8214)
CLOSES CC-221
CLOSES CC-223
CLOSES CC-224
2024-07-22 13:40:04 +00:00
Kasper Fabricius Kristensen
e9f1aafbb1 add as const (#8219) 2024-07-22 14:35:10 +02:00
Stevche Radevski
bb2cbe963a chore: Fix flaky test for scheduled workflows (#8216) 2024-07-22 12:53:59 +02:00
Shahed Nasser
a2d08eb635 docs: document links sync command (#8212)
* docs: document links sync command

* small wording fix

* sentence fix
2024-07-22 13:17:53 +03:00
Shahed Nasser
ac21f35b2c fix(create-medusa-app): run links sync during setup (#8215)
Run `links sync` command along with running migrations
2024-07-22 10:09:33 +00:00
Carlos R. L. Rodrigues
fb29b958fa chore(inventory, core-flows): big number support (#8204) 2024-07-22 06:32:25 -03:00
Adrien de Peretti
c307972a99 chore(medusa): rm default created at field (#8213)
**What**
To maintain the backward compatibility, we use to populate `created_at` no matter what. But since we can break things from v1, I ll remove it as we moved the default ordering to the repository layer
2024-07-22 08:20:14 +00:00
Adrien de Peretti
f74fdcb644 breaking: rework how links database migrations are managed (#8162) 2024-07-22 13:12:23 +05:30
Shahed Nasser
f435c6c7f6 docs: fix fulfillment provider option name (#8211)
Change `name` option of a fulfillment module provider to `id`.

Closes DOCS-830
2024-07-22 07:17:15 +00:00
github-actions[bot]
c99cb5c0ca chore(docs): Updated API Reference (v2) (#8208)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
2024-07-22 07:10:08 +00:00
github-actions[bot]
9173dd4f5d chore(docs): Generated References (automated) (#8207)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
2024-07-22 08:58:57 +02:00
Shahed Nasser
5def252e4b docs: add section on delete cascades (#8198)
* docs: add section on delete cascades

* small text fix
2024-07-21 21:21:36 +02:00
Adrien de Peretti
566300d54b fix: normalize path before consuming it while loading models (#8194)
* fix: normalize path before consuming it while loading models

* Make it so that models derived from the service if present

* fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config

* fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config

* fix linkable tests that now match what has been passed to the medusa service if there is no custom joiner config
2024-07-21 21:21:05 +02:00
Shahed Nasser
2f56030101 docs: remove the requirement on is queryable (#8199) 2024-07-21 21:20:24 +02:00
Shahed Nasser
8daa4119f0 docs: add chapter on executing a workflow in another / in a step (#8163)
* docs: added chapter on using workflow in another

* remove container from object

* change to only mention executing a workflow in another

* pass missing highlight
2024-07-21 21:19:23 +02:00
Stevche Radevski
56f2ddc4b6 feat: Add notification endpoints for admin (#8196) 2024-07-19 22:00:53 +02:00
Adrien de Peretti
ecc97076b5 chore: default isQueryable module (#8192)
* chore: default isQueryable module

* fix defaults

* fix
2024-07-19 16:14:42 +02:00
Shahed Nasser
4ef268d829 fix(dashboard): fix header in create tax region form (#8197)
Use correct text for the header of the create tax region form.

Closes TRI-40
2024-07-19 13:19:02 +00:00
Kasper Fabricius Kristensen
75c5d5ad9e feat(dashboard,js-sdk,types): Update app layout, and add user sdk methods (#8182)
**What**
- Updates app layout (sidebar and topbar)
- Adds "System" option to theme toggle (we now default to system)
- Adds sdk methods for user endpoints (RESOLVES CC-67)
2024-07-19 11:18:48 +00:00
Carlos R. L. Rodrigues
07205e4249 fix(utils): totals calculation (#8190) 2024-07-19 06:49:49 -03:00
Akmal Maksumov
fe5a7b1810 Update page.mdx (#8189)
Fixed typos in docs
2024-07-19 08:49:08 +00:00
Adrien de Peretti
35c3759ed8 fix: workflow 'when' should return T or undefined instead of Partial<T> (#8195)
* fix: workflow 'when' should return T or undefined instead of Partial<T>

* fix when usage
2024-07-19 10:46:55 +02:00
Carlos R. L. Rodrigues
78b8a3c60f chore(order): simplify order engine (#8188)
what:
- remove unused features of order changes calculation engine
2024-07-18 18:02:13 +00:00
Shahed Nasser
e0c0a86264 docs: added tax-inclusive conceptual guide and updates to storefront guide (#8186)
* docs: added tax-inclusive conceptual guide and updates to storefront guide

* sentence fix

* currency_code -> country_code
2024-07-18 19:03:37 +02:00
Shahed Nasser
c900a104ce docs: fix auth routes in api reference (#8187) 2024-07-18 19:02:14 +02:00
Shahed Nasser
71ebcd1bd0 docs: fix module definition for providers (#8180) 2024-07-18 18:59:53 +02:00
Carlos R. L. Rodrigues
535832b692 chore(medusa, core-flows): receive item return request (#8172)
What:
* `POST /admin/returns/:id/receive-items`
* `POST /admin/returns/:id/receive-items/:action_id`
* `DELETE /admin/returns/:id/receive-items/:action_id`
* `POST /admin/returns/:id/dismiss-items`
* `POST /admin/returns/:id/dismiss-items/:action_id`
* `DELETE /admin/returns/:id/dismiss-items/:action_id`
* `POST /admin/returns/:id/receive/confirm`

CLOSES: CC-190, CC-191, CC-192, CC-193, CC-195, CC-196, CC-197

* Inventory management isn't included yet. Will add it in a next PR
2024-07-18 14:46:34 +00:00
Stevche Radevski
8d083d6d0f feat: Add product export endpoint and a dummy workflow (#8178) 2024-07-18 15:19:15 +02:00
Carlos R. L. Rodrigues
1a472733ae chore(medusa,core-flows): begin and cancel receive return (#8171)
What:
* `POST /admin/returns/:id/receive` 
* `DELETE /admin/returns/:id/receive`

CLOSES: CC-189
2024-07-18 12:55:04 +00:00
github-actions[bot]
8ffcec3fc4 chore(docs): Generated References (automated) (#8174)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-07-18 14:49:53 +02:00
github-actions[bot]
7b49caf18a chore(docs): Generated API Reference (v2) (#8175)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2024-07-18 14:49:44 +02:00
Stevche Radevski
1a774d1a43 fix: Dont restart server if static file is added to the private folder (#8181) 2024-07-18 14:18:56 +02:00
Shahed Nasser
0dbb2c6691 docs: fix installation version of packages (#8177) 2024-07-18 13:04:29 +02:00