@evercam/api 1.0.0-213bdb2b3
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 +1 -0
- package/dist/api/3dFirebaseApi.d.ts +9 -0
- package/dist/api/adminApi.d.ts +289 -0
- package/dist/api/aiApi.d.ts +79 -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 +9 -0
- package/dist/api/evercamApi.d.ts +266 -0
- package/dist/api/evercamLabsApi.d.ts +47 -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 +25 -0
- package/dist/api/webRtcApi.d.ts +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2385 -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 +481 -0
- package/dist/types/anpr.d.ts +98 -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 +51 -0
- package/dist/types/bim.d.ts +147 -0
- package/dist/types/camera.d.ts +563 -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/copilot.d.ts +156 -0
- package/dist/types/countries.d.ts +507 -0
- package/dist/types/credentials.d.ts +5 -0
- package/dist/types/detections.d.ts +73 -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/index.d.ts +51 -0
- package/dist/types/ingest.d.ts +43 -0
- package/dist/types/kit.d.ts +295 -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 +35 -0
- package/dist/types/procore.d.ts +76 -0
- package/dist/types/progressPhoto.d.ts +90 -0
- package/dist/types/project.d.ts +120 -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 +208 -0
- package/dist/types/shares.d.ts +192 -0
- package/dist/types/sim.d.ts +114 -0
- package/dist/types/siteAnalytics.d.ts +5 -0
- package/dist/types/sitePlanner.d.ts +26 -0
- package/dist/types/snapshots.d.ts +50 -0
- package/dist/types/storageServers.d.ts +4 -0
- package/dist/types/streaming.d.ts +119 -0
- package/dist/types/time.d.ts +19 -0
- package/dist/types/timelapse.d.ts +84 -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 +169 -0
- package/dist/utils.d.ts +9 -0
- package/package.json +49 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision } from "@/types";
|
|
2
|
+
export type DetectionsFilters = {
|
|
3
|
+
cameraExid: CameraExid;
|
|
4
|
+
fromDate: string | Date;
|
|
5
|
+
toDate: string | Date;
|
|
6
|
+
labels: DetectionLabel | DetectionLabel[];
|
|
7
|
+
trackId?: number;
|
|
8
|
+
};
|
|
9
|
+
export type BBox = [number, number, number, 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
|
+
};
|
|
19
|
+
export type Detection = {
|
|
20
|
+
bbox: BBox;
|
|
21
|
+
timestamp: string | Date;
|
|
22
|
+
};
|
|
23
|
+
export type Tracking = {
|
|
24
|
+
trackId: number;
|
|
25
|
+
fromDate: string | Date;
|
|
26
|
+
toDate: string | Date;
|
|
27
|
+
detections: Detection[];
|
|
28
|
+
};
|
|
29
|
+
export type TrackingLabel = string;
|
|
30
|
+
export type TrackingsByLabel = Record<TrackingLabel, Tracking[]>;
|
|
31
|
+
export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
|
|
32
|
+
export type SegmentPolygonCoords = number[][];
|
|
33
|
+
export type Segment = {
|
|
34
|
+
id: number;
|
|
35
|
+
mask: SegmentPolygonCoords;
|
|
36
|
+
label: string;
|
|
37
|
+
timestamp: string | Date;
|
|
38
|
+
};
|
|
39
|
+
export type SegmentSimilarityResult = {
|
|
40
|
+
distance: number;
|
|
41
|
+
segment: Segment;
|
|
42
|
+
};
|
|
43
|
+
export type SegmentsSimilaritySearchResult = {
|
|
44
|
+
firstSeen: DateType | null;
|
|
45
|
+
lastSeen: DateType | null;
|
|
46
|
+
similarSegments: SegmentSimilarityResult[];
|
|
47
|
+
};
|
|
48
|
+
export type SegmentsSimilaritySearchParams = {
|
|
49
|
+
cameraExid: CameraExid;
|
|
50
|
+
referenceId: string;
|
|
51
|
+
iouThreshold?: number;
|
|
52
|
+
fromDate: string;
|
|
53
|
+
toDate: string;
|
|
54
|
+
};
|
|
55
|
+
export type CountsParams = {
|
|
56
|
+
cameraExid: CameraExid;
|
|
57
|
+
fromDate: string | Date;
|
|
58
|
+
toDate: string | Date;
|
|
59
|
+
precision: TimelinePrecision;
|
|
60
|
+
trackId: number;
|
|
61
|
+
labels: DetectionLabel | DetectionLabel[];
|
|
62
|
+
};
|
|
63
|
+
export type CountByPeriod = {
|
|
64
|
+
date: string | Date;
|
|
65
|
+
counts: Record<string, number>;
|
|
66
|
+
};
|
|
67
|
+
export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
|
|
68
|
+
export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
|
|
69
|
+
export type LuminanceReading = {
|
|
70
|
+
timestamp: string;
|
|
71
|
+
luminanceDelta: number;
|
|
72
|
+
luminanceAverage: number;
|
|
73
|
+
};
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
export type MilesightRequestParams = {
|
|
2
|
+
host: string;
|
|
3
|
+
httpPort: number;
|
|
4
|
+
username: string;
|
|
5
|
+
password: string;
|
|
6
|
+
};
|
|
7
|
+
export type MilesightCameraNetworkConfiguration = {
|
|
8
|
+
httpEnable: number;
|
|
9
|
+
httpPort: number;
|
|
10
|
+
httpsEnable: number;
|
|
11
|
+
httpsPort: number;
|
|
12
|
+
certSubject: string;
|
|
13
|
+
certDate: string;
|
|
14
|
+
certResult: number;
|
|
15
|
+
requestSubject: string;
|
|
16
|
+
certUpdateFlag: number;
|
|
17
|
+
ipv4Ipaddress: string;
|
|
18
|
+
ipv6Ipaddress: string;
|
|
19
|
+
notBefore: string;
|
|
20
|
+
notAfter: string;
|
|
21
|
+
country: string;
|
|
22
|
+
ST: string;
|
|
23
|
+
O: string;
|
|
24
|
+
CN: string;
|
|
25
|
+
};
|
|
26
|
+
export type MilesightCameraSystemSettings = {
|
|
27
|
+
model: string;
|
|
28
|
+
mac: string;
|
|
29
|
+
firmwareVersion: string;
|
|
30
|
+
systemBootTime: string;
|
|
31
|
+
wireless: number;
|
|
32
|
+
dhcpEnable: number;
|
|
33
|
+
ipaddress: string;
|
|
34
|
+
netmask: string;
|
|
35
|
+
gateway: string;
|
|
36
|
+
pppoeEnable: number;
|
|
37
|
+
dns0: string;
|
|
38
|
+
dns1: string;
|
|
39
|
+
ddnsEnable: number;
|
|
40
|
+
ddnsHostName: string;
|
|
41
|
+
ddnsStatus: number;
|
|
42
|
+
wirelessEnable: number;
|
|
43
|
+
deviceName: string;
|
|
44
|
+
deviceLacation: string;
|
|
45
|
+
deviceInformation: string;
|
|
46
|
+
deviceVender: string;
|
|
47
|
+
hardwareVersion: string;
|
|
48
|
+
kernelVersion: string;
|
|
49
|
+
sdkVersion: string;
|
|
50
|
+
aiNnieStatus: number;
|
|
51
|
+
ioSupport: number;
|
|
52
|
+
audioSupport: number;
|
|
53
|
+
audioMode: number;
|
|
54
|
+
audioType: number;
|
|
55
|
+
audioLineInput: number;
|
|
56
|
+
alarmInputSupport: number;
|
|
57
|
+
alarmOutputSupport: number;
|
|
58
|
+
fisheyeSupport: number;
|
|
59
|
+
vcaSupport: number;
|
|
60
|
+
vcaType: number;
|
|
61
|
+
anrSupport: number;
|
|
62
|
+
speakerSupport: number;
|
|
63
|
+
lprSupport: number;
|
|
64
|
+
lprVersion: number;
|
|
65
|
+
lprLicense: number;
|
|
66
|
+
radarSupport: number;
|
|
67
|
+
upgrade: number;
|
|
68
|
+
faceSupport: number;
|
|
69
|
+
polygonFaceSupport: number;
|
|
70
|
+
irSensor: number;
|
|
71
|
+
dnSensitivitySupport: number;
|
|
72
|
+
croproiSupport: number;
|
|
73
|
+
dnRefocusSupport: number;
|
|
74
|
+
reduceStutteringSupport: number;
|
|
75
|
+
polygonSupport: number;
|
|
76
|
+
localDisplaySupport: number;
|
|
77
|
+
fanWorkingModeSupport: number;
|
|
78
|
+
smartIrLimitType: number;
|
|
79
|
+
smartIrLimitSum: number;
|
|
80
|
+
audioFileManagerSupport: number;
|
|
81
|
+
humanVehicleSupport: number;
|
|
82
|
+
manualSpeedSupport: number;
|
|
83
|
+
snCode: string;
|
|
84
|
+
mosaicSupport: number;
|
|
85
|
+
antiShakeSupport: number;
|
|
86
|
+
corridorModeSupport: number;
|
|
87
|
+
imageRotationSupport: number;
|
|
88
|
+
humanDetectionSupport: number;
|
|
89
|
+
regionalPeopleSupport: number;
|
|
90
|
+
heatMapSupport: number;
|
|
91
|
+
msChip: string;
|
|
92
|
+
runtime: number;
|
|
93
|
+
lprlicenStatus: number;
|
|
94
|
+
p2pSupport: number;
|
|
95
|
+
ptzSupport: number;
|
|
96
|
+
adminoptions: number;
|
|
97
|
+
adminuser: string;
|
|
98
|
+
miscAnonymous: number;
|
|
99
|
+
pwdStrengthType: number;
|
|
100
|
+
viewerdef: number;
|
|
101
|
+
viewerOptions: number;
|
|
102
|
+
oemIndex: number;
|
|
103
|
+
audioAlarmSupport: number;
|
|
104
|
+
ledSupport: number;
|
|
105
|
+
ledGroupSupport: number;
|
|
106
|
+
ptzMaxZoomTimes: number;
|
|
107
|
+
realPtzSupport: number;
|
|
108
|
+
iotSupport: number;
|
|
109
|
+
isSpeedDm: number;
|
|
110
|
+
supportOsdLarger: number;
|
|
111
|
+
isFaceCustomizeModeExists: number;
|
|
112
|
+
autoTrackSupport: number;
|
|
113
|
+
smartStreamSupportInOtherStream: number;
|
|
114
|
+
wiperSupport: number;
|
|
115
|
+
oemupdateonline: number;
|
|
116
|
+
whiteLedSupport: number;
|
|
117
|
+
defogSupport: number;
|
|
118
|
+
manualTrackingSupport: number;
|
|
119
|
+
manualTrackingDisable: number;
|
|
120
|
+
"3DPositionSupport": number;
|
|
121
|
+
rs485Support: number;
|
|
122
|
+
ptzStatusSupport: number;
|
|
123
|
+
heaterSupport: number;
|
|
124
|
+
};
|
|
125
|
+
export type MilesightCameraStreamConfig = {
|
|
126
|
+
enable?: number;
|
|
127
|
+
width?: number;
|
|
128
|
+
height?: number;
|
|
129
|
+
url?: string;
|
|
130
|
+
profileGop?: number;
|
|
131
|
+
rateMode?: MilesightCameraRateModeId;
|
|
132
|
+
framerate?: number;
|
|
133
|
+
bitrate?: number;
|
|
134
|
+
smartStreamEnable?: number;
|
|
135
|
+
smartStreamLevel?: number;
|
|
136
|
+
profile?: number;
|
|
137
|
+
profileCodec?: MilesightCameraCodecId;
|
|
138
|
+
rateQuality?: number;
|
|
139
|
+
vbrQuality?: MilesightCameraVbrQualityId;
|
|
140
|
+
};
|
|
141
|
+
export type MilesightCameraStreamConfigList = {
|
|
142
|
+
mainStream: MilesightCameraStreamConfig;
|
|
143
|
+
subStream: MilesightCameraStreamConfig;
|
|
144
|
+
thirdStream: MilesightCameraStreamConfig;
|
|
145
|
+
fourthStream?: {
|
|
146
|
+
enable: number;
|
|
147
|
+
};
|
|
148
|
+
fifthStream?: {
|
|
149
|
+
enable: number;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
export type MilesightCameraVideoConfig = {
|
|
153
|
+
deviceModel: string;
|
|
154
|
+
deviceSensor: string;
|
|
155
|
+
deviceTvStandards: number;
|
|
156
|
+
streamList: MilesightCameraStreamConfigList;
|
|
157
|
+
cTvStandards: number;
|
|
158
|
+
rtspPort: number;
|
|
159
|
+
eventStreamEnable: number;
|
|
160
|
+
eventStreamFramerate: number;
|
|
161
|
+
eventStreamBitrate: number;
|
|
162
|
+
eventStreamIframe: number;
|
|
163
|
+
fishDisplayModel: number;
|
|
164
|
+
fishInstallModel: number;
|
|
165
|
+
fishCorrectModel: number;
|
|
166
|
+
mainCodecres: number;
|
|
167
|
+
imageScheMode: number;
|
|
168
|
+
hlcMode: number;
|
|
169
|
+
exposurectrl: number;
|
|
170
|
+
wdrEnable: number;
|
|
171
|
+
};
|
|
172
|
+
export type MilesightCameraStreamOsdInfo = {
|
|
173
|
+
streamIndex: number;
|
|
174
|
+
osdEnable: number;
|
|
175
|
+
osdString: string;
|
|
176
|
+
osdDateTimeEnable: number;
|
|
177
|
+
osdFontSize: number;
|
|
178
|
+
osdFontColor: string;
|
|
179
|
+
osdBackgroundEnable: number;
|
|
180
|
+
osdBackgroundColor: string;
|
|
181
|
+
osdTextPosition: number;
|
|
182
|
+
osdDateTimePosition: number;
|
|
183
|
+
osdDateTimeFormat: number;
|
|
184
|
+
cropRoiEnable: number;
|
|
185
|
+
};
|
|
186
|
+
export type MilesightCameraOsdConfiguration = {
|
|
187
|
+
osdInfoList: MilesightCameraStreamOsdInfo[];
|
|
188
|
+
osdZoomTime: number;
|
|
189
|
+
};
|
|
190
|
+
export type MilesightCameraSdCardInfo = {
|
|
191
|
+
sdcardStatus: number;
|
|
192
|
+
sdcardDiskStatus: number;
|
|
193
|
+
sdcardFullStatus: number;
|
|
194
|
+
sdcardTotalSize: string;
|
|
195
|
+
sdcardFreeSize: string;
|
|
196
|
+
sdcardUseSize: string;
|
|
197
|
+
sdEncryptStatus: number;
|
|
198
|
+
};
|
|
199
|
+
export type MilesightCameraTimeInfo = {
|
|
200
|
+
year: number;
|
|
201
|
+
month: number;
|
|
202
|
+
day: number;
|
|
203
|
+
hour: number;
|
|
204
|
+
minute: number;
|
|
205
|
+
second: number;
|
|
206
|
+
timeZoneTz: string;
|
|
207
|
+
zoneNameTz: string;
|
|
208
|
+
dayLight: number;
|
|
209
|
+
timeType: number;
|
|
210
|
+
ntpServer: string;
|
|
211
|
+
ntpSyncEnable: number;
|
|
212
|
+
ntpInterval: number;
|
|
213
|
+
};
|
|
214
|
+
export declare enum MilesightCameraCodecId {
|
|
215
|
+
H264 = 0,
|
|
216
|
+
H265 = 3,
|
|
217
|
+
MJpeg1 = 1,
|
|
218
|
+
MJpeg2 = 2
|
|
219
|
+
}
|
|
220
|
+
export declare enum MilesightCameraVbrQualityId {
|
|
221
|
+
Low = 0,
|
|
222
|
+
Medium = 1,
|
|
223
|
+
High = 2
|
|
224
|
+
}
|
|
225
|
+
export declare enum MilesightCameraRateModeId {
|
|
226
|
+
CBR = 0,
|
|
227
|
+
VBR = 1
|
|
228
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type DroneModel = {
|
|
2
|
+
cesiumId: string;
|
|
3
|
+
cesiumId2D: string;
|
|
4
|
+
date: string;
|
|
5
|
+
cesiumPointCloudId: string;
|
|
6
|
+
pointSize: string;
|
|
7
|
+
maximumScreenSpaceError: string;
|
|
8
|
+
link: string;
|
|
9
|
+
trueIndex: number;
|
|
10
|
+
};
|
|
11
|
+
export type DroneProjectJsonResponse = {
|
|
12
|
+
models: DroneModel[];
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
export declare enum DroneUrlParams {
|
|
16
|
+
Date = "date"
|
|
17
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AxiosError } from "axios";
|
|
2
|
+
export declare enum ErrorType {
|
|
3
|
+
BadRequestError = "BadRequestError",
|
|
4
|
+
NotFoundError = "NotFoundError",
|
|
5
|
+
UnauthorizedError = "UnauthorizedError",
|
|
6
|
+
GatewayTimeoutError = "GatewayTimeoutError",
|
|
7
|
+
BadGatewayError = "BadGatewayError",
|
|
8
|
+
ForbiddenError = "ForbiddenError",
|
|
9
|
+
HlsError = "HlsError",
|
|
10
|
+
SnapshotError = "SnapshotError",
|
|
11
|
+
ConflictError = "ConflictError",
|
|
12
|
+
InternalServerError = "InternalServerError",
|
|
13
|
+
CanceledError = "CanceledError",
|
|
14
|
+
UnhandledRejection = "UnhandledRejection",
|
|
15
|
+
TypeError = "TypeError"
|
|
16
|
+
}
|
|
17
|
+
export declare enum EvercamApiErrorCode {
|
|
18
|
+
BadArgument = "BAD_ARGUMENT",
|
|
19
|
+
DeviceError = "DEVICE_ERROR",
|
|
20
|
+
UnsupportedOperation = "UNSUPPORTED_OPERATION",
|
|
21
|
+
QuotaExceeded = "QUOTA_EXCEEDED",
|
|
22
|
+
InvalidCredentials = "INVALID_CREDENTIALS",
|
|
23
|
+
ProviderAuthFailure = "PROVIDER_AUTH_FAILURE",
|
|
24
|
+
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
25
|
+
PasswordReset = "PASSWORD_RESET",
|
|
26
|
+
RequireShareRequest = "REQUIRE_SHARE_REQUEST",
|
|
27
|
+
Generic = "GENERIC"
|
|
28
|
+
}
|
|
29
|
+
type _EvercamApiError = {
|
|
30
|
+
code: EvercamApiErrorCode;
|
|
31
|
+
message: string;
|
|
32
|
+
details: string;
|
|
33
|
+
innerError?: _EvercamApiError;
|
|
34
|
+
};
|
|
35
|
+
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
36
|
+
export {};
|