@spotto/contract 1.0.13 → 1.0.14

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.
@@ -14,10 +14,13 @@ export interface ICandidateLocation extends IEmbeddedEntity {
14
14
  export interface GetAssetResponse {
15
15
  id: string;
16
16
  name: string;
17
+ nameComputed?: boolean;
18
+ nameSuffix?: string;
17
19
  labels: IEmbeddedLabel[];
18
20
  organisation?: IEmbeddedEntity;
19
21
  tagIds?: string[];
20
22
  typeId?: string;
23
+ typeName?: string;
21
24
  score?: number;
22
25
  meta?: IEntityMeta;
23
26
  telemetry?: IAssetTelemetry;
@@ -1,5 +1,6 @@
1
1
  export interface UpdateAssetRequest {
2
2
  name?: string;
3
+ nameSuffix?: string;
3
4
  tagIds?: string[];
4
5
  labels?: string[];
5
6
  typeId?: string;
@@ -1,7 +1,9 @@
1
1
  export interface PostAssetRequest {
2
- name: string;
2
+ name?: string;
3
+ nameSuffix?: string;
3
4
  tagIds?: string[];
4
5
  labels?: string[];
5
6
  typeId?: string;
6
7
  }
7
8
  export declare type PostAssetsRequest = PostAssetRequest[];
9
+ export declare const testPostAssetRequest: PostAssetRequest;
@@ -1,3 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.testPostAssetRequest = void 0;
4
+ exports.testPostAssetRequest = {
5
+ name: '1 kg',
6
+ nameSuffix: '2345',
7
+ typeId: '67890',
8
+ };
3
9
  //# sourceMappingURL=request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/assets/post/request.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/assets/post/request.ts"],"names":[],"mappings":";;;AAWa,QAAA,oBAAoB,GAAqB;IACpD,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,MAAM;IAClB,MAAM,EAAE,OAAO;CAChB,CAAC"}
@@ -21,6 +21,9 @@ export interface GetEventResponse {
21
21
  network?: string;
22
22
  deviceId?: string;
23
23
  location?: IEmbeddedEntity;
24
+ typeId?: string;
25
+ nameSuffix?: string;
26
+ manifestId?: string;
24
27
  };
25
28
  }
26
29
  export interface GetEventsResponse {
@@ -4,6 +4,7 @@ export interface DeletedCounts {
4
4
  tags?: number;
5
5
  readers?: number;
6
6
  events?: number;
7
+ types?: number;
7
8
  users?: number;
8
9
  }
9
10
  export interface DeleteOrganisationResponse {
@@ -3,6 +3,16 @@ export interface ReaderPreferences {
3
3
  types: ReaderType[];
4
4
  deviceTypes: DeviceType[];
5
5
  }
6
+ export interface AssetPreferences {
7
+ typesEnabled: boolean;
8
+ typesRequired: boolean;
9
+ typesLeafNodesOnly: boolean;
10
+ }
11
+ export interface LocationPreferences {
12
+ manifestsEnabled: boolean;
13
+ }
6
14
  export interface Preferences {
7
15
  readers: ReaderPreferences;
16
+ assets: AssetPreferences;
17
+ locations: LocationPreferences;
8
18
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spotto/contract",
3
3
  "license": "ISC",
4
- "version": "1.0.13",
4
+ "version": "1.0.14",
5
5
  "description": "Spotto's API Contract type definitions",
6
6
  "main": "./dist/index.js",
7
7
  "files": [
@@ -14,5 +14,5 @@
14
14
  "devDependencies": {
15
15
  "@types/geojson": "^7946.0.8"
16
16
  },
17
- "gitHead": "a5ace2e04280c94b228cd32f058f4810d0c7713e"
17
+ "gitHead": "96b0cfc28913a294e3c323832498b5ab7a84e34c"
18
18
  }