@evercam/api 1.0.0-6e3a1a58d → 1.0.0-70861323c
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 +25 -15
- package/dist/api/api/aiApi.d.ts +44 -4
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +17 -8
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- 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 +35 -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 +47 -0
- package/dist/api/types/axios.d.ts +14 -7
- package/dist/api/types/bim.d.ts +25 -0
- package/dist/api/types/camera.d.ts +11 -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 +2 -10
- package/dist/api/types/drone.d.ts +95 -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 +4 -0
- 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 +55 -2
- 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/timelapse.d.ts +6 -2
- package/dist/api/types/user.d.ts +1 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1598 -748
- 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 +85 -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
|
@@ -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",
|
|
@@ -374,6 +368,7 @@ export declare enum AnalyticsEvent {
|
|
|
374
368
|
DroneUnarchiveComment = "UnarchiveComment",
|
|
375
369
|
DroneArchiveComment = "ArchiveComment",
|
|
376
370
|
DroneDeleteComment = "DeleteComment",
|
|
371
|
+
DroneSaveAerialShot = "SaveAerialShot",
|
|
377
372
|
PlannerAddCameraClick = "AddCameraClick",
|
|
378
373
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
379
374
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -405,7 +400,7 @@ export declare enum AnalyticsEvent {
|
|
|
405
400
|
DrawingClickHome = "ClickHome",
|
|
406
401
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
407
402
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
408
|
-
|
|
403
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
409
404
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
410
405
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
411
406
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -449,10 +444,15 @@ export declare enum AnalyticsEvent {
|
|
|
449
444
|
ProjectSettingsCameraSettingsSaveCameraName = "SaveCameraName",
|
|
450
445
|
ProjectSettingsMembersApplyCamerasFilter = "ApplyCamerasFilter",
|
|
451
446
|
ProjectSettingsMembersApplySearchFilter = "ApplySearchFilter",
|
|
447
|
+
ProjectSettingsMembersViewRoleInfo = "ViewRoleInfo",
|
|
448
|
+
ProjectSettingsMembersViewMemberInfo = "ViewMemberInfo",
|
|
449
|
+
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
450
|
+
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
451
|
+
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
452
452
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
453
|
+
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
453
454
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
454
455
|
ProjectSettingsMembersEditCameraAccess = "EditCameraAccess",
|
|
455
|
-
ProjectSettingsMembersFiltersClick = "FiltersClick",
|
|
456
456
|
ProjectSettingsMembersShareCamera = "ShareCamera",
|
|
457
457
|
ProjectSettingsMembersToggleAddDialog = "ToggleAddDialog",
|
|
458
458
|
ProjectSettingsOverviewOpenInMapView = "OpenInMapView",
|
|
@@ -541,7 +541,6 @@ export declare enum AnalyticsEvent {
|
|
|
541
541
|
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
542
542
|
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
543
543
|
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
544
|
-
AutomationsFiltersClicked = "FiltersClicked",
|
|
545
544
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
546
545
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
547
546
|
AutomationTypeName = "TypeName",
|
|
@@ -590,5 +589,26 @@ export declare enum AnalyticsEvent {
|
|
|
590
589
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
591
590
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
592
591
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
593
|
-
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"
|
|
594
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;
|
|
@@ -3,6 +3,10 @@ export declare enum RoleResourceType {
|
|
|
3
3
|
Camera = "camera",
|
|
4
4
|
Project = "project"
|
|
5
5
|
}
|
|
6
|
+
export declare enum RoleAssignmentLogAction {
|
|
7
|
+
Assign = "assign",
|
|
8
|
+
Unassign = "unassign"
|
|
9
|
+
}
|
|
6
10
|
export type RoleSubRole = {
|
|
7
11
|
resourceId: string;
|
|
8
12
|
roleId: number;
|
|
@@ -18,6 +22,7 @@ export type Role = {
|
|
|
18
22
|
resourceId?: string | null;
|
|
19
23
|
permissions: string[];
|
|
20
24
|
subRoles?: RoleSubRole[];
|
|
25
|
+
isDefault?: boolean;
|
|
21
26
|
};
|
|
22
27
|
export type ProjectResourceRole = Role & {
|
|
23
28
|
resourceType: RoleResourceType.Project;
|
|
@@ -58,3 +63,45 @@ export type AuthzScopeCreatePayload = {
|
|
|
58
63
|
export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
|
|
59
64
|
export declare function isProjectRole(role: Role): role is ProjectResourceRole;
|
|
60
65
|
export declare function isCameraRole(role: Role): role is CameraResourceRole;
|
|
66
|
+
export type RoleAssignmentLog = {
|
|
67
|
+
id: number;
|
|
68
|
+
action: RoleAssignmentLogAction;
|
|
69
|
+
assignerId: number | null;
|
|
70
|
+
assignerEmail: string | null;
|
|
71
|
+
assigneeId: number | null;
|
|
72
|
+
assigneeEmail: string;
|
|
73
|
+
roleId: number | null;
|
|
74
|
+
roleName: string | null;
|
|
75
|
+
previousRoleId: number | null;
|
|
76
|
+
previousRoleName: string | null;
|
|
77
|
+
scope: RoleResourceType;
|
|
78
|
+
projectExid: string | null;
|
|
79
|
+
cameraExid: string | null;
|
|
80
|
+
ip: string | null;
|
|
81
|
+
userDetails: {
|
|
82
|
+
browser?: string | null;
|
|
83
|
+
device?: string | null;
|
|
84
|
+
os?: string | null;
|
|
85
|
+
country?: string | null;
|
|
86
|
+
countryCode?: string | null;
|
|
87
|
+
ip?: string | null;
|
|
88
|
+
impersonatedBy?: string | null;
|
|
89
|
+
} | null;
|
|
90
|
+
insertedAt: string;
|
|
91
|
+
};
|
|
92
|
+
export type RoleAssignmentLogsParams = {
|
|
93
|
+
page?: number;
|
|
94
|
+
limit?: number;
|
|
95
|
+
sort?: string;
|
|
96
|
+
action?: RoleAssignmentLogAction;
|
|
97
|
+
roleId?: number;
|
|
98
|
+
roleName?: string;
|
|
99
|
+
assigneeEmail?: string;
|
|
100
|
+
assignerEmail?: string;
|
|
101
|
+
scope?: RoleResourceType;
|
|
102
|
+
projectExid?: string;
|
|
103
|
+
cameraExid?: string;
|
|
104
|
+
ip?: string;
|
|
105
|
+
from?: string;
|
|
106
|
+
to?: string;
|
|
107
|
+
};
|
|
@@ -8,14 +8,19 @@ 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
|
-
|
|
14
|
-
|
|
14
|
+
posthogApiUrl?: string | null;
|
|
15
|
+
posthogProjectId?: string | null;
|
|
16
|
+
firebaseVideowallUrl?: string | null;
|
|
17
|
+
weatherApiBaseUrl?: string | null;
|
|
15
18
|
evercamLabsUrl?: string | null;
|
|
19
|
+
isLabsStaging?: boolean;
|
|
16
20
|
firebaseDbLink?: string | null;
|
|
17
21
|
firebaseStorageUrl?: string | null;
|
|
18
22
|
firebaseStorageToken?: string | null;
|
|
23
|
+
forgeTokenServerUrl?: string | null;
|
|
19
24
|
snapshotsURL?: string | null;
|
|
20
25
|
app?: string | null;
|
|
21
26
|
getAuthToken?: () => string | null;
|
|
@@ -25,15 +30,17 @@ export type AxiosEnvironment = {
|
|
|
25
30
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
26
31
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
27
32
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
33
|
+
export type RequestManager = {
|
|
34
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
35
|
+
cancelAll: () => void;
|
|
36
|
+
};
|
|
28
37
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
29
38
|
CancelToken: CancelTokenStatic;
|
|
30
39
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
31
40
|
setToken: (token: string) => void;
|
|
32
41
|
setHeader: (headerName: string, value: any) => void;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
resetCancelTokens: () => void;
|
|
36
|
-
cancelRequests: () => void;
|
|
42
|
+
createRequestManager: () => RequestManager;
|
|
43
|
+
requestManager: RequestManager;
|
|
37
44
|
env: AxiosEnvironment;
|
|
38
45
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
39
46
|
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;
|
|
@@ -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;
|
|
@@ -87,6 +80,7 @@ export type Camera = {
|
|
|
87
80
|
vendorName: string;
|
|
88
81
|
isAccessRestricted?: boolean;
|
|
89
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
90
84
|
};
|
|
91
85
|
export type AdminCamera = {
|
|
92
86
|
id: number;
|
|
@@ -112,10 +106,7 @@ export type AdminCamera = {
|
|
|
112
106
|
isPublic: boolean;
|
|
113
107
|
sharedWithConstruction?: boolean;
|
|
114
108
|
timezone: string | null;
|
|
115
|
-
location?:
|
|
116
|
-
lat: number;
|
|
117
|
-
lng: number;
|
|
118
|
-
} | null;
|
|
109
|
+
location?: GeoPoint | null;
|
|
119
110
|
fovAngle?: number | null;
|
|
120
111
|
fovRadius?: number | null;
|
|
121
112
|
heading?: number | null;
|
|
@@ -167,10 +158,7 @@ export type AdminCamera = {
|
|
|
167
158
|
};
|
|
168
159
|
export type CameraMapMarker = {
|
|
169
160
|
isOnline: boolean;
|
|
170
|
-
location:
|
|
171
|
-
lat: number;
|
|
172
|
-
lng: number;
|
|
173
|
-
};
|
|
161
|
+
location: GeoPoint;
|
|
174
162
|
needFov: boolean;
|
|
175
163
|
rotation: number;
|
|
176
164
|
fovAngle: number;
|
|
@@ -209,6 +197,10 @@ export declare enum CameraFeatureFlag {
|
|
|
209
197
|
Segmentation = "segmentation",
|
|
210
198
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
211
199
|
PpeMonitoring = "ppe_monitoring",
|
|
200
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
201
|
+
PpeGemini = "ppe_gemini",
|
|
202
|
+
PpeYolo = "ppe_yolo",
|
|
203
|
+
PpeV2 = "ppe_v2",
|
|
212
204
|
NoLiveView = "no_live_view",
|
|
213
205
|
Ring = "ring",
|
|
214
206
|
CloudOnly = "cloud_only"
|
|
@@ -320,12 +312,6 @@ export declare enum CameraModel {
|
|
|
320
312
|
Other = "other",
|
|
321
313
|
Ring = "ring"
|
|
322
314
|
}
|
|
323
|
-
export type DroneCameraTransform = {
|
|
324
|
-
position: Cartesian3;
|
|
325
|
-
direction: Cartesian3;
|
|
326
|
-
up: Cartesian3;
|
|
327
|
-
right: Cartesian3;
|
|
328
|
-
};
|
|
329
315
|
export type Footage = {
|
|
330
316
|
cameraExid: string;
|
|
331
317
|
cameraName: string;
|
|
@@ -366,7 +352,7 @@ export type CameraCreateRequestPayload = {
|
|
|
366
352
|
isPowerScheduleActive?: boolean;
|
|
367
353
|
ptz?: boolean;
|
|
368
354
|
name: string;
|
|
369
|
-
coordinates?:
|
|
355
|
+
coordinates?: TuplePoint2D;
|
|
370
356
|
recordingFromNvr?: boolean;
|
|
371
357
|
CameraConfig: {
|
|
372
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;
|
|
@@ -120,5 +111,6 @@ export declare enum DetectionModel {
|
|
|
120
111
|
Yolov11 = 2,
|
|
121
112
|
Yolov112 = 3,
|
|
122
113
|
GroundingDino = 4,
|
|
123
|
-
Owlv2 = 5
|
|
114
|
+
Owlv2 = 5,
|
|
115
|
+
PpeV2 = 6
|
|
124
116
|
}
|
|
@@ -1,18 +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;
|
|
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
|
+
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;
|
|
15
100
|
};
|
|
16
101
|
export declare enum DroneUrlParams {
|
|
17
102
|
Date = "date"
|
|
18
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 {};
|