@evercam/api 1.0.0-dc478bb9d → 1.0.0-dc72b9405
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 +48 -23
- package/dist/api/aiApi.d.ts +53 -1
- package/dist/api/client/customErrors.d.ts +10 -0
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamApi.d.ts +45 -17
- package/dist/api/evercamLabsApi.d.ts +5 -14
- package/dist/api/ingestApi.d.ts +4 -1
- package/dist/api/ptzApi.d.ts +1 -1
- package/dist/api/weatherApi.d.ts +7 -23
- package/dist/index.js +965 -722
- 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 +2 -2
- package/dist/types/aconex.d.ts +1 -1
- package/dist/types/analytics.d.ts +43 -68
- 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 +78 -13
- package/dist/types/gateReport.d.ts +50 -1
- package/dist/types/hdd.d.ts +63 -0
- package/dist/types/index.d.ts +6 -2
- package/dist/types/kit.d.ts +37 -4
- package/dist/types/nvr.d.ts +2 -1
- package/dist/types/{sitePlanner.d.ts → planner.d.ts} +6 -1
- 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 +2 -11
- package/dist/types/shares.d.ts +5 -1
- package/dist/types/siteAnalytics.d.ts +137 -1
- 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 +10 -5
- package/dist/types/xweather.d.ts +12 -0
- package/package.json +5 -5
- package/dist/types/devices.d.ts +0 -228
package/dist/types/360.d.ts
CHANGED
|
@@ -41,11 +41,11 @@ export declare enum _360AssetType {
|
|
|
41
41
|
MobileAudio = "mobile_audios"
|
|
42
42
|
}
|
|
43
43
|
export declare enum _360IntergrationType {
|
|
44
|
+
Evercam = "Evercam",
|
|
44
45
|
Matterport = "Matterport",
|
|
45
46
|
OpenSpace = "Openspace",
|
|
46
47
|
HoloBuilder = "Holobuilder",
|
|
47
|
-
DroneDeploy = "Dronedeploy"
|
|
48
|
-
Evercam = "Evercam"
|
|
48
|
+
DroneDeploy = "Dronedeploy"
|
|
49
49
|
}
|
|
50
50
|
export type _360AssetsQueryParams = {
|
|
51
51
|
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",
|
|
@@ -269,11 +262,11 @@ export declare enum AnalyticsEvent {
|
|
|
269
262
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
270
263
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
271
264
|
ThreeSixtyCloseForgeBIM = "CloseForgeBIM",
|
|
272
|
-
|
|
265
|
+
ThreeSixtyDeleteComment = "DeleteComment",
|
|
273
266
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
274
|
-
|
|
267
|
+
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
275
268
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
276
|
-
|
|
269
|
+
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
277
270
|
ThreeSixtyLockCompare = "LockCompare",
|
|
278
271
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
279
272
|
ThreeSixtyMarkerThumbnailClicked = "MarkerThumbnailClicked",
|
|
@@ -282,14 +275,16 @@ export declare enum AnalyticsEvent {
|
|
|
282
275
|
ThreeSixtyOpenCompare = "OpenCompare",
|
|
283
276
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
284
277
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
285
|
-
|
|
286
|
-
|
|
278
|
+
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
279
|
+
ThreeSixtySaveComment = "SaveComment",
|
|
280
|
+
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
281
|
+
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
287
282
|
ThreeSixtyShareView = "ShareView",
|
|
288
|
-
|
|
283
|
+
ThreeSixtyCommentClicked = "CommentClicked",
|
|
289
284
|
ThreeSixtyToggleMarkersVisibility = "ToggleMarkersVisibility",
|
|
290
285
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
291
286
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
292
|
-
|
|
287
|
+
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
293
288
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
294
289
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
295
290
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -335,30 +330,29 @@ export declare enum AnalyticsEvent {
|
|
|
335
330
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
336
331
|
DroneZoomIn = "ZoomIn",
|
|
337
332
|
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
|
-
|
|
361
|
-
SitePlannerZoomOut = "ZoomOut",
|
|
333
|
+
PlannerAddCameraClick = "AddCameraClick",
|
|
334
|
+
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
335
|
+
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
336
|
+
PlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
|
|
337
|
+
PlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
|
|
338
|
+
PlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
|
|
339
|
+
PlannerCameraMarkerEditName = "CameraMarker-EditName",
|
|
340
|
+
PlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
|
|
341
|
+
PlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
|
|
342
|
+
PlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
|
|
343
|
+
PlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
|
|
344
|
+
PlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
|
|
345
|
+
PlannerChangeLocation = "ChangeLocation",
|
|
346
|
+
PlannerOpen = "Open",
|
|
347
|
+
PlannerResetView = "ResetView",
|
|
348
|
+
PlannerSitePlansList = "SitePlansList",
|
|
349
|
+
PlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
350
|
+
PlannerToggleFullscreen = "ToggleFullscreen",
|
|
351
|
+
PlannerToggleMapStyle = "ToggleMapStyle",
|
|
352
|
+
PlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
353
|
+
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
354
|
+
PlannerZoomIn = "ZoomIn",
|
|
355
|
+
PlannerZoomOut = "ZoomOut",
|
|
362
356
|
MarkerClicked = "MarkerClicked",
|
|
363
357
|
TimelapseToggleHelpDialog = "ToggleHelpDialog",
|
|
364
358
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
@@ -443,40 +437,21 @@ export declare enum AnalyticsEvent {
|
|
|
443
437
|
MediaCopyMediaLink = "Media-CopyMediaLink",
|
|
444
438
|
MediaGoToMediaHub = "Media-GoBackToMediaHub",
|
|
445
439
|
GateReportCalendarTreeDateClick = "CalendarTree-DateClick",
|
|
446
|
-
GateReportExportPdf = "ExportPdf",
|
|
447
|
-
GateReportExportCsv = "ExportCsv",
|
|
448
440
|
GateReportFilterEntryExit = "FilterEntryExit",
|
|
449
|
-
GateReportFilterCameras = "FilterCameras",
|
|
450
441
|
GateReportFilterPlateNumber = "FilterPlateNumber",
|
|
451
442
|
GateReportFilterVehicleTypes = "FilterVehicleTypes",
|
|
452
443
|
GateReportOpenVehicleTypeInfo = "OpenVehicleTypeInfo",
|
|
453
444
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
454
445
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
446
|
+
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
455
447
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
456
448
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
457
449
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
458
450
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
459
451
|
HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
|
|
460
|
-
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
|
|
452
|
+
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
|
|
453
|
+
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink",
|
|
454
|
+
ExportPdf = "ExportPdf",
|
|
455
|
+
ExportCsv = "ExportCsv",
|
|
456
|
+
FilterCameras = "FilterCameras"
|
|
461
457
|
}
|
|
462
|
-
export type ProjectPAStatsRequestPayload = {
|
|
463
|
-
period: "day" | "week" | "month";
|
|
464
|
-
startDate?: string;
|
|
465
|
-
endDate?: string;
|
|
466
|
-
};
|
|
467
|
-
export type ProjectPAStatsResponsePayload = {
|
|
468
|
-
period: DateType;
|
|
469
|
-
name: string;
|
|
470
|
-
count: number | string;
|
|
471
|
-
};
|
|
472
|
-
export type ActiveUsersStatsRequestPayload = {
|
|
473
|
-
companyId: number;
|
|
474
|
-
from: string;
|
|
475
|
-
to: string;
|
|
476
|
-
};
|
|
477
|
-
export type ActiveUserStat = {
|
|
478
|
-
date: string;
|
|
479
|
-
dau: number;
|
|
480
|
-
wau: number;
|
|
481
|
-
mau: number;
|
|
482
|
-
};
|
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,14 +1,53 @@
|
|
|
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[];
|
|
6
|
+
trackId?: number;
|
|
7
|
+
};
|
|
8
|
+
export type DetectionsFilters = BaseDetectionsFilters & {
|
|
9
|
+
projectExid: ProjectExid;
|
|
10
|
+
cameraExids?: CameraExid[];
|
|
11
|
+
};
|
|
12
|
+
export type SegmentsFilters = BaseDetectionsFilters & {
|
|
13
|
+
cameraExid: CameraExid;
|
|
7
14
|
};
|
|
8
|
-
export type BBox = [
|
|
15
|
+
export type BBox = number[];
|
|
16
|
+
export type SelectedObjectPath = {
|
|
17
|
+
label: string;
|
|
18
|
+
trackId: string;
|
|
19
|
+
paths: Array<{
|
|
20
|
+
timestamp: number;
|
|
21
|
+
center: [number, number];
|
|
22
|
+
bbox: BBox;
|
|
23
|
+
}>;
|
|
24
|
+
};
|
|
25
|
+
export type Label = DetectionLabel | PpeLabel;
|
|
9
26
|
export type Detection = {
|
|
10
27
|
bbox: BBox;
|
|
11
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>;
|
|
12
51
|
};
|
|
13
52
|
export type Tracking = {
|
|
14
53
|
trackId: number;
|
|
@@ -22,9 +61,12 @@ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
|
|
|
22
61
|
export type SegmentPolygonCoords = number[][];
|
|
23
62
|
export type Segment = {
|
|
24
63
|
id: number;
|
|
25
|
-
mask
|
|
64
|
+
mask?: SegmentPolygonCoords;
|
|
26
65
|
label: string;
|
|
27
66
|
timestamp: string | Date;
|
|
67
|
+
cameraExid?: CameraExid;
|
|
68
|
+
bbox?: BoundingBox;
|
|
69
|
+
area?: number;
|
|
28
70
|
};
|
|
29
71
|
export type SegmentSimilarityResult = {
|
|
30
72
|
distance: number;
|
|
@@ -37,17 +79,24 @@ export type SegmentsSimilaritySearchResult = {
|
|
|
37
79
|
};
|
|
38
80
|
export type SegmentsSimilaritySearchParams = {
|
|
39
81
|
cameraExid: CameraExid;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
areaTolerance: number;
|
|
82
|
+
referenceId: string;
|
|
83
|
+
iouThreshold?: number;
|
|
84
|
+
fromDate: string;
|
|
85
|
+
toDate: string;
|
|
45
86
|
};
|
|
46
|
-
export type
|
|
47
|
-
cameraExid: CameraExid;
|
|
87
|
+
export type BaseCountsParams = {
|
|
48
88
|
fromDate: string | Date;
|
|
49
89
|
toDate: string | Date;
|
|
50
|
-
precision: TimelinePrecision;
|
|
90
|
+
precision: keyof typeof TimelinePrecision;
|
|
91
|
+
trackId: number;
|
|
92
|
+
labels: DetectionLabel | DetectionLabel[];
|
|
93
|
+
};
|
|
94
|
+
export type DetectionsCountsParams = BaseCountsParams & {
|
|
95
|
+
projectExid: ProjectExid;
|
|
96
|
+
cameraExids?: CameraExid[];
|
|
97
|
+
};
|
|
98
|
+
export type SegmentsCountsParams = BaseCountsParams & {
|
|
99
|
+
cameraExid: CameraExid;
|
|
51
100
|
};
|
|
52
101
|
export type CountByPeriod = {
|
|
53
102
|
date: string | Date;
|
|
@@ -60,3 +109,19 @@ export type LuminanceReading = {
|
|
|
60
109
|
luminanceDelta: number;
|
|
61
110
|
luminanceAverage: number;
|
|
62
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
|
+
}
|