@evercam/api 1.0.0-5fab6756e → 1.0.0-61223f63e
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/dist/api/api/3dFirebaseApi.d.ts +164 -15
- package/dist/api/api/adminApi.d.ts +8 -1
- package/dist/api/api/aiApi.d.ts +2 -2
- package/dist/api/api/authzApi.d.ts +1 -2
- package/dist/api/api/evercamApi.d.ts +10 -1
- package/dist/api/api/ingestApi.d.ts +44 -43
- package/dist/api/types/360.d.ts +55 -50
- package/dist/api/types/analytics.d.ts +33 -15
- package/dist/api/types/anpr.d.ts +0 -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 +3 -4
- package/dist/api/types/bim.d.ts +17 -0
- package/dist/api/types/camera.d.ts +8 -24
- package/dist/api/types/comments.d.ts +8 -6
- package/dist/api/types/detections.d.ts +0 -9
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/gateReport.d.ts +6 -11
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/ingest.d.ts +16 -3
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/planner.d.ts +55 -2
- package/dist/api/types/project.d.ts +8 -3
- package/dist/api/types/recording.d.ts +3 -1
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/shared.d.ts +19 -0
- package/dist/api/types/siteAnalytics.d.ts +3 -3
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/snapshots.d.ts +43 -3
- package/dist/api/types/timelapse.d.ts +6 -2
- package/dist/api/types/user.d.ts +0 -1
- package/dist/index.js +1186 -696
- 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 +61 -9
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/package.json +2 -2
|
@@ -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",
|
|
@@ -311,6 +302,7 @@ export declare enum AnalyticsEvent {
|
|
|
311
302
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
312
303
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
313
304
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
305
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
314
306
|
ThreeSixtySaveComment = "SaveComment",
|
|
315
307
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
316
308
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -358,6 +350,8 @@ export declare enum AnalyticsEvent {
|
|
|
358
350
|
DroneToggleBimCompareTool = "ToggleBimCompareTool",
|
|
359
351
|
DroneToggleFullScreen = "ToggleFullScreen",
|
|
360
352
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
353
|
+
DroneTogglePointCloud = "TogglePointCloud",
|
|
354
|
+
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
361
355
|
DroneToggleQualityMode = "ChooseQuality",
|
|
362
356
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
363
357
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -372,6 +366,7 @@ export declare enum AnalyticsEvent {
|
|
|
372
366
|
DroneUnarchiveComment = "UnarchiveComment",
|
|
373
367
|
DroneArchiveComment = "ArchiveComment",
|
|
374
368
|
DroneDeleteComment = "DeleteComment",
|
|
369
|
+
DroneSaveAerialShot = "SaveAerialShot",
|
|
375
370
|
PlannerAddCameraClick = "AddCameraClick",
|
|
376
371
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
377
372
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -403,7 +398,6 @@ export declare enum AnalyticsEvent {
|
|
|
403
398
|
DrawingClickHome = "ClickHome",
|
|
404
399
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
405
400
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
406
|
-
DrawingToggleFilter = "ToggleFilter",
|
|
407
401
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
408
402
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
409
403
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -447,10 +441,15 @@ export declare enum AnalyticsEvent {
|
|
|
447
441
|
ProjectSettingsCameraSettingsSaveCameraName = "SaveCameraName",
|
|
448
442
|
ProjectSettingsMembersApplyCamerasFilter = "ApplyCamerasFilter",
|
|
449
443
|
ProjectSettingsMembersApplySearchFilter = "ApplySearchFilter",
|
|
444
|
+
ProjectSettingsMembersViewRoleInfo = "ViewRoleInfo",
|
|
445
|
+
ProjectSettingsMembersViewMemberInfo = "ViewMemberInfo",
|
|
446
|
+
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
447
|
+
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
448
|
+
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
450
449
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
450
|
+
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
451
451
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
452
452
|
ProjectSettingsMembersEditCameraAccess = "EditCameraAccess",
|
|
453
|
-
ProjectSettingsMembersFiltersClick = "FiltersClick",
|
|
454
453
|
ProjectSettingsMembersShareCamera = "ShareCamera",
|
|
455
454
|
ProjectSettingsMembersToggleAddDialog = "ToggleAddDialog",
|
|
456
455
|
ProjectSettingsOverviewOpenInMapView = "OpenInMapView",
|
|
@@ -539,7 +538,6 @@ export declare enum AnalyticsEvent {
|
|
|
539
538
|
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
540
539
|
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
541
540
|
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
542
|
-
AutomationsFiltersClicked = "FiltersClicked",
|
|
543
541
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
544
542
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
545
543
|
AutomationTypeName = "TypeName",
|
|
@@ -588,5 +586,25 @@ export declare enum AnalyticsEvent {
|
|
|
588
586
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
589
587
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
590
588
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
591
|
-
AskAICloseChat = "AskAI-CloseChat"
|
|
589
|
+
AskAICloseChat = "AskAI-CloseChat",
|
|
590
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
591
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
592
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
593
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
594
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
595
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
596
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
597
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
598
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
599
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
600
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
601
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
602
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
603
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
604
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
605
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
606
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
607
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
608
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
609
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed"
|
|
592
610
|
}
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -104,11 +104,9 @@ 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
|
-
updatedBy: string;
|
|
114
112
|
};
|
|
@@ -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;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -151,3 +151,20 @@ 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
|
+
}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
+
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
3
4
|
export type CameraExid = string;
|
|
4
5
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
5
|
-
export type Cartesian3 = {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
z: number;
|
|
9
|
-
};
|
|
10
6
|
export type Camera = {
|
|
11
7
|
cameraPowerSchedule?: Schedule;
|
|
12
8
|
camPassword?: string;
|
|
@@ -46,10 +42,7 @@ export type Camera = {
|
|
|
46
42
|
isPublic: boolean;
|
|
47
43
|
lastOnlineAt: string;
|
|
48
44
|
lastPolledAt: string;
|
|
49
|
-
location:
|
|
50
|
-
lat: number;
|
|
51
|
-
lng: number;
|
|
52
|
-
};
|
|
45
|
+
location: GeoPoint;
|
|
53
46
|
modelId: string;
|
|
54
47
|
modelName: string;
|
|
55
48
|
name: string;
|
|
@@ -112,10 +105,7 @@ export type AdminCamera = {
|
|
|
112
105
|
isPublic: boolean;
|
|
113
106
|
sharedWithConstruction?: boolean;
|
|
114
107
|
timezone: string | null;
|
|
115
|
-
location?:
|
|
116
|
-
lat: number;
|
|
117
|
-
lng: number;
|
|
118
|
-
} | null;
|
|
108
|
+
location?: GeoPoint | null;
|
|
119
109
|
fovAngle?: number | null;
|
|
120
110
|
fovRadius?: number | null;
|
|
121
111
|
heading?: number | null;
|
|
@@ -167,10 +157,7 @@ export type AdminCamera = {
|
|
|
167
157
|
};
|
|
168
158
|
export type CameraMapMarker = {
|
|
169
159
|
isOnline: boolean;
|
|
170
|
-
location:
|
|
171
|
-
lat: number;
|
|
172
|
-
lng: number;
|
|
173
|
-
};
|
|
160
|
+
location: GeoPoint;
|
|
174
161
|
needFov: boolean;
|
|
175
162
|
rotation: number;
|
|
176
163
|
fovAngle: number;
|
|
@@ -209,6 +196,9 @@ export declare enum CameraFeatureFlag {
|
|
|
209
196
|
Segmentation = "segmentation",
|
|
210
197
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
211
198
|
PpeMonitoring = "ppe_monitoring",
|
|
199
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
200
|
+
PpeGemini = "ppe_gemini",
|
|
201
|
+
PpeYolo = "ppe_yolo",
|
|
212
202
|
NoLiveView = "no_live_view",
|
|
213
203
|
Ring = "ring",
|
|
214
204
|
CloudOnly = "cloud_only"
|
|
@@ -320,12 +310,6 @@ export declare enum CameraModel {
|
|
|
320
310
|
Other = "other",
|
|
321
311
|
Ring = "ring"
|
|
322
312
|
}
|
|
323
|
-
export type DroneCameraTransform = {
|
|
324
|
-
position: Cartesian3;
|
|
325
|
-
direction: Cartesian3;
|
|
326
|
-
up: Cartesian3;
|
|
327
|
-
right: Cartesian3;
|
|
328
|
-
};
|
|
329
313
|
export type Footage = {
|
|
330
314
|
cameraExid: string;
|
|
331
315
|
cameraName: string;
|
|
@@ -366,7 +350,7 @@ export type CameraCreateRequestPayload = {
|
|
|
366
350
|
isPowerScheduleActive?: boolean;
|
|
367
351
|
ptz?: boolean;
|
|
368
352
|
name: string;
|
|
369
|
-
coordinates?:
|
|
353
|
+
coordinates?: TuplePoint2D;
|
|
370
354
|
recordingFromNvr?: boolean;
|
|
371
355
|
CameraConfig: {
|
|
372
356
|
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;
|
|
@@ -49,7 +51,7 @@ export type CommentCreationRequestPayload = {
|
|
|
49
51
|
projectExid: ProjectExid;
|
|
50
52
|
cameraExid?: CameraExid;
|
|
51
53
|
content: string;
|
|
52
|
-
position2d?:
|
|
53
|
-
position3d?: number
|
|
54
|
+
position2d?: TuplePoint2D;
|
|
55
|
+
position3d?: [number, number, number];
|
|
54
56
|
context?: Record<string, unknown>;
|
|
55
57
|
};
|
|
@@ -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;
|
|
@@ -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
|
+
}
|
|
@@ -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",
|
|
@@ -259,23 +259,19 @@ export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & {
|
|
|
259
259
|
export type LegacyAnprExportParams = AnprExportBaseParams & {
|
|
260
260
|
direction?: AnprDirection;
|
|
261
261
|
};
|
|
262
|
-
type X1 = number;
|
|
263
|
-
type Y1 = number;
|
|
264
|
-
type X2 = number;
|
|
265
|
-
type Y2 = number;
|
|
266
262
|
export type GateReportROIShape = {
|
|
267
|
-
coordinates: [
|
|
263
|
+
coordinates: TuplePoint2D[];
|
|
268
264
|
type: RoiShapeType;
|
|
269
265
|
};
|
|
270
266
|
export type GateReportROI = {
|
|
271
267
|
cameraex?: string;
|
|
272
268
|
fromDate?: string;
|
|
273
|
-
directionFilter?:
|
|
269
|
+
directionFilter?: RoiDirection;
|
|
274
270
|
id?: number;
|
|
275
271
|
insertedAt?: Timestamp;
|
|
276
272
|
isActive?: boolean;
|
|
277
273
|
name?: string;
|
|
278
|
-
roiType?:
|
|
274
|
+
roiType?: RoiType;
|
|
279
275
|
updatedAt?: Timestamp;
|
|
280
276
|
shapes?: GateReportROIShape[];
|
|
281
277
|
};
|
|
@@ -318,7 +314,7 @@ export type RoisQueryParams = {
|
|
|
318
314
|
id: number;
|
|
319
315
|
name: string;
|
|
320
316
|
fromDate: string;
|
|
321
|
-
roiType:
|
|
317
|
+
roiType: RoiType;
|
|
322
318
|
isActive: boolean;
|
|
323
319
|
directionFilter: string;
|
|
324
320
|
sort: string;
|
|
@@ -327,11 +323,10 @@ export type GateReportRoiRequestPayload = {
|
|
|
327
323
|
id: number;
|
|
328
324
|
cameraExid: string;
|
|
329
325
|
name: string;
|
|
330
|
-
roiType:
|
|
326
|
+
roiType: RoiType;
|
|
331
327
|
isActive: true;
|
|
332
328
|
fromDate: string;
|
|
333
329
|
shapes: GateReportROIShape[];
|
|
334
330
|
directionFilter: string;
|
|
335
331
|
note: string;
|
|
336
332
|
};
|
|
337
|
-
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationParams, DateType, JsonValue } from "@evercam/api/types";
|
|
1
|
+
import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
|
|
3
3
|
export declare enum IngestProcessingStatus {
|
|
4
4
|
Completed = "completed",
|
|
@@ -18,7 +18,12 @@ export declare enum IngestVersions {
|
|
|
18
18
|
V1 = "v1",
|
|
19
19
|
V2 = "v2",
|
|
20
20
|
V3 = "v3",
|
|
21
|
-
V4 = "v4"
|
|
21
|
+
V4 = "v4",
|
|
22
|
+
V5 = "v5"
|
|
23
|
+
}
|
|
24
|
+
export declare enum IngestTypes {
|
|
25
|
+
Drone = "drone",
|
|
26
|
+
ThreeSixty = "360"
|
|
22
27
|
}
|
|
23
28
|
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
24
29
|
projectId: string;
|
|
@@ -65,11 +70,19 @@ export type DroneUploadUpdateRequestPayload = {
|
|
|
65
70
|
title: string;
|
|
66
71
|
fileExtension: string;
|
|
67
72
|
}[];
|
|
73
|
+
aerialShots: {
|
|
74
|
+
url: string;
|
|
75
|
+
title: string;
|
|
76
|
+
fileExtension: string;
|
|
77
|
+
gpsLatitude: string;
|
|
78
|
+
gpsLongitude: string;
|
|
79
|
+
gpsAltitude: string;
|
|
80
|
+
}[];
|
|
68
81
|
projectName: string;
|
|
69
82
|
};
|
|
70
83
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
71
84
|
date: DateType;
|
|
72
|
-
points: [
|
|
85
|
+
points: TuplePoint2D[];
|
|
73
86
|
operation: string;
|
|
74
87
|
};
|
|
75
88
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
package/dist/api/types/map.d.ts
CHANGED
|
@@ -2,3 +2,15 @@ export declare enum MapType {
|
|
|
2
2
|
Hybrid = "hybrid",
|
|
3
3
|
Terrain = "terrain"
|
|
4
4
|
}
|
|
5
|
+
export type MapView = {
|
|
6
|
+
east?: number;
|
|
7
|
+
floorID?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
mapStyle?: MapType;
|
|
10
|
+
name: string;
|
|
11
|
+
north?: number;
|
|
12
|
+
projectId: string;
|
|
13
|
+
projectName: string;
|
|
14
|
+
south?: number;
|
|
15
|
+
west?: number;
|
|
16
|
+
};
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { GeoPoint, TuplePoint2D } from "./shared";
|
|
2
|
+
import { MapType } from "./map";
|
|
3
|
+
export type PlannerListItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
projectName: string;
|
|
7
|
+
projectLocation: string;
|
|
8
|
+
createdDate: string;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
lastUpdatedBy?: string;
|
|
12
|
+
camerasCount?: number;
|
|
13
|
+
hasPlan?: boolean;
|
|
14
|
+
thumbnailUrl?: string;
|
|
15
|
+
projectMapType?: MapType;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
};
|
|
18
|
+
export type PolygonPath = TuplePoint2D[];
|
|
3
19
|
export type PolygonCoordinates = PolygonPath[];
|
|
4
20
|
export interface GeoJSONPolygon {
|
|
5
21
|
type: "Polygon";
|
|
@@ -47,6 +63,43 @@ export declare enum ERoles {
|
|
|
47
63
|
Admin = "admin",
|
|
48
64
|
User = "user"
|
|
49
65
|
}
|
|
66
|
+
export type PlannerOverlay = {
|
|
67
|
+
imageUrl?: string;
|
|
68
|
+
corners?: {
|
|
69
|
+
topLeft: GeoPoint;
|
|
70
|
+
topRight: GeoPoint;
|
|
71
|
+
bottomLeft: GeoPoint;
|
|
72
|
+
bottomRight: GeoPoint;
|
|
73
|
+
} | null;
|
|
74
|
+
};
|
|
75
|
+
export type PlannerCameraMarker = {
|
|
76
|
+
name?: string;
|
|
77
|
+
location?: GeoPoint;
|
|
78
|
+
heading?: number;
|
|
79
|
+
fovAngle?: number;
|
|
80
|
+
fovRadius?: number;
|
|
81
|
+
isVisible?: boolean;
|
|
82
|
+
color?: string;
|
|
83
|
+
};
|
|
84
|
+
export type SitePlanBounds = {
|
|
85
|
+
northEast: GeoPoint;
|
|
86
|
+
southWest: GeoPoint;
|
|
87
|
+
};
|
|
88
|
+
export type SitePlan = {
|
|
89
|
+
id?: string;
|
|
90
|
+
projectId?: string;
|
|
91
|
+
owner?: string;
|
|
92
|
+
lastUpdatedBy?: string;
|
|
93
|
+
projectName?: string;
|
|
94
|
+
projectLocation?: string;
|
|
95
|
+
projectMapType?: EMapTypes;
|
|
96
|
+
projectBounds?: SitePlanBounds;
|
|
97
|
+
overlay?: PlannerOverlay;
|
|
98
|
+
markers?: PlannerCameraMarker[];
|
|
99
|
+
thumbnailUrl?: string;
|
|
100
|
+
createdDate?: string;
|
|
101
|
+
updatedDate?: string;
|
|
102
|
+
};
|
|
50
103
|
export interface IDrawControl {
|
|
51
104
|
_toolbars: {
|
|
52
105
|
draw: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type ProjectExid = Exid;
|
|
3
3
|
export type ProjectsByExid = EntityByExid<Project>;
|
|
4
4
|
export type Project = {
|
|
@@ -62,7 +62,8 @@ export declare enum ProjectArchiveTier {
|
|
|
62
62
|
Full = "Full",
|
|
63
63
|
Partial = "Partial",
|
|
64
64
|
Minimal = "Minimal",
|
|
65
|
-
ScheduledForDeletion = "Scheduled for Deletion"
|
|
65
|
+
ScheduledForDeletion = "Scheduled for Deletion",
|
|
66
|
+
No = "No"
|
|
66
67
|
}
|
|
67
68
|
export type UpdateCameraRestrictionPayload = {
|
|
68
69
|
isAccessRestricted?: boolean;
|
|
@@ -109,6 +110,7 @@ export type ProjectsQueryParams = PaginationParams & {
|
|
|
109
110
|
status: ProjectStatus;
|
|
110
111
|
cameras: string;
|
|
111
112
|
featureFlags: Array<ProjectFeatureFlag>;
|
|
113
|
+
featureFlagsOperator?: Operator;
|
|
112
114
|
archived: string;
|
|
113
115
|
};
|
|
114
116
|
export type ProjectCreateRequestPayload = {
|
|
@@ -163,6 +165,7 @@ export type ProjectRole = {
|
|
|
163
165
|
};
|
|
164
166
|
export type ProjectMember = {
|
|
165
167
|
id: string;
|
|
168
|
+
key?: string;
|
|
166
169
|
email: string;
|
|
167
170
|
fullname: string;
|
|
168
171
|
lastSeenAt?: string;
|
|
@@ -172,7 +175,9 @@ export type ProjectMember = {
|
|
|
172
175
|
resourceId: string;
|
|
173
176
|
roleId: number;
|
|
174
177
|
}>;
|
|
175
|
-
company?:
|
|
178
|
+
company?: {
|
|
179
|
+
name: string;
|
|
180
|
+
} | null;
|
|
176
181
|
};
|
|
177
182
|
export type ProjectInvite = {
|
|
178
183
|
id?: string;
|