@evercam/api 1.0.0-641518e8f → 1.0.0-68a5f1f7b
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/README.md +2 -0
- package/dist/api/adminApi.d.ts +44 -24
- package/dist/api/aiApi.d.ts +38 -1
- package/dist/api/client/interceptors.d.ts +2 -1
- package/dist/api/evercamApi.d.ts +19 -14
- package/dist/api/evercamLabsApi.d.ts +5 -6
- package/dist/api/ingestApi.d.ts +2 -1
- package/dist/api/ptzApi.d.ts +1 -1
- package/dist/api/weatherApi.d.ts +7 -23
- package/dist/index.js +782 -660
- 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/360.d.ts +2 -2
- package/dist/types/analytics.d.ts +26 -58
- package/dist/types/anpr.d.ts +10 -7
- package/dist/types/axios.d.ts +0 -1
- package/dist/types/camera.d.ts +7 -3
- package/dist/types/connector.d.ts +2 -1
- package/dist/types/coolify.d.ts +18 -0
- package/dist/types/copilot.d.ts +9 -8
- package/dist/types/detections.d.ts +23 -9
- package/dist/types/hdd.d.ts +63 -0
- package/dist/types/index.d.ts +5 -1
- package/dist/types/kit.d.ts +11 -2
- package/dist/types/nvr.d.ts +2 -1
- package/dist/types/{sitePlanner.d.ts → planner.d.ts} +6 -1
- package/dist/types/project.d.ts +5 -2
- package/dist/types/shared.d.ts +2 -11
- package/dist/types/shares.d.ts +5 -1
- package/dist/types/siteAnalytics.d.ts +80 -1
- package/dist/types/streaming.d.ts +1 -2
- package/dist/types/tag.d.ts +12 -0
- package/dist/types/timelapse.d.ts +15 -0
- package/dist/types/weather.d.ts +6 -2
- package/dist/types/widget.d.ts +10 -5
- package/dist/types/xweather.d.ts +12 -0
- package/package.json +5 -5
|
@@ -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
|
+
}
|
|
@@ -110,8 +110,7 @@ export type ExNvrSystemStatus = {
|
|
|
110
110
|
};
|
|
111
111
|
export declare enum ExNvrMetricId {
|
|
112
112
|
CpuLoad = "cpu_load",
|
|
113
|
-
RamUsage = "ram_usage"
|
|
114
|
-
SwapUsage = "swap_usage"
|
|
113
|
+
RamUsage = "ram_usage"
|
|
115
114
|
}
|
|
116
115
|
export type ExNvrMetric = KitMetricData & {
|
|
117
116
|
metricId: ExNvrMetricId;
|
|
@@ -15,6 +15,13 @@ export type TimelapseVideoOptions = {
|
|
|
15
15
|
removeTimestamp: boolean;
|
|
16
16
|
smoothTransition: boolean;
|
|
17
17
|
evercamWatermark: boolean;
|
|
18
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
19
|
+
};
|
|
20
|
+
export type TimestampPositionCoordinates = {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
w: number;
|
|
24
|
+
h: number;
|
|
18
25
|
};
|
|
19
26
|
export type TimelapseLogoOptions = {
|
|
20
27
|
id: number;
|
|
@@ -36,6 +43,14 @@ export declare enum TimelapsePeriod {
|
|
|
36
43
|
WholeProject = "whole_project",
|
|
37
44
|
Custom = "custom"
|
|
38
45
|
}
|
|
46
|
+
export declare enum TimelapseType {
|
|
47
|
+
Hour = "hour",
|
|
48
|
+
Day = "day",
|
|
49
|
+
Week = "week",
|
|
50
|
+
Month = "month",
|
|
51
|
+
Year = "year",
|
|
52
|
+
FullProject = "full_project"
|
|
53
|
+
}
|
|
39
54
|
export type TimelapseFilterQueryParams = {
|
|
40
55
|
from?: DateType;
|
|
41
56
|
to?: DateType;
|
package/dist/types/weather.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Date_YYYY_MM_DD, DateType } from "@/types/time";
|
|
2
2
|
export type HistoryWeatherRequestPayload = {
|
|
3
3
|
day: string;
|
|
4
|
+
provider: WeatherProvider;
|
|
5
|
+
};
|
|
6
|
+
export type CurrentWeatherRequestPayload = {
|
|
7
|
+
provider: WeatherProvider;
|
|
4
8
|
};
|
|
5
9
|
export type WeatherResponsePayload = Array<{
|
|
6
10
|
hour?: number;
|
|
@@ -26,8 +30,8 @@ export type HourlyReading = {
|
|
|
26
30
|
"3h"?: number;
|
|
27
31
|
};
|
|
28
32
|
export declare enum WeatherProvider {
|
|
29
|
-
WeatherStack = "
|
|
30
|
-
|
|
33
|
+
WeatherStack = "weather_stack",
|
|
34
|
+
XWeather = "xweather"
|
|
31
35
|
}
|
|
32
36
|
export type Weatherstatus = {
|
|
33
37
|
description: string;
|
package/dist/types/widget.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
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
|
-
Minute = "
|
|
5
|
-
Hour = "
|
|
6
|
-
Day = "
|
|
5
|
+
Minute = "Minutes",
|
|
6
|
+
Hour = "Hours",
|
|
7
|
+
Day = "Days"
|
|
7
8
|
}
|
|
8
9
|
export declare enum CommonWidgetSettingsKeys {
|
|
9
10
|
Width = "width",
|
|
@@ -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",
|
|
@@ -85,11 +88,11 @@ export declare enum WidgetType {
|
|
|
85
88
|
BimCompare = "BIM Compare",
|
|
86
89
|
VideoWall = "Video Wall"
|
|
87
90
|
}
|
|
88
|
-
export declare const
|
|
91
|
+
export declare const WidgetTypesByResource: {
|
|
89
92
|
camera: WidgetType[];
|
|
90
93
|
project: WidgetType[];
|
|
91
94
|
};
|
|
92
|
-
export type WidgetsListRequestPayload = {
|
|
95
|
+
export type WidgetsListRequestPayload = PaginationParams & {
|
|
93
96
|
userId: number;
|
|
94
97
|
projectId: number;
|
|
95
98
|
cameraId: number;
|
|
@@ -121,6 +124,8 @@ export type Widget = {
|
|
|
121
124
|
user: {
|
|
122
125
|
id: number;
|
|
123
126
|
email: string;
|
|
127
|
+
firstname: string;
|
|
128
|
+
lastname: string;
|
|
124
129
|
};
|
|
125
130
|
insertedAt: DateTime;
|
|
126
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-68a5f1f7b",
|
|
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,10 +36,10 @@
|
|
|
36
36
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^
|
|
39
|
+
"@types/node": "^24.0.3",
|
|
40
40
|
"vite": "latest",
|
|
41
41
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
|
-
"vite-plugin-dts": "^4.5.
|
|
42
|
+
"vite-plugin-dts": "^4.5.4"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"axios": "^1.7.7",
|