@evercam/api 1.0.0-0261f7ecb
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 +3 -0
- package/dist/api/3dFirebaseApi.d.ts +9 -0
- package/dist/api/adminApi.d.ts +304 -0
- package/dist/api/aiApi.d.ts +110 -0
- package/dist/api/authzApi.d.ts +21 -0
- package/dist/api/client/axios.d.ts +13 -0
- package/dist/api/client/customErrors.d.ts +80 -0
- package/dist/api/client/index.d.ts +5 -0
- package/dist/api/client/interceptors.d.ts +10 -0
- package/dist/api/evercamApi.d.ts +266 -0
- package/dist/api/evercamLabsApi.d.ts +46 -0
- package/dist/api/exNvrApi.d.ts +43 -0
- package/dist/api/index.d.ts +13 -0
- package/dist/api/ingestApi.d.ts +65 -0
- package/dist/api/ptzApi.d.ts +36 -0
- package/dist/api/videoWallApi.d.ts +9 -0
- package/dist/api/weatherApi.d.ts +27 -0
- package/dist/api/webRtcApi.d.ts +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2499 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/types/360.d.ts +83 -0
- package/dist/types/aconex.d.ts +45 -0
- package/dist/types/analytics.d.ts +480 -0
- package/dist/types/anpr.d.ts +100 -0
- package/dist/types/auditLogs.d.ts +99 -0
- package/dist/types/autodesk.d.ts +29 -0
- package/dist/types/automation.d.ts +6 -0
- package/dist/types/axios.d.ts +50 -0
- package/dist/types/bim.d.ts +147 -0
- package/dist/types/camera.d.ts +565 -0
- package/dist/types/comments.d.ts +36 -0
- package/dist/types/company.d.ts +46 -0
- package/dist/types/compare.d.ts +57 -0
- package/dist/types/connector.d.ts +16 -0
- package/dist/types/coolify.d.ts +18 -0
- package/dist/types/copilot.d.ts +157 -0
- package/dist/types/countries.d.ts +507 -0
- package/dist/types/credentials.d.ts +5 -0
- package/dist/types/detections.d.ts +76 -0
- package/dist/types/devices.d.ts +228 -0
- package/dist/types/drone.d.ts +17 -0
- package/dist/types/errors.d.ts +36 -0
- package/dist/types/gateReport.d.ts +441 -0
- package/dist/types/hdd.d.ts +63 -0
- package/dist/types/index.d.ts +53 -0
- package/dist/types/ingest.d.ts +43 -0
- package/dist/types/kit.d.ts +299 -0
- package/dist/types/map.d.ts +4 -0
- package/dist/types/media.d.ts +114 -0
- package/dist/types/notification.d.ts +27 -0
- package/dist/types/nvr.d.ts +36 -0
- package/dist/types/planner.d.ts +28 -0
- package/dist/types/procore.d.ts +76 -0
- package/dist/types/progressPhoto.d.ts +90 -0
- package/dist/types/project.d.ts +119 -0
- package/dist/types/recording.d.ts +124 -0
- package/dist/types/roi.d.ts +26 -0
- package/dist/types/routeParams.d.ts +50 -0
- package/dist/types/router.d.ts +67 -0
- package/dist/types/shared.d.ts +199 -0
- package/dist/types/shares.d.ts +192 -0
- package/dist/types/sim.d.ts +114 -0
- package/dist/types/siteAnalytics.d.ts +84 -0
- package/dist/types/snapshots.d.ts +50 -0
- package/dist/types/storageServers.d.ts +4 -0
- package/dist/types/streaming.d.ts +118 -0
- package/dist/types/time.d.ts +19 -0
- package/dist/types/timelapse.d.ts +99 -0
- package/dist/types/user.d.ts +276 -0
- package/dist/types/vendorModel.d.ts +15 -0
- package/dist/types/videoWall.d.ts +33 -0
- package/dist/types/voyageControl.d.ts +6 -0
- package/dist/types/weather.d.ts +83 -0
- package/dist/types/widget.d.ts +172 -0
- package/dist/utils.d.ts +9 -0
- package/package.json +49 -0
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import type { CameraExid, DateTime, DateType } from "@/types";
|
|
2
|
+
export type ShareRequest = {
|
|
3
|
+
cameraId: string;
|
|
4
|
+
createdAt: DateType | number;
|
|
5
|
+
email: string;
|
|
6
|
+
id: number;
|
|
7
|
+
rights: string;
|
|
8
|
+
sharerEmail: string;
|
|
9
|
+
sharerName: string;
|
|
10
|
+
userId: number;
|
|
11
|
+
};
|
|
12
|
+
export type Share = {
|
|
13
|
+
cameraId: string;
|
|
14
|
+
createdAt: DateType | number;
|
|
15
|
+
email: string;
|
|
16
|
+
fullname: string;
|
|
17
|
+
id: number;
|
|
18
|
+
lastSeenAt: DateType;
|
|
19
|
+
rights: string;
|
|
20
|
+
sessionCount: number;
|
|
21
|
+
sharerEmail: string;
|
|
22
|
+
sharerId: number;
|
|
23
|
+
sharerName: string;
|
|
24
|
+
userId: number;
|
|
25
|
+
};
|
|
26
|
+
export type ShareRequestsResponsePayload = {
|
|
27
|
+
shareRequests: ShareRequest[];
|
|
28
|
+
};
|
|
29
|
+
export type ShareOwner = {
|
|
30
|
+
email: string;
|
|
31
|
+
fullname: string;
|
|
32
|
+
lastSeenAt: DateType;
|
|
33
|
+
sessionCount: number;
|
|
34
|
+
};
|
|
35
|
+
export type SharesResponsePayload = {
|
|
36
|
+
owner: ShareOwner;
|
|
37
|
+
shares: Share[];
|
|
38
|
+
};
|
|
39
|
+
export type ShareDeletionRequestPayload = {
|
|
40
|
+
email?: string;
|
|
41
|
+
key?: string;
|
|
42
|
+
origin?: string;
|
|
43
|
+
};
|
|
44
|
+
export type SharedUsersResponsePayload = Array<{
|
|
45
|
+
email: string;
|
|
46
|
+
name: string;
|
|
47
|
+
}>;
|
|
48
|
+
export type ShareCreateRequestPayload = {
|
|
49
|
+
email: string[] | string;
|
|
50
|
+
message?: string;
|
|
51
|
+
permission?: string;
|
|
52
|
+
rights: string;
|
|
53
|
+
apiId?: string;
|
|
54
|
+
apiKey?: string;
|
|
55
|
+
};
|
|
56
|
+
export type ShareProjectCamerasRequestPayload = {
|
|
57
|
+
email: string[];
|
|
58
|
+
cameraExids: CameraExid[];
|
|
59
|
+
message: string;
|
|
60
|
+
permission?: string;
|
|
61
|
+
rights: string;
|
|
62
|
+
};
|
|
63
|
+
export type ShareCreateResponsePayload = {
|
|
64
|
+
shares: Share[];
|
|
65
|
+
shareRequests: ShareRequest[];
|
|
66
|
+
};
|
|
67
|
+
export type ShareRequestByKeyResponsePayload = {
|
|
68
|
+
shareRequests: Array<{
|
|
69
|
+
id: string;
|
|
70
|
+
email: string;
|
|
71
|
+
rights: string;
|
|
72
|
+
cameraId: string;
|
|
73
|
+
sharerName: string;
|
|
74
|
+
userId: string;
|
|
75
|
+
sharerEmail: string;
|
|
76
|
+
createdAt: DateType;
|
|
77
|
+
}>;
|
|
78
|
+
};
|
|
79
|
+
export type ResendShareRequestPayload = {
|
|
80
|
+
email: string;
|
|
81
|
+
apiId?: string;
|
|
82
|
+
apiKey?: string;
|
|
83
|
+
};
|
|
84
|
+
export declare enum SharePermission {
|
|
85
|
+
Minimum = "minimum",
|
|
86
|
+
Share = "minimal+share",
|
|
87
|
+
Full = "full",
|
|
88
|
+
Custom = "custom"
|
|
89
|
+
}
|
|
90
|
+
export declare enum ShareType {
|
|
91
|
+
Share = "share",
|
|
92
|
+
Request = "request"
|
|
93
|
+
}
|
|
94
|
+
export declare enum ShareRequestStatus {
|
|
95
|
+
All = "",
|
|
96
|
+
Pending = -1,
|
|
97
|
+
Cancelled = -2,
|
|
98
|
+
Failed = -3,
|
|
99
|
+
Used = 1
|
|
100
|
+
}
|
|
101
|
+
export declare enum ShareVisibility {
|
|
102
|
+
PublicDiscoverable = "publicDiscoverable",
|
|
103
|
+
PublicUndiscoverable = "publicUndiscoverable",
|
|
104
|
+
Private = "private"
|
|
105
|
+
}
|
|
106
|
+
export type ProjectShare = {
|
|
107
|
+
id: number;
|
|
108
|
+
projectId: string;
|
|
109
|
+
userId: number;
|
|
110
|
+
email: string;
|
|
111
|
+
fullname: string;
|
|
112
|
+
sharerId: number;
|
|
113
|
+
sharerEmail: string;
|
|
114
|
+
sharerName: string;
|
|
115
|
+
role: "member" | "admin";
|
|
116
|
+
cameras: Record<string, string>;
|
|
117
|
+
message: string | null;
|
|
118
|
+
updatedAt: DateType;
|
|
119
|
+
insertedAt: DateType;
|
|
120
|
+
};
|
|
121
|
+
export type ProjectShareRequest = ProjectShare;
|
|
122
|
+
export type ProjectShareResponse = {
|
|
123
|
+
projectShares: ProjectShare[];
|
|
124
|
+
projectShareRequests: ProjectShareRequest[];
|
|
125
|
+
};
|
|
126
|
+
export type AdminShare = {
|
|
127
|
+
sharerId: number;
|
|
128
|
+
sharerFullname: string;
|
|
129
|
+
sharerApiId: string;
|
|
130
|
+
sharerApiKey: string;
|
|
131
|
+
shareeId: number;
|
|
132
|
+
shareeFullname: string;
|
|
133
|
+
shareeApiId: string;
|
|
134
|
+
shareeApiKey: string;
|
|
135
|
+
shareeEmail: string;
|
|
136
|
+
cameraId: number;
|
|
137
|
+
exid: string;
|
|
138
|
+
projectId: string;
|
|
139
|
+
name: string;
|
|
140
|
+
id: number;
|
|
141
|
+
message: string;
|
|
142
|
+
createdAt: DateType;
|
|
143
|
+
};
|
|
144
|
+
export type CameraShareRequestPayload = {
|
|
145
|
+
email: string[];
|
|
146
|
+
rights: string;
|
|
147
|
+
message?: string;
|
|
148
|
+
};
|
|
149
|
+
export type ShareQueryParams = {
|
|
150
|
+
exid: string;
|
|
151
|
+
sharerFullname: string;
|
|
152
|
+
shareeFullname: string;
|
|
153
|
+
shareeEmail: string;
|
|
154
|
+
};
|
|
155
|
+
export type CameraShare = {
|
|
156
|
+
sharerId: number;
|
|
157
|
+
sharerFullname: string;
|
|
158
|
+
sharerApiId: string;
|
|
159
|
+
sharerApiKey: string;
|
|
160
|
+
shareeId: number;
|
|
161
|
+
shareeFullname: string;
|
|
162
|
+
shareeApiId: string;
|
|
163
|
+
shareeApiKey: string;
|
|
164
|
+
shareeEmail: string;
|
|
165
|
+
cameraId: number;
|
|
166
|
+
exid: string;
|
|
167
|
+
projectId: string;
|
|
168
|
+
name: string;
|
|
169
|
+
id: number;
|
|
170
|
+
message: string;
|
|
171
|
+
createdAt: DateTime;
|
|
172
|
+
};
|
|
173
|
+
export type CameraShareRequestsQueryParams = {
|
|
174
|
+
shareeEmail: string;
|
|
175
|
+
camera: string;
|
|
176
|
+
sharer: string;
|
|
177
|
+
status: string;
|
|
178
|
+
};
|
|
179
|
+
export type CameraShareRequest = {
|
|
180
|
+
id: number;
|
|
181
|
+
shareeEmail: string;
|
|
182
|
+
camera: string;
|
|
183
|
+
sharer: string;
|
|
184
|
+
message: number;
|
|
185
|
+
rights: string;
|
|
186
|
+
status: number;
|
|
187
|
+
projectId: string;
|
|
188
|
+
cameraExid: string;
|
|
189
|
+
apiId: string;
|
|
190
|
+
apiKey: number;
|
|
191
|
+
createdAt: DateTime;
|
|
192
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { DateTime, PaginationParams } from "@/types";
|
|
2
|
+
export declare enum SmsCommands {
|
|
3
|
+
Cellular = "cellular",
|
|
4
|
+
Gpson = "gpson",
|
|
5
|
+
GPS = "gps",
|
|
6
|
+
IPUnblock = "ipunblock",
|
|
7
|
+
IOStatus = "iostatus",
|
|
8
|
+
IOSet = "ioset",
|
|
9
|
+
MonitoringStatus = "monitoring_status",
|
|
10
|
+
MobileOn = "mobileon",
|
|
11
|
+
MobileOff = "mobileoff",
|
|
12
|
+
Reboot = "reboot",
|
|
13
|
+
Restore = "restore",
|
|
14
|
+
RmsOn = "rms_on",
|
|
15
|
+
RmsConnect = "rms_connect",
|
|
16
|
+
RmsStatus = "rms_status",
|
|
17
|
+
SwitchSIM = "switch_sim",
|
|
18
|
+
Status = "status",
|
|
19
|
+
SshOn = "sshon",
|
|
20
|
+
SshOff = "sshoff",
|
|
21
|
+
Uci = "uci",
|
|
22
|
+
VpnOn = "vpnon",
|
|
23
|
+
VpnOff = "vpnoff",
|
|
24
|
+
VpnStatus = "vpnstatus",
|
|
25
|
+
WifiOn = "wifion",
|
|
26
|
+
WifiOff = "wifioff",
|
|
27
|
+
Wakeup = "wakeup",
|
|
28
|
+
WebOn = "webon",
|
|
29
|
+
WebOff = "weboff"
|
|
30
|
+
}
|
|
31
|
+
export declare enum SmsStatuses {
|
|
32
|
+
Delivered = "Delivered",
|
|
33
|
+
Accepted = "accepted",
|
|
34
|
+
Pending = "Pending"
|
|
35
|
+
}
|
|
36
|
+
export type SimCreateUpdatePayload = {
|
|
37
|
+
number: string;
|
|
38
|
+
simProvider: string;
|
|
39
|
+
billPayer?: string;
|
|
40
|
+
pin1?: string;
|
|
41
|
+
pin2?: string;
|
|
42
|
+
puk?: string;
|
|
43
|
+
iccid?: string;
|
|
44
|
+
description?: string;
|
|
45
|
+
cameraId: string[];
|
|
46
|
+
};
|
|
47
|
+
export type SimsQueryParams = PaginationParams & {
|
|
48
|
+
simProvider: string;
|
|
49
|
+
number: string;
|
|
50
|
+
billPayer: string;
|
|
51
|
+
iccid: string;
|
|
52
|
+
cameraName: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
export type Sim = {
|
|
56
|
+
id: number;
|
|
57
|
+
number: string;
|
|
58
|
+
simProvider: string;
|
|
59
|
+
billPayer: string;
|
|
60
|
+
lastSms: string;
|
|
61
|
+
pin1: string;
|
|
62
|
+
pin2: string;
|
|
63
|
+
puk: string;
|
|
64
|
+
iccid: string;
|
|
65
|
+
description: string;
|
|
66
|
+
lastSmsAt: DateTime;
|
|
67
|
+
cameras: {
|
|
68
|
+
name: string;
|
|
69
|
+
exid: string;
|
|
70
|
+
id: number;
|
|
71
|
+
}[];
|
|
72
|
+
};
|
|
73
|
+
export type SendSmsPayload = {
|
|
74
|
+
number: string;
|
|
75
|
+
smsMessage: string;
|
|
76
|
+
};
|
|
77
|
+
export type SendSmsResponse = {
|
|
78
|
+
status: number;
|
|
79
|
+
errorText: string;
|
|
80
|
+
};
|
|
81
|
+
export type SmsHistory = {
|
|
82
|
+
insertedAt: DateTime;
|
|
83
|
+
type: string;
|
|
84
|
+
status: string;
|
|
85
|
+
text: string;
|
|
86
|
+
deliveryDatetime: DateTime;
|
|
87
|
+
};
|
|
88
|
+
export type SmsHistoryResponse = {
|
|
89
|
+
singleSimSms: SmsHistory[];
|
|
90
|
+
};
|
|
91
|
+
export type Sms = {
|
|
92
|
+
id: number;
|
|
93
|
+
from: string;
|
|
94
|
+
fromName: string;
|
|
95
|
+
to: string;
|
|
96
|
+
toName: string;
|
|
97
|
+
messageId: string;
|
|
98
|
+
status: string;
|
|
99
|
+
text: string;
|
|
100
|
+
type: string;
|
|
101
|
+
insertedAt: DateTime;
|
|
102
|
+
deliveryDatetime: DateTime;
|
|
103
|
+
};
|
|
104
|
+
export type SmsQueryParams = PaginationParams & {
|
|
105
|
+
dateRange: string;
|
|
106
|
+
fromName: string;
|
|
107
|
+
toName: string;
|
|
108
|
+
fromNumber: string;
|
|
109
|
+
toNumber: string;
|
|
110
|
+
smsText: string;
|
|
111
|
+
smsType: string;
|
|
112
|
+
smsStatus: SmsStatuses;
|
|
113
|
+
deliveryDatetime: string;
|
|
114
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { BBox, BoundingBox, DetectionLabel } from "@evercam/api/types";
|
|
2
|
+
export declare enum SiteAnalyticsMode {
|
|
3
|
+
Detections = "detections",
|
|
4
|
+
Segments = "segments"
|
|
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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, Schedule } from "@/types";
|
|
2
|
+
export type SnapshotExtractionQyeryParams = PaginationParams & {
|
|
3
|
+
camera: string;
|
|
4
|
+
cameraExid: CameraExid;
|
|
5
|
+
status: SnapshotExtractionStatus;
|
|
6
|
+
};
|
|
7
|
+
export declare enum SnapshotExtractionStatus {
|
|
8
|
+
Completed = "completed",
|
|
9
|
+
Failed = "failed",
|
|
10
|
+
Processing = "processing"
|
|
11
|
+
}
|
|
12
|
+
export declare enum SnapshotExtractionType {
|
|
13
|
+
Cloud = "cloud",
|
|
14
|
+
Local = "local",
|
|
15
|
+
Timelapse = "timelapse"
|
|
16
|
+
}
|
|
17
|
+
export type SnapshotExtraction = {
|
|
18
|
+
id: number;
|
|
19
|
+
cameraId: number;
|
|
20
|
+
cameraExid: CameraExid;
|
|
21
|
+
cameraName: string;
|
|
22
|
+
fromDate: DateType;
|
|
23
|
+
toDate: DateType;
|
|
24
|
+
type: SnapshotExtractionType;
|
|
25
|
+
notes: string;
|
|
26
|
+
status: SnapshotExtractionStatus;
|
|
27
|
+
interval: number;
|
|
28
|
+
requestor: string;
|
|
29
|
+
jpegsToDropbox: boolean;
|
|
30
|
+
injectTo_cr: Boolean;
|
|
31
|
+
schedule: Schedule;
|
|
32
|
+
created_at: DateType;
|
|
33
|
+
};
|
|
34
|
+
export type SnapshotTestPayload = {
|
|
35
|
+
cameraExid?: CameraExid;
|
|
36
|
+
camUsername: string;
|
|
37
|
+
camPassword: string;
|
|
38
|
+
externalUrl: string;
|
|
39
|
+
jpgUrl: string;
|
|
40
|
+
};
|
|
41
|
+
export type SnapshotTestResponse = {
|
|
42
|
+
status: string;
|
|
43
|
+
data: string;
|
|
44
|
+
};
|
|
45
|
+
export type DeleteSnapshotQueryParams = {
|
|
46
|
+
fromDate: DateType;
|
|
47
|
+
toDate: DateType;
|
|
48
|
+
adminEmail: string;
|
|
49
|
+
adminFullname: string;
|
|
50
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, KitMetricData } from "@/types";
|
|
2
|
+
export declare enum ExNvrHealthCheckTaskId {
|
|
3
|
+
ExNvrLogin = "exNvrLogin",
|
|
4
|
+
ExNvrConfigCheck = "exNvrGetDeviceInfo",
|
|
5
|
+
ExNvrSystemStatus = "exNvrSystemStatus",
|
|
6
|
+
ExNvrRecordings = "exNvrGetRecordings",
|
|
7
|
+
CameraSystemConfigCheck = "getCameraSystemInfo",
|
|
8
|
+
CameraTimeConfigCheck = "getCameraTimeInfo",
|
|
9
|
+
CameraStreamsConfigCheck = "getCameraStreamsInfo",
|
|
10
|
+
CameraNetworkConfigCheck = "getCameraNetworkInfo",
|
|
11
|
+
CameraOsdConfigCheck = "getCameraOsdInfo",
|
|
12
|
+
CameraStorageConfigCheck = "getCameraStorageInfo"
|
|
13
|
+
}
|
|
14
|
+
export type ExNvrHealthCheckTaskResult<T extends ExNvrHealthCheckTaskId> = T extends ExNvrHealthCheckTaskId.ExNvrLogin ? ExNvrLoginResponse : T extends ExNvrHealthCheckTaskId.ExNvrConfigCheck ? ExNvrDeviceConfig : T extends ExNvrHealthCheckTaskId.ExNvrSystemStatus ? ExNvrSystemStatus : T extends ExNvrHealthCheckTaskId.ExNvrRecordings ? ExNvrRecordingInterval[] : T extends ExNvrHealthCheckTaskId.CameraStreamsConfigCheck ? MilesightCameraVideoConfig : T extends ExNvrHealthCheckTaskId.CameraSystemConfigCheck ? MilesightCameraSystemSettings : T extends ExNvrHealthCheckTaskId.CameraTimeConfigCheck ? MilesightCameraTimeInfo : T extends ExNvrHealthCheckTaskId.CameraNetworkConfigCheck ? MilesightCameraNetworkConfiguration : T extends ExNvrHealthCheckTaskId.CameraOsdConfigCheck ? MilesightCameraOsdConfiguration : T extends ExNvrHealthCheckTaskId.CameraStorageConfigCheck ? MilesightCameraSdCardInfo : never;
|
|
15
|
+
export type ExNvrHealthCheckTask<T extends ExNvrHealthCheckTaskId> = {
|
|
16
|
+
id: T;
|
|
17
|
+
status: TaskStatus;
|
|
18
|
+
duration?: number;
|
|
19
|
+
result?: ExNvrHealthCheckTaskResult<T>;
|
|
20
|
+
error?: Error;
|
|
21
|
+
};
|
|
22
|
+
export type ExNvrLoginResponse = {
|
|
23
|
+
accessToken: string;
|
|
24
|
+
};
|
|
25
|
+
export type ExNvrRecordingInterval = {
|
|
26
|
+
active: boolean;
|
|
27
|
+
startDate: DateTime_Z_micros;
|
|
28
|
+
endDate: DateTime_Z_micros;
|
|
29
|
+
};
|
|
30
|
+
export type ExNvrDeviceConfig = {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
type: string;
|
|
34
|
+
state: ExNvrDeviceState;
|
|
35
|
+
credentials: {
|
|
36
|
+
password: string;
|
|
37
|
+
username: string;
|
|
38
|
+
};
|
|
39
|
+
mac: string;
|
|
40
|
+
url: string;
|
|
41
|
+
insertedAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
settings: {
|
|
44
|
+
storageAddress: string;
|
|
45
|
+
overrideOnFullDisk: boolean;
|
|
46
|
+
overrideOnFullDiskThreshold: number;
|
|
47
|
+
generateBif: boolean;
|
|
48
|
+
};
|
|
49
|
+
vendor: string;
|
|
50
|
+
model: string;
|
|
51
|
+
streamConfig: {
|
|
52
|
+
filename: string | null;
|
|
53
|
+
duration: string | null;
|
|
54
|
+
temporaryPath: string | null;
|
|
55
|
+
snapshotUri: string;
|
|
56
|
+
streamUri: string;
|
|
57
|
+
subStreamUri: string;
|
|
58
|
+
};
|
|
59
|
+
timezone: string;
|
|
60
|
+
};
|
|
61
|
+
export declare enum ExNvrFootageAvailableStatus {
|
|
62
|
+
Active = "Active",
|
|
63
|
+
NotActive = "Not Active",
|
|
64
|
+
NotAvailable = "Not Available"
|
|
65
|
+
}
|
|
66
|
+
export declare enum ExNvrDeviceState {
|
|
67
|
+
Recording = "recording",
|
|
68
|
+
Failed = "failed",
|
|
69
|
+
Stopped = "stopped"
|
|
70
|
+
}
|
|
71
|
+
export type ExNvrCpuStatus = {
|
|
72
|
+
load: number[];
|
|
73
|
+
numCores: number;
|
|
74
|
+
};
|
|
75
|
+
export type ExNvrMemoryStatus = {
|
|
76
|
+
systemTotalMemory: number;
|
|
77
|
+
freeMemory: number;
|
|
78
|
+
totalMemory: number;
|
|
79
|
+
bufferedMemory: number;
|
|
80
|
+
cachedMemory: number;
|
|
81
|
+
totalSwap: number;
|
|
82
|
+
freeSwap: number;
|
|
83
|
+
availableMemory: number;
|
|
84
|
+
};
|
|
85
|
+
export type ExNvrSolarChargerStatus = {
|
|
86
|
+
v: number;
|
|
87
|
+
vpv: number;
|
|
88
|
+
ppv: number;
|
|
89
|
+
i: number;
|
|
90
|
+
il: number;
|
|
91
|
+
load: string;
|
|
92
|
+
relayState: string;
|
|
93
|
+
offReason: number;
|
|
94
|
+
h19: number;
|
|
95
|
+
h20: number;
|
|
96
|
+
h21: number;
|
|
97
|
+
h22: number;
|
|
98
|
+
h23: number;
|
|
99
|
+
err: number;
|
|
100
|
+
cs: string;
|
|
101
|
+
fw: string;
|
|
102
|
+
pid: string;
|
|
103
|
+
serialNumber: string;
|
|
104
|
+
};
|
|
105
|
+
export type ExNvrSystemStatus = {
|
|
106
|
+
version: string;
|
|
107
|
+
cpu: ExNvrCpuStatus;
|
|
108
|
+
memory: ExNvrMemoryStatus;
|
|
109
|
+
solarCharger: ExNvrSolarChargerStatus;
|
|
110
|
+
};
|
|
111
|
+
export declare enum ExNvrMetricId {
|
|
112
|
+
CpuLoad = "cpu_load",
|
|
113
|
+
RamUsage = "ram_usage"
|
|
114
|
+
}
|
|
115
|
+
export type ExNvrMetric = KitMetricData & {
|
|
116
|
+
metricId: ExNvrMetricId;
|
|
117
|
+
value: number;
|
|
118
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export type DateType = Date | string | number;
|
|
2
|
+
type YYYY = number;
|
|
3
|
+
type MM = number;
|
|
4
|
+
type DD = number;
|
|
5
|
+
type HH = number;
|
|
6
|
+
type mm = number;
|
|
7
|
+
type ss = number;
|
|
8
|
+
type microS = number;
|
|
9
|
+
export type Date_YYYY = `${YYYY}` | string;
|
|
10
|
+
export type Date_YYYY_MM = `${YYYY}-${MM}` | string;
|
|
11
|
+
export type Date_YYYY_MM_DD = `${YYYY}-${MM}-${DD}` | string;
|
|
12
|
+
export type Time_HH_mm_ss = `${HH}:${mm}:${ss}` | string;
|
|
13
|
+
export type Date_HH = `${HH}` | string;
|
|
14
|
+
export type DateTime = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}` | string;
|
|
15
|
+
export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:${mm}` | string;
|
|
16
|
+
export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
|
|
17
|
+
export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
|
|
18
|
+
export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { DateType, Schedule } from "@/types";
|
|
2
|
+
export declare enum TimelapseStatus {
|
|
3
|
+
Pending = 11,
|
|
4
|
+
Completed = 5,
|
|
5
|
+
Failed = 7
|
|
6
|
+
}
|
|
7
|
+
export declare enum TimelapseDuration {
|
|
8
|
+
ThirtySeconds = 30,
|
|
9
|
+
SixtySeconds = 60,
|
|
10
|
+
NintySeconds = 90
|
|
11
|
+
}
|
|
12
|
+
export type TimelapseVideoOptions = {
|
|
13
|
+
width?: number;
|
|
14
|
+
height?: number;
|
|
15
|
+
removeTimestamp: boolean;
|
|
16
|
+
smoothTransition: boolean;
|
|
17
|
+
evercamWatermark: boolean;
|
|
18
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
19
|
+
};
|
|
20
|
+
export type TimestampPositionCoordinates = {
|
|
21
|
+
x: number;
|
|
22
|
+
y: number;
|
|
23
|
+
w: number;
|
|
24
|
+
h: number;
|
|
25
|
+
};
|
|
26
|
+
export type TimelapseLogoOptions = {
|
|
27
|
+
id: number;
|
|
28
|
+
x: number;
|
|
29
|
+
y: number;
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
export type TimelapseSchedules = string | Schedule;
|
|
34
|
+
export declare enum TimelapseScheduleType {
|
|
35
|
+
Continuous = "continuous",
|
|
36
|
+
WorkingHours = "workingHours",
|
|
37
|
+
Custom = "custom"
|
|
38
|
+
}
|
|
39
|
+
export declare enum TimelapsePeriod {
|
|
40
|
+
Day = 1,
|
|
41
|
+
Week = 7,
|
|
42
|
+
Month = 30,
|
|
43
|
+
WholeProject = "whole_project",
|
|
44
|
+
Custom = "custom"
|
|
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
|
+
}
|
|
54
|
+
export type TimelapseFilterQueryParams = {
|
|
55
|
+
from?: DateType;
|
|
56
|
+
to?: DateType;
|
|
57
|
+
period?: TimelapsePeriod;
|
|
58
|
+
duration?: number;
|
|
59
|
+
schedule?: TimelapseSchedules;
|
|
60
|
+
};
|
|
61
|
+
export type TimelapseCreationRequestPayload = {
|
|
62
|
+
title: string;
|
|
63
|
+
duration: number;
|
|
64
|
+
fromDatetime: string;
|
|
65
|
+
toDatetime: string;
|
|
66
|
+
cameraExid: string;
|
|
67
|
+
schedule: Schedule;
|
|
68
|
+
videoOptions: TimelapseVideoOptions;
|
|
69
|
+
logo?: TimelapseLogoOptions;
|
|
70
|
+
};
|
|
71
|
+
export type TimelapseCreationResponsePayload = {
|
|
72
|
+
Timelapse: {
|
|
73
|
+
camera: string;
|
|
74
|
+
createdAt: string;
|
|
75
|
+
fromDate: string;
|
|
76
|
+
id: number;
|
|
77
|
+
duration: number;
|
|
78
|
+
requestor: string;
|
|
79
|
+
schedule: Schedule;
|
|
80
|
+
status: number;
|
|
81
|
+
toDate: string;
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export type TimelapseSnapshotRequestPayload = {
|
|
86
|
+
from: string;
|
|
87
|
+
to: string;
|
|
88
|
+
schedule: string;
|
|
89
|
+
count: number;
|
|
90
|
+
};
|
|
91
|
+
export type TimelapseSnapshotResponsePayload = {
|
|
92
|
+
snapshots: string[];
|
|
93
|
+
};
|
|
94
|
+
export declare enum TimelapseExportStep {
|
|
95
|
+
Format = 1,
|
|
96
|
+
Effects = 2,
|
|
97
|
+
Confirm = 3,
|
|
98
|
+
Finish = 4
|
|
99
|
+
}
|