@evercam/api 1.0.0-df20a9f5f → 1.0.0-e03a0c41b
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 -19
- package/dist/api/aiApi.d.ts +1 -11
- package/dist/api/evercamApi.d.ts +1 -1
- package/dist/api/evercamLabsApi.d.ts +4 -1
- package/dist/api/ptzApi.d.ts +1 -1
- package/dist/index.js +232 -289
- 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/detections.d.ts +1 -4
- package/dist/types/index.d.ts +0 -1
- package/dist/types/kit.d.ts +1 -3
- 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/widget.d.ts +1 -4
- package/package.json +1 -1
- package/dist/types/hdd.d.ts +0 -63
|
@@ -4,9 +4,8 @@ export type DetectionsFilters = {
|
|
|
4
4
|
fromDate: string | Date;
|
|
5
5
|
toDate: string | Date;
|
|
6
6
|
labels: DetectionLabel | DetectionLabel[];
|
|
7
|
-
trackId?: number;
|
|
8
7
|
};
|
|
9
|
-
export type BBox = number
|
|
8
|
+
export type BBox = [number, number, number, number];
|
|
10
9
|
export type SelectedObjectPath = {
|
|
11
10
|
label: string;
|
|
12
11
|
trackId: string;
|
|
@@ -57,8 +56,6 @@ export type CountsParams = {
|
|
|
57
56
|
fromDate: string | Date;
|
|
58
57
|
toDate: string | Date;
|
|
59
58
|
precision: TimelinePrecision;
|
|
60
|
-
trackId: number;
|
|
61
|
-
labels: DetectionLabel | DetectionLabel[];
|
|
62
59
|
};
|
|
63
60
|
export type CountByPeriod = {
|
|
64
61
|
date: string | Date;
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/kit.d.ts
CHANGED
|
@@ -27,9 +27,7 @@ export declare enum KitAlarm {
|
|
|
27
27
|
NvrOffline = "nvr_offline",
|
|
28
28
|
UnknownCamera = "unknown_camera",
|
|
29
29
|
NotRecordingCamera = "not_recording_camera",
|
|
30
|
-
OfflineScheduled = "offline_scheduled"
|
|
31
|
-
FullSD = "full_sd",
|
|
32
|
-
FullStorage = "full_storage"
|
|
30
|
+
OfflineScheduled = "offline_scheduled"
|
|
33
31
|
}
|
|
34
32
|
export declare enum KitMetricId {
|
|
35
33
|
BatteryStats = "battery",
|
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",
|
|
@@ -92,7 +91,7 @@ export declare const RessourceByType: {
|
|
|
92
91
|
camera: WidgetType[];
|
|
93
92
|
project: WidgetType[];
|
|
94
93
|
};
|
|
95
|
-
export type WidgetsListRequestPayload =
|
|
94
|
+
export type WidgetsListRequestPayload = {
|
|
96
95
|
userId: number;
|
|
97
96
|
projectId: number;
|
|
98
97
|
cameraId: number;
|
|
@@ -124,8 +123,6 @@ export type Widget = {
|
|
|
124
123
|
user: {
|
|
125
124
|
id: number;
|
|
126
125
|
email: string;
|
|
127
|
-
firstname: string;
|
|
128
|
-
lastname: string;
|
|
129
126
|
};
|
|
130
127
|
insertedAt: DateTime;
|
|
131
128
|
updatedAt: DateTime;
|
package/package.json
CHANGED
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
|
-
};
|