@evercam/api 1.0.0-779bcb558 → 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 +6 -0
- package/dist/api/api/3dFirebaseApi.d.ts +224 -0
- package/dist/api/api/adminApi.d.ts +379 -0
- package/dist/api/api/aiApi.d.ts +251 -0
- package/dist/api/api/authzApi.d.ts +40 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
- 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 +356 -0
- package/dist/api/api/evercamLabsApi.d.ts +37 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +2 -2
- package/dist/api/api/index.d.ts +14 -0
- package/dist/api/api/ingestApi.d.ts +170 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +368 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +85 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/{types → api/types}/analytics.d.ts +262 -122
- package/dist/{types → api/types}/anpr.d.ts +65 -19
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +257 -0
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +123 -0
- package/dist/{types → api/types}/axios.d.ts +32 -12
- package/dist/{types → api/types}/bim.d.ts +65 -16
- package/dist/api/types/camera.d.ts +660 -0
- package/dist/api/types/comments.d.ts +96 -0
- package/dist/api/types/company.d.ts +121 -0
- package/dist/{types → api/types}/compare.d.ts +21 -6
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +120 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/{types → api/types}/errors.d.ts +31 -1
- package/dist/{types → api/types}/gateReport.d.ts +101 -170
- 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 +88 -0
- package/dist/{types → api/types}/index.d.ts +27 -5
- package/dist/api/types/ingest.d.ts +314 -0
- package/dist/{types → api/types}/kit.d.ts +181 -113
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +33 -4
- package/dist/api/types/notification.d.ts +107 -0
- package/dist/api/types/nvr.d.ts +67 -0
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +125 -0
- package/dist/api/types/posthog.d.ts +89 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +41 -40
- package/dist/api/types/project.d.ts +293 -0
- package/dist/{types → api/types}/recording.d.ts +10 -16
- package/dist/api/types/recycleBin.d.ts +20 -0
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +2 -9
- package/dist/{types → api/types}/routeParams.d.ts +5 -2
- package/dist/{types → api/types}/router.d.ts +34 -10
- package/dist/{types → api/types}/shared.d.ts +48 -45
- package/dist/api/types/shares.d.ts +45 -0
- package/dist/{types → api/types}/sim.d.ts +23 -11
- package/dist/api/types/siteAnalytics.d.ts +285 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +144 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +29 -0
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +22 -11
- package/dist/{types → api/types}/user.d.ts +143 -59
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +118 -23
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3275 -1109
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +763 -0
- 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 +41 -0
- package/dist/shared/types/index.d.ts +9 -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/types/timeline.d.ts +10 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +10 -7
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -288
- package/dist/api/aiApi.d.ts +0 -73
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -51
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/auditLogs.d.ts +0 -99
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/camera.d.ts +0 -563
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/connector.d.ts +0 -16
- package/dist/types/copilot.d.ts +0 -155
- package/dist/types/detections.d.ts +0 -62
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/nvr.d.ts +0 -35
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -5
- package/dist/types/sitePlanner.d.ts +0 -23
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- package/dist/types/vendorModel.d.ts +0 -15
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -0,0 +1,660 @@
|
|
|
1
|
+
import { AuditLogActionType, CloudRecordingDuration, CloudRecordingFrequency, CloudRecordingStatus, DateType, EntityByExid, KitAlarm, NvrDeviceType, NvrHddStatus, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
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";
|
|
6
|
+
export type CameraExid = string;
|
|
7
|
+
export type CamerasByExid = EntityByExid<Camera>;
|
|
8
|
+
export type Camera = {
|
|
9
|
+
cameraPowerSchedule?: Schedule;
|
|
10
|
+
camPassword?: string;
|
|
11
|
+
camUsername?: string;
|
|
12
|
+
cloudRecordings: {
|
|
13
|
+
frequency: number;
|
|
14
|
+
schedule: Schedule;
|
|
15
|
+
status: string;
|
|
16
|
+
storageDuration: string;
|
|
17
|
+
};
|
|
18
|
+
liveViewFrequency: number | null;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
description: string | null;
|
|
21
|
+
discoverable: boolean;
|
|
22
|
+
external: {
|
|
23
|
+
host: string;
|
|
24
|
+
http: {
|
|
25
|
+
camera: string;
|
|
26
|
+
jpg: string;
|
|
27
|
+
nvrJpg: string;
|
|
28
|
+
nvrPort: string;
|
|
29
|
+
port: string;
|
|
30
|
+
};
|
|
31
|
+
rtsp: {
|
|
32
|
+
h264: string;
|
|
33
|
+
port: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
featureFlags: Array<CameraFeatureFlag>;
|
|
37
|
+
fovAngle: number;
|
|
38
|
+
fovRadius: number;
|
|
39
|
+
heading: number;
|
|
40
|
+
id: CameraExid;
|
|
41
|
+
exid: CameraExid;
|
|
42
|
+
isOnline: boolean;
|
|
43
|
+
isPowerScheduleActive: boolean;
|
|
44
|
+
isPublic: boolean;
|
|
45
|
+
lastOnlineAt: string;
|
|
46
|
+
lastPolledAt: string;
|
|
47
|
+
location: GeoPoint;
|
|
48
|
+
modelId: string;
|
|
49
|
+
modelName: string;
|
|
50
|
+
name: string;
|
|
51
|
+
nvrChannel: number;
|
|
52
|
+
nvrDeviceId: string;
|
|
53
|
+
nvrHost: string;
|
|
54
|
+
nvrHttpPort: number;
|
|
55
|
+
nvrModel: NvrModel;
|
|
56
|
+
nvrScheme: string;
|
|
57
|
+
nvrSnapshotEndpoint: string;
|
|
58
|
+
nvrStreamingEndpoint: string;
|
|
59
|
+
offlineReason: string;
|
|
60
|
+
owned: boolean;
|
|
61
|
+
owner: string;
|
|
62
|
+
pitch: string | null;
|
|
63
|
+
project: {
|
|
64
|
+
id: string;
|
|
65
|
+
name: string;
|
|
66
|
+
};
|
|
67
|
+
proxyUrl: {
|
|
68
|
+
hls: string;
|
|
69
|
+
rtmp: string;
|
|
70
|
+
};
|
|
71
|
+
ptz: boolean;
|
|
72
|
+
recordingFromNvr: boolean;
|
|
73
|
+
model?: CameraModel;
|
|
74
|
+
roll: string | null;
|
|
75
|
+
routerId: number;
|
|
76
|
+
status: CameraStatus;
|
|
77
|
+
streamingServer: string;
|
|
78
|
+
thumbnailUrl: string;
|
|
79
|
+
largeThumbnailUrl?: string;
|
|
80
|
+
timezone: string;
|
|
81
|
+
updatedAt: string;
|
|
82
|
+
vendorName: string;
|
|
83
|
+
isAccessRestricted?: boolean;
|
|
84
|
+
kitAlarms?: KitAlarm[];
|
|
85
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
86
|
+
position?: number | null;
|
|
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
|
+
}>;
|
|
98
|
+
export type AdminCamera = {
|
|
99
|
+
id: number;
|
|
100
|
+
exid: CameraExid;
|
|
101
|
+
name: string;
|
|
102
|
+
status: CameraStatus;
|
|
103
|
+
description: string | null;
|
|
104
|
+
createdAt: string;
|
|
105
|
+
updatedAt: string;
|
|
106
|
+
lastOnlineAt: string | null;
|
|
107
|
+
lastPolledAt: string | null;
|
|
108
|
+
decommissionedAt: string | null;
|
|
109
|
+
deletedAt?: string | null;
|
|
110
|
+
projectId: number | null;
|
|
111
|
+
projectExid: string | null;
|
|
112
|
+
projectName: string | null;
|
|
113
|
+
projectFeatureFlags: Array<ProjectFeatureFlag | string>;
|
|
114
|
+
userId: number | null;
|
|
115
|
+
userEmail: string;
|
|
116
|
+
userFullname: string;
|
|
117
|
+
userApiId?: string;
|
|
118
|
+
userApiKey?: string;
|
|
119
|
+
isPublic: boolean;
|
|
120
|
+
sharedWithConstruction?: boolean;
|
|
121
|
+
timezone: string | null;
|
|
122
|
+
location?: GeoPoint | null;
|
|
123
|
+
fovAngle?: number | null;
|
|
124
|
+
fovRadius?: number | null;
|
|
125
|
+
heading?: number | null;
|
|
126
|
+
pitch?: number | null;
|
|
127
|
+
roll?: number | null;
|
|
128
|
+
cameraModel?: string | null;
|
|
129
|
+
cameraHost?: string | null;
|
|
130
|
+
cameraHttpPort?: number | null;
|
|
131
|
+
cameraRtspPort?: number | null;
|
|
132
|
+
cameraScheme?: string | null;
|
|
133
|
+
cameraUsername?: string | null;
|
|
134
|
+
cameraPassword?: string | null;
|
|
135
|
+
cameraPictureEndpoint?: string | null;
|
|
136
|
+
rtspUrl?: string | null;
|
|
137
|
+
httpUrl?: string | null;
|
|
138
|
+
deviceId?: string | null;
|
|
139
|
+
nvrId?: number | null;
|
|
140
|
+
nvrDeviceId?: string | null;
|
|
141
|
+
nvrModel?: NvrModel | string | null;
|
|
142
|
+
nvrHost?: string | null;
|
|
143
|
+
nvrHttpPort?: number | null;
|
|
144
|
+
nvrRtspPort?: number | null;
|
|
145
|
+
nvrScheme?: string | null;
|
|
146
|
+
nvrUsername?: string | null;
|
|
147
|
+
nvrPassword?: string | null;
|
|
148
|
+
nvrPictureEndpoint?: string | null;
|
|
149
|
+
streamEndpoint?: string | null;
|
|
150
|
+
routerId?: number | null;
|
|
151
|
+
kitId?: number | null;
|
|
152
|
+
powerType?: string | null;
|
|
153
|
+
powerSchedule?: ScheduleLowercase | Record<string, string[]>;
|
|
154
|
+
isPowerScheduleActive?: boolean;
|
|
155
|
+
discoverable?: boolean;
|
|
156
|
+
recordingFromNvr?: boolean;
|
|
157
|
+
cloudRecordingFrequency?: number | null;
|
|
158
|
+
cloudRecordingId?: number | null;
|
|
159
|
+
cloudRecordingStatus?: string | null;
|
|
160
|
+
cloudRecordingSchedule?: ScheduleLowercase | null;
|
|
161
|
+
cloudRecordingStorageDuration?: number | null;
|
|
162
|
+
liveViewFrequency?: number | null;
|
|
163
|
+
anprSources?: string[];
|
|
164
|
+
storageProviders?: StorageProvider[];
|
|
165
|
+
featureFlags?: CameraFeatureFlag[];
|
|
166
|
+
zohoId?: string | null;
|
|
167
|
+
offlineReason?: string | null;
|
|
168
|
+
macAddress?: string | null;
|
|
169
|
+
type?: string[];
|
|
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;
|
|
178
|
+
};
|
|
179
|
+
export type CameraMapMarker = {
|
|
180
|
+
isOnline: boolean;
|
|
181
|
+
location: GeoPoint;
|
|
182
|
+
heading: number;
|
|
183
|
+
fovAngle: number;
|
|
184
|
+
fovRadius: number;
|
|
185
|
+
};
|
|
186
|
+
export declare enum CameraStatus {
|
|
187
|
+
Online = "online",
|
|
188
|
+
Offline = "offline",
|
|
189
|
+
OfflineScheduled = "offline_scheduled",
|
|
190
|
+
Decommissioned = "decommissioned",
|
|
191
|
+
OnHold = "on_hold",
|
|
192
|
+
Waiting = "waiting",
|
|
193
|
+
UnderMaintenance = "under_maintenance",
|
|
194
|
+
WaitingForSiteVisit = "waiting_for_site_visit"
|
|
195
|
+
}
|
|
196
|
+
export declare enum IntensityChange {
|
|
197
|
+
High = "High",
|
|
198
|
+
Moderate = "Moderate",
|
|
199
|
+
Low = "Low",
|
|
200
|
+
NoChange = "No change",
|
|
201
|
+
Default = "Default"
|
|
202
|
+
}
|
|
203
|
+
export declare const IntensityChangeColorMap: Record<IntensityChange, string>;
|
|
204
|
+
export declare enum CameraFeatureFlag {
|
|
205
|
+
EdgeVideo = "edge_video",
|
|
206
|
+
BimCompare = "bim_compare",
|
|
207
|
+
TwoDBimCompare = "2d_bim_compare",
|
|
208
|
+
ForgeBIMCompare = "forge_bim_compare",
|
|
209
|
+
GateReport = "gate_report",
|
|
210
|
+
VideoStream = "video_stream",
|
|
211
|
+
WebRTC = "webrtc",
|
|
212
|
+
ANPR = "anpr",
|
|
213
|
+
ReverseANPR = "reverse_anpr",
|
|
214
|
+
PTZ = "ptz",
|
|
215
|
+
ObjectDetection = "object_detection",
|
|
216
|
+
Segmentation = "segmentation",
|
|
217
|
+
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
218
|
+
PpeMonitoring = "ppe_monitoring",
|
|
219
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
220
|
+
PpeGemini = "ppe_gemini",
|
|
221
|
+
PpeYolo = "ppe_yolo",
|
|
222
|
+
PpeV2 = "ppe_v2",
|
|
223
|
+
NoLiveView = "no_live_view",
|
|
224
|
+
NoRecordings = "no_recordings",
|
|
225
|
+
Ring = "ring",
|
|
226
|
+
CloudOnly = "cloud_only"
|
|
227
|
+
}
|
|
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: {
|
|
244
|
+
id: string;
|
|
245
|
+
name: string;
|
|
246
|
+
};
|
|
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;
|
|
261
|
+
featureFlags: CameraFeatureFlag[];
|
|
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
|
+
}>;
|
|
277
|
+
export type CamerasResponsePayload = {
|
|
278
|
+
cameras?: Camera[];
|
|
279
|
+
};
|
|
280
|
+
export type CameraNoteResponsePayload = {
|
|
281
|
+
id: number;
|
|
282
|
+
camera: {
|
|
283
|
+
exid: string;
|
|
284
|
+
name: string;
|
|
285
|
+
};
|
|
286
|
+
who: string;
|
|
287
|
+
noteType: string;
|
|
288
|
+
content: string;
|
|
289
|
+
pinned: boolean;
|
|
290
|
+
insertedAt: string;
|
|
291
|
+
};
|
|
292
|
+
export type CameraStatusLog = {
|
|
293
|
+
start: string;
|
|
294
|
+
end: string;
|
|
295
|
+
state: CameraStatus;
|
|
296
|
+
status: CameraStatus;
|
|
297
|
+
};
|
|
298
|
+
export type Log = {
|
|
299
|
+
details: {
|
|
300
|
+
agent?: string;
|
|
301
|
+
country?: string;
|
|
302
|
+
countryCode?: string;
|
|
303
|
+
ip?: string;
|
|
304
|
+
with?: string;
|
|
305
|
+
message?: string;
|
|
306
|
+
status?: string;
|
|
307
|
+
type?: string;
|
|
308
|
+
};
|
|
309
|
+
insertedAt: string;
|
|
310
|
+
type: string;
|
|
311
|
+
who: string;
|
|
312
|
+
};
|
|
313
|
+
export type NvrConfig = {
|
|
314
|
+
apiUrl: string;
|
|
315
|
+
username?: string;
|
|
316
|
+
password?: string;
|
|
317
|
+
deviceId: string;
|
|
318
|
+
streamingUrl: string;
|
|
319
|
+
snapshotUrl: string;
|
|
320
|
+
bifUrl: string;
|
|
321
|
+
};
|
|
322
|
+
export declare enum NvrModel {
|
|
323
|
+
YCam = "y-cam",
|
|
324
|
+
Axis = "axis",
|
|
325
|
+
Dahua = "dahua",
|
|
326
|
+
Mobotix = "mobotix",
|
|
327
|
+
Hikvision = "hikvision",
|
|
328
|
+
Avigilion = "avigilion",
|
|
329
|
+
Hanwha = "hanwha",
|
|
330
|
+
Nxwitness = "nxwitness",
|
|
331
|
+
ExNvr = "ex_nvr",
|
|
332
|
+
None = "none",
|
|
333
|
+
Other = "other"
|
|
334
|
+
}
|
|
335
|
+
export declare enum CameraModel {
|
|
336
|
+
YCam = "y-cam",
|
|
337
|
+
Axis = "axis",
|
|
338
|
+
Dahua = "dahua",
|
|
339
|
+
Mobotix = "mobotix",
|
|
340
|
+
Milesight = "milesight",
|
|
341
|
+
Hikvision = "hikvision",
|
|
342
|
+
Avigilion = "avigilion",
|
|
343
|
+
Hanwha = "hanwha",
|
|
344
|
+
Other = "other",
|
|
345
|
+
Ring = "ring"
|
|
346
|
+
}
|
|
347
|
+
export type Footage = {
|
|
348
|
+
cameraExid: string;
|
|
349
|
+
cameraName: string;
|
|
350
|
+
endDate: string | null;
|
|
351
|
+
startDate: string | null;
|
|
352
|
+
};
|
|
353
|
+
export type Hdd = {
|
|
354
|
+
id: number;
|
|
355
|
+
location: string;
|
|
356
|
+
serialNumber: string;
|
|
357
|
+
hddStatus: string;
|
|
358
|
+
shelfBlock: string;
|
|
359
|
+
type: string;
|
|
360
|
+
size: string;
|
|
361
|
+
format: string;
|
|
362
|
+
footages: Array<Footage>;
|
|
363
|
+
reportedCapacity: string;
|
|
364
|
+
reportedFreeSpace: string;
|
|
365
|
+
reportedProperty: string;
|
|
366
|
+
reportedPath: string;
|
|
367
|
+
reportedHddType: string;
|
|
368
|
+
errorStatus: string;
|
|
369
|
+
canExpand: boolean;
|
|
370
|
+
};
|
|
371
|
+
export type CameraPath = {
|
|
372
|
+
projectExid: ProjectExid;
|
|
373
|
+
cameraExid: CameraExid;
|
|
374
|
+
};
|
|
375
|
+
export type CheckCameraPortPayload = {
|
|
376
|
+
address: string;
|
|
377
|
+
port: number;
|
|
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;
|
|
408
|
+
};
|
|
409
|
+
export type CameraCreateRequestPayload = {
|
|
410
|
+
status: CameraStatus;
|
|
411
|
+
timezone?: string;
|
|
412
|
+
powerSchedule?: Schedule;
|
|
413
|
+
isPowerScheduleActive?: boolean;
|
|
414
|
+
ptz?: boolean;
|
|
415
|
+
name: string;
|
|
416
|
+
coordinates?: TuplePoint2D;
|
|
417
|
+
recordingFromNvr?: boolean;
|
|
418
|
+
cameraConfig: CameraConfigPayload;
|
|
419
|
+
nvr?: CameraCreateNvrPayload;
|
|
420
|
+
cloudRecordings?: CameraCloudRecordingsPayload;
|
|
421
|
+
ownerId: number;
|
|
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;
|
|
435
|
+
};
|
|
436
|
+
export type CameraDeletePayload = {
|
|
437
|
+
verify: string;
|
|
438
|
+
password: string;
|
|
439
|
+
};
|
|
440
|
+
export type CameraNote = {
|
|
441
|
+
id: number;
|
|
442
|
+
cameraId: number;
|
|
443
|
+
who: string;
|
|
444
|
+
noteType: string;
|
|
445
|
+
content: string;
|
|
446
|
+
pinned: boolean;
|
|
447
|
+
insertedAt: DateType;
|
|
448
|
+
};
|
|
449
|
+
export type GetCameraNotesParams = {
|
|
450
|
+
noteType?: string;
|
|
451
|
+
pinned?: boolean;
|
|
452
|
+
sort?: string;
|
|
453
|
+
page?: number;
|
|
454
|
+
limit?: number;
|
|
455
|
+
};
|
|
456
|
+
export type CreateCameraNotePayload = {
|
|
457
|
+
noteType: string;
|
|
458
|
+
content: string;
|
|
459
|
+
pinned?: boolean;
|
|
460
|
+
};
|
|
461
|
+
export declare enum HddStatus {
|
|
462
|
+
Error = "error",
|
|
463
|
+
Idle = "idle",
|
|
464
|
+
NotExist = "notExist",
|
|
465
|
+
Unformatted = "unformatted",
|
|
466
|
+
Ok = "ok"
|
|
467
|
+
}
|
|
468
|
+
export type NvrQueryParams = PaginationParams & {
|
|
469
|
+
ownerId: number;
|
|
470
|
+
cameraName: string;
|
|
471
|
+
cameraExid: CameraExid;
|
|
472
|
+
cameraIp: string;
|
|
473
|
+
hddStatus: NvrHddStatus[];
|
|
474
|
+
};
|
|
475
|
+
export type OfflineCamera = {
|
|
476
|
+
id: number;
|
|
477
|
+
exid: string;
|
|
478
|
+
name: string;
|
|
479
|
+
userFullname: string;
|
|
480
|
+
timezone: string;
|
|
481
|
+
status: CameraStatus;
|
|
482
|
+
zohoId: string;
|
|
483
|
+
cameraModel: string;
|
|
484
|
+
cameraScheme: string;
|
|
485
|
+
cameraHost: string;
|
|
486
|
+
cameraUsername: string;
|
|
487
|
+
cameraPassword: string;
|
|
488
|
+
cameraPictureEndpoint: string;
|
|
489
|
+
cameraRtspPort: string;
|
|
490
|
+
cameraHttpPort: string;
|
|
491
|
+
createdAt: DateType;
|
|
492
|
+
lastPolledAt: DateType;
|
|
493
|
+
lastOnlineAt: DateType;
|
|
494
|
+
powerType: PowerType;
|
|
495
|
+
powerSchedule: PowerSchedule;
|
|
496
|
+
batteryReadingsLastSeen: DateType;
|
|
497
|
+
batteryReadingsLastVoltage: number;
|
|
498
|
+
sims: {
|
|
499
|
+
billPayer: string;
|
|
500
|
+
number: string;
|
|
501
|
+
provider: string;
|
|
502
|
+
}[];
|
|
503
|
+
};
|
|
504
|
+
export type OfflineCameraQueryParams = PaginationParams & {
|
|
505
|
+
status: CameraStatus;
|
|
506
|
+
cameraExid: CameraExid;
|
|
507
|
+
cameraName: string;
|
|
508
|
+
timezone: string;
|
|
509
|
+
cameraOwner: string;
|
|
510
|
+
powerType: PowerType;
|
|
511
|
+
powerSchedule: PowerSchedule;
|
|
512
|
+
batteryReadingsLastVoltage: string;
|
|
513
|
+
includeOnline: boolean;
|
|
514
|
+
createdAtFrom: string;
|
|
515
|
+
createdAtTo: string;
|
|
516
|
+
};
|
|
517
|
+
export type OfflineCameraNote = {
|
|
518
|
+
action: AuditLogActionType;
|
|
519
|
+
username: string;
|
|
520
|
+
insertedAt: DateType;
|
|
521
|
+
cameraId: number;
|
|
522
|
+
customMessage: string;
|
|
523
|
+
};
|
|
524
|
+
export type OfflineCameraNoteResponse = {
|
|
525
|
+
publicNotes: OfflineCameraNote[];
|
|
526
|
+
privateNotes: OfflineCameraNote[];
|
|
527
|
+
};
|
|
528
|
+
export type SiteVisitCamerasQueryParams = PaginationParams & {
|
|
529
|
+
cameraExid: CameraExid;
|
|
530
|
+
cameraName: string;
|
|
531
|
+
timezone: string;
|
|
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;
|
|
564
|
+
};
|
|
565
|
+
export type ProjectCamera = {
|
|
566
|
+
apiId: string;
|
|
567
|
+
apiKey: string;
|
|
568
|
+
exid: string;
|
|
569
|
+
id: number;
|
|
570
|
+
name: string;
|
|
571
|
+
ownerEmail: string;
|
|
572
|
+
ownerFullname: string;
|
|
573
|
+
featureFlags: ProjectFeatureFlag[];
|
|
574
|
+
status: string;
|
|
575
|
+
};
|
|
576
|
+
export declare enum DuplicatedCameraFields {
|
|
577
|
+
Host = "host",
|
|
578
|
+
CameraHttpPort = "camera_http_port",
|
|
579
|
+
NvrHttpPort = "nvr_http_port",
|
|
580
|
+
NvrDeviceId = "nvr_device_id"
|
|
581
|
+
}
|
|
582
|
+
export type DuplicatedCameraObject = {
|
|
583
|
+
exid: string;
|
|
584
|
+
name: string;
|
|
585
|
+
cameraStatus: CameraStatus;
|
|
586
|
+
crStatus: string;
|
|
587
|
+
};
|
|
588
|
+
export type DuplicatedCameraResponse = {
|
|
589
|
+
cameras: DuplicatedCameraObject[];
|
|
590
|
+
host?: string;
|
|
591
|
+
cameraHttpPort?: number;
|
|
592
|
+
nvrHttpPort?: number;
|
|
593
|
+
nvrDeviceId?: string;
|
|
594
|
+
count: number;
|
|
595
|
+
};
|
|
596
|
+
export type MergeDuplicatedCameraPayload = {
|
|
597
|
+
masterCamera: Record<string, unknown>;
|
|
598
|
+
shareeCameras: Record<string, unknown>[];
|
|
599
|
+
};
|
|
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;
|
|
605
|
+
status: CameraStatus;
|
|
606
|
+
statuses: CameraStatus[];
|
|
607
|
+
deviceId: string;
|
|
608
|
+
isPublic: boolean;
|
|
609
|
+
featureFlags: CameraFeatureFlag[];
|
|
610
|
+
ptz: boolean;
|
|
611
|
+
frequency: number;
|
|
612
|
+
channel: number;
|
|
613
|
+
cameraExid: CameraExid;
|
|
614
|
+
cameraExids: CameraExid[];
|
|
615
|
+
cameraName: string;
|
|
616
|
+
projectName: string;
|
|
617
|
+
timezone: string;
|
|
618
|
+
region: string;
|
|
619
|
+
cameraModel: CameraModel;
|
|
620
|
+
nvrModel: NvrModel;
|
|
621
|
+
cameraOwner: string;
|
|
622
|
+
ownerEmail: string;
|
|
623
|
+
cameraIp: string;
|
|
624
|
+
userEmail: string;
|
|
625
|
+
isRecording: boolean;
|
|
626
|
+
recordingFromNvr: boolean;
|
|
627
|
+
cloudRecordingStorageDuration: number;
|
|
628
|
+
cloudRecordingFrequency: CloudRecordingFrequency;
|
|
629
|
+
cloudRecordingStatus: CloudRecordingStatus;
|
|
630
|
+
cameraIds: string;
|
|
631
|
+
hasLocation: boolean;
|
|
632
|
+
externalHttpPort: string;
|
|
633
|
+
externalRsptPort: string;
|
|
634
|
+
cameraHttpPort: string;
|
|
635
|
+
nvrRtspPort: string;
|
|
636
|
+
nvrHttpPort: string;
|
|
637
|
+
createdAtFrom: string;
|
|
638
|
+
createdAtTo: string;
|
|
639
|
+
powerType: PowerType;
|
|
640
|
+
};
|
|
641
|
+
export declare enum BimType {
|
|
642
|
+
TwoD = "2D",
|
|
643
|
+
Forge = "Forge"
|
|
644
|
+
}
|
|
645
|
+
export type CameraDateRangeFilter = DateRangeFilter & {
|
|
646
|
+
cameraExid: CameraExid;
|
|
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
|
+
};
|