@evercam/api 1.0.0-dd226b334 → 1.0.0-dd85d521f
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 +3 -0
- package/dist/api/api/3dFirebaseApi.d.ts +20 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +92 -26
- package/dist/api/api/aiApi.d.ts +146 -0
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/{evercamApi.d.ts → api/evercamApi.d.ts} +74 -29
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +6 -9
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/{ingestApi.d.ts → api/ingestApi.d.ts} +19 -9
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/{types → api/types}/360.d.ts +18 -2
- package/dist/{types → api/types}/aconex.d.ts +1 -1
- package/dist/{types → api/types}/analytics.d.ts +77 -69
- package/dist/{types → api/types}/anpr.d.ts +11 -6
- package/dist/{types → api/types}/automation.d.ts +4 -0
- package/dist/{types → api/types}/axios.d.ts +15 -1
- package/dist/{types → api/types}/camera.d.ts +25 -56
- package/dist/api/types/comments.d.ts +59 -0
- package/dist/{types → api/types}/company.d.ts +29 -1
- package/dist/{types → api/types}/connector.d.ts +6 -1
- package/dist/api/types/coolify.d.ts +18 -0
- package/dist/{types → api/types}/copilot.d.ts +9 -8
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/detections.d.ts +60 -7
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/index.d.ts +8 -2
- package/dist/{types → api/types}/ingest.d.ts +4 -0
- package/dist/{types → api/types}/kit.d.ts +65 -7
- package/dist/{types/sitePlanner.d.ts → api/types/planner.d.ts} +4 -0
- package/dist/api/types/posthog.d.ts +18 -0
- package/dist/api/types/procore.d.ts +222 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +21 -7
- package/dist/{types → api/types}/project.d.ts +10 -1
- package/dist/{types → api/types}/recording.d.ts +1 -2
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/{types → api/types}/roi.d.ts +2 -1
- package/dist/{types → api/types}/routeParams.d.ts +4 -2
- package/dist/{types → api/types}/shared.d.ts +2 -16
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +142 -0
- package/dist/{types → api/types}/snapshots.d.ts +9 -0
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/{types → api/types}/streaming.d.ts +3 -25
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/{types → api/types}/time.d.ts +2 -0
- package/dist/{types → api/types}/timelapse.d.ts +15 -0
- package/dist/{types → api/types}/user.d.ts +1 -6
- package/dist/{types → api/types}/weather.d.ts +6 -2
- package/dist/{types → api/types}/widget.d.ts +25 -6
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1294 -736
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +193 -0
- package/dist/shared/types/imagePlayer.d.ts +34 -0
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/timeline.d.ts +9 -0
- package/package.json +5 -4
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/siteAnalytics.d.ts +0 -84
- /package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +0 -0
- /package/dist/api/{client → api/client}/axios.d.ts +0 -0
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +0 -0
- /package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +0 -0
- /package/dist/api/{videoWallApi.d.ts → api/videoWallApi.d.ts} +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/auditLogs.d.ts +0 -0
- /package/dist/{types → api/types}/autodesk.d.ts +0 -0
- /package/dist/{types → api/types}/bim.d.ts +0 -0
- /package/dist/{types → api/types}/compare.d.ts +0 -0
- /package/dist/{types → api/types}/credentials.d.ts +0 -0
- /package/dist/{types → api/types}/drone.d.ts +0 -0
- /package/dist/{types → api/types}/gateReport.d.ts +0 -0
- /package/dist/{types → api/types}/hdd.d.ts +0 -0
- /package/dist/{types → api/types}/map.d.ts +0 -0
- /package/dist/{types → api/types}/media.d.ts +0 -0
- /package/dist/{types → api/types}/notification.d.ts +0 -0
- /package/dist/{types → api/types}/nvr.d.ts +0 -0
- /package/dist/{types → api/types}/router.d.ts +0 -0
- /package/dist/{types → api/types}/sim.d.ts +0 -0
- /package/dist/{types → api/types}/storageServers.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/videoWall.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
- /package/dist/{utils.d.ts → api/utils.d.ts} +0 -0
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { DateType } from "@/types";
|
|
2
|
-
export type AnalyticsRequestPayload = {
|
|
3
|
-
name: string;
|
|
4
|
-
cameraExid: string;
|
|
5
|
-
} & {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
1
|
export declare enum AnalyticsEventPageId {
|
|
9
2
|
Timeline = "Timeline",
|
|
10
3
|
Copilot = "Copilot",
|
|
@@ -17,6 +10,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
17
10
|
Project = "Project",
|
|
18
11
|
AllProjects = "AllProjects",
|
|
19
12
|
Tutorials = "Tutorials",
|
|
13
|
+
SystemCheck = "SystemCheck",
|
|
20
14
|
ProjectMapView = "ProjectMapView",
|
|
21
15
|
AccountMapView = "AccountMapView",
|
|
22
16
|
Automations = "Automations",
|
|
@@ -26,9 +20,9 @@ export declare enum AnalyticsEventPageId {
|
|
|
26
20
|
ProjectSettingsCameraSettings = "ProjectSettings-CameraSettings",
|
|
27
21
|
ProjectSettingsMembers = "ProjectSettings-Members",
|
|
28
22
|
ProjectSettingsOverview = "ProjectSettings-Overview",
|
|
23
|
+
ProjectSettingsDangerZone = "ProjectSettings-DangerZone",
|
|
29
24
|
Settings = "Settings",
|
|
30
25
|
SettingsAccount = "Settings-Account",
|
|
31
|
-
SettingsActivities = "Settings-Activities",
|
|
32
26
|
SettingsConnectors = "Settings-Connectors",
|
|
33
27
|
MediaHub = "MediaHub",
|
|
34
28
|
MediaOveriew = "MediaOveriew",
|
|
@@ -36,7 +30,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
36
30
|
Bim = "Bim",
|
|
37
31
|
Drone = "Drone",
|
|
38
32
|
ThreeSixty = "360",
|
|
39
|
-
|
|
33
|
+
Planner = "Planner",
|
|
40
34
|
Widgets = "Widgets",
|
|
41
35
|
Company = "Company",
|
|
42
36
|
EmbeddedLive = "EmbeddedLive",
|
|
@@ -48,7 +42,8 @@ export declare enum AnalyticsEventPageId {
|
|
|
48
42
|
ThreeSixtyInfo = "360Info",
|
|
49
43
|
BimCompareInfo = "BimCompareInfo",
|
|
50
44
|
WeatherReport = "WeatherReport",
|
|
51
|
-
|
|
45
|
+
PpeReport = "PpeReport",
|
|
46
|
+
SmartSearch = "SmartSearch"
|
|
52
47
|
}
|
|
53
48
|
export declare enum AnalyticsEvent {
|
|
54
49
|
PageView = "PageView",
|
|
@@ -64,14 +59,13 @@ export declare enum AnalyticsEvent {
|
|
|
64
59
|
Comment = "Comment-Toggle",
|
|
65
60
|
Compare = "Compare-Toggle",
|
|
66
61
|
Copilot = "Copilot-Toggle",
|
|
62
|
+
DownloadMediaOpen = "DownloadMedia-Open",
|
|
67
63
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
68
64
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
69
65
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
70
66
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
71
67
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
72
68
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
73
|
-
SettingsActivitiesFromDateSelect = "FromDateSelect",
|
|
74
|
-
SettingsActivitiesToDateSelect = "ToDateSelect",
|
|
75
69
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
76
70
|
SettingsConnectorsConnectToAconex = "ConnectToAconex",
|
|
77
71
|
SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
|
|
@@ -243,7 +237,6 @@ export declare enum AnalyticsEvent {
|
|
|
243
237
|
AiToolSelectObjectDetection = "AITool-SelectObjectDetection",
|
|
244
238
|
AiToolSelectAskChatGpt = "AITool-SelectAskChatGpt",
|
|
245
239
|
AiToolSelectSegmentation = "AITool-SelectSegmentation",
|
|
246
|
-
AiToolSelectDepthAnalysis = "AITool-SelectDepthAnalysis",
|
|
247
240
|
AiToolUpdateTransparency = "AITool-UpdateTransparency",
|
|
248
241
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
249
242
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
@@ -265,15 +258,18 @@ export declare enum AnalyticsEvent {
|
|
|
265
258
|
SharingTransferOwnership = "TransferOwnership",
|
|
266
259
|
SharingSortBy = "SortBy",
|
|
267
260
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
261
|
+
ThreeSixtyGallery = "Gallery",
|
|
262
|
+
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
263
|
+
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
268
264
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
269
265
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
270
266
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
271
267
|
ThreeSixtyCloseForgeBIM = "CloseForgeBIM",
|
|
272
|
-
|
|
268
|
+
ThreeSixtyDeleteComment = "DeleteComment",
|
|
273
269
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
274
|
-
|
|
270
|
+
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
275
271
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
276
|
-
|
|
272
|
+
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
277
273
|
ThreeSixtyLockCompare = "LockCompare",
|
|
278
274
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
279
275
|
ThreeSixtyMarkerThumbnailClicked = "MarkerThumbnailClicked",
|
|
@@ -282,14 +278,16 @@ export declare enum AnalyticsEvent {
|
|
|
282
278
|
ThreeSixtyOpenCompare = "OpenCompare",
|
|
283
279
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
284
280
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
285
|
-
|
|
286
|
-
|
|
281
|
+
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
282
|
+
ThreeSixtySaveComment = "SaveComment",
|
|
283
|
+
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
284
|
+
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
287
285
|
ThreeSixtyShareView = "ShareView",
|
|
288
|
-
|
|
286
|
+
ThreeSixtyCommentClicked = "CommentClicked",
|
|
289
287
|
ThreeSixtyToggleMarkersVisibility = "ToggleMarkersVisibility",
|
|
290
288
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
291
289
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
292
|
-
|
|
290
|
+
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
293
291
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
294
292
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
295
293
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -299,6 +297,8 @@ export declare enum AnalyticsEvent {
|
|
|
299
297
|
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
300
298
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
301
299
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
300
|
+
ThreeSixtyUpdateFloorName = "UpdateFloorName",
|
|
301
|
+
ThreeSixtyUploadAssets = "UploadAssets",
|
|
302
302
|
DroneAreaToolClick = "AreaTool-Click",
|
|
303
303
|
DroneChangeDate = "ChangeDate",
|
|
304
304
|
DroneChooseTagType = "ChooseTagType",
|
|
@@ -335,31 +335,30 @@ export declare enum AnalyticsEvent {
|
|
|
335
335
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
336
336
|
DroneZoomIn = "ZoomIn",
|
|
337
337
|
DroneZoomOut = "ZoomOut",
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
338
|
+
PlannerAddCameraClick = "AddCameraClick",
|
|
339
|
+
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
340
|
+
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
341
|
+
PlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
|
|
342
|
+
PlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
|
|
343
|
+
PlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
|
|
344
|
+
PlannerCameraMarkerEditName = "CameraMarker-EditName",
|
|
345
|
+
PlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
|
|
346
|
+
PlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
|
|
347
|
+
PlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
|
|
348
|
+
PlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
|
|
349
|
+
PlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
|
|
350
|
+
PlannerChangeLocation = "ChangeLocation",
|
|
351
|
+
PlannerOpen = "Open",
|
|
352
|
+
PlannerResetView = "ResetView",
|
|
353
|
+
PlannerSitePlansList = "SitePlansList",
|
|
354
|
+
PlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
355
|
+
PlannerToggleFullscreen = "ToggleFullscreen",
|
|
356
|
+
PlannerToggleMapStyle = "ToggleMapStyle",
|
|
357
|
+
PlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
358
|
+
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
359
|
+
PlannerZoomIn = "ZoomIn",
|
|
360
|
+
PlannerZoomOut = "ZoomOut",
|
|
361
361
|
MarkerClicked = "MarkerClicked",
|
|
362
|
-
TimelapseToggleHelpDialog = "ToggleHelpDialog",
|
|
363
362
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
364
363
|
TimelapseToggleCustomScheduleDialog = "ToggleCustomScheduleDialog",
|
|
365
364
|
TimelapseSaveCustomSchedule = "SaveCustomSchedule",
|
|
@@ -387,12 +386,14 @@ export declare enum AnalyticsEvent {
|
|
|
387
386
|
ProgressPhotoPause = "ProgressPhoto-Pause",
|
|
388
387
|
ProgressPhotoResume = "ProgressPhoto-Resume",
|
|
389
388
|
ProgressPhotoResumeDelete = "ProgressPhoto-ResumeDelete",
|
|
389
|
+
ProgressPhotoSelectType = "ProgressPhoto-SelectType",
|
|
390
390
|
ProgressPhotoSelectCameras = "ProgressPhoto-SelectCameras",
|
|
391
391
|
ProgressPhotoSelectDays = "ProgressPhoto-SelectDays",
|
|
392
392
|
ProgressPhotoSelectMember = "ProgressPhoto-SelectMember",
|
|
393
393
|
ProgressPhotoSelectProvider = "ProgressPhoto-SelectProvider",
|
|
394
394
|
ProgressPhotoSelectTime = "ProgressPhoto-SelectTime",
|
|
395
395
|
ProgressPhotoSelectTimezone = "ProgressPhoto-SelectTimezone",
|
|
396
|
+
ProgressPhotoSelectDelay = "ProgressPhoto-SelectDelay",
|
|
396
397
|
ProgressPhotoToggleCreateDialog = "ProgressPhoto-ToggleCreateDialog",
|
|
397
398
|
ProgressPhotoToggleEditDialog = "ProgressPhoto-ToggleEditDialog",
|
|
398
399
|
ProgressPhotoUnsubscribeUser = "ProgressPhoto-UnsubscribeUser",
|
|
@@ -442,40 +443,47 @@ export declare enum AnalyticsEvent {
|
|
|
442
443
|
MediaCopyMediaLink = "Media-CopyMediaLink",
|
|
443
444
|
MediaGoToMediaHub = "Media-GoBackToMediaHub",
|
|
444
445
|
GateReportCalendarTreeDateClick = "CalendarTree-DateClick",
|
|
445
|
-
GateReportExportPdf = "ExportPdf",
|
|
446
|
-
GateReportExportCsv = "ExportCsv",
|
|
447
446
|
GateReportFilterEntryExit = "FilterEntryExit",
|
|
448
|
-
GateReportFilterCameras = "FilterCameras",
|
|
449
447
|
GateReportFilterPlateNumber = "FilterPlateNumber",
|
|
450
448
|
GateReportFilterVehicleTypes = "FilterVehicleTypes",
|
|
451
449
|
GateReportOpenVehicleTypeInfo = "OpenVehicleTypeInfo",
|
|
452
450
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
453
451
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
452
|
+
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
454
453
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
455
454
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
456
455
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
457
456
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
458
457
|
HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
|
|
459
|
-
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
|
|
458
|
+
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
|
|
459
|
+
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
|
|
460
|
+
Recording = "Recording",
|
|
461
|
+
CameraFilter = "CameraFilter",
|
|
462
|
+
MissingEquipmentHardHat = "MissingEquipment-HardHat",
|
|
463
|
+
MissingEquipmentHighVisibilityVest = "MissingEquipment-HighVisibilityVest",
|
|
464
|
+
MissingEquipmentSafetyGlasses = "MissingEquipment-SafetyGlasses",
|
|
465
|
+
MissingEquipmentSafetyGloves = "MissingEquipment-SafteyGLoves",
|
|
466
|
+
ExportAs = "ExportAs",
|
|
467
|
+
ExportPdf = "ExportPdf",
|
|
468
|
+
ExportCsv = "ExportCsv",
|
|
469
|
+
FilterCameras = "FilterCameras",
|
|
470
|
+
SmartSearchToggleQueryBuilder = "SmartSearch-ToggleQueryBuilder",
|
|
471
|
+
SmartSearchToggleQuerySelector = "SmartSearch-ToggleQuerySelector",
|
|
472
|
+
SmartSearchDeleteComponent = "SmartSearch-DeleteComponent",
|
|
473
|
+
SmartSearchPageChange = "SmartSearch-PageChange",
|
|
474
|
+
SmartSearchExecuteQuery = "SmartSearch-ExecuteQuery",
|
|
475
|
+
SmartSearchAddComponent = "SmartSearch-AddComponent",
|
|
476
|
+
SmartSearchConnectComponent = "SmartSearch-ConnectComponent",
|
|
477
|
+
SmartSearchUpdateComponent = "SmartSearch-UpdateComponent",
|
|
478
|
+
SmartSearchSavedQueryClick = "SmartSearch-SavedQueryClick",
|
|
479
|
+
SmartSearchFilterSavedQueries = "SmartSearch-FilterSavedQueries",
|
|
480
|
+
SmartSearchThumbnailHover = "SmartSearch-ThumbnailHover",
|
|
481
|
+
SmartSearchThumbnailError = "SmartSearch-ThumbnailError",
|
|
482
|
+
SmartSearchCameraSelected = "SmartSearch-CameraSelected",
|
|
483
|
+
SmartSearchOptionClicked = "SmartSearch-OptionClicked",
|
|
484
|
+
SmartSearchEditQuery = "SmartSearch-EditQuery",
|
|
485
|
+
SmartSearchDeleteQuery = "SmartSearch-DeleteQuery",
|
|
486
|
+
SmartSearchSaveQuery = "SmartSearch-SaveQuery",
|
|
487
|
+
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
488
|
+
SmartSearchExportFile = "SmartSearch-ExportFile"
|
|
460
489
|
}
|
|
461
|
-
export type ProjectPAStatsRequestPayload = {
|
|
462
|
-
period: "day" | "week" | "month";
|
|
463
|
-
startDate?: string;
|
|
464
|
-
endDate?: string;
|
|
465
|
-
};
|
|
466
|
-
export type ProjectPAStatsResponsePayload = {
|
|
467
|
-
period: DateType;
|
|
468
|
-
name: string;
|
|
469
|
-
count: number | string;
|
|
470
|
-
};
|
|
471
|
-
export type ActiveUsersStatsRequestPayload = {
|
|
472
|
-
companyId: number;
|
|
473
|
-
from: string;
|
|
474
|
-
to: string;
|
|
475
|
-
};
|
|
476
|
-
export type ActiveUserStat = {
|
|
477
|
-
date: string;
|
|
478
|
-
dau: number;
|
|
479
|
-
wau: number;
|
|
480
|
-
mau: number;
|
|
481
|
-
};
|
|
@@ -43,26 +43,31 @@ export declare enum AnprDirection {
|
|
|
43
43
|
export type AnprEvent = {
|
|
44
44
|
id: number;
|
|
45
45
|
plateNumber: string;
|
|
46
|
+
cameraExid: CameraExid;
|
|
46
47
|
cameraex: CameraExid;
|
|
47
48
|
picName: string;
|
|
48
|
-
|
|
49
|
+
eventTime: string;
|
|
49
50
|
insertedAt: string;
|
|
50
51
|
isDuplicate: boolean;
|
|
51
52
|
direction: AnprDirection;
|
|
52
53
|
updatedAt: string;
|
|
54
|
+
edited?: boolean;
|
|
53
55
|
isPlate: boolean;
|
|
54
56
|
isPostprocessed: boolean;
|
|
55
57
|
vehicleType?: GateReportVehicleType;
|
|
56
58
|
contextVehicleType?: GateReportVehicleType;
|
|
57
|
-
anprVehicleType
|
|
58
|
-
anprVehicleModel
|
|
59
|
-
anprVehicleMake
|
|
60
|
-
anprVehicleColor
|
|
61
|
-
anprVehicleSpeed
|
|
59
|
+
anprVehicleType?: string;
|
|
60
|
+
anprVehicleModel?: string;
|
|
61
|
+
anprVehicleMake?: string;
|
|
62
|
+
anprVehicleColor?: string;
|
|
63
|
+
anprVehicleSpeed?: number;
|
|
62
64
|
anprSnapshotLink: string;
|
|
63
65
|
contextSnapshotLink: string;
|
|
66
|
+
mainSnapshotLink: string;
|
|
64
67
|
contextCamera: string;
|
|
65
68
|
votedVehicleType: GateReportVehicleType | string;
|
|
69
|
+
roiId?: number;
|
|
70
|
+
captureTime: DateType;
|
|
66
71
|
metadata_: {
|
|
67
72
|
evercamMetadata?: {
|
|
68
73
|
anpr?: {
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
|
+
import { Swr } from "@/api/client/swr/Swr";
|
|
2
3
|
export type TimedRequest<T> = Promise<AxiosResponse<T> & {
|
|
3
4
|
duration: number;
|
|
4
5
|
error?: AxiosError;
|
|
5
6
|
}>;
|
|
6
7
|
export type AxiosEnvironment = {
|
|
7
|
-
isStaging?: boolean;
|
|
8
8
|
baseUrl?: string | null;
|
|
9
9
|
stagingAiApiUrl?: string | null;
|
|
10
10
|
aiApiUrl?: string | null;
|
|
11
11
|
ingestApiUrl?: string | null;
|
|
12
|
+
ingestGpuApiUrl?: string | null;
|
|
12
13
|
posthogApiUrl?: string | null;
|
|
13
14
|
posthogProjectId?: string | null;
|
|
14
15
|
posthogPrivateApiKey?: string | null;
|
|
@@ -16,10 +17,13 @@ export type AxiosEnvironment = {
|
|
|
16
17
|
weatherApiBaseUrl?: string | null;
|
|
17
18
|
evercamLabsUrl?: string | null;
|
|
18
19
|
firebaseDbLink?: string | null;
|
|
20
|
+
firebaseStorageUrl?: string | null;
|
|
21
|
+
firebaseStorageToken?: string | null;
|
|
19
22
|
snapshotsURL?: string | null;
|
|
20
23
|
app?: string | null;
|
|
21
24
|
getAuthToken?: () => string | null;
|
|
22
25
|
errorLogger?: (error: AxiosError) => void;
|
|
26
|
+
swrKey?: string;
|
|
23
27
|
};
|
|
24
28
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
25
29
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
@@ -38,7 +42,13 @@ export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
|
38
42
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
39
43
|
addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
40
44
|
addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
|
|
45
|
+
swr: Swr;
|
|
41
46
|
}
|
|
47
|
+
export type ResponseValue<T> = T | undefined;
|
|
48
|
+
export type SwrResponse<T> = {
|
|
49
|
+
cachedValue: ResponseValue<T>;
|
|
50
|
+
freshPromise: Promise<ResponseValue<T>>;
|
|
51
|
+
};
|
|
42
52
|
declare module "axios" {
|
|
43
53
|
interface AxiosRequestConfig {
|
|
44
54
|
raw?: boolean;
|
|
@@ -47,5 +57,9 @@ declare module "axios" {
|
|
|
47
57
|
_metadata?: {
|
|
48
58
|
startTime: number;
|
|
49
59
|
};
|
|
60
|
+
swr?: boolean;
|
|
61
|
+
onSwrHit?: <T>(data: T) => unknown;
|
|
62
|
+
onSwrRefresh?: <T>(data: T) => unknown;
|
|
63
|
+
onSwrError?: (error: Error) => unknown;
|
|
50
64
|
}
|
|
51
65
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid,
|
|
2
|
-
export type CameraExid =
|
|
1
|
+
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
|
|
2
|
+
export type CameraExid = string;
|
|
3
3
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
4
4
|
export type Cartesian3 = {
|
|
5
5
|
x: number;
|
|
@@ -17,7 +17,7 @@ export type Camera = {
|
|
|
17
17
|
storageDuration: string;
|
|
18
18
|
};
|
|
19
19
|
createdAt: DateTime_Z_micros;
|
|
20
|
-
description: null;
|
|
20
|
+
description: string | null;
|
|
21
21
|
discoverable: boolean;
|
|
22
22
|
external: {
|
|
23
23
|
host: string;
|
|
@@ -62,7 +62,7 @@ export type Camera = {
|
|
|
62
62
|
offlineReason: string;
|
|
63
63
|
owned: boolean;
|
|
64
64
|
owner: string;
|
|
65
|
-
pitch: null;
|
|
65
|
+
pitch: string | null;
|
|
66
66
|
project: {
|
|
67
67
|
id: string;
|
|
68
68
|
name: string;
|
|
@@ -73,7 +73,7 @@ export type Camera = {
|
|
|
73
73
|
};
|
|
74
74
|
ptz: boolean;
|
|
75
75
|
rights: string;
|
|
76
|
-
roll: null;
|
|
76
|
+
roll: string | null;
|
|
77
77
|
routerId: number;
|
|
78
78
|
status: CameraStatus;
|
|
79
79
|
streamingServer: string;
|
|
@@ -82,6 +82,8 @@ export type Camera = {
|
|
|
82
82
|
timezone: string;
|
|
83
83
|
updatedAt: DateTime_Z_micros;
|
|
84
84
|
vendorName: string;
|
|
85
|
+
isAccessRestricted?: boolean;
|
|
86
|
+
kitAlarms?: string[];
|
|
85
87
|
};
|
|
86
88
|
export type AdminCamera = {
|
|
87
89
|
cameraHost: string;
|
|
@@ -174,9 +176,18 @@ export declare enum CameraStatus {
|
|
|
174
176
|
UnderMaintenance = "under_maintenance",
|
|
175
177
|
WaitingForSiteVisit = "waiting_for_site_visit"
|
|
176
178
|
}
|
|
179
|
+
export declare enum IntensityChangeColors {
|
|
180
|
+
High = "#FF5252",
|
|
181
|
+
Moderate = "#FBC02D",
|
|
182
|
+
Low = "#006400",
|
|
183
|
+
NoChange = "#3ACF3A",
|
|
184
|
+
Default = "black"
|
|
185
|
+
}
|
|
177
186
|
export declare enum CameraFeatureFlag {
|
|
178
187
|
EdgeVideo = "edge_video",
|
|
179
188
|
BimCompare = "bim_compare",
|
|
189
|
+
TwoDBimCompare = "2d_bim_compare",
|
|
190
|
+
ForgeBIMCompare = "forge_bim_compare",
|
|
180
191
|
GateReport = "gate_report",
|
|
181
192
|
VideoStream = "video_stream",
|
|
182
193
|
WebRTC = "webrtc",
|
|
@@ -185,7 +196,8 @@ export declare enum CameraFeatureFlag {
|
|
|
185
196
|
PTZ = "ptz",
|
|
186
197
|
ObjectDetection = "object_detection",
|
|
187
198
|
Segmentation = "segmentation",
|
|
188
|
-
SegmentationAutoLabelling = "segmentation_auto_labelling"
|
|
199
|
+
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
200
|
+
PpeMonitoring = "ppe_monitoring"
|
|
189
201
|
}
|
|
190
202
|
export type CameraLogsRequestPayload = {
|
|
191
203
|
limit: number;
|
|
@@ -227,6 +239,8 @@ export type CameraUpdateRequestPayload = {
|
|
|
227
239
|
heading?: number;
|
|
228
240
|
fovAngle?: number;
|
|
229
241
|
fovRadius?: number;
|
|
242
|
+
featureFlags: CameraFeatureFlag[];
|
|
243
|
+
isAccessRestricted?: boolean;
|
|
230
244
|
};
|
|
231
245
|
export type CamerasResponsePayload = {
|
|
232
246
|
cameras?: Camera[];
|
|
@@ -320,56 +334,6 @@ export type Hdd = {
|
|
|
320
334
|
errorStatus: string;
|
|
321
335
|
canExpand: boolean;
|
|
322
336
|
};
|
|
323
|
-
export declare enum ResolutionDimensions {
|
|
324
|
-
QVGA = "320x240",
|
|
325
|
-
VGA = "640x480",
|
|
326
|
-
SVGA = "800x600",
|
|
327
|
-
XGA = "1024x768",
|
|
328
|
-
HD = "1280x720",
|
|
329
|
-
WXGA = "1280x800",
|
|
330
|
-
HDPlus = "1366x768",
|
|
331
|
-
WXGAPlus = "1440x900",
|
|
332
|
-
HDPlusPlus = "1600x900",
|
|
333
|
-
UXGA = "1600x1200",
|
|
334
|
-
FullHD = "1920x1080",
|
|
335
|
-
WUXGA = "1920x1200",
|
|
336
|
-
TwoK = "2048x1080",
|
|
337
|
-
QHD = "2560x1440",
|
|
338
|
-
WQXGA = "2560x1600",
|
|
339
|
-
FourK = "3840x2160",
|
|
340
|
-
FourKCinema = "4096x2160",
|
|
341
|
-
FiveK = "5120x2880",
|
|
342
|
-
EightK = "7680x4320",
|
|
343
|
-
WHUXGA = "7680x4800"
|
|
344
|
-
}
|
|
345
|
-
export declare enum ResolutionLabel {
|
|
346
|
-
QVGA = "QVGA",
|
|
347
|
-
VGA = "VGA",
|
|
348
|
-
SVGA = "SVGA",
|
|
349
|
-
XGA = "XGA",
|
|
350
|
-
HD = "HD",
|
|
351
|
-
WXGA = "WXGA",
|
|
352
|
-
HDPlus = "HD+",
|
|
353
|
-
WXGAPlus = "WXGA++",
|
|
354
|
-
HDPlusPlus = "HD++",
|
|
355
|
-
UXGA = "UXGA",
|
|
356
|
-
FullHD = "FullHD",
|
|
357
|
-
WUXGA = "WUXGA",
|
|
358
|
-
TwoK = "2K",
|
|
359
|
-
QHD = "QHD",
|
|
360
|
-
WQXGA = "WQXGA",
|
|
361
|
-
FourK = "4K",
|
|
362
|
-
FourKCinema = "4KCinema",
|
|
363
|
-
FiveK = "5K",
|
|
364
|
-
EightK = "8K",
|
|
365
|
-
WHUXGA = "WHUXGA"
|
|
366
|
-
}
|
|
367
|
-
export type ResolutionInfo = {
|
|
368
|
-
ratioString: string;
|
|
369
|
-
ratioFloat: number;
|
|
370
|
-
resolutionDimensions: ResolutionDimensions;
|
|
371
|
-
resolutionLabel: ResolutionLabel;
|
|
372
|
-
};
|
|
373
337
|
export type CameraPath = {
|
|
374
338
|
projectExid: ProjectExid;
|
|
375
339
|
cameraExid: CameraExid;
|
|
@@ -377,6 +341,7 @@ export type CameraPath = {
|
|
|
377
341
|
export type CheckCameraPortPayload = {
|
|
378
342
|
address: string;
|
|
379
343
|
port: number;
|
|
344
|
+
open: boolean;
|
|
380
345
|
};
|
|
381
346
|
export type CameraCreateRequestPayload = {
|
|
382
347
|
status: CameraStatus;
|
|
@@ -561,3 +526,7 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
561
526
|
externalRsptPort: string;
|
|
562
527
|
nvrHttpPort: string;
|
|
563
528
|
};
|
|
529
|
+
export declare enum BimType {
|
|
530
|
+
TwoD = "2D",
|
|
531
|
+
Forge = "Forge"
|
|
532
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams } from "@/types";
|
|
2
|
+
export declare enum CommentsScope {
|
|
3
|
+
Recordings = "recordings",
|
|
4
|
+
ThreeSixty = "360",
|
|
5
|
+
Drone = "drone"
|
|
6
|
+
}
|
|
7
|
+
export declare enum CommentsLabel {
|
|
8
|
+
Info = "Info",
|
|
9
|
+
Danger = "Danger",
|
|
10
|
+
Restricted = "Restricted"
|
|
11
|
+
}
|
|
12
|
+
export type CommentsRequestPayload = {
|
|
13
|
+
cameraExid: CameraExid;
|
|
14
|
+
fromDate: string;
|
|
15
|
+
toDate: string;
|
|
16
|
+
scope: CommentsScope;
|
|
17
|
+
page?: number;
|
|
18
|
+
limit?: number;
|
|
19
|
+
};
|
|
20
|
+
export type CommentsListRequestPayload = PaginationParams & {
|
|
21
|
+
projectExid?: ProjectExid;
|
|
22
|
+
cameraExid?: CameraExid;
|
|
23
|
+
fromDate?: string;
|
|
24
|
+
toDate?: string;
|
|
25
|
+
scope?: CommentsScope;
|
|
26
|
+
creatorEmail?: string;
|
|
27
|
+
content?: string;
|
|
28
|
+
includeArchived?: boolean;
|
|
29
|
+
};
|
|
30
|
+
export type Comment = {
|
|
31
|
+
fromDate?: string;
|
|
32
|
+
toDate?: string;
|
|
33
|
+
timestamp: string;
|
|
34
|
+
projectExid: ProjectExid;
|
|
35
|
+
updatedAt?: string;
|
|
36
|
+
id?: number;
|
|
37
|
+
cameraExid: CameraExid;
|
|
38
|
+
content: string;
|
|
39
|
+
createdAt?: string;
|
|
40
|
+
creatorEmail?: string;
|
|
41
|
+
creatorName?: string;
|
|
42
|
+
position2d?: [number, number];
|
|
43
|
+
position3d?: [number, number, number];
|
|
44
|
+
context?: Record<string, unknown>;
|
|
45
|
+
canDelete?: boolean;
|
|
46
|
+
archivedAt?: string;
|
|
47
|
+
};
|
|
48
|
+
export type CommentCreationRequestPayload = {
|
|
49
|
+
fromDate?: DateType;
|
|
50
|
+
toDate?: DateType;
|
|
51
|
+
timestamp?: DateType;
|
|
52
|
+
scope?: CommentsScope;
|
|
53
|
+
projectExid: ProjectExid;
|
|
54
|
+
cameraExid?: CameraExid;
|
|
55
|
+
content: string;
|
|
56
|
+
position2d?: [number, number];
|
|
57
|
+
position3d?: [number, number, number];
|
|
58
|
+
context?: Record<string, unknown>;
|
|
59
|
+
};
|
|
@@ -13,6 +13,34 @@ export type CompanyProject = {
|
|
|
13
13
|
status: string;
|
|
14
14
|
startedAt: DateType;
|
|
15
15
|
};
|
|
16
|
+
export type CompanyKit = {
|
|
17
|
+
id: number;
|
|
18
|
+
name: string;
|
|
19
|
+
serial: string;
|
|
20
|
+
status: string;
|
|
21
|
+
powerType: string;
|
|
22
|
+
countryName: string;
|
|
23
|
+
nvrId: string;
|
|
24
|
+
nvrSerial: string;
|
|
25
|
+
nvrVersion: string;
|
|
26
|
+
nvrNerves: boolean;
|
|
27
|
+
nvrModel: string;
|
|
28
|
+
nvrDeviceType: string;
|
|
29
|
+
routerId: string;
|
|
30
|
+
routerSerial: string;
|
|
31
|
+
projectExid: string;
|
|
32
|
+
projectName: string;
|
|
33
|
+
alarms: Array<string>;
|
|
34
|
+
sims: Array<{
|
|
35
|
+
id: number;
|
|
36
|
+
number: string;
|
|
37
|
+
}>;
|
|
38
|
+
cameras: Array<{
|
|
39
|
+
exid: string;
|
|
40
|
+
name: string;
|
|
41
|
+
status: string;
|
|
42
|
+
}>;
|
|
43
|
+
};
|
|
16
44
|
export type Company = {
|
|
17
45
|
id: number;
|
|
18
46
|
exid: string;
|
|
@@ -25,7 +53,7 @@ export type Company = {
|
|
|
25
53
|
cameras: number;
|
|
26
54
|
users: number;
|
|
27
55
|
activeUsers: number;
|
|
28
|
-
|
|
56
|
+
insertedAt: DateType;
|
|
29
57
|
};
|
|
30
58
|
export type CompanyQueryParams = PaginationParams & {
|
|
31
59
|
name: string;
|
|
@@ -7,7 +7,12 @@ export declare enum Connector {
|
|
|
7
7
|
Procore = "procore",
|
|
8
8
|
Autodesk = "autodesk",
|
|
9
9
|
AutodeskViewer = "autodesk_viewer",
|
|
10
|
-
VoyageControl = "voyage_control"
|
|
10
|
+
VoyageControl = "voyage_control",
|
|
11
|
+
XWeather = "xweather"
|
|
12
|
+
}
|
|
13
|
+
export declare enum ProcoreType {
|
|
14
|
+
Observations = "observations",
|
|
15
|
+
Photos = "photos"
|
|
11
16
|
}
|
|
12
17
|
export type ConnectorResponsePayload = Array<{
|
|
13
18
|
hostname: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DateType } from "@/types/time";
|
|
2
|
+
export type CreateCoolifyAppRequestPayload = {
|
|
3
|
+
cameraExid: string;
|
|
4
|
+
startDate: DateType;
|
|
5
|
+
modelVersion: string;
|
|
6
|
+
snapshotRequestTimeout: string | number;
|
|
7
|
+
serverUuid: string;
|
|
8
|
+
branch: string;
|
|
9
|
+
};
|
|
10
|
+
export type SaveCoolifyAppRequestPayload = {
|
|
11
|
+
contextCameraExid: string;
|
|
12
|
+
coolifyServiceId: string;
|
|
13
|
+
modelVersion: string;
|
|
14
|
+
startTime: string;
|
|
15
|
+
branchName: string;
|
|
16
|
+
snapshotRequestTimeout: string | number;
|
|
17
|
+
serverUuid: string;
|
|
18
|
+
};
|