@evercam/api 1.0.0-6fbecaded → 1.0.0-89f82eef3
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 +27 -1
- package/dist/api/aiApi.d.ts +14 -1
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamApi.d.ts +1 -1
- package/dist/api/evercamLabsApi.d.ts +3 -7
- package/dist/api/ptzApi.d.ts +1 -1
- package/dist/api/weatherApi.d.ts +3 -3
- package/dist/index.js +349 -276
- 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/camera.d.ts +2 -1
- package/dist/types/copilot.d.ts +2 -1
- 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 +1 -0
- package/dist/types/kit.d.ts +32 -7
- package/dist/types/nvr.d.ts +2 -1
- package/dist/types/shared.d.ts +1 -1
- package/dist/types/siteAnalytics.d.ts +80 -1
- package/dist/types/sitePlanner.d.ts +6 -1
- package/dist/types/streaming.d.ts +2 -3
- package/dist/types/timelapse.d.ts +8 -0
- package/dist/types/widget.d.ts +7 -1
- package/package.json +4 -4
|
@@ -99,7 +99,8 @@ export declare enum AnalyticsEvent {
|
|
|
99
99
|
WidgetsSettingRefreshRate = "EditRefreshRate",
|
|
100
100
|
WidgetsSettingRestrictRecentImagesInput = "EditRestrictRecentImagesInput",
|
|
101
101
|
WidgetsSettingToggleBIMCompareDarkMode = "ToggleBIMDarkMode",
|
|
102
|
-
WidgetsSettingToggleBIMCompareTimeLine = "
|
|
102
|
+
WidgetsSettingToggleBIMCompareTimeLine = "ToggleBIMTimeline",
|
|
103
|
+
WidgetsSettingToggleBIMCompareCalendar = "ToggleBIMCalendar",
|
|
103
104
|
WidgetsSettingToggleDownload = "ToggleDownload",
|
|
104
105
|
WidgetsSettingToggleFullScreen = "ToggleFullScreen",
|
|
105
106
|
WidgetsSettingTogglePlayPause = "TogglePlayPause",
|
|
@@ -353,7 +354,6 @@ export declare enum AnalyticsEvent {
|
|
|
353
354
|
SitePlannerToggleCamerasLabel = "ToggleCamerasLabel",
|
|
354
355
|
SitePlannerToggleFullscreen = "ToggleFullscreen",
|
|
355
356
|
SitePlannerToggleMapStyle = "ToggleMapStyle",
|
|
356
|
-
SitePlannerToggleRightSideMenu = "ToggleRightSideMenu",
|
|
357
357
|
SitePlannerToggleSaveSessionDialog = "ToggleSaveSessionDialog",
|
|
358
358
|
SitePlannerUploadSitePlanDrawing = "UploadSitePlanDrawing",
|
|
359
359
|
SitePlannerZoomIn = "ZoomIn",
|
package/dist/types/camera.d.ts
CHANGED
|
@@ -185,7 +185,8 @@ export declare enum CameraFeatureFlag {
|
|
|
185
185
|
PTZ = "ptz",
|
|
186
186
|
ObjectDetection = "object_detection",
|
|
187
187
|
Segmentation = "segmentation",
|
|
188
|
-
SegmentationAutoLabelling = "segmentation_auto_labelling"
|
|
188
|
+
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
189
|
+
PpeMonitoring = "ppe_monitoring"
|
|
189
190
|
}
|
|
190
191
|
export type CameraLogsRequestPayload = {
|
|
191
192
|
limit: number;
|
package/dist/types/copilot.d.ts
CHANGED
|
@@ -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",
|
|
@@ -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",
|
|
@@ -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
package/dist/types/kit.d.ts
CHANGED
|
@@ -15,18 +15,33 @@ export type Kit = {
|
|
|
15
15
|
router: Partial<Router>;
|
|
16
16
|
serial: string;
|
|
17
17
|
status: KitStatus;
|
|
18
|
+
powerSchedule: Schedule;
|
|
18
19
|
};
|
|
19
20
|
export declare enum KitStatus {
|
|
20
21
|
New = "new",
|
|
21
22
|
Active = "active",
|
|
22
23
|
Deployed = "deployed",
|
|
23
|
-
OfflineScheduled = "offline_scheduled",
|
|
24
24
|
Decommissioned = "decommissioned"
|
|
25
25
|
}
|
|
26
26
|
export declare enum KitAlarm {
|
|
27
27
|
NvrOffline = "nvr_offline",
|
|
28
28
|
UnknownCamera = "unknown_camera",
|
|
29
|
-
NotRecordingCamera = "not_recording_camera"
|
|
29
|
+
NotRecordingCamera = "not_recording_camera",
|
|
30
|
+
OfflineScheduled = "offline_scheduled",
|
|
31
|
+
FullSD = "full_sd",
|
|
32
|
+
FullStorage = "full_storage"
|
|
33
|
+
}
|
|
34
|
+
export declare enum KitMetricId {
|
|
35
|
+
BatteryStats = "battery",
|
|
36
|
+
PanelPowerStats = "panel_power"
|
|
37
|
+
}
|
|
38
|
+
export declare enum KitMetricPeriod {
|
|
39
|
+
Last15Minutes = "now-15m",
|
|
40
|
+
Last1Hour = "now-1h",
|
|
41
|
+
Last24Hours = "now-24h",
|
|
42
|
+
Last7Days = "now-7d",
|
|
43
|
+
Last30Days = "now-30d",
|
|
44
|
+
Last90Days = "now-90d"
|
|
30
45
|
}
|
|
31
46
|
export declare enum GrafanaMetricId {
|
|
32
47
|
SbcCpuLoad = "SbcCpuLoad",
|
|
@@ -74,7 +89,7 @@ export declare enum GrafanaMetricId {
|
|
|
74
89
|
ExNvrMemoryUsage = "ExNvrMemoryUsage",
|
|
75
90
|
ExNvrLogs = "ExNvrLogs"
|
|
76
91
|
}
|
|
77
|
-
export declare enum
|
|
92
|
+
export declare enum KitChartType {
|
|
78
93
|
Stat = "stat",
|
|
79
94
|
Gauge = "gauge",
|
|
80
95
|
Graph = "graph",
|
|
@@ -101,7 +116,7 @@ export type GrafanaPanel = {
|
|
|
101
116
|
name: keyof GrafanaMetricId;
|
|
102
117
|
title: string;
|
|
103
118
|
description: string;
|
|
104
|
-
type:
|
|
119
|
+
type: KitChartType;
|
|
105
120
|
datasource: GrafanaDataSource;
|
|
106
121
|
targets: GrafanaTarget[];
|
|
107
122
|
maxDataPoints?: number;
|
|
@@ -198,17 +213,27 @@ export type GrafanaFrame = {
|
|
|
198
213
|
nanos?: Array<number[] | null>;
|
|
199
214
|
};
|
|
200
215
|
};
|
|
216
|
+
export type KitMetricData = {
|
|
217
|
+
type: KitChartType;
|
|
218
|
+
chartProps?: Record<string, unknown>;
|
|
219
|
+
};
|
|
201
220
|
export type GrafanaQueryResult = {
|
|
202
221
|
status: number;
|
|
203
222
|
frames: GrafanaFrame[];
|
|
204
223
|
};
|
|
205
|
-
export type
|
|
224
|
+
export type GrafanaMetricData = KitMetricData & {
|
|
206
225
|
results: {
|
|
207
226
|
[key: string]: GrafanaQueryResult;
|
|
208
227
|
};
|
|
209
|
-
type: GrafanaChartType;
|
|
210
228
|
};
|
|
211
|
-
export type
|
|
229
|
+
export type EvercamMetricData = KitMetricData & {
|
|
230
|
+
stats: EvercamStats[];
|
|
231
|
+
};
|
|
232
|
+
export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricData>;
|
|
233
|
+
export type EvercamStats = {
|
|
234
|
+
[k: string]: number | string;
|
|
235
|
+
timestamp: string;
|
|
236
|
+
};
|
|
212
237
|
export type KitQueryParams = PaginationParams & {
|
|
213
238
|
name: string;
|
|
214
239
|
serial: string;
|
package/dist/types/nvr.d.ts
CHANGED
package/dist/types/shared.d.ts
CHANGED
|
@@ -1,5 +1,84 @@
|
|
|
1
|
+
import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
|
|
1
2
|
export declare enum SiteAnalyticsMode {
|
|
2
|
-
Cranes = "cranes",
|
|
3
3
|
Detections = "detections",
|
|
4
4
|
Segments = "segments"
|
|
5
5
|
}
|
|
6
|
+
export type SmartSearchOptionData = {
|
|
7
|
+
id?: string;
|
|
8
|
+
type: SmartSearchQueryComponentType;
|
|
9
|
+
value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
|
|
10
|
+
};
|
|
11
|
+
export type SmartSearchQueryPart = SmartSearchOptionData | SmartSearchQueryPart[];
|
|
12
|
+
export declare enum SmartSearchQueryComponentType {
|
|
13
|
+
Condition = "condition",
|
|
14
|
+
Object = "object",
|
|
15
|
+
Area = "in_area",
|
|
16
|
+
Time = "time",
|
|
17
|
+
Operator = "operator"
|
|
18
|
+
}
|
|
19
|
+
export type SmartSearchQueryComponentData = {
|
|
20
|
+
id: string;
|
|
21
|
+
type: SmartSearchQueryComponentType;
|
|
22
|
+
parts: SmartSearchQueryPart[];
|
|
23
|
+
};
|
|
24
|
+
export declare enum SmartSearchCondition {
|
|
25
|
+
InArea = "in_area",
|
|
26
|
+
Intersects = "intersects",
|
|
27
|
+
Time = "time"
|
|
28
|
+
}
|
|
29
|
+
export type SmartSearchConditionData = {
|
|
30
|
+
condition: SmartSearchCondition;
|
|
31
|
+
value: string | BoundingBox | DetectionLabel | Date;
|
|
32
|
+
};
|
|
33
|
+
export type SmartSearchQuery = {
|
|
34
|
+
returnTargets: SmartSearchQueryTargets[];
|
|
35
|
+
rulesLogic: SmartSearchOperatorType;
|
|
36
|
+
rules: {
|
|
37
|
+
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
|
+
}[];
|
|
51
|
+
}[];
|
|
52
|
+
returnType: SmartSearchQueryReturnType;
|
|
53
|
+
};
|
|
54
|
+
export declare enum SmartSearchQueryTargets {
|
|
55
|
+
Tracking = "tracking",
|
|
56
|
+
Segments = "segments"
|
|
57
|
+
}
|
|
58
|
+
export declare enum SmartSearchQueryReturnType {
|
|
59
|
+
All = "all",
|
|
60
|
+
FirstLastSeen = "first_last_seen"
|
|
61
|
+
}
|
|
62
|
+
export declare enum SmartSearchOperatorType {
|
|
63
|
+
And = "AND",
|
|
64
|
+
Or = "OR"
|
|
65
|
+
}
|
|
66
|
+
export declare enum SmartSearchQueryOperators {
|
|
67
|
+
Near = "near",
|
|
68
|
+
Far = "far",
|
|
69
|
+
Intersects = "intersects",
|
|
70
|
+
DoesNotIntersect = "does_not_intersect",
|
|
71
|
+
Inside = "inside",
|
|
72
|
+
Outside = "outside",
|
|
73
|
+
DistanceBelow = "distance_below",
|
|
74
|
+
DistanceAbove = "distance_above",
|
|
75
|
+
Area = "in_area"
|
|
76
|
+
}
|
|
77
|
+
export declare enum SmartSearchQueryConditionTypes {
|
|
78
|
+
Selection = "selection",
|
|
79
|
+
Spatial = "spatial",
|
|
80
|
+
Area = "area",
|
|
81
|
+
Iou = "iou",
|
|
82
|
+
Near = "near",
|
|
83
|
+
Far = "far"
|
|
84
|
+
}
|
|
@@ -3,7 +3,12 @@ export declare enum EMapTypes {
|
|
|
3
3
|
Satellite = "Satellite",
|
|
4
4
|
Street = "Street",
|
|
5
5
|
GoogleSatellite = "hybrid",
|
|
6
|
-
GoogleStreet = "roadmap"
|
|
6
|
+
GoogleStreet = "roadmap",
|
|
7
|
+
GoogleTerrain = "terrain"
|
|
8
|
+
}
|
|
9
|
+
export declare enum EMarkers {
|
|
10
|
+
CameraMarker = "cameraMarker",
|
|
11
|
+
ThreeSixtyMarker = "threeSixtyMarkers"
|
|
7
12
|
}
|
|
8
13
|
export declare enum EPageType {
|
|
9
14
|
List = "list",
|
|
@@ -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, 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
|
};
|
|
@@ -36,6 +36,14 @@ export declare enum TimelapsePeriod {
|
|
|
36
36
|
WholeProject = "whole_project",
|
|
37
37
|
Custom = "custom"
|
|
38
38
|
}
|
|
39
|
+
export declare enum TimelapseType {
|
|
40
|
+
Hour = "hour",
|
|
41
|
+
Day = "day",
|
|
42
|
+
Week = "week",
|
|
43
|
+
Month = "month",
|
|
44
|
+
Year = "year",
|
|
45
|
+
FullProject = "full_project"
|
|
46
|
+
}
|
|
39
47
|
export type TimelapseFilterQueryParams = {
|
|
40
48
|
from?: DateType;
|
|
41
49
|
to?: DateType;
|
package/dist/types/widget.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DateTime } from "@evercam/api/types/time";
|
|
2
|
+
import { PaginationParams } from "@/types";
|
|
2
3
|
import { VideoWallPresetItemConfig } from "@evercam/api/types/videoWall";
|
|
3
4
|
export declare enum DelayUnit {
|
|
4
5
|
Minute = "minute",
|
|
@@ -17,6 +18,8 @@ export declare enum RecordingsWidgetSettingsKeys {
|
|
|
17
18
|
HasDelay = "hasDelay",
|
|
18
19
|
Delay = "delay",
|
|
19
20
|
DelayUnit = "delayUnit",
|
|
21
|
+
HasRange = "hasRange",
|
|
22
|
+
DateRange = "dateRange",
|
|
20
23
|
Width = "width",
|
|
21
24
|
WidthResolution = "resolution",
|
|
22
25
|
Height = "height",
|
|
@@ -35,6 +38,7 @@ export declare enum LiveViewWidgetSettingsKeys {
|
|
|
35
38
|
}
|
|
36
39
|
export declare enum BimCompareWidgetSettingsKeys {
|
|
37
40
|
Timeline = "timeline",
|
|
41
|
+
Calendar = "calendar",
|
|
38
42
|
DarkMode = "darkMode",
|
|
39
43
|
Width = "width",
|
|
40
44
|
WidthResolution = "resolution",
|
|
@@ -88,7 +92,7 @@ export declare const RessourceByType: {
|
|
|
88
92
|
camera: WidgetType[];
|
|
89
93
|
project: WidgetType[];
|
|
90
94
|
};
|
|
91
|
-
export type WidgetsListRequestPayload = {
|
|
95
|
+
export type WidgetsListRequestPayload = PaginationParams & {
|
|
92
96
|
userId: number;
|
|
93
97
|
projectId: number;
|
|
94
98
|
cameraId: number;
|
|
@@ -120,6 +124,8 @@ export type Widget = {
|
|
|
120
124
|
user: {
|
|
121
125
|
id: number;
|
|
122
126
|
email: string;
|
|
127
|
+
firstname: string;
|
|
128
|
+
lastname: string;
|
|
123
129
|
};
|
|
124
130
|
insertedAt: DateTime;
|
|
125
131
|
updatedAt: DateTime;
|
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-89f82eef3",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"private": false,
|
|
12
12
|
"type": "module",
|
|
13
13
|
"main": "dist/index.umd.js",
|
|
14
|
-
"module": "dist/index.
|
|
14
|
+
"module": "dist/index.js",
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|
|
18
|
-
"import": "./dist/index.
|
|
18
|
+
"import": "./dist/index.js",
|
|
19
19
|
"require": "./dist/index.umd.js"
|
|
20
20
|
},
|
|
21
21
|
"./types": "./dist/src/types.ts"
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^22.
|
|
39
|
+
"@types/node": "^22.14.0",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
42
|
"vite-plugin-dts": "^4.5.3"
|