Commit Graph
100 Commits
Author SHA1 Message Date
Oliver Windall Juhl c9041d042e fix: Issue with cache in CI pipeline 2022-06-16 13:25:04 +02:00
Oliver Windall Juhl f0ecef6b9a fix(medisa): Deleting price list should use remove (#1540) 2022-05-19 18:56:58 +02:00
Oliver Windall Juhl a87e1cdf65 feat(medusa): Add endpoint for retrieving a DiscountCondition (#1525) 2022-05-17 11:17:17 +02:00
Oliver Windall Juhl 02eab5ee86 fix(medusa): Include adjustments in cart retrieval relations in setPaymentSessions (#1518) 2022-05-16 13:39:38 +02:00
Oliver Windall Juhl 9ca45ea492 feat(medusa): Add endpoints specific to DiscountConditions (#1355) 2022-05-13 12:42:23 +02:00
Oliver Windall Juhl 9acee2799e fix(medusa): Remove unsupported Discount endpoints (#1367) 2022-04-19 13:39:49 +02:00
Oliver Windall Juhl edc6d9d29c fix: Remove region_id from countries on region deletes (#1330)
* Remove region id from countries on delete

* Update snapshots
2022-04-13 10:52:25 +02:00
Oliver Windall Juhl ecc5bdd362 Only use country if part of a region (#1183) 2022-04-12 16:42:53 +02:00
Oliver Windall Juhl cab5821f55 chore: Update README (#1280)
Update roadmap in README
2022-03-30 20:53:19 +02:00
Oliver Windall Juhl a610805917 feat: Add DiscountConditions (#1230)
* feat: Add DiscountCondition entity + Join table per relation (#1146)

* feat: Convert DiscountService to TypeScript (#1149)

* feat: Add DiscountRepository + bulk insert and remove (#1156)

* feat: Add `conditions` to payload in `POST /discounts` and `POST /discounts/:id` (#1170)

* feat: Add DiscountRuleCondition entity

* fix relation

* fix join key

* Add discount rule condition repo

* add join table per relation

* Convert DiscountService to TypeScript

* feat: Add DiscountConditionRepository

* Add migration + remove use of valid_for

* revert changes to files, not done yet

* init work on create discount endpoint

* Add conditions to create discount endpoint

* Add conditions to update discount endpoint

* Add unique constraint to discount condition

* integration tests passing

* fix imports of models

* fix tests (excluding totals calculations)

* Fix commented code

* add unique constraint on discount condition

* Add generic way of generating retrieve configs

* Requested changes + ExactlyOne validator

* Remove isLocal flag from error handler

* Use postgres error constant

* remove commented code

* feat: Add `isValidForProduct` to check if Discount is valid for a given Product (#1172)

* feat: Add `canApplyForCustomer` to check if Discount is valid for customer groups (#1212)

* feat: Add `calculateDiscountForLineItem` (#1224)

* feat: Adds discount condition test factory (#1228)

* Remove use of valid_for

* Tests passing

* Remove valid_for form relations

* Add integration tests for applying discounts to cart
2022-03-24 16:47:50 +01:00
Oliver Windall Juhl 6603d3850a chore: Replace old Medusa domain with new (#1222) 2022-03-22 15:46:51 +01:00
Oliver Windall Juhl 549ad3b907 fix: Add tax repo to withTransaction in region service (#1126) 2022-02-28 11:21:49 +01:00
Oliver Windall Juhl 7c31acb064 Add expand to /admin/customers/:id (#1070)
* fix: 1055 add expand to /admin/customers/:id

* fix tests

* fix tests
2022-02-25 18:53:49 +01:00
Oliver Windall Juhl 7a3a1837a1 fix: use /admin/returns/:id/receive for swap returns (#1041) 2022-02-25 18:53:49 +01:00
Oliver Windall Juhl 9bb544e967 bump (#1040) 2022-02-25 18:53:49 +01:00
Oliver Windall Juhl 93bc6a164a chore: Add video guide for medusa-file-spaces (#1090) 2022-02-19 17:10:37 +01:00
Oliver Windall Juhl 25b2cd846e chore: Add video guide for medusa-plugin-sendgrid (#1088) 2022-02-19 17:07:20 +01:00
Oliver Windall Juhl e096804d32 chore: Add video deployment guide for Heroku (#1086) 2022-02-19 17:06:57 +01:00
Oliver Windall Juhl 9fda392aab chore: Add video guide for medusa-payment-stripe (#1087) 2022-02-19 17:06:45 +01:00
Oliver Windall Juhl 1c601a7340 chore: Update README 2022-02-17 09:56:01 +01:00
Oliver Windall Juhl 9f4a9f7db4 Add expand to /admin/customers/:id (#1070)
* fix: 1055 add expand to /admin/customers/:id

* fix tests

* fix tests
2022-02-16 23:41:30 +01:00
Oliver Windall Juhl 7ae754bb61 fix: use /admin/returns/:id/receive for swap returns (#1041) 2022-02-15 14:15:00 +01:00
Oliver Windall Juhl ba77fc920f bump (#1040) 2022-02-11 15:54:37 +01:00
Oliver Windall Juhl 80e86ca08c chore: Update README 2022-02-09 11:37:24 +01:00
Oliver Windall Juhl 362d106086 chore: Update company logo 2022-02-07 09:52:36 +01:00
Oliver Windall Juhl 59bb413245 fix: Updating store currencies (#984)
* fix: Adds default currency to store currencies on create

* fix: Adds integration tests + currency update error handling

* add test

* Lowercase currency codes

* fix tests

* fix: Await drop database to stop Jest from complaining

* revert itnegration tests fix

* fix store tests
2022-02-03 20:03:25 +01:00
Oliver Windall Juhl fdc493df7f fix: Support array of payment status filters when listing orders (#1013) 2022-02-01 17:24:13 +01:00
Oliver Windall Juhl a0a21d15ef fix: Adds default currency to store currencies on create (#982) 2022-01-10 16:08:26 +01:00
Oliver Windall Juhl 8782016095 fix(medusa-payment-klarna): Default shipping fee name in Klarna plugin (#926) 2021-12-15 13:18:25 +01:00
Oliver Windall Juhl 85ef51ad34 Adds admin giftcard API to medusa-js (#921) 2021-12-14 16:06:39 +01:00
Oliver Windall Juhl 006e67eea1 Adds admin invites API to medusa-js (#922) 2021-12-14 15:34:23 +01:00
Oliver Windall Juhl 4ffe50a798 Adds admin notes API to medusa-js (#923) 2021-12-14 15:27:31 +01:00
Oliver Windall Juhl 7f4a7cbed0 Adds DraftOrder Admin routes to JS client (#920) 2021-12-14 09:48:16 +01:00
Oliver Windall Juhl 2ca1a8762d feat: Add Discount Admin endpoint to JS client (#919) 2021-12-14 09:47:15 +01:00
Oliver Windall Juhl 25fe224a10 feat: Adds Customer Admin routes to JS client (#918) 2021-12-13 21:32:47 +01:00
Oliver Windall Juhl 5c47184b10 feat: Adds Auth Admin API to medusa-js (#917) 2021-12-13 19:35:57 +01:00
Oliver Windall Juhl 6579c13111 feat: Admin shipping options routes to Typescript (#891) 2021-12-07 17:07:23 +01:00
Oliver Windall Juhl 33bdb8f06c fix: Docs redirect to new domain (#853) 2021-12-01 15:39:01 +01:00
Oliver Windall Juhl 1de0b28f38 docs: Adds guides for plugins and storefront starters (#840) 2021-11-23 18:08:00 +01:00
Oliver Windall Juhl ab84aca9cb chore: Add medusa-js README (#828) 2021-11-23 09:14:02 +01:00
Oliver Windall Juhl 0380cdf0b2 docs: Adds new index page and design tweaks (#833) 2021-11-22 17:01:18 +01:00
Oliver Windall JuhlandPhilip Korsholm f387b4919f fix: Addresses breaking change from library class-transformer (#835)
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com>
2021-11-22 13:39:38 +01:00
373532ecbc feat: Typescript for API layer (#817)
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com>
Co-authored-by: Zakaria El Asri <33696020+zakariaelas@users.noreply.github.com>
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
Co-authored-by: Philip Korsholm <philip.korsholm@hotmail.com>
Co-authored-by: Sebastian Rindom <seb@medusa-commerce.com>
2021-11-18 15:19:17 +01:00
Oliver Windall Juhl 1e50aee4fe feat: Allow retrieval of soft-deleted products (#723) 2021-11-10 22:23:56 +01:00
Oliver Windall Juhl 6f4e128944 hotfix: Search service interfaces should import base from folder (#766) 2021-11-10 21:57:13 +01:00
Oliver Windall Juhl 5ce949f3b0 Revert "fix: make packages/medusa/src/api/routes/store/carts pass eslint (#652)" (#689)
Integration tests not passing.
2021-10-29 11:27:40 +02:00
Oliver Windall Juhl 3e68069a89 fix: Prepare routes for linting (#603) 2021-10-24 15:13:49 +02:00
Oliver Windall Juhl 94402a7204 Merge branch 'develop' into develop 2021-10-19 16:49:03 +02:00
Oliver Windall Juhl 9dd3a26a71 Merge branch 'develop' into chore/lint 2021-10-19 16:42:36 +02:00
Oliver Windall Juhl d8e0f75406 docs: Deploying our Gatsby storefront on Netlify (#443) 2021-10-13 20:41:05 +02:00
Oliver Windall Juhl 61bd7de9a3 docs: Guide on deploying on DigitalOcean (#483) 2021-10-13 18:28:04 +02:00
Oliver Windall Juhl a175560efa chore: Update README 2021-10-07 20:34:08 +02:00
Oliver Windall Juhl 17b192fe37 fix: Throw on cart creation when no region exist (#455)
If you try to create a cart without a region in your setup, we should throw a proper error message.
2021-10-06 11:19:38 +02:00
Oliver Windall Juhl 66b17055ea docs: Deploying on Qovery (#456) 2021-10-06 11:07:44 +02:00
Oliver Windall Juhl 337fc16c38 docs: Add fileservice guides for S3 and Spaces (#430)
* docs: Add fileservice guides for S3 and Spaces

* fix: remove we in s3 guide

* fix: typos in spaces guide
2021-10-01 12:58:44 +02:00
Oliver Windall Juhl 4c343e718d fix: Add deploy admin link to guide (#437) 2021-10-01 09:29:46 +02:00
Oliver Windall Juhl b930100479 docs: Deploying Medusa Admin on Netlify (#431) 2021-09-30 12:49:12 +02:00
Oliver Windall Juhl ae0ab03fac fix: Creating shipping options with requirements (#428) 2021-09-29 15:20:14 +02:00
Oliver Windall Juhl ff9cc0fa41 docs: Deploying Medusa on Heroku (#425) 2021-09-28 19:31:50 +02:00
Oliver Windall Juhl 85de2039cc hotfix: bug related to region update with no shipping address (#415) 2021-09-23 10:52:46 +02:00
Oliver Windall Juhl c715077be5 hotfix: Stripe cancelPayment catch block (#416) 2021-09-22 13:42:31 +02:00
Oliver Windall Juhl 00ab03f3a2 feat: Allow backorder on swaps (#404) 2021-09-19 15:33:43 +02:00
Oliver Windall Juhl 61c85da1d4 docs: Checkout flow guide (#396) 2021-09-15 11:18:27 +02:00
Oliver Windall Juhl 27150959ff fix: Ensure uniqueness for products, variants, collections and discounts (#382) 2021-09-10 16:03:44 +02:00
Oliver Windall Juhl e2897e2a62 hotfix: Adds options to cloned RestockNotificationService (#369) 2021-09-02 17:49:02 +02:00
Oliver Windall Juhl 29f2b01f9c chore: Update README 2021-08-27 10:26:53 +02:00
f76aa816a5 feat: Documentation and API reference (#348)
Co-authored-by: Vadim Smirnov <smirnou.vadzim@gmail.com>
Co-authored-by: zakariasaad <zakaria.elas@gmail.com>
Co-authored-by: Vilfred Sikker <vilfredsikker@gmail.com>
Co-authored-by: Kasper <kasper@medusa-commerce.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: Kasper Fabricius Kristensen <45367945+kasperkristensen@users.noreply.github.com>
2021-08-24 18:16:42 +02:00
Oliver Windall Juhl 5d63b0c8d2 hotfix: Allow sale_amount product updates (#346) 2021-08-20 17:14:19 +02:00
Oliver Windall Juhl fd14e243da fix: Account for non-discountable items in getRefundTotal (#347) 2021-08-20 17:12:37 +02:00
Oliver Windall Juhl 44fce520aa docs: Plugin overview (#327) 2021-08-05 10:41:01 +02:00
Oliver Windall Juhl 6053c4a8dd feat: Add discountable flag to product (#329) 2021-08-05 10:40:12 +02:00
Oliver Windall Juhl fb14ca7124 hotfix: Add swaps.additional_items relation to order total calculation (#317) 2021-07-16 10:29:03 +02:00
Oliver Windall Juhl 8838b506c8 hotfix(medusa): Optimize swap repository findOne and find (#301) 2021-07-02 14:43:06 +02:00
Oliver Windall Juhl 6358f8fc75 fix(medusa): Resolve issue with soft-delete and unique indexes in DB (#296) 2021-07-01 14:59:44 +02:00
Oliver Windall Juhl c1bec4f843 cleanup: Eventbus, BP, Contentful, NotificationService (#292) 2021-06-24 17:56:02 +02:00
Oliver Windall Juhl 350603ac57 fix: Adds manual return option (#290) 2021-06-22 09:05:17 +02:00
Oliver Windall Juhl bf4e8d8ff8 hotfix: Claim return shipping (#244) 2021-04-29 15:46:56 +02:00
Oliver Windall Juhl fb0613d3cb fix(medusa): Add free shipping functionality (#241) 2021-04-27 15:14:18 +02:00
Oliver Windall Juhldependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>Sebastian Rindom
7343a4e841 release: next (#239)
* hotfix(medusa-plugin-brightpearl): Use order id in sales order endpoint

* feat(medusa-plugin-sendgrid): adds localization option (#238)

* chore(deps): bump y18n from 4.0.0 to 4.0.1 in /packages/medusa-cli (#226)

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump y18n from 4.0.0 to 4.0.3 in /packages/medusa (#235)

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.3.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/y18n-v4.0.3/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/compare/v4.0.0...y18n-v4.0.3)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump y18n from 4.0.0 to 4.0.1 in /e2e/prod-project (#225)

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump y18n in /packages/medusa-core-utils (#224)

Bumps [y18n](https://github.com/yargs/y18n) from 4.0.0 to 4.0.1.
- [Release notes](https://github.com/yargs/y18n/releases)
- [Changelog](https://github.com/yargs/y18n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yargs/y18n/commits)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* feat(medusa): Swaps on swaps (#229)

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>

* chore: version bumps

* chore: version bumps

* chore(release): Publish

 - babel-preset-medusa-package@1.1.1
 - @medusajs/medusa-cli@1.1.5
 - medusa-core-utils@1.1.7
 - medusa-dev-cli@0.0.6
 - medusa-file-spaces@1.1.10
 - medusa-fulfillment-manual@1.1.7
 - medusa-fulfillment-webshipper@1.1.10
 - medusa-interfaces@1.1.8
 - medusa-payment-adyen@1.1.10
 - medusa-payment-klarna@1.1.11
 - medusa-payment-paypal@1.0.10
 - medusa-payment-stripe@1.1.10
 - medusa-plugin-add-ons@1.1.10
 - medusa-plugin-brightpearl@1.1.13
 - medusa-plugin-contentful@1.1.11
 - medusa-plugin-discount-generator@1.1.1
 - medusa-plugin-economic@1.1.10
 - medusa-plugin-ip-lookup@1.1.1
 - medusa-plugin-mailchimp@1.1.10
 - medusa-plugin-permissions@1.1.10
 - medusa-plugin-restock-notification@0.0.4
 - medusa-plugin-segment@1.1.13
 - medusa-plugin-sendgrid@1.1.11
 - medusa-plugin-slack-notification@1.1.10
 - medusa-plugin-twilio-sms@1.1.10
 - medusa-plugin-wishlist@1.1.10
 - medusa-test-utils@1.1.10
 - @medusajs/medusa@1.1.20

* chore(release): Publish

 - babel-preset-medusa-package@1.1.2
 - @medusajs/medusa-cli@1.1.6
 - medusa-core-utils@1.1.8
 - medusa-dev-cli@0.0.7
 - medusa-file-spaces@1.1.11
 - medusa-fulfillment-manual@1.1.8
 - medusa-fulfillment-webshipper@1.1.11
 - medusa-interfaces@1.1.9
 - medusa-payment-adyen@1.1.11
 - medusa-payment-klarna@1.1.12
 - medusa-payment-paypal@1.0.11
 - medusa-payment-stripe@1.1.11
 - medusa-plugin-add-ons@1.1.11
 - medusa-plugin-brightpearl@1.1.14
 - medusa-plugin-contentful@1.1.12
 - medusa-plugin-discount-generator@1.1.2
 - medusa-plugin-economic@1.1.11
 - medusa-plugin-ip-lookup@1.1.2
 - medusa-plugin-mailchimp@1.1.11
 - medusa-plugin-permissions@1.1.11
 - medusa-plugin-restock-notification@0.0.5
 - medusa-plugin-segment@1.1.14
 - medusa-plugin-sendgrid@1.1.12
 - medusa-plugin-slack-notification@1.1.11
 - medusa-plugin-twilio-sms@1.1.11
 - medusa-plugin-wishlist@1.1.11
 - medusa-test-utils@1.1.11
 - @medusajs/medusa@1.1.21

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-20 16:40:49 +02:00
Oliver Windall JuhlandSebastian Rindom f8f1f57fa1 feat(medusa): Swaps on swaps (#229)
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2021-04-20 10:55:15 +02:00
Oliver Windall Juhl 345b0e6305 hotfix(medusa-plugin-brightpearl): Use order id in sales order endpoint (#236) 2021-04-14 12:33:09 +02:00
Oliver Windall Juhl 7771471612 fix(medusa): Move discount usage from rule to discount (#221) 2021-04-09 09:06:45 +02:00
Oliver Windall Juhl 1773954794 hotfix(medusa-plugin-contentful): Fixes image assets (#232) 2021-04-08 21:22:25 +02:00
Oliver Windall Juhl 08bb111e29 Update README.md 2021-03-25 19:04:17 +01:00
Oliver Windall Juhl 1aa1760640 hotfix(medusa): Add missing discount field (#213) 2021-03-18 10:07:56 +01:00
Oliver Windall Juhl a031f1f338 fix(medusa): Upsert product images (#200) 2021-03-12 10:09:01 +01:00
Oliver Windall Juhl 60f164913d hotfix(medusa): Add q to order filter validation (#192) 2021-03-03 15:35:13 +01:00
Oliver Windall Juhl 6a3409d239 hotfix(medusa): Efficient product querying (#191) 2021-03-02 08:02:24 +01:00
Oliver Windall Juhl dd0491f521 feat(medusa): Add support for filtering with gt, lt, gte and lte (#190)
- Add support for filtering with lt, gt, lte, gte in the following format: created_at[gt]=01-26-1997
- Add middleware for cleaning request queries
- Add order query validation
- Temp. disables tags in claim integration tests
2021-03-01 11:32:17 +01:00
Oliver Windall Juhl 790d412bb3 hotfix(medusa): Optimize cart retrieval (#189) 2021-02-28 10:01:48 +01:00
Oliver Windall Juhl ed5b1592a4 hotfix(medusa): wrap update-product in transaction (#182) 2021-02-27 10:24:46 +01:00
Oliver Windall Juhl 4d708d2306 hotfix(medusa): Optimize product retrieval (#185) 2021-02-26 07:58:59 +01:00
Oliver Windall Juhl 3ca04a8ca1 chore: Update README.md 2021-02-25 18:38:56 +01:00
Oliver Windall Juhl 22be418ec1 fix(medusa): Add querying func. on customer retrievals (#181) 2021-02-23 13:40:49 +01:00
Oliver Windall Juhl 587a464e83 fix(medusa-plugin-contentful): Allow custom fields in plugin options (#180) 2021-02-23 07:49:01 +01:00
Oliver Windall Juhl 90ea888829 hotfix(medusa-fulfillment-webshipper): Cancel fulfillment idempotently (#175) 2021-02-18 13:46:34 +01:00
Oliver Windall Juhl 6f1da4ff7d docs: fix cart documentation 2021-02-12 08:44:43 +01:00
Oliver Windall Juhl c4d1203155 feat(medusa): Product category, type and tags 2021-02-12 08:42:19 +01:00
Oliver Windall Juhl 81df78384c hotfix(medusa): Get cart with session (#165) 2021-02-04 14:51:04 +01:00
Oliver Windall Juhl 0e0dfea571 hotfix(medusa-plugin-segment): Unit price (#162) 2021-02-01 20:50:47 +01:00