@evercam/api 1.0.0-4656f3be4 → 1.0.0-47847a4fe
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/dist/api/api/3dFirebaseApi.d.ts +18 -3
- package/dist/api/api/adminApi.d.ts +82 -84
- package/dist/api/api/aiApi.d.ts +4 -4
- package/dist/api/api/evercamApi.d.ts +19 -27
- package/dist/api/api/evercamLabsApi.d.ts +5 -13
- 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 +38 -30
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +17 -9
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/analytics.d.ts +49 -15
- package/dist/api/types/anpr.d.ts +5 -4
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +161 -21
- package/dist/api/types/automation.d.ts +9 -0
- package/dist/api/types/axios.d.ts +1 -0
- package/dist/api/types/bim.d.ts +27 -7
- package/dist/api/types/camera.d.ts +224 -96
- package/dist/api/types/comments.d.ts +63 -25
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/detections.d.ts +3 -0
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +7 -2
- package/dist/api/types/gateReport.d.ts +2 -1
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +3 -1
- package/dist/api/types/ingest.d.ts +105 -25
- package/dist/api/types/kit.d.ts +56 -68
- package/dist/api/types/media.d.ts +25 -3
- package/dist/api/types/notification.d.ts +12 -1
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +26 -0
- package/dist/api/types/observations.d.ts +14 -9
- package/dist/api/types/posthog.d.ts +36 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +61 -22
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +29 -19
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteView.d.ts +14 -8
- package/dist/api/types/snapshots.d.ts +52 -12
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/user.d.ts +32 -29
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +840 -691
- 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 +406 -23
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/index.d.ts +2 -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 +1 -1
- package/dist/api/types/copilot.d.ts +0 -159
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } 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";
|
|
3
4
|
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
5
|
+
import type { SiteAnalyticsViewType } from "@evercam/api/types/siteAnalytics";
|
|
4
6
|
export type CameraExid = string;
|
|
5
7
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
6
8
|
export type Camera = {
|
|
@@ -83,11 +85,21 @@ export type Camera = {
|
|
|
83
85
|
timestampPosition?: TimestampPositionCoordinates;
|
|
84
86
|
position?: number | null;
|
|
85
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
|
+
}>;
|
|
86
98
|
export type AdminCamera = {
|
|
87
99
|
id: number;
|
|
88
100
|
exid: CameraExid;
|
|
89
101
|
name: string;
|
|
90
|
-
status:
|
|
102
|
+
status: CameraStatus;
|
|
91
103
|
description: string | null;
|
|
92
104
|
createdAt: string;
|
|
93
105
|
updatedAt: string;
|
|
@@ -149,19 +161,25 @@ export type AdminCamera = {
|
|
|
149
161
|
cloudRecordingStorageDuration?: number | null;
|
|
150
162
|
liveViewFrequency?: number | null;
|
|
151
163
|
anprSources?: string[];
|
|
152
|
-
storageProviders?:
|
|
164
|
+
storageProviders?: StorageProvider[];
|
|
153
165
|
featureFlags?: CameraFeatureFlag[];
|
|
154
166
|
zohoId?: string | null;
|
|
155
167
|
offlineReason?: string | null;
|
|
156
168
|
macAddress?: string | null;
|
|
157
169
|
type?: string[];
|
|
158
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;
|
|
159
178
|
};
|
|
160
179
|
export type CameraMapMarker = {
|
|
161
180
|
isOnline: boolean;
|
|
162
181
|
location: GeoPoint;
|
|
163
|
-
|
|
164
|
-
rotation: number;
|
|
182
|
+
heading: number;
|
|
165
183
|
fovAngle: number;
|
|
166
184
|
fovRadius: number;
|
|
167
185
|
};
|
|
@@ -207,58 +225,75 @@ export declare enum CameraFeatureFlag {
|
|
|
207
225
|
Ring = "ring",
|
|
208
226
|
CloudOnly = "cloud_only"
|
|
209
227
|
}
|
|
210
|
-
export type CameraUpdateRequestPayload = {
|
|
211
|
-
status
|
|
212
|
-
timezone
|
|
213
|
-
|
|
214
|
-
discoverable
|
|
215
|
-
fullname
|
|
216
|
-
lastOnline
|
|
217
|
-
owner
|
|
218
|
-
description
|
|
219
|
-
cameraPowerSchedule
|
|
220
|
-
isPowerScheduleActive
|
|
221
|
-
powerSchedule
|
|
222
|
-
ptz
|
|
223
|
-
camUsername
|
|
224
|
-
camPassword
|
|
225
|
-
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: {
|
|
226
244
|
id: string;
|
|
227
245
|
name: string;
|
|
228
246
|
};
|
|
229
|
-
modelName
|
|
230
|
-
host
|
|
231
|
-
nvrChannel
|
|
232
|
-
nvrPortHttp
|
|
233
|
-
externalRtspPort
|
|
234
|
-
name
|
|
235
|
-
h264Url
|
|
236
|
-
snapshotUrl
|
|
237
|
-
nvrSnapshotUrl
|
|
238
|
-
routerId
|
|
239
|
-
coordinates
|
|
240
|
-
heading
|
|
241
|
-
fovAngle
|
|
242
|
-
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;
|
|
243
261
|
featureFlags: CameraFeatureFlag[];
|
|
244
|
-
isAccessRestricted
|
|
245
|
-
liveViewFrequency
|
|
246
|
-
|
|
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
|
+
}>;
|
|
247
277
|
export type CamerasResponsePayload = {
|
|
248
278
|
cameras?: Camera[];
|
|
249
279
|
};
|
|
250
|
-
export type
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
customMessage?: string;
|
|
280
|
+
export type CameraNoteResponsePayload = {
|
|
281
|
+
id: number;
|
|
282
|
+
camera: {
|
|
283
|
+
exid: string;
|
|
284
|
+
name: string;
|
|
256
285
|
};
|
|
286
|
+
who: string;
|
|
287
|
+
noteType: string;
|
|
288
|
+
content: string;
|
|
289
|
+
pinned: boolean;
|
|
290
|
+
insertedAt: string;
|
|
257
291
|
};
|
|
258
292
|
export type CameraStatusLog = {
|
|
259
293
|
start: string;
|
|
260
294
|
end: string;
|
|
261
295
|
state: CameraStatus;
|
|
296
|
+
status: CameraStatus;
|
|
262
297
|
};
|
|
263
298
|
export type Log = {
|
|
264
299
|
details: {
|
|
@@ -293,7 +328,9 @@ export declare enum NvrModel {
|
|
|
293
328
|
Avigilion = "avigilion",
|
|
294
329
|
Hanwha = "hanwha",
|
|
295
330
|
Nxwitness = "nxwitness",
|
|
296
|
-
ExNvr = "ex_nvr"
|
|
331
|
+
ExNvr = "ex_nvr",
|
|
332
|
+
None = "none",
|
|
333
|
+
Other = "other"
|
|
297
334
|
}
|
|
298
335
|
export declare enum CameraModel {
|
|
299
336
|
YCam = "y-cam",
|
|
@@ -338,7 +375,36 @@ export type CameraPath = {
|
|
|
338
375
|
export type CheckCameraPortPayload = {
|
|
339
376
|
address: string;
|
|
340
377
|
port: number;
|
|
341
|
-
|
|
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;
|
|
342
408
|
};
|
|
343
409
|
export type CameraCreateRequestPayload = {
|
|
344
410
|
status: CameraStatus;
|
|
@@ -349,57 +415,48 @@ export type CameraCreateRequestPayload = {
|
|
|
349
415
|
name: string;
|
|
350
416
|
coordinates?: TuplePoint2D;
|
|
351
417
|
recordingFromNvr?: boolean;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
host: string;
|
|
356
|
-
httpPort: number;
|
|
357
|
-
username: string;
|
|
358
|
-
password: string;
|
|
359
|
-
rtspPort?: number;
|
|
360
|
-
pictureEndpoint?: string;
|
|
361
|
-
streamEndpoint?: string;
|
|
362
|
-
};
|
|
363
|
-
nvr?: {
|
|
364
|
-
model: NvrModel;
|
|
365
|
-
serial?: string;
|
|
366
|
-
deviceType?: NvrDeviceType;
|
|
367
|
-
macAddress?: string;
|
|
368
|
-
username: string;
|
|
369
|
-
password: string;
|
|
370
|
-
httpUrl: string;
|
|
371
|
-
rtspUrl?: string;
|
|
372
|
-
};
|
|
373
|
-
cloudRecording?: {
|
|
374
|
-
id?: number;
|
|
375
|
-
frequency: 1 | 2 | 4 | 5 | 6 | 10 | 12 | 30 | 60;
|
|
376
|
-
storageDuration: -1 | 1 | 7 | 30 | 90;
|
|
377
|
-
status: "on" | "off" | "paused" | "on_scheduled";
|
|
378
|
-
schedule: Schedule;
|
|
379
|
-
};
|
|
418
|
+
cameraConfig: CameraConfigPayload;
|
|
419
|
+
nvr?: CameraCreateNvrPayload;
|
|
420
|
+
cloudRecordings?: CameraCloudRecordingsPayload;
|
|
380
421
|
ownerId: number;
|
|
381
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;
|
|
382
435
|
};
|
|
383
436
|
export type CameraDeletePayload = {
|
|
384
437
|
verify: string;
|
|
385
438
|
password: string;
|
|
386
439
|
};
|
|
387
|
-
export type SaveNotePayload = {
|
|
388
|
-
noteType: string;
|
|
389
|
-
content: string;
|
|
390
|
-
};
|
|
391
440
|
export type CameraNote = {
|
|
392
441
|
id: number;
|
|
393
442
|
cameraId: number;
|
|
443
|
+
who: string;
|
|
394
444
|
noteType: string;
|
|
395
445
|
content: string;
|
|
446
|
+
pinned: boolean;
|
|
396
447
|
insertedAt: DateType;
|
|
397
448
|
};
|
|
449
|
+
export type GetCameraNotesParams = {
|
|
450
|
+
noteType?: string;
|
|
451
|
+
pinned?: boolean;
|
|
452
|
+
sort?: string;
|
|
453
|
+
page?: number;
|
|
454
|
+
limit?: number;
|
|
455
|
+
};
|
|
398
456
|
export type CreateCameraNotePayload = {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
action: string;
|
|
457
|
+
noteType: string;
|
|
458
|
+
content: string;
|
|
459
|
+
pinned?: boolean;
|
|
403
460
|
};
|
|
404
461
|
export declare enum HddStatus {
|
|
405
462
|
Error = "error",
|
|
@@ -413,21 +470,24 @@ export type NvrQueryParams = PaginationParams & {
|
|
|
413
470
|
cameraName: string;
|
|
414
471
|
cameraExid: CameraExid;
|
|
415
472
|
cameraIp: string;
|
|
416
|
-
hddStatus:
|
|
473
|
+
hddStatus: NvrHddStatus[];
|
|
417
474
|
};
|
|
418
475
|
export type OfflineCamera = {
|
|
419
476
|
id: number;
|
|
420
477
|
exid: string;
|
|
421
478
|
name: string;
|
|
422
|
-
|
|
479
|
+
userFullname: string;
|
|
423
480
|
timezone: string;
|
|
424
481
|
status: CameraStatus;
|
|
425
482
|
zohoId: string;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
483
|
+
cameraModel: string;
|
|
484
|
+
cameraScheme: string;
|
|
485
|
+
cameraHost: string;
|
|
486
|
+
cameraUsername: string;
|
|
487
|
+
cameraPassword: string;
|
|
488
|
+
cameraPictureEndpoint: string;
|
|
489
|
+
cameraRtspPort: string;
|
|
490
|
+
cameraHttpPort: string;
|
|
431
491
|
createdAt: DateType;
|
|
432
492
|
lastPolledAt: DateType;
|
|
433
493
|
lastOnlineAt: DateType;
|
|
@@ -449,7 +509,10 @@ export type OfflineCameraQueryParams = PaginationParams & {
|
|
|
449
509
|
cameraOwner: string;
|
|
450
510
|
powerType: PowerType;
|
|
451
511
|
powerSchedule: PowerSchedule;
|
|
452
|
-
batteryReadingsLastVoltage:
|
|
512
|
+
batteryReadingsLastVoltage: string;
|
|
513
|
+
includeOnline: boolean;
|
|
514
|
+
createdAtFrom: string;
|
|
515
|
+
createdAtTo: string;
|
|
453
516
|
};
|
|
454
517
|
export type OfflineCameraNote = {
|
|
455
518
|
action: AuditLogActionType;
|
|
@@ -463,7 +526,41 @@ export type OfflineCameraNoteResponse = {
|
|
|
463
526
|
privateNotes: OfflineCameraNote[];
|
|
464
527
|
};
|
|
465
528
|
export type SiteVisitCamerasQueryParams = PaginationParams & {
|
|
529
|
+
cameraExid: CameraExid;
|
|
530
|
+
cameraName: string;
|
|
531
|
+
timezone: string;
|
|
466
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;
|
|
467
564
|
};
|
|
468
565
|
export type ProjectCamera = {
|
|
469
566
|
apiId: string;
|
|
@@ -473,6 +570,8 @@ export type ProjectCamera = {
|
|
|
473
570
|
name: string;
|
|
474
571
|
ownerEmail: string;
|
|
475
572
|
ownerFullname: string;
|
|
573
|
+
featureFlags: ProjectFeatureFlag[];
|
|
574
|
+
status: string;
|
|
476
575
|
};
|
|
477
576
|
export declare enum DuplicatedCameraFields {
|
|
478
577
|
Host = "host",
|
|
@@ -483,23 +582,29 @@ export declare enum DuplicatedCameraFields {
|
|
|
483
582
|
export type DuplicatedCameraObject = {
|
|
484
583
|
exid: string;
|
|
485
584
|
name: string;
|
|
486
|
-
cameraStatus:
|
|
585
|
+
cameraStatus: CameraStatus;
|
|
487
586
|
crStatus: string;
|
|
488
587
|
};
|
|
489
588
|
export type DuplicatedCameraResponse = {
|
|
490
589
|
cameras: DuplicatedCameraObject[];
|
|
491
|
-
host
|
|
492
|
-
cameraHttpPort
|
|
493
|
-
nvrHttpPort
|
|
494
|
-
nvrDeviceId
|
|
590
|
+
host?: string;
|
|
591
|
+
cameraHttpPort?: number;
|
|
592
|
+
nvrHttpPort?: number;
|
|
593
|
+
nvrDeviceId?: string;
|
|
495
594
|
count: number;
|
|
496
595
|
};
|
|
497
596
|
export type MergeDuplicatedCameraPayload = {
|
|
498
597
|
masterCamera: Record<string, unknown>;
|
|
499
|
-
shareeCameras: Record<string, unknown
|
|
598
|
+
shareeCameras: Record<string, unknown>[];
|
|
500
599
|
};
|
|
501
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;
|
|
502
605
|
status: CameraStatus;
|
|
606
|
+
statuses: CameraStatus[];
|
|
607
|
+
deviceId: string;
|
|
503
608
|
isPublic: boolean;
|
|
504
609
|
featureFlags: CameraFeatureFlag[];
|
|
505
610
|
ptz: boolean;
|
|
@@ -515,13 +620,23 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
515
620
|
nvrModel: NvrModel;
|
|
516
621
|
cameraOwner: string;
|
|
517
622
|
ownerEmail: string;
|
|
623
|
+
cameraIp: string;
|
|
624
|
+
userEmail: string;
|
|
518
625
|
isRecording: boolean;
|
|
626
|
+
recordingFromNvr: boolean;
|
|
519
627
|
cloudRecordingStorageDuration: number;
|
|
628
|
+
cloudRecordingFrequency: CloudRecordingFrequency;
|
|
629
|
+
cloudRecordingStatus: CloudRecordingStatus;
|
|
520
630
|
cameraIds: string;
|
|
521
631
|
hasLocation: boolean;
|
|
522
632
|
externalHttpPort: string;
|
|
523
633
|
externalRsptPort: string;
|
|
634
|
+
cameraHttpPort: string;
|
|
635
|
+
nvrRtspPort: string;
|
|
524
636
|
nvrHttpPort: string;
|
|
637
|
+
createdAtFrom: string;
|
|
638
|
+
createdAtTo: string;
|
|
639
|
+
powerType: PowerType;
|
|
525
640
|
};
|
|
526
641
|
export declare enum BimType {
|
|
527
642
|
TwoD = "2D",
|
|
@@ -530,3 +645,16 @@ export declare enum BimType {
|
|
|
530
645
|
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
531
646
|
cameraExid: CameraExid;
|
|
532
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,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } 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",
|
|
@@ -14,26 +14,57 @@ export type CommentsRequestPayload = {
|
|
|
14
14
|
scope: CommentsScope;
|
|
15
15
|
cameraExid?: CameraExid;
|
|
16
16
|
};
|
|
17
|
-
export type CommentsListRequestPayload = PaginationParams & {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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;
|
|
26
56
|
};
|
|
27
57
|
export type Comment = {
|
|
28
|
-
|
|
29
|
-
|
|
58
|
+
fromTimestamp?: string;
|
|
59
|
+
toTimestamp?: string;
|
|
30
60
|
timestamp: string;
|
|
31
|
-
projectExid
|
|
32
|
-
|
|
61
|
+
projectExid?: ProjectExid;
|
|
62
|
+
scope?: CommentsScope;
|
|
33
63
|
id?: number;
|
|
34
64
|
cameraExid: CameraExid;
|
|
35
65
|
content: string;
|
|
36
66
|
createdAt?: string;
|
|
67
|
+
updatedAt?: string;
|
|
37
68
|
creatorEmail?: string;
|
|
38
69
|
creatorName?: string;
|
|
39
70
|
position2d?: TuplePoint2D;
|
|
@@ -43,16 +74,23 @@ export type Comment = {
|
|
|
43
74
|
archivedAt?: string;
|
|
44
75
|
label?: CommentsLabel;
|
|
45
76
|
};
|
|
46
|
-
export type CommentCreationRequestPayload = {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
timestamp
|
|
50
|
-
scope
|
|
51
|
-
projectExid
|
|
52
|
-
cameraExid
|
|
77
|
+
export type CommentCreationRequestPayload = Partial<{
|
|
78
|
+
fromTimestamp: DateType;
|
|
79
|
+
toTimestamp: DateType;
|
|
80
|
+
timestamp: DateType;
|
|
81
|
+
scope: CommentsScope;
|
|
82
|
+
projectExid: ProjectExid;
|
|
83
|
+
cameraExid: CameraExid;
|
|
84
|
+
label: CommentsLabel;
|
|
85
|
+
position2d: TuplePoint2D;
|
|
86
|
+
position3d: [number, number, number];
|
|
87
|
+
context: Record<string, unknown>;
|
|
88
|
+
}> & {
|
|
53
89
|
content: string;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
90
|
+
};
|
|
91
|
+
export type CommentThreeSixtyContext = {
|
|
92
|
+
floorId: string;
|
|
93
|
+
dateId: string;
|
|
94
|
+
currentRoom: string;
|
|
95
|
+
cameraRotation: _360CameraRotation;
|
|
58
96
|
};
|
|
@@ -4,8 +4,7 @@ export type CompanyUser = {
|
|
|
4
4
|
fullname: string;
|
|
5
5
|
email: string;
|
|
6
6
|
eventsCount: number;
|
|
7
|
-
|
|
8
|
-
active: boolean;
|
|
7
|
+
lastLoginAt: string;
|
|
9
8
|
};
|
|
10
9
|
export type AdminCompanyUser = {
|
|
11
10
|
id: number;
|
|
@@ -103,13 +102,20 @@ export type CompanyQueryParams = PaginationParams & {
|
|
|
103
102
|
projects: string;
|
|
104
103
|
cameras: string;
|
|
105
104
|
users: string;
|
|
106
|
-
activeUsers: string;
|
|
107
105
|
sessions: string;
|
|
108
106
|
};
|
|
109
107
|
export type CompanyUpdatePayload = {
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
companyName: string;
|
|
109
|
+
companyExid: string;
|
|
112
110
|
linkedinUrl?: string;
|
|
113
111
|
domains?: string;
|
|
114
112
|
zohoId?: string;
|
|
113
|
+
ssoProviders: string[];
|
|
114
|
+
};
|
|
115
|
+
export type CompanyUpdateResponse = {
|
|
116
|
+
name: string;
|
|
117
|
+
exid: string;
|
|
118
|
+
domains: string;
|
|
119
|
+
zohoId: string;
|
|
120
|
+
ssoProviders: string[];
|
|
115
121
|
};
|
|
@@ -89,6 +89,9 @@ export type DetectionsCountsParams = BaseCountsParams & {
|
|
|
89
89
|
};
|
|
90
90
|
export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
|
|
91
91
|
export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
|
|
92
|
+
export type DetectionsPresenceResponse = {
|
|
93
|
+
intervals: DetectionsPresenceByLabel;
|
|
94
|
+
};
|
|
92
95
|
export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
|
|
93
96
|
export type SegmentsPresenceResponse = {
|
|
94
97
|
intervals: SegmentsPresenceByLabel;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export type EmailInlineImage = {
|
|
2
|
+
cid: string;
|
|
3
|
+
mimeType: "image/jpeg" | "image/png" | "image/gif";
|
|
4
|
+
content: string;
|
|
5
|
+
};
|
|
6
|
+
export type EmailAttachment = {
|
|
7
|
+
name: string;
|
|
8
|
+
mimeType: string;
|
|
9
|
+
content: string;
|
|
10
|
+
};
|
|
11
|
+
export type EmailMessage = {
|
|
12
|
+
to: string[];
|
|
13
|
+
cc?: string[];
|
|
14
|
+
subject: string;
|
|
15
|
+
html: string;
|
|
16
|
+
inlineImages?: EmailInlineImage[];
|
|
17
|
+
attachments?: EmailAttachment[];
|
|
18
|
+
};
|
|
19
|
+
export type EmailAcceptance = {
|
|
20
|
+
status: "accepted";
|
|
21
|
+
requestId: string | null;
|
|
22
|
+
};
|
|
23
|
+
export type EmailRejection = {
|
|
24
|
+
detail: string | {
|
|
25
|
+
msg: string;
|
|
26
|
+
}[];
|
|
27
|
+
};
|
|
@@ -24,7 +24,9 @@ export declare enum ErrorCode {
|
|
|
24
24
|
ForbiddenError = 403,
|
|
25
25
|
NotFoundError = 404,
|
|
26
26
|
ConflictError = 409,
|
|
27
|
-
GoneError = 410
|
|
27
|
+
GoneError = 410,
|
|
28
|
+
TooManyRequestsError = 429,
|
|
29
|
+
UnprocessableEntityError = 422
|
|
28
30
|
}
|
|
29
31
|
export declare enum EvercamApiErrorCode {
|
|
30
32
|
IntegrationError = "INTEGRATION_ERROR",
|
|
@@ -38,7 +40,8 @@ export declare enum EvercamApiErrorCode {
|
|
|
38
40
|
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
39
41
|
PasswordReset = "PASSWORD_RESET",
|
|
40
42
|
RequireShareRequest = "REQUIRE_SHARE_REQUEST",
|
|
41
|
-
Generic = "GENERIC"
|
|
43
|
+
Generic = "GENERIC",
|
|
44
|
+
VideoWallInUse = "VIDEO_WALL_IN_USE"
|
|
42
45
|
}
|
|
43
46
|
type _EvercamApiError = {
|
|
44
47
|
code: EvercamApiErrorCode;
|
|
@@ -47,6 +50,8 @@ type _EvercamApiError = {
|
|
|
47
50
|
innerError?: _EvercamApiError;
|
|
48
51
|
};
|
|
49
52
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
53
|
+
export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
|
|
54
|
+
export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
|
|
50
55
|
export type AppError = {
|
|
51
56
|
statusCode?: number;
|
|
52
57
|
message?: string;
|