Commit Graph

1536 Commits

Author SHA1 Message Date
Zakaria El Asri
69620e572e chore: parallelize integration tests and use template dbs (#907) 2021-12-14 21:45:57 +01:00
Kasper Fabricius Kristensen
b8ff364276 feat: gatsby source medusa (#924) 2021-12-14 20:56:31 +01:00
Zakaria El Asri
d0d8dd7bf6 feat: add medusa-react (#913) 2021-12-14 19:09:36 +01:00
Philip Korsholm
40f6e88875 Feat/medusa js admin collections (#916)
* feat: Add Auth Admin routes to JS client

* include api key verification for admin

* add admin/collections to medusa-js

* undo file changes

* jsdoc

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-12-14 17:33:55 +01:00
Philip Korsholm
fee4e46ea7 Feat/client authentication api key (#915)
* feat: Add Auth Admin routes to JS client

* include api key verification for admin

* undo changes

* undo file changes

* improve api key auth

* auth documentation in readme

* pr feedback

* typo

Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-12-14 16:55:20 +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
Edin Skeja
34ad5bbd4e Fix minio docs (#901)
* Add minio links to sidebar

* Minio plugin page

* Fixed some typos
2021-12-09 19:11:05 +01:00
Adrien de Peretti
a0b6946b5f Fix(medusa/loaders/plugins) jsdoc (#904) 2021-12-09 12:06:43 +01:00
Sebastian Rindom
e64f036ad3 chore(release): Publish
- @medusajs/medusa-js@1.0.7
 - @medusajs/medusa@1.1.59
2021-12-08 22:38:09 +01:00
Zakaria El Asri
2e837fcdee fix: complete cart return type (#902) 2021-12-08 22:37:13 +01:00
Sebastian Rindom
36c0f468f9 chore(release): Publish
- babel-preset-medusa-package@1.1.19
 - @medusajs/medusa-cli@1.1.24
 - medusa-core-utils@1.1.31
 - medusa-dev-cli@0.0.24
 - medusa-file-minio@1.0.1
 - medusa-file-s3@1.0.9
 - medusa-file-spaces@1.1.34
 - medusa-fulfillment-manual@1.1.31
 - medusa-fulfillment-webshipper@1.1.35
 - medusa-interfaces@1.1.32
 - @medusajs/medusa-js@1.0.6
 - medusa-payment-adyen@1.1.36
 - medusa-payment-klarna@1.1.36
 - medusa-payment-manual@1.0.13
 - medusa-payment-paypal@1.0.35
 - medusa-payment-stripe@1.1.35
 - medusa-plugin-add-ons@1.1.34
 - medusa-plugin-algolia@0.0.6
 - medusa-plugin-brightpearl@1.1.40
 - medusa-plugin-contentful@1.1.37
 - medusa-plugin-economic@1.1.34
 - medusa-plugin-mailchimp@1.1.34
 - medusa-plugin-meilisearch@0.0.12
 - medusa-plugin-permissions@1.1.34
 - medusa-plugin-restock-notification@0.0.27
 - medusa-plugin-segment@1.1.37
 - medusa-plugin-sendgrid@1.1.35
 - medusa-plugin-slack-notification@1.1.34
 - medusa-plugin-twilio-sms@1.1.34
 - medusa-plugin-wishlist@1.1.34
 - medusa-source-shopify@1.0.0
 - medusa-telemetry@0.0.11
 - medusa-test-utils@1.1.34
 - @medusajs/medusa@1.1.58
2021-12-08 13:21:54 +01:00
Philip Korsholm
d1b8f4b50b Feat: Extend user api (#460)
* api routes for user management

* add invites and roles to db

* services

* invite repo

* include user in accepting invitation

* include user role in create user

* api password reset

* delete invite

* include email in reset password token

* added metadata as dbawarecolumn

* added events for invite handling and delete functionality

* added invite model to exports

* add default value member and allow null roles

* conditional inclusion of invites in "list-users"

* integration tests for users

* helpers for user testing

* add unauthenticated routes to users

* simplifying create invite

* create users with first and last name, and dev role

* reset password endpoint

* removed token from response

* update user with firstname, lastname and role

* create invite refactor

* test password reset without email in body

* removed redundant router variable

* cleanup

* unit tests

* adjustments

* service tests

* adjustments according to api changes

* fix cart test

* cloned now works

* change name to verified token for the verified token

* add a space

* db aware columns

* fix: timestampz dbaware

* more testing

* add list-invites endpoint

* reset-password error handling

* pr issues adjusted

* fixed test

* add optional to link templates

* move invites to a new endpoint

* migrate invites to own testsuite

* adjust snapshots

* email constraint for invite

* fix integration tests

* addressing pr feedback

* unit tests for extended user api

* linting

* fix integration tests

* fix unit tests

* fix: Addresses breaking change from class-transformer

* fix orders testing

* merge "create-claim" js and ts files

* add out commented tests

* update typescript endpoints to reflect changes made for user management

* converted invites to typescript

* add exports from api endpoints

* remove old js files used for reference

* integration test

* import reflect metadata

* invite service conversion to ts

* removed unused import

* update invite service to match styleguide

* add "expires_at" and "token" to invite table

* update invite service to save tokens and validate expires_at

* fix failing tests

* fix tests after adding token and expires_at to invite

* add expiration to create

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-12-08 10:15:22 +01:00
Sebastian Rindom
5cb09184d4 chore: merge master 2021-12-08 10:12:22 +01:00
Sebastian Mateos Nicolajsen
2aac1551d2 Docs/stripe payment (#844)
* initial outline

* added intitial docs for stripe

* centered imgs

* corrected plugins dah

* updated according to comments
2021-12-08 10:11:13 +01:00
Kasper Fabricius Kristensen
577bcc23d4 feat: medusa-source-shopify loader (#563)
* 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

* init plugin

* changed dbehaviour on invalid status input on admin list products

* mprices

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

* merged product status

* init ShopifyService

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

* fixed test

* made requested changes to migration

* push progress on source plugin

* add webhook product/create handler

* fixed normalization of variant weight

* removed weight func

* work on events

* finished product hooks (error on new variant needs to be fixed)

* fixed order status

* create fulfillments

* update fulfillment on cancel

* refactored services, handle returns though medusa, helper methods

* order updates

* removed dist

* update gitignore

* emit cahnges to product

* added redis ignore check to prevent update loops

* fixed product-variant.deleted event

* fix more events

* fix test

* fix: order taxes

* added refund with no items

* fixes to hooks

* fixed handling refunds and returns issued from Shopify

* added unit tests to ShopifyProductService and ShopifyCollectionService

* linting fix

* prepared loader PR

* fix: jsDocs

* fix: pager

* fix: build output and babelrc

* chore: linting

* fix: address type

* fix: migration clean up

* fix: update snapshots with ext_ids

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2021-12-08 10:09:21 +01:00
Edin Skeja
f2ba4018fc medusa-file-minio (#883)
* A first commit for medusa-file-minio

* Cleanup and remove unnecessary env vars

* Update packages

* Small fix big letter
2021-12-08 10:04:47 +01:00
Sebastian Rindom
2c9df0f7f7 chore: merge master 2021-12-08 09:56:59 +01:00
Sebastian Rindom
329767e279 fix: ensures that delayed restock notifications are being sent (#881)
* fix: ensures that delayed restock notifications are being sent

* fix: default options to empty object

* fix: tests
2021-12-08 09:55:00 +01:00
Adrien de Peretti
b212afae50 Feat() Add readme to integration-tests (#862) 2021-12-08 09:54:45 +01:00
Sebastian Rindom
7d6fc5c9e1 fix: widen range of discount limit conditions (#895) 2021-12-08 09:42:45 +01:00
Sebastian Rindom
ed04132533 fix(medusa): migrate cart service to typescript (#884)
* fix: migrate cart service to typescript

* fix: jsdoc inventory service

* fix: revert route unit test change

* fix: typo

* fix: revert integration test packages

* fix: cleanup

* fix: tests

* fix: integration tests

* fix: create props type guards

* fix: move total field to common types
2021-12-07 19:26:00 +01:00
Niketan Gulekar
03ffab5d61 Documentation for File Service (#894) 2021-12-07 19:21:23 +01:00
Zakaria El Asri
e8b6d2139d fix: return reasons type (#893) 2021-12-07 17:23:32 +01:00
Oliver Windall Juhl
6579c13111 feat: Admin shipping options routes to Typescript (#891) 2021-12-07 17:07:23 +01:00
Zakaria El Asri
487356a96f fix: medusa-js complete cart types + oas comments (#889) 2021-12-07 11:02:53 +01:00
Derek Wene
4e7a92c1b6 Fix draft order line items (#873) 2021-12-07 11:02:35 +01:00
Zakaria El Asri
e0064026ed fix: update payment session route (#887) 2021-12-07 10:11:03 +01:00
Zakaria El Asri
efadffe37a fix: refresh payment session oas comment (#888) 2021-12-07 10:10:07 +01:00
Derek Wene
89472b7d88 fix(medusa): order tax_rate type (#879)
* fix(order): tax_rate column should be numeric, not integer, since region.tax_rate uses numeric

* chore: cleanup

* fix(tax_rate): use REAL database numeric type for tax_rate column on order and region
2021-12-06 09:58:04 +01:00
Kio
1690b64910 small typo (#880)
small typo, small fix. <3
2021-12-03 16:47:26 +01:00
Philip Korsholm
80089d04d8 Fix: get fulfillment options (#852) 2021-12-03 13:19:25 +01:00
Joey Eamigh
64b93b5953 adding proper support for the spaces_url param (#876) 2021-12-03 09:44:57 +01:00
Kennan Seno
0523d9478f Update doc and website references to new domain (#856) 2021-12-01 18:11:34 +01:00
Oliver Windall Juhl
33bdb8f06c fix: Docs redirect to new domain (#853) 2021-12-01 15:39:01 +01:00
Zakaria El Asri
74bc9c618f fix: create cart with items (#851)
* fix: create cart with items

* remove: verbose mode

* fix: unit test
2021-12-01 10:53:01 +01:00
Zakaria El Asri
032fcb97ca fix: fine-tuning (#847)
fix: checkout guide markdown + punctuation
fix: remove @docusaurus/theme-search-algolia from project root package.json
fix: use 400 font-weight for paragraphs as opposed to current 450
2021-11-26 14:41:01 +01:00
Oliver Windall Juhl
1de0b28f38 docs: Adds guides for plugins and storefront starters (#840) 2021-11-23 18:08:00 +01:00
Sebastian Rindom
dec205f38e Update quick-start.md (#838) 2021-11-23 10:04:27 +01:00
Sebastian Rindom
7f7682ef01 chore: remove gitignored files 2021-11-23 09:54:59 +01:00
Sebastian Rindom
0846222d19 chore: merge master 2021-11-23 09:53:59 +01:00
Sebastian Rindom
4fcf9c1ee5 chore(release): Publish
- medusa-core-utils@1.1.30
 - medusa-file-s3@1.0.8
 - medusa-file-spaces@1.1.33
 - medusa-fulfillment-manual@1.1.30
 - medusa-fulfillment-webshipper@1.1.34
 - medusa-interfaces@1.1.31
 - @medusajs/medusa-js@1.0.5
 - medusa-payment-adyen@1.1.35
 - medusa-payment-klarna@1.1.35
 - medusa-payment-manual@1.0.12
 - medusa-payment-paypal@1.0.34
 - medusa-payment-stripe@1.1.34
 - medusa-plugin-add-ons@1.1.33
 - medusa-plugin-algolia@0.0.5
 - medusa-plugin-brightpearl@1.1.39
 - medusa-plugin-contentful@1.1.36
 - medusa-plugin-economic@1.1.33
 - medusa-plugin-mailchimp@1.1.33
 - medusa-plugin-meilisearch@0.0.11
 - medusa-plugin-permissions@1.1.33
 - medusa-plugin-restock-notification@0.0.26
 - medusa-plugin-segment@1.1.36
 - medusa-plugin-sendgrid@1.1.34
 - medusa-plugin-slack-notification@1.1.33
 - medusa-plugin-twilio-sms@1.1.33
 - medusa-plugin-wishlist@1.1.33
 - medusa-test-utils@1.1.33
 - @medusajs/medusa@1.1.57
2021-11-23 09:49:33 +01:00
Sebastian Rindom
38b0e295b2 fix: bumps class-transformer to 0.5.1 (#837)
* fix: bumps class transformer to 0.5.1

* fix(medusa): bumps class transformer to 0.5.1
2021-11-23 09:47:16 +01:00
Oliver Windall Juhl
ab84aca9cb chore: Add medusa-js README (#828) 2021-11-23 09:14:02 +01:00
Dmitriy Fishman
f43908c4fb Update fulfillment-api.md (#834) 2021-11-23 09:13:13 +01:00