mclimate-payload-helper 1.0.19 → 1.0.21
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/encoders/types/schemas.d.ts +2378 -733
- package/dist/encoders/types/schemas.d.ts.map +1 -1
- package/dist/encoders/types/schemas.js +116 -220
- package/dist/encoders/types/schemas.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/encoders/types/schemas.ts +36 -0
- package/src/index.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { uplinkPayloadParser } from './decoders/payloadParsers';
|
|
2
2
|
export { DeviceType } from './decoders/payloadParsers/types';
|
|
3
3
|
export { CommandBuilder, VickiCommands, WirelessThermostatCommands, SetAqiLedCommands, Relay16Commands, TFloodCommands, OpenCloseSensorCommands, TringThermostatCommands, FanCoilThermostatCommands, TValveCommands, CO2SensorCommands, CO2DisplayCommands, DskDeviceCommands, ButtonCommands, HTSensorCommands, HTDisplayLite, CO2DisplayLiteCommands, } from './encoders';
|
|
4
|
+
export { DeviceCommandSchemas } from './encoders/types';
|
|
4
5
|
export { CustomError } from './utils';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,sBAAsB,GACtB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA;AAC5D,OAAO,EACN,cAAc,EACd,aAAa,EACb,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,uBAAuB,EACvB,yBAAyB,EACzB,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,sBAAsB,GACtB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomError = exports.CO2DisplayLiteCommands = exports.HTDisplayLite = exports.HTSensorCommands = exports.ButtonCommands = exports.DskDeviceCommands = exports.CO2DisplayCommands = exports.CO2SensorCommands = exports.TValveCommands = exports.FanCoilThermostatCommands = exports.TringThermostatCommands = exports.OpenCloseSensorCommands = exports.TFloodCommands = exports.Relay16Commands = exports.SetAqiLedCommands = exports.WirelessThermostatCommands = exports.VickiCommands = exports.CommandBuilder = exports.DeviceType = exports.uplinkPayloadParser = void 0;
|
|
3
|
+
exports.CustomError = exports.DeviceCommandSchemas = exports.CO2DisplayLiteCommands = exports.HTDisplayLite = exports.HTSensorCommands = exports.ButtonCommands = exports.DskDeviceCommands = exports.CO2DisplayCommands = exports.CO2SensorCommands = exports.TValveCommands = exports.FanCoilThermostatCommands = exports.TringThermostatCommands = exports.OpenCloseSensorCommands = exports.TFloodCommands = exports.Relay16Commands = exports.SetAqiLedCommands = exports.WirelessThermostatCommands = exports.VickiCommands = exports.CommandBuilder = exports.DeviceType = exports.uplinkPayloadParser = void 0;
|
|
4
4
|
var payloadParsers_1 = require("./decoders/payloadParsers");
|
|
5
5
|
Object.defineProperty(exports, "uplinkPayloadParser", { enumerable: true, get: function () { return payloadParsers_1.uplinkPayloadParser; } });
|
|
6
6
|
var types_1 = require("./decoders/payloadParsers/types");
|
|
@@ -23,6 +23,8 @@ Object.defineProperty(exports, "ButtonCommands", { enumerable: true, get: functi
|
|
|
23
23
|
Object.defineProperty(exports, "HTSensorCommands", { enumerable: true, get: function () { return encoders_1.HTSensorCommands; } });
|
|
24
24
|
Object.defineProperty(exports, "HTDisplayLite", { enumerable: true, get: function () { return encoders_1.HTDisplayLite; } });
|
|
25
25
|
Object.defineProperty(exports, "CO2DisplayLiteCommands", { enumerable: true, get: function () { return encoders_1.CO2DisplayLiteCommands; } });
|
|
26
|
+
var types_2 = require("./encoders/types");
|
|
27
|
+
Object.defineProperty(exports, "DeviceCommandSchemas", { enumerable: true, get: function () { return types_2.DeviceCommandSchemas; } });
|
|
26
28
|
var utils_1 = require("./utils");
|
|
27
29
|
Object.defineProperty(exports, "CustomError", { enumerable: true, get: function () { return utils_1.CustomError; } });
|
|
28
30
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAAtD,qHAAA,mBAAmB,OAAA;AAC5B,yDAA4D;AAAnD,mGAAA,UAAU,OAAA;AACnB,uCAkBmB;AAjBlB,0GAAA,cAAc,OAAA;AACd,yGAAA,aAAa,OAAA;AACb,sHAAA,0BAA0B,OAAA;AAC1B,6GAAA,iBAAiB,OAAA;AACjB,2GAAA,eAAe,OAAA;AACf,0GAAA,cAAc,OAAA;AACd,mHAAA,uBAAuB,OAAA;AACvB,mHAAA,uBAAuB,OAAA;AACvB,qHAAA,yBAAyB,OAAA;AACzB,0GAAA,cAAc,OAAA;AACd,6GAAA,iBAAiB,OAAA;AACjB,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,0GAAA,cAAc,OAAA;AACd,4GAAA,gBAAgB,OAAA;AAChB,yGAAA,aAAa,OAAA;AACb,kHAAA,sBAAsB,OAAA;AAEvB,iCAAqC;AAA5B,oGAAA,WAAW,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4DAA+D;AAAtD,qHAAA,mBAAmB,OAAA;AAC5B,yDAA4D;AAAnD,mGAAA,UAAU,OAAA;AACnB,uCAkBmB;AAjBlB,0GAAA,cAAc,OAAA;AACd,yGAAA,aAAa,OAAA;AACb,sHAAA,0BAA0B,OAAA;AAC1B,6GAAA,iBAAiB,OAAA;AACjB,2GAAA,eAAe,OAAA;AACf,0GAAA,cAAc,OAAA;AACd,mHAAA,uBAAuB,OAAA;AACvB,mHAAA,uBAAuB,OAAA;AACvB,qHAAA,yBAAyB,OAAA;AACzB,0GAAA,cAAc,OAAA;AACd,6GAAA,iBAAiB,OAAA;AACjB,8GAAA,kBAAkB,OAAA;AAClB,6GAAA,iBAAiB,OAAA;AACjB,0GAAA,cAAc,OAAA;AACd,4GAAA,gBAAgB,OAAA;AAChB,yGAAA,aAAa,OAAA;AACb,kHAAA,sBAAsB,OAAA;AAEvB,0CAAuD;AAA9C,6GAAA,oBAAoB,OAAA;AAC7B,iCAAqC;AAA5B,oGAAA,WAAW,OAAA"}
|
package/package.json
CHANGED
|
@@ -121,6 +121,9 @@ export namespace Co2CommonDisplayCommandTypes {
|
|
|
121
121
|
/* ---------------------------------------VICKI COMMANDS--------------------------------------- */
|
|
122
122
|
|
|
123
123
|
const VickiCommandSchemas = {
|
|
124
|
+
...GeneralCommandSchemas,
|
|
125
|
+
...TemperatureCommandSchemas,
|
|
126
|
+
...ChildLockCommandSchemas,
|
|
124
127
|
setOpenWindow: z.object({
|
|
125
128
|
enabled: z.boolean(),
|
|
126
129
|
delta: z.number(),
|
|
@@ -260,6 +263,7 @@ export namespace VickiCommandTypes {
|
|
|
260
263
|
/* --------------------------------------- RELAY 16 COMMANDS --------------------------------------- */
|
|
261
264
|
|
|
262
265
|
const Relay16CommandSchemas = {
|
|
266
|
+
...GeneralCommandSchemas,
|
|
263
267
|
setOverheatingThresholds: z.object({
|
|
264
268
|
trigger: z.number(),
|
|
265
269
|
recovery: z.number(),
|
|
@@ -303,6 +307,7 @@ export namespace Relay16CommandTypes {
|
|
|
303
307
|
// ------------------------------------------------ T-VALVE COMMANDS ------------------------------------------------
|
|
304
308
|
|
|
305
309
|
const TValveCommandSchemas = {
|
|
310
|
+
...GeneralCommandSchemas,
|
|
306
311
|
setOpenCloseTime: z.object({
|
|
307
312
|
openingTime: z.number(),
|
|
308
313
|
closingTime: z.number(),
|
|
@@ -382,6 +387,9 @@ export namespace TValveCommandTypes {
|
|
|
382
387
|
/* --------------------------------------- FAN COIL THERMOSTAT COMMANDS --------------------------------------- */
|
|
383
388
|
|
|
384
389
|
const FanCoilThermostatCommandSchemas = {
|
|
390
|
+
...GeneralCommandSchemas,
|
|
391
|
+
...DisplayCommandSchemas,
|
|
392
|
+
...TemperatureCommandSchemas,
|
|
385
393
|
setTargetTemperatureStep: z.object({
|
|
386
394
|
value: z.number(),
|
|
387
395
|
}),
|
|
@@ -516,6 +524,7 @@ export namespace FanCoilThermostatCommandTypes {
|
|
|
516
524
|
|
|
517
525
|
/* --------------------------------------- OPEN CLOSE SENSOR COMMANDS --------------------------------------- */
|
|
518
526
|
const OpenCloseSensorCommandSchemas = {
|
|
527
|
+
...GeneralCommandSchemas,
|
|
519
528
|
setNotificationBlindTime: z.object({
|
|
520
529
|
time: z.number(),
|
|
521
530
|
}),
|
|
@@ -527,6 +536,11 @@ export namespace OpenCloseSensorCommandTypes {
|
|
|
527
536
|
|
|
528
537
|
/* --------------------------------------- WIRELESS THERMOSTAT COMMANDS --------------------------------------- */
|
|
529
538
|
const WirelessThermostatCommandSchemas = {
|
|
539
|
+
...GeneralCommandSchemas,
|
|
540
|
+
...TemperatureCommandSchemas,
|
|
541
|
+
...DisplayCommandSchemas,
|
|
542
|
+
...PIRCommandSchemas,
|
|
543
|
+
...ChildLockCommandSchemas,
|
|
530
544
|
setTargetTemperature: z.object({
|
|
531
545
|
targetTemperature: z.number(),
|
|
532
546
|
}),
|
|
@@ -574,6 +588,7 @@ export namespace WirelessThermostatCommandTypes {
|
|
|
574
588
|
|
|
575
589
|
/* --------------------------------------- CO2 SENSOR COMMANDS --------------------------------------- */
|
|
576
590
|
const CO2SensorCommandSchemas = {
|
|
591
|
+
...GeneralCommandSchemas,
|
|
577
592
|
setCo2BoundaryLevels: z.object({
|
|
578
593
|
good_medium: z.number(),
|
|
579
594
|
medium_bad: z.number(),
|
|
@@ -633,6 +648,11 @@ export namespace CO2SensorCommandTypes {
|
|
|
633
648
|
|
|
634
649
|
/* --------------------------------------- CO2 DISPLAY COMMANDS --------------------------------------- */
|
|
635
650
|
const CO2DisplayCommandSchemas = {
|
|
651
|
+
...CO2SensorCommandSchemas,
|
|
652
|
+
...DisplayCommandSchemas,
|
|
653
|
+
...Co2CommonDisplayCommandSchemas,
|
|
654
|
+
...PIRCommandSchemas,
|
|
655
|
+
...ChildLockCommandSchemas,
|
|
636
656
|
setCo2MeasurementBlindTime: z.object({
|
|
637
657
|
time: z.number(),
|
|
638
658
|
}),
|
|
@@ -642,6 +662,18 @@ export namespace CO2DisplayCommandTypes {
|
|
|
642
662
|
export type SetCo2MeasurementBlindTimeParams = z.infer<typeof CO2DisplayCommandSchemas.setCo2MeasurementBlindTime>
|
|
643
663
|
}
|
|
644
664
|
|
|
665
|
+
/* --------------------------------------- CO2 DISPLAY LITE COMMANDS --------------------------------------- */
|
|
666
|
+
const CO2DisplayLiteCommandSchemas = {
|
|
667
|
+
...CO2SensorCommandSchemas,
|
|
668
|
+
...DisplayCommandSchemas,
|
|
669
|
+
...Co2CommonDisplayCommandSchemas,
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/* --------------------------------------- HT SENSOR COMMANDS --------------------------------------- */
|
|
673
|
+
const HTSensorCommandSchemas = {
|
|
674
|
+
...GeneralCommandSchemas,
|
|
675
|
+
}
|
|
676
|
+
|
|
645
677
|
// ------------------------------------------------ AQI LED COMMANDS ------------------------------------------------
|
|
646
678
|
|
|
647
679
|
const AQICommandSchemas = {
|
|
@@ -661,6 +693,7 @@ export namespace AQICommandTypes {
|
|
|
661
693
|
|
|
662
694
|
/* --------------------------------------- T-FLOOD COMMANDS --------------------------------------- */
|
|
663
695
|
const TFloodCommandSchemas = {
|
|
696
|
+
...GeneralCommandSchemas,
|
|
664
697
|
setFloodAlarmTime: z.object({
|
|
665
698
|
time: z.number(),
|
|
666
699
|
}),
|
|
@@ -725,6 +758,7 @@ export namespace DSKDeviceCommandTypes {
|
|
|
725
758
|
|
|
726
759
|
/* --------------------------------------- BUTTON COMMANDS --------------------------------------- */
|
|
727
760
|
const ButtonCommandSchemas = {
|
|
761
|
+
...GeneralCommandSchemas,
|
|
728
762
|
setSendEventLater: z.object({
|
|
729
763
|
value: z.number(),
|
|
730
764
|
}),
|
|
@@ -755,4 +789,6 @@ export const DeviceCommandSchemas = {
|
|
|
755
789
|
ChildLockCommandSchemas,
|
|
756
790
|
TemperatureCommandSchemas,
|
|
757
791
|
PIRCommandSchemas,
|
|
792
|
+
HTSensorCommandSchemas,
|
|
793
|
+
CO2DisplayLiteCommandSchemas,
|
|
758
794
|
}
|