@evercam/api 1.0.0-abd430c3b → 1.0.0-abf5647b9
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/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +197 -15
- package/dist/api/api/adminApi.d.ts +16 -12
- package/dist/api/api/aiApi.d.ts +44 -4
- package/dist/api/api/evercamApi.d.ts +16 -7
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +8 -2
- package/dist/api/types/360.d.ts +171 -54
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +27 -11
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/axios.d.ts +7 -5
- package/dist/api/types/bim.d.ts +25 -0
- package/dist/api/types/camera.d.ts +11 -25
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/detections.d.ts +2 -10
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +7 -11
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/ingest.d.ts +3 -2
- package/dist/api/types/kit.d.ts +2 -1
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +6 -1
- package/dist/api/types/planner.d.ts +55 -2
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +2 -1
- package/dist/api/types/recording.d.ts +5 -9
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/shared.d.ts +19 -0
- package/dist/api/types/siteAnalytics.d.ts +3 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/timelapse.d.ts +2 -6
- package/dist/api/types/user.d.ts +1 -1
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1464 -660
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +35 -9
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/package.json +4 -2
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
1
|
+
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
+
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
3
4
|
export type CameraExid = string;
|
|
4
5
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
5
|
-
export type Cartesian3 = {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
z: number;
|
|
9
|
-
};
|
|
10
6
|
export type Camera = {
|
|
11
7
|
cameraPowerSchedule?: Schedule;
|
|
12
8
|
camPassword?: string;
|
|
@@ -46,10 +42,7 @@ export type Camera = {
|
|
|
46
42
|
isPublic: boolean;
|
|
47
43
|
lastOnlineAt: string;
|
|
48
44
|
lastPolledAt: string;
|
|
49
|
-
location:
|
|
50
|
-
lat: number;
|
|
51
|
-
lng: number;
|
|
52
|
-
};
|
|
45
|
+
location: GeoPoint;
|
|
53
46
|
modelId: string;
|
|
54
47
|
modelName: string;
|
|
55
48
|
name: string;
|
|
@@ -87,6 +80,7 @@ export type Camera = {
|
|
|
87
80
|
vendorName: string;
|
|
88
81
|
isAccessRestricted?: boolean;
|
|
89
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
90
84
|
};
|
|
91
85
|
export type AdminCamera = {
|
|
92
86
|
id: number;
|
|
@@ -112,10 +106,7 @@ export type AdminCamera = {
|
|
|
112
106
|
isPublic: boolean;
|
|
113
107
|
sharedWithConstruction?: boolean;
|
|
114
108
|
timezone: string | null;
|
|
115
|
-
location?:
|
|
116
|
-
lat: number;
|
|
117
|
-
lng: number;
|
|
118
|
-
} | null;
|
|
109
|
+
location?: GeoPoint | null;
|
|
119
110
|
fovAngle?: number | null;
|
|
120
111
|
fovRadius?: number | null;
|
|
121
112
|
heading?: number | null;
|
|
@@ -167,10 +158,7 @@ export type AdminCamera = {
|
|
|
167
158
|
};
|
|
168
159
|
export type CameraMapMarker = {
|
|
169
160
|
isOnline: boolean;
|
|
170
|
-
location:
|
|
171
|
-
lat: number;
|
|
172
|
-
lng: number;
|
|
173
|
-
};
|
|
161
|
+
location: GeoPoint;
|
|
174
162
|
needFov: boolean;
|
|
175
163
|
rotation: number;
|
|
176
164
|
fovAngle: number;
|
|
@@ -209,6 +197,10 @@ export declare enum CameraFeatureFlag {
|
|
|
209
197
|
Segmentation = "segmentation",
|
|
210
198
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
211
199
|
PpeMonitoring = "ppe_monitoring",
|
|
200
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
201
|
+
PpeGemini = "ppe_gemini",
|
|
202
|
+
PpeYolo = "ppe_yolo",
|
|
203
|
+
PpeV2 = "ppe_v2",
|
|
212
204
|
NoLiveView = "no_live_view",
|
|
213
205
|
Ring = "ring",
|
|
214
206
|
CloudOnly = "cloud_only"
|
|
@@ -320,12 +312,6 @@ export declare enum CameraModel {
|
|
|
320
312
|
Other = "other",
|
|
321
313
|
Ring = "ring"
|
|
322
314
|
}
|
|
323
|
-
export type DroneCameraTransform = {
|
|
324
|
-
position: Cartesian3;
|
|
325
|
-
direction: Cartesian3;
|
|
326
|
-
up: Cartesian3;
|
|
327
|
-
right: Cartesian3;
|
|
328
|
-
};
|
|
329
315
|
export type Footage = {
|
|
330
316
|
cameraExid: string;
|
|
331
317
|
cameraName: string;
|
|
@@ -366,7 +352,7 @@ export type CameraCreateRequestPayload = {
|
|
|
366
352
|
isPowerScheduleActive?: boolean;
|
|
367
353
|
ptz?: boolean;
|
|
368
354
|
name: string;
|
|
369
|
-
coordinates?:
|
|
355
|
+
coordinates?: TuplePoint2D;
|
|
370
356
|
recordingFromNvr?: boolean;
|
|
371
357
|
CameraConfig: {
|
|
372
358
|
model: CameraModel;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
5
|
-
Drone = "drone"
|
|
5
|
+
Drone = "drone",
|
|
6
|
+
Timeline = "timeline"
|
|
6
7
|
}
|
|
7
8
|
export declare enum CommentsLabel {
|
|
8
9
|
Info = "Info",
|
|
@@ -11,6 +12,7 @@ export declare enum CommentsLabel {
|
|
|
11
12
|
}
|
|
12
13
|
export type CommentsRequestPayload = {
|
|
13
14
|
scope: CommentsScope;
|
|
15
|
+
cameraExid?: CameraExid;
|
|
14
16
|
};
|
|
15
17
|
export type CommentsListRequestPayload = PaginationParams & {
|
|
16
18
|
projectExid?: ProjectExid;
|
|
@@ -34,8 +36,8 @@ export type Comment = {
|
|
|
34
36
|
createdAt?: string;
|
|
35
37
|
creatorEmail?: string;
|
|
36
38
|
creatorName?: string;
|
|
37
|
-
position2d?:
|
|
38
|
-
position3d?:
|
|
39
|
+
position2d?: TuplePoint2D;
|
|
40
|
+
position3d?: TuplePoint3D;
|
|
39
41
|
context?: Record<string, unknown>;
|
|
40
42
|
canDelete?: boolean;
|
|
41
43
|
archivedAt?: string;
|
|
@@ -46,10 +48,11 @@ export type CommentCreationRequestPayload = {
|
|
|
46
48
|
toDate?: DateType;
|
|
47
49
|
timestamp?: DateType;
|
|
48
50
|
scope?: CommentsScope;
|
|
49
|
-
projectExid
|
|
51
|
+
projectExid?: ProjectExid;
|
|
50
52
|
cameraExid?: CameraExid;
|
|
51
53
|
content: string;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
label?: CommentsLabel;
|
|
55
|
+
position2d?: TuplePoint2D;
|
|
56
|
+
position3d?: [number, number, number];
|
|
54
57
|
context?: Record<string, unknown>;
|
|
55
58
|
};
|
|
@@ -13,15 +13,6 @@ export type SegmentsFilters = BaseDetectionsFilters & {
|
|
|
13
13
|
cameraExid: CameraExid;
|
|
14
14
|
};
|
|
15
15
|
export type BBox = number[];
|
|
16
|
-
export type SelectedObjectPath = {
|
|
17
|
-
label: string;
|
|
18
|
-
trackId: string;
|
|
19
|
-
paths: Array<{
|
|
20
|
-
timestamp: number;
|
|
21
|
-
center: [number, number];
|
|
22
|
-
bbox: BBox;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
25
16
|
export type Label = DetectionLabel | PpeLabel;
|
|
26
17
|
export type Detection = {
|
|
27
18
|
bbox: BBox;
|
|
@@ -120,5 +111,6 @@ export declare enum DetectionModel {
|
|
|
120
111
|
Yolov11 = 2,
|
|
121
112
|
Yolov112 = 3,
|
|
122
113
|
GroundingDino = 4,
|
|
123
|
-
Owlv2 = 5
|
|
114
|
+
Owlv2 = 5,
|
|
115
|
+
PpeV2 = 6
|
|
124
116
|
}
|
|
@@ -1,18 +1,107 @@
|
|
|
1
|
+
import { Point3D } from "@evercam/api/types/shared";
|
|
2
|
+
export type DroneCameraTransform = {
|
|
3
|
+
position: Point3D;
|
|
4
|
+
direction: Point3D;
|
|
5
|
+
up: Point3D;
|
|
6
|
+
right: Point3D;
|
|
7
|
+
};
|
|
1
8
|
export type DroneModel = {
|
|
2
|
-
cesiumId:
|
|
3
|
-
cesiumId2D:
|
|
9
|
+
cesiumId: number;
|
|
10
|
+
cesiumId2D: number;
|
|
4
11
|
date: string;
|
|
5
12
|
cesiumPointCloudId: string;
|
|
6
13
|
cesiumGausianSplatId: string;
|
|
7
14
|
pointSize: string;
|
|
8
|
-
maximumScreenSpaceError:
|
|
15
|
+
maximumScreenSpaceError: number;
|
|
9
16
|
link: string;
|
|
10
17
|
trueIndex: number;
|
|
11
18
|
};
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
export type DroneProjectTransform = {
|
|
20
|
+
initialCameraTransform?: DroneCameraTransform;
|
|
21
|
+
initial2DCameraTransform?: DroneCameraTransform;
|
|
22
|
+
blackListIds?: string;
|
|
23
|
+
markers?: Record<string, DroneMarker>;
|
|
24
|
+
imageryPlans?: Record<string, DroneImageryPlan>;
|
|
25
|
+
bimData?: DroneBimData;
|
|
26
|
+
terrainPoints?: Record<string, Point3D[]>;
|
|
27
|
+
projectWGS84Coordinates?: DroneProjectCoordinates | null;
|
|
28
|
+
tags?: Record<string, DroneTag>;
|
|
29
|
+
};
|
|
30
|
+
export type DroneProjectData = {
|
|
31
|
+
models?: DroneModel[];
|
|
32
|
+
transform?: DroneProjectTransform;
|
|
33
|
+
integrationType?: DroneProvider;
|
|
34
|
+
origin?: string;
|
|
35
|
+
params?: string;
|
|
36
|
+
pointSize?: number;
|
|
37
|
+
};
|
|
38
|
+
export type DroneProjectDataPatch = {
|
|
39
|
+
models?: Record<number, Partial<DroneModel>>;
|
|
40
|
+
integrationType?: DroneProvider;
|
|
41
|
+
origin?: string;
|
|
42
|
+
params?: string;
|
|
43
|
+
};
|
|
44
|
+
export type DroneProjectCoordinates = {
|
|
45
|
+
lat: number | null;
|
|
46
|
+
lon: number | null;
|
|
47
|
+
alt: number | null;
|
|
48
|
+
};
|
|
49
|
+
export type DroneTransformPatch = {
|
|
50
|
+
projectWGS84Coordinates?: DroneProjectCoordinates | null;
|
|
51
|
+
};
|
|
52
|
+
export declare enum DroneTagType {
|
|
53
|
+
AerialShot = "AerialShot"
|
|
54
|
+
}
|
|
55
|
+
export type DroneTag<T extends DroneTagType = DroneTagType> = {
|
|
56
|
+
id?: number;
|
|
57
|
+
type: T;
|
|
58
|
+
comment: string;
|
|
59
|
+
position?: Point3D;
|
|
60
|
+
cameraTransform?: DroneCameraTransform;
|
|
61
|
+
creationDate: string;
|
|
62
|
+
hyperlink?: string;
|
|
63
|
+
height?: number;
|
|
64
|
+
};
|
|
65
|
+
export type AerialShotPoint = DroneTag<DroneTagType.AerialShot>;
|
|
66
|
+
export type DroneMarkerTransform = {
|
|
67
|
+
fovAngle: number;
|
|
68
|
+
fovRadius: number;
|
|
69
|
+
heading: number;
|
|
70
|
+
height: number;
|
|
71
|
+
latitude: string;
|
|
72
|
+
longitude: string;
|
|
73
|
+
pitch: number;
|
|
74
|
+
roll: number;
|
|
75
|
+
scale: number;
|
|
76
|
+
};
|
|
77
|
+
export declare enum DroneMarkerType {
|
|
78
|
+
Default = "Default",
|
|
79
|
+
Gate = "Gate",
|
|
80
|
+
Indoor = "Indoor"
|
|
81
|
+
}
|
|
82
|
+
export type DroneMarker = {
|
|
83
|
+
type: DroneMarkerType;
|
|
84
|
+
name: string;
|
|
85
|
+
cameraExid: string;
|
|
86
|
+
transform: DroneMarkerTransform;
|
|
87
|
+
};
|
|
88
|
+
export type DroneImageryPlan = {
|
|
89
|
+
cesiumId: number;
|
|
90
|
+
uuid: string;
|
|
91
|
+
name: string;
|
|
92
|
+
alpha: number;
|
|
93
|
+
order: number;
|
|
94
|
+
};
|
|
95
|
+
export type DroneBimData = {
|
|
96
|
+
cesiumId: string | null;
|
|
97
|
+
iModelId: string | null;
|
|
98
|
+
changeSetId: string | null;
|
|
99
|
+
isItwin: boolean;
|
|
15
100
|
};
|
|
16
101
|
export declare enum DroneUrlParams {
|
|
17
102
|
Date = "date"
|
|
18
103
|
}
|
|
104
|
+
export declare enum DroneProvider {
|
|
105
|
+
Evercam = "Evercam",
|
|
106
|
+
DroneDeploy = "DroneDeploy"
|
|
107
|
+
}
|
|
@@ -46,4 +46,15 @@ type _EvercamApiError = {
|
|
|
46
46
|
innerError?: _EvercamApiError;
|
|
47
47
|
};
|
|
48
48
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
49
|
+
export type AppError = {
|
|
50
|
+
statusCode?: number;
|
|
51
|
+
message?: string;
|
|
52
|
+
redirect?: {
|
|
53
|
+
url?: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
delay?: number;
|
|
56
|
+
};
|
|
57
|
+
withSupportMessage?: boolean;
|
|
58
|
+
isWidget?: boolean;
|
|
59
|
+
};
|
|
49
60
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprDirection, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, RoiShapeType, Timestamp } from "@evercam/api/types";
|
|
1
|
+
import { AnprDirection, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, RoiDirection, RoiShapeType, RoiType, Timestamp, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
export declare enum GateReportDetectionType {
|
|
3
3
|
Auto = "auto",
|
|
4
4
|
Manual = "manual",
|
|
@@ -249,6 +249,7 @@ export type AnprExportBaseParams = {
|
|
|
249
249
|
toDate?: string;
|
|
250
250
|
camerasExid?: CameraExid[];
|
|
251
251
|
isPublic?: boolean;
|
|
252
|
+
columns?: string[];
|
|
252
253
|
};
|
|
253
254
|
export type EventsExportRequestParameters = AnprExportBaseParams & {
|
|
254
255
|
eventType: GateReportEventType;
|
|
@@ -259,23 +260,19 @@ export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & {
|
|
|
259
260
|
export type LegacyAnprExportParams = AnprExportBaseParams & {
|
|
260
261
|
direction?: AnprDirection;
|
|
261
262
|
};
|
|
262
|
-
type X1 = number;
|
|
263
|
-
type Y1 = number;
|
|
264
|
-
type X2 = number;
|
|
265
|
-
type Y2 = number;
|
|
266
263
|
export type GateReportROIShape = {
|
|
267
|
-
coordinates: [
|
|
264
|
+
coordinates: TuplePoint2D[];
|
|
268
265
|
type: RoiShapeType;
|
|
269
266
|
};
|
|
270
267
|
export type GateReportROI = {
|
|
271
268
|
cameraex?: string;
|
|
272
269
|
fromDate?: string;
|
|
273
|
-
directionFilter?:
|
|
270
|
+
directionFilter?: RoiDirection;
|
|
274
271
|
id?: number;
|
|
275
272
|
insertedAt?: Timestamp;
|
|
276
273
|
isActive?: boolean;
|
|
277
274
|
name?: string;
|
|
278
|
-
roiType?:
|
|
275
|
+
roiType?: RoiType;
|
|
279
276
|
updatedAt?: Timestamp;
|
|
280
277
|
shapes?: GateReportROIShape[];
|
|
281
278
|
};
|
|
@@ -318,7 +315,7 @@ export type RoisQueryParams = {
|
|
|
318
315
|
id: number;
|
|
319
316
|
name: string;
|
|
320
317
|
fromDate: string;
|
|
321
|
-
roiType:
|
|
318
|
+
roiType: RoiType;
|
|
322
319
|
isActive: boolean;
|
|
323
320
|
directionFilter: string;
|
|
324
321
|
sort: string;
|
|
@@ -327,11 +324,10 @@ export type GateReportRoiRequestPayload = {
|
|
|
327
324
|
id: number;
|
|
328
325
|
cameraExid: string;
|
|
329
326
|
name: string;
|
|
330
|
-
roiType:
|
|
327
|
+
roiType: RoiType;
|
|
331
328
|
isActive: true;
|
|
332
329
|
fromDate: string;
|
|
333
330
|
shapes: GateReportROIShape[];
|
|
334
331
|
directionFilter: string;
|
|
335
332
|
note: string;
|
|
336
333
|
};
|
|
337
|
-
export {};
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
2
|
+
export declare enum VehicleClassifierSource {
|
|
3
|
+
Local = "local",
|
|
4
|
+
Api = "api"
|
|
5
|
+
}
|
|
6
|
+
export type GateReportCoolifyStatus = {
|
|
7
|
+
appUuid: string | null;
|
|
8
|
+
name: string | null;
|
|
9
|
+
serverUuid: string | null;
|
|
10
|
+
serverName: string | null;
|
|
11
|
+
appUrl: string | null;
|
|
12
|
+
status: string | null;
|
|
13
|
+
isRunning: boolean;
|
|
14
|
+
imageTag?: string | null;
|
|
15
|
+
fqdn: string | null;
|
|
16
|
+
updatedAt: string | null;
|
|
17
|
+
};
|
|
18
|
+
export type GateReportProjectMeta = {
|
|
19
|
+
exid: ProjectExid;
|
|
20
|
+
name: string | null;
|
|
21
|
+
timezone: string | null;
|
|
22
|
+
featureFlags: string[] | null;
|
|
23
|
+
};
|
|
24
|
+
export type GateReportCameraMeta = {
|
|
25
|
+
exid: CameraExid;
|
|
26
|
+
name: string | null;
|
|
27
|
+
status: string | null;
|
|
28
|
+
kitSerial: string | null;
|
|
29
|
+
kitAlarms: string[] | Record<string, unknown> | null;
|
|
30
|
+
};
|
|
31
|
+
export type GateReportManagedApp = {
|
|
32
|
+
id: number;
|
|
33
|
+
projectExid: ProjectExid;
|
|
34
|
+
anprCameraExid: CameraExid;
|
|
35
|
+
contextCameraExid: CameraExid | null;
|
|
36
|
+
coolifyAppId: string | null;
|
|
37
|
+
startDate: DateType | null;
|
|
38
|
+
endDate: DateType | null;
|
|
39
|
+
startHour: number;
|
|
40
|
+
endHour: number;
|
|
41
|
+
enabled: boolean;
|
|
42
|
+
enableEnrichments: boolean;
|
|
43
|
+
enableGemini: boolean;
|
|
44
|
+
geminiStartHour: number;
|
|
45
|
+
geminiEndHour: number;
|
|
46
|
+
reviewModel: string;
|
|
47
|
+
enrichmentModel: string;
|
|
48
|
+
reviewerPromptSlug: string | null;
|
|
49
|
+
geminiTimeoutSeconds: number;
|
|
50
|
+
geminiMaxAttempts: number;
|
|
51
|
+
vehicleClassifierSource: VehicleClassifierSource;
|
|
52
|
+
snapshotDelaySeconds: number;
|
|
53
|
+
snapshotRequestTimeout: number;
|
|
54
|
+
plateClassifierThreshold: number;
|
|
55
|
+
plateClassifierHighConfidence: number;
|
|
56
|
+
maxPriorEvents: number;
|
|
57
|
+
recordsFetchInterval: number;
|
|
58
|
+
priorRecentLimit: number;
|
|
59
|
+
priorSimilarLimit: number;
|
|
60
|
+
insertedAt: DateType;
|
|
61
|
+
updatedAt: DateType;
|
|
62
|
+
coolify: GateReportCoolifyStatus | null;
|
|
63
|
+
project: GateReportProjectMeta | null;
|
|
64
|
+
anprCamera: GateReportCameraMeta | null;
|
|
65
|
+
contextCamera: GateReportCameraMeta | null;
|
|
66
|
+
anprHasRoi: boolean;
|
|
67
|
+
contextHasRoi: boolean;
|
|
68
|
+
lastProcessedEventAt: DateType | null;
|
|
69
|
+
lastUnprocessedEventAt: DateType | null;
|
|
70
|
+
};
|
|
71
|
+
export type GateReportAppEvents = {
|
|
72
|
+
anprCameraExid: CameraExid;
|
|
73
|
+
lastProcessedEventAt: DateType | null;
|
|
74
|
+
lastUnprocessedEventAt: DateType | null;
|
|
75
|
+
};
|
|
76
|
+
export type AppConfigFormValue = {
|
|
77
|
+
contextCameraExid: string | null;
|
|
78
|
+
startDate: DateType | null;
|
|
79
|
+
endDate: DateType | null;
|
|
80
|
+
startHour: number;
|
|
81
|
+
endHour: number;
|
|
82
|
+
enabled: boolean;
|
|
83
|
+
enableEnrichments: boolean;
|
|
84
|
+
enableGemini: boolean;
|
|
85
|
+
geminiStartHour: number;
|
|
86
|
+
geminiEndHour: number;
|
|
87
|
+
reviewModel: string;
|
|
88
|
+
enrichmentModel: string;
|
|
89
|
+
reviewerPromptSlug: string | null;
|
|
90
|
+
geminiTimeoutSeconds: number;
|
|
91
|
+
geminiMaxAttempts: number;
|
|
92
|
+
vehicleClassifierSource: VehicleClassifierSource;
|
|
93
|
+
snapshotDelaySeconds: number;
|
|
94
|
+
snapshotRequestTimeout: number;
|
|
95
|
+
plateClassifierThreshold: number;
|
|
96
|
+
plateClassifierHighConfidence: number;
|
|
97
|
+
recordsFetchInterval: number;
|
|
98
|
+
priorRecentLimit: number;
|
|
99
|
+
priorSimilarLimit: number;
|
|
100
|
+
};
|
|
101
|
+
export type CreateGateReportAppPayload = {
|
|
102
|
+
projectExid: ProjectExid;
|
|
103
|
+
anprCameraExid: CameraExid;
|
|
104
|
+
contextCameraExid?: CameraExid | null;
|
|
105
|
+
coolifyServerUuid: string;
|
|
106
|
+
imageTag?: string;
|
|
107
|
+
geminiApiKey?: string | null;
|
|
108
|
+
startDate?: DateType | null;
|
|
109
|
+
endDate?: DateType | null;
|
|
110
|
+
startHour?: number;
|
|
111
|
+
endHour?: number;
|
|
112
|
+
enabled?: boolean;
|
|
113
|
+
enableEnrichments?: boolean;
|
|
114
|
+
enableGemini?: boolean;
|
|
115
|
+
geminiStartHour?: number;
|
|
116
|
+
geminiEndHour?: number;
|
|
117
|
+
reviewModel?: string;
|
|
118
|
+
enrichmentModel?: string;
|
|
119
|
+
reviewerPromptSlug?: string | null;
|
|
120
|
+
geminiTimeoutSeconds?: number;
|
|
121
|
+
geminiMaxAttempts?: number;
|
|
122
|
+
vehicleClassifierSource?: VehicleClassifierSource;
|
|
123
|
+
snapshotDelaySeconds?: number;
|
|
124
|
+
snapshotRequestTimeout?: number;
|
|
125
|
+
plateClassifierThreshold?: number;
|
|
126
|
+
plateClassifierHighConfidence?: number;
|
|
127
|
+
maxPriorEvents?: number;
|
|
128
|
+
recordsFetchInterval?: number;
|
|
129
|
+
priorRecentLimit?: number;
|
|
130
|
+
priorSimilarLimit?: number;
|
|
131
|
+
};
|
|
132
|
+
export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
|
|
133
|
+
export type GateReportManagementListParams = {
|
|
134
|
+
projectExid?: ProjectExid;
|
|
135
|
+
includeStatus?: boolean;
|
|
136
|
+
page?: number;
|
|
137
|
+
limit?: number;
|
|
138
|
+
};
|
|
139
|
+
export type CoolifyProjectOption = {
|
|
140
|
+
uuid: string;
|
|
141
|
+
name: string;
|
|
142
|
+
description: string | null;
|
|
143
|
+
};
|
|
144
|
+
export type CoolifyServerOption = {
|
|
145
|
+
uuid: string;
|
|
146
|
+
name: string;
|
|
147
|
+
isReachable: boolean;
|
|
148
|
+
isUsable: boolean;
|
|
149
|
+
};
|
|
150
|
+
export declare enum AppRuntimeState {
|
|
151
|
+
Running = "running",
|
|
152
|
+
Stopped = "stopped",
|
|
153
|
+
Restarting = "restarting"
|
|
154
|
+
}
|
|
155
|
+
export type AppRuntimeStateRequest = {
|
|
156
|
+
state: AppRuntimeState;
|
|
157
|
+
};
|
|
158
|
+
export type AppActionResponse = {
|
|
159
|
+
success: boolean;
|
|
160
|
+
message: string | null;
|
|
161
|
+
appUuid: string | null;
|
|
162
|
+
state: AppRuntimeState | null;
|
|
163
|
+
};
|
|
164
|
+
export type APIEnvelope<T> = {
|
|
165
|
+
success: boolean;
|
|
166
|
+
data: T | null;
|
|
167
|
+
message: string;
|
|
168
|
+
};
|
|
169
|
+
export type CreateGateReportAppResponse = {
|
|
170
|
+
created: boolean;
|
|
171
|
+
id: number | null;
|
|
172
|
+
data: GateReportManagedApp | null;
|
|
173
|
+
count: number | null;
|
|
174
|
+
message: string;
|
|
175
|
+
};
|
|
@@ -49,6 +49,7 @@ export * from "./kit";
|
|
|
49
49
|
export * from "./auditLogs";
|
|
50
50
|
export * from "./snapshots";
|
|
51
51
|
export * from "./siteAnalytics";
|
|
52
|
+
export * from "./siteAnalyticsManagement";
|
|
52
53
|
export * from "./widget";
|
|
53
54
|
export * from "./countries";
|
|
54
55
|
export * from "./automation";
|
|
@@ -62,3 +63,6 @@ export * from "./authz";
|
|
|
62
63
|
export * from "./oauth";
|
|
63
64
|
export * from "./ring";
|
|
64
65
|
export * from "./smartSeach";
|
|
66
|
+
export * from "./siteView";
|
|
67
|
+
export * from "./aiConfigs";
|
|
68
|
+
export * from "./gateReportManagement";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationParams, DateType, JsonValue } from "@evercam/api/types";
|
|
1
|
+
import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
|
|
3
3
|
export declare enum IngestProcessingStatus {
|
|
4
4
|
Completed = "completed",
|
|
@@ -48,6 +48,7 @@ export type DroneUploadItem = {
|
|
|
48
48
|
modelZip: string;
|
|
49
49
|
orthomosaicZip: string;
|
|
50
50
|
reportPdf: string;
|
|
51
|
+
processingLog: string;
|
|
51
52
|
uploadedBy: string;
|
|
52
53
|
processingStatus: IngestProcessingStatus | string;
|
|
53
54
|
modelCesiumAssetId: string;
|
|
@@ -82,7 +83,7 @@ export type DroneUploadUpdateRequestPayload = {
|
|
|
82
83
|
};
|
|
83
84
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
84
85
|
date: DateType;
|
|
85
|
-
points: [
|
|
86
|
+
points: TuplePoint2D[];
|
|
86
87
|
operation: string;
|
|
87
88
|
};
|
|
88
89
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -45,7 +45,8 @@ export declare enum KitAlarm {
|
|
|
45
45
|
NoHdd = "no_hdd",
|
|
46
46
|
MissingRouterInfo = "missing_router_info",
|
|
47
47
|
AcFailure = "ac_failure",
|
|
48
|
-
LowBattery = "low_battery"
|
|
48
|
+
LowBattery = "low_battery",
|
|
49
|
+
GeneratorOff = "generator_off"
|
|
49
50
|
}
|
|
50
51
|
export declare enum KitMetricId {
|
|
51
52
|
SolarCharger = "solar_charger",
|
package/dist/api/types/map.d.ts
CHANGED
|
@@ -2,3 +2,15 @@ export declare enum MapType {
|
|
|
2
2
|
Hybrid = "hybrid",
|
|
3
3
|
Terrain = "terrain"
|
|
4
4
|
}
|
|
5
|
+
export type MapView = {
|
|
6
|
+
east?: number;
|
|
7
|
+
floorID?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
mapStyle?: MapType;
|
|
10
|
+
name: string;
|
|
11
|
+
north?: number;
|
|
12
|
+
projectId: string;
|
|
13
|
+
projectName: string;
|
|
14
|
+
south?: number;
|
|
15
|
+
west?: number;
|
|
16
|
+
};
|
|
@@ -93,7 +93,7 @@ export type MediaCreateRequestPayload = {
|
|
|
93
93
|
cameraExid?: string;
|
|
94
94
|
requestedBy?: string;
|
|
95
95
|
notes?: string;
|
|
96
|
-
category?: ClipsCategory;
|
|
96
|
+
category?: MediaCategory | ClipsCategory;
|
|
97
97
|
isUrgent?: boolean;
|
|
98
98
|
storeAsType?: MediaType;
|
|
99
99
|
};
|
|
@@ -108,6 +108,11 @@ export declare enum ClipsCategory {
|
|
|
108
108
|
Marketing = "marketing",
|
|
109
109
|
BestPracticies = "best_practices"
|
|
110
110
|
}
|
|
111
|
+
export declare enum MediaCategory {
|
|
112
|
+
Weather = "weather",
|
|
113
|
+
SmartSearch = "smart_search",
|
|
114
|
+
Copilot = "copilot"
|
|
115
|
+
}
|
|
111
116
|
export type MediaDeleteRequestPayload = {
|
|
112
117
|
timelapseIds: (string | number)[];
|
|
113
118
|
compareIds: (string | number)[];
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { GeoPoint, TuplePoint2D } from "./shared";
|
|
2
|
+
import { MapType } from "./map";
|
|
3
|
+
export type PlannerListItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
projectName: string;
|
|
7
|
+
projectLocation: string;
|
|
8
|
+
createdDate: string;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
lastUpdatedBy?: string;
|
|
12
|
+
camerasCount?: number;
|
|
13
|
+
hasPlan?: boolean;
|
|
14
|
+
thumbnailUrl?: string;
|
|
15
|
+
projectMapType?: MapType;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
};
|
|
18
|
+
export type PolygonPath = TuplePoint2D[];
|
|
3
19
|
export type PolygonCoordinates = PolygonPath[];
|
|
4
20
|
export interface GeoJSONPolygon {
|
|
5
21
|
type: "Polygon";
|
|
@@ -47,6 +63,43 @@ export declare enum ERoles {
|
|
|
47
63
|
Admin = "admin",
|
|
48
64
|
User = "user"
|
|
49
65
|
}
|
|
66
|
+
export type PlannerOverlay = {
|
|
67
|
+
imageUrl?: string;
|
|
68
|
+
corners?: {
|
|
69
|
+
topLeft: GeoPoint;
|
|
70
|
+
topRight: GeoPoint;
|
|
71
|
+
bottomLeft: GeoPoint;
|
|
72
|
+
bottomRight: GeoPoint;
|
|
73
|
+
} | null;
|
|
74
|
+
};
|
|
75
|
+
export type PlannerCameraMarker = {
|
|
76
|
+
name?: string;
|
|
77
|
+
location?: GeoPoint;
|
|
78
|
+
heading?: number;
|
|
79
|
+
fovAngle?: number;
|
|
80
|
+
fovRadius?: number;
|
|
81
|
+
isVisible?: boolean;
|
|
82
|
+
color?: string;
|
|
83
|
+
};
|
|
84
|
+
export type SitePlanBounds = {
|
|
85
|
+
northEast: GeoPoint;
|
|
86
|
+
southWest: GeoPoint;
|
|
87
|
+
};
|
|
88
|
+
export type SitePlan = {
|
|
89
|
+
id?: string;
|
|
90
|
+
projectId?: string;
|
|
91
|
+
owner?: string;
|
|
92
|
+
lastUpdatedBy?: string;
|
|
93
|
+
projectName?: string;
|
|
94
|
+
projectLocation?: string;
|
|
95
|
+
projectMapType?: EMapTypes;
|
|
96
|
+
projectBounds?: SitePlanBounds;
|
|
97
|
+
overlay?: PlannerOverlay;
|
|
98
|
+
markers?: PlannerCameraMarker[];
|
|
99
|
+
thumbnailUrl?: string;
|
|
100
|
+
createdDate?: string;
|
|
101
|
+
updatedDate?: string;
|
|
102
|
+
};
|
|
50
103
|
export interface IDrawControl {
|
|
51
104
|
_toolbars: {
|
|
52
105
|
draw: {
|