Commit Graph

215 Commits

Author SHA1 Message Date
Oli Juhl
2bacf86d3c chore: Remove prepublishOnly script (#8699)
* wip

* wip

* verbose logging

* remove prepublish scripts

* chore: add back prepublish scripts

* wip

* remove prepublishOnly script

* chore: Clean up rest of build scripts

* add back build script

* feedback

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-08-27 10:31:38 +02:00
Carlos R. L. Rodrigues
571f0c7629 chore(core-flows): product events (#8769) 2024-08-26 18:38:30 -03:00
Carlos R. L. Rodrigues
3b4eea08ef chore: peer dependency version (#8771)
* fix peer dependency version

* dotenv

* commands

* dotenv cli
2024-08-26 21:55:57 +02:00
Carlos R. L. Rodrigues
afd25846f0 chore: dependencies reorg (#8744) 2024-08-26 09:37:05 +00:00
Stevche Radevski
57e7653adf fix: Doing update to cart with shipping options set removes them (#8752) 2024-08-25 10:46:48 +02:00
Carlos R. L. Rodrigues
058378970a chore: dependecies reorg (#8535) 2024-08-23 07:16:04 -03:00
Riqwan Thamir
59599ac237 feat(core-flows,dashboard): adds item validations for claims, returns and exchanges (#8735)
what:

- adds item validations for claims, returns and exchanges
- prevents autofocus on item add
- reset item quantity when error
2024-08-23 09:30:27 +00:00
Frane Polić
49353f8c3c feat(dashboard): order edit UI (#8700)
**What**
- order edit create flow
- active order edit panel

**Note**
- basic implementation of the flow, edge cases from the design such as fulfilled quantities validation will be added in a followup
2024-08-23 06:42:06 +00:00
Carlos R. L. Rodrigues
4c43122358 chore(core-flows): order edit - remove item update action (#8722) 2024-08-22 11:32:27 +00:00
Carlos R. L. Rodrigues
cad6dae231 fix(core-flows): allow backorder (#8721) 2024-08-22 13:28:22 +02:00
Shahed Nasser
64820cebef chore(core-flows): move cart and line item flows outside definition (#8703)
* chore(core-flows): move cart and line item flows outside definition

* remove all references of definition

* export cart and line items
2024-08-22 12:19:37 +03:00
Riqwan Thamir
335061d8cd feat(medusa,types,core-flows): apply created_by values - claims, exchanges, returns, fulfillment (#8712)
what:

- Applies created_by values - claims, exchanges, returns, fulfillment

RESOLVES CC-96
2024-08-21 18:15:55 +00:00
Carlos R. L. Rodrigues
27a2dcb10d feat(core-flows): order edit request (#8705) 2024-08-21 13:59:33 -03:00
Riqwan Thamir
de7848f68d fix(core-flows): account for unfulfilled items while generating order status (#8698)
what:

- account for unfulfilled items while generating order status

RESOLVES CC-314
2024-08-21 14:33:43 +00:00
Riqwan Thamir
a7d03ec562 feat(dashboard,core-flows): ability to refund payment post RMA flow (#8685) 2024-08-21 09:58:09 +02:00
Riqwan Thamir
8bd284779e feat(dashboard,core-flows,js-sdk,types): ability to mark payment as paid (#8679)
* feat(core-flows): create or update payment collections in RMA flows

* chore: change ui to pick payment link from unpaid payment collection

* Apply suggestions from code review

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

* chore: fix mathbn

* feat(dashboard,core-flows,js-sdk,types): ability to mark payment as paid

* chore: add captured bt

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-08-20 22:58:28 +02:00
Riqwan Thamir
430d9a38c4 feat(core-flows): create or update payment collections in RMA flows (#8676)
* feat(core-flows): create or update payment collections in RMA flows

* chore: change ui to pick payment link from unpaid payment collection

* Apply suggestions from code review

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>

* chore: fix mathbn

---------

Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com>
2024-08-20 18:40:58 +02:00
Riqwan Thamir
fa44e3f5a8 feat(dashboard,core-flows,js-sdk,types,link-modules,payment): ability to copy payment link (#8630)
what: 

- enables a button to create a payment link when a payment delta is present
- api to delete order payment collection
- adds a pending amount to payment collections

Note: Not the happiest with the decision on when to create a payment collection and when not to. The code should programatically create or delete payment collections currently to generate the right collection for the payment delta. Adding a more specific flow to create and manage a payment collection will help reduce this burden from the code path and onto CX/merchant.

Another issue I found is that the payment collection status doesn't get updated when payment is complete as it still gets stuck to "authorized" state

https://github.com/user-attachments/assets/037a10f9-3621-43c2-94ba-1ada4b0a041b
2024-08-20 10:30:17 +00:00
Carlos R. L. Rodrigues
1be9373290 chore(core-flows): order update item quantity (#8659) 2024-08-19 18:14:57 +00:00
Carlos R. L. Rodrigues
aa6e504771 chore(core-flows): set packed_at when fulfillment is created (#8665) 2024-08-19 19:16:48 +02:00
Riqwan Thamir
adcd25650c feat(medusa,core-flows,types): API to create payment collections for order (#8617)
what:

- adds an API to create a payment collection for order
2024-08-16 08:16:40 +00:00
Riqwan Thamir
82c147b91e feat(dashboard,core-flows,js-sdk,types,medusa): Add exchange UI + fixes (#8606)
what:

- adds exchange UI
- fixes bugs on core-flows and endpoints
- random set of tiny fixes


https://github.com/user-attachments/assets/b163b9c1-4475-4936-ae98-20795760cc55
2024-08-15 17:54:51 +00:00
Carlos R. L. Rodrigues
c92aa3e397 feat(core-flow): order edit endpoints (#8596)
* The relevant part of this PR is only at folder `packages/medusa/src/api/admin/order-edits/`
All the other changes are Types

Missing: 
* `/store` endpoints to confirm/decline the order change
* http tests of the full flow
2024-08-15 16:59:36 +00:00
Riqwan Thamir
4cb28531e5 feat(core-flows,dashboard): add fixes to allow only outbound or inbound claims (#8590)
what:

- allows completing claim with only inbound items
- allows completing claim with only outbound items
- validates against creating claims when an active change order is present
2024-08-14 21:09:05 +00:00
Carlos R. L. Rodrigues
a45ff1c147 fix(chore-flows): update shipping method price (#8592) 2024-08-14 12:53:59 +00:00
Carlos R. L. Rodrigues
3d3fd9e500 fix(core-flows): add order transaction on capture (#8591) 2024-08-14 11:16:19 +00:00
Riqwan Thamir
01c8e4d3c1 fix(core-flows): fixes build fails (#8584) 2024-08-13 13:30:18 +00:00
Riqwan Thamir
e823021446 feat(core-flows): introduce a generic create entities step (#8553) 2024-08-13 14:50:17 +02:00
Riqwan Thamir
6f50e376a9 fix(core-flows): fixes duplicate fulfillment issue (#8581)
what:

- fixes a bug where fulfilling an outbound item was throwing an error due to the entire order being processed for fulfillment

RESOLVES CC-298
2024-08-13 10:40:46 +00:00
Carlos R. L. Rodrigues
1ff988c3f8 feat(core-flows): order edit flows (#8555)
What:
 - Order edit workflows

Tests of the flows will come in a next PR together with http endpoints
2024-08-13 09:47:01 +00:00
Carlos R. L. Rodrigues
96bdf3e2c6 chore(core-flows): order transactions (#8568)
What:

- Add order transaction when Cart is completed and payment is refunded
2024-08-12 19:06:58 +00:00
Riqwan Thamir
dd4147314f feat(core-flows,dashboard,medusa): fixes set of tiny bugs in claims flow (#8551)
* feat(types,dashboard): ability to set shipping methods for claim

* chore: fix a bunch of stuff

* chore: update comment
2024-08-12 13:09:19 +02:00
Carlos R. L. Rodrigues
6ffe85aa3d chore(core-flows): favor runAsStep (#8540) 2024-08-12 06:21:11 -03:00
Shahed Nasser
79b49c1288 chore(core-flows): export used steps / workflows (#8534)
Export steps / workflows I missed that weren't exported but are used by other workflows
2024-08-09 13:29:54 +00:00
Shahed Nasser
f659c6d8bd chore(core-flows): [10] export types and types, add basic TSDocs (#8520)
* chore(core-flows): [10] export types and types, add basic TSDocs

* fix overlapping names

* fix overlapping name
2024-08-09 09:08:27 +02:00
Shahed Nasser
f9a8fcc0bc chore(core-flows): [13] export types and steps, add basic TSDocs (#8523) 2024-08-08 21:14:10 +03:00
Shahed Nasser
10f72f15b0 chore(core-flows): [15] export types and steps, add basic TSDocs (#8525) 2024-08-08 21:13:55 +03:00
Shahed Nasser
6efdfbc9a6 chore(core-flows): [18/18] export types and types, add basic TSDocs (#8529) 2024-08-08 20:03:49 +03:00
Shahed Nasser
faa09d12f6 chore(core-flows): [17] export types and steps, add basic TSDocs (#8528) 2024-08-08 20:03:38 +03:00
Shahed Nasser
8ee3da4644 chore(core-flows): [16] export types and steps, add basic TSDocs (#8527) 2024-08-08 20:03:27 +03:00
Shahed Nasser
e386216512 chore(core-flows): [14] export types and steps, add basic TSDocs (#8524) 2024-08-08 20:03:13 +03:00
Shahed Nasser
288ed2747b chore(core-flows): [12] export types and types, add basic TSDocs (#8522) 2024-08-08 20:02:42 +03:00
Shahed Nasser
4c2d605599 chore(core-flows): [11] export types and types, add basic TSDocs (#8521) 2024-08-08 20:02:28 +03:00
Shahed Nasser
945b920708 chore(core-flows): [9] export types and types, add basic TSDocs (#8519)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 9/n
2024-08-08 16:41:12 +00:00
Shahed Nasser
6e4037edf4 chore(core-flows): [8] export types and types, add basic TSDocs (#8517)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 8/n
2024-08-08 16:39:32 +00:00
Shahed Nasser
89fd065fa3 chore(core-flows): [7] export types and types, add basic TSDocs (#8514)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 7/n
2024-08-08 16:38:10 +00:00
Shahed Nasser
0bfe31e594 chore(core-flows): [6] export types and types, add basic TSDocs (#8512)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 6/n
2024-08-08 16:37:03 +00:00
Christian
d4c5f6593d Feat: admin return reason list (#8482)
* feat: add missing endpoints to return reason sdk

* add return reason list route

* add return reason query hooks

* fix update return reasons in order modules service

* fix store/return-reasons middleware

* add missing tests for /return-resasons/:id
2024-08-08 16:24:13 +02:00
Shahed Nasser
f9989e1659 chore(core-flows): [5] export types and types, add basic TSDocs (#8510)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 5/n
2024-08-08 14:15:06 +00:00
Shahed Nasser
cb6796fe4b chore(core-flows): [2] export types and types, add basic TSDocs (#8505)
This PR exports types and steps from the core-flows package, and adds simple TSDocs for workflows / steps. This is essential for the workflows reference.

PR 2/n
2024-08-08 14:14:55 +00:00