@spotto/contract 1.0.68-alpha.4 → 1.0.68-alpha.6
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/get/query.d.ts +16 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/snapshots/[id]/get.d.ts +6 -2
- package/dist/snapshots/get/query.d.ts +2 -0
- package/dist/snapshots/post/request.d.ts +3 -1
- package/dist/system/index.d.ts +3 -0
- package/dist/system/index.js +3 -0
- package/dist/system/index.js.map +1 -0
- package/package.json +2 -2
|
@@ -4,10 +4,22 @@ export declare type AssetEmbedField = 'meta' | 'tagIds' | 'candidateLocations' |
|
|
|
4
4
|
export declare type AssetSortField = SearchableSortFields | 'battery';
|
|
5
5
|
export declare type AssetBatteryStatus = 'critical' | 'low' | 'ok';
|
|
6
6
|
export declare type AssetLocationStatus = 'NEVERSEEN' | 'UNKNOWN' | 'HOME' | 'AWAY' | 'ROAMING' | 'MAP';
|
|
7
|
-
|
|
7
|
+
declare type _CustomFieldsAssetFilterBase = {
|
|
8
8
|
id: string;
|
|
9
|
+
};
|
|
10
|
+
declare type CustomFieldsAssetFilterValue = _CustomFieldsAssetFilterBase & {
|
|
9
11
|
values: any[];
|
|
10
|
-
}
|
|
12
|
+
};
|
|
13
|
+
declare type CustomFieldsAssetFilterDateRange = _CustomFieldsAssetFilterBase & {
|
|
14
|
+
from: string;
|
|
15
|
+
to: string;
|
|
16
|
+
};
|
|
17
|
+
export declare type CustomFieldsAssetFilter = CustomFieldsAssetFilterValue | CustomFieldsAssetFilterDateRange;
|
|
18
|
+
export declare type CustomFieldValues = {
|
|
19
|
+
values?: Array<CustomFieldsAssetFilterValue>;
|
|
20
|
+
dateRanges?: Array<CustomFieldsAssetFilterDateRange>;
|
|
21
|
+
dateTimeRanges?: Array<CustomFieldsAssetFilterDateRange>;
|
|
22
|
+
};
|
|
11
23
|
export interface AssetFilters {
|
|
12
24
|
labels?: string[];
|
|
13
25
|
ids?: string[];
|
|
@@ -27,9 +39,7 @@ export interface AssetFilters {
|
|
|
27
39
|
locationPathBeginsWith?: string[];
|
|
28
40
|
homeLocationIds?: string[];
|
|
29
41
|
homeLocationPathBeginsWith?: string[];
|
|
30
|
-
customFieldValues?:
|
|
31
|
-
values: CustomFieldsAssetFilter[];
|
|
32
|
-
};
|
|
42
|
+
customFieldValues?: CustomFieldValues;
|
|
33
43
|
locationWithIds?: string[];
|
|
34
44
|
manifestIds?: string[];
|
|
35
45
|
}
|
|
@@ -40,3 +50,4 @@ export interface GetAssetsQuery extends AssetFilters {
|
|
|
40
50
|
sortOrder?: SortOrders;
|
|
41
51
|
embed?: Array<AssetEmbedField>;
|
|
42
52
|
}
|
|
53
|
+
export {};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -33,4 +33,5 @@ __exportStar(require("./errors"), exports);
|
|
|
33
33
|
__exportStar(require("./snapshots"), exports);
|
|
34
34
|
__exportStar(require("./fields"), exports);
|
|
35
35
|
__exportStar(require("./workflows"), exports);
|
|
36
|
+
__exportStar(require("./system"), exports);
|
|
36
37
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,2CAAwB;AACxB,iDAA8B;AAC9B,2CAAwB;AACxB,2CAAwB;AACxB,8CAA2B;AAC3B,6CAA0B;AAC1B,kDAA+B;AAC/B,4CAAyB;AACzB,0CAAuB;AACvB,yCAAsB;AACtB,8CAA2B;AAC3B,0CAAuB;AACvB,8CAA2B;AAC3B,0CAAuB;AACvB,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB;AACxB,8CAA2B;AAC3B,2CAAwB"}
|
|
@@ -64,7 +64,9 @@ export interface GetSnapshotResponse {
|
|
|
64
64
|
id: string;
|
|
65
65
|
user?: IEmbeddedEntity;
|
|
66
66
|
reader?: IEmbeddedEntity;
|
|
67
|
-
location?: IEmbeddedEntity
|
|
67
|
+
location?: IEmbeddedEntity & {
|
|
68
|
+
path?: string;
|
|
69
|
+
};
|
|
68
70
|
asset?: IEmbeddedEntity & ISnapshotType;
|
|
69
71
|
manifest?: GetManifestResponseExtended;
|
|
70
72
|
detectedAssets?: ISnapshotDetectedAsset[];
|
|
@@ -82,7 +84,9 @@ export interface GetSnapshotsItem {
|
|
|
82
84
|
id: string;
|
|
83
85
|
user?: IEmbeddedEntity;
|
|
84
86
|
reader?: IEmbeddedEntity;
|
|
85
|
-
location?: IEmbeddedEntity
|
|
87
|
+
location?: IEmbeddedEntity & {
|
|
88
|
+
path?: string;
|
|
89
|
+
};
|
|
86
90
|
asset?: IEmbeddedEntity & ISnapshotType;
|
|
87
91
|
manifest?: IEmbeddedEntity;
|
|
88
92
|
computed?: ISnapshotComputed;
|
|
@@ -13,6 +13,8 @@ export interface SnapshotFilters {
|
|
|
13
13
|
timeFrom?: number;
|
|
14
14
|
timeTo?: number;
|
|
15
15
|
snapshotType?: SnapshotType;
|
|
16
|
+
locationPathBeginsWith?: string[];
|
|
17
|
+
typePathBeginsWith?: string[];
|
|
16
18
|
}
|
|
17
19
|
export interface GetSnapshotsQuery extends SnapshotFilters {
|
|
18
20
|
page?: number;
|
|
@@ -4,7 +4,9 @@ import { GetManifestResponse } from '../../manifests';
|
|
|
4
4
|
import { IEmbeddedEntity } from '../../shared/embed';
|
|
5
5
|
export interface PostSnapshotRequest {
|
|
6
6
|
reader?: IEmbeddedEntity;
|
|
7
|
-
location?: IEmbeddedEntity
|
|
7
|
+
location?: IEmbeddedEntity & {
|
|
8
|
+
path?: string;
|
|
9
|
+
};
|
|
8
10
|
asset?: IEmbeddedEntity & ISnapshotType;
|
|
9
11
|
geolocation?: Point;
|
|
10
12
|
manifest?: GetManifestResponse;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/system/index.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spotto/contract",
|
|
3
3
|
"license": "ISC",
|
|
4
|
-
"version": "1.0.68-alpha.
|
|
4
|
+
"version": "1.0.68-alpha.6",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -18,5 +18,5 @@
|
|
|
18
18
|
"@types/geojson": "^7946.0.11",
|
|
19
19
|
"shx": "^0.3.4"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "3f9958aee63c61d8fdb7234599c20e7f449a3567"
|
|
22
22
|
}
|