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
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
Carlos R. L. Rodrigues
d7e79cfa94
fix(medusa): normalize build path ( #8166 )
2024-07-17 09:10:37 -03: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
Carlos R. L. Rodrigues
5813216c88
core(core-flows, medusa): remove request item return ( #8146 )
2024-07-16 11:23:34 -03: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
Carlos R. L. Rodrigues
8d530aa7f2
Chore(core-flows,order): exchange/claim add item ( #8126 )
2024-07-15 08:08:43 -03:00
Carlos R. L. Rodrigues
3d7d629e75
chore(pricing): big number support ( #8113 )
2024-07-12 19:27:28 +00:00
Carlos R. L. Rodrigues
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. Rodrigues
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. Rodrigues
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. Rodrigues
de36e2b36e
chore: rename return flow ( #8050 )
2024-07-10 08:09:10 -03:00
Carlos R. L. Rodrigues
90a34afe87
fix(core-flows): order partial fulfillment ( #8047 )
2024-07-09 13:46:45 -03:00
Carlos R. L. Rodrigues
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. Rodrigues
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. Rodrigues
d036130604
fix(cart): add shipping method to cart ( #7945 )
2024-07-04 12:47:39 +00:00
Carlos R. L. Rodrigues
56394fe0d4
fix(order): order list payment and fulfillment status ( #7934 )
2024-07-04 06:37:25 -03:00
Carlos R. L. Rodrigues
a7844efd09
chore: move ModuleRegistrationName to utils ( #7911 )
2024-07-03 06:30:56 -03:00
Carlos R. L. Rodrigues
07715e6b50
chore(order): cancel return ( #7881 )
2024-07-02 06:52:58 -03:00
Carlos R. L. Rodrigues
17e6a83b59
fix(utils): joiner config from medusa project ( #7896 )
2024-07-01 13:48:34 -03:00
Carlos R. L. Rodrigues
9f3998393b
fix(totals): order item totals ( #7867 )
2024-06-28 09:34:25 -03:00
Carlos R. L. Rodrigues
7602fe8b61
chore: totals refundable_total ( #7857 )
2024-06-27 13:56:55 -03:00
Carlos R. L. Rodrigues
61758f374b
chore(medusa): return endpoints ( #7823 )
2024-06-25 13:53:18 +00:00
Carlos R. L. Rodrigues
5600e58b7f
chore(orchestration): idempotent ( #7771 )
2024-06-25 10:34:00 -03:00
Carlos R. L. Rodrigues
cfa983001b
feat(order): create claim and exchange ( #7734 )
2024-06-18 08:08:16 -03:00
Carlos R. L. Rodrigues
d6c6f5998c
chore(orchestration): remote joiner - relationships as map ( #7752 )
2024-06-17 16:11:42 -03:00
Carlos R. L. Rodrigues
12a57836a7
fix(pricing): Only get prices from active price list ( #7753 )
2024-06-17 20:18:08 +02:00
Carlos R. L. Rodrigues
70a72ce2df
chore(payment-stripe): smallest unit ( #7748 )
2024-06-17 13:37:38 -03:00
Carlos R. L. Rodrigues
bc0c65c6b3
feat(modules-sdk): define link ( #7743 )
2024-06-17 09:28:42 -03:00
Carlos R. L. Rodrigues
75811cd4b3
feat(order): Claim and Exchange entities ( #7681 )
2024-06-12 14:49:15 -03:00
Carlos R. L. Rodrigues
37426939da
Feat(order): post purchase support ( #7666 )
2024-06-10 18:44:51 -03:00
Carlos R. L. Rodrigues
56f65f319d
fix(modules-sdk): dependencies ( #7622 )
2024-06-05 11:46:07 -03:00
Carlos R. L. Rodrigues
1ba887f4c9
chore: parallelize steps ( #7605 )
2024-06-04 11:23:53 -03:00
Carlos R. L. Rodrigues
41df24e2dc
chore(workflows-sdk): check exported workflow ( #7592 )
2024-06-04 07:18:40 -03:00
Carlos R. L. Rodrigues
68fb04b849
fix(order): ignore reservation when manage_inventory is false ( #7594 )
2024-06-04 07:08:54 -03:00
Carlos R. L. Rodrigues
122186a78d
chore(order): cancel order ( #7586 )
2024-06-03 12:31:33 -03:00
Carlos R. L. Rodrigues
af0140d317
feat(order): cancel fulfillment ( #7573 )
2024-06-02 09:33:24 -03:00
Carlos R. L. Rodrigues
8a5d9d04a3
chore(payment): provider call outside db transaction ( #7536 )
2024-05-30 07:24:06 -03:00
Carlos R. L. Rodrigues
096372463e
chore(promotion): big number calc ( #7537 )
2024-05-30 07:23:57 -03:00
Carlos R. L. Rodrigues
f1ced57d5f
chore: payment auto capture + remove enum from utils ( #7513 )
...
What:
- handles payments session that are auto captured
- removes all the enums from `@medusajs/types`
- move all `@medusajs/types` to devDependencies
2024-05-29 11:12:59 +00:00
Carlos R. L. Rodrigues
bbca54efa7
chore(order): aggregate statuses ( #7497 )
2024-05-29 07:05:42 -03:00
Carlos R. L. Rodrigues
62ef82f497
feat(order): fulfillment workflow ( #7385 )
...
FIXES: CORE-2162 CORE-2167 CORE-2041
2024-05-27 12:49:33 +00:00
Carlos R. L. Rodrigues
7b0cfe3b77
chore(modules-sdk): throw when failing to load module ( #7431 )
2024-05-23 16:16:36 +00:00
Carlos R. L. Rodrigues
e632b273b7
chore(medusa): upgrade medusa build ( #7425 )
2024-05-23 11:19:44 -03:00
Carlos R. L. Rodrigues
f3d19f5394
fix(workflows-sdk): use loaded modules when container is empty ( #7422 )
2024-05-23 08:26:16 -03:00
Carlos R. L. Rodrigues
e760dbc953
fix(link-modules): fix warn on readonly links ( #7403 )
2024-05-22 13:07:30 +00:00
Carlos R. L. Rodrigues
f57dc98c7a
chore(order): Paid Total and Refunded Total ( #7373 )
2024-05-20 15:48:57 -03:00
Carlos R. L. Rodrigues
48aa09be23
Chore(order): endpoints - Part 1:N ( #7360 )
2024-05-19 14:51:08 -03:00
Carlos R. L. Rodrigues
7c4f4d7388
feat(payment): update payment collection status ( #7335 )
2024-05-15 15:11:40 +00:00
Carlos R. L. Rodrigues
70fd355e46
chore(order): link order and payment collection ( #7334 )
2024-05-14 20:37:27 +00:00
Carlos R. L. Rodrigues
4ef70d37bf
feat(order): receive return and additional calculations ( #7314 )
2024-05-14 08:35:31 -03:00
Carlos R. L. Rodrigues
9dae86daa2
chore: es target 2021 ( #7325 )
2024-05-14 08:07:14 -03:00
Carlos R. L. Rodrigues
e2dfe91071
chore(modules-sdk): Custom Module definition ( #7315 )
2024-05-14 06:59:14 -03:00
Carlos R. L. Rodrigues
6c94d0205c
Feat(order): return reason and transaction methods ( #7303 )
2024-05-13 16:15:25 +00:00
Carlos R. L. Rodrigues
5228b14ca9
feat(medusa): complete cart create reservation ( #7250 )
2024-05-06 14:36:55 -03: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
Carlos R. L. Rodrigues
c32a31e139
feat(inventory): check stock to create reservation ( #7209 )
2024-05-05 10:24:52 +02:00
Carlos R. L. Rodrigues
9d3f495314
feat(fulfillment): shipping options context field ( #7169 )
2024-05-02 09:59:14 -03:00
Carlos R. L. Rodrigues
3affcc2525
chore(orchestration): replace workflow definition in v1 ( #7181 )
2024-04-30 13:19:58 -03:00
Carlos R. L. Rodrigues
1eeb1e9de3
fix(modules-sdk): load custom modules options ( #7176 )
2024-04-30 09:05:55 -03:00
Carlos R. L. Rodrigues
edcafa140c
fix onStepAwaiting events ( #7161 )
2024-04-29 18:55:41 +02:00
Carlos R. L. Rodrigues
4b57c5d286
feat(modules-sdk): remote query context filter ( #7153 )
...
What:
- Remote query now handles `context` keywork in the arguments to forward it as a filter to the method `list`
- Pricing module `list` method returning `calculated_price` if requested as a field
2024-04-26 10:20:42 +00:00
Carlos R. L. Rodrigues
d02905cefa
feat(order): bundled actions ( #7133 )
2024-04-25 07:06:23 -03: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
Carlos R. L. Rodrigues
dd35a4dbff
fix(modules-sdk): Remote Query "order" as config options ( #6925 )
2024-04-08 08:17:53 +02:00
Carlos R. L. Rodrigues
b6879f017a
feat: Totals calculation ( #6980 )
2024-04-07 16:50:40 +02:00
Carlos R. L. Rodrigues
df0751f122
Feat: draft order api ( #6797 )
2024-04-06 16:35:10 +02:00
Carlos R. L. Rodrigues
d333db0842
chore(orchestration): serialize error ( #6967 )
2024-04-06 11:22:48 +02:00
Carlos R. L. Rodrigues and Riqwan Thamir
01487970b2
chore:(product): renaming vars ( #6972 )
...
* feat(product): return parents tree
* query mpath with IN
* more tests
* remove where filters
* revert where
* naming
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2024-04-05 19:22:55 +02:00
Carlos R. L. Rodrigues
09a2220569
feat(product): return parents tree ( #6944 )
...
*What*
include option `include_ancestors_tree` to list products including the parent tree.
2024-04-05 16:46:55 +00:00
Carlos R. L. Rodrigues
56c04f452c
Fix(medusa-test-utils): config loader ( #6919 )
2024-04-03 09:28:40 -03:00
Carlos R. L. Rodrigues
a164c0d512
feat(workflows-sdk,orchestration): async step as background task ( #6886 )
2024-04-03 11:17:00 +02:00
Carlos R. L. Rodrigues
1c6ba4468e
feat(modules-sdk): remote query retrieve ( #6849 )
...
What:
Remote Joiner options to check if keys exist on entry points or relations
2024-03-29 09:26:24 +00:00
Carlos R. L. Rodrigues
e603726985
fix(workflow-engine-*): subscribe response and error ( #6869 )
2024-03-29 08:23:41 +00:00
Carlos R. L. Rodrigues
45c49e89f2
chore(workflows-sdk): add idempotencyKey to shared context ( #6860 )
2024-03-28 17:51:29 +00:00
Carlos R. L. Rodrigues
7e93eda1a4
feat(orchestration,workflows-sdk,core-flows): workflow cancel ( #6778 )
2024-03-22 15:03:06 +01:00
Carlos R. L. Rodrigues and Oli Juhl
60070fb65f
fix(link-modules): recreate dismissed link ( #6764 )
...
* fix(link-modules): recreate dismissed link
* rm type
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-03-20 19:12:48 +01:00
Carlos R. L. Rodrigues
3ca957ec0f
feat(workflows-sdk): additional properties to context ( #6760 )
2024-03-20 17:59:03 +01:00
Carlos R. L. Rodrigues
a8794d48de
fix(orchestrator): inject only if it has decorator ( #6666 )
2024-03-12 08:11:33 +01:00
Carlos R. L. Rodrigues and Adrien de Peretti
d48c076b77
chore(order): big number calculations ( #6651 )
...
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-03-11 17:51:00 +00:00
Carlos R. L. Rodrigues
4625bd1241
feat(orchestration,modules-sdk): options autoCreateServiceNameAlias ( #6622 )
...
What:
Remote joiner options to register service name declared on joiner configs as alias. Default is true, Remote Query in modules-sdk sets it false.
2024-03-07 21:01:30 +00:00
Carlos R. L. Rodrigues and Adrien de Peretti
43399c8d0d
Feat(order): order changes ( #6614 )
...
This is a PR to keep them relatively small. Very likely changes, validations and other features will be added.
What:
Basic methods to cancel, confirm or decline order changes
Apply order changes to modify and create a new version of an order
Things related to calculation, Order and Item totals are not covered in this PR. Properties won't match with definition, etc.
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-03-07 18:24:05 +00:00
Carlos R. L. Rodrigues
8a946beb75
Fix(orchestrator): Joiner field alias ( #6602 )
2024-03-06 15:17:11 -03:00
Carlos R. L. Rodrigues
03ca5c814e
feat(order): order change actions engine ( #6467 )
2024-02-29 16:22:14 -03:00
Carlos R. L. Rodrigues
56b0b45304
Feat(order): order changes ( #6435 )
...
What:
- Order DB schema migration
- BigNumberField Decorator

2024-02-20 23:07:57 +00:00
Carlos R. L. Rodrigues
586df9da25
fix: Loading custom modules ( #6411 )
...
What:
fix custom modules loading in medusa project
pass medusa logger reference to MedusaApp
2024-02-15 15:06:02 +00:00
Carlos R. L. Rodrigues
339a946f38
feat(order): module foundation ( #6399 )
...
What:
Initial Order module foundation.
Basic models and methods to manage entites like in Cart Module
2024-02-15 13:26:00 +00:00
Carlos R. L. Rodrigues
0c2a460751
feat(medusa): workflow engine api ( #6330 )
...
What:
Workflow Engine API.
Endpoints for:
- List workflow executions
- Run a workflow
- Set async steps as success or failure
- Retrieve the details of a workflow run
2024-02-13 15:19:10 +00:00
Carlos R. L. Rodrigues
884428a1b5
feat: event aggregator ( #6218 )
...
What:
- Event Aggregator Util
- Preparation for normalizing event in a new format (backward compatible with the current format)
- GQL Schema to joiner config and some Entities configured
- Link modules emmiting events
2024-02-05 11:59:10 +00:00
Carlos R. L. Rodrigues
96ba49329b
fix: load custom modules by path ( #6312 )
...
What:
medusa-config.js loading custom modules by their path.
```typescript
{
modules: {
internalModule: {
scope: MODULE_SCOPE.INTERNAL,
resources: MODULE_RESOURCE_TYPE.SHARED,
resolve: "./internal_module",
definition: {
key: "internalModule",
registrationName: "internalModule",
},
},
}
}
```
2024-02-04 14:26:34 +00:00
Carlos R. L. Rodrigues
45134e4d11
chore: local workflow proxying methods to pass context ( #6263 )
...
What:
- When calling a module's method inside a Local Workflow the MedusaContext is passed as the last argument to the method if not provided
- Add `requestId` to req
- A couple of fixes on Remote Joiner and the data fetcher for internal services
Why:
- The context used to initialize the workflow has to be shared with all modules. properties like transactionId will be used to emit events and requestId to trace logs for example.
2024-02-01 13:37:26 +00:00
Carlos R. L. Rodrigues
302323916b
feat: Workflow engine modules ( #6128 )
2024-01-23 10:08:08 -03:00
Carlos R. L. Rodrigues
d85fee42ee
chore: use loaded module reference ( #5763 )
2024-01-23 08:31:02 -03:00
Carlos R. L. Rodrigues
19bbae61f8
fix(modules-sdk): create workflow returning step transformer ( #6102 )
2024-01-17 09:17:37 -03:00
Carlos R. L. Rodrigues
ffb0c7b4cd
feat(workflows-sdk): get name method ( #5714 )
2023-11-24 16:39:27 +00:00
Carlos R. L. Rodrigues
9f9db39698
feat(workflows): Workflow DX ( #5607 )
2023-11-22 17:23:39 +00:00