chore: Add missing ".js" extensions to imports and improve Node.js compatibility for dynamic schema loading

This commit is contained in:
Andreas Hilbig 2026-01-13 14:42:11 +01:00
parent 1c1aeb4519
commit 98c612fc56
15 changed files with 121 additions and 70 deletions

View file

@ -1,17 +1,5 @@
"""
Concrete implementation of a DeviceValueMessage for sensor distance data.
"""
type SensorDistanceMessage implements DeviceValueMessage {
deviceKey: String
timestamp: String
attributeName: String
topicName: String
deviceType: String
value: SensorDistanceValue
}
"""
Represents the payload for a sensor distance measurement.
"""
@ -58,3 +46,15 @@ type PositionCalculatorResult {
position: Position
accuracy: Float
}
"""
Concrete implementation of a DeviceValueMessage for sensor distance data.
"""
type SensorDistanceMessage implements DeviceValueMessage {
deviceKey: String
timestamp: String
attributeName: String
topicName: String
deviceType: String
value: SensorDistanceValue
}

View file

@ -18,30 +18,13 @@ type DistanceTrackerDevice implements Host & Device {
type DistanceTrackerState implements DeviceState {
operational: OperationalDeviceData
current: DistanceTrackerCurrentState
}
type DistanceTrackerCurrentState {
values: DistanceTrackerValues
current: DistanceTrackerValues
}
"""
Aggregated information of devices detected around the tracker
"""
type DistanceTrackerValues {
"""
Aggregated information of devices detected around the tracker
"""
countValues: DeviceCountValues
"""
Information about devices detected nearby
"""
distanceValues: String
}
type DeviceCountValues {
"""
Number of unique deviceKeys detected between timeFrom and timeUnti
"""
count: Int
"""
Start of time interval for the delivered device counting value
"""
@ -50,19 +33,13 @@ type DeviceCountValues {
End of time interval for the delivered device counting value
"""
timeUntil: Time
}
type DeviceDistanceValues {
"""
Number of unique deviceKeys detected between timeFrom and timeUnti
"""
count: Int
"""
Start of time interval for the delivered device counting value
Detailed information about devices detected nearby
"""
timeFrom: Time
"""
End of time interval for the delivered device counting value
"""
timeUntil: Time
distances: [SensorDistanceValue!]
}