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

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
@@ -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.94';
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.94";
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
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.94";
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.94';
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.94",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",