Commit Graph

1259 Commits

Author SHA1 Message Date
olivermrbl
abcf43b21c chore: release assist 2021-12-17 15:42:38 +01:00
olivermrbl
3bbd1e8507 chore: release assist 2021-12-17 15:39:27 +01:00
olivermrbl
81a7ff73d0 chore(release): Publish
- gatsby-source-medusa@0.0.45
 - @medusajs/medusa-cli@1.1.25
 - medusa-file-minio@1.0.2
 - medusa-file-s3@1.0.10
 - medusa-file-spaces@1.1.35
 - @medusajs/medusa-js@1.0.8
 - medusa-payment-adyen@1.1.37
 - medusa-payment-klarna@1.1.37
 - medusa-payment-manual@1.0.14
 - medusa-payment-paypal@1.0.36
 - medusa-payment-stripe@1.1.36
 - medusa-plugin-add-ons@1.1.35
 - medusa-plugin-brightpearl@1.1.41
 - medusa-plugin-contentful@1.1.38
 - medusa-plugin-economic@1.1.35
 - medusa-plugin-mailchimp@1.1.35
 - medusa-plugin-permissions@1.1.35
 - medusa-plugin-restock-notification@0.0.28
 - medusa-plugin-segment@1.1.38
 - medusa-plugin-sendgrid@1.1.36
 - medusa-plugin-slack-notification@1.1.35
 - medusa-plugin-twilio-sms@1.1.35
 - medusa-plugin-wishlist@1.1.35
 - medusa-react@0.1.1
 - medusa-source-shopify@1.0.1
 - medusa-test-utils@1.1.35
 - @medusajs/medusa@1.1.60
2021-12-17 14:24:00 +01:00
Philip Korsholm
e0be2da15e Feat: Client admin products (#930)
* add exports in product

* add product resource

* fix failling tests

* import reflect metadata

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2021-12-17 12:30:04 +01:00
Philip Korsholm
59e268b919 Feat: Add users endpoint to medusajs (#925)
* add users endpoint to medusajs

* add exports to medusa

* use native omit

Co-authored-by: Sebastian Rindom <seb@medusajs.com>
2021-12-16 16:22:40 +01:00
Zakaria El Asri
31fad7439c feat: add store admin endpoints to medusa-js (#938)
* add: store admin endpoint to medusa-js

* add: resource to admin class

Co-authored-by: Sebastian Rindom <seb@medusajs.com>
Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2021-12-16 16:14:58 +01:00
Zakaria El Asri
b9d6f95dbd feat: add returns admin endpoints to medusa-js (#935)
* add: returns admin endpoint to medusa-js

* fix: http verbs

* fix duplicate import

* fix: type for cancel

* fix: conflicting import

Co-authored-by: Sebastian Rindom <seb@medusajs.com>
2021-12-16 15:10:41 +01:00
Zakaria El Asri
8b1b551260 feat: medusa js admin shipping options (#934)
* add: shipping-options admin endpoint to medusa-js

* fix: retrieve return type for Collections

* fix typo in routes

Co-authored-by: Sebastian Rindom <seb@medusajs.com>
2021-12-16 14:55:03 +01:00
Philip Korsholm
01b915585b Feat/client admin orders (#932)
* add export to medusa index

* add orders to medusa-client

* correct update entity

* add orders to admin resource

Co-authored-by: Sebastian Rindom <seb@medusajs.com>
2021-12-16 14:43:16 +01:00
Zakaria El Asri
0acc462e1e feat: medusa-js admin return reasons (#931)
* add: return-reasons admin endpoint to medusa-js

* fix types

* fix jsdoc

* fix typo jsdoc collection

Co-authored-by: Sebastian Rindom <seb@medusajs.com>
2021-12-16 14:34:14 +01:00
Zakaria El Asri
8532c966b5 feat: medusa js admin regions (#939) 2021-12-16 14:30:03 +01:00
Philip Korsholm
3da46723a0 Feat: add variants to medusa client (#927) 2021-12-16 14:28:54 +01:00
Philip Korsholm
f5d3e4de10 swaps in admin resources (#928) 2021-12-15 16:57:39 +01:00
Philip Korsholm
b70df6be94 Feat: client admin shipping profiles (#929)
* shipping profiles resource

* spelling
2021-12-15 14:21:43 +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
Ajibola Ojo
e4d4fd7671 Product typo corrected (#846) 2021-12-14 21:51:14 +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
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
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
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
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
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
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
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
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