@evercam/api 1.0.0-0871e2da6 → 1.0.0-095233f21
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 +197 -15
- package/dist/api/api/adminApi.d.ts +31 -20
- package/dist/api/api/aiApi.d.ts +127 -4
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +39 -14
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +63 -48
- package/dist/api/types/360.d.ts +168 -83
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +46 -23
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -1
- package/dist/api/types/authz.d.ts +72 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +11 -12
- package/dist/api/types/bim.d.ts +28 -5
- package/dist/api/types/camera.d.ts +35 -46
- package/dist/api/types/comments.d.ts +16 -7
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/copilot.d.ts +0 -3
- package/dist/api/types/detections.d.ts +3 -10
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/errors.d.ts +13 -1
- package/dist/api/types/gateReport.d.ts +7 -22
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +8 -1
- package/dist/api/types/ingest.d.ts +104 -4
- package/dist/api/types/kit.d.ts +43 -51
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +20 -3
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +18 -18
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/snapshots.d.ts +48 -3
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +6 -9
- package/dist/api/types/user.d.ts +16 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2023 -788
- 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 +158 -39
- 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 +3 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/package.json +4 -2
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -66,6 +66,7 @@ export declare enum AnalyticsEvent {
|
|
|
66
66
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
67
67
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
68
68
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
69
|
+
SettingsAccountRevokeAuthorizedApp = "RevokeAuthorizedApp",
|
|
69
70
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
70
71
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
71
72
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
@@ -79,6 +80,9 @@ export declare enum AnalyticsEvent {
|
|
|
79
80
|
SettingsConnectorsRemoveVoyageControlConnection = "RemoveVoyageControl",
|
|
80
81
|
SettingsConnectorsToggleConnectorPromptDialog = "ToggleConnectorPromptDialog",
|
|
81
82
|
SettingsConnectorsToggleVoyageControlDialog = "ToggleVoyageControlDialog",
|
|
83
|
+
SettingsConnectorsConnectToHammertech = "ConnectToHammertech",
|
|
84
|
+
SettingsConnectorsRemoveHammertechConnection = "RemoveHammertech",
|
|
85
|
+
SettingsConnectorsToggleHammertechDialog = "ToggleHammertechDialog",
|
|
82
86
|
WidgetsSelectTypeThreeSixty = "Widgets-SelectType360",
|
|
83
87
|
WidgetsSelectProject = "SelectProject",
|
|
84
88
|
WidgetsSelect360Date = "Select360Date",
|
|
@@ -192,6 +196,7 @@ export declare enum AnalyticsEvent {
|
|
|
192
196
|
XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
|
|
193
197
|
XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
|
|
194
198
|
XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
|
|
199
|
+
XraySendToConnectorHammerTech = "Xray-SendToConnector-HammerTech",
|
|
195
200
|
WeatherGoBackDate = "Weather-GoBackDate",
|
|
196
201
|
WeatherGoForwardDate = "Weather-GoForwardDate",
|
|
197
202
|
WeatherReportExportFile = "ExportFile",
|
|
@@ -261,6 +266,9 @@ export declare enum AnalyticsEvent {
|
|
|
261
266
|
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
267
|
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
268
|
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
269
|
+
MarkUpToolSendToConnectorHammerTech = "MarkUpTool-SendToConnector-HammerTech",
|
|
270
|
+
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
271
|
+
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
264
272
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
265
273
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
266
274
|
RecordingsCreateClip = "CreateClip",
|
|
@@ -282,17 +290,6 @@ export declare enum AnalyticsEvent {
|
|
|
282
290
|
SharingSortBy = "SortBy",
|
|
283
291
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
284
292
|
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
293
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
297
294
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
298
295
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -301,6 +298,7 @@ export declare enum AnalyticsEvent {
|
|
|
301
298
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
302
299
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
303
300
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
301
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
304
302
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
305
303
|
ThreeSixtyLockCompare = "LockCompare",
|
|
306
304
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -311,6 +309,7 @@ export declare enum AnalyticsEvent {
|
|
|
311
309
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
312
310
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
313
311
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
312
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
314
313
|
ThreeSixtySaveComment = "SaveComment",
|
|
315
314
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
316
315
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -320,13 +319,7 @@ export declare enum AnalyticsEvent {
|
|
|
320
319
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
321
320
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
322
321
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
323
|
-
|
|
324
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
325
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
326
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
327
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
328
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
329
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
322
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
330
323
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
331
324
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
332
325
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -349,7 +342,6 @@ export declare enum AnalyticsEvent {
|
|
|
349
342
|
DroneResetView = "ResetView",
|
|
350
343
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
351
344
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
352
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
353
345
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
354
346
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
355
347
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -358,6 +350,9 @@ export declare enum AnalyticsEvent {
|
|
|
358
350
|
DroneToggleBimCompareTool = "ToggleBimCompareTool",
|
|
359
351
|
DroneToggleFullScreen = "ToggleFullScreen",
|
|
360
352
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
353
|
+
DroneTogglePointCloud = "TogglePointCloud",
|
|
354
|
+
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
355
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
361
356
|
DroneToggleQualityMode = "ChooseQuality",
|
|
362
357
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
363
358
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -372,6 +367,7 @@ export declare enum AnalyticsEvent {
|
|
|
372
367
|
DroneUnarchiveComment = "UnarchiveComment",
|
|
373
368
|
DroneArchiveComment = "ArchiveComment",
|
|
374
369
|
DroneDeleteComment = "DeleteComment",
|
|
370
|
+
DroneSaveAerialShot = "SaveAerialShot",
|
|
375
371
|
PlannerAddCameraClick = "AddCameraClick",
|
|
376
372
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
377
373
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -403,7 +399,8 @@ export declare enum AnalyticsEvent {
|
|
|
403
399
|
DrawingClickHome = "ClickHome",
|
|
404
400
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
405
401
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
406
|
-
|
|
402
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
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",
|
|
@@ -484,6 +486,7 @@ export declare enum AnalyticsEvent {
|
|
|
484
486
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
485
487
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
486
488
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
489
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
487
490
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
488
491
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
489
492
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -539,7 +542,6 @@ export declare enum AnalyticsEvent {
|
|
|
539
542
|
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
540
543
|
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
541
544
|
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
542
|
-
AutomationsFiltersClicked = "FiltersClicked",
|
|
543
545
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
544
546
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
545
547
|
AutomationTypeName = "TypeName",
|
|
@@ -588,5 +590,26 @@ export declare enum AnalyticsEvent {
|
|
|
588
590
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
589
591
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
590
592
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
591
|
-
AskAICloseChat = "AskAI-CloseChat"
|
|
593
|
+
AskAICloseChat = "AskAI-CloseChat",
|
|
594
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
595
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
596
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
597
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
598
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
599
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
600
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
601
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
602
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
603
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
604
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
605
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
606
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
607
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
608
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
609
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
610
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
611
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
612
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
613
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
614
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
592
615
|
}
|
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
|
};
|
|
@@ -12,7 +12,6 @@ export declare enum AuditLogActionType {
|
|
|
12
12
|
WAITING_FOR_SITE_VISIT = "waiting_for_site_visit",
|
|
13
13
|
SMS = "sms",
|
|
14
14
|
CUSTOM = "custom",
|
|
15
|
-
PUBLIC_NOTE = "public_note",
|
|
16
15
|
SIM = "sim",
|
|
17
16
|
LOGIN = "login",
|
|
18
17
|
LOGOUT = "logout",
|
|
@@ -33,6 +32,24 @@ export declare enum AuditLogActionType {
|
|
|
33
32
|
BIM_NOTE = "bim_note",
|
|
34
33
|
GATE_REPORT_NOTE = "gate_report_note"
|
|
35
34
|
}
|
|
35
|
+
export declare enum AuditLogEntity {
|
|
36
|
+
Cameras = "cameras",
|
|
37
|
+
Projects = "projects",
|
|
38
|
+
Layers = "layers",
|
|
39
|
+
Routers = "routers",
|
|
40
|
+
Sims = "sims",
|
|
41
|
+
Hdds = "hdds",
|
|
42
|
+
Nvr = "nvr",
|
|
43
|
+
Archives = "archives",
|
|
44
|
+
Users = "users",
|
|
45
|
+
Rois = "rois",
|
|
46
|
+
Kits = "kits",
|
|
47
|
+
Roles = "roles",
|
|
48
|
+
Tags = "tags",
|
|
49
|
+
KitsTags = "kits_tags",
|
|
50
|
+
Oauth = "oauth",
|
|
51
|
+
StorageProviders = "storage_providers"
|
|
52
|
+
}
|
|
36
53
|
export type AuditLog = {
|
|
37
54
|
id: number;
|
|
38
55
|
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,70 @@ 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 RoleAssignmentUserDetails = {
|
|
67
|
+
browser?: string | null;
|
|
68
|
+
device?: string | null;
|
|
69
|
+
os?: string | null;
|
|
70
|
+
country?: string | null;
|
|
71
|
+
countryCode?: string | null;
|
|
72
|
+
ip?: string | null;
|
|
73
|
+
impersonatedBy?: string | null;
|
|
74
|
+
};
|
|
75
|
+
export type RoleAssignmentRowUserDetails = RoleAssignmentUserDetails & {
|
|
76
|
+
via?: string | null;
|
|
77
|
+
inviteId?: number | null;
|
|
78
|
+
inviteEmail?: string | null;
|
|
79
|
+
};
|
|
80
|
+
export type RoleAssignmentLog = {
|
|
81
|
+
id: number;
|
|
82
|
+
action: RoleAssignmentLogAction;
|
|
83
|
+
assignerId: number | null;
|
|
84
|
+
assignerEmail: string | null;
|
|
85
|
+
assigneeId: number | null;
|
|
86
|
+
assigneeEmail: string;
|
|
87
|
+
roleId: number | null;
|
|
88
|
+
roleName: string | null;
|
|
89
|
+
previousRoleId: number | null;
|
|
90
|
+
previousRoleName: string | null;
|
|
91
|
+
scope: RoleResourceType;
|
|
92
|
+
projectExid: string | null;
|
|
93
|
+
cameraExid: string | null;
|
|
94
|
+
cameraName: string | null;
|
|
95
|
+
projectName: string | null;
|
|
96
|
+
ip: string | null;
|
|
97
|
+
userDetails: RoleAssignmentRowUserDetails | null;
|
|
98
|
+
insertedAt: string;
|
|
99
|
+
};
|
|
100
|
+
export type RoleAssignmentResourceRef = {
|
|
101
|
+
exid: string;
|
|
102
|
+
name: string | null;
|
|
103
|
+
};
|
|
104
|
+
export type RoleAssignmentLogBatch = {
|
|
105
|
+
groupId: string;
|
|
106
|
+
batchId: string | null;
|
|
107
|
+
batchSize: number;
|
|
108
|
+
assigneeId: number | null;
|
|
109
|
+
assigneeEmail: string;
|
|
110
|
+
actions: RoleAssignmentLogAction[];
|
|
111
|
+
projects: RoleAssignmentResourceRef[];
|
|
112
|
+
ip: string | null;
|
|
113
|
+
userDetails: RoleAssignmentUserDetails | null;
|
|
114
|
+
insertedAt: string;
|
|
115
|
+
children: RoleAssignmentLog[];
|
|
116
|
+
};
|
|
117
|
+
export type RoleAssignmentLogsParams = {
|
|
118
|
+
page?: number;
|
|
119
|
+
limit?: number;
|
|
120
|
+
sort?: string;
|
|
121
|
+
action?: RoleAssignmentLogAction;
|
|
122
|
+
roleId?: number;
|
|
123
|
+
roleName?: string;
|
|
124
|
+
assigneeEmail?: string;
|
|
125
|
+
assignerEmail?: string;
|
|
126
|
+
scope?: RoleResourceType;
|
|
127
|
+
projectExid?: string;
|
|
128
|
+
cameraExid?: string;
|
|
129
|
+
ip?: string;
|
|
130
|
+
from?: string;
|
|
131
|
+
to?: string;
|
|
132
|
+
};
|
|
@@ -8,8 +8,28 @@ export declare enum AutomationProvider {
|
|
|
8
8
|
export declare enum AutomationType {
|
|
9
9
|
Photo = "photo",
|
|
10
10
|
Compare = "compare",
|
|
11
|
-
GateReport = "gate_report"
|
|
11
|
+
GateReport = "gate_report",
|
|
12
|
+
Weather = "weather"
|
|
12
13
|
}
|
|
14
|
+
export declare enum AutomationWeatherReportType {
|
|
15
|
+
Forecast = "forecast",
|
|
16
|
+
History = "history"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AutomationExportFormat {
|
|
19
|
+
Pdf = "pdf",
|
|
20
|
+
Csv = "csv"
|
|
21
|
+
}
|
|
22
|
+
export declare enum AutomationWeatherDataGranularity {
|
|
23
|
+
Daily = "daily",
|
|
24
|
+
Hourly = "hourly"
|
|
25
|
+
}
|
|
26
|
+
export type AutomationWeatherConfig = {
|
|
27
|
+
reportType: AutomationWeatherReportType;
|
|
28
|
+
exportFormat: AutomationExportFormat;
|
|
29
|
+
dataGranularity?: AutomationWeatherDataGranularity;
|
|
30
|
+
selectedColumns?: string[];
|
|
31
|
+
forecastDays?: number;
|
|
32
|
+
};
|
|
13
33
|
export type AutomationCompareConfig = {
|
|
14
34
|
compareDelay: number;
|
|
15
35
|
};
|
|
@@ -22,7 +42,6 @@ export type AutomationGateReportConfig = {
|
|
|
22
42
|
fileType: string;
|
|
23
43
|
period: number;
|
|
24
44
|
columns: string[];
|
|
25
|
-
recipients: string | string[];
|
|
26
45
|
};
|
|
27
46
|
export type AutomationEmailProviderConfig = {
|
|
28
47
|
cameraExids?: CameraExid[];
|
|
@@ -51,7 +70,7 @@ export type AutomationAutodeskProviderConfig = {
|
|
|
51
70
|
folderName: string;
|
|
52
71
|
};
|
|
53
72
|
export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
|
|
54
|
-
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | {};
|
|
73
|
+
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | AutomationWeatherConfig | {};
|
|
55
74
|
export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
|
|
56
75
|
export type Automation = {
|
|
57
76
|
id?: number;
|
|
@@ -81,8 +100,17 @@ export type AutomationProviderOption = {
|
|
|
81
100
|
iconSize?: string;
|
|
82
101
|
requiresConnection: boolean;
|
|
83
102
|
};
|
|
103
|
+
export type AutomationTypeOption = {
|
|
104
|
+
labelTranslationKey: string;
|
|
105
|
+
descriptionTranslationKey: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
value: AutomationType;
|
|
109
|
+
icon: string;
|
|
110
|
+
iconType?: string;
|
|
111
|
+
};
|
|
84
112
|
export type FormattedAutomation = {
|
|
85
|
-
cameraExids
|
|
113
|
+
cameraExids?: string;
|
|
86
114
|
name: string;
|
|
87
115
|
subject: string;
|
|
88
116
|
provider: AutomationProvider;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
2
|
import { Swr } from "@evercam/api/api/client/swr/Swr";
|
|
3
|
-
export type TimedRequest<T> = Promise<AxiosResponse<T> & {
|
|
4
|
-
duration: number;
|
|
5
|
-
error?: AxiosError;
|
|
6
|
-
}>;
|
|
7
3
|
export type AxiosEnvironment = {
|
|
8
4
|
baseUrl?: string | null;
|
|
9
5
|
stagingAiApiUrl?: string | null;
|
|
10
6
|
aiApiUrl?: string | null;
|
|
11
|
-
|
|
7
|
+
ingestDroneApi?: string | null;
|
|
8
|
+
ingest360Api?: string | null;
|
|
12
9
|
ingestGpuApiUrl?: string | null;
|
|
13
|
-
ingestGpuV3ApiUrl?: string | null;
|
|
14
|
-
ingestGpuV4ApiUrl?: string | null;
|
|
15
10
|
posthogApiUrl?: string | null;
|
|
16
11
|
posthogProjectId?: string | null;
|
|
17
|
-
posthogPrivateApiKey?: string | null;
|
|
18
12
|
firebaseVideowallUrl?: string | null;
|
|
19
13
|
weatherApiBaseUrl?: string | null;
|
|
20
14
|
evercamLabsUrl?: string | null;
|
|
15
|
+
isLabsStaging?: boolean;
|
|
21
16
|
firebaseDbLink?: string | null;
|
|
22
17
|
firebaseStorageUrl?: string | null;
|
|
23
18
|
firebaseStorageToken?: string | null;
|
|
19
|
+
forgeTokenServerUrl?: string | null;
|
|
24
20
|
snapshotsURL?: string | null;
|
|
25
21
|
app?: string | null;
|
|
26
22
|
getAuthToken?: () => string | null;
|
|
@@ -30,15 +26,18 @@ export type AxiosEnvironment = {
|
|
|
30
26
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
31
27
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
32
28
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
29
|
+
export type RequestManager = {
|
|
30
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
31
|
+
cancelToken: (key: string) => void;
|
|
32
|
+
cancelAll: () => void;
|
|
33
|
+
};
|
|
33
34
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
34
35
|
CancelToken: CancelTokenStatic;
|
|
35
36
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
36
37
|
setToken: (token: string) => void;
|
|
37
38
|
setHeader: (headerName: string, value: any) => void;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
resetCancelTokens: () => void;
|
|
41
|
-
cancelRequests: () => void;
|
|
39
|
+
createRequestManager: () => RequestManager;
|
|
40
|
+
requestManager: RequestManager;
|
|
42
41
|
env: AxiosEnvironment;
|
|
43
42
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
44
43
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompareLogoPosition, DateType } from "@evercam/api/types";
|
|
1
|
+
import { CompareLogoPosition, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum BimModelType {
|
|
3
3
|
Architectural = "Architectural",
|
|
4
4
|
Structural = "Structural",
|
|
@@ -101,7 +101,7 @@ export type BIMLayerPostPayload = {
|
|
|
101
101
|
layerType: BIMLayerTypes;
|
|
102
102
|
startAt: DateType;
|
|
103
103
|
shapes: string;
|
|
104
|
-
zIndex
|
|
104
|
+
zIndex?: number;
|
|
105
105
|
};
|
|
106
106
|
export type BIMLayer = {
|
|
107
107
|
id: number;
|
|
@@ -137,9 +137,7 @@ export type ProcessPendingImagesBimParams = {
|
|
|
137
137
|
apiId: string;
|
|
138
138
|
apiKey: string;
|
|
139
139
|
};
|
|
140
|
-
export type BimUploadsQueryParams = {
|
|
141
|
-
page: number;
|
|
142
|
-
limit: number;
|
|
140
|
+
export type BimUploadsQueryParams = PaginationParams & {
|
|
143
141
|
projectId: string;
|
|
144
142
|
id: string;
|
|
145
143
|
uploadedBy: string;
|
|
@@ -151,3 +149,28 @@ export type BimUploadPayload = {
|
|
|
151
149
|
fileExtension: string;
|
|
152
150
|
}[];
|
|
153
151
|
};
|
|
152
|
+
export declare enum ForgeBimUploadMethod {
|
|
153
|
+
FileUpload = "file_upload",
|
|
154
|
+
AutodeskAcc = "autodesk_acc"
|
|
155
|
+
}
|
|
156
|
+
export declare enum ForgeBimFileRejectionReason {
|
|
157
|
+
InvalidType = "invalid_type",
|
|
158
|
+
ExceedsSizeLimit = "exceeds_size_limit"
|
|
159
|
+
}
|
|
160
|
+
export declare enum ForgeBimUploadStage {
|
|
161
|
+
TusUpload = "tus_upload",
|
|
162
|
+
IngestUpload = "ingest_upload"
|
|
163
|
+
}
|
|
164
|
+
export declare enum ForgeBimDialogTrigger {
|
|
165
|
+
UpdateModel = "update_model",
|
|
166
|
+
AddModel = "add_model",
|
|
167
|
+
InitialSetup = "initial_setup"
|
|
168
|
+
}
|
|
169
|
+
export type BimUpdatedWebhookPayload = {
|
|
170
|
+
eventName: "bim.updated";
|
|
171
|
+
projectId: string;
|
|
172
|
+
data: {
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
bimIdentifier: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
@@ -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,8 @@ export type Camera = {
|
|
|
87
80
|
vendorName: string;
|
|
88
81
|
isAccessRestricted?: boolean;
|
|
89
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
84
|
+
position?: number | null;
|
|
90
85
|
};
|
|
91
86
|
export type AdminCamera = {
|
|
92
87
|
id: number;
|
|
@@ -112,10 +107,7 @@ export type AdminCamera = {
|
|
|
112
107
|
isPublic: boolean;
|
|
113
108
|
sharedWithConstruction?: boolean;
|
|
114
109
|
timezone: string | null;
|
|
115
|
-
location?:
|
|
116
|
-
lat: number;
|
|
117
|
-
lng: number;
|
|
118
|
-
} | null;
|
|
110
|
+
location?: GeoPoint | null;
|
|
119
111
|
fovAngle?: number | null;
|
|
120
112
|
fovRadius?: number | null;
|
|
121
113
|
heading?: number | null;
|
|
@@ -167,10 +159,7 @@ export type AdminCamera = {
|
|
|
167
159
|
};
|
|
168
160
|
export type CameraMapMarker = {
|
|
169
161
|
isOnline: boolean;
|
|
170
|
-
location:
|
|
171
|
-
lat: number;
|
|
172
|
-
lng: number;
|
|
173
|
-
};
|
|
162
|
+
location: GeoPoint;
|
|
174
163
|
needFov: boolean;
|
|
175
164
|
rotation: number;
|
|
176
165
|
fovAngle: number;
|
|
@@ -209,17 +198,15 @@ export declare enum CameraFeatureFlag {
|
|
|
209
198
|
Segmentation = "segmentation",
|
|
210
199
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
211
200
|
PpeMonitoring = "ppe_monitoring",
|
|
201
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
202
|
+
PpeGemini = "ppe_gemini",
|
|
203
|
+
PpeYolo = "ppe_yolo",
|
|
204
|
+
PpeV2 = "ppe_v2",
|
|
212
205
|
NoLiveView = "no_live_view",
|
|
206
|
+
NoRecordings = "no_recordings",
|
|
213
207
|
Ring = "ring",
|
|
214
208
|
CloudOnly = "cloud_only"
|
|
215
209
|
}
|
|
216
|
-
export type CameraLogsRequestPayload = {
|
|
217
|
-
limit: number;
|
|
218
|
-
page: number;
|
|
219
|
-
types: string;
|
|
220
|
-
from: string;
|
|
221
|
-
to: string;
|
|
222
|
-
};
|
|
223
210
|
export type CameraUpdateRequestPayload = {
|
|
224
211
|
status?: string;
|
|
225
212
|
timezone?: string;
|
|
@@ -260,13 +247,17 @@ export type CameraUpdateRequestPayload = {
|
|
|
260
247
|
export type CamerasResponsePayload = {
|
|
261
248
|
cameras?: Camera[];
|
|
262
249
|
};
|
|
263
|
-
export type
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
customMessage?: string;
|
|
250
|
+
export type CameraNoteResponsePayload = {
|
|
251
|
+
id: number;
|
|
252
|
+
camera: {
|
|
253
|
+
exid: string;
|
|
254
|
+
name: string;
|
|
269
255
|
};
|
|
256
|
+
who: string;
|
|
257
|
+
noteType: string;
|
|
258
|
+
content: string;
|
|
259
|
+
pinned: boolean;
|
|
260
|
+
insertedAt: string;
|
|
270
261
|
};
|
|
271
262
|
export type CameraStatusLog = {
|
|
272
263
|
start: string;
|
|
@@ -320,12 +311,6 @@ export declare enum CameraModel {
|
|
|
320
311
|
Other = "other",
|
|
321
312
|
Ring = "ring"
|
|
322
313
|
}
|
|
323
|
-
export type DroneCameraTransform = {
|
|
324
|
-
position: Cartesian3;
|
|
325
|
-
direction: Cartesian3;
|
|
326
|
-
up: Cartesian3;
|
|
327
|
-
right: Cartesian3;
|
|
328
|
-
};
|
|
329
314
|
export type Footage = {
|
|
330
315
|
cameraExid: string;
|
|
331
316
|
cameraName: string;
|
|
@@ -366,7 +351,7 @@ export type CameraCreateRequestPayload = {
|
|
|
366
351
|
isPowerScheduleActive?: boolean;
|
|
367
352
|
ptz?: boolean;
|
|
368
353
|
name: string;
|
|
369
|
-
coordinates?:
|
|
354
|
+
coordinates?: TuplePoint2D;
|
|
370
355
|
recordingFromNvr?: boolean;
|
|
371
356
|
CameraConfig: {
|
|
372
357
|
model: CameraModel;
|
|
@@ -403,22 +388,26 @@ export type CameraDeletePayload = {
|
|
|
403
388
|
verify: string;
|
|
404
389
|
password: string;
|
|
405
390
|
};
|
|
406
|
-
export type SaveNotePayload = {
|
|
407
|
-
noteType: string;
|
|
408
|
-
content: string;
|
|
409
|
-
};
|
|
410
391
|
export type CameraNote = {
|
|
411
392
|
id: number;
|
|
412
393
|
cameraId: number;
|
|
394
|
+
who: string;
|
|
413
395
|
noteType: string;
|
|
414
396
|
content: string;
|
|
397
|
+
pinned: boolean;
|
|
415
398
|
insertedAt: DateType;
|
|
416
399
|
};
|
|
400
|
+
export type GetCameraNotesParams = {
|
|
401
|
+
noteType?: string;
|
|
402
|
+
pinned?: boolean;
|
|
403
|
+
sort?: string;
|
|
404
|
+
page?: number;
|
|
405
|
+
limit?: number;
|
|
406
|
+
};
|
|
417
407
|
export type CreateCameraNotePayload = {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
action: string;
|
|
408
|
+
noteType: string;
|
|
409
|
+
content: string;
|
|
410
|
+
pinned?: boolean;
|
|
422
411
|
};
|
|
423
412
|
export declare enum HddStatus {
|
|
424
413
|
Error = "error",
|