Commit Graph

3992 Commits

Author SHA1 Message Date
Adrien de Peretti
75ec53e45a chore(framework): update deps (#8261)
* chore(medusa): update framework deps

* update lock

* update deps

* fix
2024-07-24 11:38:50 +02:00
Harminder Virk
ca88f204d4 feat: Extending API routes validators (#8254) 2024-07-24 14:36:41 +05:30
Adrien de Peretti
2188a4e1ba fix: isList on field alias in link configuration (#8244)
* fix/link-configuration-is-list-on-fieldsAlias

* fix tests

* fix tests

* fix tests
2024-07-24 10:18:38 +02:00
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
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
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
Stevche Radevski
4b09be3a88 feat: Add skeleton for supporting product imports in BE (#8232) 2024-07-23 11:16:14 +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
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
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
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
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
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
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
Adrien de Peretti
398e39d163 fix: product module joiner config (#8170)
* fix: product module joiner config

* fix aliases

* revert package.json

* add js doc
2024-07-18 11:27:21 +02:00
Stevche Radevski
c58a35f0c0 feat: Add support for private files to file module (#8169) 2024-07-18 09:46:10 +02:00
Kasper Fabricius Kristensen
2e3d444c9b chore(ui-preset,icons,toolbox): Update dark mode theme (#8168)
* run scripts

* chore(ui-preset,icons): Update dark mode theme

* fix nameing of icon
2024-07-18 08:56:35 +02:00
Stevche Radevski
8ef4483afb fix: Remove the option to pass a container to workflow engine API (#8165) 2024-07-17 15:27:56 +02:00
Frane Polić
e5c66fa670 fix(dashboard): create SO modal (#8167) 2024-07-17 13:16:13 +01:00
Carlos R. L. Rodrigues
d7e79cfa94 fix(medusa): normalize build path (#8166) 2024-07-17 09:10:37 -03:00
Stevche Radevski
2ba400f6f1 fix: Log error if a scheduled job handler throws (#8164)
CLOSES TRI-19
2024-07-17 10:45:41 +00:00
Stevche Radevski
26d600b6db feat: Ensure async workflow executions have access to shared container (#8157)
* feat: Ensure async workflow executions have access to shared container

* fix: Register workflow worker on application start
2024-07-17 12:17:48 +02:00
Carlos R. L. Rodrigues
1acfdc4ffe chore(core-flows, medusa): cancel request return (#8153)
* fix(core-flow): request item return reason

* chore(core-flows): cancel request return
2024-07-17 09:35:46 +01:00
Carlos R. L. Rodrigues
d4fe2daa57 fix(core-flow): request item return reason (#8152) 2024-07-17 09:35:33 +01:00
Carlos R. L. Rodrigues
23053afe95 chore(medusa,core-flows): update request return items and shipping (#8151) 2024-07-16 15:23:28 -03:00
Harminder Virk
f579f0b3be feat: restructure events payload (#8143)
* refactor: restructure events payload

Breaking change: This PR changes the event payload accepted by the event
listeners

* refactor: fix failing tests and implement feedback

* add integration tests

* fix timeout

---------

Co-authored-by: Adrien de Peretti <adrien.deperetti@gmail.com>
2024-07-16 17:09:16 +01:00
Carlos R. L. Rodrigues
5813216c88 core(core-flows, medusa): remove request item return (#8146) 2024-07-16 11:23:34 -03:00
Oli Juhl
4024935e91 feat(medusa): Order preview endpoint (#8144)
* feat: Add order preview endpoint

* remove log

* add test

* add note
2024-07-16 12:42:02 +01:00
Carlos R. L. Rodrigues
7123f9ff63 feat(core-flows,medusa,order): remove return shipping (#8137)
What:
* `DELETE /admin/returs/:id/shipping_methods/:action_id`

FIXES: CC-187
2024-07-16 10:27:16 +00:00
Oli Juhl
b7e6b1461b feat: Returns order previews (#8135)
* work on order previews

* fix create return shipping flow

* fix http tests

* fix tests
2024-07-16 11:07:04 +01:00
Adrien de Peretti
4af7309170 fix: install modules-sdk for test-utils to work (#8142) 2024-07-16 12:00:24 +02:00