dt-common-device 4.0.1 → 4.0.2
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.
|
@@ -44,6 +44,8 @@ class InternalEventSubscription {
|
|
|
44
44
|
break;
|
|
45
45
|
default:
|
|
46
46
|
this.logger.warn(`Unknown event type: ${eventType} ${eventData}`);
|
|
47
|
+
this.logger.info(`Calling onServiceSpecificEvent for event type: ${eventType} ${eventData}`);
|
|
48
|
+
await this.safeCallHandler(() => this.internalEventHandler.onServiceSpecificEvent(eventType, eventData));
|
|
47
49
|
break;
|
|
48
50
|
}
|
|
49
51
|
}
|
|
@@ -26,4 +26,5 @@ export interface IInternalEvent {
|
|
|
26
26
|
onScheduleUpdate(data: ScheduleEventData): Promise<void>;
|
|
27
27
|
onScheduleDelete(data: ScheduleEventData): Promise<void>;
|
|
28
28
|
onServiceDown(data: ServiceEventData): Promise<void>;
|
|
29
|
+
onServiceSpecificEvent(eventType: string, data: any): Promise<void>;
|
|
29
30
|
}
|