@evercam/api 1.0.0-beta-0.4 → 1.0.0-c4d7a9505
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 +2 -0
- package/dist/api/3dFirebaseApi.d.ts +1 -0
- package/dist/api/adminApi.d.ts +29 -23
- package/dist/api/aiApi.d.ts +59 -6
- package/dist/api/client/customErrors.d.ts +10 -0
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamApi.d.ts +44 -16
- package/dist/api/evercamLabsApi.d.ts +5 -10
- package/dist/api/ingestApi.d.ts +4 -1
- package/dist/api/weatherApi.d.ts +7 -23
- package/dist/index.js +769 -556
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/types/360.d.ts +6 -2
- package/dist/types/aconex.d.ts +1 -1
- package/dist/types/analytics.d.ts +44 -67
- package/dist/types/anpr.d.ts +10 -7
- package/dist/types/axios.d.ts +0 -1
- package/dist/types/camera.d.ts +9 -53
- package/dist/types/comments.d.ts +15 -8
- package/dist/types/connector.d.ts +6 -1
- package/dist/types/coolify.d.ts +18 -0
- package/dist/types/copilot.d.ts +9 -8
- package/dist/types/detections.d.ts +61 -7
- package/dist/types/index.d.ts +5 -2
- package/dist/types/kit.d.ts +35 -4
- package/dist/types/{sitePlanner.d.ts → planner.d.ts} +4 -2
- package/dist/types/procore.d.ts +146 -3
- package/dist/types/project.d.ts +8 -1
- package/dist/types/roi.d.ts +2 -1
- package/dist/types/shared.d.ts +1 -10
- package/dist/types/shares.d.ts +5 -1
- package/dist/types/siteAnalytics.d.ts +76 -20
- package/dist/types/streaming.d.ts +2 -23
- package/dist/types/systemCheck.d.ts +11 -0
- package/dist/types/tag.d.ts +12 -0
- package/dist/types/time.d.ts +2 -0
- package/dist/types/timelapse.d.ts +15 -0
- package/dist/types/weather.d.ts +6 -2
- package/dist/types/widget.d.ts +4 -4
- package/dist/types/xweather.d.ts +12 -0
- package/package.json +4 -6
- package/dist/types/devices.d.ts +0 -228
package/dist/types/360.d.ts
CHANGED
|
@@ -40,12 +40,16 @@ export declare enum _360AssetType {
|
|
|
40
40
|
MobilePhoto = "mobile_photos",
|
|
41
41
|
MobileAudio = "mobile_audios"
|
|
42
42
|
}
|
|
43
|
+
export declare enum _360Feature {
|
|
44
|
+
Minimap = "Minimap",
|
|
45
|
+
BIM = "BIM"
|
|
46
|
+
}
|
|
43
47
|
export declare enum _360IntergrationType {
|
|
48
|
+
Evercam = "Evercam",
|
|
44
49
|
Matterport = "Matterport",
|
|
45
50
|
OpenSpace = "Openspace",
|
|
46
51
|
HoloBuilder = "Holobuilder",
|
|
47
|
-
DroneDeploy = "Dronedeploy"
|
|
48
|
-
Evercam = "Evercam"
|
|
52
|
+
DroneDeploy = "Dronedeploy"
|
|
49
53
|
}
|
|
50
54
|
export type _360AssetsQueryParams = {
|
|
51
55
|
page: number;
|
package/dist/types/aconex.d.ts
CHANGED
|
@@ -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,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
48
42
|
ThreeSixtyInfo = "360Info",
|
|
49
43
|
BimCompareInfo = "BimCompareInfo",
|
|
50
44
|
WeatherReport = "WeatherReport",
|
|
51
|
-
|
|
45
|
+
PpeReport = "PpeReport"
|
|
52
46
|
}
|
|
53
47
|
export declare enum AnalyticsEvent {
|
|
54
48
|
PageView = "PageView",
|
|
@@ -64,14 +58,13 @@ export declare enum AnalyticsEvent {
|
|
|
64
58
|
Comment = "Comment-Toggle",
|
|
65
59
|
Compare = "Compare-Toggle",
|
|
66
60
|
Copilot = "Copilot-Toggle",
|
|
61
|
+
DownloadMediaOpen = "DownloadMedia-Open",
|
|
67
62
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
68
63
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
69
64
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
70
65
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
71
66
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
72
67
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
73
|
-
SettingsActivitiesFromDateSelect = "FromDateSelect",
|
|
74
|
-
SettingsActivitiesToDateSelect = "ToDateSelect",
|
|
75
68
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
76
69
|
SettingsConnectorsConnectToAconex = "ConnectToAconex",
|
|
77
70
|
SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
|
|
@@ -265,15 +258,16 @@ export declare enum AnalyticsEvent {
|
|
|
265
258
|
SharingTransferOwnership = "TransferOwnership",
|
|
266
259
|
SharingSortBy = "SortBy",
|
|
267
260
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
261
|
+
ThreeSixtyList = "360List",
|
|
268
262
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
269
263
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
270
264
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
271
265
|
ThreeSixtyCloseForgeBIM = "CloseForgeBIM",
|
|
272
|
-
|
|
266
|
+
ThreeSixtyDeleteComment = "DeleteComment",
|
|
273
267
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
274
|
-
|
|
268
|
+
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
275
269
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
276
|
-
|
|
270
|
+
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
277
271
|
ThreeSixtyLockCompare = "LockCompare",
|
|
278
272
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
279
273
|
ThreeSixtyMarkerThumbnailClicked = "MarkerThumbnailClicked",
|
|
@@ -282,14 +276,16 @@ export declare enum AnalyticsEvent {
|
|
|
282
276
|
ThreeSixtyOpenCompare = "OpenCompare",
|
|
283
277
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
284
278
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
285
|
-
|
|
286
|
-
|
|
279
|
+
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
280
|
+
ThreeSixtySaveComment = "SaveComment",
|
|
281
|
+
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
282
|
+
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
287
283
|
ThreeSixtyShareView = "ShareView",
|
|
288
|
-
|
|
284
|
+
ThreeSixtyCommentClicked = "CommentClicked",
|
|
289
285
|
ThreeSixtyToggleMarkersVisibility = "ToggleMarkersVisibility",
|
|
290
286
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
291
287
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
292
|
-
|
|
288
|
+
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
293
289
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
294
290
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
295
291
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -335,29 +331,29 @@ export declare enum AnalyticsEvent {
|
|
|
335
331
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
336
332
|
DroneZoomIn = "ZoomIn",
|
|
337
333
|
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
|
-
|
|
334
|
+
PlannerAddCameraClick = "AddCameraClick",
|
|
335
|
+
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
336
|
+
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
337
|
+
PlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
|
|
338
|
+
PlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
|
|
339
|
+
PlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
|
|
340
|
+
PlannerCameraMarkerEditName = "CameraMarker-EditName",
|
|
341
|
+
PlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
|
|
342
|
+
PlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
|
|
343
|
+
PlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
|
|
344
|
+
PlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
|
|
345
|
+
PlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
|
|
346
|
+
PlannerChangeLocation = "ChangeLocation",
|
|
347
|
+
PlannerOpen = "Open",
|
|
348
|
+
PlannerResetView = "ResetView",
|
|
349
|
+
PlannerSitePlansList = "SitePlansList",
|
|
350
|
+
PlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
351
|
+
PlannerToggleFullscreen = "ToggleFullscreen",
|
|
352
|
+
PlannerToggleMapStyle = "ToggleMapStyle",
|
|
353
|
+
PlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
354
|
+
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
355
|
+
PlannerZoomIn = "ZoomIn",
|
|
356
|
+
PlannerZoomOut = "ZoomOut",
|
|
361
357
|
MarkerClicked = "MarkerClicked",
|
|
362
358
|
TimelapseToggleHelpDialog = "ToggleHelpDialog",
|
|
363
359
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
@@ -442,40 +438,21 @@ export declare enum AnalyticsEvent {
|
|
|
442
438
|
MediaCopyMediaLink = "Media-CopyMediaLink",
|
|
443
439
|
MediaGoToMediaHub = "Media-GoBackToMediaHub",
|
|
444
440
|
GateReportCalendarTreeDateClick = "CalendarTree-DateClick",
|
|
445
|
-
GateReportExportPdf = "ExportPdf",
|
|
446
|
-
GateReportExportCsv = "ExportCsv",
|
|
447
441
|
GateReportFilterEntryExit = "FilterEntryExit",
|
|
448
|
-
GateReportFilterCameras = "FilterCameras",
|
|
449
442
|
GateReportFilterPlateNumber = "FilterPlateNumber",
|
|
450
443
|
GateReportFilterVehicleTypes = "FilterVehicleTypes",
|
|
451
444
|
GateReportOpenVehicleTypeInfo = "OpenVehicleTypeInfo",
|
|
452
445
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
453
446
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
447
|
+
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
454
448
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
455
449
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
456
450
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
457
451
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
458
452
|
HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
|
|
459
|
-
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
|
|
453
|
+
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
|
|
454
|
+
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
|
|
455
|
+
ExportPdf = "ExportPdf",
|
|
456
|
+
ExportCsv = "ExportCsv",
|
|
457
|
+
FilterCameras = "FilterCameras"
|
|
460
458
|
}
|
|
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
|
-
};
|
package/dist/types/anpr.d.ts
CHANGED
|
@@ -43,26 +43,29 @@ export declare enum AnprDirection {
|
|
|
43
43
|
export type AnprEvent = {
|
|
44
44
|
id: number;
|
|
45
45
|
plateNumber: string;
|
|
46
|
-
|
|
46
|
+
cameraExid: CameraExid;
|
|
47
47
|
picName: string;
|
|
48
|
-
|
|
48
|
+
eventTime: string;
|
|
49
49
|
insertedAt: string;
|
|
50
50
|
isDuplicate: boolean;
|
|
51
51
|
direction: AnprDirection;
|
|
52
52
|
updatedAt: string;
|
|
53
|
+
edited?: boolean;
|
|
53
54
|
isPlate: boolean;
|
|
54
55
|
isPostprocessed: boolean;
|
|
55
56
|
vehicleType?: GateReportVehicleType;
|
|
56
57
|
contextVehicleType?: GateReportVehicleType;
|
|
57
|
-
anprVehicleType
|
|
58
|
-
anprVehicleModel
|
|
59
|
-
anprVehicleMake
|
|
60
|
-
anprVehicleColor
|
|
61
|
-
anprVehicleSpeed
|
|
58
|
+
anprVehicleType?: string;
|
|
59
|
+
anprVehicleModel?: string;
|
|
60
|
+
anprVehicleMake?: string;
|
|
61
|
+
anprVehicleColor?: string;
|
|
62
|
+
anprVehicleSpeed?: number;
|
|
62
63
|
anprSnapshotLink: string;
|
|
63
64
|
contextSnapshotLink: string;
|
|
65
|
+
mainSnapshotLink: string;
|
|
64
66
|
contextCamera: string;
|
|
65
67
|
votedVehicleType: GateReportVehicleType | string;
|
|
68
|
+
roiId?: number;
|
|
66
69
|
metadata_: {
|
|
67
70
|
evercamMetadata?: {
|
|
68
71
|
anpr?: {
|
package/dist/types/axios.d.ts
CHANGED
package/dist/types/camera.d.ts
CHANGED
|
@@ -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;
|
|
@@ -82,6 +82,7 @@ export type Camera = {
|
|
|
82
82
|
timezone: string;
|
|
83
83
|
updatedAt: DateTime_Z_micros;
|
|
84
84
|
vendorName: string;
|
|
85
|
+
isAccessRestricted?: boolean;
|
|
85
86
|
};
|
|
86
87
|
export type AdminCamera = {
|
|
87
88
|
cameraHost: string;
|
|
@@ -177,6 +178,8 @@ export declare enum CameraStatus {
|
|
|
177
178
|
export declare enum CameraFeatureFlag {
|
|
178
179
|
EdgeVideo = "edge_video",
|
|
179
180
|
BimCompare = "bim_compare",
|
|
181
|
+
TwoDBimCompare = "2d_bim_compare",
|
|
182
|
+
ForgeBIMCompare = "forge_bim_compare",
|
|
180
183
|
GateReport = "gate_report",
|
|
181
184
|
VideoStream = "video_stream",
|
|
182
185
|
WebRTC = "webrtc",
|
|
@@ -185,7 +188,8 @@ export declare enum CameraFeatureFlag {
|
|
|
185
188
|
PTZ = "ptz",
|
|
186
189
|
ObjectDetection = "object_detection",
|
|
187
190
|
Segmentation = "segmentation",
|
|
188
|
-
SegmentationAutoLabelling = "segmentation_auto_labelling"
|
|
191
|
+
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
192
|
+
PpeMonitoring = "ppe_monitoring"
|
|
189
193
|
}
|
|
190
194
|
export type CameraLogsRequestPayload = {
|
|
191
195
|
limit: number;
|
|
@@ -227,6 +231,8 @@ export type CameraUpdateRequestPayload = {
|
|
|
227
231
|
heading?: number;
|
|
228
232
|
fovAngle?: number;
|
|
229
233
|
fovRadius?: number;
|
|
234
|
+
featureFlags: CameraFeatureFlag[];
|
|
235
|
+
isAccessRestricted?: boolean;
|
|
230
236
|
};
|
|
231
237
|
export type CamerasResponsePayload = {
|
|
232
238
|
cameras?: Camera[];
|
|
@@ -320,56 +326,6 @@ export type Hdd = {
|
|
|
320
326
|
errorStatus: string;
|
|
321
327
|
canExpand: boolean;
|
|
322
328
|
};
|
|
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
329
|
export type CameraPath = {
|
|
374
330
|
projectExid: ProjectExid;
|
|
375
331
|
cameraExid: CameraExid;
|
package/dist/types/comments.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { CameraExid, DateType, ProjectExid } from "@/types";
|
|
2
|
+
export declare enum CommentsScope {
|
|
3
|
+
Recordings = "recordings",
|
|
4
|
+
ThreeSixty = "360"
|
|
5
|
+
}
|
|
2
6
|
export type CommentsRequestPayload = {
|
|
3
7
|
cameraExid: CameraExid;
|
|
4
8
|
fromDate: string;
|
|
5
9
|
toDate: string;
|
|
10
|
+
scope: CommentsScope;
|
|
6
11
|
page?: number;
|
|
7
12
|
limit?: number;
|
|
8
13
|
};
|
|
9
|
-
export type CommentPosition = {
|
|
10
|
-
coordinates: Array<number>;
|
|
11
|
-
type: string;
|
|
12
|
-
};
|
|
13
14
|
export type Comment = {
|
|
14
15
|
fromDate?: string;
|
|
15
16
|
toDate?: string;
|
|
@@ -22,15 +23,21 @@ export type Comment = {
|
|
|
22
23
|
createdAt?: string;
|
|
23
24
|
creatorEmail?: string;
|
|
24
25
|
creatorName?: string;
|
|
25
|
-
position2d
|
|
26
|
+
position2d?: [number, number];
|
|
27
|
+
position3d?: [number, number, number];
|
|
28
|
+
context?: Record<string, unknown>;
|
|
26
29
|
canDelete?: boolean;
|
|
30
|
+
archivedAt?: string;
|
|
27
31
|
};
|
|
28
32
|
export type CommentCreationRequestPayload = {
|
|
29
33
|
fromDate?: DateType;
|
|
30
34
|
toDate?: DateType;
|
|
31
|
-
timestamp
|
|
35
|
+
timestamp?: DateType;
|
|
36
|
+
scope?: CommentsScope;
|
|
32
37
|
projectExid: ProjectExid;
|
|
33
|
-
cameraExid
|
|
38
|
+
cameraExid?: CameraExid;
|
|
34
39
|
content: string;
|
|
35
|
-
position2d
|
|
40
|
+
position2d?: [number, number];
|
|
41
|
+
position3d?: [number, number, number];
|
|
42
|
+
context?: Record<string, unknown>;
|
|
36
43
|
};
|
|
@@ -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
|
+
};
|
package/dist/types/copilot.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { AnalyticsEventPageId, CameraExid, CameraFeatureFlag, CameraStatus, ProjectExid, ProjectFeatureFlag, ProjectStatus } from "@/types";
|
|
2
2
|
export declare enum CopilotMessageAuthor {
|
|
3
3
|
Copilot = "copilot",
|
|
4
|
-
User = "user"
|
|
4
|
+
User = "user",
|
|
5
|
+
System = "system"
|
|
5
6
|
}
|
|
6
7
|
export declare enum CopilotMessageType {
|
|
7
8
|
Text = "text",
|
|
@@ -33,12 +34,13 @@ export declare enum CopilotMissingFieldsLabels {
|
|
|
33
34
|
FromDate = "Start date",
|
|
34
35
|
ToDate = "End date"
|
|
35
36
|
}
|
|
36
|
-
export type CopilotMissingField = {
|
|
37
|
+
export type CopilotMissingField<T = any> = {
|
|
37
38
|
name: string;
|
|
38
39
|
label: string;
|
|
39
40
|
value: any;
|
|
40
41
|
type: string;
|
|
41
42
|
toolId: string;
|
|
43
|
+
error?: T;
|
|
42
44
|
};
|
|
43
45
|
export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
|
|
44
46
|
export type UserConversations = CopilotConversation & {
|
|
@@ -57,7 +59,8 @@ export declare enum CopilotSocketEvent {
|
|
|
57
59
|
ChatError = "chat:chatError",
|
|
58
60
|
MissingFields = "chat:missingFields",
|
|
59
61
|
MissingFieldsCompleted = "chat:missingFields:completed",
|
|
60
|
-
SystemToolCallResponse = "system:toolCall:response"
|
|
62
|
+
SystemToolCallResponse = "system:toolCall:response",
|
|
63
|
+
ChangeProvider = "chat:changeProvider"
|
|
61
64
|
}
|
|
62
65
|
export type CopilotConversation = {
|
|
63
66
|
id: number;
|
|
@@ -118,9 +121,6 @@ export type CopilotProject = {
|
|
|
118
121
|
featureFlags?: ProjectFeatureFlag[];
|
|
119
122
|
cameras?: CopilotCamera[];
|
|
120
123
|
};
|
|
121
|
-
export type CopilotConversationContext = {
|
|
122
|
-
availableProjects: CopilotProject[];
|
|
123
|
-
};
|
|
124
124
|
export type CopilotMessageContext = {
|
|
125
125
|
pageId?: AnalyticsEventPageId;
|
|
126
126
|
selectedCamera?: CopilotCamera;
|
|
@@ -129,8 +129,8 @@ export type CopilotMessageContext = {
|
|
|
129
129
|
export type CopilotMessageStep = {
|
|
130
130
|
args: string[];
|
|
131
131
|
depth: number;
|
|
132
|
-
id
|
|
133
|
-
message_id
|
|
132
|
+
id?: number;
|
|
133
|
+
message_id?: number;
|
|
134
134
|
step: CopilotStepId;
|
|
135
135
|
timestamp: string;
|
|
136
136
|
};
|
|
@@ -154,3 +154,4 @@ export declare enum CopilotMissingFieldType {
|
|
|
154
154
|
String = "string",
|
|
155
155
|
Number = "number"
|
|
156
156
|
}
|
|
157
|
+
export type CopilotCompletedFields = Record<string, unknown>;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
import { type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
-
export type
|
|
3
|
-
cameraExid: CameraExid;
|
|
1
|
+
import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
+
export type BaseDetectionsFilters = {
|
|
4
3
|
fromDate: string | Date;
|
|
5
4
|
toDate: string | Date;
|
|
6
5
|
labels: DetectionLabel | DetectionLabel[];
|
|
7
6
|
trackId?: number;
|
|
8
7
|
};
|
|
8
|
+
export type DetectionsFilters = BaseDetectionsFilters & {
|
|
9
|
+
projectExid: ProjectExid;
|
|
10
|
+
cameraExids?: CameraExid[];
|
|
11
|
+
};
|
|
12
|
+
export type SegmentsFilters = BaseDetectionsFilters & {
|
|
13
|
+
cameraExid: CameraExid;
|
|
14
|
+
};
|
|
9
15
|
export type BBox = number[];
|
|
10
16
|
export type SelectedObjectPath = {
|
|
11
17
|
label: string;
|
|
@@ -16,9 +22,32 @@ export type SelectedObjectPath = {
|
|
|
16
22
|
bbox: BBox;
|
|
17
23
|
}>;
|
|
18
24
|
};
|
|
25
|
+
export type Label = DetectionLabel | PpeLabel;
|
|
19
26
|
export type Detection = {
|
|
20
27
|
bbox: BBox;
|
|
21
28
|
timestamp: string | Date;
|
|
29
|
+
label: DetectionLabel;
|
|
30
|
+
confidenceScore: number;
|
|
31
|
+
};
|
|
32
|
+
export type DetectionsGroup = {
|
|
33
|
+
timestamp: DateType;
|
|
34
|
+
detections: Detection[];
|
|
35
|
+
};
|
|
36
|
+
export type DetectionsCounts = {
|
|
37
|
+
timestamps: number;
|
|
38
|
+
} & {
|
|
39
|
+
[label in Label]: number;
|
|
40
|
+
};
|
|
41
|
+
export type DetectionsCountsByPeriod = {
|
|
42
|
+
days: Array<{
|
|
43
|
+
day: string;
|
|
44
|
+
} & DetectionsCounts>;
|
|
45
|
+
months: Array<{
|
|
46
|
+
month: string;
|
|
47
|
+
} & DetectionsCounts>;
|
|
48
|
+
years: Array<{
|
|
49
|
+
year: string;
|
|
50
|
+
} & DetectionsCounts>;
|
|
22
51
|
};
|
|
23
52
|
export type Tracking = {
|
|
24
53
|
trackId: number;
|
|
@@ -32,9 +61,12 @@ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
|
|
|
32
61
|
export type SegmentPolygonCoords = number[][];
|
|
33
62
|
export type Segment = {
|
|
34
63
|
id: number;
|
|
35
|
-
mask
|
|
64
|
+
mask?: SegmentPolygonCoords;
|
|
36
65
|
label: string;
|
|
37
66
|
timestamp: string | Date;
|
|
67
|
+
cameraExid?: CameraExid;
|
|
68
|
+
bbox?: BoundingBox;
|
|
69
|
+
area?: number;
|
|
38
70
|
};
|
|
39
71
|
export type SegmentSimilarityResult = {
|
|
40
72
|
distance: number;
|
|
@@ -52,14 +84,20 @@ export type SegmentsSimilaritySearchParams = {
|
|
|
52
84
|
fromDate: string;
|
|
53
85
|
toDate: string;
|
|
54
86
|
};
|
|
55
|
-
export type
|
|
56
|
-
cameraExid: CameraExid;
|
|
87
|
+
export type BaseCountsParams = {
|
|
57
88
|
fromDate: string | Date;
|
|
58
89
|
toDate: string | Date;
|
|
59
|
-
precision: TimelinePrecision;
|
|
90
|
+
precision: keyof typeof TimelinePrecision;
|
|
60
91
|
trackId: number;
|
|
61
92
|
labels: DetectionLabel | DetectionLabel[];
|
|
62
93
|
};
|
|
94
|
+
export type DetectionsCountsParams = BaseCountsParams & {
|
|
95
|
+
projectExid: ProjectExid;
|
|
96
|
+
cameraExids?: CameraExid[];
|
|
97
|
+
};
|
|
98
|
+
export type SegmentsCountsParams = BaseCountsParams & {
|
|
99
|
+
cameraExid: CameraExid;
|
|
100
|
+
};
|
|
63
101
|
export type CountByPeriod = {
|
|
64
102
|
date: string | Date;
|
|
65
103
|
counts: Record<string, number>;
|
|
@@ -71,3 +109,19 @@ export type LuminanceReading = {
|
|
|
71
109
|
luminanceDelta: number;
|
|
72
110
|
luminanceAverage: number;
|
|
73
111
|
};
|
|
112
|
+
export declare enum PpeLabel {
|
|
113
|
+
Helmet = "helmet",
|
|
114
|
+
HighVisibilityVest = "high-visibility-vest",
|
|
115
|
+
SafetyGlasses = "safety-glasses",
|
|
116
|
+
Gloves = "gloves",
|
|
117
|
+
Person = "person",
|
|
118
|
+
Man = "man",
|
|
119
|
+
Woman = "woman"
|
|
120
|
+
}
|
|
121
|
+
export declare enum DetectionModel {
|
|
122
|
+
Yolov10 = 1,
|
|
123
|
+
Yolov11 = 2,
|
|
124
|
+
Yolov11_2 = 3,
|
|
125
|
+
GroundingDino = 4,
|
|
126
|
+
Owlv2 = 5
|
|
127
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from "./camera";
|
|
|
9
9
|
export * from "./compare";
|
|
10
10
|
export * from "./copilot";
|
|
11
11
|
export * from "./credentials";
|
|
12
|
-
export * from "./devices";
|
|
13
12
|
export * from "./drone";
|
|
14
13
|
export * from "./errors";
|
|
15
14
|
export * from "./gateReport";
|
|
@@ -28,7 +27,8 @@ export * from "./routeParams";
|
|
|
28
27
|
export * from "./router";
|
|
29
28
|
export * from "./shares";
|
|
30
29
|
export * from "./sim";
|
|
31
|
-
export * from "./
|
|
30
|
+
export * from "./systemCheck";
|
|
31
|
+
export * from "./planner";
|
|
32
32
|
export * from "./storageServers";
|
|
33
33
|
export * from "./streaming";
|
|
34
34
|
export * from "./time";
|
|
@@ -50,3 +50,6 @@ export * from "./siteAnalytics";
|
|
|
50
50
|
export * from "./widget";
|
|
51
51
|
export * from "./countries";
|
|
52
52
|
export * from "./automation";
|
|
53
|
+
export * from "./coolify";
|
|
54
|
+
export * from "./tag";
|
|
55
|
+
export * from "./xweather";
|