@spotto/contract 1.0.3 → 1.0.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.
- package/dist/assets/[id]/get.d.ts +2 -0
- package/dist/assets/[id]/index.d.ts +1 -0
- package/dist/assets/[id]/index.js +1 -0
- package/dist/assets/[id]/index.js.map +1 -1
- package/dist/assets/[id]/patch/request.d.ts +1 -0
- package/dist/assets/[id]/patch/response.d.ts +1 -1
- package/dist/assets/[id]/readers.d.ts +9 -0
- package/dist/assets/[id]/readers.js +3 -0
- package/dist/assets/[id]/readers.js.map +1 -0
- package/dist/assets/count/index.d.ts +2 -0
- package/dist/assets/count/index.js +19 -0
- package/dist/assets/count/index.js.map +1 -0
- package/dist/assets/count/query.d.ts +1 -0
- package/dist/assets/count/query.js +3 -0
- package/dist/assets/count/query.js.map +1 -0
- package/dist/assets/count/response.d.ts +19 -0
- package/dist/assets/count/response.js +3 -0
- package/dist/assets/count/response.js.map +1 -0
- package/dist/assets/get/query.d.ts +8 -5
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.js +1 -0
- package/dist/assets/index.js.map +1 -1
- package/dist/assets/post/request.d.ts +1 -0
- package/dist/events/count/index.d.ts +2 -0
- package/dist/events/count/index.js +19 -0
- package/dist/events/count/index.js.map +1 -0
- package/dist/events/count/query.d.ts +5 -0
- package/dist/events/count/query.js +3 -0
- package/dist/events/count/query.js.map +1 -0
- package/dist/events/count/response.d.ts +17 -0
- package/dist/events/count/response.js +3 -0
- package/dist/events/count/response.js.map +1 -0
- package/dist/events/get/query.d.ts +5 -3
- package/dist/events/get/response.d.ts +0 -1
- package/dist/events/index.d.ts +1 -0
- package/dist/events/index.js +1 -0
- package/dist/events/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/labels/[id]/get.d.ts +6 -0
- package/dist/labels/[id]/get.js +3 -0
- package/dist/labels/[id]/get.js.map +1 -0
- package/dist/labels/[id]/index.d.ts +2 -0
- package/dist/labels/[id]/index.js +19 -0
- package/dist/labels/[id]/index.js.map +1 -0
- package/dist/labels/[id]/patch/index.d.ts +2 -0
- package/dist/labels/[id]/patch/index.js +19 -0
- package/dist/labels/[id]/patch/index.js.map +1 -0
- package/dist/labels/[id]/patch/request.d.ts +3 -0
- package/dist/labels/[id]/patch/request.js +3 -0
- package/dist/labels/[id]/patch/request.js.map +1 -0
- package/dist/labels/[id]/patch/response.d.ts +1 -0
- package/dist/labels/[id]/patch/response.js +3 -0
- package/dist/labels/[id]/patch/response.js.map +1 -0
- package/dist/labels/constants.d.ts +4 -0
- package/dist/labels/constants.js +3 -0
- package/dist/labels/constants.js.map +1 -0
- package/dist/labels/get/index.d.ts +2 -0
- package/dist/labels/get/index.js +19 -0
- package/dist/labels/get/index.js.map +1 -0
- package/dist/labels/get/query.d.ts +11 -0
- package/dist/labels/get/query.js +3 -0
- package/dist/labels/get/query.js.map +1 -0
- package/dist/labels/get/response.d.ts +7 -0
- package/dist/labels/get/response.js +3 -0
- package/dist/labels/get/response.js.map +1 -0
- package/dist/labels/index.d.ts +4 -0
- package/dist/labels/index.js +21 -0
- package/dist/labels/index.js.map +1 -0
- package/dist/labels/post/index.d.ts +2 -0
- package/dist/labels/post/index.js +19 -0
- package/dist/labels/post/index.js.map +1 -0
- package/dist/labels/post/request.d.ts +4 -0
- package/dist/labels/post/request.js +3 -0
- package/dist/labels/post/request.js.map +1 -0
- package/dist/labels/post/response.d.ts +5 -0
- package/dist/labels/post/response.js +3 -0
- package/dist/labels/post/response.js.map +1 -0
- package/dist/locations/[id]/get.d.ts +0 -1
- package/dist/locations/[id]/patch/request.d.ts +0 -1
- package/dist/locations/[id]/patch/response.d.ts +1 -1
- package/dist/locations/count/index.d.ts +2 -0
- package/dist/locations/count/index.js +19 -0
- package/dist/locations/count/index.js.map +1 -0
- package/dist/locations/count/query.d.ts +1 -0
- package/dist/locations/count/query.js +3 -0
- package/dist/locations/count/query.js.map +1 -0
- package/dist/locations/count/response.d.ts +3 -0
- package/dist/locations/count/response.js +3 -0
- package/dist/locations/count/response.js.map +1 -0
- package/dist/locations/get/query.d.ts +7 -5
- package/dist/locations/index.d.ts +3 -2
- package/dist/locations/index.js +3 -2
- package/dist/locations/index.js.map +1 -1
- package/dist/locations/post/request.d.ts +0 -1
- package/dist/organisations/[id]/get.d.ts +1 -0
- package/dist/organisations/get/query.d.ts +1 -1
- package/dist/readers/[id]/patch/response.d.ts +1 -1
- package/dist/readers/count/index.d.ts +2 -0
- package/dist/readers/count/index.js +19 -0
- package/dist/readers/count/index.js.map +1 -0
- package/dist/readers/count/query.d.ts +1 -0
- package/dist/readers/count/query.js +3 -0
- package/dist/readers/count/query.js.map +1 -0
- package/dist/readers/count/response.d.ts +5 -0
- package/dist/readers/count/response.js +3 -0
- package/dist/readers/count/response.js.map +1 -0
- package/dist/readers/get/query.d.ts +7 -5
- package/dist/readers/index.d.ts +3 -2
- package/dist/readers/index.js +3 -2
- package/dist/readers/index.js.map +1 -1
- package/dist/readers/post/request.d.ts +0 -2
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IEmbeddedLabel } from '../../labels';
|
|
1
2
|
import { IEntityMeta, IEmbeddedEntity } from '../../shared';
|
|
2
3
|
import { IAssetTelemetry } from '../../telemetry';
|
|
3
4
|
export interface ILastLocation extends IEmbeddedEntity {
|
|
@@ -13,6 +14,7 @@ export interface ICandidateLocation extends IEmbeddedEntity {
|
|
|
13
14
|
export interface GetAssetResponse {
|
|
14
15
|
id: string;
|
|
15
16
|
name: string;
|
|
17
|
+
labels: IEmbeddedLabel[];
|
|
16
18
|
organisation?: IEmbeddedEntity;
|
|
17
19
|
tagIds?: string[];
|
|
18
20
|
score?: number;
|
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./patch"), exports);
|
|
18
18
|
__exportStar(require("./get"), exports);
|
|
19
19
|
__exportStar(require("./location"), exports);
|
|
20
|
+
__exportStar(require("./readers"), exports);
|
|
20
21
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/assets/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB;AACtB,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/assets/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,wCAAsB;AACtB,6CAA2B;AAC3B,4CAA0B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultError } from '../../../shared/errors';
|
|
2
2
|
import { TagsExistError } from '../../../tags/errors';
|
|
3
|
-
export { GetAssetResponse as UpdateAssetResponse } from '
|
|
3
|
+
export { GetAssetResponse as UpdateAssetResponse } from '../get';
|
|
4
4
|
export interface UpdateAssetError extends DefaultError {
|
|
5
5
|
data: TagsExistError;
|
|
6
6
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEmbeddedEntity } from '../../shared';
|
|
2
|
+
export interface IReaderSighting extends IEmbeddedEntity {
|
|
3
|
+
firstSeen: number;
|
|
4
|
+
lastSeen: number;
|
|
5
|
+
organisation?: IEmbeddedEntity;
|
|
6
|
+
distance?: number;
|
|
7
|
+
rssi?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare type GetAssetReaderSightingsResponse = IReaderSighting[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readers.js","sourceRoot":"","sources":["../../../src/assets/[id]/readers.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./query"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/assets/count/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { AssetFilters as CountAssetsQuery } from '../get/query';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/assets/count/query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface IBatteryCounts {
|
|
2
|
+
critical: number;
|
|
3
|
+
low: number;
|
|
4
|
+
ok: number;
|
|
5
|
+
}
|
|
6
|
+
export interface IDisplacedCounts {
|
|
7
|
+
visiting: number;
|
|
8
|
+
away: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ITaggedCounts {
|
|
11
|
+
tagged: number;
|
|
12
|
+
untagged: number;
|
|
13
|
+
}
|
|
14
|
+
export interface CountAssetsResponse {
|
|
15
|
+
battery: IBatteryCounts;
|
|
16
|
+
displaced: IDisplacedCounts;
|
|
17
|
+
tags: ITaggedCounts;
|
|
18
|
+
total: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/assets/count/response.ts"],"names":[],"mappings":""}
|
|
@@ -2,17 +2,20 @@ import { SearchableSortFields, SortOrders } from '../../shared';
|
|
|
2
2
|
export declare type AssetSearchField = 'name' | 'tagIds';
|
|
3
3
|
export declare type AssetEmbedField = 'meta' | 'tagIds' | 'lastLocation' | 'candidateLocations' | 'telemetry';
|
|
4
4
|
export declare type AssetSortField = SearchableSortFields | 'battery';
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
limit?: number;
|
|
5
|
+
export interface AssetFilters {
|
|
6
|
+
labels?: string[];
|
|
8
7
|
ids?: string[];
|
|
9
8
|
tagIds?: string[];
|
|
10
9
|
hasTags?: boolean;
|
|
11
10
|
archived?: boolean;
|
|
12
|
-
sort?: AssetSortField;
|
|
13
|
-
sortOrder?: SortOrders;
|
|
14
11
|
search?: string;
|
|
15
12
|
searchFuzzy?: boolean;
|
|
16
13
|
searchFields?: Array<AssetSearchField>;
|
|
14
|
+
}
|
|
15
|
+
export interface GetAssetsQuery extends AssetFilters {
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
sort?: AssetSortField;
|
|
19
|
+
sortOrder?: SortOrders;
|
|
17
20
|
embed?: Array<AssetEmbedField>;
|
|
18
21
|
}
|
package/dist/assets/index.d.ts
CHANGED
package/dist/assets/index.js
CHANGED
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./[id]"), exports);
|
|
18
|
+
__exportStar(require("./count"), exports);
|
|
18
19
|
__exportStar(require("./get"), exports);
|
|
19
20
|
__exportStar(require("./post"), exports);
|
|
20
21
|
__exportStar(require("./suggestions"), exports);
|
package/dist/assets/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,yCAAuB;AACvB,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/assets/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB;AACvB,gDAA8B;AAC9B,2CAAyB;AACzB,2CAAyB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./query"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/events/count/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/events/count/query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventType } from '../constants';
|
|
2
|
+
export interface ITimePeriod {
|
|
3
|
+
year: number;
|
|
4
|
+
month?: number;
|
|
5
|
+
day?: number;
|
|
6
|
+
hour?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IEventCount {
|
|
9
|
+
type: EventType;
|
|
10
|
+
count: number;
|
|
11
|
+
}
|
|
12
|
+
export interface EventCountForPeriod {
|
|
13
|
+
period: ITimePeriod;
|
|
14
|
+
counts: IEventCount[];
|
|
15
|
+
total: number;
|
|
16
|
+
}
|
|
17
|
+
export declare type CountEventsResponse = EventCountForPeriod[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/events/count/response.ts"],"names":[],"mappings":""}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { SortOrders } from '../../shared';
|
|
2
2
|
import { EventType } from '../constants';
|
|
3
|
-
export interface
|
|
4
|
-
page?: number;
|
|
5
|
-
limit?: number;
|
|
3
|
+
export interface EventFilters {
|
|
6
4
|
readers?: string[];
|
|
7
5
|
locations?: string[];
|
|
8
6
|
assets?: string[];
|
|
9
7
|
type?: EventType[];
|
|
10
8
|
timeFrom?: number;
|
|
11
9
|
timeTo?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface GetEventsQuery extends EventFilters {
|
|
12
|
+
page?: number;
|
|
13
|
+
limit?: number;
|
|
12
14
|
sortOrder?: SortOrders;
|
|
13
15
|
}
|
package/dist/events/index.d.ts
CHANGED
package/dist/events/index.js
CHANGED
|
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./constants"), exports);
|
|
18
18
|
__exportStar(require("./download"), exports);
|
|
19
|
+
__exportStar(require("./count"), exports);
|
|
19
20
|
__exportStar(require("./get"), exports);
|
|
20
21
|
__exportStar(require("./post"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/events/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,wCAAsB;AACtB,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./shared"), exports);
|
|
18
18
|
__exportStar(require("./events"), exports);
|
|
19
19
|
__exportStar(require("./integrations"), exports);
|
|
20
|
+
__exportStar(require("./labels"), exports);
|
|
20
21
|
__exportStar(require("./assets"), exports);
|
|
21
22
|
__exportStar(require("./locations"), exports);
|
|
22
23
|
__exportStar(require("./networks"), 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,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,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,2CAAyB;AACzB,8CAA4B;AAC5B,6CAA2B;AAC3B,kDAAgC;AAChC,4CAA0B;AAC1B,0CAAwB;AACxB,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAwB;AACxB,2CAAyB;AACzB,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/labels/[id]/get.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get"), exports);
|
|
18
|
+
__exportStar(require("./patch"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/labels/[id]/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAsB;AACtB,0CAAwB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./request"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/labels/[id]/patch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../../src/labels/[id]/patch/request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { GetLabelResponse as UpdateLabelResponse } from '../get';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../../src/labels/[id]/patch/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/labels/constants.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./query"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/labels/get/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { StandardSortFields, SortOrders } from '../../shared';
|
|
2
|
+
export declare type LabelEmbedField = 'meta';
|
|
3
|
+
export interface GetLabelsQuery {
|
|
4
|
+
page?: number;
|
|
5
|
+
limit?: number;
|
|
6
|
+
ids?: string[];
|
|
7
|
+
names?: string[];
|
|
8
|
+
sort?: StandardSortFields;
|
|
9
|
+
sortOrder?: SortOrders;
|
|
10
|
+
embed?: Array<LabelEmbedField>;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/labels/get/query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/labels/get/response.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./constants"), exports);
|
|
18
|
+
__exportStar(require("./post"), exports);
|
|
19
|
+
__exportStar(require("./get"), exports);
|
|
20
|
+
__exportStar(require("./[id]"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/labels/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,yCAAuB;AACvB,wCAAsB;AACtB,yCAAuB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./request"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/labels/post/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/labels/post/request.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/labels/post/response.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DefaultError } from '../../../shared/errors';
|
|
2
2
|
import { TagsExistError } from '../../../tags/errors';
|
|
3
|
-
export { GetLocationResponse as UpdateLocationResponse } from '
|
|
3
|
+
export { GetLocationResponse as UpdateLocationResponse } from '../get';
|
|
4
4
|
export interface UpdateLocationError extends DefaultError {
|
|
5
5
|
data: TagsExistError;
|
|
6
6
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./query"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/locations/count/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LocationFilters as CountLocationsQuery } from '../get/query';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/locations/count/query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/locations/count/response.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { SearchableSortFields, SortOrders } from '../../shared';
|
|
2
2
|
export declare type LocationSearchField = 'name';
|
|
3
3
|
export declare type LocationEmbedField = 'meta' | 'tagIds' | 'readers' | 'telemetry';
|
|
4
|
-
export interface
|
|
5
|
-
page?: number;
|
|
6
|
-
limit?: number;
|
|
4
|
+
export interface LocationFilters {
|
|
7
5
|
ids?: string[];
|
|
8
6
|
tagIds?: string[];
|
|
9
7
|
hasTags?: boolean;
|
|
10
8
|
hasReaders?: boolean;
|
|
11
9
|
setupComplete?: boolean;
|
|
12
10
|
archived?: boolean;
|
|
13
|
-
sort?: SearchableSortFields;
|
|
14
|
-
sortOrder?: SortOrders;
|
|
15
11
|
search?: string;
|
|
16
12
|
searchFuzzy?: boolean;
|
|
17
13
|
searchFields?: Array<LocationSearchField>;
|
|
14
|
+
}
|
|
15
|
+
export interface GetLocationsQuery extends LocationFilters {
|
|
16
|
+
page?: number;
|
|
17
|
+
limit?: number;
|
|
18
|
+
sort?: SearchableSortFields;
|
|
19
|
+
sortOrder?: SortOrders;
|
|
18
20
|
embed?: Array<LocationEmbedField>;
|
|
19
21
|
}
|
package/dist/locations/index.js
CHANGED
|
@@ -14,9 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./[id]"), exports);
|
|
18
|
+
__exportStar(require("./count"), exports);
|
|
18
19
|
__exportStar(require("./get"), exports);
|
|
20
|
+
__exportStar(require("./post"), exports);
|
|
19
21
|
__exportStar(require("./suggestions"), exports);
|
|
20
|
-
__exportStar(require("./[id]"), exports);
|
|
21
22
|
__exportStar(require("./errors"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,wCAAsB;AACtB,gDAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB;AACvB,gDAA8B;AAC9B,2CAAyB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StandardSortFields, SortOrders } from '../../shared';
|
|
2
|
-
export declare type OrganisationEmbedField = 'meta' | 'preferences';
|
|
2
|
+
export declare type OrganisationEmbedField = 'meta' | 'preferences' | 'children';
|
|
3
3
|
export interface GetOrganisationsQuery {
|
|
4
4
|
page?: number;
|
|
5
5
|
limit?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { GetReaderResponse as UpdateReaderResponse } from '
|
|
1
|
+
export { GetReaderResponse as UpdateReaderResponse } from '../get';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./query"), exports);
|
|
18
|
+
__exportStar(require("./response"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/readers/count/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAwB;AACxB,6CAA2B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ReaderFilters as CountReadersQuery } from '../get/query';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/readers/count/query.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response.js","sourceRoot":"","sources":["../../../src/readers/count/response.ts"],"names":[],"mappings":""}
|
|
@@ -2,19 +2,21 @@ import { SearchableSortFields, SortOrders } from '../../shared';
|
|
|
2
2
|
import { ReaderType, DeviceType } from '../constants';
|
|
3
3
|
export declare type ReaderSearchField = 'name' | 'deviceId';
|
|
4
4
|
export declare type ReaderEmbedField = 'meta' | 'status' | 'telemetry';
|
|
5
|
-
export interface
|
|
6
|
-
page?: number;
|
|
7
|
-
limit?: number;
|
|
5
|
+
export interface ReaderFilters {
|
|
8
6
|
ids?: string[];
|
|
9
7
|
locationIds?: string[];
|
|
10
8
|
deviceIds?: string[];
|
|
11
9
|
types?: ReaderType[];
|
|
12
10
|
deviceTypes?: DeviceType[];
|
|
13
11
|
archived?: boolean;
|
|
14
|
-
sort?: SearchableSortFields;
|
|
15
|
-
sortOrder?: SortOrders;
|
|
16
12
|
search?: string;
|
|
17
13
|
searchFuzzy?: boolean;
|
|
18
14
|
searchFields?: ReaderSearchField[];
|
|
15
|
+
}
|
|
16
|
+
export interface GetReadersQuery extends ReaderFilters {
|
|
17
|
+
page?: number;
|
|
18
|
+
limit?: number;
|
|
19
|
+
sort?: SearchableSortFields;
|
|
20
|
+
sortOrder?: SortOrders;
|
|
19
21
|
embed?: ReaderEmbedField[];
|
|
20
22
|
}
|
package/dist/readers/index.d.ts
CHANGED
package/dist/readers/index.js
CHANGED
|
@@ -14,10 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./[id]"), exports);
|
|
17
18
|
__exportStar(require("./constants"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./count"), exports);
|
|
19
20
|
__exportStar(require("./get"), exports);
|
|
21
|
+
__exportStar(require("./post"), exports);
|
|
20
22
|
__exportStar(require("./suggestions"), exports);
|
|
21
|
-
__exportStar(require("./[id]"), exports);
|
|
22
23
|
__exportStar(require("./user"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/readers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/readers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,8CAA4B;AAC5B,0CAAwB;AACxB,wCAAsB;AACtB,yCAAuB;AACvB,gDAA8B;AAC9B,yCAAuB"}
|
|
@@ -2,7 +2,6 @@ import { INetworkRequest } from '../../networks';
|
|
|
2
2
|
import { DeviceType, ReaderType } from '../constants';
|
|
3
3
|
export interface IUpsertedLocation {
|
|
4
4
|
name: string;
|
|
5
|
-
level?: string;
|
|
6
5
|
}
|
|
7
6
|
export interface IAntennaRequest {
|
|
8
7
|
name?: string;
|
|
@@ -10,7 +9,6 @@ export interface IAntennaRequest {
|
|
|
10
9
|
locationId?: string;
|
|
11
10
|
location?: {
|
|
12
11
|
name: string;
|
|
13
|
-
level?: string;
|
|
14
12
|
};
|
|
15
13
|
}
|
|
16
14
|
interface IBaseReaderRequest {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"build": "rm -rf dist && tsc --project tsconfig.json",
|
|
12
|
-
"clean": "rm -rf node_modules"
|
|
12
|
+
"clean": "rm -rf node_modules && rm -rf dist"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/geojson": "^7946.0.8"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "718ff33d633d18cd909b35076caa0244135e7776"
|
|
18
18
|
}
|