@spotto/contract 1.0.26 → 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
|
|
6
|
-
|
|
6
|
+
export interface ILastLocation {
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
type?: LocationType;
|
|
7
10
|
firstSeen: number;
|
|
8
11
|
lastSeen: number;
|
|
9
|
-
distance
|
|
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 {
|
|
@@ -8,8 +8,8 @@ export interface LocationFilters {
|
|
|
8
8
|
type?: Array<LocationType>;
|
|
9
9
|
hasTags?: boolean;
|
|
10
10
|
hasReaders?: boolean;
|
|
11
|
-
hasGeolocation?: boolean;
|
|
12
11
|
hasGeofence?: boolean;
|
|
12
|
+
hasGeolocationState?: boolean;
|
|
13
13
|
setupComplete?: boolean;
|
|
14
14
|
search?: string;
|
|
15
15
|
searchFuzzy?: boolean;
|
|
@@ -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 {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.
|
|
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": "
|
|
17
|
+
"gitHead": "56b8be6b02c98cc0f09782deea86622e81632880"
|
|
18
18
|
}
|