@spotto/contract 1.0.66-alpha.7 → 1.0.66-alpha.9

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.
@@ -17,10 +17,16 @@ export interface ILastLocation {
17
17
  geolocation?: Point;
18
18
  organisation?: IEmbeddedEntity;
19
19
  status: LocationStatus;
20
+ supportsWith?: boolean;
20
21
  withAsset?: {
21
22
  id: string;
22
23
  name: string;
23
24
  };
25
+ nearReader?: {
26
+ id: string;
27
+ name: string;
28
+ type?: LocationType;
29
+ };
24
30
  }
25
31
  export interface ICandidateLocation extends IEmbeddedEntity {
26
32
  type: LocationType;
@@ -30,6 +30,7 @@ export interface AssetFilters {
30
30
  customFieldValues?: {
31
31
  values: CustomFieldsAssetFilter[];
32
32
  };
33
+ locationWithIds?: string[];
33
34
  }
34
35
  export interface GetAssetsQuery extends AssetFilters {
35
36
  page?: number;
@@ -87,6 +87,7 @@ export interface GetSnapshotsItem {
87
87
  user?: IEmbeddedEntity;
88
88
  reader?: IEmbeddedEntity;
89
89
  location?: IEmbeddedEntity;
90
+ asset?: IEmbeddedEntity;
90
91
  manifest?: IEmbeddedEntity;
91
92
  computed?: ISnapshotComputed;
92
93
  fields?: ISnapshotFields;
@@ -6,7 +6,7 @@ exports.testGetSnapshotRequest = {
6
6
  created: 123456789,
7
7
  location: {
8
8
  id: 'locationId',
9
- name: 'locationName'
9
+ name: 'locationName',
10
10
  },
11
11
  computed: {
12
12
  missingTotal: 0,
@@ -16,17 +16,17 @@ exports.testGetSnapshotRequest = {
16
16
  count: 2,
17
17
  countMissingTypes: 1,
18
18
  countMissing: 1,
19
- countSighted: 1
19
+ countSighted: 1,
20
20
  },
21
21
  manifestAssets: {
22
22
  count: 2,
23
23
  countMissing: 1,
24
- countSighted: 1
24
+ countSighted: 1,
25
25
  },
26
26
  additional: {
27
27
  countTypes: 1,
28
- countAssets: 1
29
- }
30
- }
28
+ countAssets: 1,
29
+ },
30
+ },
31
31
  };
32
32
  //# sourceMappingURL=get.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;AAuHa,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE;QACR,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,cAAc;KACrB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,CAAC;QACf,aAAa,EAAE;YACb,KAAK,EAAE,CAAC;YACR,iBAAiB,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;SAEhB;QACD,cAAc,EAAE;YACd,KAAK,EAAE,CAAC;YACR,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;SAChB;QACD,UAAU,EAAE;YACV,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC;SACf;KACF;CACF,CAAA"}
1
+ {"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/snapshots/[id]/get.ts"],"names":[],"mappings":";;;AAwHa,QAAA,sBAAsB,GAAwB;IACzD,EAAE,EAAE,OAAO;IACX,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE;QACR,EAAE,EAAE,YAAY;QAChB,IAAI,EAAE,cAAc;KACrB;IACD,QAAQ,EAAE;QACR,YAAY,EAAE,CAAC;QACf,cAAc,EAAE,CAAC;QACjB,YAAY,EAAE,CAAC;QACf,aAAa,EAAE;YACb,KAAK,EAAE,CAAC;YACR,iBAAiB,EAAE,CAAC;YACpB,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;SAEhB;QACD,cAAc,EAAE;YACd,KAAK,EAAE,CAAC;YACR,YAAY,EAAE,CAAC;YACf,YAAY,EAAE,CAAC;SAChB;QACD,UAAU,EAAE;YACV,UAAU,EAAE,CAAC;YACb,WAAW,EAAE,CAAC;SACf;KACF;CACF,CAAA"}
@@ -5,6 +5,7 @@ export declare type SnapshotEmbedField = 'meta';
5
5
  export interface SnapshotFilters {
6
6
  ids?: string[];
7
7
  locationIds?: string[];
8
+ assetIds?: string[];
8
9
  manifestIds?: string[];
9
10
  readerIds?: string[];
10
11
  timeFrom?: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.66-alpha.7",
4
+ "version": "1.0.66-alpha.9",
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": "ce0b553846ec7771edcc827ada95074b95d38ba4"
21
+ "gitHead": "bcdc10df1eba51f245ddbab6fa8dd7e24d79054d"
22
22
  }