zwave-js 9.0.0 → 9.0.1

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.
@@ -52,12 +52,12 @@ const __assertType__AssociationCCRemoveOptions = $o => {
52
52
  function _0($o) {
53
53
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
54
54
  return {};
55
- if ("groupId" in $o) {
55
+ if ("groupId" in $o && $o["groupId"] !== undefined) {
56
56
  const error = _number($o["groupId"]);
57
57
  if (error)
58
58
  return error;
59
59
  }
60
- if ("nodeIds" in $o) {
60
+ if ("nodeIds" in $o && $o["nodeIds"] !== undefined) {
61
61
  const error = sa__number_ea_3($o["nodeIds"]);
62
62
  if (error)
63
63
  return error;
@@ -47,21 +47,21 @@ const __assertType__sa__2_ea_2 = $o => {
47
47
  function _2($o) {
48
48
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
49
49
  return {};
50
- if ("hour" in $o) {
50
+ if ("hour" in $o && $o["hour"] !== undefined) {
51
51
  const error = _number($o["hour"]);
52
52
  if (error)
53
53
  return error;
54
54
  }
55
55
  else
56
56
  return {};
57
- if ("minute" in $o) {
57
+ if ("minute" in $o && $o["minute"] !== undefined) {
58
58
  const error = _number($o["minute"]);
59
59
  if (error)
60
60
  return error;
61
61
  }
62
62
  else
63
63
  return {};
64
- if ("state" in $o) {
64
+ if ("state" in $o && $o["state"] !== undefined) {
65
65
  const error = su__undefined__number__6__7__8_eu($o["state"]);
66
66
  if (error)
67
67
  return error;
@@ -42,47 +42,47 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
42
42
  function _2($o) {
43
43
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
44
44
  return {};
45
- if ("warmWhite" in $o) {
45
+ if ("warmWhite" in $o && $o["warmWhite"] !== undefined) {
46
46
  const error = su__undefined__number_eu($o["warmWhite"]);
47
47
  if (error)
48
48
  return error;
49
49
  }
50
- if ("coldWhite" in $o) {
50
+ if ("coldWhite" in $o && $o["coldWhite"] !== undefined) {
51
51
  const error = su__undefined__number_eu($o["coldWhite"]);
52
52
  if (error)
53
53
  return error;
54
54
  }
55
- if ("red" in $o) {
55
+ if ("red" in $o && $o["red"] !== undefined) {
56
56
  const error = su__undefined__number_eu($o["red"]);
57
57
  if (error)
58
58
  return error;
59
59
  }
60
- if ("green" in $o) {
60
+ if ("green" in $o && $o["green"] !== undefined) {
61
61
  const error = su__undefined__number_eu($o["green"]);
62
62
  if (error)
63
63
  return error;
64
64
  }
65
- if ("blue" in $o) {
65
+ if ("blue" in $o && $o["blue"] !== undefined) {
66
66
  const error = su__undefined__number_eu($o["blue"]);
67
67
  if (error)
68
68
  return error;
69
69
  }
70
- if ("amber" in $o) {
70
+ if ("amber" in $o && $o["amber"] !== undefined) {
71
71
  const error = su__undefined__number_eu($o["amber"]);
72
72
  if (error)
73
73
  return error;
74
74
  }
75
- if ("cyan" in $o) {
75
+ if ("cyan" in $o && $o["cyan"] !== undefined) {
76
76
  const error = su__undefined__number_eu($o["cyan"]);
77
77
  if (error)
78
78
  return error;
79
79
  }
80
- if ("purple" in $o) {
80
+ if ("purple" in $o && $o["purple"] !== undefined) {
81
81
  const error = su__undefined__number_eu($o["purple"]);
82
82
  if (error)
83
83
  return error;
84
84
  }
85
- if ("index" in $o) {
85
+ if ("index" in $o && $o["index"] !== undefined) {
86
86
  const error = su__undefined__number_eu($o["index"]);
87
87
  if (error)
88
88
  return error;
@@ -95,7 +95,7 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
95
95
  function _3($o) {
96
96
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
97
97
  return {};
98
- if ("duration" in $o) {
98
+ if ("duration" in $o && $o["duration"] !== undefined) {
99
99
  const error = _11($o["duration"]);
100
100
  if (error)
101
101
  return error;
@@ -114,47 +114,47 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
114
114
  function _5($o) {
115
115
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
116
116
  return {};
117
- if ("0" in $o) {
117
+ if ("0" in $o && $o["0"] !== undefined) {
118
118
  const error = su__undefined__number_eu($o["0"]);
119
119
  if (error)
120
120
  return error;
121
121
  }
122
- if ("1" in $o) {
122
+ if ("1" in $o && $o["1"] !== undefined) {
123
123
  const error = su__undefined__number_eu($o["1"]);
124
124
  if (error)
125
125
  return error;
126
126
  }
127
- if ("2" in $o) {
127
+ if ("2" in $o && $o["2"] !== undefined) {
128
128
  const error = su__undefined__number_eu($o["2"]);
129
129
  if (error)
130
130
  return error;
131
131
  }
132
- if ("3" in $o) {
132
+ if ("3" in $o && $o["3"] !== undefined) {
133
133
  const error = su__undefined__number_eu($o["3"]);
134
134
  if (error)
135
135
  return error;
136
136
  }
137
- if ("4" in $o) {
137
+ if ("4" in $o && $o["4"] !== undefined) {
138
138
  const error = su__undefined__number_eu($o["4"]);
139
139
  if (error)
140
140
  return error;
141
141
  }
142
- if ("5" in $o) {
142
+ if ("5" in $o && $o["5"] !== undefined) {
143
143
  const error = su__undefined__number_eu($o["5"]);
144
144
  if (error)
145
145
  return error;
146
146
  }
147
- if ("6" in $o) {
147
+ if ("6" in $o && $o["6"] !== undefined) {
148
148
  const error = su__undefined__number_eu($o["6"]);
149
149
  if (error)
150
150
  return error;
151
151
  }
152
- if ("7" in $o) {
152
+ if ("7" in $o && $o["7"] !== undefined) {
153
153
  const error = su__undefined__number_eu($o["7"]);
154
154
  if (error)
155
155
  return error;
156
156
  }
157
- if ("8" in $o) {
157
+ if ("8" in $o && $o["8"] !== undefined) {
158
158
  const error = su__undefined__number_eu($o["8"]);
159
159
  if (error)
160
160
  return error;
@@ -176,7 +176,7 @@ const __assertType__ColorSwitchCCSetOptions = $o => {
176
176
  function _7($o) {
177
177
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
178
178
  return {};
179
- if ("hexColor" in $o) {
179
+ if ("hexColor" in $o && $o["hexColor"] !== undefined) {
180
180
  const error = _string($o["hexColor"]);
181
181
  if (error)
182
182
  return error;
@@ -263,14 +263,14 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
263
263
  function _2($o) {
264
264
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
265
265
  return {};
266
- if ("colorComponent" in $o) {
266
+ if ("colorComponent" in $o && $o["colorComponent"] !== undefined) {
267
267
  const error = su__8__9__10__11__12__13__14__15__16_eu($o["colorComponent"]);
268
268
  if (error)
269
269
  return error;
270
270
  }
271
271
  else
272
272
  return {};
273
- if ("direction" in $o) {
273
+ if ("direction" in $o && $o["direction"] !== undefined) {
274
274
  const error = su__18__19_eu($o["direction"]);
275
275
  if (error)
276
276
  return error;
@@ -288,14 +288,14 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
288
288
  function _3($o) {
289
289
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
290
290
  return {};
291
- if ("ignoreStartLevel" in $o) {
291
+ if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
292
292
  const error = _true($o["ignoreStartLevel"]);
293
293
  if (error)
294
294
  return error;
295
295
  }
296
296
  else
297
297
  return {};
298
- if ("startLevel" in $o) {
298
+ if ("startLevel" in $o && $o["startLevel"] !== undefined) {
299
299
  const error = _number($o["startLevel"]);
300
300
  if (error)
301
301
  return error;
@@ -308,7 +308,7 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
308
308
  function _4($o) {
309
309
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
310
310
  return {};
311
- if ("duration" in $o) {
311
+ if ("duration" in $o && $o["duration"] !== undefined) {
312
312
  const error = _20($o["duration"]);
313
313
  if (error)
314
314
  return error;
@@ -330,14 +330,14 @@ const __assertType__ColorSwitchCCStartLevelChangeOptions = $o => {
330
330
  function _6($o) {
331
331
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
332
332
  return {};
333
- if ("ignoreStartLevel" in $o) {
333
+ if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
334
334
  const error = _false($o["ignoreStartLevel"]);
335
335
  if (error)
336
336
  return error;
337
337
  }
338
338
  else
339
339
  return {};
340
- if ("startLevel" in $o) {
340
+ if ("startLevel" in $o && $o["startLevel"] !== undefined) {
341
341
  const error = _number($o["startLevel"]);
342
342
  if (error)
343
343
  return error;
@@ -30,12 +30,12 @@ const __assertType__optional__0 = $o => {
30
30
  function _0($o) {
31
31
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
32
32
  return {};
33
- if ("valueBitMask" in $o) {
33
+ if ("valueBitMask" in $o && $o["valueBitMask"] !== undefined) {
34
34
  const error = _number($o["valueBitMask"]);
35
35
  if (error)
36
36
  return error;
37
37
  }
38
- if ("allowUnexpectedResponse" in $o) {
38
+ if ("allowUnexpectedResponse" in $o && $o["allowUnexpectedResponse"] !== undefined) {
39
39
  const error = _boolean($o["allowUnexpectedResponse"]);
40
40
  if (error)
41
41
  return error;
@@ -59,14 +59,14 @@ const __assertType__sa__2_ea_2 = $o => {
59
59
  function _2($o) {
60
60
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
61
61
  return {};
62
- if ("parameter" in $o) {
62
+ if ("parameter" in $o && $o["parameter"] !== undefined) {
63
63
  const error = _number($o["parameter"]);
64
64
  if (error)
65
65
  return error;
66
66
  }
67
67
  else
68
68
  return {};
69
- if ("bitMask" in $o) {
69
+ if ("bitMask" in $o && $o["bitMask"] !== undefined) {
70
70
  const error = _number($o["bitMask"]);
71
71
  if (error)
72
72
  return error;
@@ -174,7 +174,7 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
174
174
  function _26($o) {
175
175
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
176
176
  return {};
177
- if ("parameter" in $o) {
177
+ if ("parameter" in $o && $o["parameter"] !== undefined) {
178
178
  const error = _number($o["parameter"]);
179
179
  if (error)
180
180
  return error;
@@ -186,12 +186,12 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
186
186
  function _27($o) {
187
187
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
188
188
  return {};
189
- if ("bitMask" in $o) {
189
+ if ("bitMask" in $o && $o["bitMask"] !== undefined) {
190
190
  const error = _undefined($o["bitMask"]);
191
191
  if (error)
192
192
  return error;
193
193
  }
194
- if ("value" in $o) {
194
+ if ("value" in $o && $o["value"] !== undefined) {
195
195
  const error = su__number__8_4_4_4_eu($o["value"]);
196
196
  if (error)
197
197
  return error;
@@ -221,26 +221,26 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
221
221
  function _29($o) {
222
222
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
223
223
  return {};
224
- if ("bitMask" in $o) {
224
+ if ("bitMask" in $o && $o["bitMask"] !== undefined) {
225
225
  const error = _undefined($o["bitMask"]);
226
226
  if (error)
227
227
  return error;
228
228
  }
229
- if ("value" in $o) {
229
+ if ("value" in $o && $o["value"] !== undefined) {
230
230
  const error = su__number__8_4_4_4_eu($o["value"]);
231
231
  if (error)
232
232
  return error;
233
233
  }
234
234
  else
235
235
  return {};
236
- if ("valueSize" in $o) {
236
+ if ("valueSize" in $o && $o["valueSize"] !== undefined) {
237
237
  const error = su__11__12__13_eu($o["valueSize"]);
238
238
  if (error)
239
239
  return error;
240
240
  }
241
241
  else
242
242
  return {};
243
- if ("valueFormat" in $o) {
243
+ if ("valueFormat" in $o && $o["valueFormat"] !== undefined) {
244
244
  const error = su__17__18__19__20_eu($o["valueFormat"]);
245
245
  if (error)
246
246
  return error;
@@ -261,14 +261,14 @@ const __assertType__su_st__number_su__number__8_4_4_4_eu_su__11__12__13_eu_su__u
261
261
  function _31($o) {
262
262
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
263
263
  return {};
264
- if ("bitMask" in $o) {
264
+ if ("bitMask" in $o && $o["bitMask"] !== undefined) {
265
265
  const error = _number($o["bitMask"]);
266
266
  if (error)
267
267
  return error;
268
268
  }
269
269
  else
270
270
  return {};
271
- if ("value" in $o) {
271
+ if ("value" in $o && $o["value"] !== undefined) {
272
272
  const error = _number($o["value"]);
273
273
  if (error)
274
274
  return error;
@@ -323,7 +323,7 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
323
323
  function _4($o) {
324
324
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
325
325
  return {};
326
- if ("parameter" in $o) {
326
+ if ("parameter" in $o && $o["parameter"] !== undefined) {
327
327
  const error = _number($o["parameter"]);
328
328
  if (error)
329
329
  return error;
@@ -353,12 +353,12 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
353
353
  function _5($o) {
354
354
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
355
355
  return {};
356
- if ("bitMask" in $o) {
356
+ if ("bitMask" in $o && $o["bitMask"] !== undefined) {
357
357
  const error = _undefined($o["bitMask"]);
358
358
  if (error)
359
359
  return error;
360
360
  }
361
- if ("value" in $o) {
361
+ if ("value" in $o && $o["value"] !== undefined) {
362
362
  const error = su__number__13_11_11_11_eu($o["value"]);
363
363
  if (error)
364
364
  return error;
@@ -418,26 +418,26 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
418
418
  function _7($o) {
419
419
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
420
420
  return {};
421
- if ("bitMask" in $o) {
421
+ if ("bitMask" in $o && $o["bitMask"] !== undefined) {
422
422
  const error = _undefined($o["bitMask"]);
423
423
  if (error)
424
424
  return error;
425
425
  }
426
- if ("value" in $o) {
426
+ if ("value" in $o && $o["value"] !== undefined) {
427
427
  const error = su__number__13_11_11_11_eu($o["value"]);
428
428
  if (error)
429
429
  return error;
430
430
  }
431
431
  else
432
432
  return {};
433
- if ("valueSize" in $o) {
433
+ if ("valueSize" in $o && $o["valueSize"] !== undefined) {
434
434
  const error = su__15__16__17_eu($o["valueSize"]);
435
435
  if (error)
436
436
  return error;
437
437
  }
438
438
  else
439
439
  return {};
440
- if ("valueFormat" in $o) {
440
+ if ("valueFormat" in $o && $o["valueFormat"] !== undefined) {
441
441
  const error = su__19__20__21__22_eu($o["valueFormat"]);
442
442
  if (error)
443
443
  return error;
@@ -458,14 +458,14 @@ const __assertType__sa_su_si__4__5_ei_si__4__7_ei_si__4__9_ei_eu_ea_2 = $o => {
458
458
  function _9($o) {
459
459
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
460
460
  return {};
461
- if ("bitMask" in $o) {
461
+ if ("bitMask" in $o && $o["bitMask"] !== undefined) {
462
462
  const error = _number($o["bitMask"]);
463
463
  if (error)
464
464
  return error;
465
465
  }
466
466
  else
467
467
  return {};
468
- if ("value" in $o) {
468
+ if ("value" in $o && $o["value"] !== undefined) {
469
469
  const error = _number($o["value"]);
470
470
  if (error)
471
471
  return error;
@@ -30,14 +30,14 @@ const __assertType__DoorLockCCConfigurationSetOptions = $o => {
30
30
  function _2($o) {
31
31
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
32
32
  return {};
33
- if ("operationType" in $o) {
33
+ if ("operationType" in $o && $o["operationType"] !== undefined) {
34
34
  const error = _6($o["operationType"]);
35
35
  if (error)
36
36
  return error;
37
37
  }
38
38
  else
39
39
  return {};
40
- if ("lockTimeoutConfiguration" in $o) {
40
+ if ("lockTimeoutConfiguration" in $o && $o["lockTimeoutConfiguration"] !== undefined) {
41
41
  const error = _number($o["lockTimeoutConfiguration"]);
42
42
  if (error)
43
43
  return error;
@@ -77,36 +77,36 @@ const __assertType__DoorLockCCConfigurationSetOptions = $o => {
77
77
  function _3($o) {
78
78
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
79
79
  return {};
80
- if ("outsideHandlesCanOpenDoorConfiguration" in $o) {
80
+ if ("outsideHandlesCanOpenDoorConfiguration" in $o && $o["outsideHandlesCanOpenDoorConfiguration"] !== undefined) {
81
81
  const error = st__boolean__boolean__boolean__boolean_et_9_9_9_9($o["outsideHandlesCanOpenDoorConfiguration"]);
82
82
  if (error)
83
83
  return error;
84
84
  }
85
85
  else
86
86
  return {};
87
- if ("insideHandlesCanOpenDoorConfiguration" in $o) {
87
+ if ("insideHandlesCanOpenDoorConfiguration" in $o && $o["insideHandlesCanOpenDoorConfiguration"] !== undefined) {
88
88
  const error = st__boolean__boolean__boolean__boolean_et_9_9_9_9($o["insideHandlesCanOpenDoorConfiguration"]);
89
89
  if (error)
90
90
  return error;
91
91
  }
92
92
  else
93
93
  return {};
94
- if ("autoRelockTime" in $o) {
94
+ if ("autoRelockTime" in $o && $o["autoRelockTime"] !== undefined) {
95
95
  const error = _number($o["autoRelockTime"]);
96
96
  if (error)
97
97
  return error;
98
98
  }
99
- if ("holdAndReleaseTime" in $o) {
99
+ if ("holdAndReleaseTime" in $o && $o["holdAndReleaseTime"] !== undefined) {
100
100
  const error = _number($o["holdAndReleaseTime"]);
101
101
  if (error)
102
102
  return error;
103
103
  }
104
- if ("twistAssist" in $o) {
104
+ if ("twistAssist" in $o && $o["twistAssist"] !== undefined) {
105
105
  const error = _boolean($o["twistAssist"]);
106
106
  if (error)
107
107
  return error;
108
108
  }
109
- if ("blockToBlock" in $o) {
109
+ if ("blockToBlock" in $o && $o["blockToBlock"] !== undefined) {
110
110
  const error = _boolean($o["blockToBlock"]);
111
111
  if (error)
112
112
  return error;
@@ -131,14 +131,14 @@ const __assertType__DoorLockCCConfigurationSetOptions = $o => {
131
131
  function _5($o) {
132
132
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
133
133
  return {};
134
- if ("operationType" in $o) {
134
+ if ("operationType" in $o && $o["operationType"] !== undefined) {
135
135
  const error = _13($o["operationType"]);
136
136
  if (error)
137
137
  return error;
138
138
  }
139
139
  else
140
140
  return {};
141
- if ("lockTimeoutConfiguration" in $o) {
141
+ if ("lockTimeoutConfiguration" in $o && $o["lockTimeoutConfiguration"] !== undefined) {
142
142
  const error = _undefined($o["lockTimeoutConfiguration"]);
143
143
  if (error)
144
144
  return error;
@@ -20,21 +20,21 @@ const __assertType__FirmwareUpdateMetaDataCCRequestGetOptions = $o => {
20
20
  function _2($o) {
21
21
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
22
22
  return {};
23
- if ("manufacturerId" in $o) {
23
+ if ("manufacturerId" in $o && $o["manufacturerId"] !== undefined) {
24
24
  const error = _number($o["manufacturerId"]);
25
25
  if (error)
26
26
  return error;
27
27
  }
28
28
  else
29
29
  return {};
30
- if ("firmwareId" in $o) {
30
+ if ("firmwareId" in $o && $o["firmwareId"] !== undefined) {
31
31
  const error = _number($o["firmwareId"]);
32
32
  if (error)
33
33
  return error;
34
34
  }
35
35
  else
36
36
  return {};
37
- if ("checksum" in $o) {
37
+ if ("checksum" in $o && $o["checksum"] !== undefined) {
38
38
  const error = _number($o["checksum"]);
39
39
  if (error)
40
40
  return error;
@@ -49,26 +49,26 @@ const __assertType__FirmwareUpdateMetaDataCCRequestGetOptions = $o => {
49
49
  function _3($o) {
50
50
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
51
51
  return {};
52
- if ("firmwareTarget" in $o) {
52
+ if ("firmwareTarget" in $o && $o["firmwareTarget"] !== undefined) {
53
53
  const error = _number($o["firmwareTarget"]);
54
54
  if (error)
55
55
  return error;
56
56
  }
57
57
  else
58
58
  return {};
59
- if ("fragmentSize" in $o) {
59
+ if ("fragmentSize" in $o && $o["fragmentSize"] !== undefined) {
60
60
  const error = _number($o["fragmentSize"]);
61
61
  if (error)
62
62
  return error;
63
63
  }
64
64
  else
65
65
  return {};
66
- if ("activation" in $o) {
66
+ if ("activation" in $o && $o["activation"] !== undefined) {
67
67
  const error = _boolean($o["activation"]);
68
68
  if (error)
69
69
  return error;
70
70
  }
71
- if ("hardwareVersion" in $o) {
71
+ if ("hardwareVersion" in $o && $o["hardwareVersion"] !== undefined) {
72
72
  const error = _number($o["hardwareVersion"]);
73
73
  if (error)
74
74
  return error;
@@ -90,22 +90,22 @@ const __assertType__FirmwareUpdateMetaDataCCRequestGetOptions = $o => {
90
90
  function _5($o) {
91
91
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
92
92
  return {};
93
- if ("firmwareTarget" in $o) {
93
+ if ("firmwareTarget" in $o && $o["firmwareTarget"] !== undefined) {
94
94
  const error = _undefined($o["firmwareTarget"]);
95
95
  if (error)
96
96
  return error;
97
97
  }
98
- if ("fragmentSize" in $o) {
98
+ if ("fragmentSize" in $o && $o["fragmentSize"] !== undefined) {
99
99
  const error = _undefined($o["fragmentSize"]);
100
100
  if (error)
101
101
  return error;
102
102
  }
103
- if ("activation" in $o) {
103
+ if ("activation" in $o && $o["activation"] !== undefined) {
104
104
  const error = _undefined($o["activation"]);
105
105
  if (error)
106
106
  return error;
107
107
  }
108
- if ("hardwareVersion" in $o) {
108
+ if ("hardwareVersion" in $o && $o["hardwareVersion"] !== undefined) {
109
109
  const error = _undefined($o["hardwareVersion"]);
110
110
  if (error)
111
111
  return error;
@@ -160,35 +160,35 @@ const __assertType__FirmwareUpdateMetaDataCCActivationSetOptions = $o => {
160
160
  function _0($o) {
161
161
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
162
162
  return {};
163
- if ("manufacturerId" in $o) {
163
+ if ("manufacturerId" in $o && $o["manufacturerId"] !== undefined) {
164
164
  const error = _number($o["manufacturerId"]);
165
165
  if (error)
166
166
  return error;
167
167
  }
168
168
  else
169
169
  return {};
170
- if ("firmwareId" in $o) {
170
+ if ("firmwareId" in $o && $o["firmwareId"] !== undefined) {
171
171
  const error = _number($o["firmwareId"]);
172
172
  if (error)
173
173
  return error;
174
174
  }
175
175
  else
176
176
  return {};
177
- if ("checksum" in $o) {
177
+ if ("checksum" in $o && $o["checksum"] !== undefined) {
178
178
  const error = _number($o["checksum"]);
179
179
  if (error)
180
180
  return error;
181
181
  }
182
182
  else
183
183
  return {};
184
- if ("firmwareTarget" in $o) {
184
+ if ("firmwareTarget" in $o && $o["firmwareTarget"] !== undefined) {
185
185
  const error = _number($o["firmwareTarget"]);
186
186
  if (error)
187
187
  return error;
188
188
  }
189
189
  else
190
190
  return {};
191
- if ("hardwareVersion" in $o) {
191
+ if ("hardwareVersion" in $o && $o["hardwareVersion"] !== undefined) {
192
192
  const error = _number($o["hardwareVersion"]);
193
193
  if (error)
194
194
  return error;
@@ -50,21 +50,21 @@ const __assertType__su__number_sa__5_ea_5_5_5_eu = $o => {
50
50
  function _5($o) {
51
51
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
52
52
  return {};
53
- if ("indicatorId" in $o) {
53
+ if ("indicatorId" in $o && $o["indicatorId"] !== undefined) {
54
54
  const error = _number($o["indicatorId"]);
55
55
  if (error)
56
56
  return error;
57
57
  }
58
58
  else
59
59
  return {};
60
- if ("propertyId" in $o) {
60
+ if ("propertyId" in $o && $o["propertyId"] !== undefined) {
61
61
  const error = _number($o["propertyId"]);
62
62
  if (error)
63
63
  return error;
64
64
  }
65
65
  else
66
66
  return {};
67
- if ("value" in $o) {
67
+ if ("value" in $o && $o["value"] !== undefined) {
68
68
  const error = su__number__7__8_eu($o["value"]);
69
69
  if (error)
70
70
  return error;
@@ -40,33 +40,33 @@ const __assertType__IrrigationCCSystemConfigSetOptions = $o => {
40
40
  function _0($o) {
41
41
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
42
42
  return {};
43
- if ("masterValveDelay" in $o) {
43
+ if ("masterValveDelay" in $o && $o["masterValveDelay"] !== undefined) {
44
44
  const error = _number($o["masterValveDelay"]);
45
45
  if (error)
46
46
  return error;
47
47
  }
48
48
  else
49
49
  return {};
50
- if ("highPressureThreshold" in $o) {
50
+ if ("highPressureThreshold" in $o && $o["highPressureThreshold"] !== undefined) {
51
51
  const error = _number($o["highPressureThreshold"]);
52
52
  if (error)
53
53
  return error;
54
54
  }
55
55
  else
56
56
  return {};
57
- if ("lowPressureThreshold" in $o) {
57
+ if ("lowPressureThreshold" in $o && $o["lowPressureThreshold"] !== undefined) {
58
58
  const error = _number($o["lowPressureThreshold"]);
59
59
  if (error)
60
60
  return error;
61
61
  }
62
62
  else
63
63
  return {};
64
- if ("rainSensorPolarity" in $o) {
64
+ if ("rainSensorPolarity" in $o && $o["rainSensorPolarity"] !== undefined) {
65
65
  const error = su__2__3_eu($o["rainSensorPolarity"]);
66
66
  if (error)
67
67
  return error;
68
68
  }
69
- if ("moistureSensorPolarity" in $o) {
69
+ if ("moistureSensorPolarity" in $o && $o["moistureSensorPolarity"] !== undefined) {
70
70
  const error = su__2__3_eu($o["moistureSensorPolarity"]);
71
71
  if (error)
72
72
  return error;
@@ -121,56 +121,56 @@ const __assertType__IrrigationCCValveConfigSetOptions = $o => {
121
121
  function _0($o) {
122
122
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
123
123
  return {};
124
- if ("valveId" in $o) {
124
+ if ("valveId" in $o && $o["valveId"] !== undefined) {
125
125
  const error = su__number__3_eu($o["valveId"]);
126
126
  if (error)
127
127
  return error;
128
128
  }
129
129
  else
130
130
  return {};
131
- if ("nominalCurrentHighThreshold" in $o) {
131
+ if ("nominalCurrentHighThreshold" in $o && $o["nominalCurrentHighThreshold"] !== undefined) {
132
132
  const error = _number($o["nominalCurrentHighThreshold"]);
133
133
  if (error)
134
134
  return error;
135
135
  }
136
136
  else
137
137
  return {};
138
- if ("nominalCurrentLowThreshold" in $o) {
138
+ if ("nominalCurrentLowThreshold" in $o && $o["nominalCurrentLowThreshold"] !== undefined) {
139
139
  const error = _number($o["nominalCurrentLowThreshold"]);
140
140
  if (error)
141
141
  return error;
142
142
  }
143
143
  else
144
144
  return {};
145
- if ("maximumFlow" in $o) {
145
+ if ("maximumFlow" in $o && $o["maximumFlow"] !== undefined) {
146
146
  const error = _number($o["maximumFlow"]);
147
147
  if (error)
148
148
  return error;
149
149
  }
150
150
  else
151
151
  return {};
152
- if ("highFlowThreshold" in $o) {
152
+ if ("highFlowThreshold" in $o && $o["highFlowThreshold"] !== undefined) {
153
153
  const error = _number($o["highFlowThreshold"]);
154
154
  if (error)
155
155
  return error;
156
156
  }
157
157
  else
158
158
  return {};
159
- if ("lowFlowThreshold" in $o) {
159
+ if ("lowFlowThreshold" in $o && $o["lowFlowThreshold"] !== undefined) {
160
160
  const error = _number($o["lowFlowThreshold"]);
161
161
  if (error)
162
162
  return error;
163
163
  }
164
164
  else
165
165
  return {};
166
- if ("useRainSensor" in $o) {
166
+ if ("useRainSensor" in $o && $o["useRainSensor"] !== undefined) {
167
167
  const error = _boolean($o["useRainSensor"]);
168
168
  if (error)
169
169
  return error;
170
170
  }
171
171
  else
172
172
  return {};
173
- if ("useMoistureSensor" in $o) {
173
+ if ("useMoistureSensor" in $o && $o["useMoistureSensor"] !== undefined) {
174
174
  const error = _boolean($o["useMoistureSensor"]);
175
175
  if (error)
176
176
  return error;
@@ -194,14 +194,14 @@ const __assertType__sa__2_ea_2 = $o => {
194
194
  function _2($o) {
195
195
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
196
196
  return {};
197
- if ("valveId" in $o) {
197
+ if ("valveId" in $o && $o["valveId"] !== undefined) {
198
198
  const error = _number($o["valveId"]);
199
199
  if (error)
200
200
  return error;
201
201
  }
202
202
  else
203
203
  return {};
204
- if ("duration" in $o) {
204
+ if ("duration" in $o && $o["duration"] !== undefined) {
205
205
  const error = _number($o["duration"]);
206
206
  if (error)
207
207
  return error;
@@ -39,12 +39,12 @@ const __assertType__optional_MeterCCGetOptions = $o => {
39
39
  function _0($o) {
40
40
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
41
41
  return {};
42
- if ("scale" in $o) {
42
+ if ("scale" in $o && $o["scale"] !== undefined) {
43
43
  const error = _number($o["scale"]);
44
44
  if (error)
45
45
  return error;
46
46
  }
47
- if ("rateType" in $o) {
47
+ if ("rateType" in $o && $o["rateType"] !== undefined) {
48
48
  const error = su__2__3__4_eu($o["rateType"]);
49
49
  if (error)
50
50
  return error;
@@ -68,12 +68,12 @@ const __assertType__MeterCCResetOptions = $o => {
68
68
  function _1($o) {
69
69
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
70
70
  return {};
71
- if ("type" in $o) {
71
+ if ("type" in $o && $o["type"] !== undefined) {
72
72
  const error = _undefined($o["type"]);
73
73
  if (error)
74
74
  return error;
75
75
  }
76
- if ("targetValue" in $o) {
76
+ if ("targetValue" in $o && $o["targetValue"] !== undefined) {
77
77
  const error = _undefined($o["targetValue"]);
78
78
  if (error)
79
79
  return error;
@@ -86,14 +86,14 @@ const __assertType__MeterCCResetOptions = $o => {
86
86
  function _2($o) {
87
87
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
88
88
  return {};
89
- if ("type" in $o) {
89
+ if ("type" in $o && $o["type"] !== undefined) {
90
90
  const error = _number($o["type"]);
91
91
  if (error)
92
92
  return error;
93
93
  }
94
94
  else
95
95
  return {};
96
- if ("targetValue" in $o) {
96
+ if ("targetValue" in $o && $o["targetValue"] !== undefined) {
97
97
  const error = _number($o["targetValue"]);
98
98
  if (error)
99
99
  return error;
@@ -26,7 +26,7 @@ const __assertType__MultiChannelAssociationCCSetOptions = $o => {
26
26
  function _2($o) {
27
27
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
28
28
  return {};
29
- if ("groupId" in $o) {
29
+ if ("groupId" in $o && $o["groupId"] !== undefined) {
30
30
  const error = _number($o["groupId"]);
31
31
  if (error)
32
32
  return error;
@@ -48,7 +48,7 @@ const __assertType__MultiChannelAssociationCCSetOptions = $o => {
48
48
  function _3($o) {
49
49
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
50
50
  return {};
51
- if ("nodeIds" in $o) {
51
+ if ("nodeIds" in $o && $o["nodeIds"] !== undefined) {
52
52
  const error = sa__number_ea_10($o["nodeIds"]);
53
53
  if (error)
54
54
  return error;
@@ -81,14 +81,14 @@ const __assertType__MultiChannelAssociationCCSetOptions = $o => {
81
81
  function _11($o) {
82
82
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
83
83
  return {};
84
- if ("nodeId" in $o) {
84
+ if ("nodeId" in $o && $o["nodeId"] !== undefined) {
85
85
  const error = _number($o["nodeId"]);
86
86
  if (error)
87
87
  return error;
88
88
  }
89
89
  else
90
90
  return {};
91
- if ("endpoint" in $o) {
91
+ if ("endpoint" in $o && $o["endpoint"] !== undefined) {
92
92
  const error = su__number_sa__number_ea_10_10_10_eu($o["endpoint"]);
93
93
  if (error)
94
94
  return error;
@@ -110,7 +110,7 @@ const __assertType__MultiChannelAssociationCCSetOptions = $o => {
110
110
  function _5($o) {
111
111
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
112
112
  return {};
113
- if ("endpoints" in $o) {
113
+ if ("endpoints" in $o && $o["endpoints"] !== undefined) {
114
114
  const error = sa__11_ea_11($o["endpoints"]);
115
115
  if (error)
116
116
  return error;
@@ -131,14 +131,14 @@ const __assertType__MultiChannelAssociationCCSetOptions = $o => {
131
131
  function _7($o) {
132
132
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
133
133
  return {};
134
- if ("nodeIds" in $o) {
134
+ if ("nodeIds" in $o && $o["nodeIds"] !== undefined) {
135
135
  const error = sa__number_ea_10($o["nodeIds"]);
136
136
  if (error)
137
137
  return error;
138
138
  }
139
139
  else
140
140
  return {};
141
- if ("endpoints" in $o) {
141
+ if ("endpoints" in $o && $o["endpoints"] !== undefined) {
142
142
  const error = sa__11_ea_11($o["endpoints"]);
143
143
  if (error)
144
144
  return error;
@@ -196,14 +196,14 @@ const __assertType__MultiChannelAssociationCCRemoveOptions = $o => {
196
196
  function _4($o) {
197
197
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
198
198
  return {};
199
- if ("nodeId" in $o) {
199
+ if ("nodeId" in $o && $o["nodeId"] !== undefined) {
200
200
  const error = _number($o["nodeId"]);
201
201
  if (error)
202
202
  return error;
203
203
  }
204
204
  else
205
205
  return {};
206
- if ("endpoint" in $o) {
206
+ if ("endpoint" in $o && $o["endpoint"] !== undefined) {
207
207
  const error = su__number_sa__number_ea_3_3_3_eu($o["endpoint"]);
208
208
  if (error)
209
209
  return error;
@@ -225,17 +225,17 @@ const __assertType__MultiChannelAssociationCCRemoveOptions = $o => {
225
225
  function _0($o) {
226
226
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
227
227
  return {};
228
- if ("groupId" in $o) {
228
+ if ("groupId" in $o && $o["groupId"] !== undefined) {
229
229
  const error = _number($o["groupId"]);
230
230
  if (error)
231
231
  return error;
232
232
  }
233
- if ("nodeIds" in $o) {
233
+ if ("nodeIds" in $o && $o["nodeIds"] !== undefined) {
234
234
  const error = sa__number_ea_3($o["nodeIds"]);
235
235
  if (error)
236
236
  return error;
237
237
  }
238
- if ("endpoints" in $o) {
238
+ if ("endpoints" in $o && $o["endpoints"] !== undefined) {
239
239
  const error = sa__4_ea_4($o["endpoints"]);
240
240
  if (error)
241
241
  return error;
@@ -71,7 +71,7 @@ const __assertType__MultilevelSwitchCCStartLevelChangeOptions = $o => {
71
71
  function _2($o) {
72
72
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
73
73
  return {};
74
- if ("direction" in $o) {
74
+ if ("direction" in $o && $o["direction"] !== undefined) {
75
75
  const error = su__8__9_eu($o["direction"]);
76
76
  if (error)
77
77
  return error;
@@ -89,14 +89,14 @@ const __assertType__MultilevelSwitchCCStartLevelChangeOptions = $o => {
89
89
  function _3($o) {
90
90
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
91
91
  return {};
92
- if ("ignoreStartLevel" in $o) {
92
+ if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
93
93
  const error = _true($o["ignoreStartLevel"]);
94
94
  if (error)
95
95
  return error;
96
96
  }
97
97
  else
98
98
  return {};
99
- if ("startLevel" in $o) {
99
+ if ("startLevel" in $o && $o["startLevel"] !== undefined) {
100
100
  const error = _number($o["startLevel"]);
101
101
  if (error)
102
102
  return error;
@@ -109,7 +109,7 @@ const __assertType__MultilevelSwitchCCStartLevelChangeOptions = $o => {
109
109
  function _4($o) {
110
110
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
111
111
  return {};
112
- if ("duration" in $o) {
112
+ if ("duration" in $o && $o["duration"] !== undefined) {
113
113
  const error = _10($o["duration"]);
114
114
  if (error)
115
115
  return error;
@@ -131,14 +131,14 @@ const __assertType__MultilevelSwitchCCStartLevelChangeOptions = $o => {
131
131
  function _6($o) {
132
132
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
133
133
  return {};
134
- if ("ignoreStartLevel" in $o) {
134
+ if ("ignoreStartLevel" in $o && $o["ignoreStartLevel"] !== undefined) {
135
135
  const error = _false($o["ignoreStartLevel"]);
136
136
  if (error)
137
137
  return error;
138
138
  }
139
139
  else
140
140
  return {};
141
- if ("startLevel" in $o) {
141
+ if ("startLevel" in $o && $o["startLevel"] !== undefined) {
142
142
  const error = _number($o["startLevel"]);
143
143
  if (error)
144
144
  return error;
@@ -20,14 +20,14 @@ const __assertType__NotificationCCReportOptions = $o => {
20
20
  function _1($o) {
21
21
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
22
22
  return {};
23
- if ("alarmType" in $o) {
23
+ if ("alarmType" in $o && $o["alarmType"] !== undefined) {
24
24
  const error = _number($o["alarmType"]);
25
25
  if (error)
26
26
  return error;
27
27
  }
28
28
  else
29
29
  return {};
30
- if ("alarmLevel" in $o) {
30
+ if ("alarmLevel" in $o && $o["alarmLevel"] !== undefined) {
31
31
  const error = _number($o["alarmLevel"]);
32
32
  if (error)
33
33
  return error;
@@ -42,26 +42,26 @@ const __assertType__NotificationCCReportOptions = $o => {
42
42
  function _2($o) {
43
43
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
44
44
  return {};
45
- if ("notificationType" in $o) {
45
+ if ("notificationType" in $o && $o["notificationType"] !== undefined) {
46
46
  const error = _number($o["notificationType"]);
47
47
  if (error)
48
48
  return error;
49
49
  }
50
50
  else
51
51
  return {};
52
- if ("notificationEvent" in $o) {
52
+ if ("notificationEvent" in $o && $o["notificationEvent"] !== undefined) {
53
53
  const error = _number($o["notificationEvent"]);
54
54
  if (error)
55
55
  return error;
56
56
  }
57
57
  else
58
58
  return {};
59
- if ("eventParameters" in $o) {
59
+ if ("eventParameters" in $o && $o["eventParameters"] !== undefined) {
60
60
  const error = _buffer($o["eventParameters"]);
61
61
  if (error)
62
62
  return error;
63
63
  }
64
- if ("sequenceNumber" in $o) {
64
+ if ("sequenceNumber" in $o && $o["sequenceNumber"] !== undefined) {
65
65
  const error = _number($o["sequenceNumber"]);
66
66
  if (error)
67
67
  return error;
@@ -89,7 +89,7 @@ const __assertType__NotificationCCGetSpecificOptions = $o => {
89
89
  function _1($o) {
90
90
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
91
91
  return {};
92
- if ("alarmType" in $o) {
92
+ if ("alarmType" in $o && $o["alarmType"] !== undefined) {
93
93
  const error = _number($o["alarmType"]);
94
94
  if (error)
95
95
  return error;
@@ -101,14 +101,14 @@ const __assertType__NotificationCCGetSpecificOptions = $o => {
101
101
  function _2($o) {
102
102
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
103
103
  return {};
104
- if ("notificationType" in $o) {
104
+ if ("notificationType" in $o && $o["notificationType"] !== undefined) {
105
105
  const error = _number($o["notificationType"]);
106
106
  if (error)
107
107
  return error;
108
108
  }
109
109
  else
110
110
  return {};
111
- if ("notificationEvent" in $o) {
111
+ if ("notificationEvent" in $o && $o["notificationEvent"] !== undefined) {
112
112
  const error = _number($o["notificationEvent"]);
113
113
  if (error)
114
114
  return error;
@@ -31,28 +31,28 @@ const __assertType__DSTInfo = $o => {
31
31
  function _0($o) {
32
32
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
33
33
  return {};
34
- if ("startDate" in $o) {
34
+ if ("startDate" in $o && $o["startDate"] !== undefined) {
35
35
  const error = _date($o["startDate"]);
36
36
  if (error)
37
37
  return error;
38
38
  }
39
39
  else
40
40
  return {};
41
- if ("endDate" in $o) {
41
+ if ("endDate" in $o && $o["endDate"] !== undefined) {
42
42
  const error = _date($o["endDate"]);
43
43
  if (error)
44
44
  return error;
45
45
  }
46
46
  else
47
47
  return {};
48
- if ("standardOffset" in $o) {
48
+ if ("standardOffset" in $o && $o["standardOffset"] !== undefined) {
49
49
  const error = _number($o["standardOffset"]);
50
50
  if (error)
51
51
  return error;
52
52
  }
53
53
  else
54
54
  return {};
55
- if ("dstOffset" in $o) {
55
+ if ("dstOffset" in $o && $o["dstOffset"] !== undefined) {
56
56
  const error = _number($o["dstOffset"]);
57
57
  if (error)
58
58
  return error;
@@ -92,21 +92,21 @@ const __assertType__sa_su__3__4__5_eu_ea_2 = $o => {
92
92
  function _3($o) {
93
93
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
94
94
  return {};
95
- if ("userId" in $o) {
95
+ if ("userId" in $o && $o["userId"] !== undefined) {
96
96
  const error = _6($o["userId"]);
97
97
  if (error)
98
98
  return error;
99
99
  }
100
100
  else
101
101
  return {};
102
- if ("userIdStatus" in $o) {
102
+ if ("userIdStatus" in $o && $o["userIdStatus"] !== undefined) {
103
103
  const error = _7($o["userIdStatus"]);
104
104
  if (error)
105
105
  return error;
106
106
  }
107
107
  else
108
108
  return {};
109
- if ("userCode" in $o) {
109
+ if ("userCode" in $o && $o["userCode"] !== undefined) {
110
110
  const error = _undefined($o["userCode"]);
111
111
  if (error)
112
112
  return error;
@@ -119,21 +119,21 @@ const __assertType__sa_su__3__4__5_eu_ea_2 = $o => {
119
119
  function _4($o) {
120
120
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
121
121
  return {};
122
- if ("userId" in $o) {
122
+ if ("userId" in $o && $o["userId"] !== undefined) {
123
123
  const error = _number($o["userId"]);
124
124
  if (error)
125
125
  return error;
126
126
  }
127
127
  else
128
128
  return {};
129
- if ("userIdStatus" in $o) {
129
+ if ("userIdStatus" in $o && $o["userIdStatus"] !== undefined) {
130
130
  const error = _7($o["userIdStatus"]);
131
131
  if (error)
132
132
  return error;
133
133
  }
134
134
  else
135
135
  return {};
136
- if ("userCode" in $o) {
136
+ if ("userCode" in $o && $o["userCode"] !== undefined) {
137
137
  const error = _undefined($o["userCode"]);
138
138
  if (error)
139
139
  return error;
@@ -182,21 +182,21 @@ const __assertType__sa_su__3__4__5_eu_ea_2 = $o => {
182
182
  function _5($o) {
183
183
  if (typeof $o !== "object" || $o === null || Array.isArray($o))
184
184
  return {};
185
- if ("userId" in $o) {
185
+ if ("userId" in $o && $o["userId"] !== undefined) {
186
186
  const error = _number($o["userId"]);
187
187
  if (error)
188
188
  return error;
189
189
  }
190
190
  else
191
191
  return {};
192
- if ("userIdStatus" in $o) {
192
+ if ("userIdStatus" in $o && $o["userIdStatus"] !== undefined) {
193
193
  const error = su__9__10__11__12_eu($o["userIdStatus"]);
194
194
  if (error)
195
195
  return error;
196
196
  }
197
197
  else
198
198
  return {};
199
- if ("userCode" in $o) {
199
+ if ("userCode" in $o && $o["userCode"] !== undefined) {
200
200
  const error = su__string__buffer_eu($o["userCode"]);
201
201
  if (error)
202
202
  return error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zwave-js",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "description": "Z-Wave driver written entirely in JavaScript/TypeScript",
5
5
  "keywords": [],
6
6
  "main": "build/index.js",
@@ -83,7 +83,7 @@
83
83
  "@xstate/test": "^0.5.1",
84
84
  "@zwave-js/maintenance": "9.0.0",
85
85
  "@zwave-js/testing": "9.0.0",
86
- "@zwave-js/transformers": "9.0.0",
86
+ "@zwave-js/transformers": "9.0.1",
87
87
  "esbuild": "0.14.29",
88
88
  "esbuild-register": "^3.3.2",
89
89
  "jest-extended": "^2.0.0",