dt-common-device 13.1.6 → 13.1.7

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.
@@ -11,13 +11,7 @@ export declare abstract class BaseEventTransformer implements IEventTransformer
11
11
  * Transform parsed data into DeviceEvent format - to be implemented by device-specific transformers
12
12
  */
13
13
  abstract transform(parsedData: any): Promise<DeviceEvent | DeviceEvent[]>;
14
- abstract getDeviceAndPropertyDetails(event: any): {
15
- deviceId: string;
16
- deviceType: string;
17
- zoneId: string;
18
- propertyId: string;
19
- connectionId: string;
20
- };
14
+ abstract getDeviceAndPropertyDetails(event: any): any;
21
15
  /**
22
16
  * Validate transformed event - default implementation, can be overridden
23
17
  */
@@ -1,13 +1,7 @@
1
1
  import { DeviceEvent } from "./DeviceEvent";
2
2
  export interface IEventTransformer {
3
3
  parseData(rawData: any): any;
4
- getDeviceAndPropertyDetails(event: any): {
5
- deviceId: string;
6
- deviceType: string;
7
- zoneId: string;
8
- propertyId: string;
9
- connectionId: string;
10
- };
4
+ getDeviceAndPropertyDetails(event: any): any;
11
5
  transform(parsedData: any): Promise<DeviceEvent | DeviceEvent[]>;
12
6
  validate(transformedEvent: DeviceEvent): boolean;
13
7
  executeTransformation(): Promise<DeviceEvent[]>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "13.1.6",
3
+ "version": "13.1.7",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [