Commit Graph

63 Commits

Author SHA1 Message Date
zakariaelas
db83448d18 fix: tests 2021-10-01 16:41:27 +01:00
dependabot[bot]
a44cf14fc7 chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa (#411)
* docs: create-medusa-app article (#401)

* fix: temporarily comment out cloud related docs (#387)

* Fix typo in registerOptin section (#407)

* docs: Carts in Medusa (#406)

* chore(deps): bump tmpl from 1.0.4 to 1.0.5 in /packages/medusa

Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

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

Co-authored-by: Vadim Smirnov <62517920+FuzzyReason@users.noreply.github.com>
Co-authored-by: ps-89 <91064940+ps-89@users.noreply.github.com>
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-27 18:47:54 +02:00
Sebastian Mateos Nicolajsen
a70e3ed0ae feat: customer-information (#413)
* added the ability to update email as long as user has_account=false

* revamped and added fix for MC-132

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-09-23 10:22:18 +02:00
Kasper Fabricius Kristensen
a82332da3e feat: add product status (#400)
* added statuses to product + unit test for updating status

* add update to product model

* added integration tests

* added integration test to validate that updating status to null results in invalid_data error

* removed comment

* update GET /store/products integration test

* fixed unit test with IdMap

* changed dbehaviour on invalid status input on admin list products

* updated migration to add status = published on all existing products + added integration test on GET /admin/products when status null is provided

* made requested changes to migration and GET /store/products

* fixed test

* made requested changes to migration
2021-09-21 11:22:17 +02:00
dependabot[bot]
167a9f45c7 chore(deps): bump axios from 0.21.1 to 0.21.4 in /packages/medusa (#391)
* docs: add guide on fulfillment api (#388)

* Create fulfillment-api.md

* fix: sidebar

* chore(deps): bump axios from 0.21.1 to 0.21.4 in /packages/medusa

Bumps [axios](https://github.com/axios/axios) from 0.21.1 to 0.21.4.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/master/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v0.21.1...v0.21.4)

---
updated-dependencies:
- dependency-name: axios
  dependency-type: indirect
...

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

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-14 11:14:19 +02:00
Sebastian Mateos Nicolajsen
cf66f97758 feat: update and cancel swaps, claims, and returns (#310) 2021-09-10 13:57:34 +02:00
Kasper Fabricius Kristensen
16b0fa377a fix: make shipping_option_id on requirements optional (#340)
* changed validator so that reqiurement shipping_option_id is now optional + added integration test that confirms that when an update contains a requirement without an ID it is created

* fix: formatting

* fix: un-bump babel-preset-medusa-package

* chore: update yarn.lock

* fix: implemented suggested changes, need to validate behaviour on clean branch so NOT ready for merging just yet

* fix: implemented suggested changes, need to validate behaviour on clean branch so NOT ready for merging just yet

* afix: made it impossible to set a min. subtotal requirement that is greater than max. subtotal

* fix: added explanation to error

* fix: Error when removing requirement on update

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-09-09 09:03:00 +02:00
Sebastian Rindom
8f60f430cc fix: add cross-spawn (#341) 2021-08-17 13:18:25 +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
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
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
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
olivermrbl
70a27f55f8 chore: bump dependencies 2021-06-09 10:28:24 +02:00
Sebastian Rindom
3d16a24a2a Merge branch 'develop' into feat/draft-orders 2021-06-08 15:48:17 +02:00
olivermrbl
862f8282c4 fix merge conflicts 2021-06-03 11:25:18 +02:00
Sebastian Rindom
7887ca90d9 chore: test fix 2021-06-03 10:37:34 +02:00
olivermrbl
d6d7b30a52 chore: bump babel cli 2021-06-02 18:47:20 +02:00
olivermrbl
0516bf7a5f minor test fix 2021-06-02 18:39:22 +02:00
Sebastian Rindom
ce2d22428f chore: babel deps 2021-05-31 14:33:44 +02:00
Sebastian Rindom
0050fc7b18 chore: babel deps 2021-05-31 14:23:32 +02:00
Sebastian Rindom
813a1c95a8 fix: babel 2021-05-31 14:08:05 +02:00
olivermrbl
b560f1197b clean up lock files 2021-05-26 14:43:10 +02:00
dependabot[bot]
e4617ff93e 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>
2021-04-20 10:42:25 +02:00
Sebastian Rindom
9d810971a7 fix: working api 2021-04-06 15:01:13 +02:00
olivermrbl
fa2c6f9beb fix merge conflicts 2021-03-17 08:52:00 +01:00
olivermrbl
c513813bb6 fix(medusa): Add usage_count + usage_limit to discount 2021-03-17 08:42:14 +01:00
Sebastian Rindom
31d5bb017d fix: merge 2021-03-16 22:27:09 +01:00
dependabot[bot]
34bb39afa3 chore(deps): bump dot-prop from 4.2.0 to 4.2.1 in /packages/medusa (#140)
Bumps [dot-prop](https://github.com/sindresorhus/dot-prop) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/sindresorhus/dot-prop/releases)
- [Commits](https://github.com/sindresorhus/dot-prop/compare/v4.2.0...v4.2.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-16 10:13:28 +01:00
dependabot[bot]
5eff8f6aa1 chore(deps): bump highlight.js from 10.4.0 to 10.5.0 in /packages/medusa (#154)
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.4.0 to 10.5.0.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/master/CHANGES.md)
- [Commits](https://github.com/highlightjs/highlight.js/compare/10.4.0...10.5.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-16 10:01:17 +01:00
Sebastian Rindom
252db5ef7e feat(medusa): storefront return (#194)
* feat: adds endpoint to lookup an order by its display_id and email

* feat: adds storefront returns

* fix: pr comments
2021-03-10 17:42:39 +01:00
Sebastian Rindom
5659d106e3 fix: performant relations 2021-02-18 10:31:09 +01:00
Sebastian Rindom
46006e4b06 fix: use parallel relation fetching (#173)
optimizes performance of queries with many left joins
2021-02-17 10:40:48 +01:00
Oliver Windall Juhl
c4d1203155 feat(medusa): Product category, type and tags 2021-02-12 08:42:19 +01:00
Sebastian Rindom
690d339667 feat(medusa,brightpearl,segment,webshipper): claims (#163)
* chore: create tests

* chore: models

* fix: passing initial tests

* test: adds integration test

* test: clean up integration implementation

* fix: claims

* fix: brightpearl + webshipper

* tests: passing

* fix: update claim items

* fix: adds gitignore

* fix: pr comments

* fix: single migration

* fix(medusa-plugin-segment): adds item claimed event to segment
2021-02-03 09:49:12 +01:00
Oliver Windall Juhl
103749eb65 hotfix: customer address updates + mongo ids (#153) 2021-01-26 14:59:50 +01:00
Sebastian Rindom
f1baca3cbd Replaces MongoDB support with PostgreSQL (#151)
- All schemas have been rewritten to a relational model
- All services have been rewritten to accommodate the new data model
- Adds idempotency keys to core endpoints allowing you to retry requests with no additional side effects
- Adds staged jobs to avoid putting jobs in the queue when transactions abort
- Adds atomic transactions to all methods with access to the data layer

Co-authored-by: Oliver Windall Juhl <oliver@mrbltech.com>
2021-01-26 10:26:14 +01:00
Oliver Windall Juhl
09d7ed232b feat(medusa): Adds filtering to order listing for use in admin (#149) 2020-12-28 16:45:02 +01:00
Sebastian Rindom
c6996dd530 CircleCI project setup (#138) 2020-11-21 15:50:42 +01:00
dependabot[bot]
0626293bb2 chore(deps): bump acorn from 6.4.0 to 6.4.2 in /packages/medusa (#128)
Bumps [acorn](https://github.com/acornjs/acorn) from 6.4.0 to 6.4.2.
- [Release notes](https://github.com/acornjs/acorn/releases)
- [Commits](https://github.com/acornjs/acorn/compare/6.4.0...6.4.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-17 17:14:02 +02:00
dependabot[bot]
98d37ac194 chore(deps): bump lodash from 4.17.15 to 4.17.20 in /packages/medusa (#112)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.20.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.20)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-17 17:11:56 +02:00
Oliver Windall Juhl
e3d8eea3cd (feat): Adds phone number to Customer 2020-09-09 16:55:34 +02:00
Sebastian Rindom
fdfc213d24 fix: more economical use of redis clients 2020-09-01 10:58:40 +02:00
Sebastian Rindom
16d3c88c4f fix: update password hashing 2020-08-30 16:04:57 +02:00
Sebastian Rindom
f56bd6ab08 Updates hashing method 2020-08-30 09:59:46 +02:00
Oliver Windall Juhl
9dc6999a9a feat(pagination): Adds MVP pagination to orders and products for admin routes 2020-08-27 17:51:23 +02:00
Oliver Windall Juhl
eeca05117a Adds ip lookup middleware for cart creation 2020-08-25 09:51:30 +02:00
dependabot[bot]
f065072c25 Bump bcrypt from 3.0.7 to 5.0.0 in /packages/medusa (#90)
Bumps [bcrypt](https://github.com/kelektiv/node.bcrypt.js) from 3.0.7 to 5.0.0.
- [Release notes](https://github.com/kelektiv/node.bcrypt.js/releases)
- [Changelog](https://github.com/kelektiv/node.bcrypt.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kelektiv/node.bcrypt.js/compare/v3.0.7...v5.0.0)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-08-24 21:06:21 +02:00
Sebastian Rindom
8918429388 Use express-sessions 2020-08-21 23:26:17 +02:00
Sebastian Rindom
6e25418014 Package fixes 2020-08-20 14:53:50 +02:00
olivermrbl
782acf4dca Adds query builder 2020-08-12 20:55:31 +02:00