Commit Graph
27 Commits
Author SHA1 Message Date
Zakaria El Asri d365839a08 fix: api claim types + tests (#967) 2022-01-07 11:45:23 +01:00
Zakaria El Asri 7cc3640796 fix: medusa-js admin endpoint types (#968) 2022-01-07 11:44:59 +01:00
Zakaria El Asri 2efab08040 fix: client admin endpoints (#956) 2021-12-25 13:57:07 +01:00
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 AsriandSebastian Rindom 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 321c271e53 fix: allow integration tests to run from integration-test/api folder (#940) 2021-12-16 14:56:25 +01:00
Zakaria El AsriandSebastian Rindom 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
Zakaria El AsriandSebastian Rindom 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
Zakaria El Asri 69620e572e chore: parallelize integration tests and use template dbs (#907) 2021-12-14 21:45:57 +01:00
Zakaria El Asri d0d8dd7bf6 feat: add medusa-react (#913) 2021-12-14 19:09:36 +01:00
Zakaria El Asri 2e837fcdee fix: complete cart return type (#902) 2021-12-08 22:37:13 +01:00
Zakaria El Asri e8b6d2139d fix: return reasons type (#893) 2021-12-07 17:23:32 +01:00
Zakaria El Asri 487356a96f fix: medusa-js complete cart types + oas comments (#889) 2021-12-07 11:02:53 +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
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
Zakaria El Asri ded496cee5 fix: medusa-js fine-tuning (#836) 2021-11-22 23:30:36 +01:00
Zakaria El Asri 55e200bf68 add: upgrade oas-normalize and use promise-based api (#806) 2021-11-16 18:12:15 +01:00
Zakaria El Asriandolivermrbl 0a65eca3de fix: delete region causes cascade error (#672)
Co-authored-by: olivermrbl <oliver@mrbltech.com>
2021-11-03 15:19:46 +01:00
Zakaria El Asri 49a132976d fix: ILIKE operator not supported in sqlite (#393)
* fix: replace ILIKE operator with ILike function where possible

* remove: unused import

* fix: remove alias from test case as it is not needed

* fix: product variant query

* add: integration tests + fallback to original query for all queries searching on the display_id field

* remove: console.log
2021-09-21 11:15:33 +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
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
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