@spotto/contract 1.0.34-alpha.8 → 1.0.36-alpha.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.
|
@@ -4,6 +4,10 @@ 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
|
+
export interface CustomFieldsAssetFilter {
|
|
8
|
+
id: string;
|
|
9
|
+
values: string[];
|
|
10
|
+
}
|
|
7
11
|
export interface AssetFilters {
|
|
8
12
|
labels?: string[];
|
|
9
13
|
ids?: string[];
|
|
@@ -23,6 +27,9 @@ export interface AssetFilters {
|
|
|
23
27
|
locationPathBeginsWith?: string[];
|
|
24
28
|
homeLocationIds?: string[];
|
|
25
29
|
homeLocationPathBeginsWith?: string[];
|
|
30
|
+
customFieldValues?: {
|
|
31
|
+
values: CustomFieldsAssetFilter[];
|
|
32
|
+
};
|
|
26
33
|
}
|
|
27
34
|
export interface GetAssetsQuery extends AssetFilters {
|
|
28
35
|
page?: number;
|
|
@@ -2,6 +2,14 @@ import { GetLocationSuggestionsQuery } from './query';
|
|
|
2
2
|
import { IEmbeddedEntity } from '../../shared';
|
|
3
3
|
export interface GetLocationSuggestionsResponse {
|
|
4
4
|
query: GetLocationSuggestionsQuery;
|
|
5
|
-
suggestions:
|
|
6
|
-
|
|
5
|
+
suggestions: {
|
|
6
|
+
suggestion: string;
|
|
7
|
+
name: string;
|
|
8
|
+
matchedProp: string;
|
|
9
|
+
matchedPropValue: string;
|
|
10
|
+
}[];
|
|
11
|
+
matches: (IEmbeddedEntity & {
|
|
12
|
+
matchedProp: string;
|
|
13
|
+
matchedPropValue: string;
|
|
14
|
+
})[];
|
|
7
15
|
}
|
|
@@ -2,6 +2,14 @@ import { GetReaderSuggestionsQuery } from './query';
|
|
|
2
2
|
import { IEmbeddedEntity } from '../../shared';
|
|
3
3
|
export interface GetReaderSuggestionsResponse {
|
|
4
4
|
query: GetReaderSuggestionsQuery;
|
|
5
|
-
suggestions:
|
|
6
|
-
|
|
5
|
+
suggestions: {
|
|
6
|
+
suggestion: string;
|
|
7
|
+
name: string;
|
|
8
|
+
matchedProp: string;
|
|
9
|
+
matchedPropValue: string;
|
|
10
|
+
}[];
|
|
11
|
+
matches: (IEmbeddedEntity & {
|
|
12
|
+
matchedProp: string;
|
|
13
|
+
matchedPropValue: string;
|
|
14
|
+
})[];
|
|
7
15
|
}
|
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.36-alpha.0",
|
|
5
5
|
"description": "Spotto's API Contract type definitions",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"files": [
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"@types/geojson": "^7946.0.11",
|
|
16
16
|
"shx": "^0.3.4"
|
|
17
17
|
},
|
|
18
|
-
"gitHead": "
|
|
18
|
+
"gitHead": "1979adadc8e803dcfd28d7fddd014a677117ab4f"
|
|
19
19
|
}
|