export interface YsVideoList { id: string; createdAt: string; name: string; projectId: string; deviceSerial: string; validateCode: string; type: string; sourceType: string; pictureUrl: string; online: boolean; groupId: string; isEncrypt: boolean; isMonitor: boolean; isFlv: boolean; bindingStatus: string; nvrId: string; category: number; faceStatus?: string; macAddress?: string; autoSendStatus?: boolean; controllable?: boolean; } export interface CreateNVR { id: string; name: string; deviceSerial: string; validateCode: string; vendor: number; } export interface CreateCamera { id: string; name: string; vendor: number; groupId: string; category: number; channelNo: string; deviceSerial: string; validateCode: string; } export interface CreateLocalVideo { id: string; rtspIp: string; rtspPort: string; rtspUsername: string; rtspPassword: string; } export interface VendorList { id: number; name: string; } export interface Docs { help: string; install: string; config: string; localPlay: string; plugin: string; remoteConfig: string; } export interface CategoryList { id: number; name: string; } export interface DeviceDetail { id: string; name: string; accessToken: string; type: string; projectId: string; online: boolean; createdAt: number; groupId: string; vendor: string; deviceSerial: string; validateCode: string; nvrId: string; category: string; channelNo: string; rtspIp: string; rtspPort: string; rtspUsername: string; rtspPassword: string; attributes: { name: string; code: string; value: number; timestamp: number; timestampString: string; }[]; } export interface CloudDeviceModel { id: string; name: string; type: string; status: boolean; projectId: string; projectName: string; tenantId: string; tenantName: string; sourceType: string; validateCode: string; deviceSerial: string; isMonitor: boolean; category: string; online: boolean; } export interface YsyAccountReq { hasAccount: boolean; userName?: string; password?: string; appKey?: string; appSecret?: string; contacts?: string; memo?: string; isPersonal?: boolean; } export interface YsyAccountRep { id: string; projectId: string; ysyConfig: { hasAccount: boolean; userName: string; password: string; appKey: string; appSecret: string; contacts: string; isPersonal: boolean; }; } export interface EventConfigs { deviceId: string; eventConfigs: any[]; } export interface YsyOnlineLogParam { deviceId: string; fromTime: string; toTime: string; pageSize: number; pageNo: number; } export interface YsyOnlineLogModel { deviceId: string; deviceName: string; deviceSerial: string; status: string; occurTime: number; natIp: string; deviceNameLocal: string; devType: string; } /** * @name 测距配置 * @时间格式 HH:mm */ export interface RangingConfigModel { deviceId: string; typeId?: number; height?: string; heightAuto?: string; detectMode: DetectMode; memo?: string; timePoints?: string[]; } export type DetectMode = 'bottomUp' | 'TopDown'; export interface RangingScene { id: string; createdAt: number; tenantId: string; projectId: string; name: string; deviceId: string; deviceName: string; deviceSerial: string; sceneId: string; sceneName: string; time: number; } export interface Point3d { configId: string; point: string; deviceId: string; x: number; y: number; w: number; h: number; } export interface BImReq { id: string; bimUrl: string; }