Carlos R. L. Rodrigues
8fbef8a667
fix(order): searchable fields ( #9493 )
...
FIXES: TRI-353
2024-10-07 17:45:20 +00:00
Riqwan Thamir
70564c3c66
fix(medusa): use transform order for store order endpoints ( #9489 )
...
* fix(medusa): use transform order for store order endpoints
* chore: update amount when unit price is present
2024-10-07 13:55:06 +02:00
Riqwan Thamir
2d1f4bcabc
feat(dashboard,core-flows,types,order): change order accepts price updates ( #9476 )
...
* chore: change order can accept price updates
* chore: add changes to transformed order
* chore: fix transform
* chore: transform raw unit price
2024-10-07 10:54:21 +02:00
Oli Juhl
67e08dc989
fix(payment): Capture payment ( #9469 )
...
What
- Add missing `captured_at` field to payment retrieval
- Properly delete Medusa captures in case 3rd party capture call fails
2024-10-04 15:15:10 +00:00
Oli Juhl
f7472a6fa6
fix: Idempotent cart completion ( #9231 )
...
What
- Store result of cart-completion workflow for three days by default
- This enables the built-in idempotency mechanism to kick-in, provided the same transaction ID is used on workflow executions
- Return order from cart-completion workflow if the cart has already been completed
- In case transaction ID is not used on workflow executions, we still only want to complete a cart once
2024-10-04 12:01:09 +00:00
Harminder Virk
48e00169d2
breaking: move shared HTTP utils to the framework ( #9402 )
...
Fixes: FRMW-2728, FRMW-2729
After this PR gets merged the following middleware will be exported from the `@medusajs/framework/http` import path.
- applyParamsAsFilters
- clearFiltersByKey
- applyDefaultFilters
- setContext
- getQueryConfig
- httpCompression
- maybeApplyLinkFilter
- refetchEntities
- unlessPath
- validateBody
- validateQuery
Co-authored-by: Adrien de Peretti <25098370+adrien2p@users.noreply.github.com >
2024-10-03 09:42:00 +00:00
Adrien de Peretti
225d00cd09
chore: improve mikro orm serializer circular ref and link serialization ( #9411 )
2024-10-03 08:22:11 +02:00
Harminder Virk
2d1cf12dac
feature: Add MikroORM CLI wrapper to bypass hardcoded module system ( #9426 )
...
FIXES: FRMW-2727
MikroORM (with version 5.9) has [hardcoded the TypeScript module](https://github.com/mikro-orm/mikro-orm/blob/5.x/packages/core/src/utils/ConfigurationLoader.ts#L138-L139 ) system to `commonjs`, which makes it incompatible with the module system we are using, ie `Node16`.
So, in order to continue using the Mikro ORM CLI within our modules, we will have to monkey-patch the block of code responsible for configuring `ts-node`. However, the monkey-patching must be done before their CLI gets booted.
As a result of this, we have to create a wrapper CLI on top of Mikro ORM CLI that performs the following steps.
- Monkey-patch the relevant code
- Register Mikro ORM CLI as the second step.
Due do this, we will have to use this new wrapper CLI within the modules, which is exposed as `medusa-db`. Maybe, `medusa-db` is not a great name, so please send your suggestions.
2024-10-03 04:51:20 +00:00
Frane Polić
ab7e71a055
fix(dashboard, fulfilment): fulfilment providers enabled check ( #9415 )
...
**What**
- hide disabled fulfilment providers on the admin
- check if the fulfilment provider has an identifier when loading providers
---
FIXES CC-549
2024-10-02 14:48:40 +00:00
Shahed Nasser
7ce9121095
chore(types, utils): update the TSDocs of AbstractFulfillmentProviderService ( #9349 )
...
Updates the `AbstractFulfillmentProviderService` with TSDocs for more useful information and examples
Closes DOCS-950
2024-10-02 09:01:01 +00:00
Frane Polić
c726ed54f5
fix(pricing): price set update deletes price list prices ( #9308 )
...
**Why**
- price set update uses `upsertWithReplace` so price list prices are removed since we "ignore" them in regular price set operations and use price list methods to manage them
**What**
- preserve price list prices when updating price sets
---
FIXES CC-516
2024-10-01 08:37:56 +00:00
Harminder Virk
a578313db9
feature: bundle all modules ( #9324 )
2024-09-30 09:04:03 +02:00
Sebastian Rindom
aef6b290b4
fix: force string compare ( #9360 )
...
fixes CC-536
2024-09-29 11:48:21 +00:00
Oli Juhl
1b4372ae71
fix: Tax region + rates clean up ( #9279 )
...
What
- Require `code` on Tax Rates
- Update dashboard to account for non-nullable code on Tax Rates
- Include `automatic_taxes` in API Route response
Closes CC-524 CC-525
2024-09-29 10:25:33 +00:00
Carlos R. L. Rodrigues
19bc8d7f61
fix(core-flows): shipping options for cart ( #9343 )
...
FIXES: CC-536
Co-authored-by: Frane Polić <16856471+fPolic@users.noreply.github.com >
2024-09-27 12:32:32 +00:00
Harminder Virk
48bea267dc
chore: perform dependencies scan and fix all dependencies ( #9296 )
2024-09-26 14:14:38 +05:30
Adrien de Peretti
fba78c0fb1
chore: remove direct usage from graphql ( #9316 )
...
**What**
Remove direct usage of graphql toold and instead consume it from utils to have a single entry point to graphql tooling
2024-09-26 08:18:26 +00:00
Adrien de Peretti
e096feb7d5
chore: Update modules deps ( #9286 )
2024-09-26 11:14:35 +05:30
Adrien de Peretti
6e5d007837
fix: Generated types interface name ( #9307 )
...
**What**
Fix interface name in the output generated types
2024-09-25 12:32:07 +00:00
Adrien de Peretti
358435d715
chore: Move graphl to a single place ( #9303 )
...
* chore: Move graphl to a single place
* add new line
2024-09-25 12:04:25 +02:00
Adrien de Peretti
6937d74252
chore(): Move dependencies around ( #9278 )
...
RESOLVES FRMW-2716 [1]
**What**
First stab at re organising dependencies in the modules and their usage.
2024-09-24 14:58:04 +00:00
Adrien de Peretti
90d530565b
chore(): Remove default limit from the build query ( #9257 )
...
* chore(): Remove default limit from the build query
* rm take: null
* fix tests
* fix tests
* fix db usage
* fix typo
* rm unsused template arg
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
* fixes
2024-09-24 16:06:45 +02:00
Harminder Virk
9e711720dd
chore: upgrade moduleResolution to Node16 ( #9269 )
2024-09-24 17:19:20 +05:30
Frane Polić
d721282600
fix(pricing): calculate pricing repository query ( #9265 )
...
**What**
- fix wrong parentheses nesting when generating calculate pricing query
- filter out deleted price lists
- use built in DB values for time comparison
---


---
TODO:
- [x] check after price list start/end_date is modified, PL prices are not retrieved properly anymore
---
FIXES CC-518
2024-09-24 10:47:40 +00:00
Riqwan Thamir
69f6645716
feat(core-flows,dashboard,types,fulfillment,medusa): uses requires shipping throughout lifecycle ( #9170 )
...
what:
- uses requires shipping throughout lifecycle
https://github.com/user-attachments/assets/d5ba89d3-5ea0-49c4-b2d5-490c4764933e
2024-09-24 08:26:22 +00:00
Harminder Virk
9f72fb5902
Chore: cleanup workflows SDK ( #9244 )
...
Fixes: FRMW-2712
2024-09-23 11:04:38 +00:00
Frane Polić
39034e2249
fix(user): check if user account with email already exist on invite create ( #9243 )
...
**What**
- when creating an invite, validate that provided email is not already used for existing user account
---
FIXES CC-513
2024-09-23 08:53:53 +00:00
Adrien de Peretti
3084008fc9
feat(index): Provide a similar API to Query ( #9193 )
...
**What**
Align the index engine API to be similar to the Query API
## Example
```ts
// Benefit from the same level of typing like the remote query
const { data, metadata } = await indexEngine.query<'product'>({
fields: [
"product.*",
"product.variants.*",
"product.variants.prices.*",
],
filters: {
product: {
variants: {
prices: {
amount: { $gt: 50 },
},
},
},
},
pagination: {
order: {
product: {
variants: {
prices: {
amount: "DESC",
},
},
},
},
},
})
```
2024-09-20 10:02:42 +00:00
Adrien de Peretti
58167b5dfa
feat(index): Index module foundation ( #9095 )
...
**What**
Index module foundation
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-18 19:04:04 +00:00
Carlos R. L. Rodrigues
3cfcd075ae
chore(link-modules): fulfillment order fieldAlias ( #9185 )
2024-09-18 14:21:43 -03:00
Adrien de Peretti
a734184538
chore(): Handle medusa service base methods events ( #9179 )
...
* chore(): Handle medusa service base methods events
* cleanup
* cleanup
* fix import
* fix decorator order
* fixes
* apply default event emition
* fix binding
* fix binding
* align tests with new event emition
2024-09-18 17:57:00 +02:00
Adrien de Peretti
81d3ae01c7
chore: Cleanup manager decorator usage ( #9181 )
2024-09-18 14:16:20 +02:00
Carlos R. L. Rodrigues
adbeb9cc1d
fix(workflow-engine-*): pass container to flow ( #9180 )
2024-09-18 08:44:11 -03:00
Adrien de Peretti
c6795dfc47
feat(modules-sdk): Parse filters based on loaded modules graph ( #9158 )
2024-09-17 14:20:04 -03:00
Harminder Virk
812b80b6a3
fix: migrate old links tables before performing a sync ( #9164 )
2024-09-17 19:20:35 +05:30
Carlos R. L. Rodrigues
d6ff526820
fix(link-modules): table name ( #9151 )
...
FIXES: FRMW-2706
2024-09-16 19:08:42 +00:00
Carlos R. L. Rodrigues
ef8dc4087e
feat: run nested async workflows ( #9119 )
2024-09-16 13:06:45 +00:00
Riqwan Thamir
3e97a64b21
feat(core-flows,medusa,utils,types): adds delivered_quantity to order ( #9130 )
...
what:
- adds delivered_quantity to order
https://github.com/user-attachments/assets/709b1727-08ed-4a88-ae29-38f13540e301
2024-09-16 09:59:01 +00:00
Carlos R. L. Rodrigues
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Riqwan Thamir
64d5b74c12
feat(api-key,js-sdk,dashboard): allow deleting api keys only once its revoked ( #9118 )
...
what:
- module only deletes api keys once its revoked
- disables ui elements
https://github.com/user-attachments/assets/437821ae-497e-4b59-b02c-4a6ff36e6a30
RESOLVES CC-106
RESOLVES CC-105
RESOLVES CC-104
2024-09-12 10:16:15 +00:00
Carlos R. L. Rodrigues
fdd0543011
chore: joiner config entity property ( #9084 )
2024-09-11 06:25:25 -03:00
Riqwan Thamir
d398009d3f
feat(payment): Payment providers are upserted upon loading ( #9090 )
2024-09-11 09:01:24 +02:00
Riqwan Thamir
3593bdfebe
fix(promotion): handle promotion buy X get X scenario ( #9002 )
...
* fix(promotion): handle promotion buy X get X scenario
* chore: fix qualifiication rules
2024-09-10 15:12:56 +02:00
Adrien de Peretti
e56607c97c
fix(medusa-test-utils): Run with modules without models ( #9062 )
...
* fix(medusa-test-utils): Run with modules without models
* cleanup
* rm dummy model
* rm dummy model
* improve models loading
* find models
* find models
* find models
* finalize
* cleanup
* fix deps
* fix deps
* fix deps
* fix deps
* fix deps
2024-09-10 14:22:21 +02:00
Riqwan Thamir
afd0921326
fix(utils,medusa,order,cart): fix totals when promotions are included ( #9014 )
...
* fix(utils): fix totals when promotions are included
* chore: update totals calc
* chore: ignore taxes when taxable amount is 0
* chore: use subtotals everywhere
* chore: fix shipping totals + tests
2024-09-10 10:59:22 +02:00
Oli Juhl
e27056b3c3
feat: Reset password ( #8962 )
...
* wip
* more work
* wip
* more work
* wrap up first iteration
* work on new approach
* more work
* move middleware func to route
* cleanup
* more work
* wrap up
* more work
* fix workflow
* minor tweaks
* finalize
* Use JWT secret instead
2024-09-06 12:28:29 +02:00
Adrien de Peretti
2c5e72d141
feat: Application types generation from project GQL schema's ( #8995 )
2024-09-06 15:15:32 +05:30
Frane Polić
440f598de8
feat(dashboard, user): prefill invite email ( #9016 )
...
**What**
- store invite email on the JWT invite token
- prefill email in the invite form
---
RESOLVES CC-125
2024-09-05 13:39:48 +00:00
Carlos R. L. Rodrigues
fde2a9b9be
feat(product): product option value methods ( #9004 )
2024-09-05 11:03:29 +00:00
Riqwan Thamir
5d7179b7d0
feat(core-flows,types,promotion): register promotion campaign usage upon cart completion ( #8970 )
...
* feat(core-flows,types,promotion): register promotion campaign usage upon cart completion
* Apply suggestions from code review
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2024-09-05 10:43:29 +02:00