@spotto/contract 0.3.4-alpha.10 → 0.3.4-alpha.2
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/events/get/response.d.ts +1 -4
- package/dist/locations/[id]/inventory.d.ts +0 -2
- package/dist/networks/constants.d.ts +0 -1
- package/dist/organisations/[id]/wifi/response.d.ts +5 -1
- package/dist/readers/[id]/get.d.ts +2 -1
- package/dist/readers/[id]/inventory/index.d.ts +1 -0
- package/dist/readers/[id]/inventory/index.js +1 -0
- package/dist/readers/[id]/inventory/index.js.map +1 -1
- package/dist/readers/[id]/inventory/query.d.ts +3 -0
- package/dist/readers/[id]/inventory/query.js +3 -0
- package/dist/readers/[id]/inventory/query.js.map +1 -0
- package/dist/readers/[id]/inventory/response.d.ts +1 -4
- package/dist/readers/constants/deviceTypes.d.ts +2 -2
- package/dist/readers/constants/deviceTypes.js +0 -9
- package/dist/readers/constants/deviceTypes.js.map +1 -1
- package/package.json +2 -2
|
@@ -2,15 +2,12 @@ import { IEmbeddedEntity } from '../../shared';
|
|
|
2
2
|
import { EventType } from '../constants';
|
|
3
3
|
import { GetEventsQuery } from './query';
|
|
4
4
|
import { DeviceType, ReaderType } from '../../readers/constants';
|
|
5
|
-
export interface EventLocation extends IEmbeddedEntity {
|
|
6
|
-
organisation?: IEmbeddedEntity;
|
|
7
|
-
}
|
|
8
5
|
export interface GetEventResponse {
|
|
9
6
|
id: string;
|
|
10
7
|
timestamp: number;
|
|
11
8
|
type: EventType;
|
|
12
9
|
asset?: IEmbeddedEntity;
|
|
13
|
-
location?:
|
|
10
|
+
location?: IEmbeddedEntity;
|
|
14
11
|
reader?: IEmbeddedEntity;
|
|
15
12
|
user?: IEmbeddedEntity;
|
|
16
13
|
payload?: {
|
|
@@ -3,7 +3,8 @@ import { IReaderTelemetry } from '../../telemetry';
|
|
|
3
3
|
import { ReaderType, DeviceType } from '../constants';
|
|
4
4
|
export interface IReaderStatus {
|
|
5
5
|
online: boolean;
|
|
6
|
-
|
|
6
|
+
onlineTime: number;
|
|
7
|
+
lastReportedTime: number;
|
|
7
8
|
}
|
|
8
9
|
export interface IFixedReaderLocation extends IEmbeddedEntity {
|
|
9
10
|
type: 'FIXED';
|
|
@@ -10,5 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./query"), exports);
|
|
13
14
|
__exportStar(require("./response"), exports);
|
|
14
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/readers/[id]/inventory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/readers/[id]/inventory/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../../src/readers/[id]/inventory/query.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { IInventoryItem } from '../../../locations/[id]/inventory';
|
|
2
|
-
export
|
|
3
|
-
rssi?: number;
|
|
4
|
-
}
|
|
5
|
-
export declare type GetReaderInventoryResponse = IReaderInventoryItem[];
|
|
2
|
+
export declare type GetReaderInventoryResponse = IInventoryItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare type DeviceType = 'B1' | '
|
|
1
|
+
export declare type DeviceType = 'B1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'THINXTRA' | 'OTHER' | 'APPLICATION';
|
|
2
2
|
export declare const DEVICE_TYPES: DeviceType[];
|
|
3
3
|
export declare type DeviceTechnologyType = 'BLE' | 'RFID' | 'HID';
|
|
4
4
|
export declare type ConnectorEndpoint = 'iotx3' | 'zebra' | 'impinj' | 'turck' | 'thinxtra' | 'detector' | 'other' | 'zebra';
|
|
@@ -8,7 +8,7 @@ export interface IDeviceTypeDetail {
|
|
|
8
8
|
id: DeviceType;
|
|
9
9
|
name: string;
|
|
10
10
|
technology: DeviceTechnologyType[];
|
|
11
|
-
endpoint
|
|
11
|
+
endpoint: ConnectorEndpoint;
|
|
12
12
|
protocol: ConnectorProtocol;
|
|
13
13
|
deviceIdFormat?: DeviceIdFormat;
|
|
14
14
|
visible: boolean;
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.isIoTX3 = exports.getDeviceTypesForEndpoint = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
|
|
4
4
|
exports.DEVICE_TYPES = [
|
|
5
5
|
'B1',
|
|
6
|
-
'A1',
|
|
7
6
|
'RF1A4',
|
|
8
7
|
'RF1F',
|
|
9
8
|
'HD1',
|
|
@@ -24,14 +23,6 @@ exports.DEVICE_TYPE_DETAILS = [
|
|
|
24
23
|
deviceIdFormat: 'mac',
|
|
25
24
|
visible: true,
|
|
26
25
|
},
|
|
27
|
-
{
|
|
28
|
-
id: 'A1',
|
|
29
|
-
name: 'Spotto A1 Bluetooth Reader',
|
|
30
|
-
technology: ['BLE'],
|
|
31
|
-
protocol: 'mqtt',
|
|
32
|
-
deviceIdFormat: 'mac',
|
|
33
|
-
visible: true,
|
|
34
|
-
},
|
|
35
26
|
{
|
|
36
27
|
id: 'RF1A4',
|
|
37
28
|
name: 'Spotto RF1A4 RFID Reader',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../../src/readers/constants/deviceTypes.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../../src/readers/constants/deviceTypes.ts"],"names":[],"mappings":";;;AAYa,QAAA,YAAY,GAAiB;IACxC,IAAI;IACJ,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,OAAO;IACP,UAAU;IACV,OAAO;IACP,aAAa;CACd,CAAC;AA+BW,QAAA,mBAAmB,GAAwB;IACtD;QACE,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,4BAA4B;QAClC,UAAU,EAAE,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,0BAA0B;QAChC,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,MAAM;QACV,IAAI,EAAE,yBAAyB;QAC/B,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,KAAK;QACT,IAAI,EAAE,uBAAuB;QAC7B,UAAU,EAAE,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE,KAAK;QACrB,OAAO,EAAE,IAAI;KACd;IACD;QACE,EAAE,EAAE,OAAO;QACX,IAAI,EAAE,mBAAmB;QACzB,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,OAAO;QACjB,QAAQ,EAAE,MAAM;QAChB,OAAO,EA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0.3.4-alpha.
|
|
4
|
+
"version": "0.3.4-alpha.2",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
12
12
|
"clean": "rm -rf node_modules && rm -rf yarn.lock"
|
|
13
13
|
},
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "490ac0569a0e04acedd29febf1df346a1262190c"
|
|
15
15
|
}
|