@spotto/contract 1.0.22 → 1.0.24

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.
@@ -5,20 +5,20 @@ exports.READER_TYPES = ['FIXED', 'ROVING', 'MOVING'];
5
5
  exports.READER_TYPE_DETAILS = [
6
6
  {
7
7
  id: 'FIXED',
8
- name: 'Zone',
9
- description: 'Readers will be plugged-in with a zone assigned to them.',
8
+ name: 'Fixed',
9
+ description: 'Plugged in with a Spotto location assigned. These readers are fixed in place and do not move unless the Spotto location is manually reassigned.',
10
10
  visible: true,
11
11
  },
12
12
  {
13
13
  id: 'ROVING',
14
- name: 'Mobile',
15
- description: 'Readers will be portable without a zone assigned and detect RFID location tags.',
14
+ name: 'Handheld',
15
+ description: 'Typically RFID handheld scanners or a BLE phone applications. These readers detect location tags or use GPS to locate assets instead of being linked to a Spotto location',
16
16
  visible: true,
17
17
  },
18
18
  {
19
19
  id: 'MOVING',
20
- name: 'Moving',
21
- description: 'Readers will be a vehicle/boat/aircraft',
20
+ name: 'Vehicle',
21
+ description: 'GPS enabled readers attached to a vehicle will detect the location and any assets that are travelling with it',
22
22
  visible: true,
23
23
  },
24
24
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/readers/constants/types.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAiB,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAU3D,QAAA,mBAAmB,GAAwB;IACtD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,0DAA0D;QACvE,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EACT,iFAAiF;QACnF,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,IAAI;KACd;CACF,CAAC"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/readers/constants/types.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAiB,CAAC,OAAO,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAU3D,QAAA,mBAAmB,GAAwB;IACtD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,OAAO;QACb,WAAW,EACT,iJAAiJ;QACnJ,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,UAAU;QAChB,WAAW,EACT,2KAA2K;QAC7K,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,SAAS;QACf,WAAW,EACT,+GAA+G;QACjH,OAAO,EAAE,IAAI;KACd;CACF,CAAC"}
@@ -2,7 +2,13 @@ import { SortOrders } from '../../shared';
2
2
  export declare type SnapshotSortField = 'created' | 'submitted';
3
3
  export declare const snapshotSortFields: SnapshotSortField[];
4
4
  export declare type SnapshotEmbedField = 'meta';
5
- export interface GetSnapshotsQuery {
5
+ export interface SnapshotFilters {
6
+ ids?: string[];
7
+ locationIds?: string[];
8
+ timeFrom?: number;
9
+ timeTo?: number;
10
+ }
11
+ export interface GetSnapshotsQuery extends SnapshotFilters {
6
12
  page?: number;
7
13
  limit?: number;
8
14
  sort?: SnapshotSortField;
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/snapshots/get/query.ts"],"names":[],"mappings":";;;AAIa,QAAA,kBAAkB,GAAwB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/snapshots/get/query.ts"],"names":[],"mappings":";;;AAGa,QAAA,kBAAkB,GAAwB,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.22",
4
+ "version": "1.0.24",
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": "963de297b679bebac8f0ecc361517a9c41dca674"
17
+ "gitHead": "4991b2d9dc288e52df1b7fdc7171ed662550152f"
18
18
  }