protobuf changes
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import type { Message } from "@bufbuild/protobuf";
|
import type { Message } from "@bufbuild/protobuf";
|
||||||
import { Protobuf } from "@meshtastic/js";
|
import { Protobuf } from "@meshtastic/js";
|
||||||
import { IsBoolean, IsEnum, IsInt } from "class-validator";
|
import { IsBoolean, IsEnum, IsInt, IsString } from "class-validator";
|
||||||
|
|
||||||
export class DeviceValidation
|
export class DeviceValidation
|
||||||
implements Omit<Protobuf.Config.Config_DeviceConfig, keyof Message>
|
implements Omit<Protobuf.Config.Config_DeviceConfig, keyof Message>
|
||||||
@@ -34,4 +34,10 @@ export class DeviceValidation
|
|||||||
|
|
||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
disableTripleClick: boolean;
|
disableTripleClick: boolean;
|
||||||
|
|
||||||
|
@IsBoolean()
|
||||||
|
ledHeartbeatDisabled: boolean;
|
||||||
|
|
||||||
|
@IsString()
|
||||||
|
tzdef: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,4 +34,7 @@ export class DisplayValidation
|
|||||||
|
|
||||||
@IsBoolean()
|
@IsBoolean()
|
||||||
wakeOnTapOrMotion: boolean;
|
wakeOnTapOrMotion: boolean;
|
||||||
|
|
||||||
|
@IsEnum(Protobuf.Config.Config_DisplayConfig_CompassOrientation)
|
||||||
|
compassOrientation: Protobuf.Config.Config_DisplayConfig_CompassOrientation;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,4 +11,10 @@ export class PaxcounterValidation
|
|||||||
|
|
||||||
@IsInt()
|
@IsInt()
|
||||||
paxcounterUpdateInterval: number;
|
paxcounterUpdateInterval: number;
|
||||||
|
|
||||||
|
@IsInt()
|
||||||
|
bleThreshold: number;
|
||||||
|
|
||||||
|
@IsInt()
|
||||||
|
wifiThreshold: number;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user