kuzzle-device-manager-types 2.1.4 → 2.1.5

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,6 +17,7 @@ import { KuzzleRole } from "../../shared/types/KuzzleRole";
17
17
  listAssets: true,
18
18
  getAsset: true,
19
19
  writeAsset: true,
20
+ listMeasures: true,
20
21
  },
21
22
  },
22
23
  */
@@ -15,6 +15,7 @@ import { KuzzleRole } from "../../shared/types/KuzzleRole";
15
15
  "device-manager/models": {
16
16
  actions: {
17
17
  listAssets: true,
18
+ listMeasures: true,
18
19
  getAsset: true,
19
20
  },
20
21
  },
@@ -8,7 +8,7 @@ import { DecoderContent } from "./types/DecoderContent";
8
8
  * This need to be read only so we can provide strong typing when decoding measures
9
9
  * with the DecodedPayload
10
10
  */
11
- export type NamedMeasures = ReadonlyArray<{
11
+ export type NamedMeasures = Array<{
12
12
  name: string;
13
13
  type: string;
14
14
  }>;
@@ -37,7 +37,7 @@ export declare abstract class Decoder {
37
37
  * { type: 'temperature', name: 'temperatureExterior' },
38
38
  * ];
39
39
  */
40
- measures: NamedMeasures;
40
+ measures: ReadonlyArray<NamedMeasures[0]>;
41
41
  /**
42
42
  * Custom name for the associated API action in the "payload" controller
43
43
  */
@@ -14,6 +14,7 @@ import { KuzzleRole } from "../../shared/types/KuzzleRole";
14
14
  search: true,
15
15
  unlinkAsset: true,
16
16
  update: true,
17
+ getMeasures: true,
17
18
  },
18
19
  },
19
20
  "device-manager/models": {
@@ -22,6 +23,7 @@ import { KuzzleRole } from "../../shared/types/KuzzleRole";
22
23
  listDevices: true,
23
24
  getDevice: true,
24
25
  writeDevice: true,
26
+ listMeasures: true,
25
27
  },
26
28
  },
27
29
  */
@@ -9,12 +9,14 @@ import { KuzzleRole } from "../../shared/types/KuzzleRole";
9
9
  actions: {
10
10
  get: true,
11
11
  search: true,
12
+ getMeasures: true,
12
13
  },
13
14
  },
14
15
  "device-manager/models": {
15
16
  actions: {
16
17
  listDevices: true,
17
18
  getDevice: true,
19
+ listMeasures: true,
18
20
  },
19
21
  },
20
22
  }
@@ -1,5 +1,5 @@
1
- import { Kuzzle } from "kuzzle-sdk";
1
+ import { JSONObject, Kuzzle } from "kuzzle-sdk";
2
2
  /**
3
3
  * Returns directly the document content
4
4
  */
5
- export declare function documentGet(sdk: Kuzzle, index: string, collection: string, id: string): Promise<import("kuzzle-sdk").KDocumentContentGeneric>;
5
+ export declare function documentGet<TContent = JSONObject>(sdk: Kuzzle, index: string, collection: string, id: string): Promise<TContent>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kuzzle-device-manager-types",
3
- "version": "2.1.4",
3
+ "version": "2.1.5",
4
4
  "description": "Shared types for Kuzzle Device Manager",
5
5
  "author": "The Kuzzle Team (support@kuzzle.io)",
6
6
  "types": "dist/index.d.ts",