edilkamin 1.7.4 → 1.9.0

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.
Files changed (40) hide show
  1. package/.github/dependabot.yml +5 -1
  2. package/README.md +92 -4
  3. package/dist/cjs/package.json +16 -5
  4. package/dist/cjs/src/bluetooth-utils.d.ts +13 -0
  5. package/dist/cjs/src/bluetooth-utils.js +28 -0
  6. package/dist/cjs/src/bluetooth-utils.test.d.ts +1 -0
  7. package/dist/cjs/src/bluetooth-utils.test.js +35 -0
  8. package/dist/cjs/src/bluetooth.d.ts +40 -0
  9. package/dist/cjs/src/bluetooth.js +107 -0
  10. package/dist/cjs/src/cli.js +130 -0
  11. package/dist/cjs/src/index.d.ts +2 -1
  12. package/dist/cjs/src/index.js +3 -1
  13. package/dist/cjs/src/library.d.ts +26 -0
  14. package/dist/cjs/src/library.js +361 -0
  15. package/dist/cjs/src/library.test.js +266 -0
  16. package/dist/cjs/src/types.d.ts +30 -1
  17. package/dist/esm/package.json +16 -5
  18. package/dist/esm/src/bluetooth-utils.d.ts +13 -0
  19. package/dist/esm/src/bluetooth-utils.js +25 -0
  20. package/dist/esm/src/bluetooth-utils.test.d.ts +1 -0
  21. package/dist/esm/src/bluetooth-utils.test.js +33 -0
  22. package/dist/esm/src/bluetooth.d.ts +40 -0
  23. package/dist/esm/src/bluetooth.js +100 -0
  24. package/dist/esm/src/cli.js +130 -0
  25. package/dist/esm/src/index.d.ts +2 -1
  26. package/dist/esm/src/index.js +1 -0
  27. package/dist/esm/src/library.d.ts +26 -0
  28. package/dist/esm/src/library.js +361 -0
  29. package/dist/esm/src/library.test.js +266 -0
  30. package/dist/esm/src/types.d.ts +30 -1
  31. package/package.json +16 -5
  32. package/src/bluetooth-utils.test.ts +46 -0
  33. package/src/bluetooth-utils.ts +29 -0
  34. package/src/bluetooth.ts +115 -0
  35. package/src/cli.ts +249 -0
  36. package/src/index.ts +2 -0
  37. package/src/library.test.ts +372 -0
  38. package/src/library.ts +426 -0
  39. package/src/types.ts +35 -0
  40. package/tsconfig.json +1 -0
package/src/library.ts CHANGED
@@ -206,6 +206,248 @@ const setPowerOff =
206
206
  (jwtToken: string, macAddress: string) =>
207
207
  setPower(baseURL)(jwtToken, macAddress, 0);
208
208
 
209
+ const setPowerLevel =
210
+ (baseURL: string) =>
211
+ /**
212
+ * Sets the manual power level of the device.
213
+ *
214
+ * @param {string} jwtToken - The JWT token for authentication.
215
+ * @param {string} macAddress - The MAC address of the device.
216
+ * @param {number} level - The power level (1-5).
217
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
218
+ */
219
+ (jwtToken: string, macAddress: string, level: number) =>
220
+ mqttCommand(baseURL)(jwtToken, macAddress, {
221
+ name: "power_level",
222
+ value: level,
223
+ });
224
+
225
+ const getPowerLevel =
226
+ (baseURL: string) =>
227
+ /**
228
+ * Retrieves the current manual power level of the device.
229
+ *
230
+ * @param {string} jwtToken - The JWT token for authentication.
231
+ * @param {string} macAddress - The MAC address of the device.
232
+ * @returns {Promise<number>} - A promise that resolves to the power level (1-5).
233
+ */
234
+ async (jwtToken: string, macAddress: string): Promise<number> => {
235
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
236
+ return info.nvm.user_parameters.manual_power;
237
+ };
238
+
239
+ const setFan1Speed =
240
+ (baseURL: string) =>
241
+ /**
242
+ * Sets the speed of fan 1.
243
+ *
244
+ * @param {string} jwtToken - The JWT token for authentication.
245
+ * @param {string} macAddress - The MAC address of the device.
246
+ * @param {number} speed - The fan speed (0-5, 0=auto on some models).
247
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
248
+ */
249
+ (jwtToken: string, macAddress: string, speed: number) =>
250
+ mqttCommand(baseURL)(jwtToken, macAddress, {
251
+ name: "fan_1_speed",
252
+ value: speed,
253
+ });
254
+
255
+ const setFan2Speed =
256
+ (baseURL: string) =>
257
+ /**
258
+ * Sets the speed of fan 2.
259
+ *
260
+ * @param {string} jwtToken - The JWT token for authentication.
261
+ * @param {string} macAddress - The MAC address of the device.
262
+ * @param {number} speed - The fan speed (0-5, 0=auto on some models).
263
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
264
+ */
265
+ (jwtToken: string, macAddress: string, speed: number) =>
266
+ mqttCommand(baseURL)(jwtToken, macAddress, {
267
+ name: "fan_2_speed",
268
+ value: speed,
269
+ });
270
+
271
+ const setFan3Speed =
272
+ (baseURL: string) =>
273
+ /**
274
+ * Sets the speed of fan 3.
275
+ *
276
+ * @param {string} jwtToken - The JWT token for authentication.
277
+ * @param {string} macAddress - The MAC address of the device.
278
+ * @param {number} speed - The fan speed (0-5, 0=auto on some models).
279
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
280
+ */
281
+ (jwtToken: string, macAddress: string, speed: number) =>
282
+ mqttCommand(baseURL)(jwtToken, macAddress, {
283
+ name: "fan_3_speed",
284
+ value: speed,
285
+ });
286
+
287
+ const getFan1Speed =
288
+ (baseURL: string) =>
289
+ /**
290
+ * Retrieves the current speed of fan 1.
291
+ *
292
+ * @param {string} jwtToken - The JWT token for authentication.
293
+ * @param {string} macAddress - The MAC address of the device.
294
+ * @returns {Promise<number>} - A promise that resolves to the fan speed.
295
+ */
296
+ async (jwtToken: string, macAddress: string): Promise<number> => {
297
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
298
+ return info.nvm.user_parameters.fan_1_ventilation;
299
+ };
300
+
301
+ const getFan2Speed =
302
+ (baseURL: string) =>
303
+ /**
304
+ * Retrieves the current speed of fan 2.
305
+ *
306
+ * @param {string} jwtToken - The JWT token for authentication.
307
+ * @param {string} macAddress - The MAC address of the device.
308
+ * @returns {Promise<number>} - A promise that resolves to the fan speed.
309
+ */
310
+ async (jwtToken: string, macAddress: string): Promise<number> => {
311
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
312
+ return info.nvm.user_parameters.fan_2_ventilation;
313
+ };
314
+
315
+ const getFan3Speed =
316
+ (baseURL: string) =>
317
+ /**
318
+ * Retrieves the current speed of fan 3.
319
+ *
320
+ * @param {string} jwtToken - The JWT token for authentication.
321
+ * @param {string} macAddress - The MAC address of the device.
322
+ * @returns {Promise<number>} - A promise that resolves to the fan speed.
323
+ */
324
+ async (jwtToken: string, macAddress: string): Promise<number> => {
325
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
326
+ return info.nvm.user_parameters.fan_3_ventilation;
327
+ };
328
+
329
+ const setAirkare =
330
+ (baseURL: string) =>
331
+ /**
332
+ * Enables or disables Airkare (air quality) mode.
333
+ *
334
+ * @param {string} jwtToken - The JWT token for authentication.
335
+ * @param {string} macAddress - The MAC address of the device.
336
+ * @param {boolean} enabled - Whether to enable Airkare mode.
337
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
338
+ */
339
+ (jwtToken: string, macAddress: string, enabled: boolean) =>
340
+ mqttCommand(baseURL)(jwtToken, macAddress, {
341
+ name: "airkare_function",
342
+ value: enabled ? 1 : 0,
343
+ });
344
+
345
+ const setRelax =
346
+ (baseURL: string) =>
347
+ /**
348
+ * Enables or disables Relax (comfort) mode.
349
+ *
350
+ * @param {string} jwtToken - The JWT token for authentication.
351
+ * @param {string} macAddress - The MAC address of the device.
352
+ * @param {boolean} enabled - Whether to enable Relax mode.
353
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
354
+ */
355
+ (jwtToken: string, macAddress: string, enabled: boolean) =>
356
+ mqttCommand(baseURL)(jwtToken, macAddress, {
357
+ name: "relax_mode",
358
+ value: enabled,
359
+ });
360
+
361
+ const setStandby =
362
+ (baseURL: string) =>
363
+ /**
364
+ * Enables or disables Standby mode.
365
+ *
366
+ * @param {string} jwtToken - The JWT token for authentication.
367
+ * @param {string} macAddress - The MAC address of the device.
368
+ * @param {boolean} enabled - Whether to enable Standby mode.
369
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
370
+ */
371
+ (jwtToken: string, macAddress: string, enabled: boolean) =>
372
+ mqttCommand(baseURL)(jwtToken, macAddress, {
373
+ name: "standby_mode",
374
+ value: enabled,
375
+ });
376
+
377
+ const getStandby =
378
+ (baseURL: string) =>
379
+ /**
380
+ * Retrieves the current Standby mode status.
381
+ *
382
+ * @param {string} jwtToken - The JWT token for authentication.
383
+ * @param {string} macAddress - The MAC address of the device.
384
+ * @returns {Promise<boolean>} - A promise that resolves to the standby status.
385
+ */
386
+ async (jwtToken: string, macAddress: string): Promise<boolean> => {
387
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
388
+ return info.nvm.user_parameters.is_standby_active;
389
+ };
390
+
391
+ const setStandbyTime =
392
+ (baseURL: string) =>
393
+ /**
394
+ * Sets the standby waiting time in minutes.
395
+ *
396
+ * @param {string} jwtToken - The JWT token for authentication.
397
+ * @param {string} macAddress - The MAC address of the device.
398
+ * @param {number} minutes - The standby waiting time in minutes.
399
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
400
+ */
401
+ (jwtToken: string, macAddress: string, minutes: number) =>
402
+ mqttCommand(baseURL)(jwtToken, macAddress, {
403
+ name: "standby_time",
404
+ value: minutes,
405
+ });
406
+
407
+ const getStandbyTime =
408
+ (baseURL: string) =>
409
+ /**
410
+ * Retrieves the standby waiting time in minutes.
411
+ *
412
+ * @param {string} jwtToken - The JWT token for authentication.
413
+ * @param {string} macAddress - The MAC address of the device.
414
+ * @returns {Promise<number>} - A promise that resolves to the standby time in minutes.
415
+ */
416
+ async (jwtToken: string, macAddress: string): Promise<number> => {
417
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
418
+ return info.nvm.user_parameters.standby_waiting_time;
419
+ };
420
+
421
+ const setAuto =
422
+ (baseURL: string) =>
423
+ /**
424
+ * Enables or disables Auto mode for automatic temperature regulation.
425
+ *
426
+ * @param {string} jwtToken - The JWT token for authentication.
427
+ * @param {string} macAddress - The MAC address of the device.
428
+ * @param {boolean} enabled - Whether to enable Auto mode.
429
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
430
+ */
431
+ (jwtToken: string, macAddress: string, enabled: boolean) =>
432
+ mqttCommand(baseURL)(jwtToken, macAddress, {
433
+ name: "auto_mode",
434
+ value: enabled,
435
+ });
436
+
437
+ const getAuto =
438
+ (baseURL: string) =>
439
+ /**
440
+ * Retrieves the current Auto mode status.
441
+ *
442
+ * @param {string} jwtToken - The JWT token for authentication.
443
+ * @param {string} macAddress - The MAC address of the device.
444
+ * @returns {Promise<boolean>} - A promise that resolves to the auto mode status.
445
+ */
446
+ async (jwtToken: string, macAddress: string): Promise<boolean> => {
447
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
448
+ return info.nvm.user_parameters.is_auto;
449
+ };
450
+
209
451
  const getPower =
210
452
  (baseURL: string) =>
211
453
  /**
@@ -264,6 +506,164 @@ const setTargetTemperature =
264
506
  value: temperature,
265
507
  });
266
508
 
509
+ const setEnvironment2Temperature =
510
+ (baseURL: string) =>
511
+ /**
512
+ * Sets the target temperature for Environment 2 zone.
513
+ *
514
+ * @param {string} jwtToken - The JWT token for authentication.
515
+ * @param {string} macAddress - The MAC address of the device.
516
+ * @param {number} temperature - The target temperature in degrees Celsius.
517
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
518
+ */
519
+ (jwtToken: string, macAddress: string, temperature: number) =>
520
+ mqttCommand(baseURL)(jwtToken, macAddress, {
521
+ name: "enviroment_2_temperature",
522
+ value: temperature,
523
+ });
524
+
525
+ const getEnvironment2Temperature =
526
+ (baseURL: string) =>
527
+ /**
528
+ * Retrieves the target temperature for Environment 2 zone.
529
+ *
530
+ * @param {string} jwtToken - The JWT token for authentication.
531
+ * @param {string} macAddress - The MAC address of the device.
532
+ * @returns {Promise<number>} - A promise that resolves to the temperature in degrees Celsius.
533
+ */
534
+ async (jwtToken: string, macAddress: string): Promise<number> => {
535
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
536
+ return info.nvm.user_parameters.enviroment_2_temperature;
537
+ };
538
+
539
+ const setEnvironment3Temperature =
540
+ (baseURL: string) =>
541
+ /**
542
+ * Sets the target temperature for Environment 3 zone.
543
+ *
544
+ * @param {string} jwtToken - The JWT token for authentication.
545
+ * @param {string} macAddress - The MAC address of the device.
546
+ * @param {number} temperature - The target temperature in degrees Celsius.
547
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
548
+ */
549
+ (jwtToken: string, macAddress: string, temperature: number) =>
550
+ mqttCommand(baseURL)(jwtToken, macAddress, {
551
+ name: "enviroment_3_temperature",
552
+ value: temperature,
553
+ });
554
+
555
+ const getEnvironment3Temperature =
556
+ (baseURL: string) =>
557
+ /**
558
+ * Retrieves the target temperature for Environment 3 zone.
559
+ *
560
+ * @param {string} jwtToken - The JWT token for authentication.
561
+ * @param {string} macAddress - The MAC address of the device.
562
+ * @returns {Promise<number>} - A promise that resolves to the temperature in degrees Celsius.
563
+ */
564
+ async (jwtToken: string, macAddress: string): Promise<number> => {
565
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
566
+ return info.nvm.user_parameters.enviroment_3_temperature;
567
+ };
568
+
569
+ const setMeasureUnit =
570
+ (baseURL: string) =>
571
+ /**
572
+ * Sets the temperature measurement unit (Celsius or Fahrenheit).
573
+ *
574
+ * @param {string} jwtToken - The JWT token for authentication.
575
+ * @param {string} macAddress - The MAC address of the device.
576
+ * @param {boolean} isFahrenheit - true for Fahrenheit, false for Celsius.
577
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
578
+ */
579
+ (jwtToken: string, macAddress: string, isFahrenheit: boolean) =>
580
+ mqttCommand(baseURL)(jwtToken, macAddress, {
581
+ name: "measure_unit",
582
+ value: isFahrenheit,
583
+ });
584
+
585
+ const getMeasureUnit =
586
+ (baseURL: string) =>
587
+ /**
588
+ * Retrieves the current temperature measurement unit setting.
589
+ *
590
+ * @param {string} jwtToken - The JWT token for authentication.
591
+ * @param {string} macAddress - The MAC address of the device.
592
+ * @returns {Promise<boolean>} - A promise that resolves to true if Fahrenheit, false if Celsius.
593
+ */
594
+ async (jwtToken: string, macAddress: string): Promise<boolean> => {
595
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
596
+ return info.nvm.user_parameters.is_fahrenheit;
597
+ };
598
+
599
+ const setLanguage =
600
+ (baseURL: string) =>
601
+ /**
602
+ * Sets the display language of the device.
603
+ *
604
+ * Language codes:
605
+ * 0=Italian, 1=French, 2=English, 3=Spanish, 4=Portuguese,
606
+ * 5=Danish, 6=Dutch, 7=German, 8=Hungarian, 9=Polish
607
+ *
608
+ * @param {string} jwtToken - The JWT token for authentication.
609
+ * @param {string} macAddress - The MAC address of the device.
610
+ * @param {number} languageCode - The language code (0-9).
611
+ * @returns {Promise<unknown>} - A promise that resolves to the command response.
612
+ */
613
+ (jwtToken: string, macAddress: string, languageCode: number) =>
614
+ mqttCommand(baseURL)(jwtToken, macAddress, {
615
+ name: "language",
616
+ value: languageCode,
617
+ });
618
+
619
+ const getLanguage =
620
+ (baseURL: string) =>
621
+ /**
622
+ * Retrieves the current display language setting.
623
+ *
624
+ * Language codes:
625
+ * 0=Italian, 1=French, 2=English, 3=Spanish, 4=Portuguese,
626
+ * 5=Danish, 6=Dutch, 7=German, 8=Hungarian, 9=Polish
627
+ *
628
+ * @param {string} jwtToken - The JWT token for authentication.
629
+ * @param {string} macAddress - The MAC address of the device.
630
+ * @returns {Promise<number>} - A promise that resolves to the language code (0-9).
631
+ */
632
+ async (jwtToken: string, macAddress: string): Promise<number> => {
633
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
634
+ return info.nvm.user_parameters.language;
635
+ };
636
+
637
+ const getPelletInReserve =
638
+ (baseURL: string) =>
639
+ /**
640
+ * Retrieves the pellet reserve status.
641
+ * Returns true if pellet level is low (in reserve), false if pellet level is ok.
642
+ *
643
+ * @param {string} jwtToken - The JWT token for authentication.
644
+ * @param {string} macAddress - The MAC address of the device.
645
+ * @returns {Promise<boolean>} - A promise that resolves to the pellet reserve status.
646
+ */
647
+ async (jwtToken: string, macAddress: string): Promise<boolean> => {
648
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
649
+ return info.status.flags.is_pellet_in_reserve;
650
+ };
651
+
652
+ const getPelletAutonomyTime =
653
+ (baseURL: string) =>
654
+ /**
655
+ * Retrieves the estimated pellet autonomy time.
656
+ * Represents the estimated time remaining with current pellet level.
657
+ *
658
+ * @param {string} jwtToken - The JWT token for authentication.
659
+ * @param {string} macAddress - The MAC address of the device.
660
+ * @returns {Promise<number>} - A promise that resolves to the autonomy time (likely in minutes or hours).
661
+ */
662
+ async (jwtToken: string, macAddress: string): Promise<number> => {
663
+ const info = await deviceInfo(baseURL)(jwtToken, macAddress);
664
+ return info.status.pellet.autonomy_time;
665
+ };
666
+
267
667
  const registerDevice =
268
668
  (baseURL: string) =>
269
669
  /**
@@ -355,9 +755,35 @@ const configure = (baseURL: string = API_URL) => ({
355
755
  setPowerOff: setPowerOff(baseURL),
356
756
  setPowerOn: setPowerOn(baseURL),
357
757
  getPower: getPower(baseURL),
758
+ setPowerLevel: setPowerLevel(baseURL),
759
+ getPowerLevel: getPowerLevel(baseURL),
760
+ setFan1Speed: setFan1Speed(baseURL),
761
+ setFan2Speed: setFan2Speed(baseURL),
762
+ setFan3Speed: setFan3Speed(baseURL),
763
+ getFan1Speed: getFan1Speed(baseURL),
764
+ getFan2Speed: getFan2Speed(baseURL),
765
+ getFan3Speed: getFan3Speed(baseURL),
766
+ setAirkare: setAirkare(baseURL),
767
+ setRelax: setRelax(baseURL),
768
+ setStandby: setStandby(baseURL),
769
+ getStandby: getStandby(baseURL),
770
+ setStandbyTime: setStandbyTime(baseURL),
771
+ getStandbyTime: getStandbyTime(baseURL),
772
+ setAuto: setAuto(baseURL),
773
+ getAuto: getAuto(baseURL),
358
774
  getEnvironmentTemperature: getEnvironmentTemperature(baseURL),
359
775
  getTargetTemperature: getTargetTemperature(baseURL),
360
776
  setTargetTemperature: setTargetTemperature(baseURL),
777
+ setEnvironment2Temperature: setEnvironment2Temperature(baseURL),
778
+ getEnvironment2Temperature: getEnvironment2Temperature(baseURL),
779
+ setEnvironment3Temperature: setEnvironment3Temperature(baseURL),
780
+ getEnvironment3Temperature: getEnvironment3Temperature(baseURL),
781
+ setMeasureUnit: setMeasureUnit(baseURL),
782
+ getMeasureUnit: getMeasureUnit(baseURL),
783
+ setLanguage: setLanguage(baseURL),
784
+ getLanguage: getLanguage(baseURL),
785
+ getPelletInReserve: getPelletInReserve(baseURL),
786
+ getPelletAutonomyTime: getPelletAutonomyTime(baseURL),
361
787
  });
362
788
 
363
789
  export {
package/src/types.ts CHANGED
@@ -16,9 +16,19 @@ interface TemperaturesType {
16
16
  enviroment: number;
17
17
  }
18
18
 
19
+ interface GeneralFlagsType {
20
+ is_pellet_in_reserve: boolean;
21
+ }
22
+
23
+ interface PelletAutonomyType {
24
+ autonomy_time: number;
25
+ }
26
+
19
27
  interface StatusType {
20
28
  commands: CommandsType;
21
29
  temperatures: TemperaturesType;
30
+ flags: GeneralFlagsType;
31
+ pellet: PelletAutonomyType;
22
32
  }
23
33
 
24
34
  interface UserParametersType {
@@ -27,6 +37,14 @@ interface UserParametersType {
27
37
  enviroment_3_temperature: number;
28
38
  is_auto: boolean;
29
39
  is_sound_active: boolean;
40
+ manual_power: number;
41
+ fan_1_ventilation: number;
42
+ fan_2_ventilation: number;
43
+ fan_3_ventilation: number;
44
+ is_standby_active: boolean;
45
+ standby_waiting_time: number;
46
+ is_fahrenheit: boolean;
47
+ language: number;
30
48
  }
31
49
 
32
50
  interface DeviceInfoType {
@@ -82,6 +100,20 @@ interface DeviceAssociationResponse {
82
100
  serialNumber: string;
83
101
  }
84
102
 
103
+ /**
104
+ * Represents a discovered Edilkamin device from Bluetooth scanning.
105
+ */
106
+ interface DiscoveredDevice {
107
+ /** BLE MAC address as discovered */
108
+ bleMac: string;
109
+ /** WiFi MAC address (BLE MAC - 2), used for API calls */
110
+ wifiMac: string;
111
+ /** Device name (typically "EDILKAMIN_EP") */
112
+ name: string;
113
+ /** Signal strength in dBm (optional, not all platforms provide this) */
114
+ rssi?: number;
115
+ }
116
+
85
117
  export type {
86
118
  BufferEncodedType,
87
119
  CommandsType,
@@ -89,7 +121,10 @@ export type {
89
121
  DeviceAssociationResponse,
90
122
  DeviceInfoRawType,
91
123
  DeviceInfoType,
124
+ DiscoveredDevice,
92
125
  EditDeviceAssociationBody,
126
+ GeneralFlagsType,
127
+ PelletAutonomyType,
93
128
  StatusType,
94
129
  TemperaturesType,
95
130
  UserParametersType,
package/tsconfig.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "compilerOptions": {
3
3
  "target": "es6",
4
+ "lib": ["ES6", "DOM"],
4
5
  "moduleResolution": "node",
5
6
  "outDir": "dist",
6
7
  "rootDir": ".",