@evercam/api 1.0.0-4ad68c787 → 1.0.0-4af288605
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 +6 -0
- package/dist/api/api/3dFirebaseApi.d.ts +176 -0
- package/dist/api/api/adminApi.d.ts +380 -0
- package/dist/api/api/aiApi.d.ts +159 -0
- package/dist/api/api/authzApi.d.ts +37 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +346 -0
- package/dist/api/api/evercamLabsApi.d.ts +45 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +149 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +281 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/{types → api/types}/analytics.d.ts +235 -106
- package/dist/{types → api/types}/anpr.d.ts +64 -19
- package/dist/{types → api/types}/auditLogs.d.ts +19 -1
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +95 -0
- package/dist/{types → api/types}/axios.d.ts +23 -4
- package/dist/{types → api/types}/bim.d.ts +28 -5
- package/dist/{types → api/types}/camera.d.ts +118 -145
- package/dist/api/types/comments.d.ts +57 -0
- package/dist/api/types/company.d.ts +115 -0
- package/dist/{types → api/types}/compare.d.ts +20 -5
- package/dist/{types → api/types}/connector.d.ts +9 -6
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/copilot.d.ts +19 -13
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +116 -0
- package/dist/api/types/drone.d.ts +107 -0
- package/dist/{types → api/types}/errors.d.ts +24 -0
- package/dist/{types → api/types}/gateReport.d.ts +100 -159
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hdd.d.ts +88 -0
- package/dist/{types → api/types}/index.d.ts +19 -3
- package/dist/api/types/ingest.d.ts +147 -0
- package/dist/{types → api/types}/kit.d.ts +94 -6
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +57 -0
- package/dist/{types → api/types}/nvr.d.ts +2 -1
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +132 -0
- package/dist/api/types/posthog.d.ts +33 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
- package/dist/api/types/project.d.ts +247 -0
- package/dist/{types → api/types}/recording.d.ts +6 -12
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +1 -0
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/router.d.ts +20 -1
- package/dist/{types → api/types}/shared.d.ts +33 -21
- package/dist/api/types/shares.d.ts +58 -0
- package/dist/{types → api/types}/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +287 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +104 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +23 -5
- package/dist/{types → api/types}/user.d.ts +105 -37
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +106 -20
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +2485 -1038
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +324 -0
- package/dist/shared/types/imagePlayer.d.ts +41 -0
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/package.json +8 -7
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -288
- package/dist/api/aiApi.d.ts +0 -73
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -51
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/detections.d.ts +0 -62
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -5
- package/dist/types/sitePlanner.d.ts +0 -23
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprDirection,
|
|
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",
|
|
@@ -40,7 +40,59 @@ export declare enum DetectionLabel {
|
|
|
40
40
|
TruckMixer = "truck-mixer",
|
|
41
41
|
TruckMountedMobileCrane = "truck-mounted-mobile-crane",
|
|
42
42
|
Unknown = "unknown",
|
|
43
|
-
Worker = "worker"
|
|
43
|
+
Worker = "worker",
|
|
44
|
+
Rubble = "rubble",
|
|
45
|
+
Puddle = "puddle",
|
|
46
|
+
DirtGravelCementPile = "dirt_gravel_cement_pile",
|
|
47
|
+
DetachedExcavatorBucket = "detached_excavator_bucket",
|
|
48
|
+
IntermediateBulkContainer = "intermediate_bulk_container",
|
|
49
|
+
WoodenPallet = "wooden_pallet",
|
|
50
|
+
ShippingContainer = "shipping_container",
|
|
51
|
+
AirCompressor = "air_compressor",
|
|
52
|
+
DryMortarSilo = "dry_mortar_silo",
|
|
53
|
+
Fence = "fence",
|
|
54
|
+
Brick = "brick",
|
|
55
|
+
Barrel = "barrel",
|
|
56
|
+
Cardboard = "cardboard",
|
|
57
|
+
CardboardBox = "cardboard_box",
|
|
58
|
+
CementBag = "cement_bag",
|
|
59
|
+
ConcreteBlock = "concrete_block",
|
|
60
|
+
ConcretePipe = "concrete_pipe",
|
|
61
|
+
ConcreteSlab = "concrete_slab",
|
|
62
|
+
Door = "door",
|
|
63
|
+
PlasticWrap = "plastic_wrap",
|
|
64
|
+
ContainerOffice = "container_office",
|
|
65
|
+
ElectricalPole = "electrical_pole",
|
|
66
|
+
ElectricalBox = "electrical_box",
|
|
67
|
+
FireHydrant = "fire_hydrant",
|
|
68
|
+
FireExtinguisher = "fire-extinguisher",
|
|
69
|
+
HoseReel = "hose_reel",
|
|
70
|
+
Ladder = "ladder",
|
|
71
|
+
MetalBeam = "metal_beam",
|
|
72
|
+
MetalPipe = "metal_pipe",
|
|
73
|
+
Pallet = "pallet",
|
|
74
|
+
Person = "person",
|
|
75
|
+
Pillar = "pillar",
|
|
76
|
+
PlasticBin = "plastic_bin",
|
|
77
|
+
PlasticBucket = "plastic_bucket",
|
|
78
|
+
PlasticPipe = "plastic_pipe",
|
|
79
|
+
PublicToilet = "public_toilet",
|
|
80
|
+
Sign = "sign",
|
|
81
|
+
SiteToolbox = "site_toolbox",
|
|
82
|
+
StreetSink = "street_sink",
|
|
83
|
+
TrafficBarrier = "traffic_barrier",
|
|
84
|
+
TrafficCone = "traffic_cone",
|
|
85
|
+
Wall = "wall",
|
|
86
|
+
WasteContainer = "waste_container",
|
|
87
|
+
WaterStorageTank = "water_storage_tank",
|
|
88
|
+
Wheelbarrow = "wheelbarrow",
|
|
89
|
+
Window = "window",
|
|
90
|
+
WoodPlank = "wood_plank",
|
|
91
|
+
CableReel = "cable_reel",
|
|
92
|
+
AirConditioningSystem = "air_conditioning_system",
|
|
93
|
+
WoodenBox = "wooden_box",
|
|
94
|
+
PlasticBag = "plastic_bag",
|
|
95
|
+
MaterialStack = "material_stack"
|
|
44
96
|
}
|
|
45
97
|
export declare enum SegmentLabel {
|
|
46
98
|
AirCompressor = "air_compressor",
|
|
@@ -95,8 +147,8 @@ export declare enum GateReportVehicleType {
|
|
|
95
147
|
Unknown = "unknown"
|
|
96
148
|
}
|
|
97
149
|
export type GateReportVehicleTypeItem = {
|
|
98
|
-
|
|
99
|
-
|
|
150
|
+
label: string;
|
|
151
|
+
value: GateReportVehicleType;
|
|
100
152
|
};
|
|
101
153
|
export type GateReportEvent = {
|
|
102
154
|
id: number;
|
|
@@ -122,10 +174,10 @@ export type GateReportLeftEvent = GateReportEvent & {
|
|
|
122
174
|
};
|
|
123
175
|
export type GateReportVerifiedDay = {
|
|
124
176
|
id: number;
|
|
125
|
-
day:
|
|
177
|
+
day: string;
|
|
126
178
|
isMatched: boolean;
|
|
127
|
-
insertedAt:
|
|
128
|
-
updatedAt:
|
|
179
|
+
insertedAt: string;
|
|
180
|
+
updatedAt: string;
|
|
129
181
|
verifiedBy: string;
|
|
130
182
|
cameraExid: CameraExid;
|
|
131
183
|
projectExid: ProjectExid;
|
|
@@ -143,16 +195,16 @@ export type EventsCount = {
|
|
|
143
195
|
source: GateReportDataSource;
|
|
144
196
|
};
|
|
145
197
|
export type YearlyEventCount = EventsCount & {
|
|
146
|
-
year:
|
|
198
|
+
year: string;
|
|
147
199
|
};
|
|
148
200
|
export type MonthlyEventCount = EventsCount & {
|
|
149
|
-
month:
|
|
201
|
+
month: string;
|
|
150
202
|
};
|
|
151
203
|
export type DailyEventCount = EventsCount & {
|
|
152
|
-
day:
|
|
204
|
+
day: string;
|
|
153
205
|
};
|
|
154
206
|
export type HourlyEventCount = {
|
|
155
|
-
hour:
|
|
207
|
+
hour: string;
|
|
156
208
|
count: number;
|
|
157
209
|
};
|
|
158
210
|
export type EventCountRequestPayload = {
|
|
@@ -165,31 +217,13 @@ export type EventCountResponsePayload = {
|
|
|
165
217
|
months?: MonthlyEventCount[];
|
|
166
218
|
years?: YearlyEventCount[];
|
|
167
219
|
};
|
|
168
|
-
export type ProcessedDaysRequestPayload = {
|
|
169
|
-
apiId?: string;
|
|
170
|
-
apiKey?: string;
|
|
171
|
-
isPublic?: Boolean;
|
|
172
|
-
};
|
|
173
|
-
export type EventsRequestPayload = {
|
|
174
|
-
apiId?: string;
|
|
175
|
-
apiKey?: string;
|
|
176
|
-
camerasExid?: CameraExid[];
|
|
177
|
-
cameras?: string[];
|
|
178
|
-
eventType?: GateReportEventType;
|
|
179
|
-
fromDate?: DateTime;
|
|
180
|
-
isPublic?: boolean;
|
|
181
|
-
toDate?: DateTime;
|
|
182
|
-
truckTypes?: GateReportVehicleType[];
|
|
183
|
-
vehicleTypes?: string[];
|
|
184
|
-
} & PaginationParams;
|
|
185
|
-
export type EventsResponsePayload = PaginatedItems<GateReportEvent>;
|
|
186
220
|
export declare enum GateReportDataSource {
|
|
187
221
|
Anpr = "anpr",
|
|
188
222
|
Events = "events"
|
|
189
223
|
}
|
|
190
224
|
export type GateReportResponsePayload = {
|
|
191
225
|
source: GateReportDataSource;
|
|
192
|
-
results: PaginatedItems<
|
|
226
|
+
results: PaginatedItems<AnprEvent>;
|
|
193
227
|
};
|
|
194
228
|
export declare enum GateReportEventDirection {
|
|
195
229
|
In = "in",
|
|
@@ -199,53 +233,46 @@ export declare enum GateReportEventDirection {
|
|
|
199
233
|
export type GatReportRequestPayload = {
|
|
200
234
|
camerasExid?: CameraExid[];
|
|
201
235
|
eventType?: GateReportEventType;
|
|
202
|
-
fromDate?:
|
|
236
|
+
fromDate?: string;
|
|
203
237
|
isPublic?: boolean;
|
|
204
|
-
toDate?:
|
|
238
|
+
toDate?: string;
|
|
205
239
|
vehicleTypes?: GateReportVehicleType[];
|
|
206
240
|
} & PaginationParams;
|
|
207
241
|
export declare enum GateReportExportType {
|
|
208
242
|
Pdf = "pdf",
|
|
209
243
|
Csv = "csv"
|
|
210
244
|
}
|
|
211
|
-
export type
|
|
212
|
-
vehicleTypes: GateReportVehicleType[];
|
|
213
|
-
fileType: GateReportExportType;
|
|
214
|
-
fromDate: DateTimeSpaceSeparated;
|
|
215
|
-
toDate: DateTimeSpaceSeparated;
|
|
216
|
-
camerasExid: CameraExid[];
|
|
217
|
-
eventType: GateReportEventType;
|
|
218
|
-
};
|
|
219
|
-
export type AnprBasedGateReportExportRequestParams = {
|
|
245
|
+
export type AnprExportBaseParams = {
|
|
220
246
|
vehicleTypes?: GateReportVehicleType[];
|
|
221
247
|
fileType?: GateReportExportType;
|
|
222
|
-
fromDate?:
|
|
223
|
-
toDate?:
|
|
248
|
+
fromDate?: string;
|
|
249
|
+
toDate?: string;
|
|
224
250
|
camerasExid?: CameraExid[];
|
|
251
|
+
isPublic?: boolean;
|
|
252
|
+
columns?: string[];
|
|
253
|
+
};
|
|
254
|
+
export type EventsExportRequestParameters = AnprExportBaseParams & {
|
|
255
|
+
eventType: GateReportEventType;
|
|
256
|
+
};
|
|
257
|
+
export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & {
|
|
258
|
+
direction?: AnprDirection;
|
|
259
|
+
};
|
|
260
|
+
export type LegacyAnprExportParams = AnprExportBaseParams & {
|
|
225
261
|
direction?: AnprDirection;
|
|
226
262
|
};
|
|
227
|
-
type X1 = number;
|
|
228
|
-
type Y1 = number;
|
|
229
|
-
type X2 = number;
|
|
230
|
-
type Y2 = number;
|
|
231
|
-
export declare enum GateReportROIShapeType {
|
|
232
|
-
Rectangle = "rectangle",
|
|
233
|
-
Direction = "direction",
|
|
234
|
-
Line = "line"
|
|
235
|
-
}
|
|
236
263
|
export type GateReportROIShape = {
|
|
237
|
-
coordinates: [
|
|
238
|
-
type:
|
|
264
|
+
coordinates: TuplePoint2D[];
|
|
265
|
+
type: RoiShapeType;
|
|
239
266
|
};
|
|
240
267
|
export type GateReportROI = {
|
|
241
268
|
cameraex?: string;
|
|
242
269
|
fromDate?: string;
|
|
243
|
-
directionFilter?:
|
|
270
|
+
directionFilter?: RoiDirection;
|
|
244
271
|
id?: number;
|
|
245
272
|
insertedAt?: Timestamp;
|
|
246
|
-
|
|
273
|
+
isActive?: boolean;
|
|
247
274
|
name?: string;
|
|
248
|
-
roiType?:
|
|
275
|
+
roiType?: RoiType;
|
|
249
276
|
updatedAt?: Timestamp;
|
|
250
277
|
shapes?: GateReportROIShape[];
|
|
251
278
|
};
|
|
@@ -262,89 +289,19 @@ export type GateReportCamera = {
|
|
|
262
289
|
last_published_day: DateType;
|
|
263
290
|
last_processed_day: DateType;
|
|
264
291
|
};
|
|
265
|
-
export type GateReportProject = {
|
|
266
|
-
exid: string;
|
|
267
|
-
name: string;
|
|
268
|
-
status: string;
|
|
269
|
-
featureFlags: ProjectFeatureFlag;
|
|
270
|
-
cameras: GateReportCamera[];
|
|
271
|
-
};
|
|
272
|
-
export type AnalyticsParameters = {
|
|
273
|
-
id: number;
|
|
274
|
-
cameraex: string;
|
|
275
|
-
processingType: string;
|
|
276
|
-
startDate: DateTime;
|
|
277
|
-
endDate: DateTime;
|
|
278
|
-
skipWeekend: boolean;
|
|
279
|
-
hourSiteOpening: number;
|
|
280
|
-
hourSiteClosure: number;
|
|
281
|
-
gateReportActive: boolean;
|
|
282
|
-
countingActive: boolean;
|
|
283
|
-
queueSystem: string;
|
|
284
|
-
reprocess: boolean;
|
|
285
|
-
framesToSkip: number;
|
|
286
|
-
detection_model: string;
|
|
287
|
-
detectionThreshold: number;
|
|
288
|
-
printLogsFrame: number;
|
|
289
|
-
crossingVectorAngleLimit: number;
|
|
290
|
-
minTruckLife: number;
|
|
291
|
-
insideMinTime: number;
|
|
292
|
-
trackerMaxAge: number;
|
|
293
|
-
trackerMinHit: number;
|
|
294
|
-
snapshotUpload: boolean;
|
|
295
|
-
snapshotPerSecond: number;
|
|
296
|
-
detectionClasses: string;
|
|
297
|
-
deepEventEndpointUrl: string;
|
|
298
|
-
timestampCalculation: string;
|
|
299
|
-
matchingEmbeddedDstCoeff: number;
|
|
300
|
-
matchingTimeCoeff: number;
|
|
301
|
-
matchingQueueOrderCoeff: number;
|
|
302
|
-
rabbitmqServerUrl: string;
|
|
303
|
-
rabbitmqEventsQueue: string;
|
|
304
|
-
rabbitmqEventsExchange: string;
|
|
305
|
-
rabbitmqCountingQueue: string;
|
|
306
|
-
rabbitmqCountingExchange: string;
|
|
307
|
-
dangerZones: boolean;
|
|
308
|
-
workflows: boolean;
|
|
309
|
-
linkedAnprCameras: Record<string, unknown>;
|
|
310
|
-
};
|
|
311
292
|
export type VerifiedDaysQueryParams = PaginationParams & {
|
|
312
293
|
projectExid: ProjectExid;
|
|
313
294
|
camerasExid: CameraExid[];
|
|
314
295
|
verifiedBy: string;
|
|
315
296
|
isMatched: boolean;
|
|
316
|
-
insertedAt:
|
|
317
|
-
updatedAt:
|
|
297
|
+
insertedAt: string[];
|
|
298
|
+
updatedAt: string[];
|
|
318
299
|
day: string;
|
|
319
300
|
};
|
|
320
|
-
export type EventUpdateRequestPayload = {
|
|
321
|
-
cameraex: string;
|
|
322
|
-
roiId: number;
|
|
323
|
-
eventType: string;
|
|
324
|
-
eventTime: "2024-12-13T14:25:58.066Z";
|
|
325
|
-
truckType: string;
|
|
326
|
-
isPublic: boolean;
|
|
327
|
-
boundingBox: {
|
|
328
|
-
additionalProp1: number;
|
|
329
|
-
additionalProp2: number;
|
|
330
|
-
additionalProp3: number;
|
|
331
|
-
};
|
|
332
|
-
valid: boolean;
|
|
333
|
-
loadState: string;
|
|
334
|
-
embeddingId: number;
|
|
335
|
-
embedding: number[];
|
|
336
|
-
similarityDst: number;
|
|
337
|
-
detectionType: string;
|
|
338
|
-
trackingId: number;
|
|
339
|
-
deliveriesId: number;
|
|
340
|
-
edited: boolean;
|
|
341
|
-
isDeleted: boolean;
|
|
342
|
-
modelVersion: string;
|
|
343
|
-
};
|
|
344
301
|
export type VerifyDayUpdateRequestPayload = {
|
|
345
302
|
camerasExid: string[];
|
|
346
303
|
projectExid: string;
|
|
347
|
-
day:
|
|
304
|
+
day: string;
|
|
348
305
|
isMatched: boolean;
|
|
349
306
|
verifiedBy: string;
|
|
350
307
|
};
|
|
@@ -353,40 +310,24 @@ export type ProcessedDaysQueryParams = {
|
|
|
353
310
|
isPublic: boolean;
|
|
354
311
|
eventType: GateReportEventType;
|
|
355
312
|
};
|
|
356
|
-
export type SecurityMeasurementQueryParams = {
|
|
357
|
-
cameraex: string;
|
|
358
|
-
timestamp: DateTime;
|
|
359
|
-
prompt: string;
|
|
360
|
-
snapshotUrl: string;
|
|
361
|
-
};
|
|
362
|
-
export type ObjectDetectionQueryParams = {
|
|
363
|
-
cameraex: string;
|
|
364
|
-
timestamp: DateTime;
|
|
365
|
-
base64Img: string;
|
|
366
|
-
snapshotUrl: string;
|
|
367
|
-
};
|
|
368
313
|
export type RoisQueryParams = {
|
|
369
|
-
|
|
314
|
+
camerasExid: CameraExid[];
|
|
370
315
|
id: number;
|
|
371
316
|
name: string;
|
|
372
317
|
fromDate: string;
|
|
373
|
-
roiType:
|
|
374
|
-
|
|
318
|
+
roiType: RoiType;
|
|
319
|
+
isActive: boolean;
|
|
375
320
|
directionFilter: string;
|
|
376
321
|
sort: string;
|
|
377
322
|
};
|
|
378
|
-
export type
|
|
379
|
-
id
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
note: string;
|
|
389
|
-
};
|
|
390
|
-
createdBy: string;
|
|
323
|
+
export type GateReportRoiRequestPayload = {
|
|
324
|
+
id: number;
|
|
325
|
+
cameraExid: string;
|
|
326
|
+
name: string;
|
|
327
|
+
roiType: RoiType;
|
|
328
|
+
isActive: true;
|
|
329
|
+
fromDate: string;
|
|
330
|
+
shapes: GateReportROIShape[];
|
|
331
|
+
directionFilter: string;
|
|
332
|
+
note: string;
|
|
391
333
|
};
|
|
392
|
-
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
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export declare enum HddFormat {
|
|
3
|
+
ExFat = "ExFAT",
|
|
4
|
+
HikFs = "HikFS"
|
|
5
|
+
}
|
|
6
|
+
export declare enum HddType {
|
|
7
|
+
Magnetic35 = "3.5\" Magnetic",
|
|
8
|
+
Magnetic25 = "2.5\" Magnetic",
|
|
9
|
+
Ssd25 = "2.5\" SSD"
|
|
10
|
+
}
|
|
11
|
+
export declare enum HddState {
|
|
12
|
+
Blank = "Blank",
|
|
13
|
+
InUse = "In Use",
|
|
14
|
+
ColdStorage = "Cold Storage"
|
|
15
|
+
}
|
|
16
|
+
export declare enum WarehouseLocationIndex {
|
|
17
|
+
IEWarehouse = 1,
|
|
18
|
+
Deployed = 2,
|
|
19
|
+
CustomerStorage = 3,
|
|
20
|
+
USWarehouse = 4,
|
|
21
|
+
AUWarehouse = 5,
|
|
22
|
+
UKWarehouse = 6
|
|
23
|
+
}
|
|
24
|
+
export declare enum WarehouseLocation {
|
|
25
|
+
IEWarehouse = "IE Warehouse",
|
|
26
|
+
Deployed = "Deployed",
|
|
27
|
+
CustomerStorage = "Customer Storage",
|
|
28
|
+
USWarehouse = "US Warehouse",
|
|
29
|
+
AUWarehouse = "AU Warehouse",
|
|
30
|
+
UKWarehouse = "UK Warehouse"
|
|
31
|
+
}
|
|
32
|
+
export declare enum HddSize {
|
|
33
|
+
TwoTB = "2 TB",
|
|
34
|
+
FourTB = "4 TB",
|
|
35
|
+
FiveTB = "5 TB",
|
|
36
|
+
SixTB = "6 TB",
|
|
37
|
+
EightTB = "8 TB",
|
|
38
|
+
TenTB = "10 TB"
|
|
39
|
+
}
|
|
40
|
+
export type FootageCreateUpdatePayload = {
|
|
41
|
+
cameraId: string;
|
|
42
|
+
startDate: string;
|
|
43
|
+
endDate: string;
|
|
44
|
+
};
|
|
45
|
+
export type HDDCreateUpdatePayload = {
|
|
46
|
+
size: string;
|
|
47
|
+
type: string;
|
|
48
|
+
format: string;
|
|
49
|
+
locationId: string;
|
|
50
|
+
serialNumber: string;
|
|
51
|
+
hddStatus: string;
|
|
52
|
+
shelfBlock: string;
|
|
53
|
+
};
|
|
54
|
+
export type HDDsQueryParams = PaginationParams & {
|
|
55
|
+
id: number;
|
|
56
|
+
location: string;
|
|
57
|
+
serialNumber: string;
|
|
58
|
+
shelfBlock: string;
|
|
59
|
+
format: string;
|
|
60
|
+
size: string;
|
|
61
|
+
type: string;
|
|
62
|
+
hddStatus: string;
|
|
63
|
+
};
|
|
64
|
+
export type AdminHddFootage = {
|
|
65
|
+
id: number;
|
|
66
|
+
cameraExid: string;
|
|
67
|
+
cameraName: string;
|
|
68
|
+
startDate: string | null;
|
|
69
|
+
endDate: string | null;
|
|
70
|
+
};
|
|
71
|
+
export type AdminHdd = {
|
|
72
|
+
id: number;
|
|
73
|
+
size: string;
|
|
74
|
+
type: string;
|
|
75
|
+
format: string;
|
|
76
|
+
location: string;
|
|
77
|
+
errorStatus: string | null;
|
|
78
|
+
createdAt: string;
|
|
79
|
+
serialNumber: string;
|
|
80
|
+
hddStatus: string;
|
|
81
|
+
reportedCapacity: string | null;
|
|
82
|
+
reportedFreeSpace: string | null;
|
|
83
|
+
reportedHddType: string | null;
|
|
84
|
+
reportedPath: string | null;
|
|
85
|
+
reportedProperty: string | null;
|
|
86
|
+
shelfBlock: string;
|
|
87
|
+
footages: AdminHddFootage[];
|
|
88
|
+
};
|
|
@@ -2,6 +2,7 @@ export * from "./360";
|
|
|
2
2
|
export * from "./aconex";
|
|
3
3
|
export * from "./analytics";
|
|
4
4
|
export * from "./anpr";
|
|
5
|
+
export * from "./admin";
|
|
5
6
|
export * from "./media";
|
|
6
7
|
export * from "./autodesk";
|
|
7
8
|
export * from "./bim";
|
|
@@ -9,10 +10,10 @@ export * from "./camera";
|
|
|
9
10
|
export * from "./compare";
|
|
10
11
|
export * from "./copilot";
|
|
11
12
|
export * from "./credentials";
|
|
12
|
-
export * from "./devices";
|
|
13
13
|
export * from "./drone";
|
|
14
14
|
export * from "./errors";
|
|
15
15
|
export * from "./gateReport";
|
|
16
|
+
export * from "./hdd";
|
|
16
17
|
export * from "./ingest";
|
|
17
18
|
export * from "./map";
|
|
18
19
|
export * from "./connector";
|
|
@@ -27,9 +28,11 @@ export * from "./routeParams";
|
|
|
27
28
|
export * from "./router";
|
|
28
29
|
export * from "./shares";
|
|
29
30
|
export * from "./sim";
|
|
30
|
-
export * from "./
|
|
31
|
-
export * from "./
|
|
31
|
+
export * from "./systemCheck";
|
|
32
|
+
export * from "./planner";
|
|
33
|
+
export * from "./storageProvider";
|
|
32
34
|
export * from "./streaming";
|
|
35
|
+
export * from "./storyblok";
|
|
33
36
|
export * from "./time";
|
|
34
37
|
export * from "./timelapse";
|
|
35
38
|
export * from "./user";
|
|
@@ -49,3 +52,16 @@ export * from "./siteAnalytics";
|
|
|
49
52
|
export * from "./widget";
|
|
50
53
|
export * from "./countries";
|
|
51
54
|
export * from "./automation";
|
|
55
|
+
export * from "./sso";
|
|
56
|
+
export * from "./coolify";
|
|
57
|
+
export * from "./tag";
|
|
58
|
+
export * from "./xweather";
|
|
59
|
+
export * from "./posthog";
|
|
60
|
+
export * from "./recycleBin";
|
|
61
|
+
export * from "./authz";
|
|
62
|
+
export * from "./oauth";
|
|
63
|
+
export * from "./ring";
|
|
64
|
+
export * from "./smartSeach";
|
|
65
|
+
export * from "./siteView";
|
|
66
|
+
export * from "./aiConfigs";
|
|
67
|
+
export * from "./gateReportManagement";
|