@enyo-energy/energy-app-sdk 0.0.102 → 0.0.103

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.
@@ -65,6 +65,18 @@ export interface EnergyAppPackageOptionsDeviceDetectionEebus {
65
65
  /** matching values, for example the vendor names or model names */
66
66
  matchingValues: string[];
67
67
  }
68
+ /**
69
+ * Optional device detection configuration for mDNS TXT record matching.
70
+ * Matches against TXT record key-value pairs advertised by devices via mDNS.
71
+ */
72
+ export interface EnergyAppPackageOptionsDeviceDetectionMdns {
73
+ /** The TXT record key to match against */
74
+ key: 'model' | 'brand' | 'uuid' | 'serial' | string;
75
+ /** The matching operation to perform on the TXT record value */
76
+ operation: 'eq' | 'startsWith';
77
+ /** Values to match the TXT record value against */
78
+ matchingValues: string[];
79
+ }
68
80
  /**
69
81
  * Optional device detection configuration for MQTT-based detection.
70
82
  * Subscribes to a topic on the internal broker and matches messages against expected values.
@@ -87,6 +99,7 @@ export interface EnergyAppPackageOptionsDeviceDetection {
87
99
  ocpp?: EnergyAppPackageOptionsDeviceDetectionOcpp[];
88
100
  eebus?: EnergyAppPackageOptionsDeviceDetectionEebus[];
89
101
  mqtt?: EnergyAppPackageOptionsDeviceDetectionMqtt[];
102
+ mdns?: EnergyAppPackageOptionsDeviceDetectionMdns[];
90
103
  }
91
104
  /**
92
105
  * Optional configuration settings for an Energy App package.
@@ -8,4 +8,5 @@ var EnyoNetworkDeviceDetectedAtEnum;
8
8
  EnyoNetworkDeviceDetectedAtEnum["Hostname"] = "hostname";
9
9
  EnyoNetworkDeviceDetectedAtEnum["Modbus"] = "modbus";
10
10
  EnyoNetworkDeviceDetectedAtEnum["Http"] = "http";
11
+ EnyoNetworkDeviceDetectedAtEnum["Mdns"] = "mdns";
11
12
  })(EnyoNetworkDeviceDetectedAtEnum || (exports.EnyoNetworkDeviceDetectedAtEnum = EnyoNetworkDeviceDetectedAtEnum = {}));
@@ -3,7 +3,8 @@ export declare enum EnyoNetworkDeviceDetectedAtEnum {
3
3
  Ocpp = "ocpp",
4
4
  Hostname = "hostname",
5
5
  Modbus = "modbus",
6
- Http = "http"
6
+ Http = "http",
7
+ Mdns = "mdns"
7
8
  }
8
9
  /**
9
10
  * Represents a detected network device with its connectivity information.
@@ -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.102';
12
+ exports.SDK_VERSION = '0.0.103';
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.102";
8
+ export declare const SDK_VERSION = "0.0.103";
9
9
  /**
10
10
  * Gets the current SDK version.
11
11
  * @returns The semantic version string of the SDK
@@ -65,6 +65,18 @@ export interface EnergyAppPackageOptionsDeviceDetectionEebus {
65
65
  /** matching values, for example the vendor names or model names */
66
66
  matchingValues: string[];
67
67
  }
68
+ /**
69
+ * Optional device detection configuration for mDNS TXT record matching.
70
+ * Matches against TXT record key-value pairs advertised by devices via mDNS.
71
+ */
72
+ export interface EnergyAppPackageOptionsDeviceDetectionMdns {
73
+ /** The TXT record key to match against */
74
+ key: 'model' | 'brand' | 'uuid' | 'serial' | string;
75
+ /** The matching operation to perform on the TXT record value */
76
+ operation: 'eq' | 'startsWith';
77
+ /** Values to match the TXT record value against */
78
+ matchingValues: string[];
79
+ }
68
80
  /**
69
81
  * Optional device detection configuration for MQTT-based detection.
70
82
  * Subscribes to a topic on the internal broker and matches messages against expected values.
@@ -87,6 +99,7 @@ export interface EnergyAppPackageOptionsDeviceDetection {
87
99
  ocpp?: EnergyAppPackageOptionsDeviceDetectionOcpp[];
88
100
  eebus?: EnergyAppPackageOptionsDeviceDetectionEebus[];
89
101
  mqtt?: EnergyAppPackageOptionsDeviceDetectionMqtt[];
102
+ mdns?: EnergyAppPackageOptionsDeviceDetectionMdns[];
90
103
  }
91
104
  /**
92
105
  * Optional configuration settings for an Energy App package.
@@ -3,7 +3,8 @@ export declare enum EnyoNetworkDeviceDetectedAtEnum {
3
3
  Ocpp = "ocpp",
4
4
  Hostname = "hostname",
5
5
  Modbus = "modbus",
6
- Http = "http"
6
+ Http = "http",
7
+ Mdns = "mdns"
7
8
  }
8
9
  /**
9
10
  * Represents a detected network device with its connectivity information.
@@ -5,4 +5,5 @@ export var EnyoNetworkDeviceDetectedAtEnum;
5
5
  EnyoNetworkDeviceDetectedAtEnum["Hostname"] = "hostname";
6
6
  EnyoNetworkDeviceDetectedAtEnum["Modbus"] = "modbus";
7
7
  EnyoNetworkDeviceDetectedAtEnum["Http"] = "http";
8
+ EnyoNetworkDeviceDetectedAtEnum["Mdns"] = "mdns";
8
9
  })(EnyoNetworkDeviceDetectedAtEnum || (EnyoNetworkDeviceDetectedAtEnum = {}));
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.102";
8
+ export declare const SDK_VERSION = "0.0.103";
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.102';
8
+ export const SDK_VERSION = '0.0.103';
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.102",
3
+ "version": "0.0.103",
4
4
  "description": "enyo Energy App SDK",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",