@spotto/contract 0.1.6-alpha.0 → 0.2.0-alpha.4

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,9 +1,9 @@
1
- import { DeviceType, ReaderType } from '../readers';
1
+ import { ReaderType, DeviceType } from '../readers';
2
2
  export interface ReaderPreferences {
3
3
  types: ReaderType[];
4
4
  deviceTypes: DeviceType[];
5
5
  }
6
6
  export interface Preferences {
7
- reader: ReaderPreferences;
7
+ readers: ReaderPreferences;
8
8
  }
9
9
  export declare const preferencesSchema: import("joi").ObjectSchema<Preferences>;
@@ -5,7 +5,7 @@ const joi_1 = require("joi");
5
5
  const shared_1 = require("../shared");
6
6
  const readers_1 = require("../readers");
7
7
  exports.preferencesSchema = joi_1.object({
8
- reader: joi_1.object({
8
+ readers: joi_1.object({
9
9
  types: shared_1.xArrayOfRequiredStrings(...readers_1.READER_TYPES).required(),
10
10
  deviceTypes: shared_1.xArrayOfRequiredStrings(...readers_1.DEVICE_TYPES).required(),
11
11
  }).required(),
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/types/organisations/constants.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,sCAAoD;AACpD,wCAAgF;AAiBnE,QAAA,iBAAiB,GAAG,YAAM,CAAc;IACnD,MAAM,EAAE,YAAM,CAAoB;QAChC,KAAK,EAAE,gCAAuB,CAAC,GAAG,sBAAY,CAAC,CAAC,QAAQ,EAAE;QAC1D,WAAW,EAAE,gCAAuB,CAAC,GAAG,sBAAY,CAAC,CAAC,QAAQ,EAAE;KACjE,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/types/organisations/constants.ts"],"names":[],"mappings":";;;AAAA,6BAA6B;AAC7B,sCAAoD;AACpD,wCAAgF;AAiBnE,QAAA,iBAAiB,GAAG,YAAM,CAAc;IACnD,OAAO,EAAE,YAAM,CAAoB;QACjC,KAAK,EAAE,gCAAuB,CAAC,GAAG,sBAAY,CAAC,CAAC,QAAQ,EAAE;QAC1D,WAAW,EAAE,gCAAuB,CAAC,GAAG,sBAAY,CAAC,CAAC,QAAQ,EAAE;KACjE,CAAC,CAAC,QAAQ,EAAE;CACd,CAAC,CAAC"}
@@ -1,12 +1,3 @@
1
- export declare type ReaderType = 'FIXED' | 'ROVING' | 'VIRTUAL' | 'PORTAL';
2
- export declare const READER_TYPES: ReaderType[];
3
- export interface IReaderTypeDetail {
4
- id: ReaderType;
5
- name: string;
6
- description: string;
7
- visible: boolean;
8
- }
9
- export declare const READER_TYPE_DETAILS: IReaderTypeDetail[];
10
1
  export declare type DeviceType = 'B1' | 'RF1A4' | 'RF1F' | 'HD1' | 'ZEBRA' | 'IMPINJ' | 'TURCK' | 'OTHER' | 'APPLICATION';
11
2
  export declare const DEVICE_TYPES: DeviceType[];
12
3
  export declare type DeviceTechnologyType = 'BLE' | 'RFID' | 'HID';
@@ -30,4 +21,5 @@ declare type QuerySignature = {
30
21
  export declare const getDeviceTypes: (query: QuerySignature) => IDeviceTypeDetail[];
31
22
  export declare const getDeviceTypesForFormat: (deviceIdFormat: DeviceIdFormat) => DeviceType[];
32
23
  export declare const getDeviceTypesForEndpoint: (endpoint: ConnectorEndpoint) => DeviceType[];
24
+ export declare const isIoTX3: (id: DeviceType) => boolean;
33
25
  export {};
@@ -1,38 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getDeviceTypesForEndpoint = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = exports.READER_TYPE_DETAILS = exports.READER_TYPES = void 0;
4
- exports.READER_TYPES = [
5
- 'FIXED',
6
- 'ROVING',
7
- 'VIRTUAL',
8
- 'PORTAL',
9
- ];
10
- exports.READER_TYPE_DETAILS = [
11
- {
12
- id: 'FIXED',
13
- name: 'Zone',
14
- description: 'Readers will be plugged-in with a zone assigned to them.',
15
- visible: true,
16
- },
17
- {
18
- id: 'ROVING',
19
- name: 'Mobile',
20
- description: 'Readers will be portable without a zone assigned and detect RFID location tags.',
21
- visible: true,
22
- },
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
- ];
3
+ exports.isIoTX3 = exports.getDeviceTypesForEndpoint = exports.getDeviceTypesForFormat = exports.getDeviceTypes = exports.getDeviceTypeById = exports.DEVICE_TYPE_DETAILS = exports.DEVICE_TYPES = void 0;
36
4
  exports.DEVICE_TYPES = [
37
5
  'B1',
38
6
  'RF1A4',
@@ -129,7 +97,7 @@ const getDeviceTypes = (query) => exports.DEVICE_TYPE_DETAILS.filter(type => Obj
129
97
  const testField = query[key];
130
98
  const field = type[key];
131
99
  return (testField === null || testField === void 0 ? void 0 : testField.constructor) === Array && (field === null || field === void 0 ? void 0 : field.constructor) === Array
132
- ? testField.every(item => field === null || field === void 0 ? void 0 : field.includes(item))
100
+ ? field.every(item => testField === null || testField === void 0 ? void 0 : testField.includes(item))
133
101
  : testField === field;
134
102
  }));
135
103
  exports.getDeviceTypes = getDeviceTypes;
@@ -137,4 +105,6 @@ const getDeviceTypesForFormat = (deviceIdFormat) => exports.getDeviceTypes({ dev
137
105
  exports.getDeviceTypesForFormat = getDeviceTypesForFormat;
138
106
  const getDeviceTypesForEndpoint = (endpoint) => exports.getDeviceTypes({ endpoint }).map(({ id }) => id);
139
107
  exports.getDeviceTypesForEndpoint = getDeviceTypesForEndpoint;
140
- //# sourceMappingURL=constants.js.map
108
+ const isIoTX3 = (id) => exports.getDeviceTypesForEndpoint('iotx3').includes(id);
109
+ exports.isIoTX3 = isIoTX3;
110
+ //# sourceMappingURL=deviceTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deviceTypes.js","sourceRoot":"","sources":["../../../../src/types/readers/constants/deviceTypes.ts"],"names":[],"mappings":";;;AAWa,QAAA,YAAY,GAAiB;IACxC,IAAI;IACJ,OAAO;IACP,MAAM;IACN,KAAK;IACL,OAAO;IACP,QAAQ;IACR,OAAO;IACP,OAAO;IACP,aAAa;CACd,CAAC;AA8BW,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;QA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,CAAC;IAGxB,OAAO,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,WAAW,MAAK,KAAK,IAAI,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,WAAW,MAAK,KAAK;QACrE,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;QAChD,CAAC,CAAC,SAAS,KAAK,KAAK,CAAC;AAC1B,CAAC,CAAC,CACH,CAAC;AAXS,QAAA,cAAc,kBAWvB;AAMG,MAAM,uBAAuB,GAAG,CAAC,cAA8B,EAAE,EAAE,CACxE,sBAAc,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;AAD5C,QAAA,uBAAuB,2BACqB;AAGlD,MAAM,yBAAyB,GAAG,CAAC,QAA2B,EAAE,EAAE,CACvE,sBAAc,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC;AADtC,QAAA,yBAAyB,6BACa;AAM5C,MAAM,OAAO,GAAG,CAAC,EAAc,EAAE,EAAE,CACxC,iCAAyB,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AADrC,QAAA,OAAO,WAC8B"}
@@ -0,0 +1,2 @@
1
+ export * from './deviceTypes';
2
+ export * from './types';
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./deviceTypes"), exports);
14
+ __exportStar(require("./types"), exports);
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/readers/constants/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gDAA8B;AAC9B,0CAAwB"}
@@ -0,0 +1,9 @@
1
+ export declare type ReaderType = 'FIXED' | 'ROVING' | 'VIRTUAL' | 'PORTAL';
2
+ export declare const READER_TYPES: ReaderType[];
3
+ export interface IReaderTypeDetail {
4
+ id: ReaderType;
5
+ name: string;
6
+ description: string;
7
+ visible: boolean;
8
+ }
9
+ export declare const READER_TYPE_DETAILS: IReaderTypeDetail[];
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.READER_TYPE_DETAILS = exports.READER_TYPES = void 0;
4
+ exports.READER_TYPES = [
5
+ 'FIXED',
6
+ 'ROVING',
7
+ 'VIRTUAL',
8
+ 'PORTAL',
9
+ ];
10
+ exports.READER_TYPE_DETAILS = [
11
+ {
12
+ id: 'FIXED',
13
+ name: 'Zone',
14
+ description: 'Readers will be plugged-in with a zone assigned to them.',
15
+ visible: true,
16
+ },
17
+ {
18
+ id: 'ROVING',
19
+ name: 'Mobile',
20
+ description: 'Readers will be portable without a zone assigned and detect RFID location tags.',
21
+ visible: true,
22
+ },
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
+ ];
36
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/types/readers/constants/types.ts"],"names":[],"mappings":";;;AASa,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,13 +1,17 @@
1
1
  import { IEntityMeta, IEmbeddedEntity } from '../shared';
2
+ import { Preferences } from '../organisations/constants';
2
3
  export interface EmbeddedRole extends IEmbeddedEntity {
3
4
  permissions: string[];
4
5
  }
6
+ export interface EmbeddedOrganisation extends IEmbeddedEntity {
7
+ preferences: Preferences;
8
+ }
5
9
  export interface CurrentUserResponse {
6
10
  id: string;
7
11
  email: string;
8
12
  name: string;
9
13
  role: EmbeddedRole;
10
- organisation: IEmbeddedEntity;
14
+ organisation: EmbeddedOrganisation;
11
15
  meta?: IEntityMeta;
12
16
  }
13
17
  export declare const currentUserResponseSchema: import("joi").ObjectSchema<import("./[id]").UpdateUserResponse>;
@@ -4,12 +4,18 @@ exports.validateCurrentUserResponse = exports.currentUserResponseSchema = void 0
4
4
  const shared_1 = require("../shared");
5
5
  const _id_1 = require("./[id]");
6
6
  const get_1 = require("../roles/[id]/get");
7
+ const constants_1 = require("../organisations/constants");
7
8
  exports.currentUserResponseSchema = _id_1.getUserResponseSchema.append({
8
9
  role: shared_1.embeddedEntitySchema()
9
10
  .append({
10
11
  permissions: get_1.permissionsSchema,
11
12
  })
12
13
  .required(),
14
+ organisation: shared_1.embeddedEntitySchema()
15
+ .append({
16
+ preferences: constants_1.preferencesSchema,
17
+ })
18
+ .required(),
13
19
  });
14
20
  const validateCurrentUserResponse = (payload) => shared_1.validateJoiSchema(exports.currentUserResponseSchema, payload);
15
21
  exports.validateCurrentUserResponse = validateCurrentUserResponse;
@@ -1 +1 @@
1
- {"version":3,"file":"current.js","sourceRoot":"","sources":["../../../src/types/users/current.ts"],"names":[],"mappings":";;;AAAA,sCAKmB;AACnB,gCAA+C;AAC/C,2CAAsD;AA2BzC,QAAA,yBAAyB,GAAG,2BAAqB,CAAC,MAAM,CAAC;IACpE,IAAI,EAAE,6BAAoB,EAAgB;SACvC,MAAM,CAAC;QACN,WAAW,EAAE,uBAAiB;KAC/B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEI,MAAM,2BAA2B,GAAG,CAAC,OAAY,EAAE,EAAE,CAC1D,0BAAiB,CAAsB,iCAAyB,EAAE,OAAO,CAAC,CAAC;AADhE,QAAA,2BAA2B,+BACqC"}
1
+ {"version":3,"file":"current.js","sourceRoot":"","sources":["../../../src/types/users/current.ts"],"names":[],"mappings":";;;AAAA,sCAKmB;AACnB,gCAA+C;AAC/C,2CAAsD;AACtD,0DAA4E;AA+B/D,QAAA,yBAAyB,GAAG,2BAAqB,CAAC,MAAM,CAAC;IACpE,IAAI,EAAE,6BAAoB,EAAgB;SACvC,MAAM,CAAC;QACN,WAAW,EAAE,uBAAiB;KAC/B,CAAC;SACD,QAAQ,EAAE;IACb,YAAY,EAAE,6BAAoB,EAAwB;SACvD,MAAM,CAAC;QACN,WAAW,EAAE,6BAAiB;KAC/B,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC;AAEI,MAAM,2BAA2B,GAAG,CAAC,OAAY,EAAE,EAAE,CAC1D,0BAAiB,CAAsB,iCAAyB,EAAE,OAAO,CAAC,CAAC;AADhE,QAAA,2BAA2B,+BACqC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "0.1.6-alpha.0",
4
+ "version": "0.2.0-alpha.4",
5
5
  "description": "Spotto's API Contract",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -26,5 +26,5 @@
26
26
  "jest": "^26.6.3",
27
27
  "ts-jest": "^26.5.3"
28
28
  },
29
- "gitHead": "51d3f40def77602e7986260f454c7540a4ca007d"
29
+ "gitHead": "650f6c6c61aa37d20b4c72d9922c05d9a6b9e951"
30
30
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/types/readers/constants.ts"],"names":[],"mappings":";;;AASa,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;AAaW,QAAA,YAAY,GAAiB;IACxC,IAAI;IACJ,OAAO;IACP,MAAM;IACN,KAAK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