@evercam/api 1.0.0-0ddf6c628 → 1.0.0-112ba26f5
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 +105 -96
- package/dist/api/api/aiApi.d.ts +131 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +62 -35
- 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 +89 -66
- 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 +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +66 -37
- package/dist/api/types/anpr.d.ts +36 -6
- 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 +32 -4
- package/dist/api/types/axios.d.ts +12 -12
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +238 -126
- 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 +2 -0
- package/dist/api/types/detections.d.ts +9 -10
- 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 +9 -23
- 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 +11 -2
- package/dist/api/types/ingest.d.ts +200 -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 +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- 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 +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +75 -24
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +108 -0
- package/dist/api/types/ring.d.ts +16 -16
- 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 +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -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 +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- 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 +42 -32
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2331 -966
- 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 +530 -43
- 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 +67 -0
- package/dist/shared/types/report.d.ts +107 -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 -162
- 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
|
};
|
|
@@ -207,68 +216,84 @@ export declare enum CameraFeatureFlag {
|
|
|
207
216
|
Segmentation = "segmentation",
|
|
208
217
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
209
218
|
PpeMonitoring = "ppe_monitoring",
|
|
219
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
220
|
+
PpeGemini = "ppe_gemini",
|
|
221
|
+
PpeYolo = "ppe_yolo",
|
|
222
|
+
PpeV2 = "ppe_v2",
|
|
210
223
|
NoLiveView = "no_live_view",
|
|
224
|
+
NoRecordings = "no_recordings",
|
|
211
225
|
Ring = "ring",
|
|
212
226
|
CloudOnly = "cloud_only"
|
|
213
227
|
}
|
|
214
|
-
export type
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
cameraPowerSchedule?: Schedule;
|
|
231
|
-
isPowerScheduleActive?: boolean;
|
|
232
|
-
powerSchedule?: object;
|
|
233
|
-
ptz?: boolean;
|
|
234
|
-
camUsername?: string;
|
|
235
|
-
camPassword?: string;
|
|
236
|
-
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: {
|
|
237
244
|
id: string;
|
|
238
245
|
name: string;
|
|
239
246
|
};
|
|
240
|
-
modelName
|
|
241
|
-
host
|
|
242
|
-
nvrChannel
|
|
243
|
-
nvrPortHttp
|
|
244
|
-
externalRtspPort
|
|
245
|
-
name
|
|
246
|
-
h264Url
|
|
247
|
-
snapshotUrl
|
|
248
|
-
nvrSnapshotUrl
|
|
249
|
-
routerId
|
|
250
|
-
coordinates
|
|
251
|
-
heading
|
|
252
|
-
fovAngle
|
|
253
|
-
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;
|
|
254
261
|
featureFlags: CameraFeatureFlag[];
|
|
255
|
-
isAccessRestricted
|
|
256
|
-
|
|
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
|
+
}>;
|
|
257
277
|
export type CamerasResponsePayload = {
|
|
258
278
|
cameras?: Camera[];
|
|
259
279
|
};
|
|
260
|
-
export type
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
customMessage?: string;
|
|
280
|
+
export type CameraNoteResponsePayload = {
|
|
281
|
+
id: number;
|
|
282
|
+
camera: {
|
|
283
|
+
exid: string;
|
|
284
|
+
name: string;
|
|
266
285
|
};
|
|
286
|
+
who: string;
|
|
287
|
+
noteType: string;
|
|
288
|
+
content: string;
|
|
289
|
+
pinned: boolean;
|
|
290
|
+
insertedAt: string;
|
|
267
291
|
};
|
|
268
292
|
export type CameraStatusLog = {
|
|
269
293
|
start: string;
|
|
270
294
|
end: string;
|
|
271
295
|
state: CameraStatus;
|
|
296
|
+
status: CameraStatus;
|
|
272
297
|
};
|
|
273
298
|
export type Log = {
|
|
274
299
|
details: {
|
|
@@ -303,7 +328,9 @@ export declare enum NvrModel {
|
|
|
303
328
|
Avigilion = "avigilion",
|
|
304
329
|
Hanwha = "hanwha",
|
|
305
330
|
Nxwitness = "nxwitness",
|
|
306
|
-
ExNvr = "ex_nvr"
|
|
331
|
+
ExNvr = "ex_nvr",
|
|
332
|
+
None = "none",
|
|
333
|
+
Other = "other"
|
|
307
334
|
}
|
|
308
335
|
export declare enum CameraModel {
|
|
309
336
|
YCam = "y-cam",
|
|
@@ -317,12 +344,6 @@ export declare enum CameraModel {
|
|
|
317
344
|
Other = "other",
|
|
318
345
|
Ring = "ring"
|
|
319
346
|
}
|
|
320
|
-
export type DroneCameraTransform = {
|
|
321
|
-
position: Cartesian3;
|
|
322
|
-
direction: Cartesian3;
|
|
323
|
-
up: Cartesian3;
|
|
324
|
-
right: Cartesian3;
|
|
325
|
-
};
|
|
326
347
|
export type Footage = {
|
|
327
348
|
cameraExid: string;
|
|
328
349
|
cameraName: string;
|
|
@@ -354,7 +375,36 @@ export type CameraPath = {
|
|
|
354
375
|
export type CheckCameraPortPayload = {
|
|
355
376
|
address: string;
|
|
356
377
|
port: number;
|
|
357
|
-
|
|
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;
|
|
358
408
|
};
|
|
359
409
|
export type CameraCreateRequestPayload = {
|
|
360
410
|
status: CameraStatus;
|
|
@@ -363,59 +413,50 @@ export type CameraCreateRequestPayload = {
|
|
|
363
413
|
isPowerScheduleActive?: boolean;
|
|
364
414
|
ptz?: boolean;
|
|
365
415
|
name: string;
|
|
366
|
-
coordinates?:
|
|
416
|
+
coordinates?: TuplePoint2D;
|
|
367
417
|
recordingFromNvr?: boolean;
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
host: string;
|
|
372
|
-
httpPort: number;
|
|
373
|
-
username: string;
|
|
374
|
-
password: string;
|
|
375
|
-
rtspPort?: number;
|
|
376
|
-
pictureEndpoint?: string;
|
|
377
|
-
streamEndpoint?: string;
|
|
378
|
-
};
|
|
379
|
-
nvr?: {
|
|
380
|
-
model: NvrModel;
|
|
381
|
-
serial?: string;
|
|
382
|
-
deviceType?: NvrDeviceType;
|
|
383
|
-
macAddress?: string;
|
|
384
|
-
username: string;
|
|
385
|
-
password: string;
|
|
386
|
-
httpUrl: string;
|
|
387
|
-
rtspUrl?: string;
|
|
388
|
-
};
|
|
389
|
-
cloudRecording?: {
|
|
390
|
-
id?: number;
|
|
391
|
-
frequency: 1 | 2 | 4 | 5 | 6 | 10 | 12 | 30 | 60;
|
|
392
|
-
storageDuration: -1 | 1 | 7 | 30 | 90;
|
|
393
|
-
status: "on" | "off" | "paused" | "on_scheduled";
|
|
394
|
-
schedule: Schedule;
|
|
395
|
-
};
|
|
418
|
+
cameraConfig: CameraConfigPayload;
|
|
419
|
+
nvr?: CameraCreateNvrPayload;
|
|
420
|
+
cloudRecordings?: CameraCloudRecordingsPayload;
|
|
396
421
|
ownerId: number;
|
|
397
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;
|
|
398
435
|
};
|
|
399
436
|
export type CameraDeletePayload = {
|
|
400
437
|
verify: string;
|
|
401
438
|
password: string;
|
|
402
439
|
};
|
|
403
|
-
export type SaveNotePayload = {
|
|
404
|
-
noteType: string;
|
|
405
|
-
content: string;
|
|
406
|
-
};
|
|
407
440
|
export type CameraNote = {
|
|
408
441
|
id: number;
|
|
409
442
|
cameraId: number;
|
|
443
|
+
who: string;
|
|
410
444
|
noteType: string;
|
|
411
445
|
content: string;
|
|
446
|
+
pinned: boolean;
|
|
412
447
|
insertedAt: DateType;
|
|
413
448
|
};
|
|
449
|
+
export type GetCameraNotesParams = {
|
|
450
|
+
noteType?: string;
|
|
451
|
+
pinned?: boolean;
|
|
452
|
+
sort?: string;
|
|
453
|
+
page?: number;
|
|
454
|
+
limit?: number;
|
|
455
|
+
};
|
|
414
456
|
export type CreateCameraNotePayload = {
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
action: string;
|
|
457
|
+
noteType: string;
|
|
458
|
+
content: string;
|
|
459
|
+
pinned?: boolean;
|
|
419
460
|
};
|
|
420
461
|
export declare enum HddStatus {
|
|
421
462
|
Error = "error",
|
|
@@ -429,21 +470,24 @@ export type NvrQueryParams = PaginationParams & {
|
|
|
429
470
|
cameraName: string;
|
|
430
471
|
cameraExid: CameraExid;
|
|
431
472
|
cameraIp: string;
|
|
432
|
-
hddStatus:
|
|
473
|
+
hddStatus: NvrHddStatus[];
|
|
433
474
|
};
|
|
434
475
|
export type OfflineCamera = {
|
|
435
476
|
id: number;
|
|
436
477
|
exid: string;
|
|
437
478
|
name: string;
|
|
438
|
-
|
|
479
|
+
userFullname: string;
|
|
439
480
|
timezone: string;
|
|
440
481
|
status: CameraStatus;
|
|
441
482
|
zohoId: string;
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
483
|
+
cameraModel: string;
|
|
484
|
+
cameraScheme: string;
|
|
485
|
+
cameraHost: string;
|
|
486
|
+
cameraUsername: string;
|
|
487
|
+
cameraPassword: string;
|
|
488
|
+
cameraPictureEndpoint: string;
|
|
489
|
+
cameraRtspPort: string;
|
|
490
|
+
cameraHttpPort: string;
|
|
447
491
|
createdAt: DateType;
|
|
448
492
|
lastPolledAt: DateType;
|
|
449
493
|
lastOnlineAt: DateType;
|
|
@@ -465,7 +509,10 @@ export type OfflineCameraQueryParams = PaginationParams & {
|
|
|
465
509
|
cameraOwner: string;
|
|
466
510
|
powerType: PowerType;
|
|
467
511
|
powerSchedule: PowerSchedule;
|
|
468
|
-
batteryReadingsLastVoltage:
|
|
512
|
+
batteryReadingsLastVoltage: string;
|
|
513
|
+
includeOnline: boolean;
|
|
514
|
+
createdAtFrom: string;
|
|
515
|
+
createdAtTo: string;
|
|
469
516
|
};
|
|
470
517
|
export type OfflineCameraNote = {
|
|
471
518
|
action: AuditLogActionType;
|
|
@@ -479,7 +526,41 @@ export type OfflineCameraNoteResponse = {
|
|
|
479
526
|
privateNotes: OfflineCameraNote[];
|
|
480
527
|
};
|
|
481
528
|
export type SiteVisitCamerasQueryParams = PaginationParams & {
|
|
529
|
+
cameraExid: CameraExid;
|
|
530
|
+
cameraName: string;
|
|
531
|
+
timezone: string;
|
|
482
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;
|
|
483
564
|
};
|
|
484
565
|
export type ProjectCamera = {
|
|
485
566
|
apiId: string;
|
|
@@ -489,6 +570,8 @@ export type ProjectCamera = {
|
|
|
489
570
|
name: string;
|
|
490
571
|
ownerEmail: string;
|
|
491
572
|
ownerFullname: string;
|
|
573
|
+
featureFlags: ProjectFeatureFlag[];
|
|
574
|
+
status: string;
|
|
492
575
|
};
|
|
493
576
|
export declare enum DuplicatedCameraFields {
|
|
494
577
|
Host = "host",
|
|
@@ -499,23 +582,29 @@ export declare enum DuplicatedCameraFields {
|
|
|
499
582
|
export type DuplicatedCameraObject = {
|
|
500
583
|
exid: string;
|
|
501
584
|
name: string;
|
|
502
|
-
cameraStatus:
|
|
585
|
+
cameraStatus: CameraStatus;
|
|
503
586
|
crStatus: string;
|
|
504
587
|
};
|
|
505
588
|
export type DuplicatedCameraResponse = {
|
|
506
589
|
cameras: DuplicatedCameraObject[];
|
|
507
|
-
host
|
|
508
|
-
cameraHttpPort
|
|
509
|
-
nvrHttpPort
|
|
510
|
-
nvrDeviceId
|
|
590
|
+
host?: string;
|
|
591
|
+
cameraHttpPort?: number;
|
|
592
|
+
nvrHttpPort?: number;
|
|
593
|
+
nvrDeviceId?: string;
|
|
511
594
|
count: number;
|
|
512
595
|
};
|
|
513
596
|
export type MergeDuplicatedCameraPayload = {
|
|
514
597
|
masterCamera: Record<string, unknown>;
|
|
515
|
-
shareeCameras: Record<string, unknown
|
|
598
|
+
shareeCameras: Record<string, unknown>[];
|
|
516
599
|
};
|
|
517
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;
|
|
518
605
|
status: CameraStatus;
|
|
606
|
+
statuses: CameraStatus[];
|
|
607
|
+
deviceId: string;
|
|
519
608
|
isPublic: boolean;
|
|
520
609
|
featureFlags: CameraFeatureFlag[];
|
|
521
610
|
ptz: boolean;
|
|
@@ -531,13 +620,23 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
531
620
|
nvrModel: NvrModel;
|
|
532
621
|
cameraOwner: string;
|
|
533
622
|
ownerEmail: string;
|
|
623
|
+
cameraIp: string;
|
|
624
|
+
userEmail: string;
|
|
534
625
|
isRecording: boolean;
|
|
626
|
+
recordingFromNvr: boolean;
|
|
535
627
|
cloudRecordingStorageDuration: number;
|
|
628
|
+
cloudRecordingFrequency: CloudRecordingFrequency;
|
|
629
|
+
cloudRecordingStatus: CloudRecordingStatus;
|
|
536
630
|
cameraIds: string;
|
|
537
631
|
hasLocation: boolean;
|
|
538
632
|
externalHttpPort: string;
|
|
539
633
|
externalRsptPort: string;
|
|
634
|
+
cameraHttpPort: string;
|
|
635
|
+
nvrRtspPort: string;
|
|
540
636
|
nvrHttpPort: string;
|
|
637
|
+
createdAtFrom: string;
|
|
638
|
+
createdAtTo: string;
|
|
639
|
+
powerType: PowerType;
|
|
541
640
|
};
|
|
542
641
|
export declare enum BimType {
|
|
543
642
|
TwoD = "2D",
|
|
@@ -546,3 +645,16 @@ export declare enum BimType {
|
|
|
546
645
|
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
547
646
|
cameraExid: CameraExid;
|
|
548
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
|
};
|