@enyo-energy/energy-app-sdk 1.7.0 → 1.8.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/cjs/energy-app-package-definition.d.cts +12 -0
- package/dist/cjs/types/enyo-appliance.cjs +9 -1
- package/dist/cjs/types/enyo-appliance.d.cts +11 -3
- package/dist/cjs/types/enyo-data-bus-value.d.cts +2 -1
- package/dist/cjs/types/enyo-onboarding-v2.d.cts +1 -16
- package/dist/cjs/types/enyo-onboarding.cjs +3 -5
- package/dist/cjs/types/enyo-onboarding.d.cts +3 -5
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/energy-app-package-definition.d.ts +12 -0
- package/dist/types/enyo-appliance.d.ts +11 -3
- package/dist/types/enyo-appliance.js +9 -1
- package/dist/types/enyo-data-bus-value.d.ts +2 -1
- package/dist/types/enyo-onboarding-v2.d.ts +1 -16
- package/dist/types/enyo-onboarding.d.ts +3 -5
- package/dist/types/enyo-onboarding.js +3 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -261,6 +261,18 @@ export interface EnergyAppPackageCompatibilityVendor {
|
|
|
261
261
|
vendorName: string;
|
|
262
262
|
/** Models from this vendor that the package supports */
|
|
263
263
|
models: EnergyAppPackageCompatibilityModel[];
|
|
264
|
+
/**
|
|
265
|
+
* Marks this package as the default Energy App for the vendor when no
|
|
266
|
+
* concrete model has been selected.
|
|
267
|
+
*
|
|
268
|
+
* During onboarding a user may only know the manufacturer of their device,
|
|
269
|
+
* not its exact model. When several packages declare compatibility with the
|
|
270
|
+
* same vendor, the one flagged with `default: true` is the app the enyo
|
|
271
|
+
* Store and onboarding flows pick in that case. Set it on at most one
|
|
272
|
+
* package per vendor; omit it (or set `false`) when the package should only
|
|
273
|
+
* be offered for an explicitly selected model.
|
|
274
|
+
*/
|
|
275
|
+
defaultEnergyApp?: boolean;
|
|
264
276
|
}
|
|
265
277
|
/**
|
|
266
278
|
* A file published together with an Energy App package and served publicly
|
|
@@ -24,7 +24,9 @@ var EnyoApplianceStateEnum;
|
|
|
24
24
|
* which describes connectivity. `Healthy` means the appliance is operating
|
|
25
25
|
* normally; `Warning` means a non-blocking issue has been reported (the
|
|
26
26
|
* appliance is still functional but should be inspected); `Faulted` means it
|
|
27
|
-
* has reported an internal error and may need attention
|
|
27
|
+
* has reported an internal error and may need attention; `Deactivated` means
|
|
28
|
+
* the appliance has been intentionally switched off from energy management and
|
|
29
|
+
* is neither monitored nor controlled until it is reactivated. Vendor- or
|
|
28
30
|
* protocol-specific details should be conveyed via accompanying error codes.
|
|
29
31
|
*/
|
|
30
32
|
var EnyoApplianceStatusEnum;
|
|
@@ -35,6 +37,12 @@ var EnyoApplianceStatusEnum;
|
|
|
35
37
|
EnyoApplianceStatusEnum["Warning"] = "warning";
|
|
36
38
|
/** Appliance has reported an internal fault */
|
|
37
39
|
EnyoApplianceStatusEnum["Faulted"] = "faulted";
|
|
40
|
+
/**
|
|
41
|
+
* Appliance has been intentionally deactivated and is excluded from energy
|
|
42
|
+
* management. It is not controlled and its health is not evaluated until it
|
|
43
|
+
* is reactivated.
|
|
44
|
+
*/
|
|
45
|
+
EnyoApplianceStatusEnum["Deactivated"] = "deactivated";
|
|
38
46
|
})(EnyoApplianceStatusEnum || (exports.EnyoApplianceStatusEnum = EnyoApplianceStatusEnum = {}));
|
|
39
47
|
var EnyoApplianceConnectionType;
|
|
40
48
|
(function (EnyoApplianceConnectionType) {
|
|
@@ -33,7 +33,9 @@ export declare enum EnyoApplianceStateEnum {
|
|
|
33
33
|
* which describes connectivity. `Healthy` means the appliance is operating
|
|
34
34
|
* normally; `Warning` means a non-blocking issue has been reported (the
|
|
35
35
|
* appliance is still functional but should be inspected); `Faulted` means it
|
|
36
|
-
* has reported an internal error and may need attention
|
|
36
|
+
* has reported an internal error and may need attention; `Deactivated` means
|
|
37
|
+
* the appliance has been intentionally switched off from energy management and
|
|
38
|
+
* is neither monitored nor controlled until it is reactivated. Vendor- or
|
|
37
39
|
* protocol-specific details should be conveyed via accompanying error codes.
|
|
38
40
|
*/
|
|
39
41
|
export declare enum EnyoApplianceStatusEnum {
|
|
@@ -42,7 +44,13 @@ export declare enum EnyoApplianceStatusEnum {
|
|
|
42
44
|
/** Appliance is operating but has reported a non-blocking issue that should be inspected */
|
|
43
45
|
Warning = "warning",
|
|
44
46
|
/** Appliance has reported an internal fault */
|
|
45
|
-
Faulted = "faulted"
|
|
47
|
+
Faulted = "faulted",
|
|
48
|
+
/**
|
|
49
|
+
* Appliance has been intentionally deactivated and is excluded from energy
|
|
50
|
+
* management. It is not controlled and its health is not evaluated until it
|
|
51
|
+
* is reactivated.
|
|
52
|
+
*/
|
|
53
|
+
Deactivated = "deactivated"
|
|
46
54
|
}
|
|
47
55
|
/**
|
|
48
56
|
* Severity classification for an {@link EnyoApplianceErrorCode}.
|
|
@@ -175,7 +183,7 @@ export interface EnyoApplianceMetadata {
|
|
|
175
183
|
ipAddress?: string;
|
|
176
184
|
/** Connection state */
|
|
177
185
|
state?: EnyoApplianceStateEnum;
|
|
178
|
-
/** Health status of the appliance (e.g. healthy or
|
|
186
|
+
/** Health status of the appliance (e.g. healthy, faulted or deactivated) */
|
|
179
187
|
status?: EnyoApplianceStatusEnum;
|
|
180
188
|
network?: EnyoApplianceNetworkMetadata;
|
|
181
189
|
modbus?: EnyoApplianceModbusMetadata;
|
|
@@ -593,7 +593,8 @@ export interface EnyoDataBusApplianceFlexibilityAnnouncementV1 extends EnyoDataB
|
|
|
593
593
|
* provided together if they change in the same event. `errorCodes` carries
|
|
594
594
|
* vendor- or protocol-specific codes that explain a transition into a
|
|
595
595
|
* `warning` or `faulted` status; each entry's `severity` field indicates
|
|
596
|
-
* which.
|
|
596
|
+
* which. A transition into `deactivated` is intentional and normally carries
|
|
597
|
+
* no error codes.
|
|
597
598
|
*/
|
|
598
599
|
export interface EnyoDataBusApplianceStateUpdateV1 extends EnyoDataBusMessage {
|
|
599
600
|
type: 'message';
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* (`../implementations/onboarding-v2/onboarding-v2-validators.ts`) to fail fast
|
|
21
21
|
* before publishing.
|
|
22
22
|
*/
|
|
23
|
-
import type {
|
|
23
|
+
import type { EnyoOnboardingTranslatedContent } from './enyo-onboarding.cjs';
|
|
24
24
|
/**
|
|
25
25
|
* The situation a flow starts from. A vendor/model can have up to one guide per
|
|
26
26
|
* variant; a branch can jump into another variant's flow
|
|
@@ -1067,21 +1067,6 @@ export interface EnyoOnboardingV2Guide {
|
|
|
1067
1067
|
title: EnyoOnboardingTranslatedContent[];
|
|
1068
1068
|
/** Which start situation this guide covers. */
|
|
1069
1069
|
startVariant: EnyoOnboardingV2StartVariant;
|
|
1070
|
-
/**
|
|
1071
|
-
* The lifecycle role this guide plays, which decides where the host offers
|
|
1072
|
-
* it (an "add new device" entry point, the configuration-required prompt).
|
|
1073
|
-
*
|
|
1074
|
-
* Distinct from {@link startVariant}, which describes the *situation the
|
|
1075
|
-
* flow starts from* (device not found, found but unconfigured, …). This says
|
|
1076
|
-
* *why the installer is here at all*: configuring the package for the first
|
|
1077
|
-
* time is a different entry point from adding a second device to a package
|
|
1078
|
-
* that already works, even when both start from `device-not-found`.
|
|
1079
|
-
*
|
|
1080
|
-
* Shared with the v1 model rather than restated as a v2 enum — the category
|
|
1081
|
-
* is a property of a guide's role, not of the authoring model. Defaults to
|
|
1082
|
-
* {@link EnyoOnboardingGuideCategory.InitialSetup} semantics when omitted.
|
|
1083
|
-
*/
|
|
1084
|
-
category?: EnyoOnboardingGuideCategory;
|
|
1085
1070
|
/**
|
|
1086
1071
|
* Whether the host runs its local network scan before entering this guide.
|
|
1087
1072
|
*
|
|
@@ -6,11 +6,9 @@ exports.EnyoOnboardingSectionType = exports.EnyoOnboardingGuideCategory = void 0
|
|
|
6
6
|
* Used to distinguish guides that perform different roles, e.g. initial
|
|
7
7
|
* configuration of a package vs. adding or reconnecting a single device.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
* {@link EnyoOnboardingV2Guide
|
|
11
|
-
*
|
|
12
|
-
* the category is a property of a guide's role, not of the authoring model it
|
|
13
|
-
* was written in.
|
|
9
|
+
* @deprecated Superseded by the v2 graph model. Author guides with
|
|
10
|
+
* {@link EnyoOnboardingV2Guide} via `defineOnboardingGuideV2()`. v1 is retained
|
|
11
|
+
* for backward compatibility and will be removed in a future major.
|
|
14
12
|
*/
|
|
15
13
|
var EnyoOnboardingGuideCategory;
|
|
16
14
|
(function (EnyoOnboardingGuideCategory) {
|
|
@@ -14,11 +14,9 @@ export interface EnyoOnboardingTranslatedContent {
|
|
|
14
14
|
* Used to distinguish guides that perform different roles, e.g. initial
|
|
15
15
|
* configuration of a package vs. adding or reconnecting a single device.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
* {@link EnyoOnboardingV2Guide
|
|
19
|
-
*
|
|
20
|
-
* the category is a property of a guide's role, not of the authoring model it
|
|
21
|
-
* was written in.
|
|
17
|
+
* @deprecated Superseded by the v2 graph model. Author guides with
|
|
18
|
+
* {@link EnyoOnboardingV2Guide} via `defineOnboardingGuideV2()`. v1 is retained
|
|
19
|
+
* for backward compatibility and will be removed in a future major.
|
|
22
20
|
*/
|
|
23
21
|
export declare enum EnyoOnboardingGuideCategory {
|
|
24
22
|
/** Initial package configuration — shown when EnergyAppStateEnum is 'configuration-required' */
|
package/dist/cjs/version.cjs
CHANGED
package/dist/cjs/version.d.cts
CHANGED
|
@@ -261,6 +261,18 @@ export interface EnergyAppPackageCompatibilityVendor {
|
|
|
261
261
|
vendorName: string;
|
|
262
262
|
/** Models from this vendor that the package supports */
|
|
263
263
|
models: EnergyAppPackageCompatibilityModel[];
|
|
264
|
+
/**
|
|
265
|
+
* Marks this package as the default Energy App for the vendor when no
|
|
266
|
+
* concrete model has been selected.
|
|
267
|
+
*
|
|
268
|
+
* During onboarding a user may only know the manufacturer of their device,
|
|
269
|
+
* not its exact model. When several packages declare compatibility with the
|
|
270
|
+
* same vendor, the one flagged with `default: true` is the app the enyo
|
|
271
|
+
* Store and onboarding flows pick in that case. Set it on at most one
|
|
272
|
+
* package per vendor; omit it (or set `false`) when the package should only
|
|
273
|
+
* be offered for an explicitly selected model.
|
|
274
|
+
*/
|
|
275
|
+
defaultEnergyApp?: boolean;
|
|
264
276
|
}
|
|
265
277
|
/**
|
|
266
278
|
* A file published together with an Energy App package and served publicly
|
|
@@ -33,7 +33,9 @@ export declare enum EnyoApplianceStateEnum {
|
|
|
33
33
|
* which describes connectivity. `Healthy` means the appliance is operating
|
|
34
34
|
* normally; `Warning` means a non-blocking issue has been reported (the
|
|
35
35
|
* appliance is still functional but should be inspected); `Faulted` means it
|
|
36
|
-
* has reported an internal error and may need attention
|
|
36
|
+
* has reported an internal error and may need attention; `Deactivated` means
|
|
37
|
+
* the appliance has been intentionally switched off from energy management and
|
|
38
|
+
* is neither monitored nor controlled until it is reactivated. Vendor- or
|
|
37
39
|
* protocol-specific details should be conveyed via accompanying error codes.
|
|
38
40
|
*/
|
|
39
41
|
export declare enum EnyoApplianceStatusEnum {
|
|
@@ -42,7 +44,13 @@ export declare enum EnyoApplianceStatusEnum {
|
|
|
42
44
|
/** Appliance is operating but has reported a non-blocking issue that should be inspected */
|
|
43
45
|
Warning = "warning",
|
|
44
46
|
/** Appliance has reported an internal fault */
|
|
45
|
-
Faulted = "faulted"
|
|
47
|
+
Faulted = "faulted",
|
|
48
|
+
/**
|
|
49
|
+
* Appliance has been intentionally deactivated and is excluded from energy
|
|
50
|
+
* management. It is not controlled and its health is not evaluated until it
|
|
51
|
+
* is reactivated.
|
|
52
|
+
*/
|
|
53
|
+
Deactivated = "deactivated"
|
|
46
54
|
}
|
|
47
55
|
/**
|
|
48
56
|
* Severity classification for an {@link EnyoApplianceErrorCode}.
|
|
@@ -175,7 +183,7 @@ export interface EnyoApplianceMetadata {
|
|
|
175
183
|
ipAddress?: string;
|
|
176
184
|
/** Connection state */
|
|
177
185
|
state?: EnyoApplianceStateEnum;
|
|
178
|
-
/** Health status of the appliance (e.g. healthy or
|
|
186
|
+
/** Health status of the appliance (e.g. healthy, faulted or deactivated) */
|
|
179
187
|
status?: EnyoApplianceStatusEnum;
|
|
180
188
|
network?: EnyoApplianceNetworkMetadata;
|
|
181
189
|
modbus?: EnyoApplianceModbusMetadata;
|
|
@@ -21,7 +21,9 @@ export var EnyoApplianceStateEnum;
|
|
|
21
21
|
* which describes connectivity. `Healthy` means the appliance is operating
|
|
22
22
|
* normally; `Warning` means a non-blocking issue has been reported (the
|
|
23
23
|
* appliance is still functional but should be inspected); `Faulted` means it
|
|
24
|
-
* has reported an internal error and may need attention
|
|
24
|
+
* has reported an internal error and may need attention; `Deactivated` means
|
|
25
|
+
* the appliance has been intentionally switched off from energy management and
|
|
26
|
+
* is neither monitored nor controlled until it is reactivated. Vendor- or
|
|
25
27
|
* protocol-specific details should be conveyed via accompanying error codes.
|
|
26
28
|
*/
|
|
27
29
|
export var EnyoApplianceStatusEnum;
|
|
@@ -32,6 +34,12 @@ export var EnyoApplianceStatusEnum;
|
|
|
32
34
|
EnyoApplianceStatusEnum["Warning"] = "warning";
|
|
33
35
|
/** Appliance has reported an internal fault */
|
|
34
36
|
EnyoApplianceStatusEnum["Faulted"] = "faulted";
|
|
37
|
+
/**
|
|
38
|
+
* Appliance has been intentionally deactivated and is excluded from energy
|
|
39
|
+
* management. It is not controlled and its health is not evaluated until it
|
|
40
|
+
* is reactivated.
|
|
41
|
+
*/
|
|
42
|
+
EnyoApplianceStatusEnum["Deactivated"] = "deactivated";
|
|
35
43
|
})(EnyoApplianceStatusEnum || (EnyoApplianceStatusEnum = {}));
|
|
36
44
|
export var EnyoApplianceConnectionType;
|
|
37
45
|
(function (EnyoApplianceConnectionType) {
|
|
@@ -593,7 +593,8 @@ export interface EnyoDataBusApplianceFlexibilityAnnouncementV1 extends EnyoDataB
|
|
|
593
593
|
* provided together if they change in the same event. `errorCodes` carries
|
|
594
594
|
* vendor- or protocol-specific codes that explain a transition into a
|
|
595
595
|
* `warning` or `faulted` status; each entry's `severity` field indicates
|
|
596
|
-
* which.
|
|
596
|
+
* which. A transition into `deactivated` is intentional and normally carries
|
|
597
|
+
* no error codes.
|
|
597
598
|
*/
|
|
598
599
|
export interface EnyoDataBusApplianceStateUpdateV1 extends EnyoDataBusMessage {
|
|
599
600
|
type: 'message';
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* (`../implementations/onboarding-v2/onboarding-v2-validators.ts`) to fail fast
|
|
21
21
|
* before publishing.
|
|
22
22
|
*/
|
|
23
|
-
import type {
|
|
23
|
+
import type { EnyoOnboardingTranslatedContent } from './enyo-onboarding.js';
|
|
24
24
|
/**
|
|
25
25
|
* The situation a flow starts from. A vendor/model can have up to one guide per
|
|
26
26
|
* variant; a branch can jump into another variant's flow
|
|
@@ -1067,21 +1067,6 @@ export interface EnyoOnboardingV2Guide {
|
|
|
1067
1067
|
title: EnyoOnboardingTranslatedContent[];
|
|
1068
1068
|
/** Which start situation this guide covers. */
|
|
1069
1069
|
startVariant: EnyoOnboardingV2StartVariant;
|
|
1070
|
-
/**
|
|
1071
|
-
* The lifecycle role this guide plays, which decides where the host offers
|
|
1072
|
-
* it (an "add new device" entry point, the configuration-required prompt).
|
|
1073
|
-
*
|
|
1074
|
-
* Distinct from {@link startVariant}, which describes the *situation the
|
|
1075
|
-
* flow starts from* (device not found, found but unconfigured, …). This says
|
|
1076
|
-
* *why the installer is here at all*: configuring the package for the first
|
|
1077
|
-
* time is a different entry point from adding a second device to a package
|
|
1078
|
-
* that already works, even when both start from `device-not-found`.
|
|
1079
|
-
*
|
|
1080
|
-
* Shared with the v1 model rather than restated as a v2 enum — the category
|
|
1081
|
-
* is a property of a guide's role, not of the authoring model. Defaults to
|
|
1082
|
-
* {@link EnyoOnboardingGuideCategory.InitialSetup} semantics when omitted.
|
|
1083
|
-
*/
|
|
1084
|
-
category?: EnyoOnboardingGuideCategory;
|
|
1085
1070
|
/**
|
|
1086
1071
|
* Whether the host runs its local network scan before entering this guide.
|
|
1087
1072
|
*
|
|
@@ -14,11 +14,9 @@ export interface EnyoOnboardingTranslatedContent {
|
|
|
14
14
|
* Used to distinguish guides that perform different roles, e.g. initial
|
|
15
15
|
* configuration of a package vs. adding or reconnecting a single device.
|
|
16
16
|
*
|
|
17
|
-
*
|
|
18
|
-
* {@link EnyoOnboardingV2Guide
|
|
19
|
-
*
|
|
20
|
-
* the category is a property of a guide's role, not of the authoring model it
|
|
21
|
-
* was written in.
|
|
17
|
+
* @deprecated Superseded by the v2 graph model. Author guides with
|
|
18
|
+
* {@link EnyoOnboardingV2Guide} via `defineOnboardingGuideV2()`. v1 is retained
|
|
19
|
+
* for backward compatibility and will be removed in a future major.
|
|
22
20
|
*/
|
|
23
21
|
export declare enum EnyoOnboardingGuideCategory {
|
|
24
22
|
/** Initial package configuration — shown when EnergyAppStateEnum is 'configuration-required' */
|
|
@@ -3,11 +3,9 @@
|
|
|
3
3
|
* Used to distinguish guides that perform different roles, e.g. initial
|
|
4
4
|
* configuration of a package vs. adding or reconnecting a single device.
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* {@link EnyoOnboardingV2Guide
|
|
8
|
-
*
|
|
9
|
-
* the category is a property of a guide's role, not of the authoring model it
|
|
10
|
-
* was written in.
|
|
6
|
+
* @deprecated Superseded by the v2 graph model. Author guides with
|
|
7
|
+
* {@link EnyoOnboardingV2Guide} via `defineOnboardingGuideV2()`. v1 is retained
|
|
8
|
+
* for backward compatibility and will be removed in a future major.
|
|
11
9
|
*/
|
|
12
10
|
export var EnyoOnboardingGuideCategory;
|
|
13
11
|
(function (EnyoOnboardingGuideCategory) {
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED