Releases: situmtech/situm-sdk-js
Releases · situmtech/situm-sdk-js
0.8.2
Added
- Move all the auth session logic to its own domain, this allows third
integrators to query for session information, specifically permission access level - Lazy load all internal domain (cartography, auth, realtime, user). This
improves code maintability.
Improved
- Improved documentation
0.8.1
Fixed:
- Fix build problem
0.8.0
Added:
- Add createPoisBulk, patchPoisBulk, deletPoisBulk in cartography domain
- Implement new auth mechanism by direct pass of a JWT string
- Add method to renew expired JWT
Improvements:
- Migrate all tests to raw jest expectations, removed chai and mocha
- Improve all JSDoc comments
- Updated almost all dependencies to latest versions (important to fix a CVE from axios)
- Remove qs as dependency and update a bunch of devDependencies
Fixed:
- Fix createPoi and patchPoi methods broken due to invalid types
- Fix patchFloor patchBuilding methods
0.7.1
Fixed
- Fixed error on pois fetching duplicating pois when there were outdoor pois,
0.7.0
Fixed
- Query params where not passed propertly
Added
- Add new compact view support for the buildings and pois endpoints. This new view allow to save bandwidth while fetching information.
v0.6.1
Improvements
- Remove the email parameter in email/apikey authentication. Now you only need to specify a valid apikey.
0.5.0
Added
- Add cartesian coordinates to poi instances
0.4.0
Added
- SDKConfiguration may include an optional lang parameter to override the Accept-Language HTTP header. Fallsback to "en" if no language is provided. This avoids known issues when retrieving translated entities (bad translations due to sending arbitrary Accept-Language headers).
Usage example:
const SitumSDK = require("@situm/sdk-js");
const situmSDK = new SitumSDK({
auth: {
apiKey: "MY-API-KEY",
email: "MY-EMAIL",
},
domain: "https://dashboard.situm.com",
lang: "es",
});
Technically you could use any standard Accept-Language values but we recommend to stick to ISO_639-1, avoiding language variants. For example, don't use "es-GB", use "es" instead.
0.3.0
Added
- Handler for fetching the current organization info (activated modules, logos, accent colors)
Improvements
- Add base domain to the poi categories icon urls. This fixes image urls pointing to wrong environment.
0.2.0
0.2.0 (2022-04-22)
Improved
- Updated dependencies
Fixed
- build: Export types propertly to dist/index.d.ts