Commit Graph

1687 Commits

Author SHA1 Message Date
Zakaria El Asri
33426ddb4c fix: make plugin tests run with integration test suites (#1101)
* fix: make plugin tests run with integration test suites"

* add: plugins to test pipeline

* add: run integration tests on different jobs + fix failing test command

* fix: typo

* fix: pipeline
2022-02-25 16:39:28 +01:00
Philip Korsholm
0394be36ef Feat: bulk delete customers from customer group (#1097)
* integration testing

* customer seeder

* initial bulk removal

* integraiton testing of deletes

* delete fix

* not found test

* remove unused code

* Apply suggestions from code review

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

* update integration tests

* pr review fixes

* update migration

* formatting

* integration tests for deletion

* pr feedback

* fix failing integration tests

* remove integration tests before merging

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2022-02-25 15:29:13 +01:00
Sebastian Rindom
c56660fca9 feat: new tax api (#979)
* feat: add tax calculation strategy (#885)

* feat: add tax calculation strategy

* fix: adds strategy loader

* fix: eslint ignore

* chore: cleanup

* fix: allow plugin overwrites

* fix: allow plugin overwrites

* fix: fake region

* Update packages/medusa/src/loaders/strategies.ts

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>

* feat: adds tax related db entities + tax provider (#896)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: pr comments

* fix: unit test

* feat: totals service to ts (#911)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: adds TotalsServiceProps

* feat: adds integration tests for automatic tax calculation + shipping tax rates (#945)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: jsdoc types

* Feat/manual taxes (#950)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: object -> cartOrOrder

* fix: rounding

* Feat/complete order w tax lines (#951)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* fix: adds cart order type gaurds

* Docs/tax api (#954)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* docs: documents tax related methods and types

* fix: require either item_id or shipping_method_id

* feat: product type tax rate (#969)

* feat: adds tax related db entities + tax provider

* fix: add tax provider tests

* fix: add tax service unit tests

* fix: tests + migrations

* feat: totals service to ts

* fix: remove totals.js

* fix: add shipping methods

* fix: add inherited tax lines

* chore: rm tax-line repo

* fix: test

* fix: tests

* fix: tests

* fix: unit test

* fix: integration test helpers

* fix: adds factories + tests automatic tax rates

* fix: remove verbose

* fix: adds TotalsServiceProps

* fix: add shipping tax lines

* fix: add migration for shipping taxes

* fix: integration tests for shipping taxes

* fix: integration tests for shipping taxes

* fix: add integration tests for manual taxes

* fix: cart service - cleanup jsdoc

* feat: add /carts/id/taxes to manually calculate taxes

* feat: add integration tests for order tax calculations

* feat: adds cart completion strategy + create order w. tax lines

* fix: unit tests

* fix: merge

* fix: rm verbose

* fix: unit tests

* fix: unit tests

* fix: unit tests

* fix: ensure calculation for list orders

* fix: unit tests

* fix: integration tests

* docs: documents tax related methods and types

* fix: require either item_id or shipping_method_id

* feat: adds returns tests for new tax system

* feat: adds return lines + integration tests for swaps

* feat: return integration tests

* feat: adds product type tax rates

* feat: add tax management endpoints

* fix: create single migration

* fix: adds tax rates to js client

* fix: strats

* Fix/plugin tests (#998)

* plugin testing setup

* fix: test sendgrid plugin

* fix: test sendgrid plugin

* chore: clean

* chore: clean

* fix: clean up tests

* fix: remove dirty import

* fix: sendgrid + brightpearl

* fix: plugin integration tests

* fix: klarna

* fix: shipping method tax

* fix: remove taxrates

* fix: unit tests

* fix: integration

* fix: integration

* fix: plugins tests

* fix: ignore plugins

* fix: tests

* fix: taxes (#1017)

* fix: taxes

* fix: taxes

* fix: faulty ref

* fix: create tax-lines with claim items

* fix: snapshot tax-liens

* fix: allows integration test teardown to force deleting tables

* fix: tests

* fix: merge

* fix: adds tax-rates to client

* fix: adds tax-rates to medusa-react

* fix: tests

* fix: tests

* fix: add product types

* fix: adds tax provider endpoint + cascaded deletes on tax rate relations

* fix: move errors to service layer

* fix: cleanup api

* fix: unit tests

* fix: error handler in base-service

* fix: Add order region to swap on createFulfillment (#1110)

Co-authored-by: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com>
2022-02-24 20:14:09 +01:00
Frane Polić
694e2df20f feat: customer group update (#1098) 2022-02-24 18:03:20 +01:00
Sebastian Rindom
62c263c360 fix: atomic phase error handler (#1104)
* fix: adds atomic phase clean up callback

* fix: call error handler in new transaction block too

* fix: error handler in no isolation case
2022-02-24 16:44:08 +01:00
Philip Korsholm
e35a4fb2ea Feat: Delete customer group (#1102) 2022-02-24 14:20:58 +01:00
Niel Swart
9ab0568b47 Changed medusa-client default request payload to null (#1044) 2022-02-24 12:37:23 +01:00
Zakaria El Asri
cb7b211c9b fix: variant price update (#1093)
* fix: variant prices update + integration tests

* add: unit tests

* fix: rename variable

* add: integration tests

* fix: integration tests

* fix: test name

* fix: move db logic to repo layer + create upsert method

* fix: linting
2022-02-22 20:23:11 +01:00
Frane Polić
1909d20e48 Merge pull request #1073 from medusajs/feat/get-customer-group
feat: get customer group
2022-02-22 09:37:07 +01:00
Frane Polić
0409a1ded3 Update packages/medusa/src/api/routes/admin/customer-groups/get-customer-group.ts
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2022-02-22 09:18:26 +01:00
fPolic
4ee2af2582 fix: export params type 2022-02-21 20:50:07 +01:00
Frane Polić
7e1c372c71 Update packages/medusa/src/api/routes/admin/customer-groups/get-customer-group.ts
Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2022-02-21 20:41:40 +01:00
Kasper Fabricius Kristensen
ed612df2b5 updated invite.created event with user_email so it can be used to send an email invitation (#1069) 2022-02-21 19:53:03 +01:00
Kasper Fabricius Kristensen
90121dd19d fix: reset user password subscription in sendgrid plugin (#1072)
* fixed reset password subscription

* cleanup
2022-02-21 19:52:03 +01:00
Frane Polić
75fb2ce9c3 feat: update customer groups (#1075)
* update customer service prep

* expand on the update customer groups test case

* add the test case for customer group update

* docs for `groups` prop on update customer endpoint

* refactor, update comments

* expend on integration tests, add customer mock with a group

* refactor to use `customerGroupService.list` method

* update units

* remove `updateCustomerGroups`

* fix rebase conflict

* fix customer seed data, add JoinTable on groups

* group retrieval using the expand param

* fix: use `buildQuery_`

* fix: validation for `groups`, enable `expand`param on update customer endpoint

* fix: remove fileds form the `FilterableCustomerGroupProps`

* fix: spearate body/query validation

Co-authored-by: fPolic <frane@medusajs.com>
2022-02-21 16:24:38 +01:00
fPolic
def8763ee2 fix: unit test case for CustomerGroupServiceMock.retrieve 2022-02-21 15:30:44 +01:00
fPolic
f21454970c fix: typo in an assertion 2022-02-21 15:26:28 +01:00
fPolic
ecd6ed820e feat: add extend param for customer groups 2022-02-21 15:24:52 +01:00
fPolic
8313680a71 fix: integration test case 2022-02-21 14:33:20 +01:00
fPolic
963b594a8a test for the 404 case 2022-02-21 13:56:41 +01:00
fPolic
21d99a44a9 feat: GET customer group endpoint 2022-02-21 13:56:23 +01:00
Oliver Windall Juhl
93bc6a164a chore: Add video guide for medusa-file-spaces (#1090) 2022-02-19 17:10:37 +01:00
Shahed Nasser
99628f4249 added endpoint for storefront (#1084) 2022-02-19 17:07:49 +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
Zakaria El Asri
c2241d1101 fix: allow offset and limit in products free text search (#1082) 2022-02-18 11:39:32 +01:00
Mithushan Jalangan
821ad18eb7 chore: change @medusajs/medusa-react to medusa-react (#1083)
Co-authored-by: octalpixel <mithushan>
2022-02-18 10:43:06 +01:00
Philip Korsholm
b16976a6f4 Feat: Create customer group (#1074)
* fix babel transform-runtime regenerator required for migrations

* add customer group model

* add migration for customer group

* add customer group model export

* add customer group repository

* add customer group service

* add CustomerGroupRepository to "withTransaction" in CustomerGroupService

* remove unnecessary argument to runtime plugin

* service export ordering

* add create customer group endpoint

* add customergroup to route index in admin

* add customer group service

* add customer groups test

* cleanup

* duplicate error handling

* ducplicate name integration test

* add jsdoc

* customergroup not customer

* pr feedback

* pipeline test

* fix weird merge

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2022-02-18 09:58:54 +01:00
Adrien de Peretti
22d387dcce Feat(medusajs) Allow to pass custom headers (#1009)
* Feat(medusajs) Allow to pass custom headers

* fix: axios exprexted output

* fix: integration test cart

* refactor: Update types object > Record<string, any>

Co-authored-by: Sebastian Rindom <skrindom@gmail.com>
2022-02-17 16:50:03 +01:00
Kasper Fabricius Kristensen
449e666428 fix: export request types from add and remove product endpoints (#1078) 2022-02-17 14:47:15 +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
Kasper Fabricius Kristensen
66294038f0 feat: add and remove products to/from collection in bulk endpoints (#1032)
* adds bulk add/remove products to/from collection. Adds endpoint updateProducts on collections that uses these bulk operations

* fix integration tests and test description

* undo change to swap

* made requested changes

* added removeProducts endpoint

* made requested changes

* fix: set collection_id null

* updated collection_id to type string | undefined
2022-02-16 22:45:19 +01:00
Rishi Kumar Ray
22d3d4a2f6 Mark draft order endpoint wrong in medusa-js (#1046) 2022-02-16 12:59:16 +01:00
Oliver Windall Juhl
7ae754bb61 fix: use /admin/returns/:id/receive for swap returns (#1041) 2022-02-15 14:15:00 +01:00
Sebastian Rindom
07ce61dc75 Update CODEOWNERS 2022-02-15 13:44:23 +01:00
Adrien de Peretti
6f339e366a Fix() Try to load index files (#1016) 2022-02-15 10:39:29 +01:00
Benjamin Rio
7359c39f1f Update README.md (#1049)
Corrected typo
2022-02-13 13:07:56 +01:00
Oliver Windall Juhl
ba77fc920f bump (#1040) 2022-02-11 15:54:37 +01:00
Sebastian Rindom
6feb4b0cb3 Merge remote-tracking branch 'origin/master' into develop 2022-02-10 15:29:40 +01:00
Philip Korsholm
8141e12a3d add pagination and date filtering to regions (#976) 2022-02-10 09:15:07 +01:00
Kasper Fabricius Kristensen
ff9e2e58cb adds ability to update balance to 0 and adds integration test (#1036) 2022-02-10 09:11:32 +01:00
Jacob Roman
38b2e51cbb fix(#936): updates discord links. (#937)
* discord link updated to working one on home page

* reverted yarn.lock file

* updated to medusajs url
2022-02-09 19:39:30 +01:00
Oliver Windall Juhl
80e86ca08c chore: Update README 2022-02-09 11:37:24 +01:00
Yash Maheshwari
e638ac71ba Updated typo in docs (#1018) 2022-02-09 11:03:07 +01:00
Shahed Nasser
f2b4481b1f Rearranged sidebar links (#1022)
* Rearranged sidebar links

* change quick start to quickstart
2022-02-09 11:02:50 +01:00
Oliver Windall Juhl
362d106086 chore: Update company logo 2022-02-07 09:52:36 +01:00
Shahed Nasser
a8dc663d99 chore(docs): changed logo to new logo (#1031) 2022-02-07 09:44:48 +01:00
Sebastian Rindom
38762961e6 chore(release): Publish
- gatsby-source-medusa@0.0.49
 - medusa-interfaces@1.1.34
 - @medusajs/medusa-js@1.0.12
 - medusa-payment-klarna@1.1.41
 - medusa-payment-paypal@1.0.40
 - medusa-plugin-algolia@0.0.8
 - medusa-plugin-brightpearl@1.1.45
 - medusa-plugin-mailchimp@1.1.39
 - medusa-plugin-meilisearch@0.0.14
 - medusa-plugin-restock-notification@0.0.32
 - medusa-plugin-segment@1.1.42
 - medusa-react@0.1.5
 - medusa-source-shopify@1.0.5
 - @medusajs/medusa@1.1.64
2022-02-06 19:29:53 +01:00