@hello.nrfcloud.com/proto-map 12.1.1 → 12.1.2
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/api/LwM2M.ts +10 -3
- package/dist/api/LwM2M.js +16 -10
- package/package.json +4 -4
package/api/LwM2M.ts
CHANGED
|
@@ -20,11 +20,18 @@ export const ObjectInstanceID = Type.Integer({
|
|
|
20
20
|
examples: [0, 1],
|
|
21
21
|
})
|
|
22
22
|
|
|
23
|
+
const String = Type.String({ minLength: 1, title: 'LwM2M string value' })
|
|
24
|
+
const Number = Type.Number({ title: 'LwM2M number value' })
|
|
25
|
+
const Boolean = Type.Boolean({ title: 'LwM2M boolean value' })
|
|
26
|
+
|
|
23
27
|
export const Resources = Type.Record(
|
|
24
28
|
Type.Integer({ minimum: 0 }),
|
|
25
29
|
Type.Union([
|
|
26
|
-
|
|
27
|
-
Type.
|
|
28
|
-
|
|
30
|
+
String,
|
|
31
|
+
Type.Array(String),
|
|
32
|
+
Number,
|
|
33
|
+
Type.Array(Number),
|
|
34
|
+
Boolean,
|
|
35
|
+
Type.Array(Boolean),
|
|
29
36
|
]),
|
|
30
37
|
)
|
package/dist/api/LwM2M.js
CHANGED
|
@@ -21,17 +21,23 @@ export var ObjectInstanceID = Type.Integer({
|
|
|
21
21
|
1
|
|
22
22
|
]
|
|
23
23
|
});
|
|
24
|
+
var String = Type.String({
|
|
25
|
+
minLength: 1,
|
|
26
|
+
title: 'LwM2M string value'
|
|
27
|
+
});
|
|
28
|
+
var Number = Type.Number({
|
|
29
|
+
title: 'LwM2M number value'
|
|
30
|
+
});
|
|
31
|
+
var Boolean = Type.Boolean({
|
|
32
|
+
title: 'LwM2M boolean value'
|
|
33
|
+
});
|
|
24
34
|
export var Resources = Type.Record(Type.Integer({
|
|
25
35
|
minimum: 0
|
|
26
36
|
}), Type.Union([
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}),
|
|
34
|
-
Type.Boolean({
|
|
35
|
-
title: 'LwM2M boolean value'
|
|
36
|
-
})
|
|
37
|
+
String,
|
|
38
|
+
Type.Array(String),
|
|
39
|
+
Number,
|
|
40
|
+
Type.Array(Number),
|
|
41
|
+
Boolean,
|
|
42
|
+
Type.Array(Boolean)
|
|
37
43
|
]));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hello.nrfcloud.com/proto-map",
|
|
3
|
-
"version": "12.1.
|
|
3
|
+
"version": "12.1.2",
|
|
4
4
|
"description": "Documents the communication protocol between devices, the hello.nrfcloud.com/map backend and web application",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@bifravst/prettier-config": "1.0.2",
|
|
40
40
|
"@commitlint/config-conventional": "19.2.2",
|
|
41
41
|
"@swc/cli": "0.3.12",
|
|
42
|
-
"@swc/core": "1.5.
|
|
42
|
+
"@swc/core": "1.5.27",
|
|
43
43
|
"@types/node": "20.14.2",
|
|
44
44
|
"@types/xml2js": "0.4.14",
|
|
45
45
|
"chalk": "5.3.0",
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"remark": "15.0.1",
|
|
51
51
|
"remark-frontmatter": "5.0.0",
|
|
52
52
|
"tsmatchers": "5.0.2",
|
|
53
|
-
"tsx": "4.
|
|
53
|
+
"tsx": "4.15.1",
|
|
54
54
|
"xml2js": "0.6.2",
|
|
55
|
-
"yaml": "2.4.
|
|
55
|
+
"yaml": "2.4.5"
|
|
56
56
|
},
|
|
57
57
|
"lint-staged": {
|
|
58
58
|
"*.{ts,tsx}": [
|