@spotto/contract 0.3.4-alpha.8 → 1.0.0

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.
@@ -2,12 +2,15 @@ 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
+ }
5
8
  export interface GetEventResponse {
6
9
  id: string;
7
10
  timestamp: number;
8
11
  type: EventType;
9
12
  asset?: IEmbeddedEntity;
10
- location?: IEmbeddedEntity;
13
+ location?: EventLocation;
11
14
  reader?: IEmbeddedEntity;
12
15
  user?: IEmbeddedEntity;
13
16
  payload?: {
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ export * from './shared';
2
2
  export * from './events';
3
3
  export * from './integrations';
4
4
  export * from './assets';
5
- export * from './levels';
6
5
  export * from './locations';
7
6
  export * from './networks';
8
7
  export * from './organisations';
package/dist/index.js CHANGED
@@ -14,7 +14,6 @@ __exportStar(require("./shared"), exports);
14
14
  __exportStar(require("./events"), exports);
15
15
  __exportStar(require("./integrations"), exports);
16
16
  __exportStar(require("./assets"), exports);
17
- __exportStar(require("./levels"), exports);
18
17
  __exportStar(require("./locations"), exports);
19
18
  __exportStar(require("./networks"), exports);
20
19
  __exportStar(require("./organisations"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,2CAAyB;AACzB,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,2CAAyB;AACzB,iDAA+B;AAC/B,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,2CAAyB;AACzB,iDAA+B"}
@@ -6,7 +6,6 @@ export interface GetLocationsQuery {
6
6
  limit?: number;
7
7
  ids?: string[];
8
8
  tagIds?: string[];
9
- levels?: string[];
10
9
  hasTags?: boolean;
11
10
  hasReaders?: boolean;
12
11
  setupComplete?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "0.3.4-alpha.8",
4
+ "version": "1.0.0",
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": "fb1a926a3116f65a00d22a8f2831d32d5fbdd96a"
14
+ "gitHead": "d630c4c5785cab3a4be7811fbe720f95e9655c96"
15
15
  }
@@ -1,3 +0,0 @@
1
- export interface GetLevelsResponse {
2
- levels: string[];
3
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=get.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../src/levels/get.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export * from './get';
2
- export * from './put';
3
- export * from './post';
@@ -1,16 +0,0 @@
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("./get"), exports);
14
- __exportStar(require("./put"), exports);
15
- __exportStar(require("./post"), exports);
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/levels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wCAAsB;AACtB,wCAAsB;AACtB,yCAAuB"}
@@ -1,5 +0,0 @@
1
- export interface PostLevelRequest {
2
- level: string;
3
- }
4
- export interface PostLevelResponse {
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=post.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"post.js","sourceRoot":"","sources":["../../src/levels/post.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export interface PutLevelsRequest {
2
- levels: string[];
3
- }
4
- export interface PutLevelsResponse {
5
- levels: string[];
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=put.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"put.js","sourceRoot":"","sources":["../../src/levels/put.ts"],"names":[],"mappings":""}