@evercam/api 1.0.0-779bcb558 → 1.0.0-805a76c03
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 +49 -1
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamApi.d.ts +45 -17
- package/dist/api/evercamLabsApi.d.ts +4 -13
- 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 +932 -727
- 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 +41 -67
- package/dist/types/anpr.d.ts +10 -7
- package/dist/types/axios.d.ts +0 -1
- package/dist/types/camera.d.ts +7 -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 +11 -9
- package/dist/types/detections.d.ts +23 -9
- 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 +43 -10
- 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 +5 -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 +119 -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/timelapse.d.ts +15 -0
- package/dist/types/weather.d.ts +6 -2
- package/dist/types/widget.d.ts +11 -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",
|
|
@@ -47,8 +41,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
47
41
|
DroneInfo = "DroneInfo",
|
|
48
42
|
ThreeSixtyInfo = "360Info",
|
|
49
43
|
BimCompareInfo = "BimCompareInfo",
|
|
50
|
-
WeatherReport = "WeatherReport"
|
|
51
|
-
EvercamGoInfo = "EvercamGoInfo"
|
|
44
|
+
WeatherReport = "WeatherReport"
|
|
52
45
|
}
|
|
53
46
|
export declare enum AnalyticsEvent {
|
|
54
47
|
PageView = "PageView",
|
|
@@ -64,14 +57,13 @@ export declare enum AnalyticsEvent {
|
|
|
64
57
|
Comment = "Comment-Toggle",
|
|
65
58
|
Compare = "Compare-Toggle",
|
|
66
59
|
Copilot = "Copilot-Toggle",
|
|
60
|
+
DownloadMediaOpen = "DownloadMedia-Open",
|
|
67
61
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
68
62
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
69
63
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
70
64
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
71
65
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
72
66
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
73
|
-
SettingsActivitiesFromDateSelect = "FromDateSelect",
|
|
74
|
-
SettingsActivitiesToDateSelect = "ToDateSelect",
|
|
75
67
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
76
68
|
SettingsConnectorsConnectToAconex = "ConnectToAconex",
|
|
77
69
|
SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
|
|
@@ -99,7 +91,8 @@ export declare enum AnalyticsEvent {
|
|
|
99
91
|
WidgetsSettingRefreshRate = "EditRefreshRate",
|
|
100
92
|
WidgetsSettingRestrictRecentImagesInput = "EditRestrictRecentImagesInput",
|
|
101
93
|
WidgetsSettingToggleBIMCompareDarkMode = "ToggleBIMDarkMode",
|
|
102
|
-
WidgetsSettingToggleBIMCompareTimeLine = "
|
|
94
|
+
WidgetsSettingToggleBIMCompareTimeLine = "ToggleBIMTimeline",
|
|
95
|
+
WidgetsSettingToggleBIMCompareCalendar = "ToggleBIMCalendar",
|
|
103
96
|
WidgetsSettingToggleDownload = "ToggleDownload",
|
|
104
97
|
WidgetsSettingToggleFullScreen = "ToggleFullScreen",
|
|
105
98
|
WidgetsSettingTogglePlayPause = "TogglePlayPause",
|
|
@@ -268,11 +261,11 @@ export declare enum AnalyticsEvent {
|
|
|
268
261
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
269
262
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
270
263
|
ThreeSixtyCloseForgeBIM = "CloseForgeBIM",
|
|
271
|
-
|
|
264
|
+
ThreeSixtyDeleteComment = "DeleteComment",
|
|
272
265
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
273
|
-
|
|
266
|
+
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
274
267
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
275
|
-
|
|
268
|
+
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
276
269
|
ThreeSixtyLockCompare = "LockCompare",
|
|
277
270
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
278
271
|
ThreeSixtyMarkerThumbnailClicked = "MarkerThumbnailClicked",
|
|
@@ -281,14 +274,16 @@ export declare enum AnalyticsEvent {
|
|
|
281
274
|
ThreeSixtyOpenCompare = "OpenCompare",
|
|
282
275
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
283
276
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
284
|
-
|
|
285
|
-
|
|
277
|
+
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
278
|
+
ThreeSixtySaveComment = "SaveComment",
|
|
279
|
+
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
280
|
+
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
286
281
|
ThreeSixtyShareView = "ShareView",
|
|
287
|
-
|
|
282
|
+
ThreeSixtyCommentClicked = "CommentClicked",
|
|
288
283
|
ThreeSixtyToggleMarkersVisibility = "ToggleMarkersVisibility",
|
|
289
284
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
290
285
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
291
|
-
|
|
286
|
+
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
292
287
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
293
288
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
294
289
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -334,30 +329,29 @@ export declare enum AnalyticsEvent {
|
|
|
334
329
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
335
330
|
DroneZoomIn = "ZoomIn",
|
|
336
331
|
DroneZoomOut = "ZoomOut",
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
SitePlannerZoomOut = "ZoomOut",
|
|
332
|
+
PlannerAddCameraClick = "AddCameraClick",
|
|
333
|
+
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
334
|
+
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
335
|
+
PlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
|
|
336
|
+
PlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
|
|
337
|
+
PlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
|
|
338
|
+
PlannerCameraMarkerEditName = "CameraMarker-EditName",
|
|
339
|
+
PlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
|
|
340
|
+
PlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
|
|
341
|
+
PlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
|
|
342
|
+
PlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
|
|
343
|
+
PlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
|
|
344
|
+
PlannerChangeLocation = "ChangeLocation",
|
|
345
|
+
PlannerOpen = "Open",
|
|
346
|
+
PlannerResetView = "ResetView",
|
|
347
|
+
PlannerSitePlansList = "SitePlansList",
|
|
348
|
+
PlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
349
|
+
PlannerToggleFullscreen = "ToggleFullscreen",
|
|
350
|
+
PlannerToggleMapStyle = "ToggleMapStyle",
|
|
351
|
+
PlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
352
|
+
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
353
|
+
PlannerZoomIn = "ZoomIn",
|
|
354
|
+
PlannerZoomOut = "ZoomOut",
|
|
361
355
|
MarkerClicked = "MarkerClicked",
|
|
362
356
|
TimelapseToggleHelpDialog = "ToggleHelpDialog",
|
|
363
357
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
@@ -456,26 +450,6 @@ export declare enum AnalyticsEvent {
|
|
|
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"
|
|
460
455
|
}
|
|
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;
|
|
@@ -185,7 +186,8 @@ export declare enum CameraFeatureFlag {
|
|
|
185
186
|
PTZ = "ptz",
|
|
186
187
|
ObjectDetection = "object_detection",
|
|
187
188
|
Segmentation = "segmentation",
|
|
188
|
-
SegmentationAutoLabelling = "segmentation_auto_labelling"
|
|
189
|
+
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
190
|
+
PpeMonitoring = "ppe_monitoring"
|
|
189
191
|
}
|
|
190
192
|
export type CameraLogsRequestPayload = {
|
|
191
193
|
limit: number;
|
|
@@ -227,6 +229,8 @@ export type CameraUpdateRequestPayload = {
|
|
|
227
229
|
heading?: number;
|
|
228
230
|
fovAngle?: number;
|
|
229
231
|
fovRadius?: number;
|
|
232
|
+
featureFlags: CameraFeatureFlag[];
|
|
233
|
+
isAccessRestricted?: boolean;
|
|
230
234
|
};
|
|
231
235
|
export type CamerasResponsePayload = {
|
|
232
236
|
cameras?: Camera[];
|
|
@@ -320,56 +324,6 @@ export type Hdd = {
|
|
|
320
324
|
errorStatus: string;
|
|
321
325
|
canExpand: boolean;
|
|
322
326
|
};
|
|
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
327
|
export type CameraPath = {
|
|
374
328
|
projectExid: ProjectExid;
|
|
375
329
|
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;
|
|
@@ -79,7 +82,8 @@ export declare enum CopilotSuggestion {
|
|
|
79
82
|
GateReport = "gate_report",
|
|
80
83
|
Weather = "weather",
|
|
81
84
|
Clip = "clip",
|
|
82
|
-
Timelapse = "timelapse"
|
|
85
|
+
Timelapse = "timelapse",
|
|
86
|
+
Chart = "chart"
|
|
83
87
|
}
|
|
84
88
|
export declare enum CopilotChatProvider {
|
|
85
89
|
Gemini = "gemini",
|
|
@@ -117,9 +121,6 @@ export type CopilotProject = {
|
|
|
117
121
|
featureFlags?: ProjectFeatureFlag[];
|
|
118
122
|
cameras?: CopilotCamera[];
|
|
119
123
|
};
|
|
120
|
-
export type CopilotConversationContext = {
|
|
121
|
-
availableProjects: CopilotProject[];
|
|
122
|
-
};
|
|
123
124
|
export type CopilotMessageContext = {
|
|
124
125
|
pageId?: AnalyticsEventPageId;
|
|
125
126
|
selectedCamera?: CopilotCamera;
|
|
@@ -128,8 +129,8 @@ export type CopilotMessageContext = {
|
|
|
128
129
|
export type CopilotMessageStep = {
|
|
129
130
|
args: string[];
|
|
130
131
|
depth: number;
|
|
131
|
-
id
|
|
132
|
-
message_id
|
|
132
|
+
id?: number;
|
|
133
|
+
message_id?: number;
|
|
133
134
|
step: CopilotStepId;
|
|
134
135
|
timestamp: string;
|
|
135
136
|
};
|
|
@@ -153,3 +154,4 @@ export declare enum CopilotMissingFieldType {
|
|
|
153
154
|
String = "string",
|
|
154
155
|
Number = "number"
|
|
155
156
|
}
|
|
157
|
+
export type CopilotCompletedFields = Record<string, unknown>;
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import { type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
1
|
+
import { type BoundingBox, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
2
|
export type DetectionsFilters = {
|
|
3
3
|
cameraExid: CameraExid;
|
|
4
4
|
fromDate: string | Date;
|
|
5
5
|
toDate: string | Date;
|
|
6
6
|
labels: DetectionLabel | DetectionLabel[];
|
|
7
|
+
trackId?: number;
|
|
8
|
+
};
|
|
9
|
+
export type BBox = number[];
|
|
10
|
+
export type SelectedObjectPath = {
|
|
11
|
+
label: string;
|
|
12
|
+
trackId: string;
|
|
13
|
+
paths: Array<{
|
|
14
|
+
timestamp: number;
|
|
15
|
+
center: [number, number];
|
|
16
|
+
bbox: BBox;
|
|
17
|
+
}>;
|
|
7
18
|
};
|
|
8
|
-
export type BBox = [number, number, number, number];
|
|
9
19
|
export type Detection = {
|
|
10
20
|
bbox: BBox;
|
|
11
21
|
timestamp: string | Date;
|
|
@@ -22,9 +32,12 @@ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
|
|
|
22
32
|
export type SegmentPolygonCoords = number[][];
|
|
23
33
|
export type Segment = {
|
|
24
34
|
id: number;
|
|
25
|
-
mask
|
|
35
|
+
mask?: SegmentPolygonCoords;
|
|
26
36
|
label: string;
|
|
27
37
|
timestamp: string | Date;
|
|
38
|
+
cameraExid?: CameraExid;
|
|
39
|
+
bbox?: BoundingBox;
|
|
40
|
+
area?: number;
|
|
28
41
|
};
|
|
29
42
|
export type SegmentSimilarityResult = {
|
|
30
43
|
distance: number;
|
|
@@ -37,17 +50,18 @@ export type SegmentsSimilaritySearchResult = {
|
|
|
37
50
|
};
|
|
38
51
|
export type SegmentsSimilaritySearchParams = {
|
|
39
52
|
cameraExid: CameraExid;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
areaTolerance: number;
|
|
53
|
+
referenceId: string;
|
|
54
|
+
iouThreshold?: number;
|
|
55
|
+
fromDate: string;
|
|
56
|
+
toDate: string;
|
|
45
57
|
};
|
|
46
58
|
export type CountsParams = {
|
|
47
59
|
cameraExid: CameraExid;
|
|
48
60
|
fromDate: string | Date;
|
|
49
61
|
toDate: string | Date;
|
|
50
|
-
precision: TimelinePrecision;
|
|
62
|
+
precision: keyof typeof TimelinePrecision;
|
|
63
|
+
trackId: number;
|
|
64
|
+
labels: DetectionLabel | DetectionLabel[];
|
|
51
65
|
};
|
|
52
66
|
export type CountByPeriod = {
|
|
53
67
|
date: string | Date;
|
|
@@ -40,7 +40,56 @@ export declare enum DetectionLabel {
|
|
|
40
40
|
TruckMixer = "truck-mixer",
|
|
41
41
|
TruckMountedMobileCrane = "truck-mounted-mobile-crane",
|
|
42
42
|
Unknown = "unknown",
|
|
43
|
-
Worker = "worker"
|
|
43
|
+
Worker = "worker",
|
|
44
|
+
Rubble = "rubble",
|
|
45
|
+
Puddle = "puddle",
|
|
46
|
+
DirtGravelCementPile = "dirt_gravel_cement_pile",
|
|
47
|
+
DetachedExcavatorBucket = "detached_excavator_bucket",
|
|
48
|
+
IntermediateBulkContainer = "intermediate_bulk_container",
|
|
49
|
+
WoodenPallet = "wooden_pallet",
|
|
50
|
+
ShippingContainer = "shipping_container",
|
|
51
|
+
AirCompressor = "air_compressor",
|
|
52
|
+
DryMortarSilo = "dry_mortar_silo",
|
|
53
|
+
Fence = "fence",
|
|
54
|
+
Brick = "brick",
|
|
55
|
+
Barrel = "barrel",
|
|
56
|
+
Cardboard = "cardboard",
|
|
57
|
+
CardboardBox = "cardboard_box",
|
|
58
|
+
CementBag = "cement_bag",
|
|
59
|
+
ConcreteBlock = "concrete_block",
|
|
60
|
+
ConcretePipe = "concrete_pipe",
|
|
61
|
+
ConcreteSlab = "concrete_slab",
|
|
62
|
+
PlasticWrap = "plastic_wrap",
|
|
63
|
+
ContainerOffice = "container_office",
|
|
64
|
+
ElectricalPole = "electrical_pole",
|
|
65
|
+
ElectricalBox = "electrical_box",
|
|
66
|
+
FireHydrant = "fire_hydrant",
|
|
67
|
+
HoseReel = "hose_reel",
|
|
68
|
+
Ladder = "ladder",
|
|
69
|
+
MetalBeam = "metal_beam",
|
|
70
|
+
MetalPipe = "metal_pipe",
|
|
71
|
+
Pallet = "pallet",
|
|
72
|
+
Pillar = "pillar",
|
|
73
|
+
PlasticBin = "plastic_bin",
|
|
74
|
+
PlasticBucket = "plastic_bucket",
|
|
75
|
+
PlasticPipe = "plastic_pipe",
|
|
76
|
+
PublicToilet = "public_toilet",
|
|
77
|
+
Sign = "sign",
|
|
78
|
+
SiteToolbox = "site_toolbox",
|
|
79
|
+
StreetSink = "street_sink",
|
|
80
|
+
TrafficBarrier = "traffic_barrier",
|
|
81
|
+
TrafficCone = "traffic_cone",
|
|
82
|
+
Wall = "wall",
|
|
83
|
+
WasteContainer = "waste_container",
|
|
84
|
+
WaterStorageTank = "water_storage_tank",
|
|
85
|
+
Wheelbarrow = "wheelbarrow",
|
|
86
|
+
Window = "window",
|
|
87
|
+
WoodPlank = "wood_plank",
|
|
88
|
+
CableReel = "cable_reel",
|
|
89
|
+
AirConditioningSystem = "air_conditioning_system",
|
|
90
|
+
WoodenBox = "wooden_box",
|
|
91
|
+
PlasticBag = "plastic_bag",
|
|
92
|
+
MaterialStack = "material_stack"
|
|
44
93
|
}
|
|
45
94
|
export declare enum SegmentLabel {
|
|
46
95
|
AirCompressor = "air_compressor",
|