@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,563 @@
|
|
|
1
|
+
import { AuditLogActionType, DateTime_Z_micros, DateType, EntityByExid, Exid, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, Schedule } from "@/types";
|
|
2
|
+
export type CameraExid = Exid;
|
|
3
|
+
export type CamerasByExid = EntityByExid<Camera>;
|
|
4
|
+
export type Cartesian3 = {
|
|
5
|
+
x: number;
|
|
6
|
+
y: number;
|
|
7
|
+
z: number;
|
|
8
|
+
};
|
|
9
|
+
export type Camera = {
|
|
10
|
+
cameraPowerSchedule?: Schedule;
|
|
11
|
+
camPassword?: string;
|
|
12
|
+
camUsername?: string;
|
|
13
|
+
cloudRecordings: {
|
|
14
|
+
frequency: number;
|
|
15
|
+
schedule: Schedule;
|
|
16
|
+
status: string;
|
|
17
|
+
storageDuration: string;
|
|
18
|
+
};
|
|
19
|
+
createdAt: DateTime_Z_micros;
|
|
20
|
+
description: null;
|
|
21
|
+
discoverable: boolean;
|
|
22
|
+
external: {
|
|
23
|
+
host: string;
|
|
24
|
+
http: {
|
|
25
|
+
camera: string;
|
|
26
|
+
jpg: string;
|
|
27
|
+
nvrJpg: string;
|
|
28
|
+
nvrPort: string;
|
|
29
|
+
port: string;
|
|
30
|
+
};
|
|
31
|
+
rtsp: {
|
|
32
|
+
h264: string;
|
|
33
|
+
port: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
featureFlags: Array<CameraFeatureFlag>;
|
|
37
|
+
fovAngle: number;
|
|
38
|
+
fovRadius: number;
|
|
39
|
+
heading: null;
|
|
40
|
+
id: CameraExid;
|
|
41
|
+
exid: CameraExid;
|
|
42
|
+
isOnline: boolean;
|
|
43
|
+
isPowerScheduleActive: boolean;
|
|
44
|
+
isPublic: boolean;
|
|
45
|
+
lastOnlineAt: DateTime_Z_micros;
|
|
46
|
+
lastPolledAt: DateTime_Z_micros;
|
|
47
|
+
location: {
|
|
48
|
+
lat: number;
|
|
49
|
+
lng: number;
|
|
50
|
+
};
|
|
51
|
+
modelId: string;
|
|
52
|
+
modelName: string;
|
|
53
|
+
name: string;
|
|
54
|
+
nvrChannel: number;
|
|
55
|
+
nvrDeviceId: string;
|
|
56
|
+
nvrHost: string;
|
|
57
|
+
nvrHttpPort: number;
|
|
58
|
+
nvrModel: NvrModel;
|
|
59
|
+
nvrScheme: string;
|
|
60
|
+
nvrSnapshotEndpoint: string;
|
|
61
|
+
nvrStreamingEndpoint: string;
|
|
62
|
+
offlineReason: string;
|
|
63
|
+
owned: boolean;
|
|
64
|
+
owner: string;
|
|
65
|
+
pitch: null;
|
|
66
|
+
project: {
|
|
67
|
+
id: string;
|
|
68
|
+
name: string;
|
|
69
|
+
};
|
|
70
|
+
proxyUrl: {
|
|
71
|
+
hls: string;
|
|
72
|
+
rtmp: string;
|
|
73
|
+
};
|
|
74
|
+
ptz: boolean;
|
|
75
|
+
rights: string;
|
|
76
|
+
roll: null;
|
|
77
|
+
routerId: number;
|
|
78
|
+
status: CameraStatus;
|
|
79
|
+
streamingServer: string;
|
|
80
|
+
thumbnailUrl: string;
|
|
81
|
+
largeThumbnailUrl?: string;
|
|
82
|
+
timezone: string;
|
|
83
|
+
updatedAt: DateTime_Z_micros;
|
|
84
|
+
vendorName: string;
|
|
85
|
+
};
|
|
86
|
+
export type AdminCamera = {
|
|
87
|
+
cameraHost: string;
|
|
88
|
+
cameraHttpPort: number;
|
|
89
|
+
cameraModel: string;
|
|
90
|
+
cameraPassword: string;
|
|
91
|
+
cameraPictureEndpoint: string;
|
|
92
|
+
cameraRtspPort: number;
|
|
93
|
+
cameraScheme: string;
|
|
94
|
+
cameraUsername: string;
|
|
95
|
+
cameraFirmwareVersion: string;
|
|
96
|
+
cameraTimezone: string;
|
|
97
|
+
cloudRecordingFrequency: number;
|
|
98
|
+
cloudRecordingId: number;
|
|
99
|
+
cloudRecordingSchedule: Schedule;
|
|
100
|
+
cloudRecordingStatus: string;
|
|
101
|
+
cloudRecordingStorageDuration: number;
|
|
102
|
+
createdAt: DateTime_Z_micros;
|
|
103
|
+
description: null;
|
|
104
|
+
discoverable: false;
|
|
105
|
+
exid: CameraExid;
|
|
106
|
+
featureFlags: CameraFeatureFlag[];
|
|
107
|
+
fovAngle: 45.0;
|
|
108
|
+
fovRadius: number;
|
|
109
|
+
heading: null;
|
|
110
|
+
id: number;
|
|
111
|
+
isPowerScheduleActive: true;
|
|
112
|
+
isPublic: false;
|
|
113
|
+
kitId?: number;
|
|
114
|
+
lastOnlineAt: DateTime_Z_micros;
|
|
115
|
+
lastPolledAt: DateTime_Z_micros;
|
|
116
|
+
location: {
|
|
117
|
+
lat: number;
|
|
118
|
+
lng: number;
|
|
119
|
+
};
|
|
120
|
+
macAddress: string;
|
|
121
|
+
name: string;
|
|
122
|
+
nvrChannel: null;
|
|
123
|
+
nvrDeviceId: string;
|
|
124
|
+
nvrHost: string;
|
|
125
|
+
nvrHttpPort: number;
|
|
126
|
+
nvrModel: NvrModel;
|
|
127
|
+
nvrPassword: string;
|
|
128
|
+
nvrPictureEndpoint: string;
|
|
129
|
+
nvrRtspPort: number;
|
|
130
|
+
nvrScheme: string;
|
|
131
|
+
nvrUsername: string;
|
|
132
|
+
offlineReason: null;
|
|
133
|
+
pitch: null;
|
|
134
|
+
powerSchedule: Schedule;
|
|
135
|
+
projectExid: string;
|
|
136
|
+
projectFeatureFlags: [];
|
|
137
|
+
projectId: number;
|
|
138
|
+
projectName: string;
|
|
139
|
+
ptz: false;
|
|
140
|
+
recordingFromNvr: false;
|
|
141
|
+
roll: null;
|
|
142
|
+
routerId: number;
|
|
143
|
+
status: string;
|
|
144
|
+
storageProviders: [];
|
|
145
|
+
streamEndpoint: string;
|
|
146
|
+
timezone: string;
|
|
147
|
+
updatedAt: DateTime_Z_micros;
|
|
148
|
+
userApiId: string;
|
|
149
|
+
userApiKey: string;
|
|
150
|
+
userEmail: string;
|
|
151
|
+
userFullname: string;
|
|
152
|
+
userId: number;
|
|
153
|
+
zohoId: string;
|
|
154
|
+
thumbnailUrl?: string;
|
|
155
|
+
};
|
|
156
|
+
export type CameraMapMarker = {
|
|
157
|
+
isOnline: boolean;
|
|
158
|
+
location: {
|
|
159
|
+
lat: number;
|
|
160
|
+
lng: number;
|
|
161
|
+
};
|
|
162
|
+
needFov: boolean;
|
|
163
|
+
rotation: number;
|
|
164
|
+
fovAngle: number;
|
|
165
|
+
fovRadius: number;
|
|
166
|
+
};
|
|
167
|
+
export declare enum CameraStatus {
|
|
168
|
+
Online = "online",
|
|
169
|
+
Offline = "offline",
|
|
170
|
+
OfflineScheduled = "offline_scheduled",
|
|
171
|
+
Decommissioned = "decommissioned",
|
|
172
|
+
OnHold = "on_hold",
|
|
173
|
+
Waiting = "waiting",
|
|
174
|
+
UnderMaintenance = "under_maintenance",
|
|
175
|
+
WaitingForSiteVisit = "waiting_for_site_visit"
|
|
176
|
+
}
|
|
177
|
+
export declare enum CameraFeatureFlag {
|
|
178
|
+
EdgeVideo = "edge_video",
|
|
179
|
+
BimCompare = "bim_compare",
|
|
180
|
+
GateReport = "gate_report",
|
|
181
|
+
VideoStream = "video_stream",
|
|
182
|
+
WebRTC = "webrtc",
|
|
183
|
+
ANPR = "anpr",
|
|
184
|
+
ReverseANPR = "reverse_anpr",
|
|
185
|
+
PTZ = "ptz",
|
|
186
|
+
ObjectDetection = "object_detection",
|
|
187
|
+
Segmentation = "segmentation",
|
|
188
|
+
SegmentationAutoLabelling = "segmentation_auto_labelling"
|
|
189
|
+
}
|
|
190
|
+
export type CameraLogsRequestPayload = {
|
|
191
|
+
limit: number;
|
|
192
|
+
page: number;
|
|
193
|
+
types: string;
|
|
194
|
+
from: string;
|
|
195
|
+
to: string;
|
|
196
|
+
};
|
|
197
|
+
export type CameraUpdateRequestPayload = {
|
|
198
|
+
status?: string;
|
|
199
|
+
timezone?: string;
|
|
200
|
+
isPuclic?: boolean;
|
|
201
|
+
discoverable?: boolean;
|
|
202
|
+
fullname?: string;
|
|
203
|
+
lastOnline?: string;
|
|
204
|
+
owner?: string;
|
|
205
|
+
description?: string;
|
|
206
|
+
cameraPowerSchedule?: Schedule;
|
|
207
|
+
isPowerScheduleActive?: boolean;
|
|
208
|
+
powerSchedule?: object;
|
|
209
|
+
ptz?: boolean;
|
|
210
|
+
camUsername?: string;
|
|
211
|
+
camPassword?: string;
|
|
212
|
+
project?: {
|
|
213
|
+
id: string;
|
|
214
|
+
name: string;
|
|
215
|
+
};
|
|
216
|
+
modelName?: string;
|
|
217
|
+
host?: string;
|
|
218
|
+
nvrChannel?: number;
|
|
219
|
+
nvrPortHttp?: string;
|
|
220
|
+
externalRtspPort?: string;
|
|
221
|
+
name?: string;
|
|
222
|
+
h264Url?: string;
|
|
223
|
+
snapshotUrl?: string;
|
|
224
|
+
nvrSnapshotUrl?: string;
|
|
225
|
+
routerId?: string | number;
|
|
226
|
+
coordinates?: Array<number>;
|
|
227
|
+
heading?: number;
|
|
228
|
+
fovAngle?: number;
|
|
229
|
+
fovRadius?: number;
|
|
230
|
+
};
|
|
231
|
+
export type CamerasResponsePayload = {
|
|
232
|
+
cameras?: Camera[];
|
|
233
|
+
};
|
|
234
|
+
export type CameraLogsResponsePayload = {
|
|
235
|
+
cameraExid: string;
|
|
236
|
+
cameraName: string;
|
|
237
|
+
logs?: Log[];
|
|
238
|
+
details?: {
|
|
239
|
+
customMessage?: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
export type CameraStatusLog = {
|
|
243
|
+
start: string;
|
|
244
|
+
end: string;
|
|
245
|
+
state: CameraStatus;
|
|
246
|
+
};
|
|
247
|
+
export type Log = {
|
|
248
|
+
details: {
|
|
249
|
+
agent?: string;
|
|
250
|
+
country?: string;
|
|
251
|
+
countryCode?: string;
|
|
252
|
+
ip?: string;
|
|
253
|
+
with?: string;
|
|
254
|
+
message?: string;
|
|
255
|
+
status?: string;
|
|
256
|
+
type?: string;
|
|
257
|
+
};
|
|
258
|
+
insertedAt: string;
|
|
259
|
+
type: string;
|
|
260
|
+
who: string;
|
|
261
|
+
};
|
|
262
|
+
export type NvrConfig = {
|
|
263
|
+
apiUrl: string;
|
|
264
|
+
username?: string;
|
|
265
|
+
password?: string;
|
|
266
|
+
deviceId: string;
|
|
267
|
+
streamingUrl: string;
|
|
268
|
+
snapshotUrl: string;
|
|
269
|
+
bifUrl: string;
|
|
270
|
+
};
|
|
271
|
+
export declare enum NvrModel {
|
|
272
|
+
YCam = "y-cam",
|
|
273
|
+
Axis = "axis",
|
|
274
|
+
Dahua = "dahua",
|
|
275
|
+
Mobotix = "mobotix",
|
|
276
|
+
Hikvision = "hikvision",
|
|
277
|
+
Avigilion = "avigilion",
|
|
278
|
+
Hanwha = "hanwha",
|
|
279
|
+
Nxwitness = "nxwitness",
|
|
280
|
+
ExNvr = "ex_nvr"
|
|
281
|
+
}
|
|
282
|
+
export declare enum CameraModel {
|
|
283
|
+
YCam = "y-cam",
|
|
284
|
+
Axis = "axis",
|
|
285
|
+
Dahua = "dahua",
|
|
286
|
+
Mobotix = "mobotix",
|
|
287
|
+
Milesight = "milesight",
|
|
288
|
+
Hikvision = "hikvision",
|
|
289
|
+
Avigilion = "avigilion",
|
|
290
|
+
Hanwha = "hanwha",
|
|
291
|
+
Other = "other"
|
|
292
|
+
}
|
|
293
|
+
export type DroneCameraTransform = {
|
|
294
|
+
position: Cartesian3;
|
|
295
|
+
direction: Cartesian3;
|
|
296
|
+
up: Cartesian3;
|
|
297
|
+
right: Cartesian3;
|
|
298
|
+
};
|
|
299
|
+
export type Footage = {
|
|
300
|
+
cameraExid: string;
|
|
301
|
+
cameraName: string;
|
|
302
|
+
endDate: string | null;
|
|
303
|
+
startDate: string | null;
|
|
304
|
+
};
|
|
305
|
+
export type Hdd = {
|
|
306
|
+
id: number;
|
|
307
|
+
location: string;
|
|
308
|
+
serialNumber: string;
|
|
309
|
+
hddStatus: string;
|
|
310
|
+
shelfBlock: string;
|
|
311
|
+
type: string;
|
|
312
|
+
size: string;
|
|
313
|
+
format: string;
|
|
314
|
+
footages: Array<Footage>;
|
|
315
|
+
reportedCapacity: string;
|
|
316
|
+
reportedFreeSpace: string;
|
|
317
|
+
reportedProperty: string;
|
|
318
|
+
reportedPath: string;
|
|
319
|
+
reportedHddType: string;
|
|
320
|
+
errorStatus: string;
|
|
321
|
+
canExpand: boolean;
|
|
322
|
+
};
|
|
323
|
+
export declare enum ResolutionDimensions {
|
|
324
|
+
QVGA = "320x240",
|
|
325
|
+
VGA = "640x480",
|
|
326
|
+
SVGA = "800x600",
|
|
327
|
+
XGA = "1024x768",
|
|
328
|
+
HD = "1280x720",
|
|
329
|
+
WXGA = "1280x800",
|
|
330
|
+
HDPlus = "1366x768",
|
|
331
|
+
WXGAPlus = "1440x900",
|
|
332
|
+
HDPlusPlus = "1600x900",
|
|
333
|
+
UXGA = "1600x1200",
|
|
334
|
+
FullHD = "1920x1080",
|
|
335
|
+
WUXGA = "1920x1200",
|
|
336
|
+
TwoK = "2048x1080",
|
|
337
|
+
QHD = "2560x1440",
|
|
338
|
+
WQXGA = "2560x1600",
|
|
339
|
+
FourK = "3840x2160",
|
|
340
|
+
FourKCinema = "4096x2160",
|
|
341
|
+
FiveK = "5120x2880",
|
|
342
|
+
EightK = "7680x4320",
|
|
343
|
+
WHUXGA = "7680x4800"
|
|
344
|
+
}
|
|
345
|
+
export declare enum ResolutionLabel {
|
|
346
|
+
QVGA = "QVGA",
|
|
347
|
+
VGA = "VGA",
|
|
348
|
+
SVGA = "SVGA",
|
|
349
|
+
XGA = "XGA",
|
|
350
|
+
HD = "HD",
|
|
351
|
+
WXGA = "WXGA",
|
|
352
|
+
HDPlus = "HD+",
|
|
353
|
+
WXGAPlus = "WXGA++",
|
|
354
|
+
HDPlusPlus = "HD++",
|
|
355
|
+
UXGA = "UXGA",
|
|
356
|
+
FullHD = "FullHD",
|
|
357
|
+
WUXGA = "WUXGA",
|
|
358
|
+
TwoK = "2K",
|
|
359
|
+
QHD = "QHD",
|
|
360
|
+
WQXGA = "WQXGA",
|
|
361
|
+
FourK = "4K",
|
|
362
|
+
FourKCinema = "4KCinema",
|
|
363
|
+
FiveK = "5K",
|
|
364
|
+
EightK = "8K",
|
|
365
|
+
WHUXGA = "WHUXGA"
|
|
366
|
+
}
|
|
367
|
+
export type ResolutionInfo = {
|
|
368
|
+
ratioString: string;
|
|
369
|
+
ratioFloat: number;
|
|
370
|
+
resolutionDimensions: ResolutionDimensions;
|
|
371
|
+
resolutionLabel: ResolutionLabel;
|
|
372
|
+
};
|
|
373
|
+
export type CameraPath = {
|
|
374
|
+
projectExid: ProjectExid;
|
|
375
|
+
cameraExid: CameraExid;
|
|
376
|
+
};
|
|
377
|
+
export type CheckCameraPortPayload = {
|
|
378
|
+
address: string;
|
|
379
|
+
port: number;
|
|
380
|
+
};
|
|
381
|
+
export type CameraCreateRequestPayload = {
|
|
382
|
+
status: CameraStatus;
|
|
383
|
+
timezone?: string;
|
|
384
|
+
powerSchedule?: Schedule;
|
|
385
|
+
isPowerScheduleActive?: boolean;
|
|
386
|
+
ptz?: boolean;
|
|
387
|
+
name: string;
|
|
388
|
+
coordinates?: [number, number];
|
|
389
|
+
recordingFromNvr?: boolean;
|
|
390
|
+
CameraConfig: {
|
|
391
|
+
model: CameraModel;
|
|
392
|
+
scheme?: "http" | "https";
|
|
393
|
+
host: string;
|
|
394
|
+
httpPort: number;
|
|
395
|
+
username: string;
|
|
396
|
+
password: string;
|
|
397
|
+
rtspPort?: number;
|
|
398
|
+
pictureEndpoint?: string;
|
|
399
|
+
streamEndpoint?: string;
|
|
400
|
+
};
|
|
401
|
+
nvr?: {
|
|
402
|
+
model: NvrModel;
|
|
403
|
+
serial?: string;
|
|
404
|
+
deviceType?: NvrDeviceType;
|
|
405
|
+
macAddress?: string;
|
|
406
|
+
username: string;
|
|
407
|
+
password: string;
|
|
408
|
+
httpUrl: string;
|
|
409
|
+
rtspUrl?: string;
|
|
410
|
+
};
|
|
411
|
+
cloudRecording?: {
|
|
412
|
+
id?: number;
|
|
413
|
+
frequency: 1 | 2 | 4 | 5 | 6 | 10 | 12 | 30 | 60;
|
|
414
|
+
storageDuration: -1 | 1 | 7 | 30 | 90;
|
|
415
|
+
status: "on" | "off" | "paused" | "on_scheduled";
|
|
416
|
+
schedule: Schedule;
|
|
417
|
+
};
|
|
418
|
+
ownerId: number;
|
|
419
|
+
projectId: number;
|
|
420
|
+
};
|
|
421
|
+
export type CameraDeletePayload = {
|
|
422
|
+
verify: string;
|
|
423
|
+
password: string;
|
|
424
|
+
};
|
|
425
|
+
export type SaveNotePayload = {
|
|
426
|
+
noteType: string;
|
|
427
|
+
content: string;
|
|
428
|
+
};
|
|
429
|
+
export type CameraNote = {
|
|
430
|
+
id: number;
|
|
431
|
+
cameraId: number;
|
|
432
|
+
noteType: string;
|
|
433
|
+
content: string;
|
|
434
|
+
insertedAt: DateType;
|
|
435
|
+
};
|
|
436
|
+
export type CreateCameraNotePayload = {
|
|
437
|
+
id?: number;
|
|
438
|
+
cameraExid: CameraExid;
|
|
439
|
+
customMessage: string;
|
|
440
|
+
action: string;
|
|
441
|
+
};
|
|
442
|
+
export declare enum HddStatus {
|
|
443
|
+
Error = "error",
|
|
444
|
+
Idle = "idle",
|
|
445
|
+
NotExist = "notExist",
|
|
446
|
+
Unformatted = "unformatted",
|
|
447
|
+
Ok = "ok"
|
|
448
|
+
}
|
|
449
|
+
export type NvrQueryParams = PaginationParams & {
|
|
450
|
+
ownerId: number;
|
|
451
|
+
cameraName: string;
|
|
452
|
+
cameraExid: CameraExid;
|
|
453
|
+
cameraIp: string;
|
|
454
|
+
hddStatus: HddStatus;
|
|
455
|
+
};
|
|
456
|
+
export type OfflineCamera = {
|
|
457
|
+
id: number;
|
|
458
|
+
exid: string;
|
|
459
|
+
name: string;
|
|
460
|
+
fullname: string;
|
|
461
|
+
timezone: string;
|
|
462
|
+
status: CameraStatus;
|
|
463
|
+
zohoId: string;
|
|
464
|
+
externalHost: string;
|
|
465
|
+
nvrHttpPort: string;
|
|
466
|
+
externalRtspPort: string;
|
|
467
|
+
username: string;
|
|
468
|
+
password: string;
|
|
469
|
+
createdAt: DateType;
|
|
470
|
+
lastPolledAt: DateType;
|
|
471
|
+
lastOnlineAt: DateType;
|
|
472
|
+
powerType: PowerType;
|
|
473
|
+
powerSchedule: PowerSchedule;
|
|
474
|
+
batteryReadingsLastSeen: DateType;
|
|
475
|
+
batteryReadingsLastVoltage: number;
|
|
476
|
+
sims: {
|
|
477
|
+
billPayer: string;
|
|
478
|
+
number: string;
|
|
479
|
+
provider: string;
|
|
480
|
+
}[];
|
|
481
|
+
};
|
|
482
|
+
export type OfflineCameraQueryParams = PaginationParams & {
|
|
483
|
+
status: CameraStatus;
|
|
484
|
+
cameraExid: CameraExid;
|
|
485
|
+
cameraName: string;
|
|
486
|
+
timezone: string;
|
|
487
|
+
cameraOwner: string;
|
|
488
|
+
powerType: PowerType;
|
|
489
|
+
powerSchedule: PowerSchedule;
|
|
490
|
+
batteryReadingsLastVoltage: number;
|
|
491
|
+
};
|
|
492
|
+
export type OfflineCameraNote = {
|
|
493
|
+
action: AuditLogActionType;
|
|
494
|
+
username: string;
|
|
495
|
+
insertedAt: DateType;
|
|
496
|
+
cameraId: number;
|
|
497
|
+
customMessage: string;
|
|
498
|
+
};
|
|
499
|
+
export type OfflineCameraNoteResponse = {
|
|
500
|
+
publicNotes: OfflineCameraNote[];
|
|
501
|
+
privateNotes: OfflineCameraNote[];
|
|
502
|
+
};
|
|
503
|
+
export type SiteVisitCamerasQueryParams = PaginationParams & {
|
|
504
|
+
cameraOwner: string;
|
|
505
|
+
};
|
|
506
|
+
export type ProjectCamera = {
|
|
507
|
+
apiId: string;
|
|
508
|
+
apiKey: string;
|
|
509
|
+
exid: string;
|
|
510
|
+
id: number;
|
|
511
|
+
name: string;
|
|
512
|
+
ownerEmail: string;
|
|
513
|
+
ownerFullname: string;
|
|
514
|
+
};
|
|
515
|
+
export declare enum DuplicatedCameraFields {
|
|
516
|
+
Host = "host",
|
|
517
|
+
CameraHttpPort = "camera_http_port",
|
|
518
|
+
NvrHttpPort = "nvr_http_port",
|
|
519
|
+
NvrDeviceId = "nvr_device_id"
|
|
520
|
+
}
|
|
521
|
+
export type DuplicatedCameraObject = {
|
|
522
|
+
exid: string;
|
|
523
|
+
name: string;
|
|
524
|
+
cameraStatus: string;
|
|
525
|
+
crStatus: string;
|
|
526
|
+
};
|
|
527
|
+
export type DuplicatedCameraResponse = {
|
|
528
|
+
cameras: DuplicatedCameraObject[];
|
|
529
|
+
host: string;
|
|
530
|
+
cameraHttpPort: number;
|
|
531
|
+
nvrHttpPort: number;
|
|
532
|
+
nvrDeviceId: string;
|
|
533
|
+
count: number;
|
|
534
|
+
};
|
|
535
|
+
export type MergeDuplicatedCameraPayload = {
|
|
536
|
+
masterCamera: Record<string, unknown>;
|
|
537
|
+
shareeCameras: Record<string, unknown>;
|
|
538
|
+
};
|
|
539
|
+
export type FetchCameraQueryParams = PaginationParams & {
|
|
540
|
+
status: CameraStatus;
|
|
541
|
+
isPublic: boolean;
|
|
542
|
+
featureFlags: CameraFeatureFlag[];
|
|
543
|
+
ptz: boolean;
|
|
544
|
+
frequency: number;
|
|
545
|
+
channel: number;
|
|
546
|
+
cameraExid: CameraExid;
|
|
547
|
+
cameraExids: CameraExid[];
|
|
548
|
+
cameraName: string;
|
|
549
|
+
projectName: string;
|
|
550
|
+
timezone: string;
|
|
551
|
+
region: string;
|
|
552
|
+
cameraModel: CameraModel;
|
|
553
|
+
nvrModel: NvrModel;
|
|
554
|
+
cameraOwner: string;
|
|
555
|
+
ownerEmail: string;
|
|
556
|
+
isRecording: boolean;
|
|
557
|
+
cloudRecordingStorageDuration: number;
|
|
558
|
+
cameraIds: string;
|
|
559
|
+
hasLocation: boolean;
|
|
560
|
+
externalHttpPort: string;
|
|
561
|
+
externalRsptPort: string;
|
|
562
|
+
nvrHttpPort: string;
|
|
563
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { CameraExid, DateType, ProjectExid } from "@/types";
|
|
2
|
+
export type CommentsRequestPayload = {
|
|
3
|
+
cameraExid: CameraExid;
|
|
4
|
+
fromDate: string;
|
|
5
|
+
toDate: string;
|
|
6
|
+
page?: number;
|
|
7
|
+
limit?: number;
|
|
8
|
+
};
|
|
9
|
+
export type CommentPosition = {
|
|
10
|
+
coordinates: Array<number>;
|
|
11
|
+
type: string;
|
|
12
|
+
};
|
|
13
|
+
export type Comment = {
|
|
14
|
+
fromDate?: string;
|
|
15
|
+
toDate?: string;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
projectExid: ProjectExid;
|
|
18
|
+
updatedAt?: string;
|
|
19
|
+
id?: number;
|
|
20
|
+
cameraExid: CameraExid;
|
|
21
|
+
content: string;
|
|
22
|
+
createdAt?: string;
|
|
23
|
+
creatorEmail?: string;
|
|
24
|
+
creatorName?: string;
|
|
25
|
+
position2d: CommentPosition;
|
|
26
|
+
canDelete?: boolean;
|
|
27
|
+
};
|
|
28
|
+
export type CommentCreationRequestPayload = {
|
|
29
|
+
fromDate?: DateType;
|
|
30
|
+
toDate?: DateType;
|
|
31
|
+
timestamp: DateType;
|
|
32
|
+
projectExid: ProjectExid;
|
|
33
|
+
cameraExid: CameraExid;
|
|
34
|
+
content: string;
|
|
35
|
+
position2d: Array<number>;
|
|
36
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { DateType, PaginationParams } from "@/types";
|
|
2
|
+
export type CompanyUser = {
|
|
3
|
+
id: number;
|
|
4
|
+
fullname: string;
|
|
5
|
+
email: string;
|
|
6
|
+
eventsCount: number;
|
|
7
|
+
lastSeenAt: string;
|
|
8
|
+
active: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type CompanyProject = {
|
|
11
|
+
exid: string;
|
|
12
|
+
name: string;
|
|
13
|
+
status: string;
|
|
14
|
+
startedAt: DateType;
|
|
15
|
+
};
|
|
16
|
+
export type Company = {
|
|
17
|
+
id: number;
|
|
18
|
+
exid: string;
|
|
19
|
+
name: string;
|
|
20
|
+
zohoId: string;
|
|
21
|
+
domains: string;
|
|
22
|
+
linkedinUrl: string;
|
|
23
|
+
sessions: number;
|
|
24
|
+
projects: number;
|
|
25
|
+
cameras: number;
|
|
26
|
+
users: number;
|
|
27
|
+
activeUsers: number;
|
|
28
|
+
createdAt: DateType;
|
|
29
|
+
};
|
|
30
|
+
export type CompanyQueryParams = PaginationParams & {
|
|
31
|
+
name: string;
|
|
32
|
+
exid: string;
|
|
33
|
+
domains: string;
|
|
34
|
+
projects: string;
|
|
35
|
+
cameras: string;
|
|
36
|
+
users: string;
|
|
37
|
+
activeUsers: string;
|
|
38
|
+
sessions: string;
|
|
39
|
+
};
|
|
40
|
+
export type CompanyUpdatePayload = {
|
|
41
|
+
name: string;
|
|
42
|
+
exid: string;
|
|
43
|
+
linkedinUrl?: string;
|
|
44
|
+
domains?: string;
|
|
45
|
+
zohoId?: string;
|
|
46
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DateType, PaginationParams } from "@/types";
|
|
2
|
+
export type Compare = {
|
|
3
|
+
cameraExid: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
embedCode: string;
|
|
6
|
+
embedTime: boolean;
|
|
7
|
+
fileName: string;
|
|
8
|
+
frames: number;
|
|
9
|
+
fromDate: string;
|
|
10
|
+
id: number;
|
|
11
|
+
exid: string;
|
|
12
|
+
mediaUrls: {
|
|
13
|
+
gif: string;
|
|
14
|
+
mp4: string;
|
|
15
|
+
};
|
|
16
|
+
public: boolean;
|
|
17
|
+
requesterEmail: string;
|
|
18
|
+
requesterName: string;
|
|
19
|
+
status: string;
|
|
20
|
+
thumbnailUrl: string;
|
|
21
|
+
title: string;
|
|
22
|
+
toDate: string;
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
export declare enum CompareStatus {
|
|
26
|
+
Processing = 0,
|
|
27
|
+
Completed = 1,
|
|
28
|
+
Failed = 2
|
|
29
|
+
}
|
|
30
|
+
export type CompareRequestPayload = {
|
|
31
|
+
name: string;
|
|
32
|
+
afterDate: string;
|
|
33
|
+
beforeDate: string;
|
|
34
|
+
embed: string;
|
|
35
|
+
compareExid: string;
|
|
36
|
+
cameraExid?: string;
|
|
37
|
+
createAnimation: boolean;
|
|
38
|
+
evercamWatermark?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type AdminCompare = {
|
|
41
|
+
id: number;
|
|
42
|
+
compareExid: string;
|
|
43
|
+
exid: string;
|
|
44
|
+
projectId: string;
|
|
45
|
+
apiId: string;
|
|
46
|
+
apiKey: string;
|
|
47
|
+
name: string;
|
|
48
|
+
fullname: string;
|
|
49
|
+
camera: string;
|
|
50
|
+
status: number;
|
|
51
|
+
embedCode: string;
|
|
52
|
+
insertedAt: DateType;
|
|
53
|
+
};
|
|
54
|
+
export type AdminCompareQueryParams = PaginationParams & {
|
|
55
|
+
name: string;
|
|
56
|
+
camera: string;
|
|
57
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export type ConnectorDetail = {
|
|
2
|
+
login: string;
|
|
3
|
+
hostname: string;
|
|
4
|
+
};
|
|
5
|
+
export declare enum Connector {
|
|
6
|
+
Aconex = "aconex",
|
|
7
|
+
Procore = "procore",
|
|
8
|
+
Autodesk = "autodesk",
|
|
9
|
+
AutodeskViewer = "autodesk_viewer",
|
|
10
|
+
VoyageControl = "voyage_control"
|
|
11
|
+
}
|
|
12
|
+
export type ConnectorResponsePayload = Array<{
|
|
13
|
+
hostname: string;
|
|
14
|
+
login: string;
|
|
15
|
+
provider: string;
|
|
16
|
+
}>;
|