Commit Graph

1089 Commits

Author SHA1 Message Date
Sebastian Rindom
9467f7ecbd fix: build openapi (#338) 2021-08-16 15:45:50 +02:00
Sebastian Rindom
1039d040e9 Add SQLite support for easy setup (#336)
* Modifies schema to allow SQLite as a DB driver. SQLite is preinstalled in most OSes allowing for minimal prerequisites in the installation process.

* Removes Redis dependency and replaces "real" redis instance with ioredis-mock this is not feature complete and errors are expected.

* Updates medusa new command to only ask for Postgres credentials if the starter template has database_type === "postgres" in medusa-config.js

* Small improvements to bin resolution

* Improvements to endpoint stability
2021-08-16 15:45:26 +02:00
Sebastian Rindom
09d1b1a141 chore(release): Publish
- @medusajs/medusa@1.1.36
2021-08-11 09:37:47 +02:00
Sebastian Rindom
9a701ff229 fix: improves integration tests (#332)
* fix: improves integration tests

* fix: giftcard order with total 0

* fix: remove breaking eager
2021-08-11 09:26:25 +02:00
Sebastian Rindom
8edf8aacfa chore(release): Publish
- @medusajs/medusa@1.1.35
2021-08-09 16:34:37 +02:00
Sebastian Rindom
3d65ed9b78 hotfix(medusa): null check 2021-08-09 16:34:12 +02:00
Sebastian Rindom
8275b1623e chore(release): Publish
- @medusajs/medusa-cli@1.1.15
 - medusa-core-utils@1.1.20
 - medusa-file-spaces@1.1.23
 - medusa-fulfillment-manual@1.1.20
 - medusa-fulfillment-webshipper@1.1.24
 - medusa-interfaces@1.1.21
 - medusa-payment-adyen@1.1.25
 - medusa-payment-klarna@1.1.25
 - medusa-payment-manual@1.0.2
 - medusa-payment-paypal@1.0.24
 - medusa-payment-stripe@1.1.23
 - medusa-plugin-add-ons@1.1.23
 - medusa-plugin-brightpearl@1.1.28
 - medusa-plugin-contentful@1.1.25
 - medusa-plugin-economic@1.1.23
 - medusa-plugin-mailchimp@1.1.23
 - medusa-plugin-permissions@1.1.23
 - medusa-plugin-restock-notification@0.0.16
 - medusa-plugin-segment@1.1.26
 - medusa-plugin-sendgrid@1.1.24
 - medusa-plugin-slack-notification@1.1.23
 - medusa-plugin-twilio-sms@1.1.23
 - medusa-plugin-wishlist@1.1.23
 - medusa-telemetry@0.0.2
 - medusa-test-utils@1.1.23
 - @medusajs/medusa@1.1.34
2021-08-05 17:23:19 +02:00
Sebastian Rindom
1295ceb792 fix: return lines allow_discounts 2021-08-05 17:01:11 +02:00
Sebastian Rindom
65d50724a6 Merge remote-tracking branch 'origin/develop' into release/next 2021-08-05 16:44:48 +02:00
Zakaria El Asri
ca0de00d0b add: is_discount filtering + unit tests (#330) 2021-08-05 16:44:19 +02:00
Zakaria El Asri
b101725396 fix: product and variant api route validation (#331) 2021-08-05 15:36:14 +01:00
Sebastian Rindom
c8d8fa28ca fix: deps 2021-08-05 13:22:05 +02:00
Sebastian Rindom
9475ed7689 fix: ci detection 2021-08-05 13:17:17 +02:00
Sebastian Rindom
b988b67118 fix: canary assist 2021-08-05 12:30:57 +02:00
Sebastian Rindom
cfe19f7f9d feat: medusa-telemetry (#328)
* feat: adds a telemetry package to collect anonymous usage data

* fix: update telemetry host

* fix: adds medusa telemetry --disable

* fix: add tracking of link,login,new

* fix: interactively collect db credentials

* fix: require seed file

* fix: removes tracking from reporter
2021-08-05 12:23:05 +02:00
Kasper Fabricius Kristensen
f07cc0fa40 feat: In band inventory updates (#311)
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-08-05 12:21:15 +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
Zakaria El Asri
821d8be733 feat: add route for retrieving a swap (#326)
* feat: swap details

* test: add get-swap and list-swaps route tests

* test: add swaps integration tests

* fix: use IdMap.getId in complete-cart unit test

commit 289d191 uses the IdMap.getId in the SwapServiceMock retrieve method, so a unit test in complete-cart needs to be adjusted accordingly

* fix: prefix default fields and totals with 'cart'
2021-07-29 16:47:33 +01:00
Sebastian Rindom
8bdccc6db6 Update adding-custom-functionality.md 2021-07-28 11:48:57 +02:00
Sebastian Rindom
329f8b134c chore(release): Publish
- babel-preset-medusa-package@1.1.13
 - @medusajs/medusa-cli@1.1.14
 - medusa-core-utils@1.1.19
 - medusa-dev-cli@0.0.18
 - medusa-file-spaces@1.1.22
 - medusa-fulfillment-manual@1.1.19
 - medusa-fulfillment-webshipper@1.1.23
 - medusa-interfaces@1.1.20
 - medusa-payment-adyen@1.1.24
 - medusa-payment-klarna@1.1.24
 - medusa-payment-manual@1.0.1
 - medusa-payment-paypal@1.0.23
 - medusa-payment-stripe@1.1.22
 - medusa-plugin-add-ons@1.1.22
 - medusa-plugin-brightpearl@1.1.27
 - medusa-plugin-contentful@1.1.24
 - medusa-plugin-discount-generator@1.1.13
 - medusa-plugin-economic@1.1.22
 - medusa-plugin-ip-lookup@1.1.13
 - medusa-plugin-mailchimp@1.1.22
 - medusa-plugin-permissions@1.1.22
 - medusa-plugin-restock-notification@0.0.15
 - medusa-plugin-segment@1.1.25
 - medusa-plugin-sendgrid@1.1.23
 - medusa-plugin-slack-notification@1.1.22
 - medusa-plugin-twilio-sms@1.1.22
 - medusa-plugin-wishlist@1.1.22
 - medusa-test-utils@1.1.22
 - @medusajs/medusa@1.1.33
2021-07-26 13:01:59 +02:00
Sebastian Rindom
4e003bebaa fix: support wishlist (#325) 2021-07-26 12:29:36 +02:00
Sebastian Rindom
f4a7138a58 feat: CLI + local linking (#313)
* fix: allow local cmd without exiting process

* fix: improves cli experience

* fix: allow running link with --develop

* test: adds snapshot testing of error logs

* chore: cleanup

* feat(medusa-cli): new command (#320)

* adds: new command

* fix: creates  command for easy project setup

* chore: deps

* chore: deps

* fix: loggin

* fix: logging

* fix: adds cli as dependency in core

* fix: consolidates CLI in medusa

* fix: use project deps medusa bin

* fix: use project deps medusa bin

* fix: use cli path

* fix: new command setup db + env vars

* fix: new command with db seed

* fix: cleanup
2021-07-26 10:09:55 +02:00
Sebastian Rindom
804a2f6ed9 docs: adds tutorial (#323)
* docs: adds installation guide for tutorial

* docs: adds creating your medusa server guide

* add quick starter

* rename to reflect docker usage

* docs: adds custom functionality tutorial

* docs: adds linking with medusa cloud

* fix: PR

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-07-25 09:58:16 +02:00
Zakaria El Asri
06fd882a67 fix: parameterize integration tests' db credentials (#319)
* add: read db credentials from .env

* remove: console.log

* fix: default to default pg user and password
2021-07-23 11:27:05 +01:00
Zakaria El Asri
b378a4f8bc fix: enforce 1 shipping method per profile (#322)
prevents the scenario where multiple concurrent calls to insert a shipping method may lead to an inconsistent cart state with more than 1 shipping method per profile.
2021-07-23 11:26:20 +01:00
Abraham Ugbeshe
8c26a5fd88 chore: issue #299: implemented DUPLICATE_ERROR in places necessary (#314) 2021-07-22 18:28:12 +02:00
Sebastian Rindom
8783de17cd Feat/manual payment (#318)
What
A dummy payment provider for testing and potentially other relevant use cases like accepting cash payments. Also makes it possible to start server without notification/payment/fulfillment providers.

Why
When setting up a starter project it introduces unnecessary overhead to have to set up an account with a payment provider (e.g. Stripe). Adding a dummy provider will remove friction.

How
Extremely simple wrapper functionality.
2021-07-16 17:03:35 +02:00
olivermrbl
dde3834124 Merge branch 'master' into develop 2021-07-16 14:30:11 +02:00
olivermrbl
62b361ecfd chore(release): Publish
- @medusajs/medusa@1.1.32
2021-07-16 10:29:42 +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
Sebastian Rindom
429daf8f8c Merge remote-tracking branch 'origin/master' into develop 2021-07-15 11:53:48 +02:00
Sebastian Rindom
f96d0d3ac9 chore(release): Publish
- babel-preset-medusa-package@1.1.12
 - @medusajs/medusa-cli@1.1.13
 - medusa-core-utils@1.1.18
 - medusa-dev-cli@0.0.17
 - medusa-file-spaces@1.1.21
 - medusa-fulfillment-manual@1.1.18
 - medusa-fulfillment-webshipper@1.1.22
 - medusa-interfaces@1.1.19
 - medusa-payment-adyen@1.1.23
 - medusa-payment-klarna@1.1.23
 - medusa-payment-paypal@1.0.22
 - medusa-payment-stripe@1.1.21
 - medusa-plugin-add-ons@1.1.21
 - medusa-plugin-brightpearl@1.1.26
 - medusa-plugin-contentful@1.1.23
 - medusa-plugin-discount-generator@1.1.12
 - medusa-plugin-economic@1.1.21
 - medusa-plugin-ip-lookup@1.1.12
 - medusa-plugin-mailchimp@1.1.21
 - medusa-plugin-permissions@1.1.21
 - medusa-plugin-restock-notification@0.0.14
 - medusa-plugin-segment@1.1.24
 - medusa-plugin-sendgrid@1.1.22
 - medusa-plugin-slack-notification@1.1.21
 - medusa-plugin-twilio-sms@1.1.21
 - medusa-plugin-wishlist@1.1.21
 - medusa-test-utils@1.1.21
 - @medusajs/medusa@1.1.31
2021-07-15 11:20:19 +02:00
Sebastian Rindom
ef7e52b74b hotfix(medusa-plugin-brightpearl): use new metadata signature (#316)
* hotfix(medusa-plugin-brightpearl): use new metadata signature

* fix: update signature
2021-07-15 11:18:44 +02:00
Sebastian Rindom
79521ceb3e Merge remote-tracking branch 'origin/master' into develop 2021-07-15 09:51:33 +02:00
Sebastian Rindom
2585e958de release: next (#315)
Co-authored-by: Sebastian Mateos Nicolajsen <sebastian.m.nicolajsen@gmail.com>
Co-authored-by: Abraham Ugbeshe <abrahamugbeshe@gmail.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-07-15 09:37:27 +02:00
Sebastian Rindom
78eddd056e chore(release): Publish
- babel-preset-medusa-package@1.1.11
 - @medusajs/medusa-cli@1.1.12
 - medusa-core-utils@1.1.17
 - medusa-dev-cli@0.0.16
 - medusa-file-spaces@1.1.20
 - medusa-fulfillment-manual@1.1.17
 - medusa-fulfillment-webshipper@1.1.21
 - medusa-interfaces@1.1.18
 - medusa-payment-adyen@1.1.22
 - medusa-payment-klarna@1.1.22
 - medusa-payment-paypal@1.0.21
 - medusa-payment-stripe@1.1.20
 - medusa-plugin-add-ons@1.1.20
 - medusa-plugin-brightpearl@1.1.25
 - medusa-plugin-contentful@1.1.22
 - medusa-plugin-discount-generator@1.1.11
 - medusa-plugin-economic@1.1.20
 - medusa-plugin-ip-lookup@1.1.11
 - medusa-plugin-mailchimp@1.1.20
 - medusa-plugin-permissions@1.1.20
 - medusa-plugin-restock-notification@0.0.13
 - medusa-plugin-segment@1.1.23
 - medusa-plugin-sendgrid@1.1.21
 - medusa-plugin-slack-notification@1.1.20
 - medusa-plugin-twilio-sms@1.1.20
 - medusa-plugin-wishlist@1.1.20
 - medusa-test-utils@1.1.20
 - @medusajs/medusa@1.1.30
2021-07-15 08:40:05 +02:00
Sebastian Rindom
688f384d77 Merge pull request #312 from medusajs/fix/customer-billing-address
fix(medusa): updating customer billing address
2021-07-13 11:36:35 +02:00
Sebastian Rindom
fcd5ce0a6b docs: typo 2021-07-13 10:48:57 +02:00
Sebastian Rindom
79ed86daec docs: route 2021-07-13 10:43:07 +02:00
Sebastian Rindom
5a1cbc68b7 fix: allow updating billing address on customer 2021-07-13 10:41:06 +02:00
Sebastian Rindom
ddf94ca5be Merge pull request #309 from medusajs/fix/segment-return-reasons
fix(medusa-plugin-segment): sends return reasons on Order Refunded event
2021-07-12 13:22:44 +02:00
Sebastian Rindom
beba7fbbf2 Merge pull request #308 from medusajs/fix/paypal-complete-order
fix(medusa-payment-paypal): fixes bug where swap carts completed by webhook resulted in regular orders
2021-07-09 12:09:19 +02:00
Sebastian Rindom
55ba9bae05 fix: sends return reasons to segment on Order Refunded event 2021-07-09 11:56:34 +02:00
Sebastian Rindom
fca29cc5cc fix: support for hook completion of swap carts 2021-07-09 10:46:34 +02:00
Sebastian Rindom
1f6ee0fc00 fix: paypal order 2021-07-09 10:46:34 +02:00
Sebastian Rindom
b8657d7ee7 Merge pull request #305 from medusajs/fix/create-fulfillment
fix: create fulfillment
2021-07-08 10:53:06 +02:00
Sebastian Rindom
0603a86d65 fix: create fulfillment 2021-07-08 10:28:26 +02:00
Sebastian Mateos Nicolajsen
92caff845e Feat/improve overview of gift cards (#297)
* modified list-gift-card

* added search with relations to gift cards to allow for proper lookup

* removed new line

* created skeleton for testing

* began impl. tests

* added more test

* finished tests

* reverted failed changes

* updated tests to accomodate re-introduced additions

* removed VSCode settings file

* updated according to comments

* corrected use of findOneWithRelations for gift-card

* corrected parsing to be postgresql instead of an if-statement for gift-card

* changed bits and pieces
2021-07-08 09:59:59 +02:00
Sebastian Mateos Nicolajsen
0c96813e2f Merge pull request #293 from medusajs/feat/disabling-of-notification
Feat/disabling of notification
2021-07-08 09:59:09 +02:00