From a14ab8d22d03ae30c185d234577de57f5d624239 Mon Sep 17 00:00:00 2001 From: ingalls Date: Thu, 31 Oct 2024 15:38:25 -0600 Subject: [PATCH] Update CHANGELOG --- CHANGELOG.md | 5 +++++ lib/types/types.ts | 12 ++++++++++++ test/cot-video.test.ts | 42 ++++++++++++++++++++++++++++++------------ 3 files changed, 47 insertions(+), 12 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd2c710..2edb3bf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ ### Pending Fixed +### v12.10.0 - 2024-10-31 + +- :rocket: Add a ton of new Sensor Attribute keys that were surfaced in CoT mining +- :data: Add Video Configuration object type + ### v12.9.0 - 2024-10-26 - :bug: MissionChange can have no text in `creatorUid` Tag diff --git a/lib/types/types.ts b/lib/types/types.ts index 3ac9189..14aa73e 100644 --- a/lib/types/types.ts +++ b/lib/types/types.ts @@ -239,6 +239,18 @@ export const SensorAttributes = Type.Object({ azimuth: Type.Optional(Type.Number()), north: Type.Optional(Type.Number()), + fovBlue: Type.Optional(Type.Number()), + fovAlpha: Type.Optional(Type.Number()), + fovGreen: Type.Optional(Type.Number()), + fovRed: Type.Optional(Type.Number()), + strokeWeight: Type.Optional(Type.Number()), + strokeColor: Type.Optional(Type.Number()), + rangeLines: Type.Optional(Type.Number()), + rangeLineStrokeWeight: Type.Optional(Type.Number()), + rangeLineStrokeColor: Type.Optional(Type.Number()), + displayMagneticReference: Type.Optional(Type.Number()), + hideFov: Type.Optional(Type.Boolean()), + type: Type.Optional(Type.String()), version: Type.Optional(Type.String()), model: Type.Optional(Type.String()) diff --git a/test/cot-video.test.ts b/test/cot-video.test.ts index 2c7a0b0..2874989 100644 --- a/test/cot-video.test.ts +++ b/test/cot-video.test.ts @@ -60,21 +60,21 @@ test('Decode MultiMissionAircraft CoTs', (t) => { _attributes: { vfov: 45, elevation: 0, - fovBlue: '1.0', - fovRed: '1.0', - strokeWeight: '0.0', + fovBlue: 1.0, + fovRed: 1.0, + strokeWeight: 0.0, roll: 0, range: 100, azimuth: 270, - rangeLineStrokeWeight: '0.0', + rangeLineStrokeWeight: 0.0, fov: 45, - hideFov: 'true', - rangeLineStrokeColor: '-3355444', - fovGreen: '1.0', - displayMagneticReference: '0', - strokeColor: '-16777216', - rangeLines: '100', - fovAlpha: '0.2980392156862745' + hideFov: true, + rangeLineStrokeColor: -3355444, + fovGreen: 1.0, + displayMagneticReference: 0, + strokeColor: -16777216, + rangeLines: 100, + fovAlpha: 0.2980392156862745 } }, contact: { _attributes: { callsign: 'I-25 .8 mi S CO-45' } }, @@ -95,7 +95,25 @@ test('Decode MultiMissionAircraft CoTs', (t) => { time: '2023-11-15T20:48:16.097Z', start: '2023-11-15T20:48:16.097Z', stale: '2024-11-14T20:48:16.097Z', - sensor: { vfov: 45, elevation: 0, fovBlue: '1.0', fovRed: '1.0', strokeWeight: '0.0', roll: 0, range: 100, azimuth: 270, rangeLineStrokeWeight: '0.0', fov: 45, hideFov: 'true', rangeLineStrokeColor: '-3355444', fovGreen: '1.0', displayMagneticReference: '0', strokeColor: '-16777216', rangeLines: '100', fovAlpha: '0.2980392156862745' }, + sensor: { + vfov: 45, + elevation: 0, + fovBlue: 1.0, + fovRed: 1.0, + strokeWeight: 0.0, + roll: 0, + range: 100, + azimuth: 270, + rangeLineStrokeWeight: 0.0, + fov: 45, + hideFov: true, + rangeLineStrokeColor: -3355444, + fovGreen: 1.0, + displayMagneticReference: 0, + strokeColor: -16777216, + rangeLines: 100, + fovAlpha: 0.2980392156862745 + }, video: { uid: '05bf6c59-c7ea-465f-8337-da16ddcc82d4', url: 'https://publicstreamer3.cotrip.org/rtplive/123/playlist.m3u8' }, archived: true, status: { readiness: 'true' },