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
Shahed Nasser
5dacd4ac9f
docs: fix example of createFulfillment ( #6088 )
2024-01-15 11:20:55 +02:00
github-actions[bot]
6721633478
chore(docs): Generated References ( #6042 )
...
Generated the following references:
- `entities`
- `fulfillment`
- `inventory`
- `js_client`
- `medusa`
- `medusa_react`
- `modules`
- `payment`
- `pricing`
- `product`
- `services`
- `stock_location`
- `types`
- `workflows`
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com >
2024-01-10 09:25:11 +00:00
olivermrbl
9fda1e63c1
chore: Version @medusajs/medusa
2024-01-09 18:48:34 +01:00
github-actions[bot]
47272bf2b9
chore: Version Packages ( #5880 )
2024-01-09 18:41:35 +01:00
Shahed Nasser
18de90e603
docs: fix tsdocs following typedoc update + 1.20 release ( #6033 )
...
* docs: fix tsdocs following typedoc update + 1.20 release
* Fix OAS validation errors
* fixes to react-docs-generator
* fix content linting
2024-01-09 17:15:29 +02:00
Adrien de Peretti
fbee006e51
chore(medusa, orchestration, utils, workflows-sdk): add transaction options support and cleanup ( #6020 )
...
* chore(medusa, orchestration, utils, workflows-sdk): add transaction options support and cleanup
2024-01-08 10:07:12 -03:00
Sajarin M
6b0b3fed7a
fix(medusa): Fix typo in discounts error message ( #5853 )
2024-01-07 14:37:32 +01:00
Mohamed Abusaid
46d610bc55
feat(admin): Add Libya admin region and set Libya to formal name ( #6001 )
2024-01-07 14:33:40 +01:00
Adrien de Peretti
47be2ad723
fix(medusa): Order by using joins and pagination ( #5990 )
2024-01-07 13:58:30 +01:00
Shahed Nasser
7d650771d1
docs: generate medusa-react reference ( #6004 )
...
* add new plugin for better organization
* added handling in theme for mutations and query types
* added tsdoc to hooks
* added tsdocs to utility functions
* added tsdoc to providers
* generated reference
* general fixes for generated reference
* generated api reference specs + general fixes
* add missing import react
* split utilities into different directories
* added overview page
* added link to customer authentication section
* fix lint errors
* added changeset
* fix readme
* fixed build error
* added expand fields + other sections to overview
* updated what's new section
* general refactoring
* remove unnecessary query field
* fix links
* added ignoreApi option
2024-01-05 17:03:38 +02:00
Frane Polić
6fc6a9de6a
feat(medusa, link-modules): sales channel <> pubkey link ( #5820 )
2024-01-05 14:51:57 +01: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
Adrien de Peretti
37fba9a168
fix(medusa): cart completion payment sessions ( #5995 )
...
* fix(medusa): cart completion payment sessions
* Create seven-moose-scream.md
* fix unit tests
2024-01-04 20:40:08 +01:00
Adrien de Peretti
7f62ab1b58
fix(medusa-payment-stripe): Fix error handling ( #5991 )
2024-01-04 09:04:43 +01:00
Frane Polić
fe007d01bd
feat(medusa, link-modules): sales channel <> order link ( #5810 )
2024-01-03 14:07:54 +01:00
Adrien de Peretti
278b7fb203
fix(medusa): Update cart sales channel should not remove all line items ( #5980 )
2024-01-03 14:06:07 +01:00
Oli Juhl
487067fb48
fix(medusa): Resolve babel executable with npx ( #5952 )
2024-01-02 10:13:54 +01:00
Frane Polić
76332ca6c1
feat(medusa, link-modules): sales channel <> cart link ( #5459 )
...
* feat: sales channel joiner config
* feat: product sales channel link config, SC list method
* feat: migration
* fix: refactor list SC
* refactor: SC repo api
* chore: changeset
* feat: add dedicated FF
* wip: cart<>sc link and migration
* chore: changeset
* fix: update migration with the cart table constraints
* feat: populate the pivot table
* chore: remove relation from joiner config
* fix: constraint name
* fix: filter out link relations when calling internal services
* feat: product<> sc join entity
* fix: update case
* fix: add FF on in the repository, fix tests
* fix: assign id when FF is on
* fix: target table
* feat: product service - fetch SC with RQ
* feat: admin list products & SC with isolated product domain
* feat: get admin product
* feat: store endpoints
* fix: remove duplicate import
* fix: remove "name" prop
* feat: typeorm entity changes
* feat: pivot table, entity, on cart create changes
* feat: update carts' SC
* feat: cart - getValidatedSalesChannel with RQ
* feat: refactor
* wip: changes to create cart workflow
* fix: remove join table entity due to migrations failing
* fix: product seeder if FF is on
* feat: attach SC handler and test
* fix: env
* feat: workflow compensation, cart service retrieve with RQ
* fix: remote joiner implode map
* chore: update changesets
* fix: remove methods from SC service/repo
* feat: use remote link in handlers
* fix: remove SC service calls
* fix: link params
* fix: migration add constraint to make link upsert pass
* refactor: workflow product handlers to handle remote links
* fix: condition
* fix: use correct method
* fix: build
* wip: update FF
* fix: update FF in the handlers
* chore: migrate to medusav2 FF
* chore: uncomment test
* fix: product factory
* fix: unlinking SC and product
* fix: use module name variable
* refactor: cleanup query definitions
* fix: add constraint
* wip: migrate FF
* fix: comments
* feat: cart entity callbacks, fix tests
* fix: only create SC in test
* wip: services updates, changes to models
* chore: rename prop
* fix: add hook
* fix: address comments
* fix: temp sc filtering
* fix: use RQ to filter by SC
* fix: relations on retrieve
* feat: migration sync data, remove FF
* fix: revert order of queries
* fix: alter migration, relations in service
* fix: revert id
* fix: migrations
* fix: make expand work
* fix: remote link method call
* fix: try making tests work without id in the pivot table
* test: use remote link
* test: relations changes
* fix: preserve channel id column
* fix: seeder and factory
* fix: remove sales_channels from response
* feat: support feature flag arrays
* fix: cover everything with correct FF
* fix: remove verbose
* fix: unit and plugin tests
* chore: comments
* fix: reenable workflow handler, add comments, split cart create workflow tests
* chore: reenable link in the create mehod, update changesets
* fix: address feedback
* fix: revert migration
* fix: change the migration to follow link module
* fix: migration syntax
* fix: merge conflicts
* fix: typo
* feat: remove store sales channel foreign key
* fix: merge migrations
* fix: FF keys
* refactor: cart service
* refactor: FF missing key
* fix: comments
* fix: address PR comments
* fix: new changesets
* fix: revert flag router changes
* chore: refactor `isFeatureEnabled`
---------
Co-authored-by: Carlos R. L. Rodrigues <rodrigolr@gmail.com >
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-12-22 13:05:36 +01:00
cyf0e
b5a07cfcf4
fix(medusa): add payments default relation to getTotalsRelations ( #5875 )
...
* bugfix: Add payments relation to getTotalsRelations
* update order test to expect correct paid_total and refundable_amount
2023-12-22 08:13:39 +01:00
Philip Korsholm
c1c470e6b8
fix(medusa, pricing, types): pass dates as Date-objects rather than strings to the pricing module ( #5768 )
...
* init
* remove date string validator;
* add transformOptionalDate transformer to api
* move type conversion to the datalayer
* fix final module integration test
* update arrow-function
* make string optional
* move work to utils
* make check for value exists
* move util back to pricng
* change utils
* refactor get-iso-string
* fix build
* flip transform condition
* add null check for isDate
* feat(pricing): Separate Pricing Module internal types from `@medusajs/types` (#5777 )
* create types for pricing repositories
* create RepositoryTypes input
* add service types
* use models for repository types
* fix build
* update types to match interface types
* add aliases
* types instead of moduletypes
* move repository to types for pricing module
* add changeset
* fix merge error
* fix conflict
* fix build
* re-add validation of dates in updatePriceLists_
2023-12-21 08:29:41 +01:00
Oli Juhl
f25ca30b3a
fix(medusa, medusa-js): publishable api key bugs ( #5926 )
...
* fix: publishable api key bugs
* Create old-meals-run.md
2023-12-20 12:57:13 +01:00
Adrien de Peretti
45996d58a2
chore(medusa, interfaces): Uniformise class checks ( #5869 )
...
**What**
One problem with local development can be the dependencies management. To mitigate that, transform checks from an instance of to value check as well as harmonize utils function to be part of the class as a static method instead of separate utilities. By using this approach we are not dependent of the origin of the class and therefore it should ease the user experience.
**NOTE**
As a next step to discuss, we should probably move the interfaces from the interfaces/medusa package to the utils package. Then we can deprecate the interfaces package and remove it at a later time
2023-12-19 13:26:57 +00:00
Adrien de Peretti
496dcf10c4
feat(medusa): Prevent cart completion conflict ( #5814 )
2023-12-19 10:47:41 +01:00
Adrien de Peretti
1a2f513d53
fix(medusa): Passport loader resolving to early ( #5901 )
...
* fix(medusa): Passport loader resolving to early
* fix(medusa): Passport loader resolving to early
* Create hungry-bikes-give.md
2023-12-18 17:02:51 +01:00
Katarzyna Stokłosa
05520391d1
fix: redis_options for job scheduler ( #5894 )
...
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-12-18 16:40:10 +01:00
Shahed Nasser
ddc6cc13a0
docs: add TSDoc for payment processor + generate docs ( #5917 )
...
* added tsdocs for payment processor
* generated reference for payment processor
2023-12-18 14:02:18 +02:00
Frane Polić
1d7888afca
feat(medusa, link-modules): sales channel <> product module link ( #5450 )
...
* feat: sales channel joiner config
* feat: product sales channel link config, SC list method
* feat: migration
* fix: refactor list SC
* refactor: SC repo api
* chore: changeset
* feat: add dedicated FF
* feat: product<> sc join entity
* fix: update case
* fix: add FF on in the repository, fix tests
* fix: assign id when FF is on
* fix: target table
* feat: product service - fetch SC with RQ
* feat: admin list products & SC with isolated product domain
* feat: get admin product
* feat: store endpoints
* fix: remove duplicate import
* fix: remove "name" prop
* feat: refactor
* fix: product seeder if FF is on
* fix: env
* refactor: workflow product handlers to handle remote links
* fix: condition
* fix: use correct method
* fix: build
* wip: update FF
* fix: update FF in the handlers
* chore: migrate to medusav2 FF
* chore: uncomment test
* fix: product factory
* fix: unlinking SC and product
* fix: use module name variable
* refactor: cleanup query definitions
* fix: add constraint
* chore: rename prop
* fix: add hook
* fix: address comments
* fix: temp sc filtering
* fix: use RQ to filter by SC
* fix: add sc to filter to list
---------
Co-authored-by: Riqwan Thamir <rmthamir@gmail.com >
2023-12-15 13:43:00 +01:00
Philip Korsholm
56b07ed0cf
feat(medusa): Update shipping option price type ( #5895 )
...
**What**
- allow updates to shipping option price type
- Clean up the use of strings in the api validation
Fixes #5824
2023-12-15 10:12:43 +00:00
Riqwan Thamir
2d79eeeecc
feat(medusa): add currency to region responses ( #5857 )
...
Resolves https://github.com/medusajs/medusa/issues/5837
2023-12-14 15:52:54 +00:00
github-actions[bot]
7f5e638f61
chore: Version Packages ( #5754 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 15:27:39 +01:00
Adrien de Peretti
2826605b01
fix(medusa): Order edit confirmation conflict line items update ( #5867 )
...
* fix(medusa): Order edit confirmation conflict line items update
* naming
* Create serious-flowers-provide.md
* another proposal
* fixes
2023-12-14 14:52:27 +01:00
Adrien de Peretti
b5748ab59e
chore(medusa): Prefer logger instead of console.log ( #5846 )
...
* chore(medusa): Prefer logger instead of console.log
* Create nasty-comics-leave.md
* fix imports
2023-12-13 16:09:48 +01:00
Riqwan Thamir
07107f3565
feat(orchestration,core-flows,medusa,product,types,utils): product import/export uses workflows ( #5811 )
2023-12-12 12:09:25 +00:00
Zarar Siddiqi
6f96ced40f
feat(medusa): Emit "discount.created" event when discount is created ( #5816 )
2023-12-12 10:52:57 +01:00
Riqwan Thamir
079f0da83f
feat(core-flows,pricing,medusa,pricing,types,utils): Price List Prices can have their own rules ( #5752 )
...
**What**
- Add price-rules for prices in price-lists
- make rules object optional when creating prices
**Why**
- more price granularity
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-12-12 08:20:21 +00:00
josetr
d9e29e8e45
fix(medusa): Updating note doesn't require loading author relationship ( #5825 )
2023-12-10 19:37:29 +01:00
Adrien de Peretti
85cda7ce37
feat(medusa, core-workflows, product): slightly improve create cart workflow ( #5725 )
2023-12-07 17:05:23 +01:00
Adrien de Peretti
946db51a9b
chore(): Add engines to all package.json if needed ( #5812 )
2023-12-07 17:03:50 +01:00
mortenengel
9b447f99ff
fix(medusa): Product option values in CSV Export ( #5781 )
...
* https://github.com/medusajs/medusa/issues/5712
* fix-5712 added a comment
* fix/5712 - changing to context object
* Create yellow-games-reflect.md
---------
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-12-06 15:12:05 +01: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
Adrien de Peretti
6975eacb33
feat(medusa): Improve add line item to cart perf and transaction management + clustering start command ( #5701 )
2023-12-06 08:53:35 +01:00
Shahed Nasser
892d737c1f
docs: enhance how references are generated ( #5805 )
...
* adjusted configurations
* enhancements to tool and configurations
* change reference in docs
* fixed issue in workflows reference
* added project name
* more optimizations
* fix context error
* added a types reference
* resolved missing types
* fix reference reflection types not having children
* add an expand url parameter
* added new option to the README
* added details about new option
2023-12-05 15:29:41 +02:00
driver005
fd317f1a6b
feat(medusa-cli): add monorepo support command develop ( #5723 )
...
* add monorepo support command develop
* fix formating bug in @medusa/admin package.json
* Create grumpy-bees-laugh.md
---------
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com >
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com >
2023-12-03 14:29:55 +01:00
Oli Juhl
428331a653
feat(medusa): Respond with order when cart is already completed ( #5766 )
2023-12-01 09:17:12 +01:00
Shahed Nasser
f802e2460f
docs: TSDoc + reference of fulfillment service ( #5761 )
2023-11-29 11:58:08 +00:00
Philip Korsholm
e4bfa6c88a
fix(medusa): throw proper error when product doesn't exist w/ key header ( #5745 )
...
**What**
- ensure that an error is raised properly if the requested product doesn't exist and a publishable-key header is set
**Why**
- previously endpoints would hang if the product didn't exist and requests would time out
closes #5724
2023-11-28 10:24:50 +00:00
github-actions[bot]
935e9f0561
chore: Version Packages ( #5673 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-27 16:43:51 +00:00
Riqwan Thamir
2e6b110316
fix(medusa,pricing): Fix migrations for existing databases ( #5730 )
2023-11-27 13:36:56 +00:00
Philip Korsholm
18afe0b9ad
Fix(medusa, inventory, stock-location, types, utils): Modules sdk build query ( #5713 )
...
* remove defaults
* take 2
* works now
* add changeset
* pricing module and pricing service list take null updates
* update handlers
* update product module service with take:null where relevant
* no spread
* note to self:default offset should be 0, not 15
2023-11-27 10:17:42 +00:00