Riqwan Thamir and GitHub
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 and GitHub
950cf9af79
chore: remove container registration name ( #9137 )
2024-09-16 06:22:24 -03:00
Adrien de Peretti and GitHub
a9b559ab2e
fix(dml): Throw when many to many are not configured properly ( #9085 )
...
**What**
When both sides of a many to many relationship do not define the mapped by option, it leads to misconfigured relations and a malformed SQL query. (ref. https://github.com/medusajs/medusa/issues/9075 )
- When both mapped by are not defined, infer look up to try to identify the missing configuration if any
- Disallow defining many to many only on one side
2024-09-12 07:08:24 +00:00
Carlos R. L. Rodrigues and GitHub
e9280fb254
fix: product options event names ( #9108 )
2024-09-11 15:50:59 +00:00
Carlos R. L. Rodrigues and GitHub
9a7daca21e
feat(core-flows): product type, option and tag events ( #9105 )
2024-09-11 12:32:01 -03:00
McTom234 and GitHub
5651e890dc
fix: instanceof MedusaError does not work ( #9094 )
...
* fix(error): add custom name
* revert: remove changeset
as requested https://github.com/medusajs/medusa/pull/9094#discussion_r1753971768
* refactor(error): use object identifier to check error type
2024-09-11 17:21:44 +02:00
Riqwan Thamir and GitHub
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 and GitHub
fdd0543011
chore: joiner config entity property ( #9084 )
2024-09-11 06:25:25 -03:00
Harminder Virk and GitHub
a944226025
fix: JSON stringify DML json property default value ( #9074 )
2024-09-10 15:58:42 +05:30
Riqwan Thamir and GitHub
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
Harminder Virk and GitHub
2020b35e52
breaking: turn off mikro orm casing change with DML properties ( #9058 )
2024-09-09 19:54:02 +05:30
Shahed Nasser and GitHub
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
Harminder Virk and GitHub
32ebfa619f
feature: introduce types for query.graph method ( #9031 )
2024-09-09 13:26:40 +05:30
Stevche Radevski and GitHub
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
Oli Juhl and GitHub
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 and GitHub
2c5e72d141
feat: Application types generation from project GQL schema's ( #8995 )
2024-09-06 15:15:32 +05:30
Oli Juhl and GitHub
f063a69632
chore(core-flows): Add invite resent event ( #8986 )
2024-09-04 19:53:29 +02:00
Carlos R. L. Rodrigues and GitHub
fb832072a4
fix(utils): graphql enum options ( #8985 )
2024-09-04 10:40:31 +00:00
Carlos R. L. Rodrigues and GitHub
5a097d8954
feat(utils): dml to graphql ( #8951 )
2024-09-04 06:15:07 -03:00
Riqwan Thamir and GitHub
ff623f8b00
fix(order,utils): fix outstanding amount stuck on long orders ( #8968 )
2024-09-03 18:48:47 +02:00
Adrien de Peretti and GitHub
99461e24ab
feat(notification): Handle long running transaction and add status support ( #8900 )
...
RESOLVES FRMW-2110
RESOLVES FRMW-2095
**What**
- Fix notification module to not retain transactions open while sending notification
- Add support for notification status [success, pending, failure]
2024-09-01 08:01:47 +00:00
Carlos R. L. Rodrigues and GitHub
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
Adrien de Peretti and GitHub
3da01035f3
fix: Shipping profile deletion with options ( #8910 )
...
* fix(fulfillment): Prevent deletion of profiles associated to options
* add tests
* typo
* address feedback
2024-08-30 17:04:29 +02:00
Harminder Virk and GitHub
9b6c2e5efa
fix: ignore metadata when computing relationships from payload ( #8895 )
2024-08-30 13:32:25 +05:30
Adrien de Peretti and GitHub
77b874f272
feat: Add support for providers to validate their options at loading time ( #8853 )
...
* feat: Add support for providers to validate their options at loading time
* fix missing removal
* fix integration tests
* add tests
2024-08-29 09:08:49 +02:00
Adrien de Peretti and GitHub
52e394055c
fix(utils): DML hasOne - belongsTo not behaving correctly ( #8813 )
...
FIXES FRMW-2676
**What**
ref: https://discord.com/channels/876835651130097704/1023889804544458752/threads/1276979858781503528
Currently, when providing the following
```ts
const user1 = manager.create(User, {
username: "User 1",
team: {
name: "Team 1",
},
})
```
It would result in an error inserting into the database because the foreign key will be sent twice as part of the insert, one for the relation and one for the foreign key that both relate to the foreign key property.
To fix that and allow both approaches (providing the entity to cascade persist or just providing the foreign key in case of another side nullable relation) we need to handle it a bit differently.
now both approaches would be valid. the entities for the example might not be the best ones but it is just to illustrate
option 1 - we create both the user and the team:
```ts
const user1 = manager.create(User, {
username: "User 1",
team: {
name: "Team 1",
},
})
```
option 2 - the team already exists (for example the previous user have been detached from the team but we kept the team alive and assign a new user to that team) :
```ts
const user1 = manager.create(User, {
username: "User 1",
team_id: team.id
})
```
2024-08-28 15:45:48 +00:00
Adrien de Peretti and GitHub
5bec38538a
chore: Treat internal event differently, primarely do not display info logs for those events ( #8767 )
...
* chore: Treat internal event differently, primarely do not display info log for those events
* revert doc
* add few tests
* only set internal option if present
* revert to previous condition
* start including feedback after discussion
* include feedback
* fix modules integration tests
* fix modules integration tests
* fix event bus local
2024-08-28 16:46:40 +02:00
Oli Juhl and GitHub
c11ef01c15
feat: Separate registration from authentication in auth domain ( #8683 )
...
* wip
* feat: Introduce register
* fix: user command
* fix: Invite HTTP tests
* fix: Auth tests
* fix: Invite modules tests
2024-08-27 13:44:52 +02:00
2bacf86d3c
chore: Remove prepublishOnly script ( #8699 )
...
* wip
* wip
* verbose logging
* remove prepublish scripts
* chore: add back prepublish scripts
* wip
* remove prepublishOnly script
* chore: Clean up rest of build scripts
* add back build script
* feedback
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-08-27 10:31:38 +02:00
Carlos R. L. Rodrigues and GitHub
571f0c7629
chore(core-flows): product events ( #8769 )
2024-08-26 18:38:30 -03:00
Harminder Virk and GitHub
7c2cfc132a
feature: add db:create command ( #8760 )
2024-08-26 15:04:52 +05:30
Harminder Virk and GitHub
9a508056f6
feat: add env editor utility to edit update .env files ( #8741 )
2024-08-25 19:31:56 +05:30
Carlos R. L. Rodrigues and GitHub
058378970a
chore: dependecies reorg ( #8535 )
2024-08-23 07:16:04 -03:00
Shahed Nasser and GitHub
bc74e381ad
feat(utils): use dotenv-expand to allow variables within env ( #8720 )
2024-08-22 13:51:36 +03:00
Carlos R. L. Rodrigues and GitHub
99eca64c20
chore(order): preview removed items ( #8680 )
2024-08-20 14:53:39 -03:00
Harminder Virk and GitHub
5f310c0a00
breaking: remove POSTGRES prefix env variables in favor of DATABASE prefix ( #8672 )
2024-08-20 17:05:19 +05:30
Harminder Virk and GitHub
69830ca89c
fix: maintain connections pool ( #8670 )
2024-08-20 14:54:52 +05:30
Stevche Radevski and GitHub
a013c4edc5
feat: Move userpass default definition to defineConfig instead of a hard-coded value ( #8557 )
2024-08-13 11:10:23 +02:00
Carlos R. L. Rodrigues and GitHub
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. Rodrigues and GitHub
c9c1a5b41c
chore: rm pg dependency ( #8526 )
2024-08-08 17:22:57 +00:00
Carlos R. L. Rodrigues and GitHub
91f07e1a59
chore(order): item update quantity ( #8513 )
2024-08-08 14:12:16 -03:00
Stevche Radevski and GitHub
4af82aab32
fix: Use local notification provider for feed channel by default ( #8518 )
2024-08-08 18:22:50 +02:00
Carlos R. L. Rodrigues and GitHub
c017be2a54
chore(utils): improve to handle util ( #8487 )
2024-08-07 11:33:19 -03:00
Shahed Nasser and GitHub
98f42e8995
feat(create-medusa-app, medusa): check Node.js version before installation. ( #8452 )
...
Check before installation with `create-medusa-app` and `medusa new` whether the current node version is >= 20. If not, exit with an error.
2024-08-06 07:15:17 +00:00
Shahed Nasser and GitHub
a1f86fe415
chore(utils): add missing imports in notification TSDocs ( #8447 )
...
Add missing imports in the example snippet of the notification provider.
2024-08-05 11:15:55 +00:00
Shahed Nasser and GitHub
5ed5b45cce
chore(utils, types): updated TSDocs of AbstractPaymentProvider ( #8335 )
...
- Update the TSDocs of `AbstractPaymentProvider`
- Remove old TSDocs of `IPaymentProvider`
- Update the config that generates the payment module provider reference.
Closes DOCS-781
2024-08-01 15:50:34 +00:00
Oli Juhl and GitHub
dbd0b18726
feat: Add requested_at + open status to return ( #8391 )
...
* feat: Add requested_at + open status to return
* Update return in confirm claim workflow
* Revert snapshot
* feat: Change OrderChangeType
* fix test
2024-08-01 16:20:45 +02:00
Stevche Radevski and GitHub
4081b3359d
feat: Add support for sorting export headers ( #8386 )
...
* feat: Add support for sorting export headers
* fix: Minor fixes to import flow
2024-08-01 13:23:49 +02:00
Stevche Radevski and GitHub
8a6e172dec
feat:Make product import v1 compatible ( #8362 )
2024-07-31 13:03:05 +02:00
Harminder Virk and GitHub
864bb0df05
breaking: implement workflow hooks (first iteration) ( #8346 )
2024-07-31 15:36:38 +05:30