@evercam/api 1.0.0-ca4bfd0ab → 1.0.0-cc52e4032
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 +21 -0
- package/dist/api/{adminApi.d.ts → api/adminApi.d.ts} +95 -20
- package/dist/api/{aiApi.d.ts → api/aiApi.d.ts} +56 -11
- package/dist/api/{authzApi.d.ts → api/authzApi.d.ts} +7 -0
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- 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} +85 -32
- package/dist/api/{evercamLabsApi.d.ts → api/evercamLabsApi.d.ts} +8 -10
- package/dist/api/api/index.d.ts +13 -0
- package/dist/api/api/ingestApi.d.ts +95 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- 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 +58 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/{types → api/types}/analytics.d.ts +101 -45
- package/dist/{types → api/types}/anpr.d.ts +8 -11
- package/dist/api/types/authz.d.ts +22 -0
- package/dist/api/types/automation.d.ts +61 -0
- package/dist/{types → api/types}/axios.d.ts +15 -0
- package/dist/{types → api/types}/camera.d.ts +26 -55
- 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/{types → api/types}/coolify.d.ts +2 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/detections.d.ts +51 -15
- package/dist/{types → api/types}/errors.d.ts +13 -0
- package/dist/{types → api/types}/index.d.ts +7 -1
- package/dist/{types → api/types}/ingest.d.ts +8 -0
- package/dist/{types → api/types}/kit.d.ts +65 -7
- package/dist/{types → api/types}/planner.d.ts +7 -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 +6 -22
- package/dist/{types → api/types}/project.d.ts +50 -2
- 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 +1 -6
- package/dist/{types → api/types}/shares.d.ts +5 -1
- package/dist/api/types/siteAnalytics.d.ts +163 -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 +2 -23
- 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 +6 -0
- package/dist/{types → api/types}/user.d.ts +5 -6
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/{types → api/types}/weather.d.ts +8 -2
- package/dist/{types → api/types}/widget.d.ts +27 -6
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1421 -812
- 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 +199 -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 +6 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -27
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/automation.d.ts +0 -6
- 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/types/videoWall.d.ts +0 -33
- /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/{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}/copilot.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}/timelapse.d.ts +0 -0
- /package/dist/{types → api/types}/vendorModel.d.ts +0 -0
- /package/dist/{types → api/types}/voyageControl.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",
|
|
@@ -47,7 +41,10 @@ export declare enum AnalyticsEventPageId {
|
|
|
47
41
|
DroneInfo = "DroneInfo",
|
|
48
42
|
ThreeSixtyInfo = "360Info",
|
|
49
43
|
BimCompareInfo = "BimCompareInfo",
|
|
50
|
-
WeatherReport = "WeatherReport"
|
|
44
|
+
WeatherReport = "WeatherReport",
|
|
45
|
+
PpeReport = "PpeReport",
|
|
46
|
+
SmartSearch = "SmartSearch",
|
|
47
|
+
Drawings = "Drawings"
|
|
51
48
|
}
|
|
52
49
|
export declare enum AnalyticsEvent {
|
|
53
50
|
PageView = "PageView",
|
|
@@ -63,14 +60,13 @@ export declare enum AnalyticsEvent {
|
|
|
63
60
|
Comment = "Comment-Toggle",
|
|
64
61
|
Compare = "Compare-Toggle",
|
|
65
62
|
Copilot = "Copilot-Toggle",
|
|
63
|
+
DownloadMediaOpen = "DownloadMedia-Open",
|
|
66
64
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
67
65
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
68
66
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
69
67
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
70
68
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
71
69
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
72
|
-
SettingsActivitiesFromDateSelect = "FromDateSelect",
|
|
73
|
-
SettingsActivitiesToDateSelect = "ToDateSelect",
|
|
74
70
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
75
71
|
SettingsConnectorsConnectToAconex = "ConnectToAconex",
|
|
76
72
|
SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
|
|
@@ -82,6 +78,12 @@ export declare enum AnalyticsEvent {
|
|
|
82
78
|
SettingsConnectorsRemoveVoyageControlConnection = "RemoveVoyageControl",
|
|
83
79
|
SettingsConnectorsToggleConnectorPromptDialog = "ToggleConnectorPromptDialog",
|
|
84
80
|
SettingsConnectorsToggleVoyageControlDialog = "ToggleVoyageControlDialog",
|
|
81
|
+
WidgetsSelectTypeThreeSixty = "Widgets-SelectType360",
|
|
82
|
+
WidgetsSelectProject = "SelectProject",
|
|
83
|
+
WidgetsSelect360Date = "Select360Date",
|
|
84
|
+
WidgetsSelect360Floor = "Select360Floor",
|
|
85
|
+
WidgetsSelect360Marker = "Select360Marker",
|
|
86
|
+
Widgets360LockMedia = "360LockMedia",
|
|
85
87
|
WidgetsAddWidgetClick = "AddWidget",
|
|
86
88
|
WidgetsCancelClick = "Cancel",
|
|
87
89
|
WidgetsEditHeight = "EditHeight",
|
|
@@ -108,6 +110,7 @@ export declare enum AnalyticsEvent {
|
|
|
108
110
|
WidgetsSettingToggleRestrictRecentImages = "ToggleRestrictRecentImages",
|
|
109
111
|
WidgetsSettingToggleZoom = "ToggleZoom",
|
|
110
112
|
WidgetsTogglePublicWidget = "TogglePublicWidget",
|
|
113
|
+
WidgetsToggleRestrictRecordingsRange = "ToggleRestrictRecordingsRange",
|
|
111
114
|
PlayerSelectCamera = "Player-SelectCamera",
|
|
112
115
|
PlayerDownload = "Player-Download",
|
|
113
116
|
PlayerToggleFullscreen = "Player-ToggleFullscreen",
|
|
@@ -242,7 +245,6 @@ export declare enum AnalyticsEvent {
|
|
|
242
245
|
AiToolSelectObjectDetection = "AITool-SelectObjectDetection",
|
|
243
246
|
AiToolSelectAskChatGpt = "AITool-SelectAskChatGpt",
|
|
244
247
|
AiToolSelectSegmentation = "AITool-SelectSegmentation",
|
|
245
|
-
AiToolSelectDepthAnalysis = "AITool-SelectDepthAnalysis",
|
|
246
248
|
AiToolUpdateTransparency = "AITool-UpdateTransparency",
|
|
247
249
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
248
250
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
@@ -264,15 +266,27 @@ export declare enum AnalyticsEvent {
|
|
|
264
266
|
SharingTransferOwnership = "TransferOwnership",
|
|
265
267
|
SharingSortBy = "SortBy",
|
|
266
268
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
269
|
+
ThreeSixtyGallery = "Gallery",
|
|
270
|
+
ThreeSixtyGalleryFilterAssetTypes = "Gallery-FilterAssetTypes",
|
|
271
|
+
ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
|
|
272
|
+
ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
|
|
273
|
+
ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
|
|
274
|
+
ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
|
|
275
|
+
ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
|
|
276
|
+
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
277
|
+
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
278
|
+
ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
|
|
279
|
+
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
280
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
267
281
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
268
282
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
269
283
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
270
284
|
ThreeSixtyCloseForgeBIM = "CloseForgeBIM",
|
|
271
|
-
|
|
285
|
+
ThreeSixtyDeleteComment = "DeleteComment",
|
|
272
286
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
273
|
-
|
|
287
|
+
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
274
288
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
275
|
-
|
|
289
|
+
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
276
290
|
ThreeSixtyLockCompare = "LockCompare",
|
|
277
291
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
278
292
|
ThreeSixtyMarkerThumbnailClicked = "MarkerThumbnailClicked",
|
|
@@ -281,14 +295,16 @@ export declare enum AnalyticsEvent {
|
|
|
281
295
|
ThreeSixtyOpenCompare = "OpenCompare",
|
|
282
296
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
283
297
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
284
|
-
|
|
285
|
-
|
|
298
|
+
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
299
|
+
ThreeSixtySaveComment = "SaveComment",
|
|
300
|
+
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
301
|
+
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
286
302
|
ThreeSixtyShareView = "ShareView",
|
|
287
|
-
|
|
303
|
+
ThreeSixtyCommentClicked = "CommentClicked",
|
|
288
304
|
ThreeSixtyToggleMarkersVisibility = "ToggleMarkersVisibility",
|
|
289
305
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
290
306
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
291
|
-
|
|
307
|
+
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
292
308
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
293
309
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
294
310
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -298,6 +314,7 @@ export declare enum AnalyticsEvent {
|
|
|
298
314
|
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
299
315
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
300
316
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
317
|
+
ThreeSixtyUploadAssets = "UploadAssets",
|
|
301
318
|
DroneAreaToolClick = "AreaTool-Click",
|
|
302
319
|
DroneChangeDate = "ChangeDate",
|
|
303
320
|
DroneChooseTagType = "ChooseTagType",
|
|
@@ -334,6 +351,7 @@ export declare enum AnalyticsEvent {
|
|
|
334
351
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
335
352
|
DroneZoomIn = "ZoomIn",
|
|
336
353
|
DroneZoomOut = "ZoomOut",
|
|
354
|
+
DroneUploadSkipping = "SkipImageUpload",// To be removed later
|
|
337
355
|
PlannerAddCameraClick = "AddCameraClick",
|
|
338
356
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
339
357
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -357,8 +375,13 @@ export declare enum AnalyticsEvent {
|
|
|
357
375
|
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
358
376
|
PlannerZoomIn = "ZoomIn",
|
|
359
377
|
PlannerZoomOut = "ZoomOut",
|
|
378
|
+
DrawingCreateSave = "CreateSave",
|
|
379
|
+
DrawingEditName = "EditName",
|
|
380
|
+
DrawingToggleSaveDialog = "ToggleSaveDialog",
|
|
381
|
+
DrawingUpdateName = "UpdateName",
|
|
382
|
+
DrawingUpdateSave = "UpdateSave",
|
|
360
383
|
MarkerClicked = "MarkerClicked",
|
|
361
|
-
|
|
384
|
+
MarkerSelected = "MarkerSelected",
|
|
362
385
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
363
386
|
TimelapseToggleCustomScheduleDialog = "ToggleCustomScheduleDialog",
|
|
364
387
|
TimelapseSaveCustomSchedule = "SaveCustomSchedule",
|
|
@@ -386,12 +409,18 @@ export declare enum AnalyticsEvent {
|
|
|
386
409
|
ProgressPhotoPause = "ProgressPhoto-Pause",
|
|
387
410
|
ProgressPhotoResume = "ProgressPhoto-Resume",
|
|
388
411
|
ProgressPhotoResumeDelete = "ProgressPhoto-ResumeDelete",
|
|
412
|
+
ProgressPhotoSelectType = "ProgressPhoto-SelectType",
|
|
389
413
|
ProgressPhotoSelectCameras = "ProgressPhoto-SelectCameras",
|
|
414
|
+
ProgressPhotoToggleSelectAllOnlineCameras = "ProgressPhoto-ToggleSelectAllOnlineCameras",
|
|
415
|
+
ProgressPhotoToggleSelectAllCameras = "ProgressPhoto-ToggleSelectAllCameras",
|
|
416
|
+
ProgressPhotoClearAllCameras = "ProgressPhoto-ClearAllCameras",
|
|
417
|
+
ProgressPhotoEditCamerasSearchFilter = "ProgressPhoto-EditCamerasSearchFilter",
|
|
390
418
|
ProgressPhotoSelectDays = "ProgressPhoto-SelectDays",
|
|
391
419
|
ProgressPhotoSelectMember = "ProgressPhoto-SelectMember",
|
|
392
420
|
ProgressPhotoSelectProvider = "ProgressPhoto-SelectProvider",
|
|
393
421
|
ProgressPhotoSelectTime = "ProgressPhoto-SelectTime",
|
|
394
422
|
ProgressPhotoSelectTimezone = "ProgressPhoto-SelectTimezone",
|
|
423
|
+
ProgressPhotoEditSelectedCameras = "ProgressPhoto-EditSelectedCameras",
|
|
395
424
|
ProgressPhotoToggleCreateDialog = "ProgressPhoto-ToggleCreateDialog",
|
|
396
425
|
ProgressPhotoToggleEditDialog = "ProgressPhoto-ToggleEditDialog",
|
|
397
426
|
ProgressPhotoUnsubscribeUser = "ProgressPhoto-UnsubscribeUser",
|
|
@@ -441,40 +470,67 @@ export declare enum AnalyticsEvent {
|
|
|
441
470
|
MediaCopyMediaLink = "Media-CopyMediaLink",
|
|
442
471
|
MediaGoToMediaHub = "Media-GoBackToMediaHub",
|
|
443
472
|
GateReportCalendarTreeDateClick = "CalendarTree-DateClick",
|
|
444
|
-
GateReportExportPdf = "ExportPdf",
|
|
445
|
-
GateReportExportCsv = "ExportCsv",
|
|
446
473
|
GateReportFilterEntryExit = "FilterEntryExit",
|
|
447
|
-
GateReportFilterCameras = "FilterCameras",
|
|
448
474
|
GateReportFilterPlateNumber = "FilterPlateNumber",
|
|
449
475
|
GateReportFilterVehicleTypes = "FilterVehicleTypes",
|
|
450
476
|
GateReportOpenVehicleTypeInfo = "OpenVehicleTypeInfo",
|
|
451
477
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
452
478
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
479
|
+
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
453
480
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
481
|
+
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
454
482
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
455
483
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
456
484
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
457
485
|
HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
|
|
458
|
-
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
|
|
486
|
+
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
|
|
487
|
+
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
|
|
488
|
+
Recording = "Recording",
|
|
489
|
+
CameraFilter = "CameraFilter",
|
|
490
|
+
MissingEquipmentHardHat = "MissingEquipment-HardHat",
|
|
491
|
+
MissingEquipmentHighVisibilityVest = "MissingEquipment-HighVisibilityVest",
|
|
492
|
+
MissingEquipmentSafetyGlasses = "MissingEquipment-SafetyGlasses",
|
|
493
|
+
MissingEquipmentSafetyGloves = "MissingEquipment-SafteyGLoves",
|
|
494
|
+
ExportAs = "ExportAs",
|
|
495
|
+
ExportPdf = "ExportPdf",
|
|
496
|
+
ExportCsv = "ExportCsv",
|
|
497
|
+
FilterCameras = "FilterCameras",
|
|
498
|
+
CompareSelectProvider = "Compare-SelectProvider",
|
|
499
|
+
CompareEditSelectedCameras = "Compare-EditSelectedCameras",
|
|
500
|
+
CompareEdit = "Compare-Edit",
|
|
501
|
+
CompareSelectTimezone = "Compare-SelectTimezone",
|
|
502
|
+
CompareSelectMember = "Compare-SelectMember",
|
|
503
|
+
CompareToggleSelectAllOnlineCameras = "Compare-ToggleSelectAllOnlineCameras",
|
|
504
|
+
CompareToggleSelectAllCameras = "Compare-ToggleSelectAllCameras",
|
|
505
|
+
CompareClearAllCameras = "Compare-ClearAllCameras",
|
|
506
|
+
CompareEditCamerasSearchFilter = "Compare-EditCamerasSearchFilter",
|
|
507
|
+
AutomationsSelectProgressPhoto = "SelectProgressPhoto",
|
|
508
|
+
AutomationsSelectCompare = "SelectCompare",
|
|
509
|
+
AutomationsCreateCompare = "CreateCompare",
|
|
510
|
+
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
511
|
+
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
512
|
+
AutomationTypeName = "TypeName",
|
|
513
|
+
CompareSelectDays = "Compare-SelectDays",
|
|
514
|
+
CompareSelectDelay = "Compare-SelectDelay",
|
|
515
|
+
CompareSelectTime = "Compare-SelectTime",
|
|
516
|
+
SmartSearchToggleQueryBuilder = "SmartSearch-ToggleQueryBuilder",
|
|
517
|
+
SmartSearchToggleQuerySelector = "SmartSearch-ToggleQuerySelector",
|
|
518
|
+
SmartSearchDeleteComponent = "SmartSearch-DeleteComponent",
|
|
519
|
+
SmartSearchPageChange = "SmartSearch-PageChange",
|
|
520
|
+
SmartSearchExecuteQuery = "SmartSearch-ExecuteQuery",
|
|
521
|
+
SmartSearchAddComponent = "SmartSearch-AddComponent",
|
|
522
|
+
SmartSearchConnectComponent = "SmartSearch-ConnectComponent",
|
|
523
|
+
SmartSearchUpdateComponent = "SmartSearch-UpdateComponent",
|
|
524
|
+
SmartSearchSavedQueryClick = "SmartSearch-SavedQueryClick",
|
|
525
|
+
SmartSearchFilterSavedQueries = "SmartSearch-FilterSavedQueries",
|
|
526
|
+
SmartSearchThumbnailHover = "SmartSearch-ThumbnailHover",
|
|
527
|
+
SmartSearchThumbnailError = "SmartSearch-ThumbnailError",
|
|
528
|
+
SmartSearchCameraSelected = "SmartSearch-CameraSelected",
|
|
529
|
+
SmartSearchOptionClicked = "SmartSearch-OptionClicked",
|
|
530
|
+
SmartSearchEditQuery = "SmartSearch-EditQuery",
|
|
531
|
+
SmartSearchDeleteQuery = "SmartSearch-DeleteQuery",
|
|
532
|
+
SmartSearchSaveQuery = "SmartSearch-SaveQuery",
|
|
533
|
+
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
534
|
+
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
535
|
+
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage"
|
|
459
536
|
}
|
|
460
|
-
export type ProjectPAStatsRequestPayload = {
|
|
461
|
-
period: "day" | "week" | "month";
|
|
462
|
-
startDate?: string;
|
|
463
|
-
endDate?: string;
|
|
464
|
-
};
|
|
465
|
-
export type ProjectPAStatsResponsePayload = {
|
|
466
|
-
period: DateType;
|
|
467
|
-
name: string;
|
|
468
|
-
count: number | string;
|
|
469
|
-
};
|
|
470
|
-
export type ActiveUsersStatsRequestPayload = {
|
|
471
|
-
companyId: number;
|
|
472
|
-
from: string;
|
|
473
|
-
to: string;
|
|
474
|
-
};
|
|
475
|
-
export type ActiveUserStat = {
|
|
476
|
-
date: string;
|
|
477
|
-
dau: number;
|
|
478
|
-
wau: number;
|
|
479
|
-
mau: number;
|
|
480
|
-
};
|
|
@@ -2,16 +2,6 @@ import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePreci
|
|
|
2
2
|
export type AnprQueryParams = {
|
|
3
3
|
page?: number;
|
|
4
4
|
limit?: number;
|
|
5
|
-
firstSeen?: {
|
|
6
|
-
gte: DateType;
|
|
7
|
-
};
|
|
8
|
-
lastSeen?: {
|
|
9
|
-
lte: DateType;
|
|
10
|
-
};
|
|
11
|
-
captureTime?: {
|
|
12
|
-
gte?: DateType;
|
|
13
|
-
lt?: DateType;
|
|
14
|
-
};
|
|
15
5
|
direction?: {
|
|
16
6
|
eq?: string;
|
|
17
7
|
} | string;
|
|
@@ -21,7 +11,11 @@ export type AnprQueryParams = {
|
|
|
21
11
|
sort?: string;
|
|
22
12
|
fromDate?: DateType;
|
|
23
13
|
toDate?: DateType;
|
|
24
|
-
|
|
14
|
+
camerasExid?: CameraExid[];
|
|
15
|
+
vehicleTypes?: GateReportVehicleType[];
|
|
16
|
+
isDuplicate?: boolean;
|
|
17
|
+
isPostprocessed?: boolean;
|
|
18
|
+
isPlate?: boolean;
|
|
25
19
|
};
|
|
26
20
|
export type AnprCountsQueryParams = {
|
|
27
21
|
precision: TimelinePrecision;
|
|
@@ -44,6 +38,7 @@ export type AnprEvent = {
|
|
|
44
38
|
id: number;
|
|
45
39
|
plateNumber: string;
|
|
46
40
|
cameraExid: CameraExid;
|
|
41
|
+
cameraex: CameraExid;
|
|
47
42
|
picName: string;
|
|
48
43
|
eventTime: string;
|
|
49
44
|
insertedAt: string;
|
|
@@ -61,10 +56,12 @@ export type AnprEvent = {
|
|
|
61
56
|
anprVehicleColor?: string;
|
|
62
57
|
anprVehicleSpeed?: number;
|
|
63
58
|
anprSnapshotLink: string;
|
|
59
|
+
contextSnapshotLink: string;
|
|
64
60
|
mainSnapshotLink: string;
|
|
65
61
|
contextCamera: string;
|
|
66
62
|
votedVehicleType: GateReportVehicleType | string;
|
|
67
63
|
roiId?: number;
|
|
64
|
+
captureTime: DateType;
|
|
68
65
|
metadata_: {
|
|
69
66
|
evercamMetadata?: {
|
|
70
67
|
anpr?: {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum RoleResourceType {
|
|
2
|
+
Camera = "camera",
|
|
3
|
+
Project = "project"
|
|
4
|
+
}
|
|
5
|
+
export type Role = {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
resource: string;
|
|
9
|
+
resourceType: RoleResourceType;
|
|
10
|
+
permissions: string[];
|
|
11
|
+
subRoles?: Array<{
|
|
12
|
+
resourceId: string;
|
|
13
|
+
roleId: number;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
export type ProjectResourceRole = Role & {
|
|
17
|
+
resourceType: RoleResourceType.Project;
|
|
18
|
+
};
|
|
19
|
+
export type CameraResourceRole = Omit<Role, "subRoles"> & {
|
|
20
|
+
resourceType: RoleResourceType.Camera;
|
|
21
|
+
};
|
|
22
|
+
export type ProjectRoleRequestPayload = Omit<Role, "id" | "resource" | "resourceType">;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { AconexIdentifiers, CameraExid } from "@evercam/api/types";
|
|
2
|
+
export declare enum AutomationProvider {
|
|
3
|
+
Aconex = "aconex",
|
|
4
|
+
Procore = "procore",
|
|
5
|
+
Autodesk = "autodesk",
|
|
6
|
+
Email = "email"
|
|
7
|
+
}
|
|
8
|
+
export declare enum AutomationType {
|
|
9
|
+
Photo = "photo",
|
|
10
|
+
Compare = "compare"
|
|
11
|
+
}
|
|
12
|
+
export type AutomationCompareConfig = {
|
|
13
|
+
compareDelay: number;
|
|
14
|
+
};
|
|
15
|
+
export type AutomationEmailProviderConfig = {
|
|
16
|
+
recipients: string | string[];
|
|
17
|
+
};
|
|
18
|
+
export type AutomationProcoreProviderConfig = {
|
|
19
|
+
companyId: number;
|
|
20
|
+
companyName: string;
|
|
21
|
+
projectId: number;
|
|
22
|
+
projectName: string;
|
|
23
|
+
categoryId: number;
|
|
24
|
+
categoryName: string;
|
|
25
|
+
};
|
|
26
|
+
export type AutomationAconexProviderConfig = {
|
|
27
|
+
projectId: number;
|
|
28
|
+
projectName: string;
|
|
29
|
+
} & Partial<Record<AconexIdentifiers, string | number | boolean>>;
|
|
30
|
+
export type AutomationAutodeskProviderConfig = {
|
|
31
|
+
hubId: number;
|
|
32
|
+
hubName: string;
|
|
33
|
+
projectId: number;
|
|
34
|
+
projectName: string;
|
|
35
|
+
folderId: number;
|
|
36
|
+
accFileType: string;
|
|
37
|
+
accFolderType: string;
|
|
38
|
+
folderName: string;
|
|
39
|
+
};
|
|
40
|
+
export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
|
|
41
|
+
export type AutomationOptionsConfig = AutomationCompareConfig | {};
|
|
42
|
+
export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
|
|
43
|
+
export type Automation = {
|
|
44
|
+
cameraExids: CameraExid[];
|
|
45
|
+
name: string;
|
|
46
|
+
subject?: string;
|
|
47
|
+
provider: AutomationProvider;
|
|
48
|
+
type: AutomationType;
|
|
49
|
+
config: AutomationConfig;
|
|
50
|
+
notifyDays: string[];
|
|
51
|
+
notifyTime: string;
|
|
52
|
+
timezone: string;
|
|
53
|
+
isPaused: boolean;
|
|
54
|
+
restrictedCameraExids?: string[];
|
|
55
|
+
};
|
|
56
|
+
export declare enum AutomationConfigStep {
|
|
57
|
+
Type = "type",
|
|
58
|
+
Cameras = "cameras",
|
|
59
|
+
Settings = "settings",
|
|
60
|
+
Destination = "destination"
|
|
61
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
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;
|
|
@@ -8,6 +9,7 @@ export type AxiosEnvironment = {
|
|
|
8
9
|
stagingAiApiUrl?: string | null;
|
|
9
10
|
aiApiUrl?: string | null;
|
|
10
11
|
ingestApiUrl?: string | null;
|
|
12
|
+
ingestGpuApiUrl?: string | null;
|
|
11
13
|
posthogApiUrl?: string | null;
|
|
12
14
|
posthogProjectId?: string | null;
|
|
13
15
|
posthogPrivateApiKey?: string | null;
|
|
@@ -15,10 +17,13 @@ export type AxiosEnvironment = {
|
|
|
15
17
|
weatherApiBaseUrl?: string | null;
|
|
16
18
|
evercamLabsUrl?: string | null;
|
|
17
19
|
firebaseDbLink?: string | null;
|
|
20
|
+
firebaseStorageUrl?: string | null;
|
|
21
|
+
firebaseStorageToken?: string | null;
|
|
18
22
|
snapshotsURL?: string | null;
|
|
19
23
|
app?: string | null;
|
|
20
24
|
getAuthToken?: () => string | null;
|
|
21
25
|
errorLogger?: (error: AxiosError) => void;
|
|
26
|
+
swrKey?: string;
|
|
22
27
|
};
|
|
23
28
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
24
29
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
@@ -37,7 +42,13 @@ export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
|
37
42
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
38
43
|
addResponseInterceptor: (interceptor: ResponseInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
|
39
44
|
addErrorInterceptor: (interceptor: ErrorInterceptor) => void;
|
|
45
|
+
swr: Swr;
|
|
40
46
|
}
|
|
47
|
+
export type ResponseValue<T> = T | undefined;
|
|
48
|
+
export type SwrResponse<T> = {
|
|
49
|
+
cachedValue: ResponseValue<T>;
|
|
50
|
+
freshPromise: Promise<ResponseValue<T>>;
|
|
51
|
+
};
|
|
41
52
|
declare module "axios" {
|
|
42
53
|
interface AxiosRequestConfig {
|
|
43
54
|
raw?: boolean;
|
|
@@ -46,5 +57,9 @@ declare module "axios" {
|
|
|
46
57
|
_metadata?: {
|
|
47
58
|
startTime: number;
|
|
48
59
|
};
|
|
60
|
+
swr?: boolean;
|
|
61
|
+
onSwrHit?: <T>(data: T) => unknown;
|
|
62
|
+
onSwrRefresh?: <T>(data: T) => unknown;
|
|
63
|
+
onSwrError?: (error: Error) => unknown;
|
|
49
64
|
}
|
|
50
65
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
|
|
1
|
+
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule } from "@/types";
|
|
2
|
+
import { DateRangeFilter } from "@/types/time";
|
|
2
3
|
export type CameraExid = string;
|
|
3
4
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
4
5
|
export type Cartesian3 = {
|
|
@@ -17,7 +18,7 @@ export type Camera = {
|
|
|
17
18
|
storageDuration: string;
|
|
18
19
|
};
|
|
19
20
|
createdAt: DateTime_Z_micros;
|
|
20
|
-
description: null;
|
|
21
|
+
description: string | null;
|
|
21
22
|
discoverable: boolean;
|
|
22
23
|
external: {
|
|
23
24
|
host: string;
|
|
@@ -62,7 +63,7 @@ export type Camera = {
|
|
|
62
63
|
offlineReason: string;
|
|
63
64
|
owned: boolean;
|
|
64
65
|
owner: string;
|
|
65
|
-
pitch: null;
|
|
66
|
+
pitch: string | null;
|
|
66
67
|
project: {
|
|
67
68
|
id: string;
|
|
68
69
|
name: string;
|
|
@@ -73,7 +74,7 @@ export type Camera = {
|
|
|
73
74
|
};
|
|
74
75
|
ptz: boolean;
|
|
75
76
|
rights: string;
|
|
76
|
-
roll: null;
|
|
77
|
+
roll: string | null;
|
|
77
78
|
routerId: number;
|
|
78
79
|
status: CameraStatus;
|
|
79
80
|
streamingServer: string;
|
|
@@ -82,6 +83,8 @@ export type Camera = {
|
|
|
82
83
|
timezone: string;
|
|
83
84
|
updatedAt: DateTime_Z_micros;
|
|
84
85
|
vendorName: string;
|
|
86
|
+
isAccessRestricted?: boolean;
|
|
87
|
+
kitAlarms?: string[];
|
|
85
88
|
};
|
|
86
89
|
export type AdminCamera = {
|
|
87
90
|
cameraHost: string;
|
|
@@ -133,7 +136,7 @@ export type AdminCamera = {
|
|
|
133
136
|
pitch: null;
|
|
134
137
|
powerSchedule: Schedule;
|
|
135
138
|
projectExid: string;
|
|
136
|
-
projectFeatureFlags: [];
|
|
139
|
+
projectFeatureFlags: ProjectFeatureFlag[];
|
|
137
140
|
projectId: number;
|
|
138
141
|
projectName: string;
|
|
139
142
|
ptz: false;
|
|
@@ -174,9 +177,18 @@ export declare enum CameraStatus {
|
|
|
174
177
|
UnderMaintenance = "under_maintenance",
|
|
175
178
|
WaitingForSiteVisit = "waiting_for_site_visit"
|
|
176
179
|
}
|
|
180
|
+
export declare enum IntensityChangeColors {
|
|
181
|
+
High = "#FF5252",
|
|
182
|
+
Moderate = "#FBC02D",
|
|
183
|
+
Low = "#006400",
|
|
184
|
+
NoChange = "#3ACF3A",
|
|
185
|
+
Default = "black"
|
|
186
|
+
}
|
|
177
187
|
export declare enum CameraFeatureFlag {
|
|
178
188
|
EdgeVideo = "edge_video",
|
|
179
189
|
BimCompare = "bim_compare",
|
|
190
|
+
TwoDBimCompare = "2d_bim_compare",
|
|
191
|
+
ForgeBIMCompare = "forge_bim_compare",
|
|
180
192
|
GateReport = "gate_report",
|
|
181
193
|
VideoStream = "video_stream",
|
|
182
194
|
WebRTC = "webrtc",
|
|
@@ -229,6 +241,7 @@ export type CameraUpdateRequestPayload = {
|
|
|
229
241
|
fovAngle?: number;
|
|
230
242
|
fovRadius?: number;
|
|
231
243
|
featureFlags: CameraFeatureFlag[];
|
|
244
|
+
isAccessRestricted?: boolean;
|
|
232
245
|
};
|
|
233
246
|
export type CamerasResponsePayload = {
|
|
234
247
|
cameras?: Camera[];
|
|
@@ -322,56 +335,6 @@ export type Hdd = {
|
|
|
322
335
|
errorStatus: string;
|
|
323
336
|
canExpand: boolean;
|
|
324
337
|
};
|
|
325
|
-
export declare enum ResolutionDimensions {
|
|
326
|
-
QVGA = "320x240",
|
|
327
|
-
VGA = "640x480",
|
|
328
|
-
SVGA = "800x600",
|
|
329
|
-
XGA = "1024x768",
|
|
330
|
-
HD = "1280x720",
|
|
331
|
-
WXGA = "1280x800",
|
|
332
|
-
HDPlus = "1366x768",
|
|
333
|
-
WXGAPlus = "1440x900",
|
|
334
|
-
HDPlusPlus = "1600x900",
|
|
335
|
-
UXGA = "1600x1200",
|
|
336
|
-
FullHD = "1920x1080",
|
|
337
|
-
WUXGA = "1920x1200",
|
|
338
|
-
TwoK = "2048x1080",
|
|
339
|
-
QHD = "2560x1440",
|
|
340
|
-
WQXGA = "2560x1600",
|
|
341
|
-
FourK = "3840x2160",
|
|
342
|
-
FourKCinema = "4096x2160",
|
|
343
|
-
FiveK = "5120x2880",
|
|
344
|
-
EightK = "7680x4320",
|
|
345
|
-
WHUXGA = "7680x4800"
|
|
346
|
-
}
|
|
347
|
-
export declare enum ResolutionLabel {
|
|
348
|
-
QVGA = "QVGA",
|
|
349
|
-
VGA = "VGA",
|
|
350
|
-
SVGA = "SVGA",
|
|
351
|
-
XGA = "XGA",
|
|
352
|
-
HD = "HD",
|
|
353
|
-
WXGA = "WXGA",
|
|
354
|
-
HDPlus = "HD+",
|
|
355
|
-
WXGAPlus = "WXGA++",
|
|
356
|
-
HDPlusPlus = "HD++",
|
|
357
|
-
UXGA = "UXGA",
|
|
358
|
-
FullHD = "FullHD",
|
|
359
|
-
WUXGA = "WUXGA",
|
|
360
|
-
TwoK = "2K",
|
|
361
|
-
QHD = "QHD",
|
|
362
|
-
WQXGA = "WQXGA",
|
|
363
|
-
FourK = "4K",
|
|
364
|
-
FourKCinema = "4KCinema",
|
|
365
|
-
FiveK = "5K",
|
|
366
|
-
EightK = "8K",
|
|
367
|
-
WHUXGA = "WHUXGA"
|
|
368
|
-
}
|
|
369
|
-
export type ResolutionInfo = {
|
|
370
|
-
ratioString: string;
|
|
371
|
-
ratioFloat: number;
|
|
372
|
-
resolutionDimensions: ResolutionDimensions;
|
|
373
|
-
resolutionLabel: ResolutionLabel;
|
|
374
|
-
};
|
|
375
338
|
export type CameraPath = {
|
|
376
339
|
projectExid: ProjectExid;
|
|
377
340
|
cameraExid: CameraExid;
|
|
@@ -379,6 +342,7 @@ export type CameraPath = {
|
|
|
379
342
|
export type CheckCameraPortPayload = {
|
|
380
343
|
address: string;
|
|
381
344
|
port: number;
|
|
345
|
+
open: boolean;
|
|
382
346
|
};
|
|
383
347
|
export type CameraCreateRequestPayload = {
|
|
384
348
|
status: CameraStatus;
|
|
@@ -563,3 +527,10 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
563
527
|
externalRsptPort: string;
|
|
564
528
|
nvrHttpPort: string;
|
|
565
529
|
};
|
|
530
|
+
export declare enum BimType {
|
|
531
|
+
TwoD = "2D",
|
|
532
|
+
Forge = "Forge"
|
|
533
|
+
}
|
|
534
|
+
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
535
|
+
cameraExid: CameraExid;
|
|
536
|
+
};
|
|
@@ -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
|
+
};
|