@zetra/citrineos-evdriver 1.8.3-fork.143 → 1.8.3-fork.145
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.
|
@@ -14,8 +14,8 @@ export declare class EVDriverOcpp16Api extends AbstractModuleApi<EVDriverModule>
|
|
|
14
14
|
* @param {Logger<ILogObj>} [logger] - The logger for logging.
|
|
15
15
|
*/
|
|
16
16
|
constructor(evDriverModule: EVDriverModule, server: FastifyInstance, logger?: Logger<ILogObj>);
|
|
17
|
-
remoteStartTransaction(identifier: string[], request: OCPP1_6.RemoteStartTransactionRequest, callbackUrl?: string, tenantId?: number): Promise<IMessageConfirmation[]>;
|
|
18
|
-
remoteStopTransaction(identifier: string[], request: OCPP1_6.RemoteStopTransactionRequest, callbackUrl?: string, tenantId?: number): Promise<IMessageConfirmation[]>;
|
|
17
|
+
remoteStartTransaction(identifier: string[], request: OCPP1_6.RemoteStartTransactionRequest, callbackUrl?: string, tenantId?: number, extraQueries?: Record<string, any>): Promise<IMessageConfirmation[]>;
|
|
18
|
+
remoteStopTransaction(identifier: string[], request: OCPP1_6.RemoteStopTransactionRequest, callbackUrl?: string, tenantId?: number, extraQueries?: Record<string, any>): Promise<IMessageConfirmation[]>;
|
|
19
19
|
unlockConnector(identifier: string[], request: OCPP1_6.UnlockConnectorRequest, callbackUrl?: string, tenantId?: number): Promise<IMessageConfirmation[]>;
|
|
20
20
|
clearCache(identifier: string[], request: OCPP1_6.ClearCacheRequest, callbackUrl?: string, tenantId?: number): Promise<IMessageConfirmation[]>;
|
|
21
21
|
/**
|
|
@@ -24,12 +24,12 @@ export class EVDriverOcpp16Api extends AbstractModuleApi {
|
|
|
24
24
|
constructor(evDriverModule, server, logger) {
|
|
25
25
|
super(evDriverModule, server, OCPPVersion.OCPP1_6, logger);
|
|
26
26
|
}
|
|
27
|
-
async remoteStartTransaction(identifier, request, callbackUrl, tenantId = DEFAULT_TENANT_ID) {
|
|
28
|
-
const results = identifier.map((id) => this._module.sendCall(id, tenantId, OCPPVersion.OCPP1_6, OCPP1_6_CallAction.RemoteStartTransaction, request, callbackUrl));
|
|
27
|
+
async remoteStartTransaction(identifier, request, callbackUrl, tenantId = DEFAULT_TENANT_ID, extraQueries) {
|
|
28
|
+
const results = identifier.map((id) => this._module.sendCall(id, tenantId, OCPPVersion.OCPP1_6, OCPP1_6_CallAction.RemoteStartTransaction, request, callbackUrl, extraQueries?.correlationId));
|
|
29
29
|
return Promise.all(results);
|
|
30
30
|
}
|
|
31
|
-
async remoteStopTransaction(identifier, request, callbackUrl, tenantId = DEFAULT_TENANT_ID) {
|
|
32
|
-
const results = identifier.map((id) => this._module.sendCall(id, tenantId, OCPPVersion.OCPP1_6, OCPP1_6_CallAction.RemoteStopTransaction, request, callbackUrl));
|
|
31
|
+
async remoteStopTransaction(identifier, request, callbackUrl, tenantId = DEFAULT_TENANT_ID, extraQueries) {
|
|
32
|
+
const results = identifier.map((id) => this._module.sendCall(id, tenantId, OCPPVersion.OCPP1_6, OCPP1_6_CallAction.RemoteStopTransaction, request, callbackUrl, extraQueries?.correlationId));
|
|
33
33
|
return Promise.all(results);
|
|
34
34
|
}
|
|
35
35
|
async unlockConnector(identifier, request, callbackUrl, tenantId = DEFAULT_TENANT_ID) {
|
|
@@ -53,15 +53,19 @@ export class EVDriverOcpp16Api extends AbstractModuleApi {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
__decorate([
|
|
56
|
-
AsMessageEndpoint(OCPP1_6_CallAction.RemoteStartTransaction, OCPP1_6.RemoteStartTransactionRequestSchema
|
|
56
|
+
AsMessageEndpoint(OCPP1_6_CallAction.RemoteStartTransaction, OCPP1_6.RemoteStartTransactionRequestSchema, {
|
|
57
|
+
correlationId: { type: 'string' },
|
|
58
|
+
}),
|
|
57
59
|
__metadata("design:type", Function),
|
|
58
|
-
__metadata("design:paramtypes", [Array, Object, String, Number]),
|
|
60
|
+
__metadata("design:paramtypes", [Array, Object, String, Number, Object]),
|
|
59
61
|
__metadata("design:returntype", Promise)
|
|
60
62
|
], EVDriverOcpp16Api.prototype, "remoteStartTransaction", null);
|
|
61
63
|
__decorate([
|
|
62
|
-
AsMessageEndpoint(OCPP1_6_CallAction.RemoteStopTransaction, OCPP1_6.RemoteStopTransactionRequestSchema
|
|
64
|
+
AsMessageEndpoint(OCPP1_6_CallAction.RemoteStopTransaction, OCPP1_6.RemoteStopTransactionRequestSchema, {
|
|
65
|
+
correlationId: { type: 'string' },
|
|
66
|
+
}),
|
|
63
67
|
__metadata("design:type", Function),
|
|
64
|
-
__metadata("design:paramtypes", [Array, Object, String, Number]),
|
|
68
|
+
__metadata("design:paramtypes", [Array, Object, String, Number, Object]),
|
|
65
69
|
__metadata("design:returntype", Promise)
|
|
66
70
|
], EVDriverOcpp16Api.prototype, "remoteStopTransaction", null);
|
|
67
71
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MessageApi.js","sourceRoot":"","sources":["../../../src/module/1.6/MessageApi.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,EAAE;AACF,sCAAsC;;;;;;;;;;AAItC,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EACL,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,OAAO,EACP,kBAAkB,EAClB,WAAW,GACZ,MAAM,iBAAiB,CAAC;AAEzB,MAAM,OAAO,iBACX,SAAQ,iBAAiC;IAGzC;;;;;;OAMG;IACH,YAAY,cAA8B,EAAE,MAAuB,EAAE,MAAwB;QAC3F,KAAK,CAAC,cAAc,EAAE,MAAM,EAAE,WAAW,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC7D,CAAC;
|
|
1
|
+
{"version":3,"file":"MessageApi.js","sourceRoot":"","sources":["../../../src/module/1.6/MessageApi.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,EAA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,CAAC,qBAAqB,EACxC,OAAO,CAAC,kCAAkC,EAC1C;QACE,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAClC,CACF;;;;8DAoBA;AAGK;IADL,iBAAiB,CAAC,kBAAkB,CAAC,eAAe,EAAE,OAAO,CAAC,4BAA4B,CAAC;;;;wDAkB3F;AAGK;IADL,iBAAiB,CAAC,kBAAkB,CAAC,UAAU,EAAE,OAAO,CAAC,uBAAuB,CAAC;;;;mDAkBjF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zetra/citrineos-evdriver",
|
|
3
|
-
"version": "1.8.3-fork.
|
|
3
|
+
"version": "1.8.3-fork.145",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "The EVDriver module for OCPP v2.0.1. This module is not intended to be used directly, but rather as a dependency for other modules.",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
],
|
|
19
19
|
"license": "Apache-2.0",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@zetra/citrineos-base": "1.8.3-fork.
|
|
22
|
-
"@zetra/citrineos-data": "1.8.3-fork.
|
|
23
|
-
"@zetra/citrineos-util": "1.8.3-fork.
|
|
21
|
+
"@zetra/citrineos-base": "1.8.3-fork.145",
|
|
22
|
+
"@zetra/citrineos-data": "1.8.3-fork.145",
|
|
23
|
+
"@zetra/citrineos-util": "1.8.3-fork.145"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|