BUR-58 Добавлена поддержка работы с камерой

This commit is contained in:
Первов Артем
2026-07-05 06:57:54 +03:00
parent 3bf4cebbe6
commit 203bdf193e
10 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
import { CameraResponseDto } from './dto/camera-response.dto';
import { CameraRow } from './camera.types';
export function createCameraResponse(edge: string, rows: CameraRow[]): CameraResponseDto {
return {
edge,
items: rows.map((row) => ({
protocol: row.protocol,
source: row.source,
})),
};
}