@evercam/api 1.0.0-e03a0c41b → 1.0.0-preview-fix-evercam-ui-publish-script-58a674953
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 +0 -8
- package/dist/api/aiApi.d.ts +1 -4
- package/dist/api/evercamLabsApi.d.ts +3 -3
- package/dist/index.js +245 -270
- 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 +2 -2
- package/dist/types/copilot.d.ts +1 -2
- package/dist/types/detections.d.ts +5 -13
- package/dist/types/gateReport.d.ts +1 -50
- package/dist/types/kit.d.ts +7 -31
- package/dist/types/sitePlanner.d.ts +0 -3
- package/dist/types/streaming.d.ts +3 -2
- package/dist/types/widget.d.ts +0 -3
- package/package.json +2 -2
|
@@ -99,8 +99,7 @@ export declare enum AnalyticsEvent {
|
|
|
99
99
|
WidgetsSettingRefreshRate = "EditRefreshRate",
|
|
100
100
|
WidgetsSettingRestrictRecentImagesInput = "EditRestrictRecentImagesInput",
|
|
101
101
|
WidgetsSettingToggleBIMCompareDarkMode = "ToggleBIMDarkMode",
|
|
102
|
-
WidgetsSettingToggleBIMCompareTimeLine = "
|
|
103
|
-
WidgetsSettingToggleBIMCompareCalendar = "ToggleBIMCalendar",
|
|
102
|
+
WidgetsSettingToggleBIMCompareTimeLine = "ToggleBIMCalendar",
|
|
104
103
|
WidgetsSettingToggleDownload = "ToggleDownload",
|
|
105
104
|
WidgetsSettingToggleFullScreen = "ToggleFullScreen",
|
|
106
105
|
WidgetsSettingTogglePlayPause = "TogglePlayPause",
|
|
@@ -354,6 +353,7 @@ export declare enum AnalyticsEvent {
|
|
|
354
353
|
SitePlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
355
354
|
SitePlannerToggleFullscreen = "ToggleFullscreen",
|
|
356
355
|
SitePlannerToggleMapStyle = "ToggleMapStyle",
|
|
356
|
+
SitePlannerToggleRightSideMenu = "ToggleRightSideMenu",
|
|
357
357
|
SitePlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
358
358
|
SitePlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
359
359
|
SitePlannerZoomIn = "ZoomIn",
|
package/dist/types/copilot.d.ts
CHANGED
|
@@ -79,8 +79,7 @@ export declare enum CopilotSuggestion {
|
|
|
79
79
|
GateReport = "gate_report",
|
|
80
80
|
Weather = "weather",
|
|
81
81
|
Clip = "clip",
|
|
82
|
-
Timelapse = "timelapse"
|
|
83
|
-
Chart = "chart"
|
|
82
|
+
Timelapse = "timelapse"
|
|
84
83
|
}
|
|
85
84
|
export declare enum CopilotChatProvider {
|
|
86
85
|
Gemini = "gemini",
|
|
@@ -6,15 +6,6 @@ export type DetectionsFilters = {
|
|
|
6
6
|
labels: DetectionLabel | DetectionLabel[];
|
|
7
7
|
};
|
|
8
8
|
export type BBox = [number, number, number, number];
|
|
9
|
-
export type SelectedObjectPath = {
|
|
10
|
-
label: string;
|
|
11
|
-
trackId: string;
|
|
12
|
-
paths: Array<{
|
|
13
|
-
timestamp: number;
|
|
14
|
-
center: [number, number];
|
|
15
|
-
bbox: BBox;
|
|
16
|
-
}>;
|
|
17
|
-
};
|
|
18
9
|
export type Detection = {
|
|
19
10
|
bbox: BBox;
|
|
20
11
|
timestamp: string | Date;
|
|
@@ -46,10 +37,11 @@ export type SegmentsSimilaritySearchResult = {
|
|
|
46
37
|
};
|
|
47
38
|
export type SegmentsSimilaritySearchParams = {
|
|
48
39
|
cameraExid: CameraExid;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
40
|
+
segmentId: number;
|
|
41
|
+
leftInterval: TimelineDateInterval;
|
|
42
|
+
rightInterval: TimelineDateInterval;
|
|
43
|
+
maxDistance: number;
|
|
44
|
+
areaTolerance: number;
|
|
53
45
|
};
|
|
54
46
|
export type CountsParams = {
|
|
55
47
|
cameraExid: CameraExid;
|
|
@@ -40,56 +40,7 @@ export declare enum DetectionLabel {
|
|
|
40
40
|
TruckMixer = "truck-mixer",
|
|
41
41
|
TruckMountedMobileCrane = "truck-mounted-mobile-crane",
|
|
42
42
|
Unknown = "unknown",
|
|
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"
|
|
43
|
+
Worker = "worker"
|
|
93
44
|
}
|
|
94
45
|
export declare enum SegmentLabel {
|
|
95
46
|
AirCompressor = "air_compressor",
|
package/dist/types/kit.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule } from "@/types";
|
|
2
2
|
export type Kit = {
|
|
3
|
-
alarms: KitAlarm[];
|
|
4
3
|
countryCode: CountryCode;
|
|
5
4
|
countryId: CountryId;
|
|
6
5
|
countryName: string;
|
|
@@ -15,31 +14,18 @@ export type Kit = {
|
|
|
15
14
|
router: Partial<Router>;
|
|
16
15
|
serial: string;
|
|
17
16
|
status: KitStatus;
|
|
18
|
-
powerSchedule: Schedule;
|
|
19
17
|
};
|
|
20
18
|
export declare enum KitStatus {
|
|
21
19
|
New = "new",
|
|
22
20
|
Active = "active",
|
|
23
21
|
Deployed = "deployed",
|
|
22
|
+
OfflineScheduled = "offline_scheduled",
|
|
24
23
|
Decommissioned = "decommissioned"
|
|
25
24
|
}
|
|
26
25
|
export declare enum KitAlarm {
|
|
27
26
|
NvrOffline = "nvr_offline",
|
|
28
27
|
UnknownCamera = "unknown_camera",
|
|
29
|
-
NotRecordingCamera = "not_recording_camera"
|
|
30
|
-
OfflineScheduled = "offline_scheduled"
|
|
31
|
-
}
|
|
32
|
-
export declare enum KitMetricId {
|
|
33
|
-
BatteryStats = "battery",
|
|
34
|
-
PanelPowerStats = "panel_power"
|
|
35
|
-
}
|
|
36
|
-
export declare enum KitMetricPeriod {
|
|
37
|
-
Last15Minutes = "now-15m",
|
|
38
|
-
Last1Hour = "now-1h",
|
|
39
|
-
Last24Hours = "now-24h",
|
|
40
|
-
Last7Days = "now-7d",
|
|
41
|
-
Last30Days = "now-30d",
|
|
42
|
-
Last90Days = "now-90d"
|
|
28
|
+
NotRecordingCamera = "not_recording_camera"
|
|
43
29
|
}
|
|
44
30
|
export declare enum GrafanaMetricId {
|
|
45
31
|
SbcCpuLoad = "SbcCpuLoad",
|
|
@@ -87,7 +73,7 @@ export declare enum GrafanaMetricId {
|
|
|
87
73
|
ExNvrMemoryUsage = "ExNvrMemoryUsage",
|
|
88
74
|
ExNvrLogs = "ExNvrLogs"
|
|
89
75
|
}
|
|
90
|
-
export declare enum
|
|
76
|
+
export declare enum GrafanaChartType {
|
|
91
77
|
Stat = "stat",
|
|
92
78
|
Gauge = "gauge",
|
|
93
79
|
Graph = "graph",
|
|
@@ -114,7 +100,7 @@ export type GrafanaPanel = {
|
|
|
114
100
|
name: keyof GrafanaMetricId;
|
|
115
101
|
title: string;
|
|
116
102
|
description: string;
|
|
117
|
-
type:
|
|
103
|
+
type: GrafanaChartType;
|
|
118
104
|
datasource: GrafanaDataSource;
|
|
119
105
|
targets: GrafanaTarget[];
|
|
120
106
|
maxDataPoints?: number;
|
|
@@ -211,27 +197,17 @@ export type GrafanaFrame = {
|
|
|
211
197
|
nanos?: Array<number[] | null>;
|
|
212
198
|
};
|
|
213
199
|
};
|
|
214
|
-
export type KitMetricData = {
|
|
215
|
-
type: KitChartType;
|
|
216
|
-
chartProps?: Record<string, unknown>;
|
|
217
|
-
};
|
|
218
200
|
export type GrafanaQueryResult = {
|
|
219
201
|
status: number;
|
|
220
202
|
frames: GrafanaFrame[];
|
|
221
203
|
};
|
|
222
|
-
export type
|
|
204
|
+
export type GrafanaMetricResponse = {
|
|
223
205
|
results: {
|
|
224
206
|
[key: string]: GrafanaQueryResult;
|
|
225
207
|
};
|
|
208
|
+
type: GrafanaChartType;
|
|
226
209
|
};
|
|
227
|
-
export type
|
|
228
|
-
stats: EvercamStats[];
|
|
229
|
-
};
|
|
230
|
-
export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricData>;
|
|
231
|
-
export type EvercamStats = {
|
|
232
|
-
[k: string]: number | string;
|
|
233
|
-
timestamp: string;
|
|
234
|
-
};
|
|
210
|
+
export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricResponse>;
|
|
235
211
|
export type KitQueryParams = PaginationParams & {
|
|
236
212
|
name: string;
|
|
237
213
|
serial: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros,
|
|
1
|
+
import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, GrafanaChartType } from "@/types";
|
|
2
2
|
export declare enum ExNvrHealthCheckTaskId {
|
|
3
3
|
ExNvrLogin = "exNvrLogin",
|
|
4
4
|
ExNvrConfigCheck = "exNvrGetDeviceInfo",
|
|
@@ -113,7 +113,8 @@ export declare enum ExNvrMetricId {
|
|
|
113
113
|
RamUsage = "ram_usage",
|
|
114
114
|
SwapUsage = "swap_usage"
|
|
115
115
|
}
|
|
116
|
-
export type ExNvrMetric =
|
|
116
|
+
export type ExNvrMetric = {
|
|
117
117
|
metricId: ExNvrMetricId;
|
|
118
|
+
type: GrafanaChartType;
|
|
118
119
|
value: number;
|
|
119
120
|
};
|
package/dist/types/widget.d.ts
CHANGED
|
@@ -17,8 +17,6 @@ export declare enum RecordingsWidgetSettingsKeys {
|
|
|
17
17
|
HasDelay = "hasDelay",
|
|
18
18
|
Delay = "delay",
|
|
19
19
|
DelayUnit = "delayUnit",
|
|
20
|
-
HasRange = "hasRange",
|
|
21
|
-
DateRange = "dateRange",
|
|
22
20
|
Width = "width",
|
|
23
21
|
WidthResolution = "resolution",
|
|
24
22
|
Height = "height",
|
|
@@ -37,7 +35,6 @@ export declare enum LiveViewWidgetSettingsKeys {
|
|
|
37
35
|
}
|
|
38
36
|
export declare enum BimCompareWidgetSettingsKeys {
|
|
39
37
|
Timeline = "timeline",
|
|
40
|
-
Calendar = "calendar",
|
|
41
38
|
DarkMode = "darkMode",
|
|
42
39
|
Width = "width",
|
|
43
40
|
WidthResolution = "resolution",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/api",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-preview-fix-evercam-ui-publish-script-58a674953",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^22.13.
|
|
39
|
+
"@types/node": "^22.13.8",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
42
|
"vite-plugin-dts": "^4.5.3"
|