@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.
- package/dist/cjs/implementations/appliances/appliance-manager.cjs +4 -0
- package/dist/cjs/implementations/appliances/appliance-manager.d.cts +1 -0
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/implementations/appliances/appliance-manager.d.ts +1 -0
- package/dist/implementations/appliances/appliance-manager.js +4 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -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
|
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.94';
|
|
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
|
@@ -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
package/dist/version.js
CHANGED