Shahed Nasser
8a3f639f01
chore(core-flows): fix note usage in TSDocs ( #12318 )
2025-04-29 10:49:56 +03:00
Frane Polić
d7a273ff2d
fix(core-flows): handle inventory kit items in mark-as-shipped/delivered flows ( #12269 )
...
* fix(core-flows): handle invetory kit items in mark-as-shipped and mark-as-delivered flows
* fix: typo
* chore: more assertion
* chore: fix comment
* Update packages/core/core-flows/src/order/workflows/create-shipment.ts
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
* fix: undo comment
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-04-26 19:38:00 +02:00
Shahed Nasser
71a5dc448d
chore(core-flows, types): add tsdocs for draft orders workflows ( #12279 )
2025-04-24 11:31:28 +03:00
olivermrbl
2fec5f4aa0
chore: Version packages
2025-04-23 09:27:02 +02:00
Frane Polić
ad74ba2ca4
fix(core-flows, link-modules): return fulfillment creation ( #12227 )
...
* fix: return fulfillment creation
* chore: changeset
* fix: link
* fix: cancel claim flow
* chore: test fulfillment creation as a part of return lifecycle test
* fix: exchanges cancle flow
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-04-22 14:33:46 +02:00
Bastien
d2dde19b73
feat(core-flows): emit updated event in update line item workflow ( #12119 )
...
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-04-22 14:05:29 +02:00
Harminder Virk
24af8f2d8e
fix: expose beforeRefreshingPaymentCollection hook ( #12232 )
...
Fixes: FRMW-2942
Fixes : #12228
2025-04-18 09:31:19 +00:00
Oli Juhl
fe74e77a7a
chore: Pass more data to fulfillment provider ( #12186 )
...
* fix(core-flows): Add more fulfillment data
* fix(core-flows): Add more fulfillment data
* add more fields
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2025-04-18 10:24:46 +02:00
Shahed Nasser
6f83dbc019
chore: fixes and updates to promotion and shipping option TSDocs ( #12222 )
2025-04-17 18:29:39 +03:00
Shahed Nasser
19d71fdc63
fix(core-flows): export registerOrderDeliveryStep ( #12221 )
...
Export registerOrderDeliveryStep to ensure devs can use it and to show it in the docs
2025-04-17 15:08:26 +00:00
Shahed Nasser
1c5e82af51
chore(core-flows,types): fix links in TSDocs pointing to architectural modules ( #12213 )
2025-04-17 15:01:28 +03:00
Frane Polić
01542f6973
feat(core-flows, js-sdk, medusa): draft order shipping removal ( #12124 )
...
**What**
- allow removal of a shipping method
---
CLOSES CMRC-1013
2025-04-16 06:10:24 +00:00
Adrien de Peretti
2f6963a5fb
fix(): Event group id propagation and event managements ( #12157 )
2025-04-14 15:57:52 -03:00
Frane Polić
413a0da26c
fix(core-flows): draft order reservations ( #12115 )
...
* fix: draft order reservations
* feat: add test case
* fix: assert item ids
2025-04-13 17:40:16 +02:00
olivermrbl
d61694385d
chore: Version packages
2025-04-11 10:25:36 +02:00
Pedro Guzman
8804ca2f9c
fix: allow backorder variants to be added to cart even if no locations ( #12083 )
...
* fix: allow backorder variants to be added to cart even if no locations
* document and unit test prepareConfirmInventoryInput
2025-04-09 19:15:42 +02:00
Shahed Nasser
9ac74eead4
feat(core-flows,types): export fetchShippingOptionForOrderWorkflow ( #12103 )
...
* feat(core-flows,types): export fetchShippingOptionForOrderWorkflow
* revert change
* change to tsdoc
* fix errors
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-04-08 13:05:03 +03:00
Shahed Nasser
4780226145
chore(core-flows): added TSDocs for setPricingContext hooks ( #12100 )
2025-04-07 14:49:24 +03:00
Frane Polić
a8513019db
fix(core-flows,dashboard): handling authorized payment collection on OE ( #11958 )
...
* wip: handling authorized payment collection on OE
* fix: update condition
* fix: condition for creation
* chore: remove commented code
* chore: changeset, refactor
* chore: typo, comments
* fix: add a test case
* fix: reorg workflows, partially captured
* fix: status enum type
2025-04-02 13:57:44 +02:00
Kasper Fabricius Kristensen
f441362f4a
feat(medusa,core-flows,types,js-sdk): Draft Order workflows and API endpoints ( #11805 )
2025-04-02 10:23:33 +02:00
Frane Polić
5f3a82f5c3
fix(core-flows): applying product type promotion ( #12051 )
...
* fix: applying porduct type promotion
* Create fair-terms-tell.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-04-02 09:35:25 +02:00
Frane Polić
95e89a39f3
feat(core-flows, types): try payment cancelation if cart complete fails in the webhook ( #11832 )
...
* fix: try compensating if cart complete fails, reorder process paymnet workflow steps
* fix: condition
* fix: feedback
* feat: changes to the compensation step
* fix: build
* fix: remove payment id as arg
* fix: when input
* chore: remove captures realtion, changeset
* fix: return lates payment object from authorize payment
2025-03-28 14:49:54 +01:00
Harminder Virk
b1b3b48474
feat: Set pricing context hook ( #11891 )
2025-03-28 15:17:52 +05:30
Riqwan Thamir
1f8fab3636
feat(core-flows,types,order,cart): assign tax lines only to regular products ( #11994 )
...
what:
- assign tax lines only to regular products
2025-03-26 22:26:34 +00:00
Carlos R. L. Rodrigues
01089d5bc8
chore(core-flows): price list skip when no data ( #11977 )
2025-03-25 10:55:30 -03:00
Frane Polić
de8c034d1b
feat(core-flows, types): calculated shipping in RMA flows ( #11533 )
...
* wip: calculated SO pricing in RMA flows
* fix: types
* chore: small refactor
* feat: caluclated shipping in return flow
* fix: module integrations
* fix: array containing
* feat: refresh shipping on update item quantity
* rm: log
* rm: log2
* feat: update interface, remove flag
* fix: revert change on OE for now
* fix: import
* feat: refactor flwos, cleanup cacluation cotext data model, wip exchanges
* feat: refreshing inbound/outbound shipping on items change
* feat: refresh exchange shipping on return item add, test
* feat: refresh shipping on exchange/return item remove
* fix: check optional
* feat: test recalculation on quantity update
* feat: calculated shipping on claims
* fix: comment
* wip: address comments
* fix: more remote query, fix build
* refactor: claim refresh workflow
* fix: remove throw option
* fix: deconstruct param
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2025-03-24 07:07:47 +01:00
Frane Polić
8385a5e34d
feat(core-flows): revisit fulfillment flow reservations and support inventory kit ( #11790 )
...
* feat: fulfillment flow with reservations and inventory kit
* fix: account for custom line items
* chore: cleanup, changeset
* fix: revert action check
* fix: deduplicate, test item qunatities, compute line item quantity from fulfillment items
* fix:
* fix: improve types
* fix: optimize fetched fileds in cancel fulfillment workflow
* fix: add a test case
* chore: update type
2025-03-19 13:15:24 +01:00
Riqwan Thamir
9dd62d93bd
feat(core-flows,types,utils): make payment optional when cart balance is 0 ( #11872 )
...
what:
- make payment optional when cart balance is 0
2025-03-17 19:03:22 +00:00
Riqwan Thamir
cb6249320e
fix(types,order,medusa): Create credit lines + hooks ( #11569 )
...
what:
- api/workflows to create credit lines
- hooks to enable extending credit lines
2025-03-17 15:20:59 +00:00
OttavioCas
5e892e2f05
add no_notification to shipment created event ( #11836 )
2025-03-14 13:05:14 -03:00
Stevche Radevski
e0109540fa
feat: Change customer to account_holder to be one-to-many ( #11803 )
2025-03-12 16:05:38 +01:00
olivermrbl
f1cac99316
chore: Version packages
2025-03-10 15:44:09 +01:00
Frane Polić
70eaaa9196
fix(core-flows): fulfillment reservation check ( #11735 )
2025-03-09 13:47:10 +01:00
Carlos R. L. Rodrigues
b7678983a9
chore(cart, core-flows): Improve tax lines algo management ( #11715 )
...
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2025-03-09 12:43:18 +00:00
Riqwan Thamir
f00bb8efcf
fix(core-flows): conditionally create, update or delete products when input is present ( #11758 )
...
what:
- runs create / update /delete workflows for bulk workflow conditionally
FIXES https://github.com/medusajs/medusa/issues/11749
depends on https://github.com/medusajs/medusa/pull/11756
2025-03-06 13:41:20 +00:00
Adrien de Peretti
84f991192e
feat(workflows-sdk): Allow when then in parallelize ( #11756 )
...
**What**
Update typings to allow using when then inside parallelize
2025-03-06 13:23:37 +00:00
Oli Juhl
3b470f4142
chore: remove ranges on medusa packages ( #11738 )
2025-03-06 14:17:05 +01:00
olivermrbl
5d74ac3cc3
chore: Version packages
2025-03-04 14:11:37 +01:00
Carlos R. L. Rodrigues
7dbec10b3b
fix(order): summary raw totals ( #11712 )
2025-03-04 11:01:12 +00:00
Avia-Code
cc829185f4
feat: added hook for createStockLocationsWorkflow ( #11491 )
...
What
This commit introduces the `stockLocationsCreated` hook to the `createStockLocationsWorkflow`.
Why
The hook was missing and necessary to improve the workflow's extensibility.
How
Added the `stockLocationsCreated` hook and updated related logic within the workflow.
Testing
1. Create new medusa project via create-medusa-app
2. Connect this custom branch of medusa to it
3. Create `src/workflows/hooks/stock-locations-created.ts` file with the following content:
```
import { createStockLocationsWorkflow } from "@medusajs/medusa/core-flows"
createStockLocationsWorkflow.hooks.stockLocationsCreated(
(async ({ stockLocations, additional_data }, { container }) => {
console.log({stockLocations})
})
)
```
4. Create new admin account and create there a new stock location
5. The log should be displayed in terminal
2025-03-04 10:53:39 +00:00
Frane Polić
e23f204b7c
fix(dashboard, core-flows, medusa): prevent creation of empty fulfillments ( #11664 )
2025-03-03 16:54:20 +00:00
Adrien de Peretti
d1efad9bf0
chore(): Improve cart update line items ( #11666 )
...
**What**
Currently, we are potentially providing an array of selector/data leading to fetching data sequentially before running on update which will fetch data again in batch and perform the update. Now we can pass the data directly which includes the id already and only perform one bulk fetch + one bulk update.
This pr also include a fix on the inventory validation, currently, only the item to update inventory is being checked, with this pr we also check the inventory for the items that needs to be created
2025-03-03 10:06:40 +00:00
Frane Polić
c50487ccab
fix(core-flows): return created order return from workflow ( #11642 )
...
* fix: return created order return from workflow
* fix: type
* fix: middeware export
2025-02-28 10:15:13 +01:00
Frane Polić
090d15b1e4
fix(core-flows): unsafe access to a variant property ( #11588 )
...
**What**
- fix unsafe access `manage_inventory` flag if variant doesn't exist for the item
---
CLOSES https://github.com/medusajs/medusa/issues/11587
2025-02-27 07:58:47 +00:00
Riqwan Thamir
38beeb157e
fix(core-flows): support 0 as a valid unit price for custom line items ( #11631 )
2025-02-26 19:32:35 +01:00
Adrien de Peretti
caf83cf78c
chore: prevent workflow steps to call modules when not necessary ( #11632 )
...
**What**
Some steps were calling the modules even when nothing was needed which for some operations would create transaction for nothing leading to extra execution time that add up very quickly on cloud network
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2025-02-26 17:42:48 +00:00
Oli Juhl
54a6ef91ac
chore: Move token from params to headers ( #11281 )
...
* chore: Move token from params to body
* chore: Add type
* wip
* chore: clean up
* clean ip
2025-02-26 17:41:16 +01:00
Carlos R. L. Rodrigues
65eb3aa6c8
chore(core-flows): use cart id when force_refresh is true ( #11625 )
2025-02-26 11:01:05 -03:00
BOUAZZA Ayyoub
93cbc6b669
Fix/add additionl data to product categories hook ( #11226 )
...
* fix: add additional_data to categoriesCreated hooks
* fix: restore yarn.lock
* fix: add additional_data param in the http validators
* fix: add additional_data to updateProductCategoriesWorkflow
* Update yarn.lock
* fix: fix merge
* fix: refert yarn.lock
* fix: revert tarn.lock
* Create clean-poets-promise.md
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2025-02-26 14:58:01 +01:00
Carlos R. L. Rodrigues
322d108c03
chore(core-flows): pass cart as reference to subflows ( #11617 )
2025-02-26 08:26:44 -03:00