@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c

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.
Files changed (92) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +120 -96
  4. package/dist/api/api/aiApi.d.ts +188 -53
  5. package/dist/api/api/authzApi.d.ts +5 -3
  6. package/dist/api/api/client/interceptors.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +86 -28
  8. package/dist/api/api/evercamLabsApi.d.ts +9 -18
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/index.d.ts +1 -0
  11. package/dist/api/api/ingestApi.d.ts +90 -65
  12. package/dist/api/api/reportsApi.d.ts +15 -0
  13. package/dist/api/types/360.d.ts +178 -86
  14. package/dist/api/types/admin.d.ts +41 -3
  15. package/dist/api/types/aiConfigs.d.ts +244 -0
  16. package/dist/api/types/analytics.d.ts +141 -71
  17. package/dist/api/types/anpr.d.ts +134 -0
  18. package/dist/api/types/apiKey.d.ts +70 -0
  19. package/dist/api/types/auditLogs.d.ts +179 -21
  20. package/dist/api/types/authz.d.ts +72 -0
  21. package/dist/api/types/automation.d.ts +40 -3
  22. package/dist/api/types/axios.d.ts +12 -11
  23. package/dist/api/types/bim.d.ts +70 -12
  24. package/dist/api/types/camera.d.ts +244 -128
  25. package/dist/api/types/comments.d.ts +67 -26
  26. package/dist/api/types/company.d.ts +11 -5
  27. package/dist/api/types/compare.d.ts +1 -1
  28. package/dist/api/types/connector.d.ts +3 -0
  29. package/dist/api/types/coolify.d.ts +18 -2
  30. package/dist/api/types/detections.d.ts +10 -11
  31. package/dist/api/types/drone.d.ts +95 -6
  32. package/dist/api/types/emailMessages.d.ts +27 -0
  33. package/dist/api/types/errors.d.ts +19 -2
  34. package/dist/api/types/gateReport.d.ts +59 -49
  35. package/dist/api/types/gateReportManagement.d.ts +170 -0
  36. package/dist/api/types/hammertech.d.ts +98 -0
  37. package/dist/api/types/hdd.d.ts +1 -1
  38. package/dist/api/types/index.d.ts +15 -3
  39. package/dist/api/types/ingest.d.ts +207 -20
  40. package/dist/api/types/kit.d.ts +97 -117
  41. package/dist/api/types/map.d.ts +12 -0
  42. package/dist/api/types/media.d.ts +32 -3
  43. package/dist/api/types/notification.d.ts +52 -2
  44. package/dist/api/types/nvr.d.ts +39 -8
  45. package/dist/api/types/oauth.d.ts +62 -0
  46. package/dist/api/types/observationEvents.d.ts +167 -0
  47. package/dist/api/types/observations.d.ts +89 -0
  48. package/dist/api/types/planner.d.ts +98 -8
  49. package/dist/api/types/posthog.d.ts +72 -0
  50. package/dist/api/types/progressPhoto.d.ts +39 -25
  51. package/dist/api/types/project.d.ts +77 -24
  52. package/dist/api/types/recording.d.ts +9 -15
  53. package/dist/api/types/recycleBin.d.ts +8 -2
  54. package/dist/api/types/reports.d.ts +109 -0
  55. package/dist/api/types/ring.d.ts +53 -0
  56. package/dist/api/types/roi.d.ts +3 -11
  57. package/dist/api/types/routeParams.d.ts +1 -0
  58. package/dist/api/types/router.d.ts +15 -10
  59. package/dist/api/types/shared.d.ts +39 -29
  60. package/dist/api/types/shares.d.ts +0 -13
  61. package/dist/api/types/sim.d.ts +18 -6
  62. package/dist/api/types/siteAnalytics.d.ts +7 -19
  63. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  64. package/dist/api/types/siteView.d.ts +80 -0
  65. package/dist/api/types/smartSeach.d.ts +5 -0
  66. package/dist/api/types/snapshots.d.ts +98 -13
  67. package/dist/api/types/socket.d.ts +4 -0
  68. package/dist/api/types/sso.d.ts +12 -37
  69. package/dist/api/types/storageProvider.d.ts +30 -0
  70. package/dist/api/types/storyblok.d.ts +0 -13
  71. package/dist/api/types/timelapse.d.ts +6 -9
  72. package/dist/api/types/user.d.ts +48 -34
  73. package/dist/api/types/widget.d.ts +13 -4
  74. package/dist/api/utils.d.ts +1 -1
  75. package/dist/index.js +2635 -1120
  76. package/dist/index.js.map +1 -1
  77. package/dist/index.umd.cjs +1 -1
  78. package/dist/index.umd.cjs.map +1 -1
  79. package/dist/shared/types/components.d.ts +702 -42
  80. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  81. package/dist/shared/types/droneUpload.d.ts +93 -0
  82. package/dist/shared/types/imagePlayer.d.ts +8 -1
  83. package/dist/shared/types/index.d.ts +5 -0
  84. package/dist/shared/types/observations.d.ts +25 -0
  85. package/dist/shared/types/rbac.d.ts +80 -0
  86. package/dist/shared/types/report.d.ts +108 -0
  87. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  88. package/dist/shared/utils/datePresets.d.ts +31 -0
  89. package/package.json +4 -2
  90. package/dist/api/types/copilot.d.ts +0 -157
  91. package/dist/api/types/storageServers.d.ts +0 -4
  92. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -4,8 +4,7 @@ export type CompanyUser = {
4
4
  fullname: string;
5
5
  email: string;
6
6
  eventsCount: number;
7
- lastSeenAt: string;
8
- active: boolean;
7
+ lastLoginAt: string;
9
8
  };
10
9
  export type AdminCompanyUser = {
11
10
  id: number;
@@ -103,13 +102,20 @@ export type CompanyQueryParams = PaginationParams & {
103
102
  projects: string;
104
103
  cameras: string;
105
104
  users: string;
106
- activeUsers: string;
107
105
  sessions: string;
108
106
  };
109
107
  export type CompanyUpdatePayload = {
110
- name: string;
111
- exid: string;
108
+ companyName: string;
109
+ companyExid: string;
112
110
  linkedinUrl?: string;
113
111
  domains?: string;
114
112
  zohoId?: string;
113
+ ssoProviders: string[];
114
+ };
115
+ export type CompanyUpdateResponse = {
116
+ name: string;
117
+ exid: string;
118
+ domains: string;
119
+ zohoId: string;
120
+ ssoProviders: string[];
115
121
  };
@@ -33,7 +33,7 @@ export type CompareRequestPayload = {
33
33
  beforeDate: string;
34
34
  afterDate: string;
35
35
  cameraExid: string;
36
- embed: string;
36
+ embed?: string;
37
37
  bim?: boolean;
38
38
  custom?: boolean;
39
39
  options?: {
@@ -9,6 +9,9 @@ export declare enum Connector {
9
9
  Autodesk = "autodesk",
10
10
  AutodeskViewer = "autodesk_viewer",
11
11
  VoyageControl = "voyage_control",
12
+ Ring = "ring",
13
+ Email = "email",
14
+ Hammertech = "hammertech",
12
15
  XWeather = "xweather"
13
16
  }
14
17
  export declare enum ProcoreType {
@@ -1,6 +1,5 @@
1
- import { DateType } from "@evercam/api/types/time";
1
+ import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
2
2
  export type CreateCoolifyAppRequestPayload = {
3
- cameraExid: string;
4
3
  startDate: DateType;
5
4
  modelVersion: string;
6
5
  snapshotRequestTimeout: string | number;
@@ -18,3 +17,20 @@ export type SaveCoolifyAppRequestPayload = {
18
17
  serverUuid: string;
19
18
  useThirdParty: boolean;
20
19
  };
20
+ export type CoolifyApp = {
21
+ id: number;
22
+ projectExid: ProjectExid;
23
+ anprCameraExid: CameraExid;
24
+ contextCameraExid: CameraExid;
25
+ modelVersion: string;
26
+ isActive: boolean;
27
+ insertedAt: DateType;
28
+ updatedAt: DateType;
29
+ };
30
+ export type RegisterCoolifyAppResponsePayload = {
31
+ created: boolean;
32
+ id: number;
33
+ data: CoolifyApp;
34
+ count: number;
35
+ message: string;
36
+ };
@@ -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;
@@ -32,7 +23,7 @@ export type Detection = {
32
23
  export type DetectionsGroup = {
33
24
  timestamp: DateType;
34
25
  cameraExid: CameraExid;
35
- detections: Detection[];
26
+ trackings: Detection[];
36
27
  };
37
28
  export type DetectionsCounts = {
38
29
  timestamps: number;
@@ -98,7 +89,13 @@ export type DetectionsCountsParams = BaseCountsParams & {
98
89
  };
99
90
  export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
100
91
  export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
92
+ export type DetectionsPresenceResponse = {
93
+ intervals: DetectionsPresenceByLabel;
94
+ };
101
95
  export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
96
+ export type SegmentsPresenceResponse = {
97
+ intervals: SegmentsPresenceByLabel;
98
+ };
102
99
  export type LuminanceReading = {
103
100
  timestamp: string;
104
101
  luminanceDelta: number;
@@ -108,6 +105,7 @@ export declare enum PpeLabel {
108
105
  Helmet = "helmet",
109
106
  HighVisibilityVest = "high-visibility-vest",
110
107
  SafetyGlasses = "safety-glasses",
108
+ Gloves = "gloves",
111
109
  Person = "person",
112
110
  Man = "man",
113
111
  Woman = "woman"
@@ -117,5 +115,6 @@ export declare enum DetectionModel {
117
115
  Yolov11 = 2,
118
116
  Yolov112 = 3,
119
117
  GroundingDino = 4,
120
- Owlv2 = 5
118
+ Owlv2 = 5,
119
+ PpeV2 = 6
121
120
  }
@@ -1,17 +1,106 @@
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: string;
3
- cesiumId2D: string;
9
+ cesiumId: number;
10
+ cesiumId2D: number;
4
11
  date: string;
5
12
  cesiumPointCloudId: string;
13
+ cesiumGausianSplatId: string;
6
14
  pointSize: string;
7
- maximumScreenSpaceError: string;
15
+ maximumScreenSpaceError: number;
8
16
  link: string;
9
17
  trueIndex: number;
10
18
  };
11
- export type DroneProjectJsonResponse = {
12
- models: DroneModel[];
13
- [key: string]: any;
19
+ export type DroneProjectTransform = {
20
+ initialCameraTransform?: DroneCameraTransform;
21
+ initial2DCameraTransform?: DroneCameraTransform;
22
+ markers?: Record<string, DroneMarker>;
23
+ imageryPlans?: Record<string, DroneImageryPlan>;
24
+ bimData?: DroneBimData;
25
+ terrainPoints?: Record<string, Point3D[]>;
26
+ projectWGS84Coordinates?: DroneProjectCoordinates | null;
27
+ tags?: Record<string, DroneTag>;
28
+ };
29
+ export type DroneProjectData = {
30
+ models?: DroneModel[];
31
+ transform?: DroneProjectTransform;
32
+ integrationType?: DroneProvider;
33
+ origin?: string;
34
+ params?: string;
35
+ pointSize?: number;
36
+ };
37
+ export type DroneProjectDataPatch = {
38
+ models?: Record<number, Partial<DroneModel>>;
39
+ integrationType?: DroneProvider;
40
+ origin?: string;
41
+ params?: string;
42
+ };
43
+ export type DroneProjectCoordinates = {
44
+ lat: number | null;
45
+ lon: number | null;
46
+ alt: number | null;
47
+ };
48
+ export type DroneTransformPatch = {
49
+ projectWGS84Coordinates?: DroneProjectCoordinates | null;
50
+ };
51
+ export declare enum DroneTagType {
52
+ AerialShot = "AerialShot"
53
+ }
54
+ export type DroneTag<T extends DroneTagType = DroneTagType> = {
55
+ id?: number;
56
+ type: T;
57
+ comment: string;
58
+ position?: Point3D;
59
+ cameraTransform?: string;
60
+ creationDate: string;
61
+ hyperlink?: string;
62
+ height?: number;
63
+ };
64
+ export type AerialShotPoint = DroneTag<DroneTagType.AerialShot>;
65
+ export type DroneMarkerTransform = {
66
+ fovAngle: number;
67
+ fovRadius: number;
68
+ heading: number;
69
+ height: number;
70
+ latitude: string;
71
+ longitude: string;
72
+ pitch: number;
73
+ roll: number;
74
+ scale: number;
75
+ };
76
+ export declare enum DroneMarkerType {
77
+ Default = "Default",
78
+ Gate = "Gate",
79
+ Indoor = "Indoor"
80
+ }
81
+ export type DroneMarker = {
82
+ type: DroneMarkerType;
83
+ name: string;
84
+ cameraExid: string;
85
+ transform: DroneMarkerTransform;
86
+ };
87
+ export type DroneImageryPlan = {
88
+ cesiumId: number;
89
+ uuid: string;
90
+ name: string;
91
+ alpha: number;
92
+ order: number;
93
+ };
94
+ export type DroneBimData = {
95
+ cesiumId: string | null;
96
+ iModelId: string | null;
97
+ changeSetId: string | null;
98
+ isItwin: boolean;
14
99
  };
15
100
  export declare enum DroneUrlParams {
16
101
  Date = "date"
17
102
  }
103
+ export declare enum DroneProvider {
104
+ Evercam = "Evercam",
105
+ DroneDeploy = "DroneDeploy"
106
+ }
@@ -0,0 +1,27 @@
1
+ export type EmailInlineImage = {
2
+ cid: string;
3
+ mimeType: "image/jpeg" | "image/png" | "image/gif";
4
+ content: string;
5
+ };
6
+ export type EmailAttachment = {
7
+ name: string;
8
+ mimeType: string;
9
+ content: string;
10
+ };
11
+ export type EmailMessage = {
12
+ to: string[];
13
+ cc?: string[];
14
+ subject: string;
15
+ html: string;
16
+ inlineImages?: EmailInlineImage[];
17
+ attachments?: EmailAttachment[];
18
+ };
19
+ export type EmailAcceptance = {
20
+ status: "accepted";
21
+ requestId: string | null;
22
+ };
23
+ export type EmailRejection = {
24
+ detail: string | {
25
+ msg: string;
26
+ }[];
27
+ };
@@ -23,7 +23,10 @@ export declare enum ErrorCode {
23
23
  UnauthorizedError = 401,
24
24
  ForbiddenError = 403,
25
25
  NotFoundError = 404,
26
- ConflictError = 409
26
+ ConflictError = 409,
27
+ GoneError = 410,
28
+ TooManyRequestsError = 429,
29
+ UnprocessableEntityError = 422
27
30
  }
28
31
  export declare enum EvercamApiErrorCode {
29
32
  IntegrationError = "INTEGRATION_ERROR",
@@ -37,7 +40,8 @@ export declare enum EvercamApiErrorCode {
37
40
  ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
38
41
  PasswordReset = "PASSWORD_RESET",
39
42
  RequireShareRequest = "REQUIRE_SHARE_REQUEST",
40
- Generic = "GENERIC"
43
+ Generic = "GENERIC",
44
+ VideoWallInUse = "VIDEO_WALL_IN_USE"
41
45
  }
42
46
  type _EvercamApiError = {
43
47
  code: EvercamApiErrorCode;
@@ -46,4 +50,17 @@ type _EvercamApiError = {
46
50
  innerError?: _EvercamApiError;
47
51
  };
48
52
  export type EvercamApiError = AxiosError<_EvercamApiError>;
53
+ export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
54
+ export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
55
+ export type AppError = {
56
+ statusCode?: number;
57
+ message?: string;
58
+ redirect?: {
59
+ url?: string;
60
+ label?: string;
61
+ delay?: number;
62
+ };
63
+ withSupportMessage?: boolean;
64
+ isWidget?: boolean;
65
+ };
49
66
  export {};
@@ -1,4 +1,4 @@
1
- import { AnprDirection, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, Timestamp } from "@evercam/api/types";
1
+ import { AnprDirection, AnprEnrichmentFilter, 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",
@@ -166,12 +166,6 @@ export type GateReportEvent = {
166
166
  truckType: GateReportVehicleType;
167
167
  thumbnailUrl?: string;
168
168
  };
169
- export type GateReportArrivedEvent = GateReportEvent & {
170
- eventType: GateReportEventType.Arrived;
171
- };
172
- export type GateReportLeftEvent = GateReportEvent & {
173
- eventType: GateReportEventType.Left;
174
- };
175
169
  export type GateReportVerifiedDay = {
176
170
  id: number;
177
171
  day: string;
@@ -182,41 +176,56 @@ export type GateReportVerifiedDay = {
182
176
  cameraExid: CameraExid;
183
177
  projectExid: ProjectExid;
184
178
  };
179
+ export type GateReportVerifiedDayEntry = Pick<GateReportVerifiedDay, "day" | "verifiedBy" | "cameraExid" | "projectExid"> & {
180
+ insertedAt?: GateReportVerifiedDay["insertedAt"];
181
+ };
185
182
  export type BoundingBox = {
186
183
  xmax: number;
187
184
  xmin: number;
188
185
  ymax: number;
189
186
  ymin: number;
190
187
  };
191
- export type EventsCountsByVehicleType = Record<GateReportVehicleType, number>;
192
188
  export type EventsCount = {
193
189
  in: number;
194
190
  out: number;
191
+ unknown?: number;
195
192
  source: GateReportDataSource;
196
193
  };
197
- export type YearlyEventCount = EventsCount & {
194
+ export type YearlyEventCount = Omit<EventsCount, "source"> & {
198
195
  year: string;
199
196
  };
200
- export type MonthlyEventCount = EventsCount & {
197
+ export type MonthlyEventCount = Omit<EventsCount, "source"> & {
201
198
  month: string;
202
199
  };
203
200
  export type DailyEventCount = EventsCount & {
204
201
  day: string;
205
202
  };
206
- export type HourlyEventCount = {
207
- hour: string;
208
- count: number;
209
- };
210
203
  export type EventCountRequestPayload = {
211
204
  vehicleTypes?: GateReportVehicleType[];
212
205
  isPublic?: boolean;
213
206
  camerasExid?: string[];
214
- };
207
+ plateNumber?: string;
208
+ } & AnprEnrichmentFilter;
215
209
  export type EventCountResponsePayload = {
216
210
  days?: DailyEventCount[];
217
211
  months?: MonthlyEventCount[];
218
212
  years?: YearlyEventCount[];
219
213
  };
214
+ export type VehicleTypeCountsResponsePayload = {
215
+ vehicleTypes: {
216
+ vehicleType: GateReportVehicleType;
217
+ days: DailyEventCount[];
218
+ }[];
219
+ };
220
+ export type GateReportHourCount = {
221
+ hour: number;
222
+ in: number;
223
+ out: number;
224
+ unknown: number;
225
+ };
226
+ export type HourCountsResponsePayload = {
227
+ hours: GateReportHourCount[];
228
+ };
220
229
  export declare enum GateReportDataSource {
221
230
  Anpr = "anpr",
222
231
  Events = "events"
@@ -237,7 +246,20 @@ export type GatReportRequestPayload = {
237
246
  isPublic?: boolean;
238
247
  toDate?: string;
239
248
  vehicleTypes?: GateReportVehicleType[];
240
- } & PaginationParams;
249
+ plateNumber?: string;
250
+ } & AnprEnrichmentFilter & PaginationParams;
251
+ export declare enum GateReportFilter {
252
+ Cameras = "cameras",
253
+ Types = "types",
254
+ Plate = "plate",
255
+ Direction = "direction",
256
+ Enrichment = "enrichment"
257
+ }
258
+ export declare enum GateReportCancelToken {
259
+ HourCounts = "gate-report-hour-counts",
260
+ TypeCounts = "gate-report-type-counts",
261
+ Companies = "gate-report-companies"
262
+ }
241
263
  export declare enum GateReportExportType {
242
264
  Pdf = "pdf",
243
265
  Csv = "csv"
@@ -249,38 +271,30 @@ export type AnprExportBaseParams = {
249
271
  toDate?: string;
250
272
  camerasExid?: CameraExid[];
251
273
  isPublic?: boolean;
274
+ columns?: string[];
252
275
  };
253
276
  export type EventsExportRequestParameters = AnprExportBaseParams & {
254
277
  eventType: GateReportEventType;
255
278
  };
256
- export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & {
279
+ export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & AnprEnrichmentFilter & {
257
280
  direction?: AnprDirection;
258
281
  };
259
282
  export type LegacyAnprExportParams = AnprExportBaseParams & {
260
283
  direction?: AnprDirection;
261
284
  };
262
- type X1 = number;
263
- type Y1 = number;
264
- type X2 = number;
265
- type Y2 = number;
266
- export declare enum GateReportROIShapeType {
267
- Rectangle = "rectangle",
268
- Direction = "direction",
269
- Line = "line"
270
- }
271
285
  export type GateReportROIShape = {
272
- coordinates: [[X1, Y1], [X2, Y2]];
273
- type: GateReportROIShapeType;
286
+ coordinates: TuplePoint2D[];
287
+ type: RoiShapeType;
274
288
  };
275
289
  export type GateReportROI = {
276
290
  cameraex?: string;
277
291
  fromDate?: string;
278
- directionFilter?: string;
292
+ directionFilter?: RoiDirection;
279
293
  id?: number;
280
294
  insertedAt?: Timestamp;
281
- isactive?: boolean;
295
+ isActive?: boolean;
282
296
  name?: string;
283
- roiType?: string;
297
+ roiType?: RoiType;
284
298
  updatedAt?: Timestamp;
285
299
  shapes?: GateReportROIShape[];
286
300
  };
@@ -310,7 +324,7 @@ export type VerifyDayUpdateRequestPayload = {
310
324
  camerasExid: string[];
311
325
  projectExid: string;
312
326
  day: string;
313
- isMatched: boolean;
327
+ isMatched?: boolean;
314
328
  verifiedBy: string;
315
329
  };
316
330
  export type ProcessedDaysQueryParams = {
@@ -319,27 +333,23 @@ export type ProcessedDaysQueryParams = {
319
333
  eventType: GateReportEventType;
320
334
  };
321
335
  export type RoisQueryParams = {
322
- camerasExid: string[];
336
+ camerasExid: CameraExid[];
323
337
  id: number;
324
338
  name: string;
325
339
  fromDate: string;
326
- roiType: GateReportROIShapeType;
327
- isactive: boolean;
340
+ roiType: RoiType;
341
+ isActive: boolean;
328
342
  directionFilter: string;
329
343
  sort: string;
330
344
  };
331
- export type GateReportROICreateRequestPayload = {
332
- id?: number;
333
- roi: {
334
- cameraex: string;
335
- name: string;
336
- roiType: string;
337
- isactive: true;
338
- fromDate: string;
339
- shapes: Record<string, unknown>[];
340
- directionFilter: string;
341
- note: string;
342
- };
343
- createdBy: string;
345
+ export type GateReportRoiRequestPayload = {
346
+ id: number;
347
+ cameraExid: string;
348
+ name: string;
349
+ roiType: RoiType;
350
+ isActive: true;
351
+ fromDate: string;
352
+ shapes: GateReportROIShape[];
353
+ directionFilter: string;
354
+ note: string;
344
355
  };
345
- export {};
@@ -0,0 +1,170 @@
1
+ import { CameraExid, DateType, PaginationParams, 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 GateReportAppsQueryParams = PaginationParams & {
134
+ projectExid?: ProjectExid;
135
+ includeStatus?: boolean;
136
+ };
137
+ export type CoolifyProjectOption = {
138
+ uuid: string;
139
+ name: string;
140
+ description: string | null;
141
+ };
142
+ export type CoolifyServerOption = {
143
+ uuid: string;
144
+ name: string;
145
+ isReachable: boolean;
146
+ isUsable: boolean;
147
+ };
148
+ export declare enum AppRuntimeState {
149
+ Running = "running",
150
+ Stopped = "stopped",
151
+ Restarting = "restarting"
152
+ }
153
+ export type AppActionResponse = {
154
+ success: boolean;
155
+ message: string | null;
156
+ appUuid: string | null;
157
+ state: AppRuntimeState | null;
158
+ };
159
+ export type APIEnvelope<T> = {
160
+ success: boolean;
161
+ data: T | null;
162
+ message: string;
163
+ };
164
+ export type CreateGateReportAppResponse = {
165
+ created: boolean;
166
+ id: number | null;
167
+ data: GateReportManagedApp | null;
168
+ count: number | null;
169
+ message: string;
170
+ };