Adrien de Peretti
12054f5c01
feat: Fulfillment module basic structure ( #6319 )
...
**What**
Scafold the fulfillment module basic structure
**Bonus**
Simplified module scaffolding with new factories and less directories to manage
- mikro orm connection loader factory
- initialize factory
FIXES CORE-1709
FIXES CORE-1710
2024-02-06 13:29:36 +00:00
Philip Korsholm
b2eaac8cb1
feat(user): Init user module ( #6293 )
...
* init user module
* add migration
* update module with latest utils
* pr ready
* make interface types interfaces
2024-02-06 11:10:54 +08:00
Oli Juhl
823b98aaa1
feat: Region Module (basic CRUD) ( #6315 )
2024-02-05 16:03:26 +00:00
Kasper Fabricius Kristensen
73fd92a1af
feat(dashboard): Log in, reset password, and accept invite pages ( #6310 )
2024-02-05 11:16:10 +01:00
Kasper Fabricius Kristensen
8cbf6c60fe
feat(dashboard): DataTable component ( #6297 )
2024-02-02 21:56:55 +01:00
Philip Korsholm
9fda6a6824
feat(auth): add authentication endpoints ( #6265 )
...
**What**
- Add authentication endpoints:
- `/auth/[scope]/[provider]`
- `/auth/[scope]/[provider]/callback`
- update authenticate-middleware handler
- Add scope field to user
- Add unique constraint on scope and entity_id
note: there's still some remaining work related to jwt auth to be handled, this is mainly focussed on session auth with endpoints
Co-authored-by: Sebastian Rindom <7554214+srindom@users.noreply.github.com >
2024-02-02 10:45:32 +00:00
Sebastian Rindom
7903a15e0f
feat(customer): Add create and retrieve customer from store side ( #6267 )
...
**What**
- GET /store/customers/me
- POST /store/customers
- Workflow for customer account creation
- Authentication middleware on customer routes
2024-01-31 11:58:29 +00:00
Sebastian Rindom
87390704be
feat(customer): list customer ( #6206 )
...
**What**
- GET /admin/customers
- GET /admin/customer-groups
2024-01-29 16:56:39 +00:00
Philip Korsholm
512b041929
Feat(auth): Rename authentication to auth ( #6229 )
...
**What**
- rename `authenticationModule` -> `authModule`
2024-01-29 10:19:30 +00:00
Frane Polić
3db2f95e65
feat: sales channel module ( #5923 )
2024-01-29 09:47:28 +01:00
olivermrbl
c27bb2a61d
chore: Release
2024-01-25 16:27:55 +01:00
olivermrbl
7b30512a65
chore: Remove workspace range in deps
2024-01-25 14:08:25 +01:00
Shahed Nasser
e84847be36
feat(medusa-oas-cli): updated redocly-cli to v1.7 ( #6211 )
...
## What
Updates `@redocly/cli` to v1.7. This resolves the bug of TypeScript and tsx code samples in the OAS being generated as undefined files (see files under `www/apps/api-reference/specs/admin/code_samples/tsx` and `www/apps/api-reference/specs/store/code_samples/tsx`
I avoided re-generating OAS so that this PR doesn't have a huge diff. When the next release is out, an automated PR will be opened to update the OAS files, replacing the undefined files with `.tsx` files.
### Other Changes
- Small fixes to `medusa-oas-cli` README for clarity
2024-01-25 07:53:58 +00:00
Philip Korsholm
efd9204e26
Feat(medusa-test-utils, authentication, customer, cart, payment, pricing, product, promotion): Add initModule util ( #6200 )
...
* use initModules instead of initialize when runnning auth module integration tests
* rm unused module-config
* correct db schema fix
* update authentication integration tests w/ initModule
* update cart integration tests w/ initModule
* update customer integration tests w/ initModule
* update payment integration tests w/ initModule
* update pricing integration tests w/ initModule
* update product integration tests w/ initModule
* update promotion integration tests w/ initModule
* add initModule to more product tests and return medusaApp from initModule
* align moduleOptions naming
* update dependencies
2024-01-25 10:37:38 +08:00
Shahed Nasser
f29948a6a8
docs-util: created docblock-generator tool ( #6096 )
2024-01-24 11:13:40 +01:00
Philip Korsholm
b3d013940f
feat(authentication): Google authentication provider ( #6104 )
...
* init
* add entity_id and update provider
* initial implementation
* update lockfile
* fix conflicts
* add config variables
* update types
* refactor google provider
* re-order methods
* fix pr feedback p. 1
* add initial type and update callback authorization
* add google provider to integration test
* fix feedback
* initial implementation (#6171 )
* initial implementation
* remove oauth lib
* move abstract authentication provider
* shuffle files around
* Update packages/authentication/src/migrations/Migration20240122041959.ts
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
* call verify with token
---------
Co-authored-by: Carlos R. L. Rodrigues <37986729+carlos-r-l-rodrigues@users.noreply.github.com >
2024-01-24 09:57:58 +08:00
Carlos R. L. Rodrigues
302323916b
feat: Workflow engine modules ( #6128 )
2024-01-23 10:08:08 -03:00
Philip Korsholm
24bb26b81a
Feat(authentication): username password provider ( #6052 )
2024-01-23 09:04:22 +00:00
Adrien de Peretti
5e655dd59b
chore: Hide repository creation if they are not custom + add upsert support by default ( #6127 )
2024-01-19 15:09:38 +01:00
Sebastian Rindom
12aa1737d5
feat: customer module skeleton ( #6126 )
2024-01-19 10:18:54 +00:00
Riqwan Thamir
a12c28b7d5
feat(medusa,types): add promotion list/get endpoint ( #6110 )
...
what:
- adds get promotion endpoint (RESOLVES CORE-1677)
- adds list promotions endpoint (RESOLVES CORE-1676)
- uses new API routes
2024-01-18 16:01:19 +00:00
Kasper Fabricius Kristensen
e49b6944e3
feat(dashboard): 3.0 product collection ( #6120 )
2024-01-18 15:01:34 +01:00
Sebastian Rindom
5cfb662ec0
fix: migrate segment subscribers + typescript support ( #5904 )
...
Fixes #6068 .
**What**
- Uses new Subscriber API.
- Adds support for typescript files in Segment plugin.
- Adds a peerDependency on @medusajs/medusa for the version that introduced new Subscriber API.
2024-01-18 09:38:33 +00:00
Kasper Fabricius Kristensen
a2c149e7e5
feat(dashboard,ui): Streamline spacing and sizing ( #6061 )
2024-01-15 11:43:16 +01:00
Oli Juhl
192bc336cc
feat(cart): Partial module service implementation ( #6012 )
...
Awaiting #6000 #6008
**What**
- CRUD for Address in Cart Module service
- Tests for CRUD Carts + Address
**Not**
- Line items, shipping methods, tax lines, adjustment lines
2024-01-12 10:30:57 +00:00
Frane Polić
8472460f53
feat: Payment module package setup ( #6059 )
2024-01-11 16:41:40 +01:00
Adrien de Peretti
a9b4214503
chore(utils, product): Attempt to simplify module scripts export ( #6021 )
2024-01-09 20:20:05 +01:00
olivermrbl
aea85893e2
chore: Release
2024-01-09 18:46:24 +01:00
Kasper Fabricius Kristensen
f868775861
chore: move next admin packages to core repo ( #5983 )
...
**What**
- Move packages for `next` version of admin to core repo
**Other**
- Since this PR introduces packages that depend on Vite 5, it also introduces @types/node@^20. We have never had a direct dependency on the types package for Node, and as far as I can see that has resulted in us using the types from Node.js@8, as those are a dependency of one of our dependencies. With the introduction of @types/node@^20, two of our packages had TS errors because they were using the NodeJS.Timer type, which was deprecated in Node.js@14. We should add specific @types/node packages to all our packages, but I haven't done so in this PR to keep it as clean as possible.
- Q: @olivermrbl I've added the new packages to the ignore list for changeset, is this enough to prevent them from being published?
2024-01-08 09:26:46 +00:00
Oli Juhl
99a4f94db5
feat(medusa-payment-stripe): Add delay to Stripe webhook ( #5838 )
...
**What**
- Migrate Stripe plugin to use API Routes + Subscribers
- Change the behaviour of Stripe webhook
Instead of processing webhook events immediately, we fire an event to perform the work in the background. The primary reason for changing the webhook is that the previous implementation led to occasional conflicts due to a race condition between the client's and the webhook's request to complete a cart. Now, we emit an event with a configurable delay (defaults to 2s) to prevent this from happening
This approach was preferred over adding a timeout directly to the webhook execution, as it is generally best practice to respond to a webhook event immediately after receiving it.
2024-01-05 12:37:53 +00:00
Philip Korsholm
d16d10619d
Feat(medusa-test-utils, utils, pricing, product, link-modules): upgrade mikro orm version to latest ( #5985 )
...
* update mikro-orm version
* add changeset
* update product tests
* add optional number serializer util
* upgrade cart mikro-orm versions
* clean up test
2024-01-02 17:11:55 +01:00
Oli Juhl
925feea04a
feat(cart): Add cart module package ( #5982 )
...
* feat: Add CartModule foundation
* remove migration
* fix ts issue
* Create hot-dingos-pay.md
2024-01-02 15:59:23 +01:00
Philip Korsholm
6d1e3cc028
feat(types,module-sdk): setup authentication module skeleton ( #5943 )
...
**What**
- add authentication module skeleton
2023-12-21 06:56:20 +00:00
Riqwan Thamir
3f6d79961d
feat(types,modules-sdk): basic module setup for promotions ( #5920 )
...
RESOLVES CORE-1580
2023-12-20 12:21:13 +00:00
olivermrbl
9623fcafe6
chore: Release
2023-12-14 15:31:50 +01:00
Kasper Fabricius Kristensen
591ba2388d
fix(ui): Bump cva and minor type fixes ( #5818 )
...
**What**
- Bumps `class-variance-authority` to new beta version - `cva@beta`.
- Updates all usages of `cva` to new API.
- Clear up the naming of types in `usePrompt`
**Why**
- A bug in how `class-variance-authority` exported its types mean that we were relying on patching the package to ensure that the correct types made it into the build of our UI package. This was important to ensure intellisense for component variants, such as `<Button size="large" />`. Previously in the UI monorepo, having the patch was enough to ensure that the correct types made it into the build, but that was not the case after we moved the design system to the core repo. The issue with types is fixed in the `@1` version of `cva` which is currently in beta. I have pinpointed the version to the current beta version to ensure stability despite the package currently being in beta.
2023-12-07 20:13:44 +00:00
pepijn-vanvlaanderen
a53ae1e29b
feat(medusa): Replace Node Redis with ioredis ( #5656 )
...
* Replaced Node Redis with ioredis
* Update express.ts
2023-12-06 09:10:56 +01:00
Riqwan Thamir
c4deeee481
fix(modules-sdk): add graphql dependency to modules-sdk ( #5750 )
2023-11-28 17:11:44 +00:00
olivermrbl
cf0939aab2
chore: Release
2023-11-27 16:45:56 +00:00
olivermrbl
a982e60a0e
chore: Bump lock-file
2023-11-27 08:28:09 +00:00
Adrien de Peretti
ddbeed4ea6
chore(workflows, core-flows): Split workflows tooling and definitions ( #5705 )
2023-11-24 13:55:48 +00:00
olivermrbl
adc60e519c
chore: Release
2023-11-21 08:52:26 +00:00
olivermrbl
ebf63dffc4
chore(medusa-oas-cli,medusa-source-shopify): Remove workspace versions
2023-11-20 18:24:30 +00:00
olivermrbl
03e56aed74
chore: Release
2023-11-10 10:38:47 +01:00
Kasper Fabricius Kristensen
e3f1da92db
fix(admin-ui, ui): Align @types/react versions across UI packages ( #5596 )
...
* fix: Align @types/react versions across UI packages
* update codeowners
2023-11-10 08:31:30 +01:00
Adrien de Peretti
f90ba02087
feat(utils): Introduce promiseAll util ( #5543 )
2023-11-08 08:48:48 +01:00
Kasper Fabricius Kristensen
e4ce2f4e07
chore(ui,icons,ui-preset,toolbox): Move design system packages to monorepo ( #5470 )
2023-11-07 22:17:44 +01:00
olivermrbl
0af6e5534b
chore: Release
2023-11-01 08:24:54 +01:00
Oli Juhl
65639cb8c1
fix(integration-tests): Add missing deps + timeout to repos test ( #5506 )
2023-10-31 12:18:55 +01:00
Philip Korsholm
148f537b47
feat(medusa): integrate pricing module to core ( #5304 )
...
* add pricing integraiton feature flag
* init
* first endpoint
* cleanup
* remove console.logs
* refactor to util and implement across endpoints
* add changeset
* rename variables
* remove mistype
* feat(medusa): move price module integration to pricing service (#5322 )
* initial changes
* chore: make product service always internal for pricing module
* add notes
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
* nit
* cleanup
* update to object querying
* update cart integration test
* remove uppercase currency_code
* nit
* Feat/admin product pricing module reads (#5354 )
* initial changes to list prices for admin
* working price module implementation of list prices
* nit
* variant pricing
* redo integration test changes
* cleanup
* cleanup
* fix unit tests
* [wip] Core <> Pricing - price updates (#5364 )
* chore: update medusa-app
* wip
* get links and modules working with migration
* wip
* chore: make test pass
* Feat/rule type utils (#5371 )
* initial rule type utils
* update migration script
* chore: cleanup
* ensure prices are always decorated
* chore: use seed instead
* chore: fix oas conflict
* region id add to admin price read!
---------
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com >
* pr feedback
* create remoteQueryFunction type
* fix merge
* fix loaders issue
* Feat(medusa, types, pricing): pricing module migration script (#5409 )
* add migration script for money amounts in pricing module
* add changeset
* rename file
* cleanup imports
* update changeset
* add check for pricing module and ff
* feat(medusa,workflows,types): update prices on product and variant update (#5412 )
* wip
* chore: update product prices through workflow
* chore: cleanup
* chore: update product handler updates prices for variants
* chore: handle reverts
* chore: address pr comments
* chore: scope workflow handlers to flag handlers
* chore: update return
* chore: update db url
* chore: remove migration
* chore: increase jest timeout
* Feat(medusa): update migration and initDb to run link-migrations (#5437 )
* initial
* loader update
* more progress on loaders
* update integration tests and remote-query loader
* remove helper
* migrate isolated modules
* fix test
* fix integration test
* update with pr feedback
* unregister medusa-app
* re-register medusaApp
* fix featureflag
* set timeout
* set timeout
* conditionally run link-module migrations
* pr feedback 1
* add driver options for db
* throw if link is not defined in migration script
* pass config module directly
* include container in migrate command
* chore: increase timeout
* rm redis from api integration tests to test
* chore: temporarily skip tests
* chore: undo skips + add timeout for workflow tests
* chore: increase timeout for order edits
* re-add redis
* include final resolution
* add sharedcontainer to medusaapp loader
* chore: move migration under run command
* try removing redis_url from api tests
* chore: cleanup server on process exit
* chore: clear container on exit
* chore: adjustments
* chore: remove consoles
* chore: close express app on finish
* chore: destroy pg connection on shutdown
* chore: skip
* chore: unskip test
* chore: cleanup container pg connection
* chore: skip
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-10-30 14:42:17 +01:00