feat(camera): Refactor camera management with new components, update localization keys, and enhance API integration

This commit is contained in:
2026-01-28 17:07:09 +07:00
parent ea07d0c99e
commit 9bc15192ec
9 changed files with 690 additions and 418 deletions

View File

@@ -22,6 +22,7 @@ declare namespace MasterModel {
// Response types cho từng domain
type CameraMessageResponse = MesageReaderResponse<CameraV5>;
type CameraV6MessageResponse = MesageReaderResponse<CameraV6>;
type AlarmMessageResponse = MesageReaderResponse<Alarm>;
type NodeConfigMessageResponse = MesageReaderResponse<NodeConfig[]>;
type MessageDataType = NodeConfig[] | CameraV5 | CameraV6;
@@ -46,7 +47,7 @@ declare namespace MasterModel {
cams?: Camera[];
}
interface CameraV6 extends CameraV5 {
record_type?: string;
record_type?: 'none' | 'alarm' | 'all';
record_alarm_list?: string[];
}
@@ -62,4 +63,10 @@ declare namespace MasterModel {
ip?: string;
stream?: number;
}
interface Alarm {
id: string;
type: Type;
name: string;
}
}