@evercam/api 1.0.0-a405572ff → 1.0.0-aa812f55e

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.
@@ -99,7 +99,8 @@ export declare enum AnalyticsEvent {
99
99
  WidgetsSettingRefreshRate = "EditRefreshRate",
100
100
  WidgetsSettingRestrictRecentImagesInput = "EditRestrictRecentImagesInput",
101
101
  WidgetsSettingToggleBIMCompareDarkMode = "ToggleBIMDarkMode",
102
- WidgetsSettingToggleBIMCompareTimeLine = "ToggleBIMCalendar",
102
+ WidgetsSettingToggleBIMCompareTimeLine = "ToggleBIMTimeline",
103
+ WidgetsSettingToggleBIMCompareCalendar = "ToggleBIMCalendar",
103
104
  WidgetsSettingToggleDownload = "ToggleDownload",
104
105
  WidgetsSettingToggleFullScreen = "ToggleFullScreen",
105
106
  WidgetsSettingTogglePlayPause = "TogglePlayPause",
@@ -79,7 +79,8 @@ export declare enum CopilotSuggestion {
79
79
  GateReport = "gate_report",
80
80
  Weather = "weather",
81
81
  Clip = "clip",
82
- Timelapse = "timelapse"
82
+ Timelapse = "timelapse",
83
+ Chart = "chart"
83
84
  }
84
85
  export declare enum CopilotChatProvider {
85
86
  Gemini = "gemini",
@@ -6,6 +6,15 @@ 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
+ };
9
18
  export type Detection = {
10
19
  bbox: BBox;
11
20
  timestamp: string | Date;
@@ -37,11 +46,10 @@ export type SegmentsSimilaritySearchResult = {
37
46
  };
38
47
  export type SegmentsSimilaritySearchParams = {
39
48
  cameraExid: CameraExid;
40
- segmentId: number;
41
- leftInterval: TimelineDateInterval;
42
- rightInterval: TimelineDateInterval;
43
- maxDistance: number;
44
- areaTolerance: number;
49
+ referenceId: string;
50
+ iouThreshold?: number;
51
+ fromDate: string;
52
+ toDate: string;
45
53
  };
46
54
  export type CountsParams = {
47
55
  cameraExid: CameraExid;
@@ -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",
@@ -1,5 +1,6 @@
1
1
  import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule } from "@/types";
2
2
  export type Kit = {
3
+ alarms: KitAlarm[];
3
4
  countryCode: CountryCode;
4
5
  countryId: CountryId;
5
6
  countryName: string;
@@ -14,18 +15,31 @@ export type Kit = {
14
15
  router: Partial<Router>;
15
16
  serial: string;
16
17
  status: KitStatus;
18
+ powerSchedule: Schedule;
17
19
  };
18
20
  export declare enum KitStatus {
19
21
  New = "new",
20
22
  Active = "active",
21
23
  Deployed = "deployed",
22
- OfflineScheduled = "offline_scheduled",
23
24
  Decommissioned = "decommissioned"
24
25
  }
25
26
  export declare enum KitAlarm {
26
27
  NvrOffline = "nvr_offline",
27
28
  UnknownCamera = "unknown_camera",
28
- NotRecordingCamera = "not_recording_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"
29
43
  }
30
44
  export declare enum GrafanaMetricId {
31
45
  SbcCpuLoad = "SbcCpuLoad",
@@ -73,7 +87,7 @@ export declare enum GrafanaMetricId {
73
87
  ExNvrMemoryUsage = "ExNvrMemoryUsage",
74
88
  ExNvrLogs = "ExNvrLogs"
75
89
  }
76
- export declare enum GrafanaChartType {
90
+ export declare enum KitChartType {
77
91
  Stat = "stat",
78
92
  Gauge = "gauge",
79
93
  Graph = "graph",
@@ -100,7 +114,7 @@ export type GrafanaPanel = {
100
114
  name: keyof GrafanaMetricId;
101
115
  title: string;
102
116
  description: string;
103
- type: GrafanaChartType;
117
+ type: KitChartType;
104
118
  datasource: GrafanaDataSource;
105
119
  targets: GrafanaTarget[];
106
120
  maxDataPoints?: number;
@@ -197,17 +211,27 @@ export type GrafanaFrame = {
197
211
  nanos?: Array<number[] | null>;
198
212
  };
199
213
  };
214
+ export type KitMetricData = {
215
+ type: KitChartType;
216
+ chartProps?: Record<string, unknown>;
217
+ };
200
218
  export type GrafanaQueryResult = {
201
219
  status: number;
202
220
  frames: GrafanaFrame[];
203
221
  };
204
- export type GrafanaMetricResponse = {
222
+ export type GrafanaMetricData = KitMetricData & {
205
223
  results: {
206
224
  [key: string]: GrafanaQueryResult;
207
225
  };
208
- type: GrafanaChartType;
209
226
  };
210
- export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricResponse>;
227
+ export type EvercamMetricData = KitMetricData & {
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
+ };
211
235
  export type KitQueryParams = PaginationParams & {
212
236
  name: string;
213
237
  serial: string;
@@ -1,4 +1,4 @@
1
- import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, GrafanaChartType } from "@/types";
1
+ import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, KitMetricData } from "@/types";
2
2
  export declare enum ExNvrHealthCheckTaskId {
3
3
  ExNvrLogin = "exNvrLogin",
4
4
  ExNvrConfigCheck = "exNvrGetDeviceInfo",
@@ -113,8 +113,7 @@ export declare enum ExNvrMetricId {
113
113
  RamUsage = "ram_usage",
114
114
  SwapUsage = "swap_usage"
115
115
  }
116
- export type ExNvrMetric = {
116
+ export type ExNvrMetric = KitMetricData & {
117
117
  metricId: ExNvrMetricId;
118
- type: GrafanaChartType;
119
118
  value: number;
120
119
  };
@@ -35,6 +35,7 @@ export declare enum LiveViewWidgetSettingsKeys {
35
35
  }
36
36
  export declare enum BimCompareWidgetSettingsKeys {
37
37
  Timeline = "timeline",
38
+ Calendar = "calendar",
38
39
  DarkMode = "darkMode",
39
40
  Width = "width",
40
41
  WidthResolution = "resolution",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-a405572ff",
3
+ "version": "1.0.0-aa812f55e",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -32,13 +32,14 @@
32
32
  "typecheck": "tsc --noEmit",
33
33
  "build:types": "tsc --declaration --emitDeclarationOnly",
34
34
  "build": "yarn clean && vite build && yarn build:types",
35
- "ci": "(cd ../..; yarn ci)"
35
+ "ci": "(cd ../..; yarn ci)",
36
+ "publish-api": "cd ../.. && yarn publish-api"
36
37
  },
37
38
  "devDependencies": {
38
- "@types/node": "^22.13.5",
39
+ "@types/node": "^22.13.10",
39
40
  "vite": "latest",
40
41
  "vite-plugin-commonjs": "^0.10.3",
41
- "vite-plugin-dts": "^4.3.0"
42
+ "vite-plugin-dts": "^4.5.3"
42
43
  },
43
44
  "peerDependencies": {
44
45
  "axios": "^1.7.7",