jooby-codec 1.15.0 → 2.1.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.
- package/dist/analog/Command.d.ts +29 -0
- package/dist/analog/Command.js +34 -0
- package/dist/analog/Command.js.map +1 -0
- package/dist/{CommandBinaryBuffer.d.ts → analog/CommandBinaryBuffer.d.ts} +4 -213
- package/dist/{CommandBinaryBuffer.js → analog/CommandBinaryBuffer.js} +10 -84
- package/dist/analog/CommandBinaryBuffer.js.map +1 -0
- package/dist/{UnknownCommand.d.ts → analog/UnknownCommand.d.ts} +0 -8
- package/dist/{UnknownCommand.js → analog/UnknownCommand.js} +0 -5
- package/dist/analog/UnknownCommand.js.map +1 -0
- package/dist/analog/commands/downlink/CorrectTime2000.d.ts +16 -0
- package/dist/{commands → analog/commands}/downlink/CorrectTime2000.js +3 -23
- package/dist/analog/commands/downlink/CorrectTime2000.js.map +1 -0
- package/dist/analog/commands/downlink/GetArchiveDaysMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetArchiveDaysMC.js +7 -31
- package/dist/analog/commands/downlink/GetArchiveDaysMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetArchiveEvents.d.ts +17 -0
- package/dist/{commands → analog/commands}/downlink/GetArchiveEvents.js +5 -24
- package/dist/analog/commands/downlink/GetArchiveEvents.js.map +1 -0
- package/dist/analog/commands/downlink/GetArchiveHoursMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetArchiveHoursMC.js +7 -26
- package/dist/analog/commands/downlink/GetArchiveHoursMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetCurrentMC.d.ts +10 -0
- package/dist/analog/commands/downlink/GetCurrentMC.js +23 -0
- package/dist/analog/commands/downlink/GetCurrentMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetExAbsArchiveDaysMC.js +7 -28
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.d.ts +18 -0
- package/dist/{commands → analog/commands}/downlink/GetExAbsArchiveHoursMC.js +7 -27
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.d.ts +11 -0
- package/dist/{commands → analog/commands}/downlink/GetExAbsCurrentMC.js +0 -20
- package/dist/analog/commands/downlink/GetExAbsCurrentMC.js.map +1 -0
- package/dist/analog/commands/downlink/GetLmicInfo.d.ts +10 -0
- package/dist/analog/commands/downlink/GetLmicInfo.js +23 -0
- package/dist/analog/commands/downlink/GetLmicInfo.js.map +1 -0
- package/dist/analog/commands/downlink/GetParameter.d.ts +15 -0
- package/dist/{commands → analog/commands}/downlink/GetParameter.js +0 -20
- package/dist/analog/commands/downlink/GetParameter.js.map +1 -0
- package/dist/analog/commands/downlink/GetStatus.d.ts +11 -0
- package/dist/{commands → analog/commands}/downlink/GetStatus.js +0 -19
- package/dist/analog/commands/downlink/GetStatus.js.map +1 -0
- package/dist/analog/commands/downlink/SetParameter.d.ts +13 -0
- package/dist/{commands → analog/commands}/downlink/SetParameter.js +0 -19
- package/dist/analog/commands/downlink/SetParameter.js.map +1 -0
- package/dist/analog/commands/downlink/SetTime2000.d.ts +16 -0
- package/dist/{commands → analog/commands}/downlink/SetTime2000.js +3 -22
- package/dist/analog/commands/downlink/SetTime2000.js.map +1 -0
- package/dist/analog/commands/downlink/SoftRestart.d.ts +10 -0
- package/dist/analog/commands/downlink/SoftRestart.js +23 -0
- package/dist/analog/commands/downlink/SoftRestart.js.map +1 -0
- package/dist/{commands → analog/commands}/downlink/index.d.ts +0 -5
- package/dist/{commands → analog/commands}/downlink/index.js +0 -5
- package/dist/analog/commands/downlink/index.js.map +1 -0
- package/dist/{commands → analog/commands}/index.d.ts +0 -5
- package/dist/{commands → analog/commands}/index.js +0 -5
- package/dist/analog/commands/index.js.map +1 -0
- package/dist/analog/commands/uplink/CorrectTime2000Response.d.ts +15 -0
- package/dist/{commands → analog/commands}/uplink/CorrectTime2000Response.js +3 -23
- package/dist/analog/commands/uplink/CorrectTime2000Response.js.map +1 -0
- package/dist/{commands → analog/commands}/uplink/CurrentMC.d.ts +0 -24
- package/dist/{commands → analog/commands}/uplink/CurrentMC.js +0 -24
- package/dist/analog/commands/uplink/CurrentMC.js.map +1 -0
- package/dist/analog/commands/uplink/DayMC.d.ts +17 -0
- package/dist/{commands → analog/commands}/uplink/DayMC.js +6 -38
- package/dist/analog/commands/uplink/DayMC.js.map +1 -0
- package/dist/analog/commands/uplink/ExAbsCurrentMC.d.ts +16 -0
- package/dist/{commands → analog/commands}/uplink/ExAbsCurrentMC.js +0 -29
- package/dist/analog/commands/uplink/ExAbsCurrentMC.js.map +1 -0
- package/dist/analog/commands/uplink/ExAbsDayMC.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/ExAbsDayMC.js +5 -35
- package/dist/analog/commands/uplink/ExAbsDayMC.js.map +1 -0
- package/dist/analog/commands/uplink/ExAbsHourMC.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/ExAbsHourMC.js +6 -41
- package/dist/analog/commands/uplink/ExAbsHourMC.js.map +1 -0
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/GetArchiveDaysMCResponse.js +5 -37
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.d.ts +21 -0
- package/dist/{commands → analog/commands}/uplink/GetArchiveEventsResponse.js +7 -33
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/GetArchiveHoursMCResponse.js +3 -36
- package/dist/analog/commands/uplink/GetArchiveHoursMCResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/GetExAbsArchiveDaysMCResponse.js +5 -37
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.d.ts +19 -0
- package/dist/{commands → analog/commands}/uplink/GetExAbsArchiveHoursMCResponse.js +5 -35
- package/dist/analog/commands/uplink/GetExAbsArchiveHoursMCResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetLmicInfoResponse.d.ts +21 -0
- package/dist/{commands → analog/commands}/uplink/GetLmicInfoResponse.js +4 -29
- package/dist/analog/commands/uplink/GetLmicInfoResponse.js.map +1 -0
- package/dist/analog/commands/uplink/GetParameterResponse.d.ts +13 -0
- package/dist/{commands → analog/commands}/uplink/GetParameterResponse.js +0 -24
- package/dist/analog/commands/uplink/GetParameterResponse.js.map +1 -0
- package/dist/analog/commands/uplink/HourMC.d.ts +20 -0
- package/dist/{commands → analog/commands}/uplink/HourMC.js +5 -39
- package/dist/analog/commands/uplink/HourMC.js.map +1 -0
- package/dist/analog/commands/uplink/LastEvent.d.ts +21 -0
- package/dist/{commands → analog/commands}/uplink/LastEvent.js +22 -48
- package/dist/analog/commands/uplink/LastEvent.js.map +1 -0
- package/dist/{commands → analog/commands}/uplink/NewEvent.d.ts +2 -43
- package/dist/{commands → analog/commands}/uplink/NewEvent.js +8 -38
- package/dist/analog/commands/uplink/NewEvent.js.map +1 -0
- package/dist/analog/commands/uplink/SetTime2000Response.d.ts +15 -0
- package/dist/{commands → analog/commands}/uplink/SetTime2000Response.js +3 -22
- package/dist/analog/commands/uplink/SetTime2000Response.js.map +1 -0
- package/dist/analog/commands/uplink/SoftRestartResponse.d.ts +10 -0
- package/dist/analog/commands/uplink/SoftRestartResponse.js +23 -0
- package/dist/analog/commands/uplink/SoftRestartResponse.js.map +1 -0
- package/dist/analog/commands/uplink/Status.d.ts +23 -0
- package/dist/{commands → analog/commands}/uplink/Status.js +1 -33
- package/dist/analog/commands/uplink/Status.js.map +1 -0
- package/dist/analog/commands/uplink/Time2000.d.ts +17 -0
- package/dist/{commands → analog/commands}/uplink/Time2000.js +6 -26
- package/dist/analog/commands/uplink/Time2000.js.map +1 -0
- package/dist/{commands → analog/commands}/uplink/index.d.ts +0 -5
- package/dist/{commands → analog/commands}/uplink/index.js +0 -5
- package/dist/analog/commands/uplink/index.js.map +1 -0
- package/dist/analog/constants/deviceParameters.d.ts +18 -0
- package/dist/analog/constants/deviceParameters.js +19 -0
- package/dist/analog/constants/deviceParameters.js.map +1 -0
- package/dist/analog/constants/directions.js.map +1 -0
- package/dist/analog/constants/events.d.ts +21 -0
- package/dist/analog/constants/events.js +22 -0
- package/dist/analog/constants/events.js.map +1 -0
- package/dist/analog/constants/hardwareTypes.d.ts +13 -0
- package/dist/analog/constants/hardwareTypes.js +14 -0
- package/dist/analog/constants/hardwareTypes.js.map +1 -0
- package/dist/analog/constants/index.js.map +1 -0
- package/dist/{constants → analog/constants}/rx2SpreadFactors.d.ts +0 -5
- package/dist/{constants → analog/constants}/rx2SpreadFactors.js +0 -5
- package/dist/analog/constants/rx2SpreadFactors.js.map +1 -0
- package/dist/{utils → analog}/header.d.ts +1 -1
- package/dist/{utils → analog}/header.js +2 -4
- package/dist/analog/header.js.map +1 -0
- package/dist/analog/index.d.ts +3 -0
- package/dist/analog/index.js +4 -0
- package/dist/analog/index.js.map +1 -0
- package/dist/{utils → analog}/message.d.ts +8 -13
- package/dist/{utils → analog}/message.js +13 -32
- package/dist/analog/message.js.map +1 -0
- package/dist/config.d.ts +5 -0
- package/dist/config.js +5 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/{Command.d.ts → obis-observer/Command.d.ts} +2 -27
- package/dist/obis-observer/Command.js +33 -0
- package/dist/obis-observer/Command.js.map +1 -0
- package/dist/obis-observer/CommandBinaryBuffer.d.ts +56 -0
- package/dist/obis-observer/CommandBinaryBuffer.js +138 -0
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -0
- package/dist/obis-observer/UnknownCommand.d.ts +12 -0
- package/dist/obis-observer/UnknownCommand.js +17 -0
- package/dist/obis-observer/UnknownCommand.js.map +1 -0
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js +55 -0
- package/dist/obis-observer/commands/downlink/AddShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js +39 -0
- package/dist/obis-observer/commands/downlink/GetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetContentByObis.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetContentByObis.js +48 -0
- package/dist/obis-observer/commands/downlink/GetContentByObis.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js +44 -0
- package/dist/obis-observer/commands/downlink/GetContentByShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js +44 -0
- package/dist/obis-observer/commands/downlink/GetShortNameInfo.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/GetShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.js +48 -0
- package/dist/obis-observer/commands/downlink/GetShortNames.js.map +1 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.d.ts +18 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js +58 -0
- package/dist/obis-observer/commands/downlink/ReadArchive.js.map +1 -0
- package/dist/obis-observer/commands/downlink/Reboot.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/Reboot.js +39 -0
- package/dist/obis-observer/commands/downlink/Reboot.js.map +1 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.d.ts +16 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js +42 -0
- package/dist/obis-observer/commands/downlink/RemoveShortNameProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js +45 -0
- package/dist/obis-observer/commands/downlink/SetArchiveProfile.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.d.ts +19 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.js +61 -0
- package/dist/obis-observer/commands/downlink/SetSerialPort.js.map +1 -0
- package/dist/obis-observer/commands/downlink/SetShortName.d.ts +17 -0
- package/dist/obis-observer/commands/downlink/SetShortName.js +51 -0
- package/dist/obis-observer/commands/downlink/SetShortName.js.map +1 -0
- package/dist/obis-observer/commands/downlink/index.d.ts +13 -0
- package/dist/obis-observer/commands/downlink/index.js +14 -0
- package/dist/obis-observer/commands/downlink/index.js.map +1 -0
- package/dist/obis-observer/commands/index.d.ts +2 -0
- package/dist/obis-observer/commands/index.js +3 -0
- package/dist/obis-observer/commands/index.js.map +1 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/AddShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetContentByObisResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js +44 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetContentByShortNameStringResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.d.ts +17 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js +74 -0
- package/dist/obis-observer/commands/uplink/GetShortNameInfoResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js +54 -0
- package/dist/obis-observer/commands/uplink/GetShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js +45 -0
- package/dist/obis-observer/commands/uplink/GetShortNamesResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.js +57 -0
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ObservationReportString.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/ObservationReportString.js +62 -0
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.d.ts +18 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js +61 -0
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.d.ts +13 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.js +36 -0
- package/dist/obis-observer/commands/uplink/RebootResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/RemoveShortNameProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/SetArchiveProfileResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js +51 -0
- package/dist/obis-observer/commands/uplink/SetSerialPortResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js +43 -0
- package/dist/obis-observer/commands/uplink/SetShortNameResponse.js.map +1 -0
- package/dist/obis-observer/commands/uplink/index.d.ts +16 -0
- package/dist/obis-observer/commands/uplink/index.js +17 -0
- package/dist/obis-observer/commands/uplink/index.js.map +1 -0
- package/dist/obis-observer/constants/archiveTypes.d.ts +3 -0
- package/dist/obis-observer/constants/archiveTypes.js +4 -0
- package/dist/obis-observer/constants/archiveTypes.js.map +1 -0
- package/dist/obis-observer/constants/contentTypes.d.ts +3 -0
- package/dist/obis-observer/constants/contentTypes.js +4 -0
- package/dist/obis-observer/constants/contentTypes.js.map +1 -0
- package/dist/obis-observer/constants/directions.d.ts +2 -0
- package/dist/obis-observer/constants/directions.js +3 -0
- package/dist/obis-observer/constants/directions.js.map +1 -0
- package/dist/obis-observer/constants/index.d.ts +5 -0
- package/dist/obis-observer/constants/index.js +6 -0
- package/dist/obis-observer/constants/index.js.map +1 -0
- package/dist/obis-observer/constants/parityTypes.d.ts +3 -0
- package/dist/obis-observer/constants/parityTypes.js +4 -0
- package/dist/obis-observer/constants/parityTypes.js.map +1 -0
- package/dist/obis-observer/constants/resultCodes.d.ts +6 -0
- package/dist/obis-observer/constants/resultCodes.js +7 -0
- package/dist/obis-observer/constants/resultCodes.js.map +1 -0
- package/dist/obis-observer/index.d.ts +3 -0
- package/dist/obis-observer/index.js +4 -0
- package/dist/obis-observer/index.js.map +1 -0
- package/dist/obis-observer/message.d.ts +18 -0
- package/dist/obis-observer/message.js +58 -0
- package/dist/obis-observer/message.js.map +1 -0
- package/dist/{BinaryBuffer.d.ts → utils/BinaryBuffer.d.ts} +3 -17
- package/dist/{BinaryBuffer.js → utils/BinaryBuffer.js} +17 -19
- package/dist/utils/BinaryBuffer.js.map +1 -0
- package/dist/utils/bitSet.d.ts +2 -36
- package/dist/utils/bitSet.js +10 -36
- package/dist/utils/bitSet.js.map +1 -1
- package/dist/utils/getBytesFromHex.d.ts +0 -9
- package/dist/utils/getBytesFromHex.js +0 -10
- package/dist/utils/getBytesFromHex.js.map +1 -1
- package/dist/utils/getHexFromBytes.d.ts +1 -25
- package/dist/utils/getHexFromBytes.js +2 -16
- package/dist/utils/getHexFromBytes.js.map +1 -1
- package/dist/utils/getHexFromNumber.d.ts +3 -0
- package/dist/utils/getHexFromNumber.js +20 -0
- package/dist/utils/getHexFromNumber.js.map +1 -0
- package/dist/utils/index.d.ts +3 -1
- package/dist/utils/index.js +2 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/time.d.ts +2 -26
- package/dist/utils/time.js +2 -14
- package/dist/utils/time.js.map +1 -1
- package/package.json +13 -9
- package/readme.md +20 -13
- package/dist/BinaryBuffer.js.map +0 -1
- package/dist/Command.js +0 -89
- package/dist/Command.js.map +0 -1
- package/dist/CommandBinaryBuffer.js.map +0 -1
- package/dist/UnknownCommand.js.map +0 -1
- package/dist/commands/downlink/CorrectTime2000.d.ts +0 -46
- package/dist/commands/downlink/CorrectTime2000.js.map +0 -1
- package/dist/commands/downlink/GetArchiveDaysMC.d.ts +0 -45
- package/dist/commands/downlink/GetArchiveDaysMC.js.map +0 -1
- package/dist/commands/downlink/GetArchiveEvents.d.ts +0 -40
- package/dist/commands/downlink/GetArchiveEvents.js.map +0 -1
- package/dist/commands/downlink/GetArchiveHoursMC.d.ts +0 -40
- package/dist/commands/downlink/GetArchiveHoursMC.js.map +0 -1
- package/dist/commands/downlink/GetCurrentMC.d.ts +0 -26
- package/dist/commands/downlink/GetCurrentMC.js +0 -42
- package/dist/commands/downlink/GetCurrentMC.js.map +0 -1
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.d.ts +0 -41
- package/dist/commands/downlink/GetExAbsArchiveDaysMC.js.map +0 -1
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.d.ts +0 -40
- package/dist/commands/downlink/GetExAbsArchiveHoursMC.js.map +0 -1
- package/dist/commands/downlink/GetExAbsCurrentMC.d.ts +0 -27
- package/dist/commands/downlink/GetExAbsCurrentMC.js.map +0 -1
- package/dist/commands/downlink/GetLmicInfo.d.ts +0 -26
- package/dist/commands/downlink/GetLmicInfo.js +0 -42
- package/dist/commands/downlink/GetLmicInfo.js.map +0 -1
- package/dist/commands/downlink/GetParameter.d.ts +0 -38
- package/dist/commands/downlink/GetParameter.js.map +0 -1
- package/dist/commands/downlink/GetStatus.d.ts +0 -27
- package/dist/commands/downlink/GetStatus.js.map +0 -1
- package/dist/commands/downlink/SetParameter.d.ts +0 -30
- package/dist/commands/downlink/SetParameter.js.map +0 -1
- package/dist/commands/downlink/SetTime2000.d.ts +0 -42
- package/dist/commands/downlink/SetTime2000.js.map +0 -1
- package/dist/commands/downlink/SoftRestart.d.ts +0 -26
- package/dist/commands/downlink/SoftRestart.js +0 -42
- package/dist/commands/downlink/SoftRestart.js.map +0 -1
- package/dist/commands/downlink/index.js.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/uplink/CorrectTime2000Response.d.ts +0 -39
- package/dist/commands/uplink/CorrectTime2000Response.js.map +0 -1
- package/dist/commands/uplink/CurrentMC.js.map +0 -1
- package/dist/commands/uplink/DayMC.d.ts +0 -47
- package/dist/commands/uplink/DayMC.js.map +0 -1
- package/dist/commands/uplink/ExAbsCurrentMC.d.ts +0 -41
- package/dist/commands/uplink/ExAbsCurrentMC.js.map +0 -1
- package/dist/commands/uplink/ExAbsDayMC.d.ts +0 -45
- package/dist/commands/uplink/ExAbsDayMC.js.map +0 -1
- package/dist/commands/uplink/ExAbsHourMC.d.ts +0 -69
- package/dist/commands/uplink/ExAbsHourMC.js.map +0 -1
- package/dist/commands/uplink/GetArchiveDaysMCResponse.d.ts +0 -58
- package/dist/commands/uplink/GetArchiveDaysMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetArchiveEventsResponse.d.ts +0 -54
- package/dist/commands/uplink/GetArchiveEventsResponse.js.map +0 -1
- package/dist/commands/uplink/GetArchiveHoursMCResponse.d.ts +0 -50
- package/dist/commands/uplink/GetArchiveHoursMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.d.ts +0 -47
- package/dist/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetExAbsArchiveHoursMCResponse.d.ts +0 -44
- package/dist/commands/uplink/GetExAbsArchiveHoursMCResponse.js.map +0 -1
- package/dist/commands/uplink/GetLmicInfoResponse.d.ts +0 -52
- package/dist/commands/uplink/GetLmicInfoResponse.js.map +0 -1
- package/dist/commands/uplink/GetParameterResponse.d.ts +0 -35
- package/dist/commands/uplink/GetParameterResponse.js.map +0 -1
- package/dist/commands/uplink/HourMC.d.ts +0 -48
- package/dist/commands/uplink/HourMC.js.map +0 -1
- package/dist/commands/uplink/LastEvent.d.ts +0 -54
- package/dist/commands/uplink/LastEvent.js.map +0 -1
- package/dist/commands/uplink/NewEvent.js.map +0 -1
- package/dist/commands/uplink/SetTime2000Response.d.ts +0 -38
- package/dist/commands/uplink/SetTime2000Response.js.map +0 -1
- package/dist/commands/uplink/SoftRestartResponse.d.ts +0 -28
- package/dist/commands/uplink/SoftRestartResponse.js +0 -44
- package/dist/commands/uplink/SoftRestartResponse.js.map +0 -1
- package/dist/commands/uplink/Status.d.ts +0 -55
- package/dist/commands/uplink/Status.js.map +0 -1
- package/dist/commands/uplink/Time2000.d.ts +0 -43
- package/dist/commands/uplink/Time2000.js.map +0 -1
- package/dist/commands/uplink/index.js.map +0 -1
- package/dist/constants/deviceParameters.d.ts +0 -53
- package/dist/constants/deviceParameters.js +0 -54
- package/dist/constants/deviceParameters.js.map +0 -1
- package/dist/constants/directions.js.map +0 -1
- package/dist/constants/events.d.ts +0 -42
- package/dist/constants/events.js +0 -43
- package/dist/constants/events.js.map +0 -1
- package/dist/constants/hardwareTypes.d.ts +0 -108
- package/dist/constants/hardwareTypes.js +0 -109
- package/dist/constants/hardwareTypes.js.map +0 -1
- package/dist/constants/index.js.map +0 -1
- package/dist/constants/rx2SpreadFactors.js.map +0 -1
- package/dist/utils/header.js.map +0 -1
- package/dist/utils/message.js.map +0 -1
- /package/dist/{constants → analog/constants}/directions.d.ts +0 -0
- /package/dist/{constants → analog/constants}/directions.js +0 -0
- /package/dist/{constants → analog/constants}/index.d.ts +0 -0
- /package/dist/{constants → analog/constants}/index.js +0 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
interface IStatusBase {
|
|
3
|
+
}
|
|
4
|
+
interface IProduct {
|
|
5
|
+
version: number;
|
|
6
|
+
type: number;
|
|
7
|
+
}
|
|
8
|
+
interface IStatusParameters {
|
|
9
|
+
software: IProduct;
|
|
10
|
+
hardware: IProduct;
|
|
11
|
+
data: IStatusBase;
|
|
12
|
+
}
|
|
13
|
+
declare class Status extends Command {
|
|
14
|
+
parameters: IStatusParameters;
|
|
15
|
+
constructor(parameters: IStatusParameters);
|
|
16
|
+
static readonly id = 20;
|
|
17
|
+
static readonly directionType = 2;
|
|
18
|
+
static readonly examples: TCommandExampleList;
|
|
19
|
+
static readonly hasParameters = true;
|
|
20
|
+
static fromBytes(data: Uint8Array): Status;
|
|
21
|
+
toBytes(): Uint8Array;
|
|
22
|
+
}
|
|
23
|
+
export default Status;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import Command from '../../Command.js';
|
|
2
2
|
import CommandBinaryBuffer from '../../CommandBinaryBuffer.js';
|
|
3
|
-
import roundNumber from '
|
|
3
|
+
import roundNumber from '../../../utils/roundNumber.js';
|
|
4
4
|
import * as hardwareTypes from '../../constants/hardwareTypes.js';
|
|
5
5
|
import { UPLINK } from '../../constants/directions.js';
|
|
6
6
|
const COMMAND_ID = 0x14;
|
|
7
7
|
const COMMAND_BODY_MAX_SIZE = 20;
|
|
8
8
|
const UNKNOWN_BATTERY_RESISTANCE = 65535;
|
|
9
|
-
// max battery capacity, 254 - 100%
|
|
10
9
|
const UNKNOWN_BATTERY_CAPACITY = 255;
|
|
11
10
|
const examples = [
|
|
12
11
|
{
|
|
@@ -25,41 +24,11 @@ const examples = [
|
|
|
25
24
|
hex: { header: '14 0c', body: '02 0a 03 01 c5 6d c2 27 32 0e 68 22' }
|
|
26
25
|
}
|
|
27
26
|
];
|
|
28
|
-
/**
|
|
29
|
-
* Uplink command.
|
|
30
|
-
*
|
|
31
|
-
* @example create command instance from command body hex dump
|
|
32
|
-
* ```js
|
|
33
|
-
* import Status from 'jooby-codec/commands/uplink/Status';
|
|
34
|
-
*
|
|
35
|
-
* const commandBody = new Uint8Array([
|
|
36
|
-
* 0x02, 0x0a, 0x03, 0x01, 0xc5, 0x6d, 0xc2, 0x27, 0x32, 0x0e, 0x68, 0x22
|
|
37
|
-
* ]);
|
|
38
|
-
* const command = Status.fromBytes(commandBody);
|
|
39
|
-
*
|
|
40
|
-
* console.log(command.parameters);
|
|
41
|
-
* // output:
|
|
42
|
-
* {
|
|
43
|
-
* software: {type: 2, version: 10},
|
|
44
|
-
* hardware: {type: 3, version: 1},
|
|
45
|
-
* data: {
|
|
46
|
-
* batteryVoltage: {low: 3158, high: 3522},
|
|
47
|
-
* batteryInternalResistance: 10034,
|
|
48
|
-
* temperature: 14,
|
|
49
|
-
* remainingBatteryCapacity: 41,
|
|
50
|
-
* lastEventSequenceNumber: 34
|
|
51
|
-
* }
|
|
52
|
-
* }
|
|
53
|
-
* ```
|
|
54
|
-
*
|
|
55
|
-
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/GetStatus.md#response)
|
|
56
|
-
*/
|
|
57
27
|
class Status extends Command {
|
|
58
28
|
constructor(parameters) {
|
|
59
29
|
super();
|
|
60
30
|
this.parameters = parameters;
|
|
61
31
|
}
|
|
62
|
-
// data - only body (without header)
|
|
63
32
|
static fromBytes(data) {
|
|
64
33
|
const buffer = new CommandBinaryBuffer(data);
|
|
65
34
|
const software = { type: buffer.getUint8(), version: buffer.getUint8() };
|
|
@@ -100,7 +69,6 @@ class Status extends Command {
|
|
|
100
69
|
}
|
|
101
70
|
return new Status({ software, hardware, data: statusData });
|
|
102
71
|
}
|
|
103
|
-
// returns full message - header with body
|
|
104
72
|
toBytes() {
|
|
105
73
|
const { software, hardware, data } = this.parameters;
|
|
106
74
|
const buffer = new CommandBinaryBuffer(COMMAND_BODY_MAX_SIZE);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Status.js","sourceRoot":"","sources":["../../../../src/analog/commands/uplink/Status.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAsC,MAAM,8BAA8B,CAAC;AAClF,OAAO,WAAW,MAAM,+BAA+B,CAAC;AACxD,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AA4CrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,qBAAqB,GAAG,EAAE,CAAC;AACjC,MAAM,0BAA0B,GAAG,KAAK,CAAC;AAGzC,MAAM,wBAAwB,GAAG,GAAG,CAAC;A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,KAAK,SAAS,EAAG;oBACrD,MAAM,CAAC,QAAQ,CAAC,wBAAwB,CAAC,CAAC;iBAC7C;qBAAM;oBACH,MAAM,CAAC,QAAQ,CAAC,CAAC,wBAAwB,GAAG,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,wBAAwB,GAAG,GAAG,CAAC,CAAC,CAAC;iBACjG;gBAED,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,uBAAuB,CAAC,CAAC;gBAEpD,MAAM;YAEV,KAAK,aAAa,CAAC,OAAO,CAAC;YAC3B,KAAK,aAAa,CAAC,KAAK,CAAC;YACzB;gBACI,MAAM,IAAI,KAAK,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,mBAAmB,QAAQ,CAAC,IAAI,mBAAmB,CAAC,CAAC;SAC7F;QAED,OAAO,OAAO,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAClE,CAAC;;AA7Ge,SAAE,GAAG,UAAU,CAAC;AAEhB,oBAAa,GAAG,MAAM,CAAC;AAEvB,eAAQ,GAAG,QAAQ,CAAC;AAEpB,oBAAa,GAAG,IAAI,CAAC;AA2GzC,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
import { TTime2000 } from '../../../utils/time.js';
|
|
3
|
+
interface ITime2000Parameters {
|
|
4
|
+
sequenceNumber: number;
|
|
5
|
+
time2000: TTime2000;
|
|
6
|
+
}
|
|
7
|
+
declare class Time2000 extends Command {
|
|
8
|
+
parameters: ITime2000Parameters;
|
|
9
|
+
constructor(parameters: ITime2000Parameters);
|
|
10
|
+
static readonly id = 9;
|
|
11
|
+
static readonly directionType = 2;
|
|
12
|
+
static readonly examples: TCommandExampleList;
|
|
13
|
+
static readonly hasParameters = true;
|
|
14
|
+
static fromBytes(data: Uint8Array): Time2000;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default Time2000;
|
|
@@ -6,54 +6,34 @@ const COMMAND_BODY_SIZE = 5;
|
|
|
6
6
|
const examples = [
|
|
7
7
|
{
|
|
8
8
|
name: 'time is 2023.04.03 14:01:17 GMT',
|
|
9
|
-
parameters: { sequenceNumber: 77,
|
|
9
|
+
parameters: { sequenceNumber: 77, time2000: 733845677 },
|
|
10
10
|
hex: { header: '09 05', body: '4d 2b bd 98 ad' }
|
|
11
11
|
}
|
|
12
12
|
];
|
|
13
|
-
/**
|
|
14
|
-
* Uplink command.
|
|
15
|
-
*
|
|
16
|
-
* @example create command instance from command body hex dump
|
|
17
|
-
* ```js
|
|
18
|
-
* import CorrectTime2000Response from 'jooby-codec/commands/uplink/CorrectTime2000Response';
|
|
19
|
-
*
|
|
20
|
-
* // failure
|
|
21
|
-
* const commandBody = new Uint8Array([0x4d, 0x2b, 0xbd, 0x98, 0xad]);
|
|
22
|
-
* const command = CorrectTime2000Response.fromBytes(commandBody);
|
|
23
|
-
*
|
|
24
|
-
* console.log(command.parameters);
|
|
25
|
-
* // output:
|
|
26
|
-
* {sequenceNumber: 77, time: 733845677}
|
|
27
|
-
* ```
|
|
28
|
-
*
|
|
29
|
-
* [Command format documentation](https://github.com/jooby-dev/jooby-docs/blob/main/docs/commands/uplink/Time2000.md)
|
|
30
|
-
*/
|
|
31
13
|
class Time2000 extends Command {
|
|
32
14
|
constructor(parameters) {
|
|
33
15
|
super();
|
|
34
16
|
this.parameters = parameters;
|
|
35
17
|
}
|
|
36
|
-
// data - only body (without header)
|
|
37
18
|
static fromBytes(data) {
|
|
38
19
|
if (data.byteLength !== COMMAND_BODY_SIZE) {
|
|
39
|
-
throw new Error(
|
|
20
|
+
throw new Error(`Wrong buffer size: ${data.byteLength}.`);
|
|
40
21
|
}
|
|
41
22
|
const buffer = new CommandBinaryBuffer(data);
|
|
42
23
|
const parameters = {
|
|
43
24
|
sequenceNumber: buffer.getUint8(),
|
|
44
|
-
|
|
25
|
+
time2000: buffer.getTime()
|
|
45
26
|
};
|
|
46
27
|
if (!buffer.isEmpty) {
|
|
47
|
-
throw new Error(
|
|
28
|
+
throw new Error('BinaryBuffer is not empty.');
|
|
48
29
|
}
|
|
49
30
|
return new Time2000(parameters);
|
|
50
31
|
}
|
|
51
|
-
// returns full message - header with body
|
|
52
32
|
toBytes() {
|
|
53
|
-
const { sequenceNumber,
|
|
33
|
+
const { sequenceNumber, time2000 } = this.parameters;
|
|
54
34
|
const buffer = new CommandBinaryBuffer(COMMAND_BODY_SIZE);
|
|
55
35
|
buffer.setUint8(sequenceNumber);
|
|
56
|
-
buffer.setTime(
|
|
36
|
+
buffer.setTime(time2000);
|
|
57
37
|
return Command.toBytes(COMMAND_ID, buffer.toUint8Array());
|
|
58
38
|
}
|
|
59
39
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Time2000.js","sourceRoot":"","sources":["../../../../src/analog/commands/uplink/Time2000.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,mBAAmB,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAC,MAAM,EAAC,MAAM,+BAA+B,CAAC;AAkBrD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAE5B,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iCAAiC;QACvC,UAAU,EAAE,EAAC,cAAc,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAC;QACrD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAC;KACjD;CACJ,CAAC;AAqBF,MAAM,QAAS,SAAQ,OAAO;IAC1B,YAAqB,UAA+B;QAChD,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAAqB;IAEpD,CAAC;IAaD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,IAAK,IAAI,CAAC,UAAU,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declare const REPORTING_DATA_TYPE = 5;
|
|
4
|
+
export declare const PRIORITY_DATA_DELIVERY_TYPE = 8;
|
|
5
|
+
export declare const ACTIVATION_METHOD = 9;
|
|
6
|
+
export declare const BATTERY_DEPASSIVATION_INFO = 10;
|
|
7
|
+
export declare const BATTERY_MINIMAL_LOAD_TIME = 11;
|
|
8
|
+
export declare const CHANNELS_CONFIG = 13;
|
|
9
|
+
export declare const RX2_CONFIG = 18;
|
|
10
|
+
export declare const ABSOLUTE_DATA = 23;
|
|
11
|
+
export declare const ABSOLUTE_DATA_ENABLE = 24;
|
|
12
|
+
export declare const SERIAL_NUMBER = 25;
|
|
13
|
+
export declare const GEOLOCATION = 26;
|
|
14
|
+
export declare const EXTRA_FRAME_INTERVAL = 28;
|
|
15
|
+
export declare const ABSOLUTE_DATA_MULTI_CHANNEL = 29;
|
|
16
|
+
export declare const ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL = 30;
|
|
17
|
+
export declare const PULSE_CHANNELS_SCAN_CONFIG = 31;
|
|
18
|
+
export declare const PULSE_CHANNELS_SET_CONFIG = 32;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const REPORTING_DATA_INTERVAL = 1;
|
|
2
|
+
export const DAY_CHECKOUT_HOUR = 4;
|
|
3
|
+
export const REPORTING_DATA_TYPE = 5;
|
|
4
|
+
export const PRIORITY_DATA_DELIVERY_TYPE = 8;
|
|
5
|
+
export const ACTIVATION_METHOD = 9;
|
|
6
|
+
export const BATTERY_DEPASSIVATION_INFO = 10;
|
|
7
|
+
export const BATTERY_MINIMAL_LOAD_TIME = 11;
|
|
8
|
+
export const CHANNELS_CONFIG = 13;
|
|
9
|
+
export const RX2_CONFIG = 18;
|
|
10
|
+
export const ABSOLUTE_DATA = 23;
|
|
11
|
+
export const ABSOLUTE_DATA_ENABLE = 24;
|
|
12
|
+
export const SERIAL_NUMBER = 25;
|
|
13
|
+
export const GEOLOCATION = 26;
|
|
14
|
+
export const EXTRA_FRAME_INTERVAL = 28;
|
|
15
|
+
export const ABSOLUTE_DATA_MULTI_CHANNEL = 29;
|
|
16
|
+
export const ABSOLUTE_DATA_ENABLE_MULTI_CHANNEL = 30;
|
|
17
|
+
export const PULSE_CHANNELS_SCAN_CONFIG = 31;
|
|
18
|
+
export const PULSE_CHANNELS_SET_CONFIG = 32;
|
|
19
|
+
//# sourceMappingURL=deviceParameters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deviceParameters.js","sourceRoot":"","sources":["../../../src/analog/constants/deviceParameters.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAGzC,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAGnC,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC;AAGrC,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC;AAG7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAGnC,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAG7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAO5C,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAGlC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC;AAG7B,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAGhC,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAGvC,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAGhC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAG9B,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAGvC,MAAM,CAAC,MAAM,2BAA2B,GAAG,EAAE,CAAC;AAG9C,MAAM,CAAC,MAAM,kCAAkC,GAAG,EAAE,CAAC;AAQrD,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAQ7C,MAAM,CAAC,MAAM,yBAAyB,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directions.js","sourceRoot":"","sources":["../../../src/analog/constants/directions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC;AACtB,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAC1B,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const MAGNET_ON = 1;
|
|
2
|
+
export declare const MAGNET_OFF = 2;
|
|
3
|
+
export declare const ACTIVATE = 3;
|
|
4
|
+
export declare const DEACTIVATE = 4;
|
|
5
|
+
export declare const BATTERY_ALARM = 5;
|
|
6
|
+
export declare const CAN_OFF = 6;
|
|
7
|
+
export declare const INSERT = 7;
|
|
8
|
+
export declare const REMOVE = 8;
|
|
9
|
+
export declare const COUNTER_OVER = 9;
|
|
10
|
+
export declare const SET_TIME = 10;
|
|
11
|
+
export declare const ACTIVATE_MTX = 11;
|
|
12
|
+
export declare const CONNECT = 12;
|
|
13
|
+
export declare const DISCONNECT = 13;
|
|
14
|
+
export declare const DEPASS_DONE = 14;
|
|
15
|
+
export declare const OPTOLOW = 15;
|
|
16
|
+
export declare const OPTOFLASH = 16;
|
|
17
|
+
export declare const MTX = 17;
|
|
18
|
+
export declare const JOIN_ACCEPT = 18;
|
|
19
|
+
export declare const WATER_EVENT = 19;
|
|
20
|
+
export declare const WATER_NO_RESPONSE = 20;
|
|
21
|
+
export declare const OPTOSENSOR_ERROR = 21;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const MAGNET_ON = 1;
|
|
2
|
+
export const MAGNET_OFF = 2;
|
|
3
|
+
export const ACTIVATE = 3;
|
|
4
|
+
export const DEACTIVATE = 4;
|
|
5
|
+
export const BATTERY_ALARM = 5;
|
|
6
|
+
export const CAN_OFF = 6;
|
|
7
|
+
export const INSERT = 7;
|
|
8
|
+
export const REMOVE = 8;
|
|
9
|
+
export const COUNTER_OVER = 9;
|
|
10
|
+
export const SET_TIME = 10;
|
|
11
|
+
export const ACTIVATE_MTX = 11;
|
|
12
|
+
export const CONNECT = 12;
|
|
13
|
+
export const DISCONNECT = 13;
|
|
14
|
+
export const DEPASS_DONE = 14;
|
|
15
|
+
export const OPTOLOW = 15;
|
|
16
|
+
export const OPTOFLASH = 16;
|
|
17
|
+
export const MTX = 17;
|
|
18
|
+
export const JOIN_ACCEPT = 18;
|
|
19
|
+
export const WATER_EVENT = 19;
|
|
20
|
+
export const WATER_NO_RESPONSE = 20;
|
|
21
|
+
export const OPTOSENSOR_ERROR = 21;
|
|
22
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/analog/constants/events.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC;AAG3B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAG5B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAG1B,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAG5B,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC;AAG/B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAGzB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAGxB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAGxB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC;AAG9B,MAAM,CAAC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAG3B,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAG/B,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAG1B,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC;AAG7B,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAG9B,MAAM,CAAC,MAAM,OAAO,GAAG,EAAE,CAAC;AAG1B,MAAM,CAAC,MAAM,SAAS,GAAG,EAAE,CAAC;AAG5B,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE,CAAC;AAGtB,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAG9B,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAG9B,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC;AAGpC,MAAM,CAAC,MAAM,gBAAgB,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const GASI1 = 1;
|
|
2
|
+
export declare const GASI2 = 2;
|
|
3
|
+
export declare const GASI3 = 3;
|
|
4
|
+
export declare const NOVATOR = 4;
|
|
5
|
+
export declare const IMP2EU = 5;
|
|
6
|
+
export declare const IMP4EU = 6;
|
|
7
|
+
export declare const MTXLORA = 7;
|
|
8
|
+
export declare const IMP2AS = 8;
|
|
9
|
+
export declare const IMP2IN = 9;
|
|
10
|
+
export declare const IMP4IN = 10;
|
|
11
|
+
export declare const ELIMP = 11;
|
|
12
|
+
export declare const GASIC = 12;
|
|
13
|
+
export declare const IMP4AS = 15;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const GASI1 = 1;
|
|
2
|
+
export const GASI2 = 2;
|
|
3
|
+
export const GASI3 = 3;
|
|
4
|
+
export const NOVATOR = 4;
|
|
5
|
+
export const IMP2EU = 5;
|
|
6
|
+
export const IMP4EU = 6;
|
|
7
|
+
export const MTXLORA = 7;
|
|
8
|
+
export const IMP2AS = 8;
|
|
9
|
+
export const IMP2IN = 9;
|
|
10
|
+
export const IMP4IN = 10;
|
|
11
|
+
export const ELIMP = 11;
|
|
12
|
+
export const GASIC = 12;
|
|
13
|
+
export const IMP4AS = 15;
|
|
14
|
+
//# sourceMappingURL=hardwareTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hardwareTypes.js","sourceRoot":"","sources":["../../../src/analog/constants/hardwareTypes.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AAQvB,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AAavB,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AAUvB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAMzB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAWxB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAMxB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAOzB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAOxB,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC;AAOxB,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,CAAC;AASzB,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;AAiBxB,MAAM,CAAC,MAAM,KAAK,GAAG,EAAE,CAAC;AAWxB,MAAM,CAAC,MAAM,MAAM,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/analog/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,gBAAgB,MAAM,uBAAuB,CAAC;AAC1D,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,aAAa,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rx2SpreadFactors.js","sourceRoot":"","sources":["../../../src/analog/constants/rx2SpreadFactors.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,CAAC;AAE1B,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC;AAEzB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import getBytesFromHex from '
|
|
2
|
-
import getHexFromBytes from '
|
|
1
|
+
import getBytesFromHex from '../utils/getBytesFromHex.js';
|
|
2
|
+
import getHexFromBytes from '../utils/getHexFromBytes.js';
|
|
3
3
|
const shortCommandMask = 0xe0;
|
|
4
4
|
const extraCommandMask = 0x1f;
|
|
5
5
|
export const fromBytes = (data) => {
|
|
@@ -11,7 +11,6 @@ export const fromBytes = (data) => {
|
|
|
11
11
|
extraCode: data[0] & extraCommandMask
|
|
12
12
|
};
|
|
13
13
|
if (header.shortCode !== 0) {
|
|
14
|
-
// short header
|
|
15
14
|
return {
|
|
16
15
|
headerSize: 1,
|
|
17
16
|
commandId: data[0] & (~header.extraCode),
|
|
@@ -19,7 +18,6 @@ export const fromBytes = (data) => {
|
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
20
|
if (header.extraCode === extraCommandMask) {
|
|
22
|
-
// extra command
|
|
23
21
|
if (data.length < 3) {
|
|
24
22
|
throw new Error('Invalid buffer size');
|
|
25
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"header.js","sourceRoot":"","sources":["../../src/analog/header.ts"],"names":[],"mappings":"AACA,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAG1D,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAC9B,MAAM,gBAAgB,GAAG,IAAI,CAAC;AAG9B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAE,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,EAAE,WAAmB,EAAe,EAAE;IAC5E,IAAK,CAAC,SAAS,GAAG,gBAAgB,CAAC,KAAK,CAAC,EAAG;QACxC,IAAK,WAAW,GAAG,gBAAgB,EAAG;YAClC,MAAM,IAAI,KAAK,CAAC,8BAA8B,SAAS,WAAW,WAAW,GAAG,CAAC,CAAC;SACrF;QAED,OAAO,IAAI,UAAU,CAAC,CAAC,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC;KACpD;IAED,IAAK,SAAS,GAAG,gBAAgB,EAAG;QAChC,OAAO,IAAI,UAAU,CAAC;YAClB,gBAAgB;YAChB,CAAC,SAAS,IAAI,CAAC,CAAC;YAChB,WAAW;SACd,CAAC,CAAC;KACN;IAED,OAAO,IAAI,UAAU,CAAC;QAClB,SAAS;QACT,WAAW;KACd,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAE,SAAiB,EAAE,WAAmB,EAAE,UAA6B,EAAE,EAAW,EAAE,CAAC,CACxG,eAAe,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE,OAAO,CAAC,CAC5D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/analog/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,qBAAqB,CAAC;AAChD,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC"}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import Command from '
|
|
2
|
-
import { IHexFormatOptions } from '
|
|
1
|
+
import Command from './Command.js';
|
|
2
|
+
import { IHexFormatOptions } from '../config.js';
|
|
3
3
|
interface IMessageCommand {
|
|
4
|
-
/** command source binary data */
|
|
5
4
|
data: {
|
|
6
5
|
header: Uint8Array;
|
|
7
6
|
body: Uint8Array;
|
|
8
7
|
};
|
|
9
|
-
/** specific command instance */
|
|
10
8
|
command: Command;
|
|
11
9
|
}
|
|
12
10
|
interface IMessage {
|
|
@@ -17,16 +15,13 @@ interface IMessage {
|
|
|
17
15
|
};
|
|
18
16
|
isValid: boolean;
|
|
19
17
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
*
|
|
25
|
-
* @return LRC
|
|
26
|
-
*/
|
|
18
|
+
interface IMessageConfig {
|
|
19
|
+
direction?: number;
|
|
20
|
+
hardwareType?: number;
|
|
21
|
+
}
|
|
27
22
|
export declare const calculateLrc: (data: Uint8Array, initialLrc?: number) => number;
|
|
28
|
-
export declare const fromBytes: (data: Uint8Array,
|
|
29
|
-
export declare const fromHex: (data: string,
|
|
23
|
+
export declare const fromBytes: (data: Uint8Array, config?: IMessageConfig) => IMessage;
|
|
24
|
+
export declare const fromHex: (data: string, config?: IMessageConfig) => IMessage;
|
|
30
25
|
export declare const toBytes: (commands: Array<Command>) => Uint8Array;
|
|
31
26
|
export declare const toHex: (commands: Array<Command>, options?: IHexFormatOptions) => string;
|
|
32
27
|
export {};
|
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
import { AUTO, DOWNLINK, UPLINK } from '../constants/directions.js';
|
|
1
|
+
import UnknownCommand from './UnknownCommand.js';
|
|
2
|
+
import * as downlinkCommands from './commands/downlink/index.js';
|
|
3
|
+
import * as uplinkCommands from './commands/uplink/index.js';
|
|
4
|
+
import * as directionTypes from './constants/directions.js';
|
|
5
|
+
import { AUTO, DOWNLINK, UPLINK } from './constants/directions.js';
|
|
7
6
|
import * as header from './header.js';
|
|
8
|
-
import getBytesFromHex from '
|
|
9
|
-
import getHexFromBytes from '
|
|
7
|
+
import getBytesFromHex from '../utils/getBytesFromHex.js';
|
|
8
|
+
import getHexFromBytes from '../utils/getHexFromBytes.js';
|
|
10
9
|
const HEADER_MAX_SIZE = 3;
|
|
11
|
-
// all allowed types
|
|
12
10
|
const directionTypeIds = new Set(Object.values(directionTypes));
|
|
13
|
-
// convert export namespace to dictionary {commandId: commandConstructor}
|
|
14
11
|
const downlinkCommandsById = Object.fromEntries(Object.values(downlinkCommands).map(item => [item.id, item]));
|
|
15
12
|
const uplinkCommandsById = Object.fromEntries(Object.values(uplinkCommands).map(item => [item.id, item]));
|
|
16
|
-
/**
|
|
17
|
-
* Calculate LRC
|
|
18
|
-
*
|
|
19
|
-
* @param data - byte array
|
|
20
|
-
*
|
|
21
|
-
* @return LRC
|
|
22
|
-
*/
|
|
23
13
|
export const calculateLrc = (data, initialLrc = 0x55) => {
|
|
24
14
|
let lrc = initialLrc;
|
|
25
15
|
data.forEach(item => {
|
|
@@ -33,28 +23,25 @@ const getCommand = (id, data, direction = AUTO, hardwareType) => {
|
|
|
33
23
|
}
|
|
34
24
|
const downlinkCommand = downlinkCommandsById[id];
|
|
35
25
|
const uplinkCommand = uplinkCommandsById[id];
|
|
36
|
-
// check command availability
|
|
37
26
|
if ((!downlinkCommand && !uplinkCommand)
|
|
38
27
|
|| (direction === DOWNLINK && !downlinkCommand)
|
|
39
28
|
|| (direction === UPLINK && !uplinkCommand)) {
|
|
40
|
-
// missing command implementation
|
|
41
29
|
return new UnknownCommand({ id, data });
|
|
42
30
|
}
|
|
43
|
-
// ths specific direction
|
|
44
31
|
if (direction === DOWNLINK || direction === UPLINK) {
|
|
45
32
|
const command = direction === UPLINK ? uplinkCommand : downlinkCommand;
|
|
46
|
-
return command.fromBytes(data, hardwareType);
|
|
33
|
+
return command.fromBytes(data, { hardwareType });
|
|
47
34
|
}
|
|
48
|
-
// direction autodetect
|
|
49
35
|
try {
|
|
50
|
-
|
|
51
|
-
return uplinkCommand.fromBytes(data, hardwareType);
|
|
36
|
+
return uplinkCommand.fromBytes(data, { hardwareType });
|
|
52
37
|
}
|
|
53
38
|
catch {
|
|
54
39
|
return downlinkCommand.fromBytes(data);
|
|
55
40
|
}
|
|
56
41
|
};
|
|
57
|
-
export const fromBytes = (data,
|
|
42
|
+
export const fromBytes = (data, config) => {
|
|
43
|
+
const direction = config?.direction ?? AUTO;
|
|
44
|
+
const hardwareType = config?.hardwareType;
|
|
58
45
|
const commandsData = data.slice(0, -1);
|
|
59
46
|
const commands = [];
|
|
60
47
|
const result = {
|
|
@@ -70,15 +57,12 @@ export const fromBytes = (data, direction = AUTO, hardwareType) => {
|
|
|
70
57
|
const headerData = commandsData.slice(position, position + headerInfo.headerSize);
|
|
71
58
|
const bodyData = commandsData.slice(position + headerInfo.headerSize, position + headerInfo.headerSize + headerInfo.commandSize);
|
|
72
59
|
let command;
|
|
73
|
-
// shift
|
|
74
60
|
position = position + headerInfo.headerSize + headerInfo.commandSize;
|
|
75
61
|
try {
|
|
76
62
|
command = getCommand(headerInfo.commandId, bodyData, direction, hardwareType);
|
|
77
63
|
}
|
|
78
64
|
catch (error) {
|
|
79
|
-
// the last command in the message
|
|
80
65
|
if (position >= commandsData.length) {
|
|
81
|
-
// LRC may be missing so try to add one
|
|
82
66
|
command = getCommand(headerInfo.commandId, new Uint8Array([...bodyData, ...data.slice(-1)]), direction, hardwareType);
|
|
83
67
|
actualLrc = calculateLrc(data);
|
|
84
68
|
expectedLrc = undefined;
|
|
@@ -97,19 +81,16 @@ export const fromBytes = (data, direction = AUTO, hardwareType) => {
|
|
|
97
81
|
result.isValid = expectedLrc === actualLrc;
|
|
98
82
|
return result;
|
|
99
83
|
};
|
|
100
|
-
export const fromHex = (data,
|
|
84
|
+
export const fromHex = (data, config) => (fromBytes(getBytesFromHex(data), config));
|
|
101
85
|
export const toBytes = (commands) => {
|
|
102
86
|
const arrays = commands.map(command => command.toBytes());
|
|
103
87
|
const totalLength = arrays.reduce((accumulator, item) => (accumulator + item.length), 0);
|
|
104
|
-
// 1 additional byte at the end is for LRC
|
|
105
88
|
const result = new Uint8Array(totalLength + 1);
|
|
106
89
|
let offset = 0;
|
|
107
|
-
// fill result with all chunks
|
|
108
90
|
arrays.forEach(item => {
|
|
109
91
|
result.set(item, offset);
|
|
110
92
|
offset += item.length;
|
|
111
93
|
});
|
|
112
|
-
// set last byte to LRC
|
|
113
94
|
result[result.length - 1] = calculateLrc(result.slice(0, result.length - 1));
|
|
114
95
|
return result;
|
|
115
96
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/analog/message.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,MAAM,qBAAqB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,cAAc,MAAM,4BAA4B,CAAC;AAE7D,OAAO,KAAK,cAAc,MAAM,2BAA2B,CAAC;AAC5D,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,2BAA2B,CAAC;AAEjE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,eAAe,MAAM,6BAA6B,CAAC;AA4B1D,MAAM,eAAe,GAAG,CAAC,CAAC;AAG1B,MAAM,gBAAgB,GAAgB,IAAI,GAAG,CAAS,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;AAGrF,MAAM,oBAAoB,GAAG,MAAM,CAAC,WAAW,CAC3C,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAC/D,CAAC;AACF,MAAM,kBAAkB,GAAG,MAAM,CAAC,WAAW,CACzC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAC7D,CAAC;AAUF,MAAM,CAAC,MAAM,YAAY,GAAG,CAAE,IAAgB,EAAE,UAAU,GAAG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AAE,CAAC,CAAC,CAAC;IAGzF,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC;IAC/C,IAAI,MAAM,GAAG,CAAC,CAAC;IAGf,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAClB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;QACzB,MAAM,IAAI,IAAI,CAAC,MAAM,CAAC;IAC1B,CAAC,CAAC,CAAC;IAGH,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC;IAE7E,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,CAAE,QAAwB,EAAE,UAA6B,EAAE,EAAW,EAAE,CAAC,eAAe,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC"}
|
package/dist/config.d.ts
ADDED
package/dist/config.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAkCA,MAAM,CAAC,MAAM,gBAAgB,GAAsB;IAC/C,SAAS,EAAE,GAAG;IACd,MAAM,EAAE,EAAE;CACb,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
1
|
+
export * as analog from './analog/index.js';
|
|
2
|
+
export * as obisObserver from './obis-observer/index.js';
|
|
3
3
|
export * as utils from './utils/index.js';
|
|
4
|
-
export * as
|
|
4
|
+
export * as config from './config.js';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export * as
|
|
1
|
+
export * as analog from './analog/index.js';
|
|
2
|
+
export * as obisObserver from './obis-observer/index.js';
|
|
3
3
|
export * as utils from './utils/index.js';
|
|
4
|
-
export * as
|
|
4
|
+
export * as config from './config.js';
|
|
5
5
|
//# 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,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,YAAY,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAC1C,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC"}
|