@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.
@@ -1,6 +1,5 @@
1
1
  export interface UpdateAssetRequest {
2
2
  name?: string;
3
- archived?: boolean;
4
3
  tagIds?: string[];
5
4
  labels?: string[];
6
5
  }
@@ -12,7 +12,6 @@ export interface AssetFilters {
12
12
  hasReported?: boolean;
13
13
  roamingStatus?: AssetRoamingStatus;
14
14
  battery?: AssetBatteryStatus;
15
- archived?: boolean;
16
15
  search?: string;
17
16
  searchFuzzy?: boolean;
18
17
  searchFields?: Array<AssetSearchField>;
@@ -1,7 +1,6 @@
1
1
  export interface UpdateLocationRequest {
2
2
  name?: string;
3
3
  tagIds?: string[];
4
- archived?: boolean;
5
4
  address?: string;
6
5
  geoLocation?: GeoJSON.GeoJSON;
7
6
  }
@@ -7,7 +7,6 @@ export interface LocationFilters {
7
7
  hasTags?: boolean;
8
8
  hasReaders?: boolean;
9
9
  setupComplete?: boolean;
10
- archived?: boolean;
11
10
  search?: string;
12
11
  searchFuzzy?: boolean;
13
12
  searchFields?: Array<LocationSearchField>;
@@ -1,11 +1,9 @@
1
1
  import { INetworkRequest } from '../../../networks';
2
- import { IAntennaRequest, IUpsertedLocation } from '../../post/request';
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,4 +1,4 @@
1
- export declare type ReaderType = 'FIXED' | 'ROVING' | 'VIRTUAL' | 'PORTAL';
1
+ export declare type ReaderType = 'FIXED' | 'ROVING';
2
2
  export declare const READER_TYPES: ReaderType[];
3
3
  export interface IReaderTypeDetail {
4
4
  id: ReaderType;
@@ -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;IACxC,OAAO;IACP,QAAQ;IACR,SAAS;IACT,QAAQ;CACT,CAAC;AAUW,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,SAAS;QACb,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EACT,6GAA6G;QAC/G,OAAO,EAAE,KAAK;KACf;IACD;QACE,EAAE,EAAE,QAAQ;QACZ,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EACT,qEAAqE;QACvE,OAAO,EAAE,KAAK;KACf;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,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"}
@@ -10,7 +10,6 @@ export interface ReaderFilters {
10
10
  deviceTypes?: DeviceType[];
11
11
  isOnline?: boolean;
12
12
  hasReported?: boolean;
13
- archived?: boolean;
14
13
  search?: string;
15
14
  searchFuzzy?: boolean;
16
15
  searchFields?: ReaderSearchField[];
@@ -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;
@@ -2,6 +2,7 @@ export interface TagsExistConflict {
2
2
  tagId: string;
3
3
  type: 'LOCATION' | 'ASSET';
4
4
  id: string;
5
+ name: string;
5
6
  }
6
7
  export interface TagsExistError {
7
8
  type: 'TagsExistError';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.8-alpha.0",
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": "32fbf7c4b4ab9f013e4357a8402df59c9f2cf3bf"
17
+ "gitHead": "434507421032eaae23e8a7ae93651b7afe42dbd1"
18
18
  }