@evercam/api 1.0.0-ae46ef99c → 1.0.0-api-fixes-bdf31a1d5
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 +4 -0
- package/dist/api/api/3dFirebaseApi.d.ts +170 -5
- package/dist/api/api/adminApi.d.ts +170 -99
- package/dist/api/api/aiApi.d.ts +99 -82
- package/dist/api/api/authzApi.d.ts +31 -15
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +158 -116
- package/dist/api/api/evercamLabsApi.d.ts +6 -4
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +119 -33
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/videoWallApi.d.ts +7 -7
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +208 -7
- package/dist/api/types/aconex.d.ts +106 -7
- package/dist/api/types/admin.d.ts +67 -0
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +172 -41
- package/dist/api/types/anpr.d.ts +52 -13
- package/dist/api/types/auditLogs.d.ts +63 -38
- package/dist/api/types/authz.d.ts +61 -0
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +86 -1
- package/dist/api/types/axios.d.ts +28 -7
- package/dist/api/types/bim.d.ts +77 -43
- package/dist/api/types/camera.d.ts +165 -135
- package/dist/api/types/comments.d.ts +43 -21
- package/dist/api/types/company.d.ts +91 -11
- package/dist/api/types/compare.d.ts +40 -21
- package/dist/api/types/connector.d.ts +4 -5
- package/dist/api/types/coolify.d.ts +20 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/countries.d.ts +0 -7
- package/dist/api/types/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +23 -34
- package/dist/api/types/drone.d.ts +96 -6
- package/dist/api/types/errors.d.ts +12 -0
- package/dist/api/types/gateReport.d.ts +50 -158
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hdd.d.ts +76 -17
- package/dist/api/types/index.d.ts +12 -1
- package/dist/api/types/ingest.d.ts +104 -3
- package/dist/api/types/kit.d.ts +71 -12
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +21 -2
- package/dist/api/types/notification.d.ts +50 -14
- package/dist/api/types/nvr.d.ts +28 -0
- package/dist/api/types/oauth.d.ts +63 -0
- package/dist/api/types/planner.d.ts +101 -1
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +23 -16
- package/dist/api/types/progressPhoto.d.ts +30 -41
- package/dist/api/types/project.d.ts +182 -20
- package/dist/api/types/recording.d.ts +11 -14
- package/dist/api/types/recycleBin.d.ts +14 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/routeParams.d.ts +2 -1
- package/dist/api/types/router.d.ts +43 -3
- package/dist/api/types/shared.d.ts +81 -53
- package/dist/api/types/shares.d.ts +6 -144
- package/dist/api/types/sim.d.ts +6 -9
- package/dist/api/types/siteAnalytics.d.ts +194 -48
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +108 -7
- package/dist/api/types/sso.d.ts +55 -0
- package/dist/api/types/storageProvider.d.ts +31 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +4 -5
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +4 -18
- package/dist/api/types/timelapse.d.ts +46 -17
- package/dist/api/types/user.d.ts +174 -88
- package/dist/api/types/videoWall.d.ts +47 -14
- package/dist/api/types/weather.d.ts +151 -11
- package/dist/api/types/widget.d.ts +143 -54
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +2206 -1029
- 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 +163 -18
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +10 -3
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +7 -4
- package/dist/api/types/storageServers.d.ts +0 -4
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import { AuditLogActionType,
|
|
1
|
+
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, NvrHddStatus, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, StorageProvider, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
|
+
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
+
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
2
4
|
export type CameraExid = string;
|
|
3
5
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
4
|
-
export type Cartesian3 = {
|
|
5
|
-
x: number;
|
|
6
|
-
y: number;
|
|
7
|
-
z: number;
|
|
8
|
-
};
|
|
9
6
|
export type Camera = {
|
|
10
7
|
cameraPowerSchedule?: Schedule;
|
|
11
8
|
camPassword?: string;
|
|
@@ -16,8 +13,9 @@ export type Camera = {
|
|
|
16
13
|
status: string;
|
|
17
14
|
storageDuration: string;
|
|
18
15
|
};
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
liveViewFrequency: number | null;
|
|
17
|
+
createdAt: string;
|
|
18
|
+
description: string | null;
|
|
21
19
|
discoverable: boolean;
|
|
22
20
|
external: {
|
|
23
21
|
host: string;
|
|
@@ -36,18 +34,15 @@ export type Camera = {
|
|
|
36
34
|
featureFlags: Array<CameraFeatureFlag>;
|
|
37
35
|
fovAngle: number;
|
|
38
36
|
fovRadius: number;
|
|
39
|
-
heading:
|
|
37
|
+
heading: number;
|
|
40
38
|
id: CameraExid;
|
|
41
39
|
exid: CameraExid;
|
|
42
40
|
isOnline: boolean;
|
|
43
41
|
isPowerScheduleActive: boolean;
|
|
44
42
|
isPublic: boolean;
|
|
45
|
-
lastOnlineAt:
|
|
46
|
-
lastPolledAt:
|
|
47
|
-
location:
|
|
48
|
-
lat: number;
|
|
49
|
-
lng: number;
|
|
50
|
-
};
|
|
43
|
+
lastOnlineAt: string;
|
|
44
|
+
lastPolledAt: string;
|
|
45
|
+
location: GeoPoint;
|
|
51
46
|
modelId: string;
|
|
52
47
|
modelName: string;
|
|
53
48
|
name: string;
|
|
@@ -62,7 +57,7 @@ export type Camera = {
|
|
|
62
57
|
offlineReason: string;
|
|
63
58
|
owned: boolean;
|
|
64
59
|
owner: string;
|
|
65
|
-
pitch: null;
|
|
60
|
+
pitch: string | null;
|
|
66
61
|
project: {
|
|
67
62
|
id: string;
|
|
68
63
|
name: string;
|
|
@@ -72,95 +67,105 @@ export type Camera = {
|
|
|
72
67
|
rtmp: string;
|
|
73
68
|
};
|
|
74
69
|
ptz: boolean;
|
|
75
|
-
|
|
76
|
-
|
|
70
|
+
recordingFromNvr: boolean;
|
|
71
|
+
model?: CameraModel;
|
|
72
|
+
roll: string | null;
|
|
77
73
|
routerId: number;
|
|
78
74
|
status: CameraStatus;
|
|
79
75
|
streamingServer: string;
|
|
80
76
|
thumbnailUrl: string;
|
|
81
77
|
largeThumbnailUrl?: string;
|
|
82
78
|
timezone: string;
|
|
83
|
-
updatedAt:
|
|
79
|
+
updatedAt: string;
|
|
84
80
|
vendorName: string;
|
|
85
81
|
isAccessRestricted?: boolean;
|
|
86
|
-
kitAlarms?:
|
|
82
|
+
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
87
84
|
};
|
|
88
85
|
export type AdminCamera = {
|
|
89
|
-
cameraHost: string;
|
|
90
|
-
cameraHttpPort: number;
|
|
91
|
-
cameraModel: string;
|
|
92
|
-
cameraPassword: string;
|
|
93
|
-
cameraPictureEndpoint: string;
|
|
94
|
-
cameraRtspPort: number;
|
|
95
|
-
cameraScheme: string;
|
|
96
|
-
cameraUsername: string;
|
|
97
|
-
cameraFirmwareVersion: string;
|
|
98
|
-
cameraTimezone: string;
|
|
99
|
-
cloudRecordingFrequency: number;
|
|
100
|
-
cloudRecordingId: number;
|
|
101
|
-
cloudRecordingSchedule: Schedule;
|
|
102
|
-
cloudRecordingStatus: string;
|
|
103
|
-
cloudRecordingStorageDuration: number;
|
|
104
|
-
createdAt: DateTime_Z_micros;
|
|
105
|
-
description: null;
|
|
106
|
-
discoverable: false;
|
|
107
|
-
exid: CameraExid;
|
|
108
|
-
featureFlags: CameraFeatureFlag[];
|
|
109
|
-
fovAngle: 45.0;
|
|
110
|
-
fovRadius: number;
|
|
111
|
-
heading: null;
|
|
112
86
|
id: number;
|
|
113
|
-
|
|
114
|
-
isPublic: false;
|
|
115
|
-
kitId?: number;
|
|
116
|
-
lastOnlineAt: DateTime_Z_micros;
|
|
117
|
-
lastPolledAt: DateTime_Z_micros;
|
|
118
|
-
location: {
|
|
119
|
-
lat: number;
|
|
120
|
-
lng: number;
|
|
121
|
-
};
|
|
122
|
-
macAddress: string;
|
|
87
|
+
exid: CameraExid;
|
|
123
88
|
name: string;
|
|
124
|
-
nvrChannel: null;
|
|
125
|
-
nvrDeviceId: string;
|
|
126
|
-
nvrHost: string;
|
|
127
|
-
nvrHttpPort: number;
|
|
128
|
-
nvrModel: NvrModel;
|
|
129
|
-
nvrPassword: string;
|
|
130
|
-
nvrPictureEndpoint: string;
|
|
131
|
-
nvrRtspPort: number;
|
|
132
|
-
nvrScheme: string;
|
|
133
|
-
nvrUsername: string;
|
|
134
|
-
offlineReason: null;
|
|
135
|
-
pitch: null;
|
|
136
|
-
powerSchedule: Schedule;
|
|
137
|
-
projectExid: string;
|
|
138
|
-
projectFeatureFlags: [];
|
|
139
|
-
projectId: number;
|
|
140
|
-
projectName: string;
|
|
141
|
-
ptz: false;
|
|
142
|
-
recordingFromNvr: false;
|
|
143
|
-
roll: null;
|
|
144
|
-
routerId: number;
|
|
145
89
|
status: string;
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
90
|
+
description: string | null;
|
|
91
|
+
createdAt: string;
|
|
92
|
+
updatedAt: string;
|
|
93
|
+
lastOnlineAt: string | null;
|
|
94
|
+
lastPolledAt: string | null;
|
|
95
|
+
decommissionedAt: string | null;
|
|
96
|
+
deletedAt?: string | null;
|
|
97
|
+
projectId: number | null;
|
|
98
|
+
projectExid: string | null;
|
|
99
|
+
projectName: string | null;
|
|
100
|
+
projectFeatureFlags: Array<ProjectFeatureFlag | string>;
|
|
101
|
+
userId: number | null;
|
|
152
102
|
userEmail: string;
|
|
153
103
|
userFullname: string;
|
|
154
|
-
|
|
155
|
-
|
|
104
|
+
userApiId?: string;
|
|
105
|
+
userApiKey?: string;
|
|
106
|
+
isPublic: boolean;
|
|
107
|
+
sharedWithConstruction?: boolean;
|
|
108
|
+
timezone: string | null;
|
|
109
|
+
location?: GeoPoint | null;
|
|
110
|
+
fovAngle?: number | null;
|
|
111
|
+
fovRadius?: number | null;
|
|
112
|
+
heading?: number | null;
|
|
113
|
+
pitch?: number | null;
|
|
114
|
+
roll?: number | null;
|
|
115
|
+
cameraModel?: string | null;
|
|
116
|
+
cameraHost?: string | null;
|
|
117
|
+
cameraHttpPort?: number | null;
|
|
118
|
+
cameraRtspPort?: number | null;
|
|
119
|
+
cameraScheme?: string | null;
|
|
120
|
+
cameraUsername?: string | null;
|
|
121
|
+
cameraPassword?: string | null;
|
|
122
|
+
cameraPictureEndpoint?: string | null;
|
|
123
|
+
rtspUrl?: string | null;
|
|
124
|
+
httpUrl?: string | null;
|
|
125
|
+
deviceId?: string | null;
|
|
126
|
+
nvrId?: number | null;
|
|
127
|
+
nvrDeviceId?: string | null;
|
|
128
|
+
nvrModel?: NvrModel | string | null;
|
|
129
|
+
nvrHost?: string | null;
|
|
130
|
+
nvrHttpPort?: number | null;
|
|
131
|
+
nvrRtspPort?: number | null;
|
|
132
|
+
nvrScheme?: string | null;
|
|
133
|
+
nvrUsername?: string | null;
|
|
134
|
+
nvrPassword?: string | null;
|
|
135
|
+
nvrPictureEndpoint?: string | null;
|
|
136
|
+
streamEndpoint?: string | null;
|
|
137
|
+
routerId?: number | null;
|
|
138
|
+
kitId?: number | null;
|
|
139
|
+
powerType?: string | null;
|
|
140
|
+
powerSchedule?: ScheduleLowercase | Record<string, string[]>;
|
|
141
|
+
isPowerScheduleActive?: boolean;
|
|
142
|
+
discoverable?: boolean;
|
|
143
|
+
recordingFromNvr?: boolean;
|
|
144
|
+
cloudRecordingFrequency?: number | null;
|
|
145
|
+
cloudRecordingId?: number | null;
|
|
146
|
+
cloudRecordingStatus?: string | null;
|
|
147
|
+
cloudRecordingSchedule?: ScheduleLowercase | null;
|
|
148
|
+
cloudRecordingStorageDuration?: number | null;
|
|
149
|
+
liveViewFrequency?: number | null;
|
|
150
|
+
anprSources?: string[];
|
|
151
|
+
storageProviders?: StorageProvider[];
|
|
152
|
+
featureFlags?: CameraFeatureFlag[];
|
|
153
|
+
zohoId?: string | null;
|
|
154
|
+
offlineReason?: string | null;
|
|
155
|
+
macAddress?: string | null;
|
|
156
|
+
type?: string[];
|
|
156
157
|
thumbnailUrl?: string;
|
|
158
|
+
channel?: string | null;
|
|
159
|
+
nvrSnapshotUrl?: string | null;
|
|
160
|
+
ptz?: boolean;
|
|
161
|
+
hddInfo?: Record<string, unknown>[];
|
|
162
|
+
cameraFirmwareVersion?: string | null;
|
|
163
|
+
cameraTimezone?: string | null;
|
|
164
|
+
resolution?: string | null;
|
|
157
165
|
};
|
|
158
166
|
export type CameraMapMarker = {
|
|
159
167
|
isOnline: boolean;
|
|
160
|
-
location:
|
|
161
|
-
lat: number;
|
|
162
|
-
lng: number;
|
|
163
|
-
};
|
|
168
|
+
location: GeoPoint;
|
|
164
169
|
needFov: boolean;
|
|
165
170
|
rotation: number;
|
|
166
171
|
fovAngle: number;
|
|
@@ -176,6 +181,14 @@ export declare enum CameraStatus {
|
|
|
176
181
|
UnderMaintenance = "under_maintenance",
|
|
177
182
|
WaitingForSiteVisit = "waiting_for_site_visit"
|
|
178
183
|
}
|
|
184
|
+
export declare enum IntensityChange {
|
|
185
|
+
High = "High",
|
|
186
|
+
Moderate = "Moderate",
|
|
187
|
+
Low = "Low",
|
|
188
|
+
NoChange = "No change",
|
|
189
|
+
Default = "Default"
|
|
190
|
+
}
|
|
191
|
+
export declare const IntensityChangeColorMap: Record<IntensityChange, string>;
|
|
179
192
|
export declare enum CameraFeatureFlag {
|
|
180
193
|
EdgeVideo = "edge_video",
|
|
181
194
|
BimCompare = "bim_compare",
|
|
@@ -190,7 +203,14 @@ export declare enum CameraFeatureFlag {
|
|
|
190
203
|
ObjectDetection = "object_detection",
|
|
191
204
|
Segmentation = "segmentation",
|
|
192
205
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
193
|
-
PpeMonitoring = "ppe_monitoring"
|
|
206
|
+
PpeMonitoring = "ppe_monitoring",
|
|
207
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
208
|
+
PpeGemini = "ppe_gemini",
|
|
209
|
+
PpeYolo = "ppe_yolo",
|
|
210
|
+
PpeV2 = "ppe_v2",
|
|
211
|
+
NoLiveView = "no_live_view",
|
|
212
|
+
Ring = "ring",
|
|
213
|
+
CloudOnly = "cloud_only"
|
|
194
214
|
}
|
|
195
215
|
export type CameraLogsRequestPayload = {
|
|
196
216
|
limit: number;
|
|
@@ -202,7 +222,7 @@ export type CameraLogsRequestPayload = {
|
|
|
202
222
|
export type CameraUpdateRequestPayload = {
|
|
203
223
|
status?: string;
|
|
204
224
|
timezone?: string;
|
|
205
|
-
|
|
225
|
+
isPublic?: boolean;
|
|
206
226
|
discoverable?: boolean;
|
|
207
227
|
fullname?: string;
|
|
208
228
|
lastOnline?: string;
|
|
@@ -234,6 +254,7 @@ export type CameraUpdateRequestPayload = {
|
|
|
234
254
|
fovRadius?: number;
|
|
235
255
|
featureFlags: CameraFeatureFlag[];
|
|
236
256
|
isAccessRestricted?: boolean;
|
|
257
|
+
liveViewFrequency?: number | null;
|
|
237
258
|
};
|
|
238
259
|
export type CamerasResponsePayload = {
|
|
239
260
|
cameras?: Camera[];
|
|
@@ -250,6 +271,7 @@ export type CameraStatusLog = {
|
|
|
250
271
|
start: string;
|
|
251
272
|
end: string;
|
|
252
273
|
state: CameraStatus;
|
|
274
|
+
status?: string;
|
|
253
275
|
};
|
|
254
276
|
export type Log = {
|
|
255
277
|
details: {
|
|
@@ -295,14 +317,9 @@ export declare enum CameraModel {
|
|
|
295
317
|
Hikvision = "hikvision",
|
|
296
318
|
Avigilion = "avigilion",
|
|
297
319
|
Hanwha = "hanwha",
|
|
298
|
-
Other = "other"
|
|
320
|
+
Other = "other",
|
|
321
|
+
Ring = "ring"
|
|
299
322
|
}
|
|
300
|
-
export type DroneCameraTransform = {
|
|
301
|
-
position: Cartesian3;
|
|
302
|
-
direction: Cartesian3;
|
|
303
|
-
up: Cartesian3;
|
|
304
|
-
right: Cartesian3;
|
|
305
|
-
};
|
|
306
323
|
export type Footage = {
|
|
307
324
|
cameraExid: string;
|
|
308
325
|
cameraName: string;
|
|
@@ -335,6 +352,11 @@ export type CheckCameraPortPayload = {
|
|
|
335
352
|
address: string;
|
|
336
353
|
port: number;
|
|
337
354
|
};
|
|
355
|
+
export type CheckCameraPortResponse = {
|
|
356
|
+
address: string;
|
|
357
|
+
port: number;
|
|
358
|
+
open: boolean;
|
|
359
|
+
};
|
|
338
360
|
export type CameraCreateRequestPayload = {
|
|
339
361
|
status: CameraStatus;
|
|
340
362
|
timezone?: string;
|
|
@@ -342,7 +364,7 @@ export type CameraCreateRequestPayload = {
|
|
|
342
364
|
isPowerScheduleActive?: boolean;
|
|
343
365
|
ptz?: boolean;
|
|
344
366
|
name: string;
|
|
345
|
-
coordinates?:
|
|
367
|
+
coordinates?: TuplePoint2D;
|
|
346
368
|
recordingFromNvr?: boolean;
|
|
347
369
|
CameraConfig: {
|
|
348
370
|
model: CameraModel;
|
|
@@ -391,10 +413,8 @@ export type CameraNote = {
|
|
|
391
413
|
insertedAt: DateType;
|
|
392
414
|
};
|
|
393
415
|
export type CreateCameraNotePayload = {
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
customMessage: string;
|
|
397
|
-
action: string;
|
|
416
|
+
noteType: string;
|
|
417
|
+
content: string;
|
|
398
418
|
};
|
|
399
419
|
export declare enum HddStatus {
|
|
400
420
|
Error = "error",
|
|
@@ -404,11 +424,11 @@ export declare enum HddStatus {
|
|
|
404
424
|
Ok = "ok"
|
|
405
425
|
}
|
|
406
426
|
export type NvrQueryParams = PaginationParams & {
|
|
407
|
-
ownerId
|
|
408
|
-
cameraName
|
|
409
|
-
cameraExid
|
|
410
|
-
cameraIp
|
|
411
|
-
hddStatus
|
|
427
|
+
ownerId?: number;
|
|
428
|
+
cameraName?: string;
|
|
429
|
+
cameraExid?: CameraExid;
|
|
430
|
+
cameraIp?: string;
|
|
431
|
+
hddStatus?: NvrHddStatus[];
|
|
412
432
|
};
|
|
413
433
|
export type OfflineCamera = {
|
|
414
434
|
id: number;
|
|
@@ -437,14 +457,14 @@ export type OfflineCamera = {
|
|
|
437
457
|
}[];
|
|
438
458
|
};
|
|
439
459
|
export type OfflineCameraQueryParams = PaginationParams & {
|
|
440
|
-
status
|
|
441
|
-
cameraExid
|
|
442
|
-
cameraName
|
|
443
|
-
timezone
|
|
444
|
-
cameraOwner
|
|
445
|
-
powerType
|
|
446
|
-
powerSchedule
|
|
447
|
-
batteryReadingsLastVoltage
|
|
460
|
+
status?: CameraStatus;
|
|
461
|
+
cameraExid?: CameraExid;
|
|
462
|
+
cameraName?: string;
|
|
463
|
+
timezone?: string;
|
|
464
|
+
cameraOwner?: string;
|
|
465
|
+
powerType?: PowerType;
|
|
466
|
+
powerSchedule?: PowerSchedule;
|
|
467
|
+
batteryReadingsLastVoltage?: number;
|
|
448
468
|
};
|
|
449
469
|
export type OfflineCameraNote = {
|
|
450
470
|
action: AuditLogActionType;
|
|
@@ -494,27 +514,37 @@ export type MergeDuplicatedCameraPayload = {
|
|
|
494
514
|
shareeCameras: Record<string, unknown>;
|
|
495
515
|
};
|
|
496
516
|
export type FetchCameraQueryParams = PaginationParams & {
|
|
497
|
-
status
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
517
|
+
status?: CameraStatus;
|
|
518
|
+
statuses?: string[];
|
|
519
|
+
isPublic?: boolean;
|
|
520
|
+
featureFlags?: CameraFeatureFlag[];
|
|
521
|
+
ptz?: boolean;
|
|
522
|
+
frequency?: number;
|
|
523
|
+
channel?: number;
|
|
524
|
+
cameraExid?: CameraExid;
|
|
525
|
+
cameraExids?: CameraExid[];
|
|
526
|
+
cameraName?: string;
|
|
527
|
+
projectName?: string;
|
|
528
|
+
timezone?: string;
|
|
529
|
+
region?: string;
|
|
530
|
+
cameraModel?: CameraModel;
|
|
531
|
+
nvrModel?: NvrModel;
|
|
532
|
+
cameraOwner?: string;
|
|
533
|
+
ownerEmail?: string;
|
|
534
|
+
isRecording?: boolean;
|
|
535
|
+
cloudRecordingStorageDuration?: number;
|
|
536
|
+
cameraIds?: string;
|
|
537
|
+
hasLocation?: boolean;
|
|
538
|
+
externalHttpPort?: string;
|
|
539
|
+
externalRtspPort?: string;
|
|
540
|
+
nvrHttpPort?: string;
|
|
541
|
+
createdAtFrom?: string;
|
|
542
|
+
createdAtTo?: string;
|
|
543
|
+
};
|
|
544
|
+
export declare enum BimType {
|
|
545
|
+
TwoD = "2D",
|
|
546
|
+
Forge = "Forge"
|
|
547
|
+
}
|
|
548
|
+
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
503
549
|
cameraExid: CameraExid;
|
|
504
|
-
cameraExids: CameraExid[];
|
|
505
|
-
cameraName: string;
|
|
506
|
-
projectName: string;
|
|
507
|
-
timezone: string;
|
|
508
|
-
region: string;
|
|
509
|
-
cameraModel: CameraModel;
|
|
510
|
-
nvrModel: NvrModel;
|
|
511
|
-
cameraOwner: string;
|
|
512
|
-
ownerEmail: string;
|
|
513
|
-
isRecording: boolean;
|
|
514
|
-
cloudRecordingStorageDuration: number;
|
|
515
|
-
cameraIds: string;
|
|
516
|
-
hasLocation: boolean;
|
|
517
|
-
externalHttpPort: string;
|
|
518
|
-
externalRsptPort: string;
|
|
519
|
-
nvrHttpPort: string;
|
|
520
550
|
};
|
|
@@ -1,43 +1,65 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid } from "
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
|
-
|
|
4
|
+
Project = "project",
|
|
5
|
+
ThreeSixty = "360",
|
|
6
|
+
Drone = "drone",
|
|
7
|
+
Bim = "bim",
|
|
8
|
+
Timeline = "timeline"
|
|
9
|
+
}
|
|
10
|
+
export declare enum CommentsLabel {
|
|
11
|
+
Info = "Info",
|
|
12
|
+
Danger = "Danger",
|
|
13
|
+
Restricted = "Restricted",
|
|
14
|
+
Hyperlink = "Hyperlink"
|
|
5
15
|
}
|
|
6
16
|
export type CommentsRequestPayload = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
scope: CommentsScope;
|
|
11
|
-
page?: number;
|
|
12
|
-
limit?: number;
|
|
17
|
+
scope?: CommentsScope;
|
|
18
|
+
cameraExid?: CameraExid;
|
|
19
|
+
archived?: "true" | "false";
|
|
13
20
|
};
|
|
14
|
-
export type
|
|
21
|
+
export type CommentsListRequestPayload = PaginationParams & {
|
|
22
|
+
projectExid?: ProjectExid;
|
|
23
|
+
cameraExid?: CameraExid;
|
|
15
24
|
fromDate?: string;
|
|
16
25
|
toDate?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
26
|
+
scope?: CommentsScope;
|
|
27
|
+
creatorEmail?: string;
|
|
28
|
+
content?: string;
|
|
29
|
+
includeArchived?: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type Comment = {
|
|
20
32
|
id?: number;
|
|
21
|
-
cameraExid
|
|
22
|
-
content
|
|
33
|
+
cameraExid?: CameraExid;
|
|
34
|
+
content?: string;
|
|
35
|
+
scope?: CommentsScope;
|
|
36
|
+
visibility?: string[];
|
|
37
|
+
timestamp?: string;
|
|
38
|
+
fromTimestamp?: string;
|
|
39
|
+
toTimestamp?: string;
|
|
40
|
+
label?: CommentsLabel;
|
|
41
|
+
position2d?: TuplePoint2D;
|
|
42
|
+
position3d?: TuplePoint3D;
|
|
23
43
|
createdAt?: string;
|
|
44
|
+
archivedAt?: string;
|
|
24
45
|
creatorEmail?: string;
|
|
25
46
|
creatorName?: string;
|
|
26
|
-
position2d?: [number, number];
|
|
27
|
-
position3d?: [number, number, number];
|
|
28
47
|
context?: Record<string, unknown>;
|
|
48
|
+
projectExid?: ProjectExid;
|
|
49
|
+
updatedAt?: string;
|
|
29
50
|
canDelete?: boolean;
|
|
30
|
-
archivedAt?: string;
|
|
31
51
|
};
|
|
32
52
|
export type CommentCreationRequestPayload = {
|
|
33
|
-
|
|
34
|
-
|
|
53
|
+
fromTimestamp?: DateType;
|
|
54
|
+
toTimestamp?: DateType;
|
|
35
55
|
timestamp?: DateType;
|
|
36
56
|
scope?: CommentsScope;
|
|
37
|
-
|
|
57
|
+
visibility?: string[];
|
|
58
|
+
label?: CommentsLabel;
|
|
59
|
+
projectExid?: ProjectExid;
|
|
38
60
|
cameraExid?: CameraExid;
|
|
39
61
|
content: string;
|
|
40
|
-
position2d?:
|
|
62
|
+
position2d?: TuplePoint2D;
|
|
41
63
|
position3d?: [number, number, number];
|
|
42
64
|
context?: Record<string, unknown>;
|
|
43
65
|
};
|
|
@@ -1,17 +1,64 @@
|
|
|
1
|
-
import type { DateType, PaginationParams } from "
|
|
1
|
+
import type { DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export type CompanyUser = {
|
|
3
3
|
id: number;
|
|
4
4
|
fullname: string;
|
|
5
5
|
email: string;
|
|
6
6
|
eventsCount: number;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
lastLoginAt: string | null;
|
|
8
|
+
};
|
|
9
|
+
export type AdminCompanyUser = {
|
|
10
|
+
id: number;
|
|
11
|
+
email: string;
|
|
12
|
+
fullname: string;
|
|
13
|
+
lastLoginAt: string;
|
|
9
14
|
};
|
|
10
15
|
export type CompanyProject = {
|
|
16
|
+
id: number;
|
|
17
|
+
exid: string;
|
|
18
|
+
name: string;
|
|
19
|
+
status: string | null;
|
|
20
|
+
archiveTier: string | null;
|
|
21
|
+
insertedAt: DateType;
|
|
22
|
+
startDate: DateType | null;
|
|
23
|
+
endDate: DateType | null;
|
|
24
|
+
};
|
|
25
|
+
export type AdminCompanyProject = {
|
|
26
|
+
id: number;
|
|
27
|
+
name: string;
|
|
28
|
+
status: string;
|
|
29
|
+
insertedAt: DateType;
|
|
11
30
|
exid: string;
|
|
31
|
+
endDate: string | null;
|
|
32
|
+
startDate: string | null;
|
|
33
|
+
archiveTier: string | null;
|
|
34
|
+
};
|
|
35
|
+
export type CompanyKit = {
|
|
36
|
+
id: number;
|
|
12
37
|
name: string;
|
|
38
|
+
serial: string;
|
|
13
39
|
status: string;
|
|
14
|
-
|
|
40
|
+
powerType: string;
|
|
41
|
+
countryName: string;
|
|
42
|
+
nvrId: string;
|
|
43
|
+
nvrSerial: string;
|
|
44
|
+
nvrVersion: string;
|
|
45
|
+
nvrNerves: boolean;
|
|
46
|
+
nvrModel: string;
|
|
47
|
+
nvrDeviceType: string;
|
|
48
|
+
routerId: string;
|
|
49
|
+
routerSerial: string;
|
|
50
|
+
projectExid: string;
|
|
51
|
+
projectName: string;
|
|
52
|
+
alarms: Array<string>;
|
|
53
|
+
sims: Array<{
|
|
54
|
+
id: number;
|
|
55
|
+
number: string;
|
|
56
|
+
}>;
|
|
57
|
+
cameras: Array<{
|
|
58
|
+
exid: string;
|
|
59
|
+
name: string;
|
|
60
|
+
status: string;
|
|
61
|
+
}>;
|
|
15
62
|
};
|
|
16
63
|
export type Company = {
|
|
17
64
|
id: number;
|
|
@@ -25,17 +72,44 @@ export type Company = {
|
|
|
25
72
|
cameras: number;
|
|
26
73
|
users: number;
|
|
27
74
|
activeUsers: number;
|
|
28
|
-
|
|
75
|
+
insertedAt: DateType;
|
|
29
76
|
};
|
|
30
|
-
export type
|
|
77
|
+
export type CompanySummary = {
|
|
78
|
+
id: number;
|
|
31
79
|
name: string;
|
|
80
|
+
users: number;
|
|
81
|
+
insertedAt: DateType;
|
|
32
82
|
exid: string;
|
|
83
|
+
sessions: number;
|
|
84
|
+
projects: number;
|
|
85
|
+
zohoId: string;
|
|
33
86
|
domains: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
87
|
+
linkedinUrl: string | null;
|
|
88
|
+
ssoProviders: string[];
|
|
89
|
+
cameras: number;
|
|
90
|
+
kits: number;
|
|
91
|
+
};
|
|
92
|
+
export type CompanyCameraSummary = {
|
|
93
|
+
id: number;
|
|
94
|
+
name: string;
|
|
95
|
+
status: string;
|
|
96
|
+
exid: string;
|
|
97
|
+
projectExid: string | null;
|
|
98
|
+
ownerEmail: string;
|
|
99
|
+
ownerFullname: string;
|
|
100
|
+
usersCount: number;
|
|
101
|
+
apiId?: string;
|
|
102
|
+
apiKey?: string;
|
|
103
|
+
};
|
|
104
|
+
export type CompanyQueryParams = PaginationParams & {
|
|
105
|
+
name?: string;
|
|
106
|
+
exid?: string;
|
|
107
|
+
domains?: string;
|
|
108
|
+
projects?: string;
|
|
109
|
+
cameras?: string;
|
|
110
|
+
users?: string;
|
|
111
|
+
sessions?: string;
|
|
112
|
+
activeUsers?: string;
|
|
39
113
|
};
|
|
40
114
|
export type CompanyUpdatePayload = {
|
|
41
115
|
name: string;
|
|
@@ -44,3 +118,9 @@ export type CompanyUpdatePayload = {
|
|
|
44
118
|
domains?: string;
|
|
45
119
|
zohoId?: string;
|
|
46
120
|
};
|
|
121
|
+
export type CompanyUpdateResponse = {
|
|
122
|
+
name?: string;
|
|
123
|
+
exid?: string;
|
|
124
|
+
domains?: string;
|
|
125
|
+
zohoId?: string;
|
|
126
|
+
};
|