Commit Graph

5143 Commits

Author SHA1 Message Date
Stevche Radevski
f03a822253 feat: Add support for search to all endpoints (#7149)
* feat: Add search capability to api keys

* feat: Add support for searching to currency and customer endpoints

* fix: Clean up product search filters

* feat: Add search support to regions

* feat: Add search support to sales channels

* feat: Add search support to store module

* feat: Add search support to user module

* fix: Clean up inventory search

* feat: Add search support for payments

* fix: Add searchable attributes to stock location models

* feat: Add search support to tax

* feat: Add search support to promotions

* feat: Add search support for pricing, filtering cleanup

* fix: Further cleanups around search
2024-04-25 17:36:59 +02:00
Carlos R. L. Rodrigues
d02905cefa feat(order): bundled actions (#7133) 2024-04-25 07:06:23 -03:00
Philip Korsholm
e4898fb00d feat(admin-next, inventory-next, medusa, types): Add admin reservations flow (#7080)
* add reservation endpoints

* add changeset

* initial

* add reservations table

* add edit-item modal

* udpate inventory item attributes

* manage locations skeleton

* add combi batch endpoint

* cleanup

* fix manage locations

* add adjust inventory

* prep for pr

* minor fixes to region domain and api (#7042)

* initial reservation

* init

* update reservation

* create reservation

* polishing

* minor fix

* prep for pr

* prep for pr

* polishing

* inventory items reservations

* Update packages/admin-next/dashboard/src/v2-routes/reservations/reservation-list/components/reservation-list-table/reservation-list-table.tsx

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

* fix feedback

* rename to ispending

---------

Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
2024-04-25 10:11:29 +02:00
Shahed Nasser
347aece924 feat(docs-util): predefined OAS schemas (#7139)
* feat(docs-util): predefined OAS schemas

* small fix
2024-04-25 10:01:23 +02:00
Shahed Nasser
f1a7821c19 docs-util: fix clean command removing used schemas (#6774) 2024-04-25 10:00:54 +02:00
Stevche Radevski
f341265f42 feat: Add s3-compatible plugin for the file module (#7143) 2024-04-25 09:06:47 +02:00
Shahed Nasser
abf1283ab6 docs: add details about the new host option of admin (#7142) 2024-04-24 18:01:11 +02:00
Stevche Radevski
614d659a59 feat: Add local file provider and wire everything up in the file module (#7134) 2024-04-24 10:59:58 +02:00
Frane Polić
fe68b5c0f2 refactor(dashboard): refresh domains (#7087) 2024-04-24 10:38:52 +02:00
Kasper Fabricius Kristensen
40686ba980 fix(medusa,admin-ui): Remove forced backendUrl in development, and allow alternative host value. (#7128) 2024-04-24 09:50:59 +02:00
Oli Juhl
10e120062b feat: V2 batch update products in categories (#7125)
* wip

* wip

* fix: batch category update

* update tet

* fix type

---------

Co-authored-by: Stevche Radevski <sradevski@live.com>
2024-04-23 17:17:25 +02:00
Riqwan Thamir
2446151420 feat(medusa): migrate store cart endpoints to zod (#7130) 2024-04-23 13:31:52 +02:00
Shahed Nasser
cfd765bece chore(ui): added API reference comments for Toast component (#7129) 2024-04-23 13:25:06 +02:00
Shahed Nasser
14748755ee chore: remove team from generate docblock actions (#6953) 2024-04-23 12:22:36 +02:00
Riqwan Thamir
93ef94cad3 feat(medusa,types): create promotion flows (#7029)
* chore: create promotion phase

* chore: fix specs + minor ui changes

* chore: minor fixes

* chore: added changeset

* address pr reviews

* chore: fix spec

* Update packages/admin-next/dashboard/src/v2-routes/promotions/common/edit-rules/edit-rules.tsx

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

* chore: fix specs

---------

Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com>
2024-04-23 12:08:39 +02:00
Oli Juhl
b61dcb84c9 chore: Update CODEOWNERS (#7119)
Allow @medusajs/engineering to approve lock-file + package.json changes
2024-04-23 11:37:15 +02:00
Stevche Radevski
9e3556686b fix: Standardize remaining batch methods and update FE calls (#7122) 2024-04-23 09:12:38 +00:00
Kasper Fabricius Kristensen
ea14a3bd68 fix(medusa): Add to default admin customer fields (#7126)
**What**
- Adds `has_account` to the default fields returned by the API.

**Why**
- The field is used heavily in the admin dashboard, so it makes sense to include it out of the box.
2024-04-23 08:52:09 +00:00
Riqwan Thamir
18f3aacee6 feat(core-flows,medusa,types): fulfillment API: create (#7101)
what:

- adds fulfillment create API

RESOLVES CORE-1962
2024-04-23 08:35:44 +00:00
Shahed Nasser
14a7378375 chore: add action to generate v2 oas (#7040) 2024-04-23 11:10:37 +03:00
adil
3ee29f0878 fix-docs: TS error when importing a function as a type only (example logged in user middleware) (#7073) 2024-04-23 07:49:09 +00:00
Kasper Fabricius Kristensen
ef29981a54 fix(dashboard): Update API keys domains with new design (#7123)
**What**
- Adds new design
- Separates secret and publishable keys into two domains (re-uses the same code).
- Adds skeleton layout for loading state of details page.
- Adds toasts.
2024-04-22 20:03:28 +00:00
Riqwan Thamir
38c971f111 feat(medusa,types): add fulfillment provider list api (#7124)
* feat(medusa,types): add fulfillment provider list api

* chore: remove timestamps
2024-04-22 19:35:33 +02:00
Stevche Radevski
0df523594f feat: Convert several batch methods to the standardized format (#7116) 2024-04-22 16:35:10 +02:00
Oli Juhl
0eb68541b8 fix: Resume workflow execution (#7103)
Supercedes #7051 – if OK, I'll move the base of this PR to `develop` and we can run reviews only of this one.

**What**
- Gracefully close BullMQ Worker in Redis Event Bus and Redis Workflow Engine (by @edast, @sradevski)
- Register workflows before MedusaApp is loaded*
- Introduce `onApplicationPrepareShutdown`**
- Refactor plugin resolving for reusability purposes

*We now register workflows before modules are loaded to ensure modules can run workflows as part of bootstrapping. E.g. the Redis Workflow Engine resumes workflows when it starts, which has until this change failed, because the workflows were not registered yet.

**We introduce a new hook to prepare resources for an application shutdown. E.g. closing the BullMQ worker as a preparatory step to closing the BullMQ queue. The worker will continue to process jobs while the queue is still open to receive new jobs (without processing them). 

Co-authored-by: Stevche Radevski <4820812+sradevski@users.noreply.github.com>
Co-authored-by: Darius <618221+edast@users.noreply.github.com>
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-04-22 12:32:50 +00:00
Oli Juhl
67a21c3e45 feat: Update product category (#7092)
* feat: Update product category

* Disable V2 FF in product category tes

* clean up
2024-04-22 12:30:27 +02:00
Carlos R. L. Rodrigues
5c71e8304d feat(orders,utils, cart): orders get endpoints and cart totals (#7010) 2024-04-22 11:06:22 +02:00
Carlos R. L. Rodrigues
cc557c8752 Feat(orders,utils, cart): orders get endpoints and cart totals (#7010) 2024-04-22 09:01:18 +00:00
Stevche Radevski
89143e1032 feat: Add batch method to collection and clean up some batch implementations (#7102) 2024-04-22 08:36:22 +00:00
josetr
0f5b015df0 Fix /admin/product-types v2 endpoint (#7112) 2024-04-22 09:58:57 +02:00
Frane Polić
f62de56b63 feat(dashboard): Region refactor (#7083)
* wip: regions refactor

* feat:  finalize region domain

* fix: cleanup error messages
2024-04-22 08:35:52 +02:00
Kasper Fabricius Kristensen
e2fabc1c05 fix(dashboard,medusa,fulfillment): Move Shipping Profiles to settings (#7090)
**What**
- Moves Shipping Profiles to settings
- Adds `q` and filters to shipping profile list endpoint
- Adds new details page for profiles
2024-04-19 14:11:32 +00:00
Stevche Radevski
9bd2d30595 Chore/finish migration zod (#7098)
* chore: Finish migrating all http endpoints to zod

* chore: Final changes to fully migrate to zod in the HTTP layer
2024-04-19 09:36:44 +02:00
Stevche Radevski
be00a2eb51 chore: Move most of the remaining endpoints to zod (#7096) 2024-04-18 14:12:13 +02:00
Riqwan Thamir
62b9dcc6c1 feat(core-flows,medusa,types): cancel fulfillments API (#7095)
what:

- adds POST cancel fulfillments endpoint

RESOLVES CORE-1972
2024-04-18 11:00:01 +00:00
Stevche Radevski
ccb50bb3da fix: Switch to zod for customer endpoints, fix inconsistencies (#7094) 2024-04-18 10:30:45 +02:00
Stevche Radevski
44829f296a chore: Move several more endpoints to use zod for validation, unify APIs (#7086) 2024-04-18 06:51:43 +00:00
Riqwan Thamir
2a835cae13 feat(pricing): pricing uses big number (#7075)
what:

- pricing model price#amount uses big number.

blocker:

- upsertWithReplace decoration fix
2024-04-17 15:57:41 +00:00
Riqwan Thamir
8d356217bd feat(medusa,core-flows,types): adds batch operations to price list prices (#7077)
what:

- adds batch operations to price list prices

RESOLVES CORE-1969
RESOLVES CORE-1970
2024-04-17 15:36:09 +00:00
Stevche Radevski
08dc861dc1 fix: Support bigNumber in upsertWithReplace (#7084) 2024-04-17 17:07:20 +02:00
Kasper Fabricius Kristensen
7e66dd0dd0 fix(dashboard,medusa): Fixes to Customer and Customer Groups domains (#7081)
**What**
- Cleanup of domains
- Adds toasts
- Adds delete customer hook
- Fixes validation of create and update customer endpoints.
2024-04-17 08:32:21 +00:00
Frane Polić
122b3ea76b refactor: users domain (#7070)
**What**
- refactor users domain to use `DataTable`
- add search params to `User` module models
2024-04-16 16:09:07 +00:00
Stevche Radevski
a7df6235f9 chore: Move several modules to use zod for validation and cleanup routes (#7079) 2024-04-16 18:06:56 +02:00
Frane Polić
0a9b9b073d feat(dashboard): shipping management (#6995)
**What**
- shipping flow
- shipping profile pages
- delete fulfillment set endpoint
- delete shipping profile endpoint
2024-04-16 13:42:56 +00:00
Kasper Fabricius Kristensen
c3260a2c5a feat(ui, dashboard): Toast rework (#7076)
**What**
- Re-works how toasts work in Medusa UI. API is now built on top of `sonner` instead of `@radix-ui/react-toast`. This is a breaking change, and we will need to update the documentation once this has been merged and released (cc: @shahednasser).
- Adds an example of usage in the products list table in the new admin dashboard. As part of the coming weeks cleanup we will add toasts everywhere that they are currently missing.

CLOSES CORE-1977
2024-04-16 13:14:58 +00:00
Kasper Fabricius Kristensen
379ff7a36d fix(dashboard): Wrong hook usage in /collections/create (#7078)
**What**
- Use new hook for creating collections.
2024-04-16 10:59:01 +00:00
Riqwan Thamir
00e6b21bb5 feat(medusa,dashboard,tax): added tax rates and regions UI (#7026)
whats missing:

- make rules required for overrides
- conditions for other rules
- populating condition reference ids with labels on update

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2024-04-16 08:26:12 +00:00
Stevche Radevski
92b633d1cb fix: Switch some modules to using zod for validation, and fix some bugs (#7074) 2024-04-16 07:44:53 +00:00
Oli Juhl
bc081a7777 feat: Create product category flow (#7034)
* feat: Create product category

* address PR comments
2024-04-15 17:11:42 +02:00
Stevche Radevski
fd83e75e4b feat: Add support for batch method for products and product variants (#7038)
* feat(products): Add batch methods for product and variants

* chore: Rename batch validator and minor changes based on PR review
2024-04-15 16:48:29 +02:00