Skip to content

Releases: situmtech/situm-sdk-js

0.8.2

16 Sep 12:10
Compare
Choose a tag to compare

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

16 Sep 12:10
Compare
Choose a tag to compare

Fixed:

  • Fix build problem

0.8.0

16 Sep 12:09
Compare
Choose a tag to compare

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

29 Apr 09:26
Compare
Choose a tag to compare

Fixed

  • Fixed error on pois fetching duplicating pois when there were outdoor pois,

0.7.0

29 Apr 09:26
Compare
Choose a tag to compare

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

29 Apr 09:25
744ec62
Compare
Choose a tag to compare

Improvements

  • Remove the email parameter in email/apikey authentication. Now you only need to specify a valid apikey.

0.5.0

30 May 07:26
Compare
Choose a tag to compare

Added

  • Add cartesian coordinates to poi instances

0.4.0

30 May 07:20
Compare
Choose a tag to compare

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

02 Nov 12:19
Compare
Choose a tag to compare

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

24 Apr 18:54
Compare
Choose a tag to compare

0.2.0 (2022-04-22)

Improved

  • Updated dependencies

Fixed

  • build: Export types propertly to dist/index.d.ts