Rares Stefan
12d304307a
feat(medusa-js, medusa-react, medusa): Prepare API for admin implementations ( #3110 )
...
********What********
Add `joinSalesChannels util to stock locations
Add the following endpoints to medusa-react
- inventory items
- mutations
- update
- delete
- update location level
- delete location level
- create location level
- queries
- list inventory items
- get inventory item
- list location levels
- Stock locations
- mutations
- create stock location
- update stock location
- delete stock location
- queries
- list stock locations
- get stock locatoin
- Variants
- queries
- get inventory
- Reservations
- mutations
- create reservation
- update reservation
- delete reservation
- queries
- list reservations
- get reservation
- sales channels
- mutations
- associate location with sc
- remove location association
**Why**
- Update clients to reflect new api endpoints in the core with inventory modules
Co-authored-by: Philip Korsholm <88927411+pKorsholm@users.noreply.github.com >
2023-02-16 08:49:48 +00:00
Kasper Fabricius Kristensen
4fbf6b7ad3
fix(medusa-react): Fix production.min.js causing invalid hook usage error in CJS environments ( #3144 )
2023-02-01 14:07:02 +01:00
olivermrbl
ab580066ae
fix: Merge conflicts with master
2023-01-18 10:17:39 +01:00
Kasper Fabricius Kristensen
cb25244007
hotfix(medusa-js, medusa-react): Fix issue with JS client bundle ( #3038 )
2023-01-16 17:44:24 +01:00
Kasper Fabricius Kristensen
8d1275c942
feat(medusa-react): Upgrade react-query and clean up dependencies ( #2969 )
2023-01-11 19:19:34 +01:00
Frane Polić
9eafde07fe
feat(medusa-js): Register PublishableApiKey ( #2616 )
...
**What**
- register a publishable API key through `medusa-js` i.e. define the key that will be sent with each request
**How**
- introduce KeyManager class which is used to share keys between medusa-js objects.
**Usage**
1. Set the key through the `Medusa` config
2. Set the key through `KeyManager` dynamically:
```ts
import { KeyManager } from "medusa-js"
KeyManager.registerPublishableApiKey("pk_123")
```
---
RESOLVES CORE-794
2022-11-17 12:19:18 +00:00
Zakaria El Asri
2e384842d5
feat: medusa-react admin hooks ( #978 )
...
* add: medusa admin hooks + tests
* fix: remove unneeded props
* fix: deps
* fix: deps
* fix: deps
* fix: failing tests
* fix: failing tests
* fix: query key
* add: yarn workspaces
* fix: linting medusa-react
* fix: add prepare script
* fix: buildOptions
* fix: useAdminShippingOptions query
* fix: use qs instead for query params (#1019 )
* fix: formatting
* debug: ci pipeline
* debug: log node_modules structure
* debug: use lerna bootstrap
* debug: update node version
* debug: print pkgs in workspace
* debug: print pkgs in workspace
* debug: print pkgs in workspace
* debug: print pkgs in workspace
* debug: add explicit build step
* fix: jsdoc
* debug: run build step
* debug: fix build errors
* debug: add build step to integration tests
* fix: failing test
* cleanup
Co-authored-by: Sebastian Rindom <seb@medusajs.com >
Co-authored-by: Sebastian Rindom <skrindom@gmail.com >
2022-02-02 17:10:56 +01:00
Zakaria El Asri
d0d8dd7bf6
feat: add medusa-react ( #913 )
2021-12-14 19:09:36 +01:00