@trafficgroup/knex-rel 0.0.29 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dao/VideoMinuteResultDAO.d.ts +101 -0
- package/dist/dao/VideoMinuteResultDAO.js +366 -0
- package/dist/dao/VideoMinuteResultDAO.js.map +1 -1
- package/dist/dao/camera/camera.dao.d.ts +13 -0
- package/dist/dao/camera/camera.dao.js +93 -0
- package/dist/dao/camera/camera.dao.js.map +1 -0
- package/dist/dao/video/video.dao.d.ts +5 -0
- package/dist/dao/video/video.dao.js +46 -0
- package/dist/dao/video/video.dao.js.map +1 -1
- package/dist/index.d.ts +12 -10
- package/dist/index.js +13 -11
- package/dist/index.js.map +1 -1
- package/dist/interfaces/camera/camera.interfaces.d.ts +9 -0
- package/dist/interfaces/camera/camera.interfaces.js +3 -0
- package/dist/interfaces/camera/camera.interfaces.js.map +1 -0
- package/dist/interfaces/folder/folder.interfaces.d.ts +3 -0
- package/dist/interfaces/video/video.interfaces.d.ts +8 -0
- package/migrations/20250910015452_migration.ts +34 -0
- package/migrations/20250911000000_migration.ts +61 -0
- package/migrations/20250917144153_migration.ts +37 -0
- package/package.json +1 -1
- package/plan.md +90 -265
- package/src/dao/VideoMinuteResultDAO.ts +517 -0
- package/src/dao/camera/camera.dao.ts +79 -0
- package/src/dao/video/video.dao.ts +49 -0
- package/src/index.ts +12 -10
- package/src/interfaces/camera/camera.interfaces.ts +9 -0
- package/src/interfaces/folder/folder.interfaces.ts +3 -0
- package/src/interfaces/video/video.interfaces.ts +13 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { IStudy } from "../study/study.interfaces";
|
|
2
|
+
import type { ICamera } from "../camera/camera.interfaces";
|
|
2
3
|
|
|
3
4
|
export interface IFolder {
|
|
4
5
|
id: number;
|
|
@@ -7,7 +8,9 @@ export interface IFolder {
|
|
|
7
8
|
createdBy: number; // user.id
|
|
8
9
|
status: "UPLOADING" | "COMPLETE";
|
|
9
10
|
studyId: number; // study.id
|
|
11
|
+
cameraId?: number; // camera.id
|
|
10
12
|
created_at: string;
|
|
11
13
|
updated_at: string;
|
|
12
14
|
study?: IStudy;
|
|
15
|
+
camera?: ICamera;
|
|
13
16
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { IFolder } from "../folder/folder.interfaces";
|
|
2
|
+
import type { ICamera } from "../camera/camera.interfaces";
|
|
2
3
|
|
|
3
4
|
export interface IVideo {
|
|
4
5
|
id: number;
|
|
5
6
|
uuid: string;
|
|
6
7
|
folderId: number;
|
|
8
|
+
cameraId?: number;
|
|
9
|
+
annotationSourceId?: number;
|
|
7
10
|
name: string;
|
|
8
11
|
videoLocation: string;
|
|
9
12
|
videoOutputLocation: string | null;
|
|
@@ -16,7 +19,17 @@ export interface IVideo {
|
|
|
16
19
|
remainingTime: string;
|
|
17
20
|
results: Record<string, any>;
|
|
18
21
|
durationSeconds?: number; // Add optional duration field
|
|
22
|
+
|
|
23
|
+
// HLS streaming support
|
|
24
|
+
isHlsEnabled: boolean;
|
|
25
|
+
hlsPlaylist: string | null;
|
|
26
|
+
videoSizeMB: number | null;
|
|
27
|
+
|
|
28
|
+
// Enhanced metadata for hybrid streaming
|
|
29
|
+
streamingMetadata: Record<string, any> | null;
|
|
30
|
+
|
|
19
31
|
created_at: string;
|
|
20
32
|
updated_at: string;
|
|
21
33
|
folder?: IFolder;
|
|
34
|
+
camera?: ICamera;
|
|
22
35
|
}
|