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

@ -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!]
}