jooby-codec 2.14.1 → 2.15.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.
@@ -0,0 +1,4 @@
1
+ export declare const requestByResponse: Map<any, any>;
2
+ export declare const responseByRequest: Map<any, any>;
3
+ export declare const requestById: Map<any, any>;
4
+ export declare const responseById: Map<any, any>;
@@ -0,0 +1,21 @@
1
+ import * as downlinkCommands from '../commands/downlink/index.js';
2
+ import * as uplinkCommands from '../commands/uplink/index.js';
3
+ export const requestByResponse = new Map();
4
+ export const responseByRequest = new Map();
5
+ export const requestById = new Map();
6
+ export const responseById = new Map();
7
+ requestByResponse.set(uplinkCommands.ActivateRatePlanResponse, downlinkCommands.ActivateRatePlan);
8
+ requestByResponse.set(uplinkCommands.GetDateTimeResponse, downlinkCommands.GetDateTime);
9
+ requestByResponse.set(uplinkCommands.GetDisplayParamResponse, downlinkCommands.GetDisplayParam);
10
+ requestByResponse.set(uplinkCommands.GetOpParamsResponse, downlinkCommands.GetOpParams);
11
+ requestByResponse.set(uplinkCommands.GetRatePlanInfoResponse, downlinkCommands.GetRatePlanInfo);
12
+ requestByResponse.set(uplinkCommands.SetDisplayParamResponse, downlinkCommands.SetDisplayParam);
13
+ requestByResponse.set(uplinkCommands.SetOpParamsResponse, downlinkCommands.SetOpParams);
14
+ requestByResponse.set(uplinkCommands.TurnRelayOffResponse, downlinkCommands.TurnRelayOff);
15
+ requestByResponse.set(uplinkCommands.TurnRelayOnResponse, downlinkCommands.TurnRelayOn);
16
+ for (const [response, request] of requestByResponse.entries()) {
17
+ responseByRequest.set(request, response);
18
+ responseById.set(response.id, response);
19
+ requestById.set(request.id, request);
20
+ }
21
+ //# sourceMappingURL=commandRelations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commandRelations.js","sourceRoot":"","sources":["../../../src/mtx/constants/commandRelations.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,+BAA+B,CAAC;AA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G,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAEzC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACxC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;CACxC"}
@@ -1,2 +1,4 @@
1
1
  export declare const requestByResponse: Map<any, any>;
2
2
  export declare const responseByRequest: Map<any, any>;
3
+ export declare const requestById: Map<any, any>;
4
+ export declare const responseById: Map<any, any>;
@@ -2,6 +2,8 @@ import * as downlinkCommands from '../commands/downlink/index.js';
2
2
  import * as uplinkCommands from '../commands/uplink/index.js';
3
3
  export const requestByResponse = new Map();
4
4
  export const responseByRequest = new Map();
5
+ export const requestById = new Map();
6
+ export const responseById = new Map();
5
7
  requestByResponse.set(uplinkCommands.AddShortNameProfileResponse, downlinkCommands.AddShortNameProfile);
6
8
  requestByResponse.set(uplinkCommands.GetArchiveProfileResponse, downlinkCommands.GetArchiveProfile);
7
9
  requestByResponse.set(uplinkCommands.GetContentByObisResponse, downlinkCommands.GetContentByObis);
@@ -17,7 +19,9 @@ requestByResponse.set(uplinkCommands.RemoveShortNameProfileResponse, downlinkCom
17
19
  requestByResponse.set(uplinkCommands.SetArchiveProfileResponse, downlinkCommands.SetArchiveProfile);
18
20
  requestByResponse.set(uplinkCommands.SetSerialPortResponse, downlinkCommands.SetSerialPort);
19
21
  requestByResponse.set(uplinkCommands.SetShortNameResponse, downlinkCommands.SetShortName);
20
- for (const [key, value] of requestByResponse.entries()) {
21
- responseByRequest.set(value, key);
22
+ for (const [response, request] of requestByResponse.entries()) {
23
+ responseByRequest.set(request, response);
24
+ responseById.set(response.id, response);
25
+ requestById.set(request.id, request);
22
26
  }
23
27
  //# sourceMappingURL=commandRelations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"commandRelations.js","sourceRoot":"","sources":["../../../src/obis-observer/constants/commandRelations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,g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CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAEzC,YAAY,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAC;IACxC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;CACxC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jooby-codec",
3
- "version": "2.14.1",
3
+ "version": "2.15.0",
4
4
  "description": "Jooby message encoders/decoders",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",