jooby-codec 3.3.0 → 3.5.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.js.map +1 -1
- package/dist/analog/CommandBinaryBuffer.js.map +1 -1
- package/dist/analog/commands/downlink/CorrectTime2000.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveDays.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveDaysMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveHours.js.map +1 -1
- package/dist/analog/commands/downlink/GetArchiveHoursMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveDaysMC.js.map +1 -1
- package/dist/analog/commands/downlink/GetExAbsArchiveHoursMC.js.map +1 -1
- package/dist/analog/commands/downlink/SetTime2000.js.map +1 -1
- package/dist/analog/commands/downlink/WriteImage.js.map +1 -1
- package/dist/analog/commands/uplink/CorrectTime2000Response.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveDaysMCResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveDaysResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetArchiveEventsResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetExAbsArchiveDaysMCResponse.js.map +1 -1
- package/dist/analog/commands/uplink/GetLmicInfoResponse.js.map +1 -1
- package/dist/analog/commands/uplink/LastEvent.js.map +1 -1
- package/dist/analog/commands/uplink/NewEvent.js.map +1 -1
- package/dist/analog/commands/uplink/SetParameterResponse.js.map +1 -1
- package/dist/analog/commands/uplink/SetTime2000Response.js.map +1 -1
- package/dist/analog/commands/uplink/Status.js.map +1 -1
- package/dist/analog/commands/uplink/Time2000.js.map +1 -1
- package/dist/analog/constants/commandRelations.js.map +1 -1
- package/dist/analog/header.js.map +1 -1
- package/dist/analog/message.js.map +1 -1
- package/dist/mtx/CommandBinaryBuffer.d.ts +30 -5
- package/dist/mtx/CommandBinaryBuffer.js +65 -117
- package/dist/mtx/CommandBinaryBuffer.js.map +1 -1
- package/dist/mtx/commands/downlink/GetBuildVersion.d.ts +13 -0
- package/dist/mtx/commands/downlink/GetBuildVersion.js +31 -0
- package/dist/mtx/commands/downlink/GetBuildVersion.js.map +1 -0
- package/dist/mtx/commands/downlink/GetCorrectTime.d.ts +13 -0
- package/dist/mtx/commands/downlink/GetCorrectTime.js +31 -0
- package/dist/mtx/commands/downlink/GetCorrectTime.js.map +1 -0
- package/dist/mtx/commands/downlink/GetSaldo.d.ts +13 -0
- package/dist/mtx/commands/downlink/GetSaldo.js +31 -0
- package/dist/mtx/commands/downlink/GetSaldo.js.map +1 -0
- package/dist/mtx/commands/downlink/GetSaldoParameters.d.ts +13 -0
- package/dist/mtx/commands/downlink/GetSaldoParameters.js +31 -0
- package/dist/mtx/commands/downlink/GetSaldoParameters.js.map +1 -0
- package/dist/mtx/commands/downlink/GetVersion.d.ts +13 -0
- package/dist/mtx/commands/downlink/GetVersion.js +31 -0
- package/dist/mtx/commands/downlink/GetVersion.js.map +1 -0
- package/dist/mtx/commands/downlink/SetCorrectTime.d.ts +15 -0
- package/dist/mtx/commands/downlink/SetCorrectTime.js +49 -0
- package/dist/mtx/commands/downlink/SetCorrectTime.js.map +1 -0
- package/dist/mtx/commands/downlink/SetDayProfile.js.map +1 -1
- package/dist/mtx/commands/downlink/SetDisplayParam.js.map +1 -1
- package/dist/mtx/commands/downlink/SetOpParams.js.map +1 -1
- package/dist/mtx/commands/downlink/SetSaldo.d.ts +24 -0
- package/dist/mtx/commands/downlink/SetSaldo.js +63 -0
- package/dist/mtx/commands/downlink/SetSaldo.js.map +1 -0
- package/dist/mtx/commands/downlink/SetSaldoParameters.d.ts +15 -0
- package/dist/mtx/commands/downlink/SetSaldoParameters.js +53 -0
- package/dist/mtx/commands/downlink/SetSaldoParameters.js.map +1 -0
- package/dist/mtx/commands/downlink/index.d.ts +8 -0
- package/dist/mtx/commands/downlink/index.js +8 -0
- package/dist/mtx/commands/downlink/index.js.map +1 -1
- package/dist/mtx/commands/uplink/GetBuildVersionResponse.d.ts +20 -0
- package/dist/mtx/commands/uplink/GetBuildVersionResponse.js +53 -0
- package/dist/mtx/commands/uplink/GetBuildVersionResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetCorrectTimeResponse.d.ts +15 -0
- package/dist/mtx/commands/uplink/GetCorrectTimeResponse.js +49 -0
- package/dist/mtx/commands/uplink/GetCorrectTimeResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetDayProfileResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetDisplayParamResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetOpParamsResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/GetSaldoParametersResponse.d.ts +15 -0
- package/dist/mtx/commands/uplink/GetSaldoParametersResponse.js +73 -0
- package/dist/mtx/commands/uplink/GetSaldoParametersResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetSaldoResponse.d.ts +26 -0
- package/dist/mtx/commands/uplink/GetSaldoResponse.js +72 -0
- package/dist/mtx/commands/uplink/GetSaldoResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/GetVersionResponse.d.ts +17 -0
- package/dist/mtx/commands/uplink/GetVersionResponse.js +43 -0
- package/dist/mtx/commands/uplink/GetVersionResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetCorrectTimeResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetCorrectTimeResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetCorrectTimeResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetDisplayParamResponse.js.map +1 -1
- package/dist/mtx/commands/uplink/SetSaldoParametersResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetSaldoParametersResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetSaldoParametersResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/SetSaldoResponse.d.ts +13 -0
- package/dist/mtx/commands/uplink/SetSaldoResponse.js +31 -0
- package/dist/mtx/commands/uplink/SetSaldoResponse.js.map +1 -0
- package/dist/mtx/commands/uplink/index.d.ts +8 -0
- package/dist/mtx/commands/uplink/index.js +8 -0
- package/dist/mtx/commands/uplink/index.js.map +1 -1
- package/dist/mtx/constants/commandRelations.d.ts +2 -2
- package/dist/mtx/constants/commandRelations.js +6 -0
- package/dist/mtx/constants/commandRelations.js.map +1 -1
- package/dist/mtx/message.js.map +1 -1
- package/dist/mtx/utils/crypto.js.map +1 -1
- package/dist/mtx/utils/deviceType.d.ts +7 -0
- package/dist/mtx/utils/deviceType.js +226 -0
- package/dist/mtx/utils/deviceType.js.map +1 -0
- package/dist/obis-observer/Command.js.map +1 -1
- package/dist/obis-observer/CommandBinaryBuffer.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupMeter.js.map +1 -1
- package/dist/obis-observer/commands/downlink/SetupObis.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetArchiveStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetMeterReadoutStateResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObisContentByIdResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/GetObisInfoResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReport.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ObservationReportString.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadArchiveResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveResponse.js.map +1 -1
- package/dist/obis-observer/commands/uplink/ReadMeterArchiveWithDateResponse.js.map +1 -1
- package/dist/obis-observer/constants/commandRelations.js.map +1 -1
- package/dist/obis-observer/message.js.map +1 -1
- package/dist/obis-observer/utils/obis.js.map +1 -1
- package/dist/utils/BinaryBuffer.d.ts +1 -0
- package/dist/utils/BinaryBuffer.js +3 -0
- package/dist/utils/BinaryBuffer.js.map +1 -1
- package/dist/utils/bitSet.js.map +1 -1
- package/dist/utils/calculateCrc16.js.map +1 -1
- package/dist/utils/calculateCrc32.js.map +1 -1
- package/dist/utils/frame.js +2 -2
- package/dist/utils/frame.js.map +1 -1
- package/dist/utils/frameCollector.js.map +1 -1
- package/dist/utils/getBytesFromHex.js.map +1 -1
- package/dist/utils/getHexFromNumber.js.map +1 -1
- package/dist/utils/mergeUint8Arrays.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import Command, { COMMAND_HEADER_SIZE } from '../../Command.js';
|
|
2
|
+
import CommandBinaryBuffer from '../../CommandBinaryBuffer.js';
|
|
3
|
+
import { READ_ONLY } from '../../constants/accessLevels.js';
|
|
4
|
+
import { UPLINK } from '../../../constants/directions.js';
|
|
5
|
+
const COMMAND_ID = 0x29;
|
|
6
|
+
const COMMAND_SIZE = 29;
|
|
7
|
+
const examples = [
|
|
8
|
+
{
|
|
9
|
+
name: 'test response',
|
|
10
|
+
parameters: {
|
|
11
|
+
currentSaldo: 1,
|
|
12
|
+
count: 0,
|
|
13
|
+
energy: [2, 3, 4, 5],
|
|
14
|
+
beginSaldoOfPeriod: 7,
|
|
15
|
+
date: {
|
|
16
|
+
month: 9,
|
|
17
|
+
date: 23,
|
|
18
|
+
hours: 6,
|
|
19
|
+
minutes: 35
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
hex: {
|
|
23
|
+
header: '29 1d',
|
|
24
|
+
body: '00 00 00 01 00 00 00 00 02 00 00 00 03 00 00 00 04 00 00 00 05 00 00 00 07 09 17 06 23'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
class GetSaldoResponse extends Command {
|
|
29
|
+
constructor(parameters) {
|
|
30
|
+
super();
|
|
31
|
+
this.parameters = parameters;
|
|
32
|
+
this.size = COMMAND_SIZE;
|
|
33
|
+
}
|
|
34
|
+
static fromBytes(data) {
|
|
35
|
+
const buffer = new CommandBinaryBuffer(data);
|
|
36
|
+
return new GetSaldoResponse({
|
|
37
|
+
currentSaldo: buffer.getInt32(),
|
|
38
|
+
count: buffer.getUint8(),
|
|
39
|
+
energy: Array.from({ length: 4 }, () => buffer.getInt32()),
|
|
40
|
+
beginSaldoOfPeriod: buffer.getInt32(),
|
|
41
|
+
date: {
|
|
42
|
+
month: buffer.getUint8(),
|
|
43
|
+
date: buffer.getUint8(),
|
|
44
|
+
hours: buffer.getUint8(),
|
|
45
|
+
minutes: buffer.getUint8()
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
toBytes() {
|
|
50
|
+
const { size, parameters } = this;
|
|
51
|
+
const buffer = new CommandBinaryBuffer(COMMAND_HEADER_SIZE + this.size);
|
|
52
|
+
buffer.setUint8(COMMAND_ID);
|
|
53
|
+
buffer.setUint8(size);
|
|
54
|
+
buffer.setInt32(parameters.currentSaldo);
|
|
55
|
+
buffer.setUint8(parameters.count);
|
|
56
|
+
parameters.energy.forEach(value => buffer.setInt32(value));
|
|
57
|
+
buffer.setInt32(parameters.beginSaldoOfPeriod);
|
|
58
|
+
buffer.setUint8(parameters.date.month);
|
|
59
|
+
buffer.setUint8(parameters.date.date);
|
|
60
|
+
buffer.setUint8(parameters.date.hours);
|
|
61
|
+
buffer.setUint8(parameters.date.minutes);
|
|
62
|
+
return buffer.toUint8Array();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
GetSaldoResponse.id = COMMAND_ID;
|
|
66
|
+
GetSaldoResponse.directionType = UPLINK;
|
|
67
|
+
GetSaldoResponse.examples = examples;
|
|
68
|
+
GetSaldoResponse.hasParameters = true;
|
|
69
|
+
GetSaldoResponse.accessLevel = READ_ONLY;
|
|
70
|
+
GetSaldoResponse.maxSize = COMMAND_SIZE;
|
|
71
|
+
export default GetSaldoResponse;
|
|
72
|
+
//# sourceMappingURL=GetSaldoResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetSaldoResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink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,mBAAE,GAAG,UAAU,CAAC;AAEhB,8BAAa,GAAG,MAAM,CAAC;AAEvB,yBAAQ,GAAG,QAAQ,CAAC;AAEpB,8BAAa,GAAG,IAAI,CAAC;AAErB,4BAAW,GAAG,SAAS,CAAC;AAExB,wBAAO,GAAG,YAAY,CAAC;AA6C3C,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
interface IGetVersionResponseParameters {
|
|
3
|
+
version: string;
|
|
4
|
+
}
|
|
5
|
+
declare class GetVersionResponse extends Command {
|
|
6
|
+
parameters: IGetVersionResponseParameters;
|
|
7
|
+
constructor(parameters: IGetVersionResponseParameters);
|
|
8
|
+
static readonly id = 40;
|
|
9
|
+
static readonly directionType = 2;
|
|
10
|
+
static readonly examples: TCommandExampleList;
|
|
11
|
+
static readonly hasParameters = true;
|
|
12
|
+
static readonly accessLevel = 3;
|
|
13
|
+
static readonly maxSize = 10;
|
|
14
|
+
static fromBytes(data: Uint8Array): GetVersionResponse;
|
|
15
|
+
toBytes(): Uint8Array;
|
|
16
|
+
}
|
|
17
|
+
export default GetVersionResponse;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { READ_ONLY } from '../../constants/accessLevels.js';
|
|
3
|
+
import { UPLINK } from '../../../constants/directions.js';
|
|
4
|
+
const COMMAND_ID = 0x28;
|
|
5
|
+
const COMMAND_SIZE = 10;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
parameters: {
|
|
10
|
+
version: '104.25.003'
|
|
11
|
+
},
|
|
12
|
+
hex: { header: '28 0a', body: '31 30 34 2e 32 35 2e 30 30 33' }
|
|
13
|
+
}
|
|
14
|
+
];
|
|
15
|
+
class GetVersionResponse extends Command {
|
|
16
|
+
constructor(parameters) {
|
|
17
|
+
super();
|
|
18
|
+
this.parameters = parameters;
|
|
19
|
+
this.size = COMMAND_SIZE;
|
|
20
|
+
}
|
|
21
|
+
static fromBytes(data) {
|
|
22
|
+
return new GetVersionResponse({
|
|
23
|
+
version: String.fromCharCode.apply(null, [...data])
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
toBytes() {
|
|
27
|
+
const { size, parameters } = this;
|
|
28
|
+
const version = parameters.version.split('').map(char => char.charCodeAt(0));
|
|
29
|
+
return new Uint8Array([
|
|
30
|
+
COMMAND_ID,
|
|
31
|
+
size,
|
|
32
|
+
...version
|
|
33
|
+
]);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
GetVersionResponse.id = COMMAND_ID;
|
|
37
|
+
GetVersionResponse.directionType = UPLINK;
|
|
38
|
+
GetVersionResponse.examples = examples;
|
|
39
|
+
GetVersionResponse.hasParameters = true;
|
|
40
|
+
GetVersionResponse.accessLevel = READ_ONLY;
|
|
41
|
+
GetVersionResponse.maxSize = COMMAND_SIZE;
|
|
42
|
+
export default GetVersionResponse;
|
|
43
|
+
//# sourceMappingURL=GetVersionResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetVersionResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/GetVersionResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,SAAS,EAAC,MAAM,iCAAiC,CAAC;AAC1D,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AAQxD,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,EAAE,CAAC;AAExB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,UAAU,EAAE;YACR,OAAO,EAAE,YAAY;SACxB;QACD,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,+BAA+B,EAAC;KAChE;CACJ,CAAC;AAsBF,MAAM,kBAAmB,SAAQ,OAAO;IACpC,YAAqB,UAAyC;QAC1D,KAAK,EAAE,CAAC;QADS,eAAU,GAAV,UAAU,CAA+B;QAG1D,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAiBD,MAAM,CAAC,SAAS,CAAG,IAAgB;QAC/B,OAAO,IAAI,kBAAkB,CAAC;YAC1B,OAAO,EAAE,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;SACtD,CAAC,CAAC;IACP,CAAC;IAGD,OAAO;QACH,MAAM,EAAC,IAAI,EAAE,UAAU,EAAC,GAAG,IAAI,CAAC;QAChC,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QAE7E,OAAO,IAAI,UAAU,CAAC;YAClB,UAAU;YACV,IAAI;YACJ,GAAG,OAAO;SACb,CAAC,CAAC;IACP,CAAC;;AA9Be,qBAAE,GAAG,UAAU,CAAC;AAEhB,gCAAa,GAAG,MAAM,CAAC;AAEvB,2BAAQ,GAAG,QAAQ,CAAC;AAEpB,gCAAa,GAAG,IAAI,CAAC;AAErB,8BAAW,GAAG,SAAS,CAAC;AAExB,0BAAO,GAAG,YAAY,CAAC;AAwB3C,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
declare class SetCorrectTimeResponse extends Command {
|
|
3
|
+
constructor();
|
|
4
|
+
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static readonly maxSize = 0;
|
|
10
|
+
static fromBytes(): SetCorrectTimeResponse;
|
|
11
|
+
toBytes(): Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export default SetCorrectTimeResponse;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x1c;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '1c 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class SetCorrectTimeResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new SetCorrectTimeResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
SetCorrectTimeResponse.id = COMMAND_ID;
|
|
25
|
+
SetCorrectTimeResponse.directionType = UPLINK;
|
|
26
|
+
SetCorrectTimeResponse.examples = examples;
|
|
27
|
+
SetCorrectTimeResponse.hasParameters = false;
|
|
28
|
+
SetCorrectTimeResponse.accessLevel = READ_WRITE;
|
|
29
|
+
SetCorrectTimeResponse.maxSize = COMMAND_SIZE;
|
|
30
|
+
export default SetCorrectTimeResponse;
|
|
31
|
+
//# sourceMappingURL=SetCorrectTimeResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetCorrectTimeResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetCorrectTimeResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,sBAAuB,SAAQ,OAAO;IACxC;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAiBD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,sBAAsB,EAAE,CAAC;IACxC,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AArBM,yBAAE,GAAG,UAAU,CAAC;AAEP,oCAAa,GAAG,MAAM,CAAC;AAEvB,+BAAQ,GAAG,QAAQ,CAAC;AAEpB,oCAAa,GAAG,KAAK,CAAC;AAEtB,kCAAW,GAAG,UAAU,CAAC;AAEzB,8BAAO,GAAG,YAAY,CAAC;AAe3C,eAAe,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetDisplayParamResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetDisplayParamResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"SetDisplayParamResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetDisplayParamResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,uBAAwB,SAAQ,OAAO;IACzC;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAiBD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,uBAAuB,EAAE,CAAC;IACzC,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AArBM,0BAAE,GAAG,UAAU,CAAC;AAEP,qCAAa,GAAG,MAAM,CAAC;AAEvB,gCAAQ,GAAG,QAAQ,CAAC;AAEpB,qCAAa,GAAG,KAAK,CAAC;AAEtB,mCAAW,GAAG,UAAU,CAAC;AAEzB,+BAAO,GAAG,YAAY,CAAC;AAe3C,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
declare class SetSaldoParametersResponse extends Command {
|
|
3
|
+
constructor();
|
|
4
|
+
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static readonly maxSize = 0;
|
|
10
|
+
static fromBytes(): SetSaldoParametersResponse;
|
|
11
|
+
toBytes(): Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export default SetSaldoParametersResponse;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x2f;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '2f 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class SetSaldoParametersResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new SetSaldoParametersResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
SetSaldoParametersResponse.id = COMMAND_ID;
|
|
25
|
+
SetSaldoParametersResponse.directionType = UPLINK;
|
|
26
|
+
SetSaldoParametersResponse.examples = examples;
|
|
27
|
+
SetSaldoParametersResponse.hasParameters = false;
|
|
28
|
+
SetSaldoParametersResponse.accessLevel = READ_WRITE;
|
|
29
|
+
SetSaldoParametersResponse.maxSize = COMMAND_SIZE;
|
|
30
|
+
export default SetSaldoParametersResponse;
|
|
31
|
+
//# sourceMappingURL=SetSaldoParametersResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSaldoParametersResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetSaldoParametersResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,0BAA2B,SAAQ,OAAO;IAC5C;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAiBD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,0BAA0B,EAAE,CAAC;IAC5C,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AArBM,6BAAE,GAAG,UAAU,CAAC;AAEP,wCAAa,GAAG,MAAM,CAAC;AAEvB,mCAAQ,GAAG,QAAQ,CAAC;AAEpB,wCAAa,GAAG,KAAK,CAAC;AAEtB,sCAAW,GAAG,UAAU,CAAC;AAEzB,kCAAO,GAAG,YAAY,CAAC;AAe3C,eAAe,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Command, { TCommandExampleList } from '../../Command.js';
|
|
2
|
+
declare class SetSaldoResponse extends Command {
|
|
3
|
+
constructor();
|
|
4
|
+
static id: number;
|
|
5
|
+
static readonly directionType = 2;
|
|
6
|
+
static readonly examples: TCommandExampleList;
|
|
7
|
+
static readonly hasParameters = false;
|
|
8
|
+
static readonly accessLevel = 2;
|
|
9
|
+
static readonly maxSize = 0;
|
|
10
|
+
static fromBytes(): SetSaldoResponse;
|
|
11
|
+
toBytes(): Uint8Array;
|
|
12
|
+
}
|
|
13
|
+
export default SetSaldoResponse;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import Command from '../../Command.js';
|
|
2
|
+
import { UPLINK } from '../../../constants/directions.js';
|
|
3
|
+
import { READ_WRITE } from '../../constants/accessLevels.js';
|
|
4
|
+
const COMMAND_ID = 0x2a;
|
|
5
|
+
const COMMAND_SIZE = 0;
|
|
6
|
+
const examples = [
|
|
7
|
+
{
|
|
8
|
+
name: 'simple response',
|
|
9
|
+
hex: { header: '2a 00', body: '' }
|
|
10
|
+
}
|
|
11
|
+
];
|
|
12
|
+
class SetSaldoResponse extends Command {
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
this.size = COMMAND_SIZE;
|
|
16
|
+
}
|
|
17
|
+
static fromBytes() {
|
|
18
|
+
return new SetSaldoResponse();
|
|
19
|
+
}
|
|
20
|
+
toBytes() {
|
|
21
|
+
return new Uint8Array([COMMAND_ID, this.size]);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
SetSaldoResponse.id = COMMAND_ID;
|
|
25
|
+
SetSaldoResponse.directionType = UPLINK;
|
|
26
|
+
SetSaldoResponse.examples = examples;
|
|
27
|
+
SetSaldoResponse.hasParameters = false;
|
|
28
|
+
SetSaldoResponse.accessLevel = READ_WRITE;
|
|
29
|
+
SetSaldoResponse.maxSize = COMMAND_SIZE;
|
|
30
|
+
export default SetSaldoResponse;
|
|
31
|
+
//# sourceMappingURL=SetSaldoResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetSaldoResponse.js","sourceRoot":"","sources":["../../../../src/mtx/commands/uplink/SetSaldoResponse.ts"],"names":[],"mappings":"AAAA,OAAO,OAA8B,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAC,MAAM,EAAC,MAAM,kCAAkC,CAAC;AACxD,OAAO,EAAC,UAAU,EAAC,MAAM,iCAAiC,CAAC;AAG3D,MAAM,UAAU,GAAG,IAAI,CAAC;AACxB,MAAM,YAAY,GAAG,CAAC,CAAC;AAEvB,MAAM,QAAQ,GAAwB;IAClC;QACI,IAAI,EAAE,iBAAiB;QACvB,GAAG,EAAE,EAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAC;KACnC;CACJ,CAAC;AAmBF,MAAM,gBAAiB,SAAQ,OAAO;IAClC;QACI,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC;IAC7B,CAAC;IAiBD,MAAM,CAAC,SAAS;QACZ,OAAO,IAAI,gBAAgB,EAAE,CAAC;IAClC,CAAC;IAGD,OAAO;QACH,OAAO,IAAI,UAAU,CAAC,CAAC,UAAU,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACnD,CAAC;;AArBM,mBAAE,GAAG,UAAU,CAAC;AAEP,8BAAa,GAAG,MAAM,CAAC;AAEvB,yBAAQ,GAAG,QAAQ,CAAC;AAEpB,8BAAa,GAAG,KAAK,CAAC;AAEtB,4BAAW,GAAG,UAAU,CAAC;AAEzB,wBAAO,GAAG,YAAY,CAAC;AAe3C,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as ActivateRatePlanResponse } from './ActivateRatePlanResponse.js';
|
|
2
2
|
export { default as ErrorResponse } from './ErrorResponse.js';
|
|
3
|
+
export { default as GetBuildVersionResponse } from './GetBuildVersionResponse.js';
|
|
4
|
+
export { default as GetCorrectTimeResponse } from './GetCorrectTimeResponse.js';
|
|
3
5
|
export { default as GetDateTimeResponse } from './GetDateTimeResponse.js';
|
|
4
6
|
export { default as GetDayProfileResponse } from './GetDayProfileResponse.js';
|
|
5
7
|
export { default as GetDeviceIdResponse } from './GetDeviceIdResponse.js';
|
|
@@ -7,16 +9,22 @@ export { default as GetDeviceTypeResponse } from './GetDeviceTypeResponse.js';
|
|
|
7
9
|
export { default as GetDisplayParamResponse } from './GetDisplayParamResponse.js';
|
|
8
10
|
export { default as GetOpParamsResponse } from './GetOpParamsResponse.js';
|
|
9
11
|
export { default as GetRatePlanInfoResponse } from './GetRatePlanInfoResponse.js';
|
|
12
|
+
export { default as GetSaldoParametersResponse } from './GetSaldoParametersResponse.js';
|
|
13
|
+
export { default as GetSaldoResponse } from './GetSaldoResponse.js';
|
|
10
14
|
export { default as GetSeasonProfileResponse } from './GetSeasonProfileResponse.js';
|
|
11
15
|
export { default as GetSpecialDayResponse } from './GetSpecialDayResponse.js';
|
|
16
|
+
export { default as GetVersionResponse } from './GetVersionResponse.js';
|
|
12
17
|
export { default as PrepareRatePlanResponse } from './PrepareRatePlanResponse.js';
|
|
13
18
|
export { default as RunTariffPlanResponse } from './RunTariffPlanResponse.js';
|
|
14
19
|
export { default as SetAccessKeyResponse } from './SetAccessKeyResponse.js';
|
|
15
20
|
export { default as SetCorrectDateTimeResponse } from './SetCorrectDateTimeResponse.js';
|
|
21
|
+
export { default as SetCorrectTimeResponse } from './SetCorrectTimeResponse.js';
|
|
16
22
|
export { default as SetDateTimeResponse } from './SetDateTimeResponse.js';
|
|
17
23
|
export { default as SetDayProfileResponse } from './SetDayProfileResponse.js';
|
|
18
24
|
export { default as SetDisplayParamResponse } from './SetDisplayParamResponse.js';
|
|
19
25
|
export { default as SetOpParamsResponse } from './SetOpParamsResponse.js';
|
|
26
|
+
export { default as SetSaldoParametersResponse } from './SetSaldoParametersResponse.js';
|
|
27
|
+
export { default as SetSaldoResponse } from './SetSaldoResponse.js';
|
|
20
28
|
export { default as SetSeasonProfileResponse } from './SetSeasonProfileResponse.js';
|
|
21
29
|
export { default as SetSpecialDayResponse } from './SetSpecialDayResponse.js';
|
|
22
30
|
export { default as TurnRelayOffResponse } from './TurnRelayOffResponse.js';
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as ActivateRatePlanResponse } from './ActivateRatePlanResponse.js';
|
|
2
2
|
export { default as ErrorResponse } from './ErrorResponse.js';
|
|
3
|
+
export { default as GetBuildVersionResponse } from './GetBuildVersionResponse.js';
|
|
4
|
+
export { default as GetCorrectTimeResponse } from './GetCorrectTimeResponse.js';
|
|
3
5
|
export { default as GetDateTimeResponse } from './GetDateTimeResponse.js';
|
|
4
6
|
export { default as GetDayProfileResponse } from './GetDayProfileResponse.js';
|
|
5
7
|
export { default as GetDeviceIdResponse } from './GetDeviceIdResponse.js';
|
|
@@ -7,16 +9,22 @@ export { default as GetDeviceTypeResponse } from './GetDeviceTypeResponse.js';
|
|
|
7
9
|
export { default as GetDisplayParamResponse } from './GetDisplayParamResponse.js';
|
|
8
10
|
export { default as GetOpParamsResponse } from './GetOpParamsResponse.js';
|
|
9
11
|
export { default as GetRatePlanInfoResponse } from './GetRatePlanInfoResponse.js';
|
|
12
|
+
export { default as GetSaldoParametersResponse } from './GetSaldoParametersResponse.js';
|
|
13
|
+
export { default as GetSaldoResponse } from './GetSaldoResponse.js';
|
|
10
14
|
export { default as GetSeasonProfileResponse } from './GetSeasonProfileResponse.js';
|
|
11
15
|
export { default as GetSpecialDayResponse } from './GetSpecialDayResponse.js';
|
|
16
|
+
export { default as GetVersionResponse } from './GetVersionResponse.js';
|
|
12
17
|
export { default as PrepareRatePlanResponse } from './PrepareRatePlanResponse.js';
|
|
13
18
|
export { default as RunTariffPlanResponse } from './RunTariffPlanResponse.js';
|
|
14
19
|
export { default as SetAccessKeyResponse } from './SetAccessKeyResponse.js';
|
|
15
20
|
export { default as SetCorrectDateTimeResponse } from './SetCorrectDateTimeResponse.js';
|
|
21
|
+
export { default as SetCorrectTimeResponse } from './SetCorrectTimeResponse.js';
|
|
16
22
|
export { default as SetDateTimeResponse } from './SetDateTimeResponse.js';
|
|
17
23
|
export { default as SetDayProfileResponse } from './SetDayProfileResponse.js';
|
|
18
24
|
export { default as SetDisplayParamResponse } from './SetDisplayParamResponse.js';
|
|
19
25
|
export { default as SetOpParamsResponse } from './SetOpParamsResponse.js';
|
|
26
|
+
export { default as SetSaldoParametersResponse } from './SetSaldoParametersResponse.js';
|
|
27
|
+
export { default as SetSaldoResponse } from './SetSaldoResponse.js';
|
|
20
28
|
export { default as SetSeasonProfileResponse } from './SetSeasonProfileResponse.js';
|
|
21
29
|
export { default as SetSpecialDayResponse } from './SetSpecialDayResponse.js';
|
|
22
30
|
export { default as TurnRelayOffResponse } from './TurnRelayOffResponse.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mtx/commands/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
|
|
|
2
2
|
import * as uplinkCommands from '../commands/uplink/index.js';
|
|
3
3
|
export declare const requestByResponse: Map<any, any>;
|
|
4
4
|
export declare const responseByRequest: Map<any, any>;
|
|
5
|
-
export declare const requestById: Map<number, typeof downlinkCommands.ActivateRatePlan | typeof downlinkCommands.GetDateTime | typeof downlinkCommands.GetDayProfile | typeof downlinkCommands.GetDeviceId | typeof downlinkCommands.GetDeviceType | typeof downlinkCommands.GetDisplayParam | typeof downlinkCommands.GetOpParams | typeof downlinkCommands.GetRatePlanInfo | typeof downlinkCommands.GetSeasonProfile | typeof downlinkCommands.GetSpecialDay | typeof downlinkCommands.PrepareRatePlan | typeof downlinkCommands.RunTariffPlan | typeof downlinkCommands.SetAccessKey | typeof downlinkCommands.SetCorrectDateTime | typeof downlinkCommands.SetDateTime | typeof downlinkCommands.SetDayProfile | typeof downlinkCommands.SetDisplayParam | typeof downlinkCommands.SetOpParams | typeof downlinkCommands.SetSeasonProfile | typeof downlinkCommands.SetSpecialDay | typeof downlinkCommands.TurnRelayOff | typeof downlinkCommands.TurnRelayOn>;
|
|
6
|
-
export declare const responseById: Map<number, typeof uplinkCommands.ActivateRatePlanResponse | typeof uplinkCommands.ErrorResponse | typeof uplinkCommands.GetDateTimeResponse | typeof uplinkCommands.GetDayProfileResponse | typeof uplinkCommands.GetDeviceIdResponse | typeof uplinkCommands.GetDeviceTypeResponse | typeof uplinkCommands.GetDisplayParamResponse | typeof uplinkCommands.GetOpParamsResponse | typeof uplinkCommands.GetRatePlanInfoResponse | typeof uplinkCommands.GetSeasonProfileResponse | typeof uplinkCommands.GetSpecialDayResponse | typeof uplinkCommands.PrepareRatePlanResponse | typeof uplinkCommands.RunTariffPlanResponse | typeof uplinkCommands.SetAccessKeyResponse | typeof uplinkCommands.SetCorrectDateTimeResponse | typeof uplinkCommands.SetDateTimeResponse | typeof uplinkCommands.SetDayProfileResponse | typeof uplinkCommands.SetDisplayParamResponse | typeof uplinkCommands.SetOpParamsResponse | typeof uplinkCommands.SetSeasonProfileResponse | typeof uplinkCommands.SetSpecialDayResponse | typeof uplinkCommands.TurnRelayOffResponse | typeof uplinkCommands.TurnRelayOnResponse>;
|
|
5
|
+
export declare const requestById: Map<number, typeof downlinkCommands.ActivateRatePlan | typeof downlinkCommands.GetBuildVersion | typeof downlinkCommands.GetCorrectTime | typeof downlinkCommands.GetDateTime | typeof downlinkCommands.GetDayProfile | typeof downlinkCommands.GetDeviceId | typeof downlinkCommands.GetDeviceType | typeof downlinkCommands.GetDisplayParam | typeof downlinkCommands.GetOpParams | typeof downlinkCommands.GetRatePlanInfo | typeof downlinkCommands.GetSaldo | typeof downlinkCommands.GetSaldoParameters | typeof downlinkCommands.GetSeasonProfile | typeof downlinkCommands.GetSpecialDay | typeof downlinkCommands.GetVersion | typeof downlinkCommands.PrepareRatePlan | typeof downlinkCommands.RunTariffPlan | typeof downlinkCommands.SetAccessKey | typeof downlinkCommands.SetCorrectDateTime | typeof downlinkCommands.SetCorrectTime | typeof downlinkCommands.SetDateTime | typeof downlinkCommands.SetDayProfile | typeof downlinkCommands.SetDisplayParam | typeof downlinkCommands.SetOpParams | typeof downlinkCommands.SetSaldo | typeof downlinkCommands.SetSaldoParameters | typeof downlinkCommands.SetSeasonProfile | typeof downlinkCommands.SetSpecialDay | typeof downlinkCommands.TurnRelayOff | typeof downlinkCommands.TurnRelayOn>;
|
|
6
|
+
export declare const responseById: Map<number, typeof uplinkCommands.ActivateRatePlanResponse | typeof uplinkCommands.ErrorResponse | typeof uplinkCommands.GetBuildVersionResponse | typeof uplinkCommands.GetCorrectTimeResponse | typeof uplinkCommands.GetDateTimeResponse | typeof uplinkCommands.GetDayProfileResponse | typeof uplinkCommands.GetDeviceIdResponse | typeof uplinkCommands.GetDeviceTypeResponse | typeof uplinkCommands.GetDisplayParamResponse | typeof uplinkCommands.GetOpParamsResponse | typeof uplinkCommands.GetRatePlanInfoResponse | typeof uplinkCommands.GetSaldoParametersResponse | typeof uplinkCommands.GetSaldoResponse | typeof uplinkCommands.GetSeasonProfileResponse | typeof uplinkCommands.GetSpecialDayResponse | typeof uplinkCommands.GetVersionResponse | typeof uplinkCommands.PrepareRatePlanResponse | typeof uplinkCommands.RunTariffPlanResponse | typeof uplinkCommands.SetAccessKeyResponse | typeof uplinkCommands.SetCorrectDateTimeResponse | typeof uplinkCommands.SetCorrectTimeResponse | typeof uplinkCommands.SetDateTimeResponse | typeof uplinkCommands.SetDayProfileResponse | typeof uplinkCommands.SetDisplayParamResponse | typeof uplinkCommands.SetOpParamsResponse | typeof uplinkCommands.SetSaldoParametersResponse | typeof uplinkCommands.SetSaldoResponse | typeof uplinkCommands.SetSeasonProfileResponse | typeof uplinkCommands.SetSpecialDayResponse | typeof uplinkCommands.TurnRelayOffResponse | typeof uplinkCommands.TurnRelayOnResponse>;
|
|
@@ -6,13 +6,19 @@ export const requestById = new Map(Object.values(downlinkCommands).map(command =
|
|
|
6
6
|
export const responseById = new Map(Object.values(uplinkCommands).map(command => [command.id, command]));
|
|
7
7
|
requestByResponse.set(uplinkCommands.ActivateRatePlanResponse, downlinkCommands.ActivateRatePlan);
|
|
8
8
|
requestByResponse.set(uplinkCommands.GetDateTimeResponse, downlinkCommands.GetDateTime);
|
|
9
|
+
requestByResponse.set(uplinkCommands.GetDayProfileResponse, downlinkCommands.GetDayProfile);
|
|
9
10
|
requestByResponse.set(uplinkCommands.GetDeviceIdResponse, downlinkCommands.GetDeviceId);
|
|
10
11
|
requestByResponse.set(uplinkCommands.GetDeviceTypeResponse, downlinkCommands.GetDeviceType);
|
|
11
12
|
requestByResponse.set(uplinkCommands.GetDisplayParamResponse, downlinkCommands.GetDisplayParam);
|
|
12
13
|
requestByResponse.set(uplinkCommands.GetOpParamsResponse, downlinkCommands.GetOpParams);
|
|
13
14
|
requestByResponse.set(uplinkCommands.GetRatePlanInfoResponse, downlinkCommands.GetRatePlanInfo);
|
|
15
|
+
requestByResponse.set(uplinkCommands.GetSeasonProfileResponse, downlinkCommands.GetSeasonProfile);
|
|
16
|
+
requestByResponse.set(uplinkCommands.GetSpecialDayResponse, downlinkCommands.GetSpecialDay);
|
|
14
17
|
requestByResponse.set(uplinkCommands.PrepareRatePlanResponse, downlinkCommands.PrepareRatePlan);
|
|
15
18
|
requestByResponse.set(uplinkCommands.RunTariffPlanResponse, downlinkCommands.RunTariffPlan);
|
|
19
|
+
requestByResponse.set(uplinkCommands.SetAccessKeyResponse, downlinkCommands.SetAccessKey);
|
|
20
|
+
requestByResponse.set(uplinkCommands.SetCorrectDateTimeResponse, downlinkCommands.SetCorrectDateTime);
|
|
21
|
+
requestByResponse.set(uplinkCommands.SetDateTimeResponse, downlinkCommands.SetDateTime);
|
|
16
22
|
requestByResponse.set(uplinkCommands.SetDayProfileResponse, downlinkCommands.SetDayProfile);
|
|
17
23
|
requestByResponse.set(uplinkCommands.SetDisplayParamResponse, downlinkCommands.SetDisplayParam);
|
|
18
24
|
requestByResponse.set(uplinkCommands.SetOpParamsResponse, downlinkCommands.SetOpParams);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commandRelations.js","sourceRoot":"","sources":["../../../src/mtx/constants/commandRelations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AAClE,OAAO,KAAK,cAAc,MAAM,6BAA6B,CAAC;AAI9D,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;AAC3C,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;AAG3C,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAC1G,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CA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,MAAM,YAAY,GAAG,CAAE,IAAmB,EAAkB,EAAE;IACjE,MAAM,MAAM,GAAkB,EAAE,CAAC;IACjC,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,IAAI,mBAAmB,GAAG,KAAK,CAAC;IAEhC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAChB,IAAK,IAAI,KAAK,aAAa,EAAG,CAAC;YAC3B,mBAAmB,GAAG,IAAI,CAAC;QAC/B,CAAC;aAAM,IAAK,mBAAmB,EAAG,CAAC;YAC/B,mBAAmB,GAAG,KAAK,CAAC;YAC5B,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,WAAW,CAAC,IAAI,CAAC,CAAC;QAC3C,CAAC;aAAM,CAAC;YACJ,MAAM,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,CAAC;QAC9B,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAClB,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface IDeviceType {
|
|
2
|
+
type: string;
|
|
3
|
+
revision?: number;
|
|
4
|
+
meterType: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const fromBytes: (bytes: Uint8Array) => IDeviceType;
|
|
7
|
+
export declare const toBytes: ({ type, revision, meterType }: IDeviceType, prefix?: number) => Uint8Array;
|