@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c
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/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +120 -96
- package/dist/api/api/aiApi.d.ts +188 -53
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/client/interceptors.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +86 -28
- package/dist/api/api/evercamLabsApi.d.ts +9 -18
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +90 -65
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +41 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +141 -71
- package/dist/api/types/anpr.d.ts +134 -0
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +72 -0
- package/dist/api/types/automation.d.ts +40 -3
- package/dist/api/types/axios.d.ts +12 -11
- package/dist/api/types/bim.d.ts +70 -12
- package/dist/api/types/camera.d.ts +244 -128
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +3 -0
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/detections.d.ts +10 -11
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +59 -49
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +15 -3
- package/dist/api/types/ingest.d.ts +207 -20
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +32 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +72 -0
- package/dist/api/types/progressPhoto.d.ts +39 -25
- package/dist/api/types/project.d.ts +77 -24
- package/dist/api/types/recording.d.ts +9 -15
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +7 -19
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +80 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +98 -13
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +12 -37
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +6 -9
- package/dist/api/types/user.d.ts +48 -34
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2635 -1120
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +702 -42
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +5 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +80 -0
- package/dist/shared/types/report.d.ts +108 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -157
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
1
|
+
import { AuditLogActionType, CloudRecordingDuration, CloudRecordingFrequency, CloudRecordingStatus, DateType, EntityByExid, KitAlarm, NvrDeviceType, NvrHddStatus, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
+
import type { StorageProvider } from "@evercam/api/types/storageProvider";
|
|
4
|
+
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
5
|
+
import type { SiteAnalyticsViewType } from "@evercam/api/types/siteAnalytics";
|
|
3
6
|
export type CameraExid = string;
|
|
4
7
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
5
|
-
export type Cartesian3 = {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
z: number;
|
|
9
|
-
};
|
|
10
8
|
export type Camera = {
|
|
11
9
|
cameraPowerSchedule?: Schedule;
|
|
12
10
|
camPassword?: string;
|
|
@@ -17,6 +15,7 @@ export type Camera = {
|
|
|
17
15
|
status: string;
|
|
18
16
|
storageDuration: string;
|
|
19
17
|
};
|
|
18
|
+
liveViewFrequency: number | null;
|
|
20
19
|
createdAt: string;
|
|
21
20
|
description: string | null;
|
|
22
21
|
discoverable: boolean;
|
|
@@ -45,10 +44,7 @@ export type Camera = {
|
|
|
45
44
|
isPublic: boolean;
|
|
46
45
|
lastOnlineAt: string;
|
|
47
46
|
lastPolledAt: string;
|
|
48
|
-
location:
|
|
49
|
-
lat: number;
|
|
50
|
-
lng: number;
|
|
51
|
-
};
|
|
47
|
+
location: GeoPoint;
|
|
52
48
|
modelId: string;
|
|
53
49
|
modelName: string;
|
|
54
50
|
name: string;
|
|
@@ -86,12 +82,24 @@ export type Camera = {
|
|
|
86
82
|
vendorName: string;
|
|
87
83
|
isAccessRestricted?: boolean;
|
|
88
84
|
kitAlarms?: KitAlarm[];
|
|
85
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
86
|
+
position?: number | null;
|
|
89
87
|
};
|
|
88
|
+
export type CameraHddInfo = Partial<{
|
|
89
|
+
id: number;
|
|
90
|
+
name: string;
|
|
91
|
+
path: string;
|
|
92
|
+
type: string;
|
|
93
|
+
property: string;
|
|
94
|
+
capacity: number;
|
|
95
|
+
status: string;
|
|
96
|
+
freeSpace: number;
|
|
97
|
+
}>;
|
|
90
98
|
export type AdminCamera = {
|
|
91
99
|
id: number;
|
|
92
100
|
exid: CameraExid;
|
|
93
101
|
name: string;
|
|
94
|
-
status:
|
|
102
|
+
status: CameraStatus;
|
|
95
103
|
description: string | null;
|
|
96
104
|
createdAt: string;
|
|
97
105
|
updatedAt: string;
|
|
@@ -111,10 +119,7 @@ export type AdminCamera = {
|
|
|
111
119
|
isPublic: boolean;
|
|
112
120
|
sharedWithConstruction?: boolean;
|
|
113
121
|
timezone: string | null;
|
|
114
|
-
location?:
|
|
115
|
-
lat: number;
|
|
116
|
-
lng: number;
|
|
117
|
-
} | null;
|
|
122
|
+
location?: GeoPoint | null;
|
|
118
123
|
fovAngle?: number | null;
|
|
119
124
|
fovRadius?: number | null;
|
|
120
125
|
heading?: number | null;
|
|
@@ -154,23 +159,27 @@ export type AdminCamera = {
|
|
|
154
159
|
cloudRecordingStatus?: string | null;
|
|
155
160
|
cloudRecordingSchedule?: ScheduleLowercase | null;
|
|
156
161
|
cloudRecordingStorageDuration?: number | null;
|
|
162
|
+
liveViewFrequency?: number | null;
|
|
157
163
|
anprSources?: string[];
|
|
158
|
-
storageProviders?:
|
|
164
|
+
storageProviders?: StorageProvider[];
|
|
159
165
|
featureFlags?: CameraFeatureFlag[];
|
|
160
166
|
zohoId?: string | null;
|
|
161
167
|
offlineReason?: string | null;
|
|
162
168
|
macAddress?: string | null;
|
|
163
169
|
type?: string[];
|
|
164
170
|
thumbnailUrl?: string;
|
|
171
|
+
simNumber?: string | null;
|
|
172
|
+
viewType?: SiteAnalyticsViewType;
|
|
173
|
+
viewId?: string;
|
|
174
|
+
hddInfo?: CameraHddInfo | CameraHddInfo[];
|
|
175
|
+
resolution?: string | null;
|
|
176
|
+
cameraFirmwareVersion?: string | null;
|
|
177
|
+
cameraTimezone?: string | null;
|
|
165
178
|
};
|
|
166
179
|
export type CameraMapMarker = {
|
|
167
180
|
isOnline: boolean;
|
|
168
|
-
location:
|
|
169
|
-
|
|
170
|
-
lng: number;
|
|
171
|
-
};
|
|
172
|
-
needFov: boolean;
|
|
173
|
-
rotation: number;
|
|
181
|
+
location: GeoPoint;
|
|
182
|
+
heading: number;
|
|
174
183
|
fovAngle: number;
|
|
175
184
|
fovRadius: number;
|
|
176
185
|
};
|
|
@@ -206,66 +215,85 @@ export declare enum CameraFeatureFlag {
|
|
|
206
215
|
ObjectDetection = "object_detection",
|
|
207
216
|
Segmentation = "segmentation",
|
|
208
217
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
209
|
-
PpeMonitoring = "ppe_monitoring"
|
|
218
|
+
PpeMonitoring = "ppe_monitoring",
|
|
219
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
220
|
+
PpeGemini = "ppe_gemini",
|
|
221
|
+
PpeYolo = "ppe_yolo",
|
|
222
|
+
PpeV2 = "ppe_v2",
|
|
223
|
+
NoLiveView = "no_live_view",
|
|
224
|
+
NoRecordings = "no_recordings",
|
|
225
|
+
Ring = "ring",
|
|
226
|
+
CloudOnly = "cloud_only"
|
|
210
227
|
}
|
|
211
|
-
export type
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
cameraPowerSchedule?: Schedule;
|
|
228
|
-
isPowerScheduleActive?: boolean;
|
|
229
|
-
powerSchedule?: object;
|
|
230
|
-
ptz?: boolean;
|
|
231
|
-
camUsername?: string;
|
|
232
|
-
camPassword?: string;
|
|
233
|
-
project?: {
|
|
228
|
+
export type CameraUpdateRequestPayload = Partial<{
|
|
229
|
+
status: string;
|
|
230
|
+
timezone: string;
|
|
231
|
+
isPublic: boolean;
|
|
232
|
+
discoverable: boolean;
|
|
233
|
+
fullname: string;
|
|
234
|
+
lastOnline: string;
|
|
235
|
+
owner: string;
|
|
236
|
+
description: string;
|
|
237
|
+
cameraPowerSchedule: Schedule;
|
|
238
|
+
isPowerScheduleActive: boolean;
|
|
239
|
+
powerSchedule: Schedule;
|
|
240
|
+
ptz: boolean;
|
|
241
|
+
camUsername: string;
|
|
242
|
+
camPassword: string;
|
|
243
|
+
project: {
|
|
234
244
|
id: string;
|
|
235
245
|
name: string;
|
|
236
246
|
};
|
|
237
|
-
modelName
|
|
238
|
-
host
|
|
239
|
-
nvrChannel
|
|
240
|
-
nvrPortHttp
|
|
241
|
-
externalRtspPort
|
|
242
|
-
name
|
|
243
|
-
h264Url
|
|
244
|
-
snapshotUrl
|
|
245
|
-
nvrSnapshotUrl
|
|
246
|
-
routerId
|
|
247
|
-
coordinates
|
|
248
|
-
heading
|
|
249
|
-
fovAngle
|
|
250
|
-
fovRadius
|
|
247
|
+
modelName: string;
|
|
248
|
+
host: string;
|
|
249
|
+
nvrChannel: number;
|
|
250
|
+
nvrPortHttp: string;
|
|
251
|
+
externalRtspPort: string;
|
|
252
|
+
name: string;
|
|
253
|
+
h264Url: string;
|
|
254
|
+
snapshotUrl: string;
|
|
255
|
+
nvrSnapshotUrl: string;
|
|
256
|
+
routerId: string | number;
|
|
257
|
+
coordinates: Array<number>;
|
|
258
|
+
heading: number;
|
|
259
|
+
fovAngle: number;
|
|
260
|
+
fovRadius: number;
|
|
251
261
|
featureFlags: CameraFeatureFlag[];
|
|
252
|
-
isAccessRestricted
|
|
253
|
-
|
|
262
|
+
isAccessRestricted: boolean;
|
|
263
|
+
liveViewFrequency: number | null;
|
|
264
|
+
recordingFromNvr: boolean;
|
|
265
|
+
cameraConfig: Partial<CameraConfigPayload>;
|
|
266
|
+
cloudRecordings: Partial<CameraCloudRecordingsPayload>;
|
|
267
|
+
deviceId: string | number;
|
|
268
|
+
anprSources: string[];
|
|
269
|
+
nvr: {
|
|
270
|
+
model?: string;
|
|
271
|
+
username?: string;
|
|
272
|
+
password?: string;
|
|
273
|
+
httpUrl?: string;
|
|
274
|
+
rtspUrl?: string | null;
|
|
275
|
+
};
|
|
276
|
+
}>;
|
|
254
277
|
export type CamerasResponsePayload = {
|
|
255
278
|
cameras?: Camera[];
|
|
256
279
|
};
|
|
257
|
-
export type
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
customMessage?: string;
|
|
280
|
+
export type CameraNoteResponsePayload = {
|
|
281
|
+
id: number;
|
|
282
|
+
camera: {
|
|
283
|
+
exid: string;
|
|
284
|
+
name: string;
|
|
263
285
|
};
|
|
286
|
+
who: string;
|
|
287
|
+
noteType: string;
|
|
288
|
+
content: string;
|
|
289
|
+
pinned: boolean;
|
|
290
|
+
insertedAt: string;
|
|
264
291
|
};
|
|
265
292
|
export type CameraStatusLog = {
|
|
266
293
|
start: string;
|
|
267
294
|
end: string;
|
|
268
295
|
state: CameraStatus;
|
|
296
|
+
status: CameraStatus;
|
|
269
297
|
};
|
|
270
298
|
export type Log = {
|
|
271
299
|
details: {
|
|
@@ -300,7 +328,9 @@ export declare enum NvrModel {
|
|
|
300
328
|
Avigilion = "avigilion",
|
|
301
329
|
Hanwha = "hanwha",
|
|
302
330
|
Nxwitness = "nxwitness",
|
|
303
|
-
ExNvr = "ex_nvr"
|
|
331
|
+
ExNvr = "ex_nvr",
|
|
332
|
+
None = "none",
|
|
333
|
+
Other = "other"
|
|
304
334
|
}
|
|
305
335
|
export declare enum CameraModel {
|
|
306
336
|
YCam = "y-cam",
|
|
@@ -311,14 +341,9 @@ export declare enum CameraModel {
|
|
|
311
341
|
Hikvision = "hikvision",
|
|
312
342
|
Avigilion = "avigilion",
|
|
313
343
|
Hanwha = "hanwha",
|
|
314
|
-
Other = "other"
|
|
344
|
+
Other = "other",
|
|
345
|
+
Ring = "ring"
|
|
315
346
|
}
|
|
316
|
-
export type DroneCameraTransform = {
|
|
317
|
-
position: Cartesian3;
|
|
318
|
-
direction: Cartesian3;
|
|
319
|
-
up: Cartesian3;
|
|
320
|
-
right: Cartesian3;
|
|
321
|
-
};
|
|
322
347
|
export type Footage = {
|
|
323
348
|
cameraExid: string;
|
|
324
349
|
cameraName: string;
|
|
@@ -350,7 +375,36 @@ export type CameraPath = {
|
|
|
350
375
|
export type CheckCameraPortPayload = {
|
|
351
376
|
address: string;
|
|
352
377
|
port: number;
|
|
353
|
-
|
|
378
|
+
};
|
|
379
|
+
export type CameraConfigPayload = {
|
|
380
|
+
model: CameraModel;
|
|
381
|
+
scheme?: "http" | "https";
|
|
382
|
+
host: string;
|
|
383
|
+
httpPort: number | string;
|
|
384
|
+
username: string;
|
|
385
|
+
password: string;
|
|
386
|
+
rtspPort?: number | string;
|
|
387
|
+
pictureEndpoint?: string;
|
|
388
|
+
streamEndpoint?: string;
|
|
389
|
+
};
|
|
390
|
+
export type CameraCloudRecordingsPayload = {
|
|
391
|
+
id?: number;
|
|
392
|
+
frequency: CloudRecordingFrequency;
|
|
393
|
+
storageDuration: CloudRecordingDuration;
|
|
394
|
+
status: CloudRecordingStatus;
|
|
395
|
+
schedule: Schedule;
|
|
396
|
+
};
|
|
397
|
+
export type CameraCreateNvrPayload = {
|
|
398
|
+
id: number;
|
|
399
|
+
} | {
|
|
400
|
+
model: NvrModel;
|
|
401
|
+
serial?: string;
|
|
402
|
+
deviceType?: NvrDeviceType;
|
|
403
|
+
macAddress?: string;
|
|
404
|
+
username: string | null;
|
|
405
|
+
password: string | null;
|
|
406
|
+
httpUrl: string | null;
|
|
407
|
+
rtspUrl?: string | null;
|
|
354
408
|
};
|
|
355
409
|
export type CameraCreateRequestPayload = {
|
|
356
410
|
status: CameraStatus;
|
|
@@ -359,59 +413,50 @@ export type CameraCreateRequestPayload = {
|
|
|
359
413
|
isPowerScheduleActive?: boolean;
|
|
360
414
|
ptz?: boolean;
|
|
361
415
|
name: string;
|
|
362
|
-
coordinates?:
|
|
416
|
+
coordinates?: TuplePoint2D;
|
|
363
417
|
recordingFromNvr?: boolean;
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
host: string;
|
|
368
|
-
httpPort: number;
|
|
369
|
-
username: string;
|
|
370
|
-
password: string;
|
|
371
|
-
rtspPort?: number;
|
|
372
|
-
pictureEndpoint?: string;
|
|
373
|
-
streamEndpoint?: string;
|
|
374
|
-
};
|
|
375
|
-
nvr?: {
|
|
376
|
-
model: NvrModel;
|
|
377
|
-
serial?: string;
|
|
378
|
-
deviceType?: NvrDeviceType;
|
|
379
|
-
macAddress?: string;
|
|
380
|
-
username: string;
|
|
381
|
-
password: string;
|
|
382
|
-
httpUrl: string;
|
|
383
|
-
rtspUrl?: string;
|
|
384
|
-
};
|
|
385
|
-
cloudRecording?: {
|
|
386
|
-
id?: number;
|
|
387
|
-
frequency: 1 | 2 | 4 | 5 | 6 | 10 | 12 | 30 | 60;
|
|
388
|
-
storageDuration: -1 | 1 | 7 | 30 | 90;
|
|
389
|
-
status: "on" | "off" | "paused" | "on_scheduled";
|
|
390
|
-
schedule: Schedule;
|
|
391
|
-
};
|
|
418
|
+
cameraConfig: CameraConfigPayload;
|
|
419
|
+
nvr?: CameraCreateNvrPayload;
|
|
420
|
+
cloudRecordings?: CameraCloudRecordingsPayload;
|
|
392
421
|
ownerId: number;
|
|
393
422
|
projectId: number;
|
|
423
|
+
kitId?: number;
|
|
424
|
+
routerId?: number;
|
|
425
|
+
deviceId?: string;
|
|
426
|
+
isPublic?: boolean;
|
|
427
|
+
heading?: number;
|
|
428
|
+
fovAngle?: number;
|
|
429
|
+
fovRadius?: number;
|
|
430
|
+
project?: {
|
|
431
|
+
id: number;
|
|
432
|
+
timezone: string;
|
|
433
|
+
};
|
|
434
|
+
cloneCameraId?: number;
|
|
394
435
|
};
|
|
395
436
|
export type CameraDeletePayload = {
|
|
396
437
|
verify: string;
|
|
397
438
|
password: string;
|
|
398
439
|
};
|
|
399
|
-
export type SaveNotePayload = {
|
|
400
|
-
noteType: string;
|
|
401
|
-
content: string;
|
|
402
|
-
};
|
|
403
440
|
export type CameraNote = {
|
|
404
441
|
id: number;
|
|
405
442
|
cameraId: number;
|
|
443
|
+
who: string;
|
|
406
444
|
noteType: string;
|
|
407
445
|
content: string;
|
|
446
|
+
pinned: boolean;
|
|
408
447
|
insertedAt: DateType;
|
|
409
448
|
};
|
|
449
|
+
export type GetCameraNotesParams = {
|
|
450
|
+
noteType?: string;
|
|
451
|
+
pinned?: boolean;
|
|
452
|
+
sort?: string;
|
|
453
|
+
page?: number;
|
|
454
|
+
limit?: number;
|
|
455
|
+
};
|
|
410
456
|
export type CreateCameraNotePayload = {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
action: string;
|
|
457
|
+
noteType: string;
|
|
458
|
+
content: string;
|
|
459
|
+
pinned?: boolean;
|
|
415
460
|
};
|
|
416
461
|
export declare enum HddStatus {
|
|
417
462
|
Error = "error",
|
|
@@ -425,21 +470,24 @@ export type NvrQueryParams = PaginationParams & {
|
|
|
425
470
|
cameraName: string;
|
|
426
471
|
cameraExid: CameraExid;
|
|
427
472
|
cameraIp: string;
|
|
428
|
-
hddStatus:
|
|
473
|
+
hddStatus: NvrHddStatus[];
|
|
429
474
|
};
|
|
430
475
|
export type OfflineCamera = {
|
|
431
476
|
id: number;
|
|
432
477
|
exid: string;
|
|
433
478
|
name: string;
|
|
434
|
-
|
|
479
|
+
userFullname: string;
|
|
435
480
|
timezone: string;
|
|
436
481
|
status: CameraStatus;
|
|
437
482
|
zohoId: string;
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
483
|
+
cameraModel: string;
|
|
484
|
+
cameraScheme: string;
|
|
485
|
+
cameraHost: string;
|
|
486
|
+
cameraUsername: string;
|
|
487
|
+
cameraPassword: string;
|
|
488
|
+
cameraPictureEndpoint: string;
|
|
489
|
+
cameraRtspPort: string;
|
|
490
|
+
cameraHttpPort: string;
|
|
443
491
|
createdAt: DateType;
|
|
444
492
|
lastPolledAt: DateType;
|
|
445
493
|
lastOnlineAt: DateType;
|
|
@@ -461,7 +509,10 @@ export type OfflineCameraQueryParams = PaginationParams & {
|
|
|
461
509
|
cameraOwner: string;
|
|
462
510
|
powerType: PowerType;
|
|
463
511
|
powerSchedule: PowerSchedule;
|
|
464
|
-
batteryReadingsLastVoltage:
|
|
512
|
+
batteryReadingsLastVoltage: string;
|
|
513
|
+
includeOnline: boolean;
|
|
514
|
+
createdAtFrom: string;
|
|
515
|
+
createdAtTo: string;
|
|
465
516
|
};
|
|
466
517
|
export type OfflineCameraNote = {
|
|
467
518
|
action: AuditLogActionType;
|
|
@@ -475,7 +526,41 @@ export type OfflineCameraNoteResponse = {
|
|
|
475
526
|
privateNotes: OfflineCameraNote[];
|
|
476
527
|
};
|
|
477
528
|
export type SiteVisitCamerasQueryParams = PaginationParams & {
|
|
529
|
+
cameraExid: CameraExid;
|
|
530
|
+
cameraName: string;
|
|
531
|
+
timezone: string;
|
|
478
532
|
cameraOwner: string;
|
|
533
|
+
powerType: PowerType;
|
|
534
|
+
powerSchedule: PowerSchedule;
|
|
535
|
+
createdAtFrom: string;
|
|
536
|
+
createdAtTo: string;
|
|
537
|
+
};
|
|
538
|
+
export type SiteVisitCamera = {
|
|
539
|
+
id: number;
|
|
540
|
+
exid: string;
|
|
541
|
+
name: string;
|
|
542
|
+
fullname: string;
|
|
543
|
+
timezone: string;
|
|
544
|
+
sims: {
|
|
545
|
+
billPayer: string;
|
|
546
|
+
number: string;
|
|
547
|
+
provider: string;
|
|
548
|
+
}[];
|
|
549
|
+
status: CameraStatus;
|
|
550
|
+
zohoId: string;
|
|
551
|
+
lastOnlineAt: DateType;
|
|
552
|
+
createdAt: DateType;
|
|
553
|
+
lastPolledAt: DateType;
|
|
554
|
+
powerType: PowerType;
|
|
555
|
+
powerSchedule: PowerSchedule;
|
|
556
|
+
cameraModel: string;
|
|
557
|
+
cameraScheme: string;
|
|
558
|
+
cameraHost: string;
|
|
559
|
+
cameraUsername: string;
|
|
560
|
+
cameraPassword: string;
|
|
561
|
+
cameraPictureEndpoint: string;
|
|
562
|
+
cameraRtspPort: string;
|
|
563
|
+
cameraHttpPort: string;
|
|
479
564
|
};
|
|
480
565
|
export type ProjectCamera = {
|
|
481
566
|
apiId: string;
|
|
@@ -485,6 +570,8 @@ export type ProjectCamera = {
|
|
|
485
570
|
name: string;
|
|
486
571
|
ownerEmail: string;
|
|
487
572
|
ownerFullname: string;
|
|
573
|
+
featureFlags: ProjectFeatureFlag[];
|
|
574
|
+
status: string;
|
|
488
575
|
};
|
|
489
576
|
export declare enum DuplicatedCameraFields {
|
|
490
577
|
Host = "host",
|
|
@@ -495,23 +582,29 @@ export declare enum DuplicatedCameraFields {
|
|
|
495
582
|
export type DuplicatedCameraObject = {
|
|
496
583
|
exid: string;
|
|
497
584
|
name: string;
|
|
498
|
-
cameraStatus:
|
|
585
|
+
cameraStatus: CameraStatus;
|
|
499
586
|
crStatus: string;
|
|
500
587
|
};
|
|
501
588
|
export type DuplicatedCameraResponse = {
|
|
502
589
|
cameras: DuplicatedCameraObject[];
|
|
503
|
-
host
|
|
504
|
-
cameraHttpPort
|
|
505
|
-
nvrHttpPort
|
|
506
|
-
nvrDeviceId
|
|
590
|
+
host?: string;
|
|
591
|
+
cameraHttpPort?: number;
|
|
592
|
+
nvrHttpPort?: number;
|
|
593
|
+
nvrDeviceId?: string;
|
|
507
594
|
count: number;
|
|
508
595
|
};
|
|
509
596
|
export type MergeDuplicatedCameraPayload = {
|
|
510
597
|
masterCamera: Record<string, unknown>;
|
|
511
|
-
shareeCameras: Record<string, unknown
|
|
598
|
+
shareeCameras: Record<string, unknown>[];
|
|
512
599
|
};
|
|
513
600
|
export type FetchCameraQueryParams = PaginationParams & {
|
|
601
|
+
/** Narrows the index to one project. Sent as `project_exid`. */
|
|
602
|
+
projectExid: ProjectExid;
|
|
603
|
+
ownerId: number;
|
|
604
|
+
kitId: number;
|
|
514
605
|
status: CameraStatus;
|
|
606
|
+
statuses: CameraStatus[];
|
|
607
|
+
deviceId: string;
|
|
515
608
|
isPublic: boolean;
|
|
516
609
|
featureFlags: CameraFeatureFlag[];
|
|
517
610
|
ptz: boolean;
|
|
@@ -527,13 +620,23 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
527
620
|
nvrModel: NvrModel;
|
|
528
621
|
cameraOwner: string;
|
|
529
622
|
ownerEmail: string;
|
|
623
|
+
cameraIp: string;
|
|
624
|
+
userEmail: string;
|
|
530
625
|
isRecording: boolean;
|
|
626
|
+
recordingFromNvr: boolean;
|
|
531
627
|
cloudRecordingStorageDuration: number;
|
|
628
|
+
cloudRecordingFrequency: CloudRecordingFrequency;
|
|
629
|
+
cloudRecordingStatus: CloudRecordingStatus;
|
|
532
630
|
cameraIds: string;
|
|
533
631
|
hasLocation: boolean;
|
|
534
632
|
externalHttpPort: string;
|
|
535
633
|
externalRsptPort: string;
|
|
634
|
+
cameraHttpPort: string;
|
|
635
|
+
nvrRtspPort: string;
|
|
536
636
|
nvrHttpPort: string;
|
|
637
|
+
createdAtFrom: string;
|
|
638
|
+
createdAtTo: string;
|
|
639
|
+
powerType: PowerType;
|
|
537
640
|
};
|
|
538
641
|
export declare enum BimType {
|
|
539
642
|
TwoD = "2D",
|
|
@@ -542,3 +645,16 @@ export declare enum BimType {
|
|
|
542
645
|
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
543
646
|
cameraExid: CameraExid;
|
|
544
647
|
};
|
|
648
|
+
export type CameraFovChange = {
|
|
649
|
+
id: number;
|
|
650
|
+
cameraExid: CameraExid;
|
|
651
|
+
insertedAt: string | null;
|
|
652
|
+
difference: number | null;
|
|
653
|
+
changeIntensity: IntensityChange;
|
|
654
|
+
prevTimestamp: string | null;
|
|
655
|
+
nextTimestamp: string | null;
|
|
656
|
+
};
|
|
657
|
+
export type CameraFovChangesResponse = {
|
|
658
|
+
cameraExid: CameraExid;
|
|
659
|
+
fovChanges: CameraFovChange[];
|
|
660
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
5
|
-
Drone = "drone"
|
|
5
|
+
Drone = "drone",
|
|
6
|
+
Timeline = "timeline"
|
|
6
7
|
}
|
|
7
8
|
export declare enum CommentsLabel {
|
|
8
9
|
Info = "Info",
|
|
@@ -11,45 +12,85 @@ export declare enum CommentsLabel {
|
|
|
11
12
|
}
|
|
12
13
|
export type CommentsRequestPayload = {
|
|
13
14
|
scope: CommentsScope;
|
|
14
|
-
};
|
|
15
|
-
export type CommentsListRequestPayload = PaginationParams & {
|
|
16
|
-
projectExid?: ProjectExid;
|
|
17
15
|
cameraExid?: CameraExid;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
scope
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
};
|
|
17
|
+
export type CommentsListRequestPayload = PaginationParams & Partial<{
|
|
18
|
+
scope: CommentsScope;
|
|
19
|
+
archivedAt: boolean | string;
|
|
20
|
+
createdBy: string;
|
|
21
|
+
project: string;
|
|
22
|
+
camera: string;
|
|
23
|
+
content: string;
|
|
24
|
+
label: CommentsLabel;
|
|
25
|
+
timestamp: string;
|
|
26
|
+
createdAtFrom: string;
|
|
27
|
+
createdAtTo: string;
|
|
28
|
+
}>;
|
|
29
|
+
export type AdminCommentProject = {
|
|
30
|
+
id: number;
|
|
31
|
+
exid: ProjectExid;
|
|
32
|
+
name: string;
|
|
33
|
+
};
|
|
34
|
+
export type AdminCommentCamera = {
|
|
35
|
+
id: number;
|
|
36
|
+
exid: CameraExid;
|
|
37
|
+
name: string;
|
|
38
|
+
};
|
|
39
|
+
export type AdminCommentCreatedBy = {
|
|
40
|
+
id: number;
|
|
41
|
+
firstname: string;
|
|
42
|
+
lastname: string;
|
|
43
|
+
email: string;
|
|
44
|
+
};
|
|
45
|
+
export type AdminComment = {
|
|
46
|
+
id: number;
|
|
47
|
+
content: string;
|
|
48
|
+
scope: CommentsScope;
|
|
49
|
+
timestamp: string;
|
|
50
|
+
label?: CommentsLabel;
|
|
51
|
+
archivedAt?: string;
|
|
52
|
+
project: AdminCommentProject | null;
|
|
53
|
+
camera: AdminCommentCamera | null;
|
|
54
|
+
createdBy: AdminCommentCreatedBy | null;
|
|
55
|
+
createdAt: string;
|
|
24
56
|
};
|
|
25
57
|
export type Comment = {
|
|
26
|
-
|
|
27
|
-
|
|
58
|
+
fromTimestamp?: string;
|
|
59
|
+
toTimestamp?: string;
|
|
28
60
|
timestamp: string;
|
|
29
|
-
projectExid
|
|
30
|
-
|
|
61
|
+
projectExid?: ProjectExid;
|
|
62
|
+
scope?: CommentsScope;
|
|
31
63
|
id?: number;
|
|
32
64
|
cameraExid: CameraExid;
|
|
33
65
|
content: string;
|
|
34
66
|
createdAt?: string;
|
|
67
|
+
updatedAt?: string;
|
|
35
68
|
creatorEmail?: string;
|
|
36
69
|
creatorName?: string;
|
|
37
|
-
position2d?:
|
|
38
|
-
position3d?:
|
|
70
|
+
position2d?: TuplePoint2D;
|
|
71
|
+
position3d?: TuplePoint3D;
|
|
39
72
|
context?: Record<string, unknown>;
|
|
40
73
|
canDelete?: boolean;
|
|
41
74
|
archivedAt?: string;
|
|
42
75
|
label?: CommentsLabel;
|
|
43
76
|
};
|
|
44
|
-
export type CommentCreationRequestPayload = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
timestamp
|
|
48
|
-
scope
|
|
77
|
+
export type CommentCreationRequestPayload = Partial<{
|
|
78
|
+
fromTimestamp: DateType;
|
|
79
|
+
toTimestamp: DateType;
|
|
80
|
+
timestamp: DateType;
|
|
81
|
+
scope: CommentsScope;
|
|
49
82
|
projectExid: ProjectExid;
|
|
50
|
-
cameraExid
|
|
83
|
+
cameraExid: CameraExid;
|
|
84
|
+
label: CommentsLabel;
|
|
85
|
+
position2d: TuplePoint2D;
|
|
86
|
+
position3d: [number, number, number];
|
|
87
|
+
context: Record<string, unknown>;
|
|
88
|
+
}> & {
|
|
51
89
|
content: string;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
90
|
+
};
|
|
91
|
+
export type CommentThreeSixtyContext = {
|
|
92
|
+
floorId: string;
|
|
93
|
+
dateId: string;
|
|
94
|
+
currentRoom: string;
|
|
95
|
+
cameraRotation: _360CameraRotation;
|
|
55
96
|
};
|