@evercam/api 1.0.0-e13c64fc3 → 1.0.0-e1cf8aca7
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 +198 -15
- package/dist/api/api/adminApi.d.ts +30 -16
- package/dist/api/api/aiApi.d.ts +45 -4
- package/dist/api/api/authzApi.d.ts +1 -2
- package/dist/api/api/evercamApi.d.ts +27 -10
- package/dist/api/api/evercamLabsApi.d.ts +5 -6
- package/dist/api/api/ingestApi.d.ts +53 -44
- package/dist/api/types/360.d.ts +173 -54
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +37 -15
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/authz.d.ts +1 -0
- package/dist/api/types/axios.d.ts +9 -8
- package/dist/api/types/bim.d.ts +25 -0
- package/dist/api/types/camera.d.ts +14 -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 +5 -10
- package/dist/api/types/drone.d.ts +96 -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 +5 -1
- package/dist/api/types/ingest.d.ts +27 -3
- package/dist/api/types/kit.d.ts +11 -2
- 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 +97 -0
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +8 -3
- package/dist/api/types/recording.d.ts +6 -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 +48 -3
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/timelapse.d.ts +6 -2
- package/dist/api/types/user.d.ts +1 -5
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1628 -767
- 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 +73 -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 +2 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/package.json +4 -2
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -261,6 +261,8 @@ export declare enum AnalyticsEvent {
|
|
|
261
261
|
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
262
|
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
263
|
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
264
|
+
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
265
|
+
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
264
266
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
265
267
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
266
268
|
RecordingsCreateClip = "CreateClip",
|
|
@@ -282,17 +284,6 @@ export declare enum AnalyticsEvent {
|
|
|
282
284
|
SharingSortBy = "SortBy",
|
|
283
285
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
284
286
|
ThreeSixtyGallery = "Gallery",
|
|
285
|
-
ThreeSixtyGalleryFilterAssetTypes = "Gallery-FilterAssetTypes",
|
|
286
|
-
ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
|
|
287
|
-
ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
|
|
288
|
-
ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
|
|
289
|
-
ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
|
|
290
|
-
ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
|
|
291
|
-
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
292
|
-
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
293
|
-
ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
|
|
294
|
-
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
295
|
-
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
296
287
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
297
288
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
298
289
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -301,6 +292,7 @@ export declare enum AnalyticsEvent {
|
|
|
301
292
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
302
293
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
303
294
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
295
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
304
296
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
305
297
|
ThreeSixtyLockCompare = "LockCompare",
|
|
306
298
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -311,6 +303,7 @@ export declare enum AnalyticsEvent {
|
|
|
311
303
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
312
304
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
313
305
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
306
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
314
307
|
ThreeSixtySaveComment = "SaveComment",
|
|
315
308
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
316
309
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -320,6 +313,7 @@ export declare enum AnalyticsEvent {
|
|
|
320
313
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
321
314
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
322
315
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
316
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
323
317
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
324
318
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
325
319
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -358,6 +352,8 @@ export declare enum AnalyticsEvent {
|
|
|
358
352
|
DroneToggleBimCompareTool = "ToggleBimCompareTool",
|
|
359
353
|
DroneToggleFullScreen = "ToggleFullScreen",
|
|
360
354
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
355
|
+
DroneTogglePointCloud = "TogglePointCloud",
|
|
356
|
+
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
361
357
|
DroneToggleQualityMode = "ChooseQuality",
|
|
362
358
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
363
359
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -372,6 +368,7 @@ export declare enum AnalyticsEvent {
|
|
|
372
368
|
DroneUnarchiveComment = "UnarchiveComment",
|
|
373
369
|
DroneArchiveComment = "ArchiveComment",
|
|
374
370
|
DroneDeleteComment = "DeleteComment",
|
|
371
|
+
DroneSaveAerialShot = "SaveAerialShot",
|
|
375
372
|
PlannerAddCameraClick = "AddCameraClick",
|
|
376
373
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
377
374
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -403,7 +400,7 @@ export declare enum AnalyticsEvent {
|
|
|
403
400
|
DrawingClickHome = "ClickHome",
|
|
404
401
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
405
402
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
406
|
-
|
|
403
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
407
404
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
408
405
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
409
406
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -447,10 +444,15 @@ export declare enum AnalyticsEvent {
|
|
|
447
444
|
ProjectSettingsCameraSettingsSaveCameraName = "SaveCameraName",
|
|
448
445
|
ProjectSettingsMembersApplyCamerasFilter = "ApplyCamerasFilter",
|
|
449
446
|
ProjectSettingsMembersApplySearchFilter = "ApplySearchFilter",
|
|
447
|
+
ProjectSettingsMembersViewRoleInfo = "ViewRoleInfo",
|
|
448
|
+
ProjectSettingsMembersViewMemberInfo = "ViewMemberInfo",
|
|
449
|
+
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
450
|
+
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
451
|
+
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
450
452
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
453
|
+
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
451
454
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
452
455
|
ProjectSettingsMembersEditCameraAccess = "EditCameraAccess",
|
|
453
|
-
ProjectSettingsMembersFiltersClick = "FiltersClick",
|
|
454
456
|
ProjectSettingsMembersShareCamera = "ShareCamera",
|
|
455
457
|
ProjectSettingsMembersToggleAddDialog = "ToggleAddDialog",
|
|
456
458
|
ProjectSettingsOverviewOpenInMapView = "OpenInMapView",
|
|
@@ -539,7 +541,6 @@ export declare enum AnalyticsEvent {
|
|
|
539
541
|
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
540
542
|
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
541
543
|
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
542
|
-
AutomationsFiltersClicked = "FiltersClicked",
|
|
543
544
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
544
545
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
545
546
|
AutomationTypeName = "TypeName",
|
|
@@ -588,5 +589,26 @@ export declare enum AnalyticsEvent {
|
|
|
588
589
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
589
590
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
590
591
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
591
|
-
AskAICloseChat = "AskAI-CloseChat"
|
|
592
|
+
AskAICloseChat = "AskAI-CloseChat",
|
|
593
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
594
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
595
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
596
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
597
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
598
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
599
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
600
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
601
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
602
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
603
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
604
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
605
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
606
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
607
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
608
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
609
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
610
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
611
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
612
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
613
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
592
614
|
}
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -104,11 +104,40 @@ export declare enum AnprEventStatus {
|
|
|
104
104
|
export type AnprBulkUpdateRequestPayload = {
|
|
105
105
|
anprEventsIds: number[];
|
|
106
106
|
action: AnprEventStatus;
|
|
107
|
-
updatedBy: string;
|
|
108
107
|
};
|
|
109
108
|
export type AnprUpdateRequestPayload = {
|
|
110
109
|
plateNumber: string;
|
|
111
110
|
vehicleType: GateReportVehicleType;
|
|
112
111
|
direction: AnprDirection;
|
|
113
|
-
|
|
112
|
+
};
|
|
113
|
+
export declare enum AnprExtractionStatus {
|
|
114
|
+
Pending = "pending",
|
|
115
|
+
Running = "running",
|
|
116
|
+
Completed = "completed",
|
|
117
|
+
Failed = "failed"
|
|
118
|
+
}
|
|
119
|
+
export declare enum AnprExtractionSaveMode {
|
|
120
|
+
All = "all",
|
|
121
|
+
AiDbOnly = "ai_db_only",
|
|
122
|
+
ImagesOnly = "images_only"
|
|
123
|
+
}
|
|
124
|
+
export type AnprExtraction = {
|
|
125
|
+
id: number;
|
|
126
|
+
cameraId: number;
|
|
127
|
+
userId: number | null;
|
|
128
|
+
startDate: string;
|
|
129
|
+
endDate: string;
|
|
130
|
+
status: AnprExtractionStatus;
|
|
131
|
+
totalRecords: number;
|
|
132
|
+
error: string | null;
|
|
133
|
+
saveMode: AnprExtractionSaveMode;
|
|
134
|
+
startedAt: string | null;
|
|
135
|
+
completedAt: string | null;
|
|
136
|
+
insertedAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
};
|
|
139
|
+
export type AnprExtractionCreatePayload = {
|
|
140
|
+
startDate: string;
|
|
141
|
+
endDate: string;
|
|
142
|
+
saveMode?: AnprExtractionSaveMode;
|
|
114
143
|
};
|
|
@@ -33,6 +33,24 @@ export declare enum AuditLogActionType {
|
|
|
33
33
|
BIM_NOTE = "bim_note",
|
|
34
34
|
GATE_REPORT_NOTE = "gate_report_note"
|
|
35
35
|
}
|
|
36
|
+
export declare enum AuditLogEntity {
|
|
37
|
+
Cameras = "cameras",
|
|
38
|
+
Projects = "projects",
|
|
39
|
+
Layers = "layers",
|
|
40
|
+
Routers = "routers",
|
|
41
|
+
Sims = "sims",
|
|
42
|
+
Hdds = "hdds",
|
|
43
|
+
Nvr = "nvr",
|
|
44
|
+
Archives = "archives",
|
|
45
|
+
Users = "users",
|
|
46
|
+
Rois = "rois",
|
|
47
|
+
Kits = "kits",
|
|
48
|
+
Roles = "roles",
|
|
49
|
+
Tags = "tags",
|
|
50
|
+
KitsTags = "kits_tags",
|
|
51
|
+
Oauth = "oauth",
|
|
52
|
+
StorageProviders = "storage_providers"
|
|
53
|
+
}
|
|
36
54
|
export type AuditLog = {
|
|
37
55
|
id: number;
|
|
38
56
|
action: AuditLogActionType;
|
|
@@ -8,19 +8,18 @@ export type AxiosEnvironment = {
|
|
|
8
8
|
baseUrl?: string | null;
|
|
9
9
|
stagingAiApiUrl?: string | null;
|
|
10
10
|
aiApiUrl?: string | null;
|
|
11
|
-
|
|
11
|
+
ingestDroneApi?: string | null;
|
|
12
|
+
ingest360Api?: string | null;
|
|
12
13
|
ingestGpuApiUrl?: string | null;
|
|
13
|
-
ingestGpuV3ApiUrl?: string | null;
|
|
14
|
-
ingestGpuV4ApiUrl?: string | null;
|
|
15
14
|
posthogApiUrl?: string | null;
|
|
16
15
|
posthogProjectId?: string | null;
|
|
17
|
-
posthogPrivateApiKey?: string | null;
|
|
18
16
|
firebaseVideowallUrl?: string | null;
|
|
19
17
|
weatherApiBaseUrl?: string | null;
|
|
20
18
|
evercamLabsUrl?: string | null;
|
|
21
19
|
firebaseDbLink?: string | null;
|
|
22
20
|
firebaseStorageUrl?: string | null;
|
|
23
21
|
firebaseStorageToken?: string | null;
|
|
22
|
+
forgeTokenServerUrl?: string | null;
|
|
24
23
|
snapshotsURL?: string | null;
|
|
25
24
|
app?: string | null;
|
|
26
25
|
getAuthToken?: () => string | null;
|
|
@@ -30,15 +29,17 @@ export type AxiosEnvironment = {
|
|
|
30
29
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
31
30
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
32
31
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
32
|
+
export type RequestManager = {
|
|
33
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
34
|
+
cancelAll: () => void;
|
|
35
|
+
};
|
|
33
36
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
34
37
|
CancelToken: CancelTokenStatic;
|
|
35
38
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
36
39
|
setToken: (token: string) => void;
|
|
37
40
|
setHeader: (headerName: string, value: any) => void;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
resetCancelTokens: () => void;
|
|
41
|
-
cancelRequests: () => void;
|
|
41
|
+
createRequestManager: () => RequestManager;
|
|
42
|
+
requestManager: RequestManager;
|
|
42
43
|
env: AxiosEnvironment;
|
|
43
44
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
44
45
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -151,3 +151,28 @@ export type BimUploadPayload = {
|
|
|
151
151
|
fileExtension: string;
|
|
152
152
|
}[];
|
|
153
153
|
};
|
|
154
|
+
export declare enum ForgeBimUploadMethod {
|
|
155
|
+
FileUpload = "file_upload",
|
|
156
|
+
AutodeskAcc = "autodesk_acc"
|
|
157
|
+
}
|
|
158
|
+
export declare enum ForgeBimFileRejectionReason {
|
|
159
|
+
InvalidType = "invalid_type",
|
|
160
|
+
ExceedsSizeLimit = "exceeds_size_limit"
|
|
161
|
+
}
|
|
162
|
+
export declare enum ForgeBimUploadStage {
|
|
163
|
+
TusUpload = "tus_upload",
|
|
164
|
+
IngestUpload = "ingest_upload"
|
|
165
|
+
}
|
|
166
|
+
export declare enum ForgeBimDialogTrigger {
|
|
167
|
+
UpdateModel = "update_model",
|
|
168
|
+
AddModel = "add_model",
|
|
169
|
+
InitialSetup = "initial_setup"
|
|
170
|
+
}
|
|
171
|
+
export type BimUpdatedWebhookPayload = {
|
|
172
|
+
eventName: "bim.updated";
|
|
173
|
+
projectId: string;
|
|
174
|
+
data: {
|
|
175
|
+
updatedAt: string;
|
|
176
|
+
bimIdentifier: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
@@ -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;
|
|
@@ -17,6 +13,7 @@ export type Camera = {
|
|
|
17
13
|
status: string;
|
|
18
14
|
storageDuration: string;
|
|
19
15
|
};
|
|
16
|
+
liveViewFrequency: number | null;
|
|
20
17
|
createdAt: string;
|
|
21
18
|
description: string | null;
|
|
22
19
|
discoverable: boolean;
|
|
@@ -45,10 +42,7 @@ export type Camera = {
|
|
|
45
42
|
isPublic: boolean;
|
|
46
43
|
lastOnlineAt: string;
|
|
47
44
|
lastPolledAt: string;
|
|
48
|
-
location:
|
|
49
|
-
lat: number;
|
|
50
|
-
lng: number;
|
|
51
|
-
};
|
|
45
|
+
location: GeoPoint;
|
|
52
46
|
modelId: string;
|
|
53
47
|
modelName: string;
|
|
54
48
|
name: string;
|
|
@@ -86,6 +80,7 @@ export type Camera = {
|
|
|
86
80
|
vendorName: string;
|
|
87
81
|
isAccessRestricted?: boolean;
|
|
88
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
89
84
|
};
|
|
90
85
|
export type AdminCamera = {
|
|
91
86
|
id: number;
|
|
@@ -111,10 +106,7 @@ export type AdminCamera = {
|
|
|
111
106
|
isPublic: boolean;
|
|
112
107
|
sharedWithConstruction?: boolean;
|
|
113
108
|
timezone: string | null;
|
|
114
|
-
location?:
|
|
115
|
-
lat: number;
|
|
116
|
-
lng: number;
|
|
117
|
-
} | null;
|
|
109
|
+
location?: GeoPoint | null;
|
|
118
110
|
fovAngle?: number | null;
|
|
119
111
|
fovRadius?: number | null;
|
|
120
112
|
heading?: number | null;
|
|
@@ -154,6 +146,7 @@ export type AdminCamera = {
|
|
|
154
146
|
cloudRecordingStatus?: string | null;
|
|
155
147
|
cloudRecordingSchedule?: ScheduleLowercase | null;
|
|
156
148
|
cloudRecordingStorageDuration?: number | null;
|
|
149
|
+
liveViewFrequency?: number | null;
|
|
157
150
|
anprSources?: string[];
|
|
158
151
|
storageProviders?: string[];
|
|
159
152
|
featureFlags?: CameraFeatureFlag[];
|
|
@@ -165,10 +158,7 @@ export type AdminCamera = {
|
|
|
165
158
|
};
|
|
166
159
|
export type CameraMapMarker = {
|
|
167
160
|
isOnline: boolean;
|
|
168
|
-
location:
|
|
169
|
-
lat: number;
|
|
170
|
-
lng: number;
|
|
171
|
-
};
|
|
161
|
+
location: GeoPoint;
|
|
172
162
|
needFov: boolean;
|
|
173
163
|
rotation: number;
|
|
174
164
|
fovAngle: number;
|
|
@@ -207,6 +197,10 @@ export declare enum CameraFeatureFlag {
|
|
|
207
197
|
Segmentation = "segmentation",
|
|
208
198
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
209
199
|
PpeMonitoring = "ppe_monitoring",
|
|
200
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
201
|
+
PpeGemini = "ppe_gemini",
|
|
202
|
+
PpeYolo = "ppe_yolo",
|
|
203
|
+
PpeV2 = "ppe_v2",
|
|
210
204
|
NoLiveView = "no_live_view",
|
|
211
205
|
Ring = "ring",
|
|
212
206
|
CloudOnly = "cloud_only"
|
|
@@ -253,6 +247,7 @@ export type CameraUpdateRequestPayload = {
|
|
|
253
247
|
fovRadius?: number;
|
|
254
248
|
featureFlags: CameraFeatureFlag[];
|
|
255
249
|
isAccessRestricted?: boolean;
|
|
250
|
+
liveViewFrequency?: number | null;
|
|
256
251
|
};
|
|
257
252
|
export type CamerasResponsePayload = {
|
|
258
253
|
cameras?: Camera[];
|
|
@@ -317,12 +312,6 @@ export declare enum CameraModel {
|
|
|
317
312
|
Other = "other",
|
|
318
313
|
Ring = "ring"
|
|
319
314
|
}
|
|
320
|
-
export type DroneCameraTransform = {
|
|
321
|
-
position: Cartesian3;
|
|
322
|
-
direction: Cartesian3;
|
|
323
|
-
up: Cartesian3;
|
|
324
|
-
right: Cartesian3;
|
|
325
|
-
};
|
|
326
315
|
export type Footage = {
|
|
327
316
|
cameraExid: string;
|
|
328
317
|
cameraName: string;
|
|
@@ -363,7 +352,7 @@ export type CameraCreateRequestPayload = {
|
|
|
363
352
|
isPowerScheduleActive?: boolean;
|
|
364
353
|
ptz?: boolean;
|
|
365
354
|
name: string;
|
|
366
|
-
coordinates?:
|
|
355
|
+
coordinates?: TuplePoint2D;
|
|
367
356
|
recordingFromNvr?: boolean;
|
|
368
357
|
CameraConfig: {
|
|
369
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;
|
|
@@ -99,6 +90,9 @@ export type DetectionsCountsParams = BaseCountsParams & {
|
|
|
99
90
|
export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
|
|
100
91
|
export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
|
|
101
92
|
export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
|
|
93
|
+
export type SegmentsPresenceResponse = {
|
|
94
|
+
intervals: SegmentsPresenceByLabel;
|
|
95
|
+
};
|
|
102
96
|
export type LuminanceReading = {
|
|
103
97
|
timestamp: string;
|
|
104
98
|
luminanceDelta: number;
|
|
@@ -117,5 +111,6 @@ export declare enum DetectionModel {
|
|
|
117
111
|
Yolov11 = 2,
|
|
118
112
|
Yolov112 = 3,
|
|
119
113
|
GroundingDino = 4,
|
|
120
|
-
Owlv2 = 5
|
|
114
|
+
Owlv2 = 5,
|
|
115
|
+
PpeV2 = 6
|
|
121
116
|
}
|
|
@@ -1,17 +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;
|
|
13
|
+
cesiumGausianSplatId: string;
|
|
6
14
|
pointSize: string;
|
|
7
|
-
maximumScreenSpaceError:
|
|
15
|
+
maximumScreenSpaceError: number;
|
|
8
16
|
link: string;
|
|
9
17
|
trueIndex: number;
|
|
10
18
|
};
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
14
100
|
};
|
|
15
101
|
export declare enum DroneUrlParams {
|
|
16
102
|
Date = "date"
|
|
17
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 {};
|