Harminder Virk
ff5d573887
refactor: register plugin routes before the Medusa core routes ( #7395 )
2024-05-22 15:34:53 +05:30
Stevche Radevski
5ede560f70
feat(auth): Revamp authentication setup ( #7387 )
...
* chore: Clean up authentication middlewares
* chore: Rename AuthUser to AuthIdentity
* feat: Define link between user, customer, and auth identity
* feat: Use links for auth, update auth context content
* fix: Adjust user create command with new auth setup
* fix: Make auth login more dynamic, review fixes
* fix: Change test assertions for created by
2024-05-22 10:27:32 +02:00
Stevche Radevski
35dc3c5cf7
fix: Minor HTTP typing fixes ( #7380 )
2024-05-21 12:16:08 +02:00
Harminder Virk
3dbb256ddf
load resources from starter kit and introduce srcDir configuration
2024-05-21 15:02:53 +05:30
Shahed Nasser
73c917fdce
feat(medusa,medusa-cli): add an exec command ( #7376 )
2024-05-21 10:56:44 +02:00
Riqwan Thamir
442b0b2038
chore: rename route from api-v2 to api ( #7379 )
...
* chore: rename route from api-v2 to api
* chore: change oas references
* chore: remove v2 ref
2024-05-21 10:44:02 +02:00
Stevche Radevski
2371626198
feat(sdk): Type all store endpoints in the SDK ( #7375 )
...
The typings will need further refinement, but we can do that once closer to a public release
2024-05-20 19:41:58 +00:00
Carlos R. L. Rodrigues
f57dc98c7a
chore(order): Paid Total and Refunded Total ( #7373 )
2024-05-20 15:48:57 -03:00
Frane Polić
521b4e7926
feat(dashboard): order fulfillment UI ( #7262 )
...
* feat: initial impl. of Unfulfilled section and create flow
* feat: create fulfillment
* feat: order <> fulfillment link, fulfillment section
* feat: accept order_id when creating fulfillment
* feat: finish create and cancel
* fix: integration test
* refactor: real Order<>Fulfillment link instead readonly, add link step to the workflow
* fix: revert `order_id` definitions
* chore: add changeset
* fix: build
* fix: address comments
* fix: fetch inventory and location levels for fulfilled variant
* fix: loading inventory details
* add isList to order fulfillment link
* fix: duplicate declaration
* fix: type
* refactor: link orders step, fix client
* fix: move translations to the new file
* fix: pass order id in test
---------
Co-authored-by: olivermrbl <oliver@mrbltech.com >
2024-05-20 13:41:09 +02:00
Carlos R. L. Rodrigues
48aa09be23
Chore(order): endpoints - Part 1:N ( #7360 )
2024-05-19 14:51:08 -03:00
Oli Juhl
bf4724b8e6
feat: Destroy session + introduce http config ( #7336 )
2024-05-19 12:40:28 +02:00
Stevche Radevski
05e42bc6fc
feat: Add back the subscribers API and load v2 subscribers ( #7358 )
2024-05-17 15:37:56 +00:00
Stevche Radevski
07e5c17f86
chore: Remove medusa interfaces package ( #7347 )
2024-05-16 15:06:21 +02:00
Stevche Radevski
ee924b1b28
feat: Add a simple configurable notifications subscriber ( #7331 )
...
* feat: Add a simple configurable notifications subscriber that is configurable
* Proposal on awaiting all subscribers to run
* fix: Clean up wait subscribers util and notifications test
---------
Co-authored-by: adrien2p <adrien.deperetti@gmail.com >
2024-05-16 13:36:09 +02:00
Kasper Fabricius Kristensen
490586f566
feat(medusa,dashboard,admin-sdk): Run admin dashboard from Medusa instance ( #7330 )
2024-05-15 19:52:09 +02:00
Adrien de Peretti
ec5415ea1a
chore(modules-sdk, medusa): Cleanup migration helpers ( #7342 )
...
**What**
Cleanup the migrations scripts
2024-05-15 15:52:26 +00:00
Adrien de Peretti
13ce60b999
fix(medusa, modules-sdk): Fix migrate command and fix revert support ( #7340 )
2024-05-15 15:46:23 +02:00
Riqwan Thamir
bb2b041954
feat(dashboard): add campaign create to promotion UI ( #7306 )
...
* chore(medusa): strict zod versions in workspace
* feat(dashboard): add campaign create to promotion UI
* chore: fix bug with form reset
* chore: address reviews
2024-05-15 10:43:13 +02:00
Stevche Radevski
5c14d283d0
chore: More cleanup of medusa package ( #7332 )
2024-05-15 09:42:06 +02:00
Carlos R. L. Rodrigues
70fd355e46
chore(order): link order and payment collection ( #7334 )
2024-05-14 20:37:27 +00:00
Shahed Nasser
7a8937fcba
fix(medusa): use pre-defined type in subscriber args ( #7328 )
2024-05-14 17:37:58 +03:00
Stevche Radevski
d680c7ee4c
Remove v1-related code from medusa app ( #7326 )
...
* chore: Remove unused validations and utilities
* chore: Remove all resources that are not being loaded
* chore: Remove unused dependencies, typeorm related code and fix tests
* chore: Use createAdminUser in all module tests
2024-05-14 13:21:30 +02:00
Carlos R. L. Rodrigues
9dae86daa2
chore: es target 2021 ( #7325 )
2024-05-14 08:07:14 -03:00
Harminder Virk
a502222582
refactor: remove usage of inventory_quantity from the codebase ( #7323 )
2024-05-14 13:01:49 +02:00
Shahed Nasser
9ca302d33f
fix(medusa): fix type of data in SubscriberArgs ( #7324 )
2024-05-14 13:59:25 +03:00
Carlos R. L. Rodrigues
e2dfe91071
chore(modules-sdk): Custom Module definition ( #7315 )
2024-05-14 06:59:14 -03:00
Stevche Radevski
bf83d1cfe6
fix: Remove medusa v2 flag from the medusa app package ( #7295 )
2024-05-14 09:23:39 +02:00
josetr
ad007ad7ed
Avoid returning draft_orders from /orders endpoint ( #7302 )
2024-05-14 09:14:24 +02:00
Oli Juhl
5b26f5f2cf
feat: Add publishable key scopes middleware ( #7301 )
...
**What**
Add pub key + sales channel middlewares to the store carts API
- Assign sales channel associated with pub key, if sales channel is not passed in request
- Throw if pub key has multiple associated sales channels
- Throw if sales channel ID in payload is not associated with publishable API key in header
2024-05-13 16:17:52 +00:00
Carlos R. L. Rodrigues
6c94d0205c
Feat(order): return reason and transaction methods ( #7303 )
2024-05-13 16:15:25 +00:00
Adrien de Peretti
e5904f8c75
fix(medusa): Missing middlewares export ( #7289 )
2024-05-10 15:43:43 +00:00
Riqwan Thamir
7e43aabda0
chore(medusa): strict zod versions in workspace ( #7296 )
2024-05-10 17:16:16 +02:00
Riqwan Thamir
6ec5ded6c8
feat(dashboard): add promotions to campaign UI ( #7283 )
...
* feat(core-flows,types,medusa): API to add promotions to campaign
* chore: consolidate specs
* chore: split workflows step into 2
* chore: fix tests
* chore: fix specs
* chore: add promotions to campaign UI
* chore: fix bug wrt to not refreshing
* chore: address review comments
2024-05-10 10:39:01 +02:00
Riqwan Thamir
ea872cbda9
chore: cleanup admin function ( #7285 )
2024-05-10 08:13:14 +00:00
Riqwan Thamir
9a14aeebcf
feat(core-flows,types,medusa): API to add promotions to campaign ( #7277 )
...
what:
- adds an API to add promotions to campaign
- reworks module to perform atomic actions
2024-05-10 07:53:56 +00:00
Riqwan Thamir
6da2964998
feat(dashboard,core,medusa,promotion): add campaigns UI ( #7269 )
...
* feat(dashboard,core,medusa,promotion): add campaigns UI
* chore: add without campaign choice to promotion ui
* chore: fix builds and types
* chore: fix design issues
* chore: address pr reviews
2024-05-09 10:00:28 +02:00
Shahed Nasser
c71a06c87f
fix(medusa): import and use RequestQueryFields from types package ( #7275 )
...
Noticed that `RequestQueryFields` is defined in both the `medusa` and `types` package. Within the `medusa` package sometimes it uses the local type definition or the definition in `types`.
This PR removes the type definition of `RequestQueryFields` in `medusa` and uses that in `types` instead.
2024-05-08 12:55:29 +00:00
Shahed Nasser
67944dcc92
fix(medusa): Fix request type in upload route ( #7271 )
...
The `/admin/uploads` route uses an incorrect input type `CreateProductDTO`. This PR fixes it to the type defined in `validators.ts`.
2024-05-08 10:47:35 +00:00
Stevche Radevski
0f60d1fe96
feat: Add order endpoints for store ( #7266 )
2024-05-07 19:34:44 +02:00
Adrien de Peretti
71f4f46cb9
chore(medusa): cleanup medusa package ( #7206 )
2024-05-07 12:48:49 +02:00
Oli Juhl
8b61dccd0f
fix(dashboard,medusa): Minor clean-up of admin v2 ( #7257 )
2024-05-07 09:39:42 +02:00
Riqwan Thamir
0430e63b0b
feat(core-flows,typers,utils,medusa): add payment auth step to complete cart workflow - [complete cart part 3] ( #7248 )
...
* chore: authorize payment sessions for cart
* chore: add spec for cart returns
* fix: Correctly select fields for cart
* chore: fix specs + address comments
---------
Co-authored-by: Stevche Radevski <sradevski@live.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
2024-05-06 23:34:56 +02:00
Adrien de Peretti
a736e728b8
fix: package.json run test integration in packages ( #7249 )
2024-05-06 19:25:37 +02:00
Stevche Radevski
4e12168dbd
feat: Consolidate payment functions and handle sessions for storefront ( #7231 )
2024-05-06 13:14:40 +00:00
Oli Juhl
cf9605fe6f
feat(order): Add display_id to order table ( #7242 )
...
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-05-05 19:43:13 +02:00
Carlos R. L. Rodrigues
5443c69794
feat(link-module): Order Product link ( #7243 )
2024-05-05 17:26:16 +00:00
Carlos R. L. Rodrigues
aba194de9a
chore: complete cart part 2 ( #7227 )
2024-05-05 10:35:09 -03:00
Oli Juhl
1366e2efad
fix: Retrieve ancestors and/or descendants on product categories ( #7226 )
2024-05-03 18:09:04 +02:00
Frane Polić
e42308557e
feat(dashboard): shipping & location ( #7151 )
2024-05-03 11:51:55 +02:00
Riqwan Thamir
f129415650
feat(medusa,core-flows): complete cart [part-1] ( #7201 )
...
what:
- adds a very basic complete cart endpoint that creates an order
- the complete cart workflow currently does the following:
- create tax lines
- create order
2024-05-02 22:24:50 +00:00