@hello.nrfcloud.com/proto-map 12.1.2 → 12.1.4
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.
|
@@ -78,6 +78,9 @@ var createResource = function(Resource) {
|
|
|
78
78
|
"",
|
|
79
79
|
Resource.Description
|
|
80
80
|
];
|
|
81
|
+
if (Resource.Type === 'Time') {
|
|
82
|
+
docStrings.push("", "Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.");
|
|
83
|
+
}
|
|
81
84
|
if (range !== undefined) {
|
|
82
85
|
docStrings.push("", "Minimum: ".concat(range.min), "Maximum: ".concat(range.max));
|
|
83
86
|
}
|
|
@@ -130,6 +130,8 @@ var _obj;
|
|
|
130
130
|
* Timestamp (Time)
|
|
131
131
|
*
|
|
132
132
|
* The timestamp of when the location measurement was performed.
|
|
133
|
+
*
|
|
134
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
133
135
|
*/ 99: {
|
|
134
136
|
ResourceID: 99,
|
|
135
137
|
Name: "Timestamp",
|
|
@@ -231,6 +233,8 @@ var _obj;
|
|
|
231
233
|
* Timestamp (Time)
|
|
232
234
|
*
|
|
233
235
|
* The timestamp of when the measurement was performed.
|
|
236
|
+
*
|
|
237
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
234
238
|
*/ 99: {
|
|
235
239
|
ResourceID: 99,
|
|
236
240
|
Name: "Timestamp",
|
|
@@ -347,6 +351,8 @@ var _obj;
|
|
|
347
351
|
* Timestamp (Time)
|
|
348
352
|
*
|
|
349
353
|
* The timestamp of when the measurement was performed.
|
|
354
|
+
*
|
|
355
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
350
356
|
*/ 99: {
|
|
351
357
|
ResourceID: 99,
|
|
352
358
|
Name: "Timestamp",
|
|
@@ -438,6 +444,8 @@ var _obj;
|
|
|
438
444
|
* Timestamp (Time)
|
|
439
445
|
*
|
|
440
446
|
* The timestamp of when the measurement was performed.
|
|
447
|
+
*
|
|
448
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
441
449
|
*/ 99: {
|
|
442
450
|
ResourceID: 99,
|
|
443
451
|
Name: "Timestamp",
|
|
@@ -515,6 +523,8 @@ var _obj;
|
|
|
515
523
|
* Timestamp (Time)
|
|
516
524
|
*
|
|
517
525
|
* The timestamp of when the measurement was performed.
|
|
526
|
+
*
|
|
527
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
518
528
|
*/ 99: {
|
|
519
529
|
ResourceID: 99,
|
|
520
530
|
Name: "Timestamp",
|
|
@@ -560,6 +570,8 @@ var _obj;
|
|
|
560
570
|
* Timestamp (Time)
|
|
561
571
|
*
|
|
562
572
|
* The timestamp of when the measurement was performed.
|
|
573
|
+
*
|
|
574
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
563
575
|
*/ 99: {
|
|
564
576
|
ResourceID: 99,
|
|
565
577
|
Name: "Timestamp",
|
|
@@ -623,6 +635,8 @@ var _obj;
|
|
|
623
635
|
* Timestamp (Time)
|
|
624
636
|
*
|
|
625
637
|
* The timestamp of when the observation was made.
|
|
638
|
+
*
|
|
639
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
626
640
|
*/ 99: {
|
|
627
641
|
ResourceID: 99,
|
|
628
642
|
Name: "Timestamp",
|
|
@@ -696,6 +710,8 @@ var _obj;
|
|
|
696
710
|
* Timestamp (Time)
|
|
697
711
|
*
|
|
698
712
|
* The timestamp of when the LED was changed.
|
|
713
|
+
*
|
|
714
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
699
715
|
*/ 99: {
|
|
700
716
|
ResourceID: 99,
|
|
701
717
|
Name: "Timestamp",
|
|
@@ -743,6 +759,8 @@ var _obj;
|
|
|
743
759
|
* Timestamp (Time)
|
|
744
760
|
*
|
|
745
761
|
* The timestamp of when the configuration was updated.
|
|
762
|
+
*
|
|
763
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
746
764
|
*/ 99: {
|
|
747
765
|
ResourceID: 99,
|
|
748
766
|
Name: "Timestamp",
|
|
@@ -774,6 +792,8 @@ var _obj;
|
|
|
774
792
|
* Timestamp (Time)
|
|
775
793
|
*
|
|
776
794
|
* The timestamp of when the service info was updated.
|
|
795
|
+
*
|
|
796
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
777
797
|
*/ 99: {
|
|
778
798
|
ResourceID: 99,
|
|
779
799
|
Name: "Timestamp",
|
package/lwm2m/definitions.ts
CHANGED
|
@@ -56,6 +56,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
56
56
|
* Timestamp (Time)
|
|
57
57
|
*
|
|
58
58
|
* The timestamp of when the location measurement was performed.
|
|
59
|
+
*
|
|
60
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
59
61
|
*/
|
|
60
62
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the location measurement was performed." } } }, /**
|
|
61
63
|
* Battery and Power (14202)
|
|
@@ -99,6 +101,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
99
101
|
* Timestamp (Time)
|
|
100
102
|
*
|
|
101
103
|
* The timestamp of when the measurement was performed.
|
|
104
|
+
*
|
|
105
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
102
106
|
*/
|
|
103
107
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the measurement was performed." } } }, /**
|
|
104
108
|
* Connection information (14203)
|
|
@@ -149,6 +153,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
149
153
|
* Timestamp (Time)
|
|
150
154
|
*
|
|
151
155
|
* The timestamp of when the measurement was performed.
|
|
156
|
+
*
|
|
157
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
152
158
|
*/
|
|
153
159
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the measurement was performed." } } }, /**
|
|
154
160
|
* Device information (14204)
|
|
@@ -189,6 +195,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
189
195
|
* Timestamp (Time)
|
|
190
196
|
*
|
|
191
197
|
* The timestamp of when the measurement was performed.
|
|
198
|
+
*
|
|
199
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
192
200
|
*/
|
|
193
201
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the measurement was performed." } } }, /**
|
|
194
202
|
* Environment (14205)
|
|
@@ -222,6 +230,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
222
230
|
* Timestamp (Time)
|
|
223
231
|
*
|
|
224
232
|
* The timestamp of when the measurement was performed.
|
|
233
|
+
*
|
|
234
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
225
235
|
*/
|
|
226
236
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the measurement was performed." } } }, /**
|
|
227
237
|
* Solar charge (14210)
|
|
@@ -242,6 +252,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
242
252
|
* Timestamp (Time)
|
|
243
253
|
*
|
|
244
254
|
* The timestamp of when the measurement was performed.
|
|
255
|
+
*
|
|
256
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
245
257
|
*/
|
|
246
258
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the measurement was performed." } } }, /**
|
|
247
259
|
* Button press (14220)
|
|
@@ -252,6 +264,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
252
264
|
* Timestamp (Time)
|
|
253
265
|
*
|
|
254
266
|
* The timestamp of when the button was pressed.
|
|
267
|
+
*
|
|
268
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
255
269
|
*/
|
|
256
270
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the button was pressed." } } }, /**
|
|
257
271
|
* Sea Water Level (14230)
|
|
@@ -272,6 +286,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
272
286
|
* Timestamp (Time)
|
|
273
287
|
*
|
|
274
288
|
* The timestamp of when the observation was made.
|
|
289
|
+
*
|
|
290
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
275
291
|
*/
|
|
276
292
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the observation was made." } } }, /**
|
|
277
293
|
* RGB LED (14240)
|
|
@@ -306,6 +322,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
306
322
|
* Timestamp (Time)
|
|
307
323
|
*
|
|
308
324
|
* The timestamp of when the LED was changed.
|
|
325
|
+
*
|
|
326
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
309
327
|
*/
|
|
310
328
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the LED was changed." } } }, /**
|
|
311
329
|
* Application Configuration (14301)
|
|
@@ -329,6 +347,8 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
329
347
|
* Timestamp (Time)
|
|
330
348
|
*
|
|
331
349
|
* The timestamp of when the configuration was updated.
|
|
350
|
+
*
|
|
351
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
332
352
|
*/
|
|
333
353
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the configuration was updated." } } }, /**
|
|
334
354
|
* nRF Cloud Service Info (14401)
|
|
@@ -344,5 +364,7 @@ export const definitions: Record<LwM2MObjectID, LWM2MObjectInfo> = { /**
|
|
|
344
364
|
* Timestamp (Time)
|
|
345
365
|
*
|
|
346
366
|
* The timestamp of when the service info was updated.
|
|
367
|
+
*
|
|
368
|
+
* Time resources in LwM2M are represented as a signed integer representing the number of seconds since Jan 1, 1970 in the UTC time zone.
|
|
347
369
|
*/
|
|
348
370
|
99: { ResourceID: 99, Name: "Timestamp", Mandatory: true, Type: ResourceType.Time, Multiple: false, Description: "The timestamp of when the service info was updated." } } } };
|
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.4",
|
|
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": {
|
|
@@ -35,22 +35,22 @@
|
|
|
35
35
|
"prepublishOnly": "./compile.sh"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@bifravst/eslint-config-typescript": "6.1.
|
|
39
|
-
"@bifravst/prettier-config": "1.0.
|
|
38
|
+
"@bifravst/eslint-config-typescript": "6.1.3",
|
|
39
|
+
"@bifravst/prettier-config": "1.0.3",
|
|
40
40
|
"@commitlint/config-conventional": "19.2.2",
|
|
41
41
|
"@swc/cli": "0.3.12",
|
|
42
|
-
"@swc/core": "1.
|
|
42
|
+
"@swc/core": "1.6.1",
|
|
43
43
|
"@types/node": "20.14.2",
|
|
44
44
|
"@types/xml2js": "0.4.14",
|
|
45
45
|
"chalk": "5.3.0",
|
|
46
46
|
"globstar": "1.0.0",
|
|
47
47
|
"husky": "9.0.11",
|
|
48
|
-
"lint-staged": "15.2.
|
|
48
|
+
"lint-staged": "15.2.7",
|
|
49
49
|
"prettier-plugin-organize-imports": "3.2.4",
|
|
50
50
|
"remark": "15.0.1",
|
|
51
51
|
"remark-frontmatter": "5.0.0",
|
|
52
52
|
"tsmatchers": "5.0.2",
|
|
53
|
-
"tsx": "4.15.
|
|
53
|
+
"tsx": "4.15.5",
|
|
54
54
|
"xml2js": "0.6.2",
|
|
55
55
|
"yaml": "2.4.5"
|
|
56
56
|
},
|
|
@@ -98,6 +98,6 @@
|
|
|
98
98
|
"lwm2m"
|
|
99
99
|
],
|
|
100
100
|
"peerDependencies": {
|
|
101
|
-
"@sinclair/typebox": "^0.32.
|
|
101
|
+
"@sinclair/typebox": "^0.32.32"
|
|
102
102
|
}
|
|
103
103
|
}
|