@enyo-energy/energy-app-sdk 0.0.178 → 0.0.179
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/cjs/packages/energy-app-charge.d.cts +18 -0
- package/dist/cjs/types/enyo-charge.d.cts +9 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/packages/energy-app-charge.d.ts +18 -0
- package/dist/types/enyo-charge.d.ts +9 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -14,6 +14,24 @@ export interface EnergyAppCharge {
|
|
|
14
14
|
findActiveCharge: (applianceId: string) => Promise<EnyoCharge | null>;
|
|
15
15
|
/** Find the currently active charge by appliance ID and transaction ID */
|
|
16
16
|
findActiveChargeByTransactionId: (applianceId: string, transactionId: string) => Promise<EnyoCharge | null>;
|
|
17
|
+
/**
|
|
18
|
+
* Adds an additional transaction ID to the currently active charging
|
|
19
|
+
* session of an appliance.
|
|
20
|
+
*
|
|
21
|
+
* A single physical charging session can span multiple OCPP
|
|
22
|
+
* transactions (e.g. after a short interruption or re-authorization).
|
|
23
|
+
* Use this to associate a newly started transaction with the charge
|
|
24
|
+
* that is already active for the given appliance. The transaction ID is
|
|
25
|
+
* appended to {@link EnyoCharge.additionalTransactionIds}.
|
|
26
|
+
*
|
|
27
|
+
* **Required permission:** `EnergyManager`.
|
|
28
|
+
*
|
|
29
|
+
* @param applianceId - The appliance (charger) whose active charge should be updated.
|
|
30
|
+
* @param transactionId - The additional transaction ID to associate with the active charge.
|
|
31
|
+
* @returns Promise that resolves once the transaction ID has been added.
|
|
32
|
+
* Resolves without effect if no active charge exists for the appliance.
|
|
33
|
+
*/
|
|
34
|
+
addTransactionIdToActiveCharge: (applianceId: string, transactionId: string) => Promise<void>;
|
|
17
35
|
/**
|
|
18
36
|
* Sets the default charging mode for a specific appliance, optionally
|
|
19
37
|
* with a target completion time and its timezone.
|
|
@@ -38,6 +38,15 @@ export interface EnyoCharge {
|
|
|
38
38
|
id: string;
|
|
39
39
|
/** Transaction ID for the charging session */
|
|
40
40
|
transactionId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Additional transaction IDs associated with this charging session.
|
|
43
|
+
*
|
|
44
|
+
* A single physical charging session can span multiple OCPP
|
|
45
|
+
* transactions (e.g. after a short interruption or re-authorization).
|
|
46
|
+
* These supplementary transaction IDs are tracked here in addition to
|
|
47
|
+
* the primary {@link EnyoCharge.transactionId}.
|
|
48
|
+
*/
|
|
49
|
+
additionalTransactionIds?: string[];
|
|
41
50
|
/** ID of the appliance (charger) handling this session */
|
|
42
51
|
applianceId: string;
|
|
43
52
|
/** ID of the charging card used for this session */
|
package/dist/cjs/version.cjs
CHANGED
|
@@ -9,7 +9,7 @@ exports.getSdkVersion = getSdkVersion;
|
|
|
9
9
|
/**
|
|
10
10
|
* Current version of the enyo Energy App SDK.
|
|
11
11
|
*/
|
|
12
|
-
exports.SDK_VERSION = '0.0.
|
|
12
|
+
exports.SDK_VERSION = '0.0.179';
|
|
13
13
|
/**
|
|
14
14
|
* Gets the current SDK version.
|
|
15
15
|
* @returns The semantic version string of the SDK
|
package/dist/cjs/version.d.cts
CHANGED
|
@@ -14,6 +14,24 @@ export interface EnergyAppCharge {
|
|
|
14
14
|
findActiveCharge: (applianceId: string) => Promise<EnyoCharge | null>;
|
|
15
15
|
/** Find the currently active charge by appliance ID and transaction ID */
|
|
16
16
|
findActiveChargeByTransactionId: (applianceId: string, transactionId: string) => Promise<EnyoCharge | null>;
|
|
17
|
+
/**
|
|
18
|
+
* Adds an additional transaction ID to the currently active charging
|
|
19
|
+
* session of an appliance.
|
|
20
|
+
*
|
|
21
|
+
* A single physical charging session can span multiple OCPP
|
|
22
|
+
* transactions (e.g. after a short interruption or re-authorization).
|
|
23
|
+
* Use this to associate a newly started transaction with the charge
|
|
24
|
+
* that is already active for the given appliance. The transaction ID is
|
|
25
|
+
* appended to {@link EnyoCharge.additionalTransactionIds}.
|
|
26
|
+
*
|
|
27
|
+
* **Required permission:** `EnergyManager`.
|
|
28
|
+
*
|
|
29
|
+
* @param applianceId - The appliance (charger) whose active charge should be updated.
|
|
30
|
+
* @param transactionId - The additional transaction ID to associate with the active charge.
|
|
31
|
+
* @returns Promise that resolves once the transaction ID has been added.
|
|
32
|
+
* Resolves without effect if no active charge exists for the appliance.
|
|
33
|
+
*/
|
|
34
|
+
addTransactionIdToActiveCharge: (applianceId: string, transactionId: string) => Promise<void>;
|
|
17
35
|
/**
|
|
18
36
|
* Sets the default charging mode for a specific appliance, optionally
|
|
19
37
|
* with a target completion time and its timezone.
|
|
@@ -38,6 +38,15 @@ export interface EnyoCharge {
|
|
|
38
38
|
id: string;
|
|
39
39
|
/** Transaction ID for the charging session */
|
|
40
40
|
transactionId: string;
|
|
41
|
+
/**
|
|
42
|
+
* Additional transaction IDs associated with this charging session.
|
|
43
|
+
*
|
|
44
|
+
* A single physical charging session can span multiple OCPP
|
|
45
|
+
* transactions (e.g. after a short interruption or re-authorization).
|
|
46
|
+
* These supplementary transaction IDs are tracked here in addition to
|
|
47
|
+
* the primary {@link EnyoCharge.transactionId}.
|
|
48
|
+
*/
|
|
49
|
+
additionalTransactionIds?: string[];
|
|
41
50
|
/** ID of the appliance (charger) handling this session */
|
|
42
51
|
applianceId: string;
|
|
43
52
|
/** ID of the charging card used for this session */
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED