@evercam/api 1.0.0-b275917d0 → 1.0.0-b3c857a59
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/adminApi.d.ts +47 -23
- package/dist/api/aiApi.d.ts +46 -1
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamApi.d.ts +22 -15
- package/dist/api/evercamLabsApi.d.ts +4 -12
- 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 +835 -716
- 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/analytics.d.ts +38 -66
- 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 +2 -1
- package/dist/types/coolify.d.ts +18 -0
- package/dist/types/copilot.d.ts +9 -8
- package/dist/types/detections.d.ts +10 -4
- 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/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 +8 -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;
|
|
@@ -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",
|
|
@@ -28,7 +22,6 @@ export declare enum AnalyticsEventPageId {
|
|
|
28
22
|
ProjectSettingsOverview = "ProjectSettings-Overview",
|
|
29
23
|
Settings = "Settings",
|
|
30
24
|
SettingsAccount = "Settings-Account",
|
|
31
|
-
SettingsActivities = "Settings-Activities",
|
|
32
25
|
SettingsConnectors = "Settings-Connectors",
|
|
33
26
|
MediaHub = "MediaHub",
|
|
34
27
|
MediaOveriew = "MediaOveriew",
|
|
@@ -36,7 +29,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
36
29
|
Bim = "Bim",
|
|
37
30
|
Drone = "Drone",
|
|
38
31
|
ThreeSixty = "360",
|
|
39
|
-
|
|
32
|
+
Planner = "Planner",
|
|
40
33
|
Widgets = "Widgets",
|
|
41
34
|
Company = "Company",
|
|
42
35
|
EmbeddedLive = "EmbeddedLive",
|
|
@@ -47,8 +40,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
47
40
|
DroneInfo = "DroneInfo",
|
|
48
41
|
ThreeSixtyInfo = "360Info",
|
|
49
42
|
BimCompareInfo = "BimCompareInfo",
|
|
50
|
-
WeatherReport = "WeatherReport"
|
|
51
|
-
EvercamGoInfo = "EvercamGoInfo"
|
|
43
|
+
WeatherReport = "WeatherReport"
|
|
52
44
|
}
|
|
53
45
|
export declare enum AnalyticsEvent {
|
|
54
46
|
PageView = "PageView",
|
|
@@ -64,14 +56,13 @@ export declare enum AnalyticsEvent {
|
|
|
64
56
|
Comment = "Comment-Toggle",
|
|
65
57
|
Compare = "Compare-Toggle",
|
|
66
58
|
Copilot = "Copilot-Toggle",
|
|
59
|
+
DownloadMediaOpen = "DownloadMedia-Open",
|
|
67
60
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
68
61
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
69
62
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
70
63
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
71
64
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
72
65
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
73
|
-
SettingsActivitiesFromDateSelect = "FromDateSelect",
|
|
74
|
-
SettingsActivitiesToDateSelect = "ToDateSelect",
|
|
75
66
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
76
67
|
SettingsConnectorsConnectToAconex = "ConnectToAconex",
|
|
77
68
|
SettingsConnectorsConnectToAutodesk = "ConnectToAutodesk",
|
|
@@ -269,11 +260,11 @@ export declare enum AnalyticsEvent {
|
|
|
269
260
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
270
261
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
271
262
|
ThreeSixtyCloseForgeBIM = "CloseForgeBIM",
|
|
272
|
-
|
|
263
|
+
ThreeSixtyDeleteComment = "DeleteComment",
|
|
273
264
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
274
|
-
|
|
265
|
+
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
275
266
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
276
|
-
|
|
267
|
+
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
277
268
|
ThreeSixtyLockCompare = "LockCompare",
|
|
278
269
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
279
270
|
ThreeSixtyMarkerThumbnailClicked = "MarkerThumbnailClicked",
|
|
@@ -282,14 +273,16 @@ export declare enum AnalyticsEvent {
|
|
|
282
273
|
ThreeSixtyOpenCompare = "OpenCompare",
|
|
283
274
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
284
275
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
285
|
-
|
|
286
|
-
|
|
276
|
+
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
277
|
+
ThreeSixtySaveComment = "SaveComment",
|
|
278
|
+
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
279
|
+
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
287
280
|
ThreeSixtyShareView = "ShareView",
|
|
288
|
-
|
|
281
|
+
ThreeSixtyCommentClicked = "CommentClicked",
|
|
289
282
|
ThreeSixtyToggleMarkersVisibility = "ToggleMarkersVisibility",
|
|
290
283
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
291
284
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
292
|
-
|
|
285
|
+
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
293
286
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
294
287
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
295
288
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -335,30 +328,29 @@ export declare enum AnalyticsEvent {
|
|
|
335
328
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
336
329
|
DroneZoomIn = "ZoomIn",
|
|
337
330
|
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",
|
|
331
|
+
PlannerAddCameraClick = "AddCameraClick",
|
|
332
|
+
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
333
|
+
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
334
|
+
PlannerAttachSitePlanDrawing = "AttachSitePlanDrawing",
|
|
335
|
+
PlannerCameraMarkerEditFOVAngle = "CameraMarker-EditFOVAngle",
|
|
336
|
+
PlannerCameraMarkerEditHeading = "CameraMarker-EditHeading",
|
|
337
|
+
PlannerCameraMarkerEditName = "CameraMarker-EditName",
|
|
338
|
+
PlannerCameraMarkerEditRadius = "CameraMarker-EditRadius",
|
|
339
|
+
PlannerCameraMarkerSelectColor = "CameraMarker-SelectColor",
|
|
340
|
+
PlannerCameraMarkerToggleVisibility = "CameraMarker-ToggleVisibility",
|
|
341
|
+
PlannerCameraMarkerToggleDeleteDialog = "CameraMarker-ToggleDeleteDialog",
|
|
342
|
+
PlannerCancelUploadSitePlanDrawing = "CancelUploadSitePlanDrawing",
|
|
343
|
+
PlannerChangeLocation = "ChangeLocation",
|
|
344
|
+
PlannerOpen = "Open",
|
|
345
|
+
PlannerResetView = "ResetView",
|
|
346
|
+
PlannerSitePlansList = "SitePlansList",
|
|
347
|
+
PlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
348
|
+
PlannerToggleFullscreen = "ToggleFullscreen",
|
|
349
|
+
PlannerToggleMapStyle = "ToggleMapStyle",
|
|
350
|
+
PlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
351
|
+
PlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
352
|
+
PlannerZoomIn = "ZoomIn",
|
|
353
|
+
PlannerZoomOut = "ZoomOut",
|
|
362
354
|
MarkerClicked = "MarkerClicked",
|
|
363
355
|
TimelapseToggleHelpDialog = "ToggleHelpDialog",
|
|
364
356
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
@@ -457,26 +449,6 @@ export declare enum AnalyticsEvent {
|
|
|
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"
|
|
461
454
|
}
|
|
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;
|
|
@@ -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,8 @@ 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"
|
|
11
12
|
}
|
|
12
13
|
export type ConnectorResponsePayload = Array<{
|
|
13
14
|
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,12 @@
|
|
|
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;
|
|
7
8
|
};
|
|
8
|
-
export type BBox = [
|
|
9
|
+
export type BBox = number[];
|
|
9
10
|
export type SelectedObjectPath = {
|
|
10
11
|
label: string;
|
|
11
12
|
trackId: string;
|
|
@@ -31,9 +32,12 @@ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
|
|
|
31
32
|
export type SegmentPolygonCoords = number[][];
|
|
32
33
|
export type Segment = {
|
|
33
34
|
id: number;
|
|
34
|
-
mask
|
|
35
|
+
mask?: SegmentPolygonCoords;
|
|
35
36
|
label: string;
|
|
36
37
|
timestamp: string | Date;
|
|
38
|
+
cameraExid?: CameraExid;
|
|
39
|
+
bbox?: BoundingBox;
|
|
40
|
+
area?: number;
|
|
37
41
|
};
|
|
38
42
|
export type SegmentSimilarityResult = {
|
|
39
43
|
distance: number;
|
|
@@ -55,7 +59,9 @@ export type CountsParams = {
|
|
|
55
59
|
cameraExid: CameraExid;
|
|
56
60
|
fromDate: string | Date;
|
|
57
61
|
toDate: string | Date;
|
|
58
|
-
precision: TimelinePrecision;
|
|
62
|
+
precision: keyof typeof TimelinePrecision;
|
|
63
|
+
trackId: number;
|
|
64
|
+
labels: DetectionLabel | DetectionLabel[];
|
|
59
65
|
};
|
|
60
66
|
export type CountByPeriod = {
|
|
61
67
|
date: string | Date;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PaginationParams } from "@/types";
|
|
2
|
+
export declare enum HddFormat {
|
|
3
|
+
ExFat = "ExFAT",
|
|
4
|
+
HikFs = "HikFS"
|
|
5
|
+
}
|
|
6
|
+
export declare enum HddType {
|
|
7
|
+
Magnetic35 = "3.5\" Magnetic",
|
|
8
|
+
Magnetic25 = "2.5\" Magnetic",
|
|
9
|
+
Ssd25 = "2.5\" SSD"
|
|
10
|
+
}
|
|
11
|
+
export declare enum HddState {
|
|
12
|
+
Blank = "Blank",
|
|
13
|
+
InUse = "In Use",
|
|
14
|
+
ColdStorage = "Cold Storage"
|
|
15
|
+
}
|
|
16
|
+
export declare enum WarehouseLocationIndex {
|
|
17
|
+
IEWarehouse = 1,
|
|
18
|
+
Deployed = 2,
|
|
19
|
+
CustomerStorage = 3,
|
|
20
|
+
USWarehouse = 4,
|
|
21
|
+
AUWarehouse = 5,
|
|
22
|
+
UKWarehouse = 6
|
|
23
|
+
}
|
|
24
|
+
export declare enum WarehouseLocation {
|
|
25
|
+
IEWarehouse = "IE Warehouse",
|
|
26
|
+
Deployed = "Deployed",
|
|
27
|
+
CustomerStorage = "Customer Storage",
|
|
28
|
+
USWarehouse = "US Warehouse",
|
|
29
|
+
AUWarehouse = "AU Warehouse",
|
|
30
|
+
UKWarehouse = "UK Warehouse"
|
|
31
|
+
}
|
|
32
|
+
export declare enum HddSize {
|
|
33
|
+
TwoTB = "2 TB",
|
|
34
|
+
FourTB = "4 TB",
|
|
35
|
+
FiveTB = "5 TB",
|
|
36
|
+
SixTB = "6 TB",
|
|
37
|
+
EightTB = "8 TB",
|
|
38
|
+
TenTB = "10 TB"
|
|
39
|
+
}
|
|
40
|
+
export type FootageCreateUpdatePayload = {
|
|
41
|
+
cameraId: string;
|
|
42
|
+
startDate: string;
|
|
43
|
+
endDate: string;
|
|
44
|
+
};
|
|
45
|
+
export type HDDCreateUpdatePayload = {
|
|
46
|
+
size: string;
|
|
47
|
+
type: string;
|
|
48
|
+
format: string;
|
|
49
|
+
locationId: string;
|
|
50
|
+
serialNumber: string;
|
|
51
|
+
hddStatus: string;
|
|
52
|
+
shelfBlock: string;
|
|
53
|
+
};
|
|
54
|
+
export type HDDsQueryParams = PaginationParams & {
|
|
55
|
+
id: number;
|
|
56
|
+
location: string;
|
|
57
|
+
serialNumber: string;
|
|
58
|
+
shelfBlock: string;
|
|
59
|
+
format: string;
|
|
60
|
+
size: string;
|
|
61
|
+
type: string;
|
|
62
|
+
hddStatus: string;
|
|
63
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,10 +9,10 @@ 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";
|
|
15
|
+
export * from "./hdd";
|
|
16
16
|
export * from "./ingest";
|
|
17
17
|
export * from "./map";
|
|
18
18
|
export * from "./connector";
|
|
@@ -27,7 +27,8 @@ export * from "./routeParams";
|
|
|
27
27
|
export * from "./router";
|
|
28
28
|
export * from "./shares";
|
|
29
29
|
export * from "./sim";
|
|
30
|
-
export * from "./
|
|
30
|
+
export * from "./systemCheck";
|
|
31
|
+
export * from "./planner";
|
|
31
32
|
export * from "./storageServers";
|
|
32
33
|
export * from "./streaming";
|
|
33
34
|
export * from "./time";
|
|
@@ -49,3 +50,6 @@ export * from "./siteAnalytics";
|
|
|
49
50
|
export * from "./widget";
|
|
50
51
|
export * from "./countries";
|
|
51
52
|
export * from "./automation";
|
|
53
|
+
export * from "./coolify";
|
|
54
|
+
export * from "./tag";
|
|
55
|
+
export * from "./xweather";
|
package/dist/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule } from "@/types";
|
|
1
|
+
import { CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -16,6 +16,7 @@ export type Kit = {
|
|
|
16
16
|
serial: string;
|
|
17
17
|
status: KitStatus;
|
|
18
18
|
powerSchedule: Schedule;
|
|
19
|
+
tags: Tag[];
|
|
19
20
|
};
|
|
20
21
|
export declare enum KitStatus {
|
|
21
22
|
New = "new",
|
|
@@ -27,11 +28,18 @@ export declare enum KitAlarm {
|
|
|
27
28
|
NvrOffline = "nvr_offline",
|
|
28
29
|
UnknownCamera = "unknown_camera",
|
|
29
30
|
NotRecordingCamera = "not_recording_camera",
|
|
30
|
-
OfflineScheduled = "offline_scheduled"
|
|
31
|
+
OfflineScheduled = "offline_scheduled",
|
|
32
|
+
FullSD = "full_sd",
|
|
33
|
+
FullStorage = "full_storage",
|
|
34
|
+
HddUnmounted = "hdd_unmounted",
|
|
35
|
+
NoHdd = "no_hdd",
|
|
36
|
+
MissingRouterInfo = "missing_router_info",
|
|
37
|
+
PowerLost = "ac_failure",
|
|
38
|
+
UpsLowBattery = "low_battery"
|
|
31
39
|
}
|
|
32
40
|
export declare enum KitMetricId {
|
|
33
|
-
|
|
34
|
-
|
|
41
|
+
SolarCharger = "solar_charger",
|
|
42
|
+
PanelPower = "panel_power"
|
|
35
43
|
}
|
|
36
44
|
export declare enum KitMetricPeriod {
|
|
37
45
|
Last15Minutes = "now-15m",
|
|
@@ -236,6 +244,7 @@ export type KitQueryParams = PaginationParams & {
|
|
|
236
244
|
name: string;
|
|
237
245
|
serial: string;
|
|
238
246
|
status: KitStatus;
|
|
247
|
+
tagId: number | number[];
|
|
239
248
|
};
|
|
240
249
|
export type AdminKit = {
|
|
241
250
|
id: number;
|
|
@@ -293,3 +302,27 @@ export type KitUpdatePayload = {
|
|
|
293
302
|
kitStatus: KitStatus;
|
|
294
303
|
type: string;
|
|
295
304
|
};
|
|
305
|
+
export declare enum KitStorageTransport {
|
|
306
|
+
Sata = "sata",
|
|
307
|
+
Nvme = "nvme",
|
|
308
|
+
Usb = "usb"
|
|
309
|
+
}
|
|
310
|
+
export type KitStorageRequestPayload = {
|
|
311
|
+
kitId: number;
|
|
312
|
+
};
|
|
313
|
+
export type KitStorageResponsePayload = {
|
|
314
|
+
id: number;
|
|
315
|
+
serial: string;
|
|
316
|
+
status: string;
|
|
317
|
+
type: string;
|
|
318
|
+
metadata: {
|
|
319
|
+
formFactor: string;
|
|
320
|
+
};
|
|
321
|
+
model: string;
|
|
322
|
+
insertedAt: DateTime;
|
|
323
|
+
updatedAt: DateTime;
|
|
324
|
+
vendor: string;
|
|
325
|
+
kitId: number;
|
|
326
|
+
capacity: number;
|
|
327
|
+
tran: KitStorageTransport;
|
|
328
|
+
};
|