@enyo-energy/energy-app-sdk 0.0.155 → 0.0.156
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/types/enyo-data-bus-value.cjs +1 -0
- package/dist/cjs/types/enyo-data-bus-value.d.cts +40 -1
- package/dist/cjs/version.cjs +1 -1
- package/dist/cjs/version.d.cts +1 -1
- package/dist/types/enyo-data-bus-value.d.ts +40 -1
- package/dist/types/enyo-data-bus-value.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -170,6 +170,7 @@ var EnyoDataBusMessageEnum;
|
|
|
170
170
|
EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
|
|
171
171
|
EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
|
|
172
172
|
EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
|
|
173
|
+
EnyoDataBusMessageEnum["EnergyAppStartedV1"] = "EnergyAppStartedV1";
|
|
173
174
|
})(EnyoDataBusMessageEnum || (exports.EnyoDataBusMessageEnum = EnyoDataBusMessageEnum = {}));
|
|
174
175
|
/**
|
|
175
176
|
* Storage control mode carried by {@link EnyoDataBusSetStorageScheduleV1}.
|
|
@@ -194,7 +194,8 @@ export declare enum EnyoDataBusMessageEnum {
|
|
|
194
194
|
AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
|
|
195
195
|
StartAirConditioningV1 = "StartAirConditioningV1",
|
|
196
196
|
StopAirConditioningV1 = "StopAirConditioningV1",
|
|
197
|
-
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
197
|
+
VehicleSocUpdateV1 = "VehicleSocUpdateV1",
|
|
198
|
+
EnergyAppStartedV1 = "EnergyAppStartedV1"
|
|
198
199
|
}
|
|
199
200
|
export type EnyoDataBusMessageResolution = '1s' | '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
|
|
200
201
|
/**
|
|
@@ -389,6 +390,44 @@ export interface EnyoDataBusApplianceStateUpdateV1 extends EnyoDataBusMessage {
|
|
|
389
390
|
errorCodes?: EnyoApplianceErrorCode[];
|
|
390
391
|
};
|
|
391
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* Message emitted when an energy app package finishes startup and is now
|
|
395
|
+
* actively driving its appliances. Carries the running package's identity
|
|
396
|
+
* plus the full set of appliance ids it has registered against, so
|
|
397
|
+
* consumers can correlate subsequent activity to this package instance
|
|
398
|
+
* and learn which appliances are now under its influence.
|
|
399
|
+
*
|
|
400
|
+
* Broadcast (no `target`) — anyone observing the data bus may listen.
|
|
401
|
+
* The base {@link EnyoDataBusMessage.applianceId} field is intentionally
|
|
402
|
+
* left unset; this message scopes to *all* affected appliances via
|
|
403
|
+
* `data.applianceIds` rather than a single one.
|
|
404
|
+
*/
|
|
405
|
+
export interface EnyoDataBusEnergyAppStartedV1 extends EnyoDataBusMessage {
|
|
406
|
+
type: 'message';
|
|
407
|
+
message: EnyoDataBusMessageEnum.EnergyAppStartedV1;
|
|
408
|
+
data: {
|
|
409
|
+
/**
|
|
410
|
+
* Cloud-deployment id of the started package. Matches
|
|
411
|
+
* {@link EnyoDataBusMessageTarget.cloudPackageId} so consumers
|
|
412
|
+
* can address replies back at this package instance.
|
|
413
|
+
*/
|
|
414
|
+
cloudPackageId: string;
|
|
415
|
+
/**
|
|
416
|
+
* Package slug from the started package's
|
|
417
|
+
* {@link EnergyAppPackageDefinition.packageName}. Stable across
|
|
418
|
+
* deployments of the same package, suitable for grouping
|
|
419
|
+
* activity by package implementation rather than by instance.
|
|
420
|
+
*/
|
|
421
|
+
packageName: string;
|
|
422
|
+
/**
|
|
423
|
+
* Ids of every appliance this package has registered against —
|
|
424
|
+
* the appliances whose lifecycle is now influenced by the
|
|
425
|
+
* running app. Empty array is legal (the package started but
|
|
426
|
+
* has not yet resolved any appliances).
|
|
427
|
+
*/
|
|
428
|
+
applianceIds: string[];
|
|
429
|
+
};
|
|
430
|
+
}
|
|
392
431
|
export interface EnyoDataBusChargingStartedV1 extends EnyoDataBusMessage {
|
|
393
432
|
type: 'message';
|
|
394
433
|
message: EnyoDataBusMessageEnum.ChargingStartedV1;
|
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.156';
|
|
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
|
@@ -194,7 +194,8 @@ export declare enum EnyoDataBusMessageEnum {
|
|
|
194
194
|
AirConditioningTemperaturesUpdateV1 = "AirConditioningTemperaturesUpdateV1",
|
|
195
195
|
StartAirConditioningV1 = "StartAirConditioningV1",
|
|
196
196
|
StopAirConditioningV1 = "StopAirConditioningV1",
|
|
197
|
-
VehicleSocUpdateV1 = "VehicleSocUpdateV1"
|
|
197
|
+
VehicleSocUpdateV1 = "VehicleSocUpdateV1",
|
|
198
|
+
EnergyAppStartedV1 = "EnergyAppStartedV1"
|
|
198
199
|
}
|
|
199
200
|
export type EnyoDataBusMessageResolution = '1s' | '10s' | '30s' | '1m' | '15m' | '1h' | '1d' | 'dynamic';
|
|
200
201
|
/**
|
|
@@ -389,6 +390,44 @@ export interface EnyoDataBusApplianceStateUpdateV1 extends EnyoDataBusMessage {
|
|
|
389
390
|
errorCodes?: EnyoApplianceErrorCode[];
|
|
390
391
|
};
|
|
391
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* Message emitted when an energy app package finishes startup and is now
|
|
395
|
+
* actively driving its appliances. Carries the running package's identity
|
|
396
|
+
* plus the full set of appliance ids it has registered against, so
|
|
397
|
+
* consumers can correlate subsequent activity to this package instance
|
|
398
|
+
* and learn which appliances are now under its influence.
|
|
399
|
+
*
|
|
400
|
+
* Broadcast (no `target`) — anyone observing the data bus may listen.
|
|
401
|
+
* The base {@link EnyoDataBusMessage.applianceId} field is intentionally
|
|
402
|
+
* left unset; this message scopes to *all* affected appliances via
|
|
403
|
+
* `data.applianceIds` rather than a single one.
|
|
404
|
+
*/
|
|
405
|
+
export interface EnyoDataBusEnergyAppStartedV1 extends EnyoDataBusMessage {
|
|
406
|
+
type: 'message';
|
|
407
|
+
message: EnyoDataBusMessageEnum.EnergyAppStartedV1;
|
|
408
|
+
data: {
|
|
409
|
+
/**
|
|
410
|
+
* Cloud-deployment id of the started package. Matches
|
|
411
|
+
* {@link EnyoDataBusMessageTarget.cloudPackageId} so consumers
|
|
412
|
+
* can address replies back at this package instance.
|
|
413
|
+
*/
|
|
414
|
+
cloudPackageId: string;
|
|
415
|
+
/**
|
|
416
|
+
* Package slug from the started package's
|
|
417
|
+
* {@link EnergyAppPackageDefinition.packageName}. Stable across
|
|
418
|
+
* deployments of the same package, suitable for grouping
|
|
419
|
+
* activity by package implementation rather than by instance.
|
|
420
|
+
*/
|
|
421
|
+
packageName: string;
|
|
422
|
+
/**
|
|
423
|
+
* Ids of every appliance this package has registered against —
|
|
424
|
+
* the appliances whose lifecycle is now influenced by the
|
|
425
|
+
* running app. Empty array is legal (the package started but
|
|
426
|
+
* has not yet resolved any appliances).
|
|
427
|
+
*/
|
|
428
|
+
applianceIds: string[];
|
|
429
|
+
};
|
|
430
|
+
}
|
|
392
431
|
export interface EnyoDataBusChargingStartedV1 extends EnyoDataBusMessage {
|
|
393
432
|
type: 'message';
|
|
394
433
|
message: EnyoDataBusMessageEnum.ChargingStartedV1;
|
|
@@ -167,6 +167,7 @@ export var EnyoDataBusMessageEnum;
|
|
|
167
167
|
EnyoDataBusMessageEnum["StartAirConditioningV1"] = "StartAirConditioningV1";
|
|
168
168
|
EnyoDataBusMessageEnum["StopAirConditioningV1"] = "StopAirConditioningV1";
|
|
169
169
|
EnyoDataBusMessageEnum["VehicleSocUpdateV1"] = "VehicleSocUpdateV1";
|
|
170
|
+
EnyoDataBusMessageEnum["EnergyAppStartedV1"] = "EnergyAppStartedV1";
|
|
170
171
|
})(EnyoDataBusMessageEnum || (EnyoDataBusMessageEnum = {}));
|
|
171
172
|
/**
|
|
172
173
|
* Storage control mode carried by {@link EnyoDataBusSetStorageScheduleV1}.
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED