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.
- package/dist/lib/modules/asset/roles/RoleAssetsAdmin.d.ts +1 -0
- package/dist/lib/modules/asset/roles/RoleAssetsReader.d.ts +1 -0
- package/dist/lib/modules/decoder/Decoder.d.ts +2 -2
- package/dist/lib/modules/device/roles/RoleDevicesAdmin.d.ts +2 -0
- package/dist/lib/modules/device/roles/RoleDevicesReader.d.ts +2 -0
- package/dist/tests/helpers/document.d.ts +2 -2
- package/package.json +1 -1
|
@@ -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 =
|
|
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<
|
|
5
|
+
export declare function documentGet<TContent = JSONObject>(sdk: Kuzzle, index: string, collection: string, id: string): Promise<TContent>;
|