@enyo-energy/energy-app-sdk 0.0.93 → 0.0.95

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.
@@ -318,6 +318,10 @@ class ApplianceManager {
318
318
  const allAppliances = await this.energyApp.useAppliances().list();
319
319
  return allAppliances.filter(a => a.type === type);
320
320
  }
321
+ async getAllAppliancesByType(type) {
322
+ const allAppliances = await this.energyApp.useAppliances().listAll();
323
+ return allAppliances.filter(a => a.type === type);
324
+ }
321
325
  /**
322
326
  * Updates the state of an appliance.
323
327
  * @param applianceId The ID of the appliance to update
@@ -152,6 +152,7 @@ export declare class ApplianceManager {
152
152
  * @returns Array of appliances of the specified type
153
153
  */
154
154
  getAppliancesByType(type: EnyoApplianceTypeEnum): Promise<EnyoAppliance[]>;
155
+ getAllAppliancesByType(type: EnyoApplianceTypeEnum): Promise<EnyoAppliance[]>;
155
156
  /**
156
157
  * Updates the state of an appliance.
157
158
  * @param applianceId The ID of the appliance to update
@@ -16,4 +16,6 @@ var EnyoOnboardingSectionType;
16
16
  EnyoOnboardingSectionType["Credentials"] = "credentials";
17
17
  /** A clickable URL section */
18
18
  EnyoOnboardingSectionType["Url"] = "url";
19
+ /** A dropdown/select section */
20
+ EnyoOnboardingSectionType["Select"] = "select";
19
21
  })(EnyoOnboardingSectionType || (exports.EnyoOnboardingSectionType = EnyoOnboardingSectionType = {}));
@@ -22,7 +22,9 @@ export declare enum EnyoOnboardingSectionType {
22
22
  /** A credentials display section */
23
23
  Credentials = "credentials",
24
24
  /** A clickable URL section */
25
- Url = "url"
25
+ Url = "url",
26
+ /** A dropdown/select section */
27
+ Select = "select"
26
28
  }
27
29
  /**
28
30
  * Represents a password input configuration within an onboarding section.
@@ -51,6 +53,26 @@ export interface EnyoOnboardingSectionUrl {
51
53
  /** The URL value to display and link to */
52
54
  url: string;
53
55
  }
56
+ /**
57
+ * Represents a single option in a select/dropdown onboarding section.
58
+ */
59
+ export interface EnyoOnboardingSectionSelectOption {
60
+ /** The internal value of this option */
61
+ value: string;
62
+ /** The displayed name of the option, translated for different languages */
63
+ optionName: EnyoOnboardingTranslatedContent[];
64
+ }
65
+ /**
66
+ * Represents a select/dropdown configuration within an onboarding section.
67
+ */
68
+ export interface EnyoOnboardingSectionSelect {
69
+ /** Translated title/label for the select field */
70
+ title: EnyoOnboardingTranslatedContent[];
71
+ /** The field name used when submitting the selected value */
72
+ fieldName: string;
73
+ /** Available options for the dropdown */
74
+ options: EnyoOnboardingSectionSelectOption[];
75
+ }
54
76
  /**
55
77
  * Represents a content section within an onboarding step.
56
78
  * Each section has a heading and content body, both with translations.
@@ -71,6 +93,8 @@ export interface EnyoOnboardingSection {
71
93
  credentials?: EnyoOnboardingSectionCredential[];
72
94
  /** Optional URL configuration, used when type is 'url' */
73
95
  url?: EnyoOnboardingSectionUrl;
96
+ /** Optional select/dropdown configuration, used when type is 'select' */
97
+ select?: EnyoOnboardingSectionSelect;
74
98
  }
75
99
  /**
76
100
  * Represents a single step in the onboarding guide.
@@ -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.93';
12
+ exports.SDK_VERSION = '0.0.95';
13
13
  /**
14
14
  * Gets the current SDK version.
15
15
  * @returns The semantic version string of the SDK
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.93";
8
+ export declare const SDK_VERSION = "0.0.95";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -152,6 +152,7 @@ export declare class ApplianceManager {
152
152
  * @returns Array of appliances of the specified type
153
153
  */
154
154
  getAppliancesByType(type: EnyoApplianceTypeEnum): Promise<EnyoAppliance[]>;
155
+ getAllAppliancesByType(type: EnyoApplianceTypeEnum): Promise<EnyoAppliance[]>;
155
156
  /**
156
157
  * Updates the state of an appliance.
157
158
  * @param applianceId The ID of the appliance to update
@@ -315,6 +315,10 @@ export class ApplianceManager {
315
315
  const allAppliances = await this.energyApp.useAppliances().list();
316
316
  return allAppliances.filter(a => a.type === type);
317
317
  }
318
+ async getAllAppliancesByType(type) {
319
+ const allAppliances = await this.energyApp.useAppliances().listAll();
320
+ return allAppliances.filter(a => a.type === type);
321
+ }
318
322
  /**
319
323
  * Updates the state of an appliance.
320
324
  * @param applianceId The ID of the appliance to update
@@ -22,7 +22,9 @@ export declare enum EnyoOnboardingSectionType {
22
22
  /** A credentials display section */
23
23
  Credentials = "credentials",
24
24
  /** A clickable URL section */
25
- Url = "url"
25
+ Url = "url",
26
+ /** A dropdown/select section */
27
+ Select = "select"
26
28
  }
27
29
  /**
28
30
  * Represents a password input configuration within an onboarding section.
@@ -51,6 +53,26 @@ export interface EnyoOnboardingSectionUrl {
51
53
  /** The URL value to display and link to */
52
54
  url: string;
53
55
  }
56
+ /**
57
+ * Represents a single option in a select/dropdown onboarding section.
58
+ */
59
+ export interface EnyoOnboardingSectionSelectOption {
60
+ /** The internal value of this option */
61
+ value: string;
62
+ /** The displayed name of the option, translated for different languages */
63
+ optionName: EnyoOnboardingTranslatedContent[];
64
+ }
65
+ /**
66
+ * Represents a select/dropdown configuration within an onboarding section.
67
+ */
68
+ export interface EnyoOnboardingSectionSelect {
69
+ /** Translated title/label for the select field */
70
+ title: EnyoOnboardingTranslatedContent[];
71
+ /** The field name used when submitting the selected value */
72
+ fieldName: string;
73
+ /** Available options for the dropdown */
74
+ options: EnyoOnboardingSectionSelectOption[];
75
+ }
54
76
  /**
55
77
  * Represents a content section within an onboarding step.
56
78
  * Each section has a heading and content body, both with translations.
@@ -71,6 +93,8 @@ export interface EnyoOnboardingSection {
71
93
  credentials?: EnyoOnboardingSectionCredential[];
72
94
  /** Optional URL configuration, used when type is 'url' */
73
95
  url?: EnyoOnboardingSectionUrl;
96
+ /** Optional select/dropdown configuration, used when type is 'select' */
97
+ select?: EnyoOnboardingSectionSelect;
74
98
  }
75
99
  /**
76
100
  * Represents a single step in the onboarding guide.
@@ -13,4 +13,6 @@ export var EnyoOnboardingSectionType;
13
13
  EnyoOnboardingSectionType["Credentials"] = "credentials";
14
14
  /** A clickable URL section */
15
15
  EnyoOnboardingSectionType["Url"] = "url";
16
+ /** A dropdown/select section */
17
+ EnyoOnboardingSectionType["Select"] = "select";
16
18
  })(EnyoOnboardingSectionType || (EnyoOnboardingSectionType = {}));
package/dist/version.d.ts CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export declare const SDK_VERSION = "0.0.93";
8
+ export declare const SDK_VERSION = "0.0.95";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/dist/version.js CHANGED
@@ -5,7 +5,7 @@
5
5
  /**
6
6
  * Current version of the enyo Energy App SDK.
7
7
  */
8
- export const SDK_VERSION = '0.0.93';
8
+ export const SDK_VERSION = '0.0.95';
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enyo-energy/energy-app-sdk",
3
- "version": "0.0.93",
3
+ "version": "0.0.95",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",