@evercam/api 1.0.0-4ba690d00 → 1.0.0-4f4878a3e
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/api/aiApi.d.ts +4 -4
- package/dist/api/evercamLabsApi.d.ts +2 -2
- package/dist/index.js +62 -64
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/detections.d.ts +17 -5
- package/package.json +1 -1
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
-
export type
|
|
3
|
-
cameraExid: CameraExid;
|
|
1
|
+
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
+
export type BaseDetectionsFilters = {
|
|
4
3
|
fromDate: string | Date;
|
|
5
4
|
toDate: string | Date;
|
|
6
5
|
labels: DetectionLabel | DetectionLabel[];
|
|
7
6
|
trackId?: number;
|
|
8
7
|
};
|
|
8
|
+
export type DetectionsFilters = BaseDetectionsFilters & {
|
|
9
|
+
projectExid: ProjectExid;
|
|
10
|
+
cameraExids?: CameraExid[];
|
|
11
|
+
};
|
|
12
|
+
export type SegmentsFilters = BaseDetectionsFilters & {
|
|
13
|
+
cameraExid: CameraExid;
|
|
14
|
+
};
|
|
9
15
|
export type BBox = number[];
|
|
10
16
|
export type SelectedObjectPath = {
|
|
11
17
|
label: string;
|
|
@@ -55,14 +61,20 @@ export type SegmentsSimilaritySearchParams = {
|
|
|
55
61
|
fromDate: string;
|
|
56
62
|
toDate: string;
|
|
57
63
|
};
|
|
58
|
-
export type
|
|
59
|
-
cameraExid: CameraExid;
|
|
64
|
+
export type BaseCountsParams = {
|
|
60
65
|
fromDate: string | Date;
|
|
61
66
|
toDate: string | Date;
|
|
62
67
|
precision: keyof typeof TimelinePrecision;
|
|
63
68
|
trackId: number;
|
|
64
69
|
labels: DetectionLabel | DetectionLabel[];
|
|
65
70
|
};
|
|
71
|
+
export type DetectionsCountsParams = BaseCountsParams & {
|
|
72
|
+
projectExid: ProjectExid;
|
|
73
|
+
cameraExids?: CameraExid[];
|
|
74
|
+
};
|
|
75
|
+
export type SegmentsCountsParams = BaseCountsParams & {
|
|
76
|
+
cameraExid: CameraExid;
|
|
77
|
+
};
|
|
66
78
|
export type CountByPeriod = {
|
|
67
79
|
date: string | Date;
|
|
68
80
|
counts: Record<string, number>;
|