@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be
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 +212 -15
- package/dist/api/api/adminApi.d.ts +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +56 -34
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +57 -33
- package/dist/api/types/anpr.d.ts +36 -6
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +6 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +9 -23
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +194 -27
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/snapshots.d.ts +63 -10
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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 +506 -46
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -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;
|
|
@@ -98,6 +89,9 @@ 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[]>;
|
|
102
96
|
export type SegmentsPresenceResponse = {
|
|
103
97
|
intervals: SegmentsPresenceByLabel;
|
|
@@ -111,6 +105,7 @@ export declare enum PpeLabel {
|
|
|
111
105
|
Helmet = "helmet",
|
|
112
106
|
HighVisibilityVest = "high-visibility-vest",
|
|
113
107
|
SafetyGlasses = "safety-glasses",
|
|
108
|
+
Gloves = "gloves",
|
|
114
109
|
Person = "person",
|
|
115
110
|
Man = "man",
|
|
116
111
|
Woman = "woman"
|
|
@@ -120,5 +115,6 @@ export declare enum DetectionModel {
|
|
|
120
115
|
Yolov11 = 2,
|
|
121
116
|
Yolov112 = 3,
|
|
122
117
|
GroundingDino = 4,
|
|
123
|
-
Owlv2 = 5
|
|
118
|
+
Owlv2 = 5,
|
|
119
|
+
PpeV2 = 6
|
|
124
120
|
}
|
|
@@ -1,18 +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:
|
|
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
|
+
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;
|
|
15
99
|
};
|
|
16
100
|
export declare enum DroneUrlParams {
|
|
17
101
|
Date = "date"
|
|
18
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, 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",
|
|
@@ -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,13 +176,13 @@ export type GateReportVerifiedDay = {
|
|
|
182
176
|
cameraExid: CameraExid;
|
|
183
177
|
projectExid: ProjectExid;
|
|
184
178
|
};
|
|
179
|
+
export type GateReportVerifiedDayEntry = Pick<GateReportVerifiedDay, "day" | "verifiedBy" | "cameraExid" | "projectExid">;
|
|
185
180
|
export type BoundingBox = {
|
|
186
181
|
xmax: number;
|
|
187
182
|
xmin: number;
|
|
188
183
|
ymax: number;
|
|
189
184
|
ymin: number;
|
|
190
185
|
};
|
|
191
|
-
export type EventsCountsByVehicleType = Record<GateReportVehicleType, number>;
|
|
192
186
|
export type EventsCount = {
|
|
193
187
|
in: number;
|
|
194
188
|
out: number;
|
|
@@ -203,10 +197,6 @@ export type MonthlyEventCount = EventsCount & {
|
|
|
203
197
|
export type DailyEventCount = EventsCount & {
|
|
204
198
|
day: string;
|
|
205
199
|
};
|
|
206
|
-
export type HourlyEventCount = {
|
|
207
|
-
hour: string;
|
|
208
|
-
count: number;
|
|
209
|
-
};
|
|
210
200
|
export type EventCountRequestPayload = {
|
|
211
201
|
vehicleTypes?: GateReportVehicleType[];
|
|
212
202
|
isPublic?: boolean;
|
|
@@ -249,6 +239,7 @@ export type AnprExportBaseParams = {
|
|
|
249
239
|
toDate?: string;
|
|
250
240
|
camerasExid?: CameraExid[];
|
|
251
241
|
isPublic?: boolean;
|
|
242
|
+
columns?: string[];
|
|
252
243
|
};
|
|
253
244
|
export type EventsExportRequestParameters = AnprExportBaseParams & {
|
|
254
245
|
eventType: GateReportEventType;
|
|
@@ -259,23 +250,19 @@ export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & {
|
|
|
259
250
|
export type LegacyAnprExportParams = AnprExportBaseParams & {
|
|
260
251
|
direction?: AnprDirection;
|
|
261
252
|
};
|
|
262
|
-
type X1 = number;
|
|
263
|
-
type Y1 = number;
|
|
264
|
-
type X2 = number;
|
|
265
|
-
type Y2 = number;
|
|
266
253
|
export type GateReportROIShape = {
|
|
267
|
-
coordinates: [
|
|
254
|
+
coordinates: TuplePoint2D[];
|
|
268
255
|
type: RoiShapeType;
|
|
269
256
|
};
|
|
270
257
|
export type GateReportROI = {
|
|
271
258
|
cameraex?: string;
|
|
272
259
|
fromDate?: string;
|
|
273
|
-
directionFilter?:
|
|
260
|
+
directionFilter?: RoiDirection;
|
|
274
261
|
id?: number;
|
|
275
262
|
insertedAt?: Timestamp;
|
|
276
263
|
isActive?: boolean;
|
|
277
264
|
name?: string;
|
|
278
|
-
roiType?:
|
|
265
|
+
roiType?: RoiType;
|
|
279
266
|
updatedAt?: Timestamp;
|
|
280
267
|
shapes?: GateReportROIShape[];
|
|
281
268
|
};
|
|
@@ -305,7 +292,7 @@ export type VerifyDayUpdateRequestPayload = {
|
|
|
305
292
|
camerasExid: string[];
|
|
306
293
|
projectExid: string;
|
|
307
294
|
day: string;
|
|
308
|
-
isMatched
|
|
295
|
+
isMatched?: boolean;
|
|
309
296
|
verifiedBy: string;
|
|
310
297
|
};
|
|
311
298
|
export type ProcessedDaysQueryParams = {
|
|
@@ -318,7 +305,7 @@ export type RoisQueryParams = {
|
|
|
318
305
|
id: number;
|
|
319
306
|
name: string;
|
|
320
307
|
fromDate: string;
|
|
321
|
-
roiType:
|
|
308
|
+
roiType: RoiType;
|
|
322
309
|
isActive: boolean;
|
|
323
310
|
directionFilter: string;
|
|
324
311
|
sort: string;
|
|
@@ -327,11 +314,10 @@ export type GateReportRoiRequestPayload = {
|
|
|
327
314
|
id: number;
|
|
328
315
|
cameraExid: string;
|
|
329
316
|
name: string;
|
|
330
|
-
roiType:
|
|
317
|
+
roiType: RoiType;
|
|
331
318
|
isActive: true;
|
|
332
319
|
fromDate: string;
|
|
333
320
|
shapes: GateReportROIShape[];
|
|
334
321
|
directionFilter: string;
|
|
335
322
|
note: string;
|
|
336
323
|
};
|
|
337
|
-
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
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare enum HammertechRegion {
|
|
2
|
+
US = "us",
|
|
3
|
+
AU = "au",
|
|
4
|
+
EU = "eu"
|
|
5
|
+
}
|
|
6
|
+
export type HammertechConnectPayload = {
|
|
7
|
+
email: string;
|
|
8
|
+
password: string;
|
|
9
|
+
tenant: string;
|
|
10
|
+
region: HammertechRegion;
|
|
11
|
+
};
|
|
12
|
+
export type HammertechProject = {
|
|
13
|
+
projectId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export type HammertechLocation = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
parentId: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type HammertechCustomFieldDataType = "FreeText" | "TextArea" | "Number" | "Date" | "Time" | "DateTime" | "ExpiryDate" | "Checkbox" | "YesNoRadio" | "YesNoNaRadio" | "Dropdown" | "Radio" | "MultiSelectDropdown" | "ImageUpload" | "FileUpload" | "Signature" | "SignatureWithName" | "Heading" | "BigLabel" | "ExpandingLabel" | "Separator" | "NoMargin" | "Image" | "FileDownload" | "ChildForm" | "SectionStart" | "SectionEnd" | "SystemField" | string;
|
|
22
|
+
export type HammertechCustomField = {
|
|
23
|
+
id: string;
|
|
24
|
+
internalName: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
customFieldType: HammertechCustomFieldDataType;
|
|
27
|
+
isRequired?: boolean;
|
|
28
|
+
answerOptions?: string[];
|
|
29
|
+
};
|
|
30
|
+
export type HammertechCustomFieldForm = {
|
|
31
|
+
id: string;
|
|
32
|
+
customFields: HammertechCustomField[];
|
|
33
|
+
};
|
|
34
|
+
export declare enum HammertechPriority {
|
|
35
|
+
Low = "Low",
|
|
36
|
+
Medium = "Medium",
|
|
37
|
+
High = "High",
|
|
38
|
+
Critical = "Critical"
|
|
39
|
+
}
|
|
40
|
+
export declare enum HammertechClassification {
|
|
41
|
+
Undefined = "Undefined",
|
|
42
|
+
Positive = "Positive",
|
|
43
|
+
Negative = "Negative",
|
|
44
|
+
Neutral = "Neutral"
|
|
45
|
+
}
|
|
46
|
+
export type HammertechIssueType = {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
forcePriority?: boolean;
|
|
50
|
+
suggestedPriority?: HammertechPriority | null;
|
|
51
|
+
canBeNegative?: boolean;
|
|
52
|
+
canBeNeutral?: boolean;
|
|
53
|
+
canBePositive?: boolean;
|
|
54
|
+
openIssueCustomFieldForm?: HammertechCustomFieldForm | null;
|
|
55
|
+
};
|
|
56
|
+
export type HammertechCustomFieldValue = {
|
|
57
|
+
customFieldId: string;
|
|
58
|
+
value?: unknown;
|
|
59
|
+
storedFileId?: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const HAMMERTECH_FILE_FIELD_TYPES: string[];
|
|
62
|
+
export declare function isHammertechFileFieldType(type?: string): boolean;
|
|
63
|
+
export declare function isHammertechSignatureWithName(type?: string): boolean;
|
|
64
|
+
export type HammertechStoredFilePayload = {
|
|
65
|
+
fileName?: string;
|
|
66
|
+
base64FileContent: string;
|
|
67
|
+
annotation?: string;
|
|
68
|
+
id?: string;
|
|
69
|
+
};
|
|
70
|
+
export type HammertechStoredFileResponse = {
|
|
71
|
+
isSuccess: boolean;
|
|
72
|
+
httpStatusCode: number;
|
|
73
|
+
messageText: string;
|
|
74
|
+
createdEntityId: string;
|
|
75
|
+
xRequestId: string;
|
|
76
|
+
};
|
|
77
|
+
export type HammertechFileFieldValue = {
|
|
78
|
+
file: File | null;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
export type HammertechCreateIssuePayload = {
|
|
82
|
+
projectId: string;
|
|
83
|
+
issueTypeId: string;
|
|
84
|
+
snapshot: string;
|
|
85
|
+
issueDate?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
priority?: HammertechPriority;
|
|
88
|
+
dueDate?: string;
|
|
89
|
+
classification?: HammertechClassification;
|
|
90
|
+
locationId?: string;
|
|
91
|
+
isPositiveObservation?: boolean;
|
|
92
|
+
isPhotoForFixRequired?: boolean;
|
|
93
|
+
openIssueCustomFieldFormId?: string;
|
|
94
|
+
openIssueCustomFieldValues?: HammertechCustomFieldValue[];
|
|
95
|
+
};
|
|
96
|
+
export type HammertechIssueResponse = {
|
|
97
|
+
id: string;
|
|
98
|
+
};
|
package/dist/api/types/hdd.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ export * from "./autodesk";
|
|
|
8
8
|
export * from "./bim";
|
|
9
9
|
export * from "./camera";
|
|
10
10
|
export * from "./compare";
|
|
11
|
-
export * from "./copilot";
|
|
12
11
|
export * from "./credentials";
|
|
13
12
|
export * from "./drone";
|
|
14
13
|
export * from "./errors";
|
|
@@ -36,12 +35,13 @@ export * from "./storyblok";
|
|
|
36
35
|
export * from "./time";
|
|
37
36
|
export * from "./timelapse";
|
|
38
37
|
export * from "./user";
|
|
39
|
-
export * from "./vendorModel";
|
|
40
38
|
export * from "./videoWall";
|
|
41
39
|
export * from "./voyageControl";
|
|
40
|
+
export * from "./hammertech";
|
|
42
41
|
export * from "./weather";
|
|
43
42
|
export * from "./comments";
|
|
44
43
|
export * from "./detections";
|
|
44
|
+
export * from "./observations";
|
|
45
45
|
export * from "./axios";
|
|
46
46
|
export * from "./shared";
|
|
47
47
|
export * from "./company";
|
|
@@ -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";
|
|
@@ -60,5 +61,13 @@ export * from "./posthog";
|
|
|
60
61
|
export * from "./recycleBin";
|
|
61
62
|
export * from "./authz";
|
|
62
63
|
export * from "./oauth";
|
|
64
|
+
export * from "./apiKey";
|
|
63
65
|
export * from "./ring";
|
|
64
66
|
export * from "./smartSeach";
|
|
67
|
+
export * from "./siteView";
|
|
68
|
+
export * from "./aiConfigs";
|
|
69
|
+
export * from "./gateReportManagement";
|
|
70
|
+
export * from "./socket";
|
|
71
|
+
export * from "./reports";
|
|
72
|
+
export * from "./observationEvents";
|
|
73
|
+
export * from "./emailMessages";
|