@evercam/api 1.0.0-df20a9f5f → 1.0.0-f6f982c6c
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 +1 -20
- package/dist/api/aiApi.d.ts +1 -14
- package/dist/api/evercamApi.d.ts +1 -1
- package/dist/api/evercamLabsApi.d.ts +5 -1
- package/dist/api/ptzApi.d.ts +1 -1
- package/dist/index.js +250 -316
- 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 +6 -17
- package/dist/types/gateReport.d.ts +1 -50
- package/dist/types/index.d.ts +0 -1
- package/dist/types/kit.d.ts +9 -10
- package/dist/types/nvr.d.ts +1 -2
- package/dist/types/shared.d.ts +1 -1
- package/dist/types/siteAnalytics.d.ts +0 -80
- package/dist/types/sitePlanner.d.ts +0 -3
- package/dist/types/widget.d.ts +1 -7
- package/package.json +2 -2
- package/dist/types/hdd.d.ts +0 -63
|
@@ -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",
|
|
@@ -4,18 +4,8 @@ export type DetectionsFilters = {
|
|
|
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
|
-
}>;
|
|
18
7
|
};
|
|
8
|
+
export type BBox = [number, number, number, number];
|
|
19
9
|
export type Detection = {
|
|
20
10
|
bbox: BBox;
|
|
21
11
|
timestamp: string | Date;
|
|
@@ -47,18 +37,17 @@ export type SegmentsSimilaritySearchResult = {
|
|
|
47
37
|
};
|
|
48
38
|
export type SegmentsSimilaritySearchParams = {
|
|
49
39
|
cameraExid: CameraExid;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
40
|
+
segmentId: number;
|
|
41
|
+
leftInterval: TimelineDateInterval;
|
|
42
|
+
rightInterval: TimelineDateInterval;
|
|
43
|
+
maxDistance: number;
|
|
44
|
+
areaTolerance: number;
|
|
54
45
|
};
|
|
55
46
|
export type CountsParams = {
|
|
56
47
|
cameraExid: CameraExid;
|
|
57
48
|
fromDate: string | Date;
|
|
58
49
|
toDate: string | Date;
|
|
59
50
|
precision: TimelinePrecision;
|
|
60
|
-
trackId: number;
|
|
61
|
-
labels: DetectionLabel | DetectionLabel[];
|
|
62
51
|
};
|
|
63
52
|
export type CountByPeriod = {
|
|
64
53
|
date: string | Date;
|
|
@@ -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/index.d.ts
CHANGED
package/dist/types/kit.d.ts
CHANGED
|
@@ -21,27 +21,26 @@ export declare enum KitStatus {
|
|
|
21
21
|
New = "new",
|
|
22
22
|
Active = "active",
|
|
23
23
|
Deployed = "deployed",
|
|
24
|
+
OfflineScheduled = "offline_scheduled",
|
|
24
25
|
Decommissioned = "decommissioned"
|
|
25
26
|
}
|
|
26
27
|
export declare enum KitAlarm {
|
|
27
28
|
NvrOffline = "nvr_offline",
|
|
28
29
|
UnknownCamera = "unknown_camera",
|
|
29
|
-
NotRecordingCamera = "not_recording_camera"
|
|
30
|
-
OfflineScheduled = "offline_scheduled",
|
|
31
|
-
FullSD = "full_sd",
|
|
32
|
-
FullStorage = "full_storage"
|
|
30
|
+
NotRecordingCamera = "not_recording_camera"
|
|
33
31
|
}
|
|
34
32
|
export declare enum KitMetricId {
|
|
35
|
-
|
|
36
|
-
PanelPowerStats = "panel_power"
|
|
33
|
+
Battery = "battery"
|
|
37
34
|
}
|
|
38
35
|
export declare enum KitMetricPeriod {
|
|
36
|
+
Last5Minutes = "now-5m",
|
|
39
37
|
Last15Minutes = "now-15m",
|
|
38
|
+
Last30Minutes = "now-30m",
|
|
40
39
|
Last1Hour = "now-1h",
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
Last3Hours = "now-3h",
|
|
41
|
+
Last6Hours = "now-6h",
|
|
42
|
+
Last12Hours = "now-12h",
|
|
43
|
+
Last24Hours = "now-24h"
|
|
45
44
|
}
|
|
46
45
|
export declare enum GrafanaMetricId {
|
|
47
46
|
SbcCpuLoad = "SbcCpuLoad",
|
package/dist/types/nvr.d.ts
CHANGED
package/dist/types/shared.d.ts
CHANGED
|
@@ -1,85 +1,5 @@
|
|
|
1
|
-
import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
|
|
2
1
|
export declare enum SiteAnalyticsMode {
|
|
3
2
|
Cranes = "cranes",
|
|
4
3
|
Detections = "detections",
|
|
5
4
|
Segments = "segments"
|
|
6
5
|
}
|
|
7
|
-
export type SmartSearchOptionData = {
|
|
8
|
-
id?: string;
|
|
9
|
-
type: SmartSearchQueryComponentType;
|
|
10
|
-
value: DetectionLabel | SmartSearchOperatorType | SmartSearchConditionData;
|
|
11
|
-
};
|
|
12
|
-
export type SmartSearchQueryPart = SmartSearchOptionData | SmartSearchQueryPart[];
|
|
13
|
-
export declare enum SmartSearchQueryComponentType {
|
|
14
|
-
Condition = "condition",
|
|
15
|
-
Object = "object",
|
|
16
|
-
Area = "in_area",
|
|
17
|
-
Time = "time",
|
|
18
|
-
Operator = "operator"
|
|
19
|
-
}
|
|
20
|
-
export type SmartSearchQueryComponentData = {
|
|
21
|
-
id: string;
|
|
22
|
-
type: SmartSearchQueryComponentType;
|
|
23
|
-
parts: SmartSearchQueryPart[];
|
|
24
|
-
};
|
|
25
|
-
export declare enum SmartSearchCondition {
|
|
26
|
-
InArea = "in_area",
|
|
27
|
-
Intersects = "intersects",
|
|
28
|
-
Time = "time"
|
|
29
|
-
}
|
|
30
|
-
export type SmartSearchConditionData = {
|
|
31
|
-
condition: SmartSearchCondition;
|
|
32
|
-
value: string | BoundingBox | DetectionLabel | Date;
|
|
33
|
-
};
|
|
34
|
-
export type SmartSearchQuery = {
|
|
35
|
-
returnTargets: SmartSearchQueryTargets[];
|
|
36
|
-
rulesLogic: SmartSearchOperatorType;
|
|
37
|
-
rules: {
|
|
38
|
-
logic: SmartSearchOperatorType;
|
|
39
|
-
conditions: {
|
|
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
|
-
}[];
|
|
52
|
-
}[];
|
|
53
|
-
returnType: SmartSearchQueryReturnType;
|
|
54
|
-
};
|
|
55
|
-
export declare enum SmartSearchQueryTargets {
|
|
56
|
-
Tracking = "tracking",
|
|
57
|
-
Segments = "segments"
|
|
58
|
-
}
|
|
59
|
-
export declare enum SmartSearchQueryReturnType {
|
|
60
|
-
All = "all",
|
|
61
|
-
FirstLastSeen = "first_last_seen"
|
|
62
|
-
}
|
|
63
|
-
export declare enum SmartSearchOperatorType {
|
|
64
|
-
And = "AND",
|
|
65
|
-
Or = "OR"
|
|
66
|
-
}
|
|
67
|
-
export declare enum SmartSearchQueryOperators {
|
|
68
|
-
Near = "near",
|
|
69
|
-
Far = "far",
|
|
70
|
-
Intersects = "intersects",
|
|
71
|
-
DoesNotIntersect = "does_not_intersect",
|
|
72
|
-
Inside = "inside",
|
|
73
|
-
Outside = "outside",
|
|
74
|
-
DistanceBelow = "distance_below",
|
|
75
|
-
DistanceAbove = "distance_above",
|
|
76
|
-
Area = "in_area"
|
|
77
|
-
}
|
|
78
|
-
export declare enum SmartSearchQueryConditionTypes {
|
|
79
|
-
Selection = "selection",
|
|
80
|
-
Spatial = "spatial",
|
|
81
|
-
Area = "area",
|
|
82
|
-
Iou = "iou",
|
|
83
|
-
Near = "near",
|
|
84
|
-
Far = "far"
|
|
85
|
-
}
|
package/dist/types/widget.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { DateTime } from "@evercam/api/types/time";
|
|
2
|
-
import { PaginationParams } from "@/types";
|
|
3
2
|
import { VideoWallPresetItemConfig } from "@evercam/api/types/videoWall";
|
|
4
3
|
export declare enum DelayUnit {
|
|
5
4
|
Minute = "minute",
|
|
@@ -18,8 +17,6 @@ export declare enum RecordingsWidgetSettingsKeys {
|
|
|
18
17
|
HasDelay = "hasDelay",
|
|
19
18
|
Delay = "delay",
|
|
20
19
|
DelayUnit = "delayUnit",
|
|
21
|
-
HasRange = "hasRange",
|
|
22
|
-
DateRange = "dateRange",
|
|
23
20
|
Width = "width",
|
|
24
21
|
WidthResolution = "resolution",
|
|
25
22
|
Height = "height",
|
|
@@ -38,7 +35,6 @@ export declare enum LiveViewWidgetSettingsKeys {
|
|
|
38
35
|
}
|
|
39
36
|
export declare enum BimCompareWidgetSettingsKeys {
|
|
40
37
|
Timeline = "timeline",
|
|
41
|
-
Calendar = "calendar",
|
|
42
38
|
DarkMode = "darkMode",
|
|
43
39
|
Width = "width",
|
|
44
40
|
WidthResolution = "resolution",
|
|
@@ -92,7 +88,7 @@ export declare const RessourceByType: {
|
|
|
92
88
|
camera: WidgetType[];
|
|
93
89
|
project: WidgetType[];
|
|
94
90
|
};
|
|
95
|
-
export type WidgetsListRequestPayload =
|
|
91
|
+
export type WidgetsListRequestPayload = {
|
|
96
92
|
userId: number;
|
|
97
93
|
projectId: number;
|
|
98
94
|
cameraId: number;
|
|
@@ -124,8 +120,6 @@ export type Widget = {
|
|
|
124
120
|
user: {
|
|
125
121
|
id: number;
|
|
126
122
|
email: string;
|
|
127
|
-
firstname: string;
|
|
128
|
-
lastname: string;
|
|
129
123
|
};
|
|
130
124
|
insertedAt: DateTime;
|
|
131
125
|
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-f6f982c6c",
|
|
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"
|
package/dist/types/hdd.d.ts
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
};
|