Skip to content

Commit

Permalink
chore(release): 0.5.0
Browse files Browse the repository at this point in the history
added:
- add cartesian coordinates to poi instances
  • Loading branch information
joseluis9595 authored and frandieguez committed Sep 16, 2024
1 parent 6e86d4a commit d798200
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## 0.5.0 (2023-05-26)

### Added

- Added cartesian coordinates to Poi instances.

## 0.4.0 (2023-03-30)

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"author": "Situm Technologies",
"name": "@situm/sdk-js",
"version": "0.4.0",
"version": "0.5.0",
"description": "A Javascript client to Situm services, supporting Node and browser.",
"repository": "https://github.com/situmtech/situm-sdk-js",
"main": "dist/cjs/situm-sdk.js",
Expand Down
5 changes: 4 additions & 1 deletion src/adapters/PoiAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ export function getAdapter(serverPoi: ServerPoiGet): Poi {
// if indoor, normalize response
if (poi.position) {
poi["floorId"] = poi.position.floorId;
poi["location"] = poi.position.georeferences;
poi["location"] = {
...poi.position.georeferences,
...poi.position.cartesians,
};

delete poi.position;
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class SitumSDK {
*/
readonly realtime: RealtimeApi;

static readonly version = "0.4.0";
static readonly version = "0.5.0";

/**
* Initializes the API configuration and services exported
Expand Down
1 change: 1 addition & 0 deletions src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ export type Poi = PoiCreateForm & {
categoryName: string;
infoUnsafe: string;
type: string;
location: Coordinate & Cartesians;
};

export type PoiSearch = { buildingId?: ID; type?: "indoor" | "outdoor" };
Expand Down

0 comments on commit d798200

Please sign in to comment.