Adrien de Peretti
a01e7e4ffe
chore: Register Query in container ( #9103 )
...
* chore(framework): Register the query
* chore(framework): Register the query
2024-09-11 15:08:46 +02:00
Riqwan Thamir
a729fb3fbb
feat(utils,types,framework,medusa): store endpoints should require publishable key ( #9068 )
...
* feat(utils,types,framework,medusa): store endpoints should require publishable key
* chore: fix specs
* chore: fix more specs
* chore: update js-sdk
* chore: fix specs wrt to default SC
* chore: revert custom headers + change error message
* chore: fix specs
* chore: fix new store specs
2024-09-11 15:08:37 +02:00
Carlos R. L. Rodrigues
fdd0543011
chore: joiner config entity property ( #9084 )
2024-09-11 06:25:25 -03:00
Frane Polić
28dc8d4d17
feat(dashboard) modal search autofocus ( #9038 )
...
**What**
- autofocus search input on route modal that have tables
---
CLOSES CC-132
2024-09-11 08:12:34 +00:00
Riqwan Thamir
d398009d3f
feat(payment): Payment providers are upserted upon loading ( #9090 )
2024-09-11 09:01:24 +02:00
Riqwan Thamir
c097931469
feat(core-flows,types,medusa): validate deleting location level when quantities exist ( #9086 )
...
what:
- adds validation in workflow to prevent deleting a location level when reserved or stocked quantity exists
- disabled delete button when quantities exist
- consolidate delete workflows
<img width="1079" alt="Screenshot 2024-09-10 at 16 39 02" src="https://github.com/user-attachments/assets/cf1f4b2e-75ea-4f7c-9b97-24622396c632 ">
RESOLVES CC-120
2024-09-10 17:59:03 +00:00
Oli Juhl
4bf42f7889
fix: Update auth app_metadata when deleting users + customers ( #9041 )
...
* wip
* more work
* working on stuff
* more
* fix test
* remove incorrect test
* fix test
* fix: Only allow deletion of yourself
* remove redundant tests
2024-09-10 19:58:16 +02:00
Riqwan Thamir
e9e0267aa8
fix: broken order page due to missing inventory ( #9083 )
2024-09-10 13:24:13 +00:00
Frane Polić
3e7d4ddcd5
fix(dashboard): campaign fixes ( #9082 )
...
**What**
- fix campaign dropdown placeholder
- fix create campaign broken modal
---

---
FIXES CC-112
2024-09-10 13:21:06 +00: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
Shahed Nasser
1d8dd54014
fix(core-flows): fix emitted event for deleting sales channel ( #9081 )
...
Fix the usage of the user event instead of sales channel event
2024-09-10 12:24:19 +00: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
Frane Polić
36f30b4833
fix(dashboard): refresh order list when fulfilment status changes ( #9076 )
...
**What**
- update order list when fulfillment/shipment status changes
---
RESOLVES TRI-224
CLOSES [9052](https://github.com/medusajs/medusa/issues/9052 )
2024-09-10 12:21:04 +00:00
Harminder Virk
a944226025
fix: JSON stringify DML json property default value ( #9074 )
2024-09-10 15:58:42 +05:30
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
Stevche Radevski
3244067ee4
feat: Add support for fetch streaming to js SDK ( #9065 )
2024-09-10 09:14:10 +02:00
Frane Polić
0714315792
fix(dashboard): rq cache and pending flag ( #9063 )
...
**What**
- fix issues from stale data on modal pages
---
FIXES CC-137
2024-09-09 19:06:10 +00:00
Shahed Nasser
dfb095e2ea
chore(types, medusa): clean up to request / response types ( #9067 )
...
Smaller clean up to request / response types
2024-09-09 18:52:02 +00:00
Harminder Virk
2020b35e52
breaking: turn off mikro orm casing change with DML properties ( #9058 )
2024-09-09 19:54:02 +05:30
Shahed Nasser
4ffcc41fe7
chore(utils): update auth provider TSDocs + fix errors stopping references build ( #9023 )
...
- Updated the TSDocs of the auth provider
- Update the Node version in the docs-util as the outdated version was causing TypeScript error
- Add `@ts-ignore` for a line that was causing a typescript error. If there's a better fix here let me know
2024-09-09 13:53:33 +00:00
Adrien de Peretti
423bae1d73
chore(modules-sdk): Move Query and cleanup ( #9054 )
...
* chore(modules-sdk): Move Query and cleanup
* cleanup
* fix memoization
2024-09-09 12:42:17 +02:00
Stevche Radevski
4031da35b0
fix: Allow specifying PORT for tests through environment ( #9055 )
2024-09-09 11:56:15 +02:00
Harminder Virk
32ebfa619f
feature: introduce types for query.graph method ( #9031 )
2024-09-09 13:26:40 +05:30
Shahed Nasser
c962283281
fix(types, medusa): request / response types clean-up ( #9043 )
...
More clean-up of request / response types
2024-09-09 06:59:43 +00:00
Carlos R. L. Rodrigues
afb83b2408
fix(orchestration): filter out undefined items ( #9046 )
2024-09-08 07:58:48 -03:00
Shahed Nasser
cf387aafa2
chore: re-add oas tests for generated OAS ( #9036 )
...
* chore: re-add oas tests for generated OAS
* test fix
2024-09-07 08:01:22 +02:00
Stevche Radevski
f32091f702
fix: Check for star actor types when allowing unregistered access ( #9037 )
2024-09-06 15:16:10 +02:00
Alexander Nortung
20545b194e
fix: wrap ModuleImplementations so that all methods are async ( #9012 )
2024-09-06 12:59:52 +02:00
Stevche Radevski
62e0c593c8
feat: Add support for refreshing JWT tokens ( #9013 )
...
* feat: Add support for refreshing JWT tokens
* feat: Add refresh method to the auth SDK
2024-09-06 12:58:57 +02:00
Shahed Nasser
3ba0ddcd43
fix(types): add inventory_quantity to http variant type ( #9030 )
2024-09-06 13:33:02 +03: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
Shahed Nasser
ac30a989f4
feat(create-medusa-app): add publishable API key environment variable to Next.js storefront ( #9029 )
...
When installing with Next.js starter, retrieve the publishable API key seeded and add it to the environment variable in the `.env.local` or `.env.template` file
2024-09-06 09:43:55 +00:00
Kasper Fabricius Kristensen
e5b90b2d97
fix(dashboard): Fixes to campaign and promotions domains ( #9022 )
2024-09-05 22:18:38 +02:00
Frane Polić
c27aa46939
feat(dashboard): add inventory kit info in order summary ( #8990 )
...
**What**
- display inventory kit if the items' variant has one
---

2024-09-05 13:46:48 +00:00
Riqwan Thamir
0573bb924a
chore: Remove typeORM ( #9005 )
...
* chore: rename js files to txt
* chore: rename ts files to txt
* chore: delete environment helpers
* chore: convert global setup & teardown to txt
* chore: rename helper js/ts files to txt
* chore: rename seeder js/ts files to txt
* chore: remove typeorm
* chore: reintroduce used helpers
2024-09-05 15:45:30 +02:00
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
Carlos R. L. Rodrigues
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
Kasper Fabricius Kristensen
0fe1201435
feat(admin-sdk,admin-bundler,admin-shared,medusa): Restructure admin packages ( #8988 )
...
**What**
- Renames /admin-next -> /admin
- Renames @medusajs/admin-sdk -> @medusajs/admin-bundler
- Creates a new package called @medusajs/admin-sdk that will hold all tooling relevant to creating admin extensions. This is currently `defineRouteConfig` and `defineWidgetConfig`, but will eventually also export methods for adding custom fields, register translation, etc.
- cc: @shahednasser we should update the examples in the docs so these functions are imported from `@medusajs/admin-sdk`. People will also need to install the package in their project, as it's no longer a transient dependency.
- cc: @olivermrbl we might want to publish a changelog when this is merged, as it is a breaking change, and will require people to import the `defineXConfig` from the new package instead of `@medusajs/admin-shared`.
- Updates CODEOWNERS so /admin packages does not require a review from the UI team.
2024-09-04 19:00:25 +00:00
Shahed Nasser
6519fd6bfd
feat(types,medusa): add acknowledgement typing ( #8991 )
2024-09-04 21:29:57 +03:00
Shahed Nasser
ee3580efdb
fix(core-flows, types, medusa): fix batch delete types in workflows and routes ( #8974 )
...
- Fix the returned data of batch delete steps / workflows for deleted records to just be the array of IDs.
- Add a new type `BatchResponse` for API routes to have a different shape for deleted records
- Update batch delete helpers to return the expected shape for API routes
2024-09-04 18:22:48 +00:00
Oli Juhl
f063a69632
chore(core-flows): Add invite resent event ( #8986 )
2024-09-04 19:53:29 +02:00
Shahed Nasser
4b1827ed48
fix(types,medusa): fix query types for some store routes ( #8994 )
2024-09-04 19:36:55 +03:00
Frane Polić
13e4f4aeb5
fix(dashboard): import products labels ( #9001 )
...
FIXES CC-337
2024-09-04 16:24:41 +00:00
Stevche Radevski
b9ea116697
fix: Remove deprecated method, generalize typings in auth ( #8998 )
2024-09-04 16:05:56 +00:00
Stevche Radevski
ed26fb4d19
fix: Check actor type on account creation, fix github entity id ( #8996 )
2024-09-04 17:23:31 +02:00
Riqwan Thamir
de6f61b05f
feat: added totals tests for end 2 end RMA flow ( #8906 )
...
what:
I've added some specs and comments in the specs for where I think totals are incorrect.
Lets get this test merged in as the status quo and proceed to fix these issues one by one.
Additionally, this also removes the temporary_difference as its not something we use.
RESOLVES CC-346
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-09-04 13:11:04 +00:00
matteoxplo
91f17fb176
fix: Workflow always print "error:" even if there are none ( #8978 )
...
Fix issue [https://github.com/medusajs/medusa/issues/8976 ](https://github.com/medusajs/medusa/issues/8976 )
2024-09-04 12:17:25 +00:00