@spotto/contract 1.0.27 → 1.0.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,18 @@
1
+ import { type Point } from 'geojson';
1
2
  import { IEmbeddedLabel } from '../../labels';
2
3
  import { LocationType } from '../../locations/constants';
3
4
  import { IEntityMeta, IEmbeddedEntity } from '../../shared';
4
5
  import { IAssetTelemetry } from '../../telemetry';
5
- export interface ILastLocation extends IEmbeddedEntity {
6
- type: LocationType;
6
+ export interface ILastLocation {
7
+ id?: string;
8
+ name?: string;
9
+ type?: LocationType;
7
10
  firstSeen: number;
8
11
  lastSeen: number;
9
- distance: number;
12
+ distance?: number;
13
+ confidence?: number;
14
+ moving?: boolean;
15
+ geolocation?: Point;
10
16
  organisation?: IEmbeddedEntity;
11
17
  }
12
18
  export interface ICandidateLocation extends IEmbeddedEntity {
@@ -10,6 +10,7 @@ export interface AssetFilters {
10
10
  tagIds?: string[];
11
11
  hasTags?: boolean;
12
12
  hasReported?: boolean;
13
+ hasGeolocationState?: boolean;
13
14
  roamingStatus?: AssetRoamingStatus;
14
15
  battery?: AssetBatteryStatus;
15
16
  search?: string;
@@ -11,6 +11,7 @@ export interface ILocationStatusLocation {
11
11
  firstSeen?: number;
12
12
  lastSeen?: number;
13
13
  moving?: boolean;
14
+ confidence?: number;
14
15
  geolocation?: Point;
15
16
  }
16
17
  export interface ILocationStatus {
@@ -2,12 +2,15 @@ import { type Point } from 'geojson';
2
2
  import { IEntityMeta, IEmbeddedEntity } from '../../shared';
3
3
  import { IReaderTelemetry } from '../../telemetry';
4
4
  import { ReaderType, DeviceType } from '../constants';
5
+ import { LocationType } from '../../locations';
5
6
  export interface IReaderStatusLocation {
6
7
  id?: string;
7
8
  name?: string;
9
+ type?: LocationType;
8
10
  firstSeen?: number;
9
11
  lastSeen?: number;
10
12
  moving?: boolean;
13
+ confidence?: number;
11
14
  geolocation?: Point;
12
15
  }
13
16
  export interface IReaderStatus {
@@ -10,6 +10,7 @@ export interface ReaderFilters {
10
10
  deviceTypes?: DeviceType[];
11
11
  isOnline?: boolean;
12
12
  hasReported?: boolean;
13
+ hasGeolocationState?: boolean;
13
14
  search?: string;
14
15
  searchFuzzy?: boolean;
15
16
  searchFields?: ReaderSearchField[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.27",
4
+ "version": "1.0.28",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -14,5 +14,5 @@
14
14
  "devDependencies": {
15
15
  "@types/geojson": "^7946.0.11"
16
16
  },
17
- "gitHead": "856747814158eb64db8ae7959749b4cfb4b362c8"
17
+ "gitHead": "56b8be6b02c98cc0f09782deea86622e81632880"
18
18
  }