@spotto/contract 1.0.8-alpha.0 → 1.0.8
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.
- package/dist/assets/[id]/patch/request.d.ts +0 -1
- package/dist/assets/get/query.d.ts +0 -1
- package/dist/locations/[id]/patch/request.d.ts +0 -1
- package/dist/locations/get/query.d.ts +0 -1
- package/dist/readers/[id]/patch/request.d.ts +1 -3
- package/dist/readers/constants/types.d.ts +1 -1
- package/dist/readers/constants/types.js +1 -18
- package/dist/readers/constants/types.js.map +1 -1
- package/dist/readers/get/query.d.ts +0 -1
- package/dist/readers/post/request.d.ts +0 -9
- package/dist/tags/errors.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
import { INetworkRequest } from '../../../networks';
|
|
2
|
-
import {
|
|
2
|
+
import { IUpsertedLocation } from '../../post/request';
|
|
3
3
|
export interface UpdateReaderRequest {
|
|
4
4
|
name?: string;
|
|
5
|
-
archived?: boolean;
|
|
6
5
|
locationId?: string;
|
|
7
6
|
location?: IUpsertedLocation;
|
|
8
7
|
deviceId?: string;
|
|
9
8
|
network?: INetworkRequest;
|
|
10
|
-
antennas?: IAntennaRequest[];
|
|
11
9
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.READER_TYPE_DETAILS = exports.READER_TYPES = void 0;
|
|
4
|
-
exports.READER_TYPES = [
|
|
5
|
-
'FIXED',
|
|
6
|
-
'ROVING',
|
|
7
|
-
'VIRTUAL',
|
|
8
|
-
'PORTAL',
|
|
9
|
-
];
|
|
4
|
+
exports.READER_TYPES = ['FIXED', 'ROVING'];
|
|
10
5
|
exports.READER_TYPE_DETAILS = [
|
|
11
6
|
{
|
|
12
7
|
id: 'FIXED',
|
|
@@ -20,17 +15,5 @@ exports.READER_TYPE_DETAILS = [
|
|
|
20
15
|
description: 'Readers will be portable without a zone assigned and detect RFID location tags.',
|
|
21
16
|
visible: true,
|
|
22
17
|
},
|
|
23
|
-
{
|
|
24
|
-
id: 'VIRTUAL',
|
|
25
|
-
name: 'Virtual Multi-Antenna',
|
|
26
|
-
description: 'Readers with multiple antennas can be split into separate mobile readers, each reporting their own location',
|
|
27
|
-
visible: false,
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
id: 'PORTAL',
|
|
31
|
-
name: 'Portal Multi-Antenna',
|
|
32
|
-
description: 'Readers with 2 antennas can be assigned their own zones e.g. IN/OUT',
|
|
33
|
-
visible: false,
|
|
34
|
-
},
|
|
35
18
|
];
|
|
36
19
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/readers/constants/types.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAiB
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/readers/constants/types.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAiB,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;AAUjD,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;CACF,CAAC"}
|
|
@@ -3,21 +3,12 @@ import { DeviceType, ReaderType } from '../constants';
|
|
|
3
3
|
export interface IUpsertedLocation {
|
|
4
4
|
name: string;
|
|
5
5
|
}
|
|
6
|
-
export interface IAntennaRequest {
|
|
7
|
-
name?: string;
|
|
8
|
-
port: number;
|
|
9
|
-
locationId?: string;
|
|
10
|
-
location?: {
|
|
11
|
-
name: string;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
6
|
interface IBaseReaderRequest {
|
|
15
7
|
deviceType: DeviceType;
|
|
16
8
|
locationId?: string;
|
|
17
9
|
location?: IUpsertedLocation;
|
|
18
10
|
deviceId?: string;
|
|
19
11
|
network?: INetworkRequest;
|
|
20
|
-
antennas?: IAntennaRequest[];
|
|
21
12
|
}
|
|
22
13
|
export interface DefaultReaderRequest extends IBaseReaderRequest {
|
|
23
14
|
name: string;
|
package/dist/tags/errors.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.8
|
|
4
|
+
"version": "1.0.8",
|
|
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.8"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "434507421032eaae23e8a7ae93651b7afe42dbd1"
|
|
18
18
|
}
|