@evercam/api 1.0.0-7479b40ec → 1.0.0-7e1c6b521
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/dist/api/adminApi.d.ts +23 -17
- package/dist/api/aiApi.d.ts +15 -4
- package/dist/api/evercamApi.d.ts +21 -14
- package/dist/api/evercamLabsApi.d.ts +4 -8
- package/dist/api/ingestApi.d.ts +4 -1
- package/dist/api/weatherApi.d.ts +7 -23
- package/dist/index.js +516 -509
- 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/analytics.d.ts +38 -65
- package/dist/types/anpr.d.ts +10 -7
- package/dist/types/camera.d.ts +2 -50
- package/dist/types/comments.d.ts +15 -8
- package/dist/types/connector.d.ts +2 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/kit.d.ts +9 -4
- package/dist/types/project.d.ts +5 -2
- 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 +58 -19
- 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 +7 -0
- package/dist/types/weather.d.ts +6 -2
- package/dist/types/xweather.d.ts +12 -0
- package/package.json +3 -3
- package/dist/types/devices.d.ts +0 -228
- /package/dist/types/{sitePlanner.d.ts → planner.d.ts} +0 -0
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import { DateType } from "@/types";
|
|
2
|
-
export type AnalyticsRequestPayload = {
|
|
3
|
-
name: string;
|
|
4
|
-
cameraExid: string;
|
|
5
|
-
} & {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
1
|
export declare enum AnalyticsEventPageId {
|
|
9
2
|
Timeline = "Timeline",
|
|
10
3
|
Copilot = "Copilot",
|
|
@@ -17,6 +10,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
17
10
|
Project = "Project",
|
|
18
11
|
AllProjects = "AllProjects",
|
|
19
12
|
Tutorials = "Tutorials",
|
|
13
|
+
SystemCheck = "SystemCheck",
|
|
20
14
|
ProjectMapView = "ProjectMapView",
|
|
21
15
|
AccountMapView = "AccountMapView",
|
|
22
16
|
Automations = "Automations",
|
|
@@ -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,29 +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
|
-
|
|
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",
|
|
361
354
|
MarkerClicked = "MarkerClicked",
|
|
362
355
|
TimelapseToggleHelpDialog = "ToggleHelpDialog",
|
|
363
356
|
TimelapseSelectCustomPeriod = "SelectCustomPeriod",
|
|
@@ -456,26 +449,6 @@ export declare enum AnalyticsEvent {
|
|
|
456
449
|
HelpMenuClickTutorialsLink = "HelpMenu-ClickTutorialsLink",
|
|
457
450
|
HelpMenuClickWhatsNewLink = "HelpMenu-ClickWhatsNewLink",
|
|
458
451
|
HelpMenuClickUserManuaLink = "HelpMenu-ClickUserManuaLink",
|
|
459
|
-
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink"
|
|
452
|
+
HelpMenuClickSupportTicketsLink = "HelpMenu-ClickSupportTicketsLink",
|
|
453
|
+
HelpMenuClickSystemCheckLink = "HelpMenu-ClickSystemCheckLink"
|
|
460
454
|
}
|
|
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/camera.d.ts
CHANGED
|
@@ -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;
|
|
@@ -229,6 +230,7 @@ export type CameraUpdateRequestPayload = {
|
|
|
229
230
|
fovAngle?: number;
|
|
230
231
|
fovRadius?: number;
|
|
231
232
|
featureFlags: CameraFeatureFlag[];
|
|
233
|
+
isAccessRestricted?: boolean;
|
|
232
234
|
};
|
|
233
235
|
export type CamerasResponsePayload = {
|
|
234
236
|
cameras?: Camera[];
|
|
@@ -322,56 +324,6 @@ export type Hdd = {
|
|
|
322
324
|
errorStatus: string;
|
|
323
325
|
canExpand: boolean;
|
|
324
326
|
};
|
|
325
|
-
export declare enum ResolutionDimensions {
|
|
326
|
-
QVGA = "320x240",
|
|
327
|
-
VGA = "640x480",
|
|
328
|
-
SVGA = "800x600",
|
|
329
|
-
XGA = "1024x768",
|
|
330
|
-
HD = "1280x720",
|
|
331
|
-
WXGA = "1280x800",
|
|
332
|
-
HDPlus = "1366x768",
|
|
333
|
-
WXGAPlus = "1440x900",
|
|
334
|
-
HDPlusPlus = "1600x900",
|
|
335
|
-
UXGA = "1600x1200",
|
|
336
|
-
FullHD = "1920x1080",
|
|
337
|
-
WUXGA = "1920x1200",
|
|
338
|
-
TwoK = "2048x1080",
|
|
339
|
-
QHD = "2560x1440",
|
|
340
|
-
WQXGA = "2560x1600",
|
|
341
|
-
FourK = "3840x2160",
|
|
342
|
-
FourKCinema = "4096x2160",
|
|
343
|
-
FiveK = "5120x2880",
|
|
344
|
-
EightK = "7680x4320",
|
|
345
|
-
WHUXGA = "7680x4800"
|
|
346
|
-
}
|
|
347
|
-
export declare enum ResolutionLabel {
|
|
348
|
-
QVGA = "QVGA",
|
|
349
|
-
VGA = "VGA",
|
|
350
|
-
SVGA = "SVGA",
|
|
351
|
-
XGA = "XGA",
|
|
352
|
-
HD = "HD",
|
|
353
|
-
WXGA = "WXGA",
|
|
354
|
-
HDPlus = "HD+",
|
|
355
|
-
WXGAPlus = "WXGA++",
|
|
356
|
-
HDPlusPlus = "HD++",
|
|
357
|
-
UXGA = "UXGA",
|
|
358
|
-
FullHD = "FullHD",
|
|
359
|
-
WUXGA = "WUXGA",
|
|
360
|
-
TwoK = "2K",
|
|
361
|
-
QHD = "QHD",
|
|
362
|
-
WQXGA = "WQXGA",
|
|
363
|
-
FourK = "4K",
|
|
364
|
-
FourKCinema = "4KCinema",
|
|
365
|
-
FiveK = "5K",
|
|
366
|
-
EightK = "8K",
|
|
367
|
-
WHUXGA = "WHUXGA"
|
|
368
|
-
}
|
|
369
|
-
export type ResolutionInfo = {
|
|
370
|
-
ratioString: string;
|
|
371
|
-
ratioFloat: number;
|
|
372
|
-
resolutionDimensions: ResolutionDimensions;
|
|
373
|
-
resolutionLabel: ResolutionLabel;
|
|
374
|
-
};
|
|
375
327
|
export type CameraPath = {
|
|
376
328
|
projectExid: ProjectExid;
|
|
377
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;
|
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";
|
|
@@ -51,3 +51,5 @@ export * from "./widget";
|
|
|
51
51
|
export * from "./countries";
|
|
52
52
|
export * from "./automation";
|
|
53
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, 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",
|
|
@@ -31,11 +32,14 @@ export declare enum KitAlarm {
|
|
|
31
32
|
FullSD = "full_sd",
|
|
32
33
|
FullStorage = "full_storage",
|
|
33
34
|
HddUnmounted = "hdd_unmounted",
|
|
34
|
-
NoHdd = "no_hdd"
|
|
35
|
+
NoHdd = "no_hdd",
|
|
36
|
+
MissingRouterInfo = "missing_router_info",
|
|
37
|
+
PowerLost = "ac_failure",
|
|
38
|
+
UpsLowBattery = "low_battery"
|
|
35
39
|
}
|
|
36
40
|
export declare enum KitMetricId {
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
SolarCharger = "solar_charger",
|
|
42
|
+
PanelPower = "panel_power"
|
|
39
43
|
}
|
|
40
44
|
export declare enum KitMetricPeriod {
|
|
41
45
|
Last15Minutes = "now-15m",
|
|
@@ -240,6 +244,7 @@ export type KitQueryParams = PaginationParams & {
|
|
|
240
244
|
name: string;
|
|
241
245
|
serial: string;
|
|
242
246
|
status: KitStatus;
|
|
247
|
+
tagId: number | number[];
|
|
243
248
|
};
|
|
244
249
|
export type AdminKit = {
|
|
245
250
|
id: number;
|
package/dist/types/project.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export type Project = {
|
|
|
15
15
|
owner?: {
|
|
16
16
|
email?: string;
|
|
17
17
|
};
|
|
18
|
+
camerasRestrictionType?: string;
|
|
18
19
|
};
|
|
19
20
|
export declare enum ProjectStatus {
|
|
20
21
|
ToStart = "To Start",
|
|
@@ -31,6 +32,9 @@ export declare enum ProjectArchiveTier {
|
|
|
31
32
|
export type ProjectResponsePayload = {
|
|
32
33
|
data?: Project[];
|
|
33
34
|
};
|
|
35
|
+
export type UpdateCameraRestrictionPayload = {
|
|
36
|
+
isAccessRestricted?: boolean;
|
|
37
|
+
};
|
|
34
38
|
export type Logo = {
|
|
35
39
|
name: string;
|
|
36
40
|
url: string;
|
|
@@ -51,8 +55,7 @@ export declare enum ProjectFeatureFlag {
|
|
|
51
55
|
MediaHubSharing = "archives_sharing",
|
|
52
56
|
GateReportAnprBased = "anpr_sourced",
|
|
53
57
|
NoLicensePlate = "no_license_plate",
|
|
54
|
-
DefaultToProjectApp = "default_to_project_app"
|
|
55
|
-
Go = "evercam_go"
|
|
58
|
+
DefaultToProjectApp = "default_to_project_app"
|
|
56
59
|
}
|
|
57
60
|
export type ProjectBatteryReading = {
|
|
58
61
|
exid: number;
|
package/dist/types/roi.d.ts
CHANGED
package/dist/types/shared.d.ts
CHANGED
|
@@ -103,16 +103,7 @@ export declare enum InfoPage {
|
|
|
103
103
|
DroneView = "drone-view",
|
|
104
104
|
Compare = "compare",
|
|
105
105
|
Timeline = "timeline",
|
|
106
|
-
WeatherReport = "weather-report"
|
|
107
|
-
EvercamGo = "evercam-go"
|
|
108
|
-
}
|
|
109
|
-
export declare enum EvercamGoFeatures {
|
|
110
|
-
XRay = "xray",
|
|
111
|
-
MagicWand = "magic-wand",
|
|
112
|
-
Weather = "weather",
|
|
113
|
-
DownloadSnapshot = "download-snapshot",
|
|
114
|
-
LocalRecordings = "local-recordings",
|
|
115
|
-
MarkupTool = "markup-tool"
|
|
106
|
+
WeatherReport = "weather-report"
|
|
116
107
|
}
|
|
117
108
|
export declare enum DownloadTypes {
|
|
118
109
|
Jpeg = "jpeg",
|
package/dist/types/shares.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export type Share = {
|
|
|
22
22
|
sharerId: number;
|
|
23
23
|
sharerName: string;
|
|
24
24
|
userId: number;
|
|
25
|
+
isUserAccessRestricted: boolean;
|
|
25
26
|
};
|
|
26
27
|
export type ShareRequestsResponsePayload = {
|
|
27
28
|
shareRequests: ShareRequest[];
|
|
@@ -60,6 +61,10 @@ export type ShareProjectCamerasRequestPayload = {
|
|
|
60
61
|
permission?: string;
|
|
61
62
|
rights: string;
|
|
62
63
|
};
|
|
64
|
+
export type UpdateUserRestrictionPayload = {
|
|
65
|
+
email: string[];
|
|
66
|
+
isUserAccessRestricted: boolean;
|
|
67
|
+
};
|
|
63
68
|
export type ShareCreateResponsePayload = {
|
|
64
69
|
shares: Share[];
|
|
65
70
|
shareRequests: ShareRequest[];
|
|
@@ -92,7 +97,6 @@ export declare enum ShareType {
|
|
|
92
97
|
Request = "request"
|
|
93
98
|
}
|
|
94
99
|
export declare enum ShareRequestStatus {
|
|
95
|
-
All = "",
|
|
96
100
|
Pending = -1,
|
|
97
101
|
Cancelled = -2,
|
|
98
102
|
Failed = -3,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
|
|
1
|
+
import type { BBox, BoundingBox, DateType, DetectionLabel, Schedule } from "@evercam/api/types";
|
|
2
2
|
export declare enum SiteAnalyticsMode {
|
|
3
3
|
Detections = "detections",
|
|
4
4
|
Segments = "segments"
|
|
@@ -6,20 +6,26 @@ export declare enum SiteAnalyticsMode {
|
|
|
6
6
|
export type SmartSearchOptionData = {
|
|
7
7
|
id?: string;
|
|
8
8
|
type: SmartSearchQueryComponentType;
|
|
9
|
-
value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
|
|
9
|
+
value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData | SmartSearchCondition | SmartSearchDateRange | string;
|
|
10
10
|
};
|
|
11
|
-
export type SmartSearchQueryPart = SmartSearchOptionData | SmartSearchQueryPart[];
|
|
11
|
+
export type SmartSearchQueryPart = SmartSearchOptionData | [SmartSearchQueryPart] | SmartSearchQueryPart[];
|
|
12
12
|
export declare enum SmartSearchQueryComponentType {
|
|
13
13
|
Condition = "condition",
|
|
14
14
|
Object = "object",
|
|
15
15
|
Area = "in_area",
|
|
16
16
|
Time = "time",
|
|
17
|
-
Operator = "operator"
|
|
17
|
+
Operator = "operator",
|
|
18
|
+
Camera = "camera",
|
|
19
|
+
DateRange = "date_range"
|
|
18
20
|
}
|
|
21
|
+
export type SmartSearchDateRange = {
|
|
22
|
+
start: DateType;
|
|
23
|
+
end: DateType;
|
|
24
|
+
};
|
|
19
25
|
export type SmartSearchQueryComponentData = {
|
|
20
26
|
id: string;
|
|
21
27
|
type: SmartSearchQueryComponentType;
|
|
22
|
-
parts: SmartSearchQueryPart
|
|
28
|
+
parts: [SmartSearchQueryPart];
|
|
23
29
|
};
|
|
24
30
|
export declare enum SmartSearchCondition {
|
|
25
31
|
InArea = "in_area",
|
|
@@ -30,24 +36,25 @@ export type SmartSearchConditionData = {
|
|
|
30
36
|
condition: SmartSearchCondition;
|
|
31
37
|
value: string | BoundingBox | DetectionLabel | Date;
|
|
32
38
|
};
|
|
39
|
+
export type SmartSearchQueryCondition = {
|
|
40
|
+
type: SmartSearchQueryConditionTypes;
|
|
41
|
+
target: SmartSearchQueryTargets;
|
|
42
|
+
operator?: SmartSearchQueryOperators;
|
|
43
|
+
attribute?: string;
|
|
44
|
+
value: string | number | string[];
|
|
45
|
+
reference?: {
|
|
46
|
+
target: SmartSearchQueryTargets;
|
|
47
|
+
attribute: string;
|
|
48
|
+
value: string | number | string[];
|
|
49
|
+
};
|
|
50
|
+
polygon?: BBox;
|
|
51
|
+
};
|
|
33
52
|
export type SmartSearchQuery = {
|
|
34
53
|
returnTargets: SmartSearchQueryTargets[];
|
|
35
54
|
rulesLogic: SmartSearchOperatorType;
|
|
36
55
|
rules: {
|
|
37
56
|
logic: SmartSearchOperatorType;
|
|
38
|
-
conditions:
|
|
39
|
-
type: SmartSearchQueryConditionTypes;
|
|
40
|
-
target: SmartSearchQueryTargets;
|
|
41
|
-
operator?: SmartSearchQueryOperators;
|
|
42
|
-
attribute?: string;
|
|
43
|
-
value: string | number | string[];
|
|
44
|
-
reference?: {
|
|
45
|
-
target: SmartSearchQueryTargets;
|
|
46
|
-
attribute: string;
|
|
47
|
-
value: string | number | string[];
|
|
48
|
-
};
|
|
49
|
-
polygon?: BBox;
|
|
50
|
-
}[];
|
|
57
|
+
conditions: SmartSearchQueryCondition[];
|
|
51
58
|
}[];
|
|
52
59
|
returnType: SmartSearchQueryReturnType;
|
|
53
60
|
};
|
|
@@ -72,7 +79,8 @@ export declare enum SmartSearchQueryOperators {
|
|
|
72
79
|
Outside = "outside",
|
|
73
80
|
DistanceBelow = "distance_below",
|
|
74
81
|
DistanceAbove = "distance_above",
|
|
75
|
-
Area = "in_area"
|
|
82
|
+
Area = "in_area",
|
|
83
|
+
Equal = "="
|
|
76
84
|
}
|
|
77
85
|
export declare enum SmartSearchQueryConditionTypes {
|
|
78
86
|
Selection = "selection",
|
|
@@ -82,3 +90,34 @@ export declare enum SmartSearchQueryConditionTypes {
|
|
|
82
90
|
Near = "near",
|
|
83
91
|
Far = "far"
|
|
84
92
|
}
|
|
93
|
+
export type SmartSearchOptionValue = DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
|
|
94
|
+
export type SmartSearchQueryParams = {
|
|
95
|
+
cameraExid: string;
|
|
96
|
+
name: string;
|
|
97
|
+
description: string;
|
|
98
|
+
query: {
|
|
99
|
+
req: SmartSearchQuery;
|
|
100
|
+
timeSchedule?: Schedule | undefined;
|
|
101
|
+
};
|
|
102
|
+
fromDate?: DateType;
|
|
103
|
+
toDate?: DateType;
|
|
104
|
+
author: string;
|
|
105
|
+
createdAt: DateType;
|
|
106
|
+
params?: Record<string, unknown>;
|
|
107
|
+
};
|
|
108
|
+
export type SavedQuery = {
|
|
109
|
+
description: string;
|
|
110
|
+
id: number;
|
|
111
|
+
query: {
|
|
112
|
+
req: SmartSearchQuery;
|
|
113
|
+
timeSchedule?: Schedule | undefined;
|
|
114
|
+
};
|
|
115
|
+
params: Record<string, string>;
|
|
116
|
+
components?: Omit<SmartSearchOptionData, "id">[];
|
|
117
|
+
toDate?: DateType;
|
|
118
|
+
createdAt?: DateType;
|
|
119
|
+
cameraExid: string;
|
|
120
|
+
name: string;
|
|
121
|
+
fromDate?: DateType;
|
|
122
|
+
author?: string;
|
|
123
|
+
};
|
|
@@ -1,24 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare enum ExNvrHealthCheckTaskId {
|
|
3
|
-
ExNvrLogin = "exNvrLogin",
|
|
4
|
-
ExNvrConfigCheck = "exNvrGetDeviceInfo",
|
|
5
|
-
ExNvrSystemStatus = "exNvrSystemStatus",
|
|
6
|
-
ExNvrRecordings = "exNvrGetRecordings",
|
|
7
|
-
CameraSystemConfigCheck = "getCameraSystemInfo",
|
|
8
|
-
CameraTimeConfigCheck = "getCameraTimeInfo",
|
|
9
|
-
CameraStreamsConfigCheck = "getCameraStreamsInfo",
|
|
10
|
-
CameraNetworkConfigCheck = "getCameraNetworkInfo",
|
|
11
|
-
CameraOsdConfigCheck = "getCameraOsdInfo",
|
|
12
|
-
CameraStorageConfigCheck = "getCameraStorageInfo"
|
|
13
|
-
}
|
|
14
|
-
export type ExNvrHealthCheckTaskResult<T extends ExNvrHealthCheckTaskId> = T extends ExNvrHealthCheckTaskId.ExNvrLogin ? ExNvrLoginResponse : T extends ExNvrHealthCheckTaskId.ExNvrConfigCheck ? ExNvrDeviceConfig : T extends ExNvrHealthCheckTaskId.ExNvrSystemStatus ? ExNvrSystemStatus : T extends ExNvrHealthCheckTaskId.ExNvrRecordings ? ExNvrRecordingInterval[] : T extends ExNvrHealthCheckTaskId.CameraStreamsConfigCheck ? MilesightCameraVideoConfig : T extends ExNvrHealthCheckTaskId.CameraSystemConfigCheck ? MilesightCameraSystemSettings : T extends ExNvrHealthCheckTaskId.CameraTimeConfigCheck ? MilesightCameraTimeInfo : T extends ExNvrHealthCheckTaskId.CameraNetworkConfigCheck ? MilesightCameraNetworkConfiguration : T extends ExNvrHealthCheckTaskId.CameraOsdConfigCheck ? MilesightCameraOsdConfiguration : T extends ExNvrHealthCheckTaskId.CameraStorageConfigCheck ? MilesightCameraSdCardInfo : never;
|
|
15
|
-
export type ExNvrHealthCheckTask<T extends ExNvrHealthCheckTaskId> = {
|
|
16
|
-
id: T;
|
|
17
|
-
status: TaskStatus;
|
|
18
|
-
duration?: number;
|
|
19
|
-
result?: ExNvrHealthCheckTaskResult<T>;
|
|
20
|
-
error?: Error;
|
|
21
|
-
};
|
|
1
|
+
import { DateTime_Z_micros, KitMetricData } from "@/types";
|
|
22
2
|
export type ExNvrLoginResponse = {
|
|
23
3
|
accessToken: string;
|
|
24
4
|
};
|
|
@@ -110,8 +90,7 @@ export type ExNvrSystemStatus = {
|
|
|
110
90
|
};
|
|
111
91
|
export declare enum ExNvrMetricId {
|
|
112
92
|
CpuLoad = "cpu_load",
|
|
113
|
-
RamUsage = "ram_usage"
|
|
114
|
-
SwapUsage = "swap_usage"
|
|
93
|
+
RamUsage = "ram_usage"
|
|
115
94
|
}
|
|
116
95
|
export type ExNvrMetric = KitMetricData & {
|
|
117
96
|
metricId: ExNvrMetricId;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum PerformanceStatus {
|
|
2
|
+
Pending = "pending",
|
|
3
|
+
Done = "done"
|
|
4
|
+
}
|
|
5
|
+
export declare enum WebGLExtensions {
|
|
6
|
+
OESTextureFloat = "OES_texture_float",
|
|
7
|
+
EXTFloatBlend = "EXT_float_blend",
|
|
8
|
+
EXTTextureFilterAnisotropic = "EXT_texture_filter_anisotropic",
|
|
9
|
+
OESElementIndexUint = "OES_element_index_uint",
|
|
10
|
+
WEBGLDebugRendererInfo = "WEBGL_debug_renderer_info"
|
|
11
|
+
}
|