Commit Graph
100 Commits
Author SHA1 Message Date
Carlos R. L. RodriguesandGitHub d6ff526820 fix(link-modules): table name (#9151)
FIXES: FRMW-2706
2024-09-16 19:08:42 +00:00
Carlos R. L. RodriguesandGitHub ef8dc4087e feat: run nested async workflows (#9119) 2024-09-16 13:06:45 +00:00
8829f89402 chore: query graph api (#9125)
CLOSES: FRMW-2704

**What**
Re-structure the Query graph API as well as introduce dynamic typing from schemas on the filters and better handling of relation treatment for fields/filters inference

Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com>
2024-09-16 11:32:44 +00:00
Carlos R. L. RodriguesandGitHub 950cf9af79 chore: remove container registration name (#9137) 2024-09-16 06:22:24 -03:00
Carlos R. L. RodriguesandGitHub e9280fb254 fix: product options event names (#9108) 2024-09-11 15:50:59 +00:00
Carlos R. L. RodriguesandGitHub 9a7daca21e feat(core-flows): product type, option and tag events (#9105) 2024-09-11 12:32:01 -03:00
Carlos R. L. RodriguesandGitHub fdd0543011 chore: joiner config entity property (#9084) 2024-09-11 06:25:25 -03:00
Carlos R. L. RodriguesandGitHub afb83b2408 fix(orchestration): filter out undefined items (#9046) 2024-09-08 07:58:48 -03:00
Carlos R. L. RodriguesandGitHub fde2a9b9be feat(product): product option value methods (#9004) 2024-09-05 11:03:29 +00:00
Carlos R. L. RodriguesandGitHub 2a055b71ef feat(core-flows): custom price flag for order line items and shipping methods (#8969)
CLOSES: CC-402
2024-09-04 20:30:59 +00:00
Carlos R. L. RodriguesandGitHub fb832072a4 fix(utils): graphql enum options (#8985) 2024-09-04 10:40:31 +00:00
Carlos R. L. RodriguesandGitHub 5a097d8954 feat(utils): dml to graphql (#8951) 2024-09-04 06:15:07 -03:00
Carlos R. L. RodriguesandGitHub 4ffb49efd0 chore(cart): completed at (#8921) 2024-08-31 12:42:58 -03:00
Carlos R. L. RodriguesandGitHub 89c6ef8fc9 chore(core-flows): added workflow events (#8915)
* chore(core-flows): added workflow events

* remove from parallelize

* check array
2024-08-30 16:32:08 -03:00
Carlos R. L. RodriguesandGitHub 891037081d chore(core-flows): apply taxes to items and shipping on RMA flows (#8858)
** What
Apply taxes to order line items and shipping methods
2024-08-29 17:33:39 +00:00
Carlos R. L. RodriguesandGitHub 90a6f61c62 fix(order): populate version entities (#8884) 2024-08-29 13:22:24 -03:00
Carlos R. L. RodriguesandGitHub b6521e4c1a feat(medusa): order changes endpoint (#8728)
What:
- `admin/orders/:id/changes` endpoint to get order changes related to the order
- added `*_by` attributes missing
2024-08-29 14:20:12 +00:00
Carlos R. L. RodriguesandGitHub 6cfe9bd874 fix(orchestration): remote joiner alias conflict (#8844) 2024-08-28 11:34:22 -03:00
Carlos R. L. RodriguesandGitHub 8dea3e44c6 fix(order): order change references (#8845) 2024-08-28 08:57:44 -03:00
Carlos R. L. RodriguesandGitHub ff6fcfb139 fix(core-flows,order): return damaged items (#8818) 2024-08-27 11:21:10 -03:00
Carlos R. L. RodriguesandGitHub 571f0c7629 chore(core-flows): product events (#8769) 2024-08-26 18:38:30 -03:00
Carlos R. L. RodriguesandGitHub 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. RodriguesandGitHub afd25846f0 chore: dependencies reorg (#8744) 2024-08-26 09:37:05 +00:00
Carlos R. L. RodriguesandGitHub 12670683af fix(payment-stripe): fix rounding (#8753) 2024-08-25 10:44:51 +02:00
Carlos R. L. RodriguesandGitHub 058378970a chore: dependecies reorg (#8535) 2024-08-23 07:16:04 -03:00
Carlos R. L. RodriguesandGitHub 9931b69a2a chore(core-flows): test allow backorder (#8725) 2024-08-22 11:47:31 +00:00
Carlos R. L. RodriguesandGitHub 4c43122358 chore(core-flows): order edit - remove item update action (#8722) 2024-08-22 11:32:27 +00:00
Carlos R. L. RodriguesandGitHub cad6dae231 fix(core-flows): allow backorder (#8721) 2024-08-22 13:28:22 +02:00
Carlos R. L. RodriguesandGitHub 24377053f0 fix(types): pluralize (#8709) 2024-08-21 14:04:16 -03:00
Carlos R. L. RodriguesandGitHub 27a2dcb10d feat(core-flows): order edit request (#8705) 2024-08-21 13:59:33 -03:00
Carlos R. L. RodriguesandGitHub 99eca64c20 chore(order): preview removed items (#8680) 2024-08-20 14:53:39 -03:00
Carlos R. L. RodriguesandGitHub eb0bfe9f33 feat(workflows-sdk): log on error (#8666) 2024-08-20 06:23:24 -03:00
Carlos R. L. RodriguesandGitHub 1be9373290 chore(core-flows): order update item quantity (#8659) 2024-08-19 18:14:57 +00:00
Carlos R. L. RodriguesandGitHub dd82a56ec5 fix(payment-stripe): fix smallest unit calculation (#8663) 2024-08-19 19:19:49 +02:00
Carlos R. L. RodriguesandGitHub aa6e504771 chore(core-flows): set packed_at when fulfillment is created (#8665) 2024-08-19 19:16:48 +02:00
Carlos R. L. RodriguesandGitHub be942ff15c fix(order): update order summary when transactions change (#8633) 2024-08-16 19:40:44 +00:00
Carlos R. L. RodriguesandGitHub 5200e816c9 fix(order): order summary on order creation (#8624) 2024-08-16 07:52:24 -03:00
Carlos R. L. RodriguesandGitHub ba34c53151 fix(order): summary original_total (#8616) 2024-08-15 14:15:05 -03:00
Carlos R. L. RodriguesandGitHub 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
Carlos R. L. RodriguesandGitHub a45ff1c147 fix(chore-flows): update shipping method price (#8592) 2024-08-14 12:53:59 +00:00
Carlos R. L. RodriguesandGitHub 3d3fd9e500 fix(core-flows): add order transaction on capture (#8591) 2024-08-14 11:16:19 +00:00
Carlos R. L. RodriguesandGitHub 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. RodriguesandGitHub 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
Carlos R. L. RodriguesandGitHub 6ffe85aa3d chore(core-flows): favor runAsStep (#8540) 2024-08-12 06:21:11 -03:00
Carlos R. L. RodriguesandGitHub c9c1a5b41c chore: rm pg dependency (#8526) 2024-08-08 17:22:57 +00:00
Carlos R. L. RodriguesandGitHub 91f07e1a59 chore(order): item update quantity (#8513) 2024-08-08 14:12:16 -03:00
Carlos R. L. RodriguesandGitHub 3f5ddc5bce chore: normalize packages version (#8492) 2024-08-08 13:52:05 +00:00
Carlos R. L. RodriguesandGitHub 0b6bcdd538 chore(core-flows): util to format inventory input (#8483) 2024-08-07 15:15:17 -03:00
Carlos R. L. RodriguesandGitHub c017be2a54 chore(utils): improve to handle util (#8487) 2024-08-07 11:33:19 -03:00
Carlos R. L. RodriguesandGitHub 1fb679e785 feat(core-flows): manage inventory reservation of claims and exchanges (#8448) 2024-08-07 07:49:58 -03:00
Carlos R. L. RodriguesandGitHub 3d7dce2bec fix(core-flows): copy line items attribute (#8471)
removing `requires_shipping` from variant won't be part of this PR
2024-08-06 18:58:08 +00:00
Carlos R. L. RodriguesandGitHub f415e6664c feat(core-flows,order,medusa): exchange endpoints (#8396) 2024-08-06 06:28:27 -03:00
Carlos R. L. RodriguesandGitHub 5125d1328d chore(medusa,core-flows): cart payment collection link (#8457) 2024-08-06 06:12:21 -03:00
Carlos R. L. RodriguesandGitHub 8700896ce6 fix(medusa): plus sign to space (#8454) 2024-08-06 08:01:39 +02:00
Carlos R. L. RodriguesandGitHub 0ec1d98c33 fix(order): return migration enum (#8449) 2024-08-05 11:55:35 +00:00
Carlos R. L. RodriguesandGitHub 5cae91040e chore(core-flows): use create order step on complete cart (#8397) 2024-08-02 06:18:39 -03:00
Carlos R. L. RodriguesandGitHub accf884bb1 chore(core-flows): Order Exchange - initial workflows (#8374)
PR: 1:n

This is the first PR with a initial skeleton for Order exchange workflows.
This is not yet to be considered functional or reflecting the exact behavior of Order Exchanges.

What:
* organize folder structure of order-related steps and workflows 
* initial worklows for Order exchange - This first draft is just a copy of Claims behavior
2024-08-01 10:27:06 +00:00
Carlos R. L. RodriguesandGitHub 169953ad1e fix(core-flows): delete receive return action (#8350) 2024-07-30 12:48:50 +00:00
Carlos R. L. RodriguesandGitHub 48663479a9 chore(core-flows): cancel claims (#8342)
What:
* `DELETE /admin/claims/:id/request`
* `POST /admin/claims/:id/cancel`
2024-07-30 08:59:02 +00:00
Carlos R. L. RodriguesandGitHub 24c105f288 feat(orchestration,workflows-sdk): Skip step (#8334) 2024-07-29 14:26:47 -03:00
Carlos R. L. RodriguesandGitHub ed67d44d28 fix(core-flows,order): update action (#8333) 2024-07-29 12:51:51 -03:00
Carlos R. L. RodriguesandGitHub 42c80e4264 Chore/order claims 2 (#8312) 2024-07-29 10:15:35 -03:00
Carlos R. L. RodriguesandGitHub d63ca00214 chore(core-flows): return fulfillment link (#8304) 2024-07-27 10:20:48 -03:00
Carlos R. L. RodriguesandGitHub 4eb7abbae8 fix(core-flows): update receive returned item (#8295)
FIXES: TRI-68
2024-07-26 13:11:26 +00:00
Carlos R. L. RodriguesandGitHub ccfbc0accf chore(core-flows,medusa): order claims (#8271) 2024-07-25 06:33:35 -03:00
Carlos R. L. RodriguesandGitHub cae27b08bd fix(order): remove nested entities (#8250) 2024-07-23 18:21:33 +00:00
Carlos R. L. RodriguesandGitHub 1aa2d7b611 chore: rm testing path (#8249) 2024-07-23 16:58:54 +00:00
Carlos R. L. RodriguesandGitHub 7a5349c0ae chore(core-flows): adjust inventory when return is received (#8222) 2024-07-23 13:36:46 -03:00
Carlos R. L. RodriguesandGitHub f38f6d53b4 fix(core-flows): confirm return request (#8242) 2024-07-23 13:29:06 -03:00
Carlos R. L. RodriguesandGitHub 3772b805ef fix(core-flows): create return items (#8227) 2024-07-22 21:08:34 +02:00
Carlos R. L. RodriguesandGitHub 037ddd2cec fix(medusa): GET return/:id (#8226) 2024-07-22 21:08:13 +02:00
Carlos R. L. RodriguesandGitHub fb29b958fa chore(inventory, core-flows): big number support (#8204) 2024-07-22 06:32:25 -03:00
Carlos R. L. RodriguesandGitHub 07205e4249 fix(utils): totals calculation (#8190) 2024-07-19 06:49:49 -03:00
Carlos R. L. RodriguesandGitHub 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. RodriguesandGitHub 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
Carlos R. L. RodriguesandGitHub 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
Carlos R. L. RodriguesandGitHub d7e79cfa94 fix(medusa): normalize build path (#8166) 2024-07-17 09:10:37 -03:00
Carlos R. L. RodriguesandGitHub 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. RodriguesandGitHub d4fe2daa57 fix(core-flow): request item return reason (#8152) 2024-07-17 09:35:33 +01:00
Carlos R. L. RodriguesandGitHub 23053afe95 chore(medusa,core-flows): update request return items and shipping (#8151) 2024-07-16 15:23:28 -03:00
Carlos R. L. RodriguesandGitHub 5813216c88 core(core-flows, medusa): remove request item return (#8146) 2024-07-16 11:23:34 -03:00
Carlos R. L. RodriguesandGitHub 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
Carlos R. L. RodriguesandGitHub 8d530aa7f2 Chore(core-flows,order): exchange/claim add item (#8126) 2024-07-15 08:08:43 -03:00
Carlos R. L. RodriguesandGitHub 3d7d629e75 chore(pricing): big number support (#8113) 2024-07-12 19:27:28 +00:00
Carlos R. L. RodriguesandGitHub 4321241553 feat(core-flows): request return on order exchanges and claims (#8107)
FIXES: CC-92, CC-87
2024-07-12 15:48:24 +00:00
Carlos R. L. RodriguesandGitHub b5c658f071 feat(core-flows): begin returns, claims and exchanges (#8088)
* chore(order): begin return

* claims and exchanges
2024-07-11 09:53:00 -03:00
Carlos R. L. RodriguesandGitHub f460348280 fix(utils): define link alias + pluralize (#8070)
What:
 * Fix alias of models that have "compound names": eg "related_product"
 * `deleteCascade` option
 * Package to pluralize english words correctly
2024-07-10 22:37:14 +00:00
Carlos R. L. RodriguesandGitHub de36e2b36e chore: rename return flow (#8050) 2024-07-10 08:09:10 -03:00
Carlos R. L. RodriguesandGitHub 90a34afe87 fix(core-flows): order partial fulfillment (#8047) 2024-07-09 13:46:45 -03:00
Carlos R. L. RodriguesandGitHub 2b2e2fbb3d chore(order): preview order change (#8025)
What:
 - new method `previewOrderChange`
   - Calculate all the actions related to an order change.
   - Return the preview of the final Order, with all the calculated values.
   - Associate actions with items and shipping_methods they modified.

FIXES: CORE-2509
2024-07-09 14:45:55 +00:00
Carlos R. L. RodriguesandGitHub 9badad24aa feat(workflows-sdk): conditional step (#7912)
* chore: move ModuleRegistrationName to utils

* chore(workflows-sdk): conditional step

* type

* when condition
2024-07-05 10:54:18 +02:00
Carlos R. L. RodriguesandGitHub d036130604 fix(cart): add shipping method to cart (#7945) 2024-07-04 12:47:39 +00:00
Carlos R. L. RodriguesandGitHub 56394fe0d4 fix(order): order list payment and fulfillment status (#7934) 2024-07-04 06:37:25 -03:00
Carlos R. L. RodriguesandGitHub a7844efd09 chore: move ModuleRegistrationName to utils (#7911) 2024-07-03 06:30:56 -03:00
Carlos R. L. RodriguesandGitHub 07715e6b50 chore(order): cancel return (#7881) 2024-07-02 06:52:58 -03:00
Carlos R. L. RodriguesandGitHub 17e6a83b59 fix(utils): joiner config from medusa project (#7896) 2024-07-01 13:48:34 -03:00
Carlos R. L. RodriguesandGitHub 9f3998393b fix(totals): order item totals (#7867) 2024-06-28 09:34:25 -03:00
Carlos R. L. RodriguesandGitHub 7602fe8b61 chore: totals refundable_total (#7857) 2024-06-27 13:56:55 -03:00
Carlos R. L. RodriguesandGitHub 61758f374b chore(medusa): return endpoints (#7823) 2024-06-25 13:53:18 +00:00
Carlos R. L. RodriguesandGitHub 5600e58b7f chore(orchestration): idempotent (#7771) 2024-06-25 10:34:00 -03:00