@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be
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 +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- 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 +56 -34
- 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 +57 -33
- 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 +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- 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 +6 -10
- package/dist/api/types/drone.d.ts +94 -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 +194 -27
- 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 +56 -10
- 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 +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- 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 +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 +63 -10
- 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 +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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 +506 -46
- 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 +4 -0
- package/dist/shared/types/observations.d.ts +25 -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;
|
|
@@ -46,10 +44,7 @@ export type Camera = {
|
|
|
46
44
|
isPublic: boolean;
|
|
47
45
|
lastOnlineAt: string;
|
|
48
46
|
lastPolledAt: string;
|
|
49
|
-
location:
|
|
50
|
-
lat: number;
|
|
51
|
-
lng: number;
|
|
52
|
-
};
|
|
47
|
+
location: GeoPoint;
|
|
53
48
|
modelId: string;
|
|
54
49
|
modelName: string;
|
|
55
50
|
name: string;
|
|
@@ -87,12 +82,24 @@ export type Camera = {
|
|
|
87
82
|
vendorName: string;
|
|
88
83
|
isAccessRestricted?: boolean;
|
|
89
84
|
kitAlarms?: KitAlarm[];
|
|
85
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
86
|
+
position?: number | null;
|
|
90
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
|
+
}>;
|
|
91
98
|
export type AdminCamera = {
|
|
92
99
|
id: number;
|
|
93
100
|
exid: CameraExid;
|
|
94
101
|
name: string;
|
|
95
|
-
status:
|
|
102
|
+
status: CameraStatus;
|
|
96
103
|
description: string | null;
|
|
97
104
|
createdAt: string;
|
|
98
105
|
updatedAt: string;
|
|
@@ -112,10 +119,7 @@ export type AdminCamera = {
|
|
|
112
119
|
isPublic: boolean;
|
|
113
120
|
sharedWithConstruction?: boolean;
|
|
114
121
|
timezone: string | null;
|
|
115
|
-
location?:
|
|
116
|
-
lat: number;
|
|
117
|
-
lng: number;
|
|
118
|
-
} | null;
|
|
122
|
+
location?: GeoPoint | null;
|
|
119
123
|
fovAngle?: number | null;
|
|
120
124
|
fovRadius?: number | null;
|
|
121
125
|
heading?: number | null;
|
|
@@ -157,22 +161,25 @@ export type AdminCamera = {
|
|
|
157
161
|
cloudRecordingStorageDuration?: number | null;
|
|
158
162
|
liveViewFrequency?: number | null;
|
|
159
163
|
anprSources?: string[];
|
|
160
|
-
storageProviders?:
|
|
164
|
+
storageProviders?: StorageProvider[];
|
|
161
165
|
featureFlags?: CameraFeatureFlag[];
|
|
162
166
|
zohoId?: string | null;
|
|
163
167
|
offlineReason?: string | null;
|
|
164
168
|
macAddress?: string | null;
|
|
165
169
|
type?: string[];
|
|
166
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;
|
|
167
178
|
};
|
|
168
179
|
export type CameraMapMarker = {
|
|
169
180
|
isOnline: boolean;
|
|
170
|
-
location:
|
|
171
|
-
|
|
172
|
-
lng: number;
|
|
173
|
-
};
|
|
174
|
-
needFov: boolean;
|
|
175
|
-
rotation: number;
|
|
181
|
+
location: GeoPoint;
|
|
182
|
+
heading: number;
|
|
176
183
|
fovAngle: number;
|
|
177
184
|
fovRadius: number;
|
|
178
185
|
};
|
|
@@ -209,69 +216,84 @@ export declare enum CameraFeatureFlag {
|
|
|
209
216
|
Segmentation = "segmentation",
|
|
210
217
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
211
218
|
PpeMonitoring = "ppe_monitoring",
|
|
219
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
220
|
+
PpeGemini = "ppe_gemini",
|
|
221
|
+
PpeYolo = "ppe_yolo",
|
|
222
|
+
PpeV2 = "ppe_v2",
|
|
212
223
|
NoLiveView = "no_live_view",
|
|
224
|
+
NoRecordings = "no_recordings",
|
|
213
225
|
Ring = "ring",
|
|
214
226
|
CloudOnly = "cloud_only"
|
|
215
227
|
}
|
|
216
|
-
export type
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
cameraPowerSchedule?: Schedule;
|
|
233
|
-
isPowerScheduleActive?: boolean;
|
|
234
|
-
powerSchedule?: object;
|
|
235
|
-
ptz?: boolean;
|
|
236
|
-
camUsername?: string;
|
|
237
|
-
camPassword?: string;
|
|
238
|
-
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: {
|
|
239
244
|
id: string;
|
|
240
245
|
name: string;
|
|
241
246
|
};
|
|
242
|
-
modelName
|
|
243
|
-
host
|
|
244
|
-
nvrChannel
|
|
245
|
-
nvrPortHttp
|
|
246
|
-
externalRtspPort
|
|
247
|
-
name
|
|
248
|
-
h264Url
|
|
249
|
-
snapshotUrl
|
|
250
|
-
nvrSnapshotUrl
|
|
251
|
-
routerId
|
|
252
|
-
coordinates
|
|
253
|
-
heading
|
|
254
|
-
fovAngle
|
|
255
|
-
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;
|
|
256
261
|
featureFlags: CameraFeatureFlag[];
|
|
257
|
-
isAccessRestricted
|
|
258
|
-
liveViewFrequency
|
|
259
|
-
|
|
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
|
+
}>;
|
|
260
277
|
export type CamerasResponsePayload = {
|
|
261
278
|
cameras?: Camera[];
|
|
262
279
|
};
|
|
263
|
-
export type
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
customMessage?: string;
|
|
280
|
+
export type CameraNoteResponsePayload = {
|
|
281
|
+
id: number;
|
|
282
|
+
camera: {
|
|
283
|
+
exid: string;
|
|
284
|
+
name: string;
|
|
269
285
|
};
|
|
286
|
+
who: string;
|
|
287
|
+
noteType: string;
|
|
288
|
+
content: string;
|
|
289
|
+
pinned: boolean;
|
|
290
|
+
insertedAt: string;
|
|
270
291
|
};
|
|
271
292
|
export type CameraStatusLog = {
|
|
272
293
|
start: string;
|
|
273
294
|
end: string;
|
|
274
295
|
state: CameraStatus;
|
|
296
|
+
status: CameraStatus;
|
|
275
297
|
};
|
|
276
298
|
export type Log = {
|
|
277
299
|
details: {
|
|
@@ -306,7 +328,9 @@ export declare enum NvrModel {
|
|
|
306
328
|
Avigilion = "avigilion",
|
|
307
329
|
Hanwha = "hanwha",
|
|
308
330
|
Nxwitness = "nxwitness",
|
|
309
|
-
ExNvr = "ex_nvr"
|
|
331
|
+
ExNvr = "ex_nvr",
|
|
332
|
+
None = "none",
|
|
333
|
+
Other = "other"
|
|
310
334
|
}
|
|
311
335
|
export declare enum CameraModel {
|
|
312
336
|
YCam = "y-cam",
|
|
@@ -320,12 +344,6 @@ export declare enum CameraModel {
|
|
|
320
344
|
Other = "other",
|
|
321
345
|
Ring = "ring"
|
|
322
346
|
}
|
|
323
|
-
export type DroneCameraTransform = {
|
|
324
|
-
position: Cartesian3;
|
|
325
|
-
direction: Cartesian3;
|
|
326
|
-
up: Cartesian3;
|
|
327
|
-
right: Cartesian3;
|
|
328
|
-
};
|
|
329
347
|
export type Footage = {
|
|
330
348
|
cameraExid: string;
|
|
331
349
|
cameraName: string;
|
|
@@ -357,7 +375,36 @@ export type CameraPath = {
|
|
|
357
375
|
export type CheckCameraPortPayload = {
|
|
358
376
|
address: string;
|
|
359
377
|
port: number;
|
|
360
|
-
|
|
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;
|
|
361
408
|
};
|
|
362
409
|
export type CameraCreateRequestPayload = {
|
|
363
410
|
status: CameraStatus;
|
|
@@ -366,59 +413,50 @@ export type CameraCreateRequestPayload = {
|
|
|
366
413
|
isPowerScheduleActive?: boolean;
|
|
367
414
|
ptz?: boolean;
|
|
368
415
|
name: string;
|
|
369
|
-
coordinates?:
|
|
416
|
+
coordinates?: TuplePoint2D;
|
|
370
417
|
recordingFromNvr?: boolean;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
host: string;
|
|
375
|
-
httpPort: number;
|
|
376
|
-
username: string;
|
|
377
|
-
password: string;
|
|
378
|
-
rtspPort?: number;
|
|
379
|
-
pictureEndpoint?: string;
|
|
380
|
-
streamEndpoint?: string;
|
|
381
|
-
};
|
|
382
|
-
nvr?: {
|
|
383
|
-
model: NvrModel;
|
|
384
|
-
serial?: string;
|
|
385
|
-
deviceType?: NvrDeviceType;
|
|
386
|
-
macAddress?: string;
|
|
387
|
-
username: string;
|
|
388
|
-
password: string;
|
|
389
|
-
httpUrl: string;
|
|
390
|
-
rtspUrl?: string;
|
|
391
|
-
};
|
|
392
|
-
cloudRecording?: {
|
|
393
|
-
id?: number;
|
|
394
|
-
frequency: 1 | 2 | 4 | 5 | 6 | 10 | 12 | 30 | 60;
|
|
395
|
-
storageDuration: -1 | 1 | 7 | 30 | 90;
|
|
396
|
-
status: "on" | "off" | "paused" | "on_scheduled";
|
|
397
|
-
schedule: Schedule;
|
|
398
|
-
};
|
|
418
|
+
cameraConfig: CameraConfigPayload;
|
|
419
|
+
nvr?: CameraCreateNvrPayload;
|
|
420
|
+
cloudRecordings?: CameraCloudRecordingsPayload;
|
|
399
421
|
ownerId: number;
|
|
400
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;
|
|
401
435
|
};
|
|
402
436
|
export type CameraDeletePayload = {
|
|
403
437
|
verify: string;
|
|
404
438
|
password: string;
|
|
405
439
|
};
|
|
406
|
-
export type SaveNotePayload = {
|
|
407
|
-
noteType: string;
|
|
408
|
-
content: string;
|
|
409
|
-
};
|
|
410
440
|
export type CameraNote = {
|
|
411
441
|
id: number;
|
|
412
442
|
cameraId: number;
|
|
443
|
+
who: string;
|
|
413
444
|
noteType: string;
|
|
414
445
|
content: string;
|
|
446
|
+
pinned: boolean;
|
|
415
447
|
insertedAt: DateType;
|
|
416
448
|
};
|
|
449
|
+
export type GetCameraNotesParams = {
|
|
450
|
+
noteType?: string;
|
|
451
|
+
pinned?: boolean;
|
|
452
|
+
sort?: string;
|
|
453
|
+
page?: number;
|
|
454
|
+
limit?: number;
|
|
455
|
+
};
|
|
417
456
|
export type CreateCameraNotePayload = {
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
action: string;
|
|
457
|
+
noteType: string;
|
|
458
|
+
content: string;
|
|
459
|
+
pinned?: boolean;
|
|
422
460
|
};
|
|
423
461
|
export declare enum HddStatus {
|
|
424
462
|
Error = "error",
|
|
@@ -432,21 +470,24 @@ export type NvrQueryParams = PaginationParams & {
|
|
|
432
470
|
cameraName: string;
|
|
433
471
|
cameraExid: CameraExid;
|
|
434
472
|
cameraIp: string;
|
|
435
|
-
hddStatus:
|
|
473
|
+
hddStatus: NvrHddStatus[];
|
|
436
474
|
};
|
|
437
475
|
export type OfflineCamera = {
|
|
438
476
|
id: number;
|
|
439
477
|
exid: string;
|
|
440
478
|
name: string;
|
|
441
|
-
|
|
479
|
+
userFullname: string;
|
|
442
480
|
timezone: string;
|
|
443
481
|
status: CameraStatus;
|
|
444
482
|
zohoId: string;
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
483
|
+
cameraModel: string;
|
|
484
|
+
cameraScheme: string;
|
|
485
|
+
cameraHost: string;
|
|
486
|
+
cameraUsername: string;
|
|
487
|
+
cameraPassword: string;
|
|
488
|
+
cameraPictureEndpoint: string;
|
|
489
|
+
cameraRtspPort: string;
|
|
490
|
+
cameraHttpPort: string;
|
|
450
491
|
createdAt: DateType;
|
|
451
492
|
lastPolledAt: DateType;
|
|
452
493
|
lastOnlineAt: DateType;
|
|
@@ -468,7 +509,10 @@ export type OfflineCameraQueryParams = PaginationParams & {
|
|
|
468
509
|
cameraOwner: string;
|
|
469
510
|
powerType: PowerType;
|
|
470
511
|
powerSchedule: PowerSchedule;
|
|
471
|
-
batteryReadingsLastVoltage:
|
|
512
|
+
batteryReadingsLastVoltage: string;
|
|
513
|
+
includeOnline: boolean;
|
|
514
|
+
createdAtFrom: string;
|
|
515
|
+
createdAtTo: string;
|
|
472
516
|
};
|
|
473
517
|
export type OfflineCameraNote = {
|
|
474
518
|
action: AuditLogActionType;
|
|
@@ -482,7 +526,41 @@ export type OfflineCameraNoteResponse = {
|
|
|
482
526
|
privateNotes: OfflineCameraNote[];
|
|
483
527
|
};
|
|
484
528
|
export type SiteVisitCamerasQueryParams = PaginationParams & {
|
|
529
|
+
cameraExid: CameraExid;
|
|
530
|
+
cameraName: string;
|
|
531
|
+
timezone: string;
|
|
485
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;
|
|
486
564
|
};
|
|
487
565
|
export type ProjectCamera = {
|
|
488
566
|
apiId: string;
|
|
@@ -492,6 +570,8 @@ export type ProjectCamera = {
|
|
|
492
570
|
name: string;
|
|
493
571
|
ownerEmail: string;
|
|
494
572
|
ownerFullname: string;
|
|
573
|
+
featureFlags: ProjectFeatureFlag[];
|
|
574
|
+
status: string;
|
|
495
575
|
};
|
|
496
576
|
export declare enum DuplicatedCameraFields {
|
|
497
577
|
Host = "host",
|
|
@@ -502,23 +582,29 @@ export declare enum DuplicatedCameraFields {
|
|
|
502
582
|
export type DuplicatedCameraObject = {
|
|
503
583
|
exid: string;
|
|
504
584
|
name: string;
|
|
505
|
-
cameraStatus:
|
|
585
|
+
cameraStatus: CameraStatus;
|
|
506
586
|
crStatus: string;
|
|
507
587
|
};
|
|
508
588
|
export type DuplicatedCameraResponse = {
|
|
509
589
|
cameras: DuplicatedCameraObject[];
|
|
510
|
-
host
|
|
511
|
-
cameraHttpPort
|
|
512
|
-
nvrHttpPort
|
|
513
|
-
nvrDeviceId
|
|
590
|
+
host?: string;
|
|
591
|
+
cameraHttpPort?: number;
|
|
592
|
+
nvrHttpPort?: number;
|
|
593
|
+
nvrDeviceId?: string;
|
|
514
594
|
count: number;
|
|
515
595
|
};
|
|
516
596
|
export type MergeDuplicatedCameraPayload = {
|
|
517
597
|
masterCamera: Record<string, unknown>;
|
|
518
|
-
shareeCameras: Record<string, unknown
|
|
598
|
+
shareeCameras: Record<string, unknown>[];
|
|
519
599
|
};
|
|
520
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;
|
|
521
605
|
status: CameraStatus;
|
|
606
|
+
statuses: CameraStatus[];
|
|
607
|
+
deviceId: string;
|
|
522
608
|
isPublic: boolean;
|
|
523
609
|
featureFlags: CameraFeatureFlag[];
|
|
524
610
|
ptz: boolean;
|
|
@@ -534,13 +620,23 @@ export type FetchCameraQueryParams = PaginationParams & {
|
|
|
534
620
|
nvrModel: NvrModel;
|
|
535
621
|
cameraOwner: string;
|
|
536
622
|
ownerEmail: string;
|
|
623
|
+
cameraIp: string;
|
|
624
|
+
userEmail: string;
|
|
537
625
|
isRecording: boolean;
|
|
626
|
+
recordingFromNvr: boolean;
|
|
538
627
|
cloudRecordingStorageDuration: number;
|
|
628
|
+
cloudRecordingFrequency: CloudRecordingFrequency;
|
|
629
|
+
cloudRecordingStatus: CloudRecordingStatus;
|
|
539
630
|
cameraIds: string;
|
|
540
631
|
hasLocation: boolean;
|
|
541
632
|
externalHttpPort: string;
|
|
542
633
|
externalRsptPort: string;
|
|
634
|
+
cameraHttpPort: string;
|
|
635
|
+
nvrRtspPort: string;
|
|
543
636
|
nvrHttpPort: string;
|
|
637
|
+
createdAtFrom: string;
|
|
638
|
+
createdAtTo: string;
|
|
639
|
+
powerType: PowerType;
|
|
544
640
|
};
|
|
545
641
|
export declare enum BimType {
|
|
546
642
|
TwoD = "2D",
|
|
@@ -549,3 +645,16 @@ export declare enum BimType {
|
|
|
549
645
|
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
550
646
|
cameraExid: CameraExid;
|
|
551
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
|
};
|
|
@@ -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
|
};
|