@evercam/api 1.0.0-44d59f453 → 1.0.0-4544b2a4c
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 +259 -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 +2 -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 +353 -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} +12 -3
- 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 +89 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/{types → api/types}/analytics.d.ts +289 -121
- package/dist/api/types/anpr.d.ts +237 -0
- 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 +80 -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 +86 -172
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/{types → api/types}/hdd.d.ts +27 -2
- package/dist/{types → api/types}/index.d.ts +26 -5
- package/dist/api/types/ingest.d.ts +319 -0
- package/dist/{types → api/types}/kit.d.ts +174 -108
- 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 +105 -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 +294 -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 +47 -44
- 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 +80 -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 +30 -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 +14 -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 +111 -22
- 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 +3260 -1119
- 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 +930 -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 +80 -0
- package/dist/shared/types/report.d.ts +108 -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 +8 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -307
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -46
- 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/anpr.d.ts +0 -98
- package/dist/types/auditLogs.d.ts +0 -99
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/camera.d.ts +0 -564
- 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 -156
- package/dist/types/detections.d.ts +0 -76
- 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 -36
- 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 -84
- package/dist/types/sitePlanner.d.ts +0 -28
- 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
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CameraStatus, CountryId, Nvr, PaginationParams, PowerType, Project, ProjectExid, Router, Schedule, SimSummary, Tag } from "@evercam/api/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
|
-
|
|
4
|
+
sims?: SimSummary[];
|
|
5
5
|
countryId: CountryId;
|
|
6
6
|
countryName: string;
|
|
7
|
-
countryRegion:
|
|
7
|
+
countryRegion: KitRegion;
|
|
8
8
|
id?: number;
|
|
9
9
|
jobId: number;
|
|
10
10
|
name: string;
|
|
@@ -12,10 +12,51 @@ export type Kit = {
|
|
|
12
12
|
powerType: PowerType;
|
|
13
13
|
project: Project;
|
|
14
14
|
projectId: number;
|
|
15
|
+
projectExid?: ProjectExid;
|
|
15
16
|
router: Partial<Router>;
|
|
16
17
|
serial: string;
|
|
17
18
|
status: KitStatus;
|
|
18
19
|
powerSchedule: Schedule;
|
|
20
|
+
ups: boolean;
|
|
21
|
+
boxId: string;
|
|
22
|
+
tags: Tag[];
|
|
23
|
+
createdAt: string;
|
|
24
|
+
deletedAt?: string | null;
|
|
25
|
+
decommissionedAt?: string | null;
|
|
26
|
+
deletedById?: number | null;
|
|
27
|
+
location?: string;
|
|
28
|
+
locationId?: number | null;
|
|
29
|
+
lastHealthCheck?: string | null;
|
|
30
|
+
};
|
|
31
|
+
export declare enum KitSupportCheckId {
|
|
32
|
+
RouterSmsRoundTrip = "router_sms_round_trip",
|
|
33
|
+
NvrRecordingAllCameras = "nvr_recording_all_cameras",
|
|
34
|
+
NvrRecordingThirdStream = "nvr_recording_third_stream",
|
|
35
|
+
CamerasHaveDeviceId = "cameras_have_device_id",
|
|
36
|
+
CamerasRecording = "cameras_recording",
|
|
37
|
+
CamerasSdCardMounted = "cameras_sd_card_mounted",
|
|
38
|
+
BatteryReadings = "battery_readings"
|
|
39
|
+
}
|
|
40
|
+
export declare enum KitSupportCheckStatus {
|
|
41
|
+
Passed = "passed",
|
|
42
|
+
Failed = "failed",
|
|
43
|
+
Skipped = "skipped"
|
|
44
|
+
}
|
|
45
|
+
export type KitSupportCheck = {
|
|
46
|
+
id: KitSupportCheckId;
|
|
47
|
+
name: string;
|
|
48
|
+
status: KitSupportCheckStatus;
|
|
49
|
+
error: string | null;
|
|
50
|
+
};
|
|
51
|
+
export type KitSupportChecklist = {
|
|
52
|
+
checks: KitSupportCheck[];
|
|
53
|
+
};
|
|
54
|
+
export type KitDiagnosticRun = {
|
|
55
|
+
kitId: number;
|
|
56
|
+
kitSerial: string;
|
|
57
|
+
checks: KitSupportCheck[];
|
|
58
|
+
ranAt: string;
|
|
59
|
+
isSeen: boolean;
|
|
19
60
|
};
|
|
20
61
|
export declare enum KitStatus {
|
|
21
62
|
New = "new",
|
|
@@ -23,17 +64,31 @@ export declare enum KitStatus {
|
|
|
23
64
|
Deployed = "deployed",
|
|
24
65
|
Decommissioned = "decommissioned"
|
|
25
66
|
}
|
|
67
|
+
export declare enum KitRegion {
|
|
68
|
+
APAC = "apac",
|
|
69
|
+
EMEA = "emea",
|
|
70
|
+
LATAM = "latam",
|
|
71
|
+
US = "na"
|
|
72
|
+
}
|
|
26
73
|
export declare enum KitAlarm {
|
|
27
74
|
NvrOffline = "nvr_offline",
|
|
75
|
+
OfflineScheduled = "offline_scheduled",
|
|
28
76
|
UnknownCamera = "unknown_camera",
|
|
29
77
|
NotRecordingCamera = "not_recording_camera",
|
|
30
|
-
OfflineScheduled = "offline_scheduled",
|
|
31
78
|
FullSD = "full_sd",
|
|
32
|
-
FullStorage = "full_storage"
|
|
79
|
+
FullStorage = "full_storage",
|
|
80
|
+
HddUnmounted = "hdd_unmounted",
|
|
81
|
+
NoHdd = "no_hdd",
|
|
82
|
+
MissingRouterInfo = "missing_router_info",
|
|
83
|
+
AcFailure = "ac_failure",
|
|
84
|
+
LowBattery = "low_battery",
|
|
85
|
+
GeneratorOff = "generator_off"
|
|
33
86
|
}
|
|
34
87
|
export declare enum KitMetricId {
|
|
35
|
-
|
|
36
|
-
|
|
88
|
+
SolarCharger = "solar_charger",
|
|
89
|
+
PanelPower = "panel_power",
|
|
90
|
+
Fan = "fan",
|
|
91
|
+
FanTemperature = "fan_temperature"
|
|
37
92
|
}
|
|
38
93
|
export declare enum KitMetricPeriod {
|
|
39
94
|
Last15Minutes = "now-15m",
|
|
@@ -99,55 +154,6 @@ export declare enum KitChartType {
|
|
|
99
154
|
TimeSeries = "timeseries",
|
|
100
155
|
BarChart = "barchart"
|
|
101
156
|
}
|
|
102
|
-
export type GrafanaDataSource = {
|
|
103
|
-
type: string;
|
|
104
|
-
uid: string;
|
|
105
|
-
};
|
|
106
|
-
export type GrafanaTarget = {
|
|
107
|
-
expr: string;
|
|
108
|
-
refId: string;
|
|
109
|
-
datasourceId?: string;
|
|
110
|
-
intervalMs?: number;
|
|
111
|
-
maxDataPoints?: number;
|
|
112
|
-
};
|
|
113
|
-
export type GrafanaPanel = {
|
|
114
|
-
[key: string]: unknown;
|
|
115
|
-
id: GrafanaMetricId;
|
|
116
|
-
name: keyof GrafanaMetricId;
|
|
117
|
-
title: string;
|
|
118
|
-
description: string;
|
|
119
|
-
type: KitChartType;
|
|
120
|
-
datasource: GrafanaDataSource;
|
|
121
|
-
targets: GrafanaTarget[];
|
|
122
|
-
maxDataPoints?: number;
|
|
123
|
-
interval?: string;
|
|
124
|
-
timeFrom?: string;
|
|
125
|
-
timeShift?: string;
|
|
126
|
-
options?: {
|
|
127
|
-
maxDataPoints?: number;
|
|
128
|
-
interval?: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
export type GrafanaDashboard = {
|
|
132
|
-
[key: string]: unknown;
|
|
133
|
-
panels: GrafanaPanel[];
|
|
134
|
-
time?: {
|
|
135
|
-
from: string;
|
|
136
|
-
to: string;
|
|
137
|
-
};
|
|
138
|
-
timepicker?: {
|
|
139
|
-
refresh_intervals: string[];
|
|
140
|
-
time_options: string[];
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
export type GrafanaQueryOptions = {
|
|
144
|
-
metricId: GrafanaMetricId;
|
|
145
|
-
host: string;
|
|
146
|
-
job?: string;
|
|
147
|
-
from?: string;
|
|
148
|
-
to?: string;
|
|
149
|
-
variables?: Record<string, string>;
|
|
150
|
-
};
|
|
151
157
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
152
158
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
153
159
|
export type GrafanaFieldConfig = {
|
|
@@ -221,10 +227,9 @@ export type GrafanaQueryResult = {
|
|
|
221
227
|
status: number;
|
|
222
228
|
frames: GrafanaFrame[];
|
|
223
229
|
};
|
|
230
|
+
export type GrafanaMetricResults = Record<string, GrafanaQueryResult>;
|
|
224
231
|
export type GrafanaMetricData = KitMetricData & {
|
|
225
|
-
results:
|
|
226
|
-
[key: string]: GrafanaQueryResult;
|
|
227
|
-
};
|
|
232
|
+
results: GrafanaMetricResults;
|
|
228
233
|
};
|
|
229
234
|
export type EvercamMetricData = KitMetricData & {
|
|
230
235
|
stats: EvercamStats[];
|
|
@@ -234,59 +239,49 @@ export type EvercamStats = {
|
|
|
234
239
|
[k: string]: number | string;
|
|
235
240
|
timestamp: string;
|
|
236
241
|
};
|
|
237
|
-
export type KitQueryParams = PaginationParams & {
|
|
242
|
+
export type KitQueryParams = PaginationParams & Partial<{
|
|
243
|
+
boxId: string;
|
|
238
244
|
name: string;
|
|
239
245
|
serial: string;
|
|
240
246
|
status: KitStatus;
|
|
247
|
+
tagId: number | number[];
|
|
248
|
+
tags: number[];
|
|
249
|
+
noTags: number[];
|
|
250
|
+
sims: string;
|
|
251
|
+
countryId: CountryId;
|
|
252
|
+
region: KitRegion;
|
|
253
|
+
powerType: PowerType[];
|
|
254
|
+
projectName: string;
|
|
255
|
+
projectExid: string;
|
|
256
|
+
nvrVersion: string;
|
|
257
|
+
nvrNerves: boolean;
|
|
258
|
+
nvrSerial: string;
|
|
259
|
+
nvrModel: string;
|
|
260
|
+
nvrDeviceType: string;
|
|
261
|
+
ups: boolean;
|
|
262
|
+
alarms: KitAlarm[];
|
|
263
|
+
cameraStatus: CameraStatus[];
|
|
264
|
+
routerSerial: string;
|
|
265
|
+
createdAtFrom: string;
|
|
266
|
+
createdAtTo: string;
|
|
267
|
+
}>;
|
|
268
|
+
export type KitMetricStatsEntry = {
|
|
269
|
+
timestamp: string;
|
|
270
|
+
voltage: number;
|
|
271
|
+
current: number;
|
|
272
|
+
panelVoltage: number;
|
|
273
|
+
panelPower: number;
|
|
274
|
+
yieldTotal: number;
|
|
275
|
+
yieldToday: number;
|
|
276
|
+
yieldYesterday: number;
|
|
277
|
+
maxPowerToday: number;
|
|
278
|
+
maxPowerYesterday: number;
|
|
241
279
|
};
|
|
242
|
-
export type
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
powerType: PowerType;
|
|
248
|
-
location: string;
|
|
249
|
-
countryId: number;
|
|
250
|
-
countryName: string;
|
|
251
|
-
countryRegion: string;
|
|
252
|
-
nvr: Nvr;
|
|
253
|
-
router: {
|
|
254
|
-
id: number;
|
|
255
|
-
serialNumber: number;
|
|
256
|
-
vpnUserId: string;
|
|
257
|
-
vpnPassword: string;
|
|
258
|
-
routerType: string;
|
|
259
|
-
routerUserId: string;
|
|
260
|
-
routerPassword: string;
|
|
261
|
-
routerHttpPort: number;
|
|
262
|
-
powerType: PowerType;
|
|
263
|
-
powerSchedule: Schedule;
|
|
264
|
-
vpnServer: string;
|
|
265
|
-
netbirdUrl: string;
|
|
266
|
-
sims: {
|
|
267
|
-
id: number;
|
|
268
|
-
number: string;
|
|
269
|
-
}[];
|
|
270
|
-
};
|
|
271
|
-
project: {
|
|
272
|
-
id: number;
|
|
273
|
-
exid: string;
|
|
274
|
-
name: string;
|
|
275
|
-
timezone: string;
|
|
276
|
-
status: string;
|
|
277
|
-
zohoId: string;
|
|
278
|
-
insertedAt: DateType;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
export type KitCreatePayload = {
|
|
282
|
-
projectId?: number;
|
|
283
|
-
countryCode?: string;
|
|
284
|
-
name: string;
|
|
285
|
-
status: KitStatus;
|
|
286
|
-
powerType: PowerType;
|
|
287
|
-
config: {
|
|
288
|
-
region: Region;
|
|
289
|
-
};
|
|
280
|
+
export type KitFanStatsEntry = {
|
|
281
|
+
timestamp: string;
|
|
282
|
+
speed: number;
|
|
283
|
+
internalTemperature: number;
|
|
284
|
+
externalTemperature: number | null;
|
|
290
285
|
};
|
|
291
286
|
export type KitUpdatePayload = {
|
|
292
287
|
countryId: number;
|
|
@@ -295,3 +290,74 @@ export type KitUpdatePayload = {
|
|
|
295
290
|
kitStatus: KitStatus;
|
|
296
291
|
type: string;
|
|
297
292
|
};
|
|
293
|
+
export declare enum KitStorageTransport {
|
|
294
|
+
Sata = "sata",
|
|
295
|
+
Nvme = "nvme",
|
|
296
|
+
Usb = "usb"
|
|
297
|
+
}
|
|
298
|
+
export type KitStorageQueryParams = PaginationParams & Partial<{
|
|
299
|
+
kitId: number;
|
|
300
|
+
serial: string;
|
|
301
|
+
vendor: string;
|
|
302
|
+
transport: KitStorageTransport;
|
|
303
|
+
}>;
|
|
304
|
+
export type KitStorage = {
|
|
305
|
+
id: number;
|
|
306
|
+
serial: string;
|
|
307
|
+
status: string;
|
|
308
|
+
type: string;
|
|
309
|
+
metadata: {
|
|
310
|
+
formFactor: string;
|
|
311
|
+
};
|
|
312
|
+
model: string;
|
|
313
|
+
insertedAt: string;
|
|
314
|
+
updatedAt: string;
|
|
315
|
+
vendor: string;
|
|
316
|
+
kitId: number;
|
|
317
|
+
capacity: number;
|
|
318
|
+
freeSpace: number;
|
|
319
|
+
tran: KitStorageTransport;
|
|
320
|
+
};
|
|
321
|
+
export type KitFootageRequestPayload = Partial<{
|
|
322
|
+
cameraId: number;
|
|
323
|
+
storageId: number;
|
|
324
|
+
}>;
|
|
325
|
+
export type KitFootage = {
|
|
326
|
+
id: number;
|
|
327
|
+
startDate: string;
|
|
328
|
+
endDate: string;
|
|
329
|
+
cameraId: number;
|
|
330
|
+
storageId: number;
|
|
331
|
+
};
|
|
332
|
+
export type KitAlarmItem = {
|
|
333
|
+
id: number;
|
|
334
|
+
kitId: number;
|
|
335
|
+
alarm: KitAlarm;
|
|
336
|
+
startDate: string;
|
|
337
|
+
endDate: string | null;
|
|
338
|
+
};
|
|
339
|
+
export type KitBox = {
|
|
340
|
+
id: string;
|
|
341
|
+
gatewaySerial: string;
|
|
342
|
+
gatewayMac: string;
|
|
343
|
+
gatewayConfig: {
|
|
344
|
+
defaultPassword: string;
|
|
345
|
+
} | null;
|
|
346
|
+
kitSerials: string[];
|
|
347
|
+
insertedAt: string;
|
|
348
|
+
updatedAt: string;
|
|
349
|
+
};
|
|
350
|
+
export type KitBoxCreatePayload = {
|
|
351
|
+
id?: string;
|
|
352
|
+
gatewaySerial: string;
|
|
353
|
+
gatewayMac: string;
|
|
354
|
+
gatewayConfig?: {
|
|
355
|
+
defaultPassword?: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
export type KitBoxQueryParams = PaginationParams & Partial<{
|
|
359
|
+
id: string;
|
|
360
|
+
gatewaySerial: string;
|
|
361
|
+
gatewayMac: string;
|
|
362
|
+
hasKits: boolean;
|
|
363
|
+
}>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare enum MapType {
|
|
2
|
+
Hybrid = "hybrid",
|
|
3
|
+
Terrain = "terrain"
|
|
4
|
+
}
|
|
5
|
+
export type MapView = {
|
|
6
|
+
east?: number;
|
|
7
|
+
floorID?: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
mapStyle?: MapType;
|
|
10
|
+
name: string;
|
|
11
|
+
north?: number;
|
|
12
|
+
projectId: string;
|
|
13
|
+
projectName: string;
|
|
14
|
+
south?: number;
|
|
15
|
+
west?: number;
|
|
16
|
+
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import type { CameraExid, Exid, DateType } from "
|
|
1
|
+
import type { CameraExid, Exid, DateType } from "@evercam/api/types";
|
|
2
2
|
export type MediaExid = Exid;
|
|
3
3
|
export type Media = {
|
|
4
|
-
project_exid?: string;
|
|
5
4
|
cameraExid?: CameraExid;
|
|
5
|
+
cameraId?: number;
|
|
6
|
+
projectId?: number;
|
|
6
7
|
cameraName: string;
|
|
7
8
|
cameraTimezone: string;
|
|
8
9
|
createdAt: string;
|
|
@@ -25,6 +26,13 @@ export type Media = {
|
|
|
25
26
|
projectExid?: string;
|
|
26
27
|
thumbnailUrl?: string;
|
|
27
28
|
mediaUrl?: string;
|
|
29
|
+
camera?: string;
|
|
30
|
+
notes?: string;
|
|
31
|
+
category?: MediaCategory | ClipsCategory;
|
|
32
|
+
isUrgent?: boolean;
|
|
33
|
+
bucket?: string;
|
|
34
|
+
sourceProduct?: string;
|
|
35
|
+
featureType?: string;
|
|
28
36
|
};
|
|
29
37
|
export declare enum MediaType {
|
|
30
38
|
EditedImage = "edit",
|
|
@@ -42,7 +50,8 @@ export declare enum MediaFileType {
|
|
|
42
50
|
Mp4 = "mp4",
|
|
43
51
|
Png = "png",
|
|
44
52
|
Pdf = "pdf",
|
|
45
|
-
Jpeg = "jpeg"
|
|
53
|
+
Jpeg = "jpeg",
|
|
54
|
+
Csv = "csv"
|
|
46
55
|
}
|
|
47
56
|
export declare enum MediaStatus {
|
|
48
57
|
Pending = "Pending",
|
|
@@ -75,6 +84,22 @@ export type MediaFilterQueryParams = {
|
|
|
75
84
|
limit?: number;
|
|
76
85
|
camera?: string;
|
|
77
86
|
};
|
|
87
|
+
export type AdminMediaFilterQueryParams = Partial<{
|
|
88
|
+
title: string;
|
|
89
|
+
sort: string;
|
|
90
|
+
cameraName: string;
|
|
91
|
+
cameraExid: string;
|
|
92
|
+
requesterName: string;
|
|
93
|
+
type: MediaType;
|
|
94
|
+
projectExid: string;
|
|
95
|
+
projectName: string;
|
|
96
|
+
status: MediaStatus;
|
|
97
|
+
notes: string;
|
|
98
|
+
category: MediaCategory | ClipsCategory;
|
|
99
|
+
isUrgent: boolean;
|
|
100
|
+
page: number;
|
|
101
|
+
limit: number;
|
|
102
|
+
}>;
|
|
78
103
|
export type MediaUpdateRequestPayload = {
|
|
79
104
|
name?: string;
|
|
80
105
|
title?: string;
|
|
@@ -92,7 +117,7 @@ export type MediaCreateRequestPayload = {
|
|
|
92
117
|
cameraExid?: string;
|
|
93
118
|
requestedBy?: string;
|
|
94
119
|
notes?: string;
|
|
95
|
-
category?: ClipsCategory;
|
|
120
|
+
category?: MediaCategory | ClipsCategory;
|
|
96
121
|
isUrgent?: boolean;
|
|
97
122
|
storeAsType?: MediaType;
|
|
98
123
|
};
|
|
@@ -107,6 +132,10 @@ export declare enum ClipsCategory {
|
|
|
107
132
|
Marketing = "marketing",
|
|
108
133
|
BestPracticies = "best_practices"
|
|
109
134
|
}
|
|
135
|
+
export declare enum MediaCategory {
|
|
136
|
+
Weather = "weather",
|
|
137
|
+
SmartSearch = "smart_search"
|
|
138
|
+
}
|
|
110
139
|
export type MediaDeleteRequestPayload = {
|
|
111
140
|
timelapseIds: (string | number)[];
|
|
112
141
|
compareIds: (string | number)[];
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { CommentsScope, CommentThreeSixtyContext } from "./comments";
|
|
2
|
+
export declare enum NotificationType {
|
|
3
|
+
CameraShare = "camera_share",
|
|
4
|
+
CameraStatusChange = "camera_status_changed",
|
|
5
|
+
Mention = "mention",
|
|
6
|
+
CommentMention = "comment_mention",
|
|
7
|
+
TimelapseCreated = "timelapse_created",
|
|
8
|
+
TimelapseFailed = "timelapse_failed",
|
|
9
|
+
DroneProcessing = "drone_processing_done",
|
|
10
|
+
Processing360 = "three_sixty_done",
|
|
11
|
+
SmartSearchExportReady = "smart_search_export_ready",
|
|
12
|
+
SmartSearchExportFailed = "smart_search_export_failed",
|
|
13
|
+
GateReportExportReady = "gate_report_export_ready",
|
|
14
|
+
GateReportExportFailed = "gate_report_export_failed",
|
|
15
|
+
PpeExportReady = "ppe_export_ready",
|
|
16
|
+
PpeExportFailed = "ppe_export_failed",
|
|
17
|
+
WeatherExportReady = "weather_export_ready",
|
|
18
|
+
WeatherExportFailed = "weather_export_failed",
|
|
19
|
+
CompareReady = "compare_ready",
|
|
20
|
+
CompareFailed = "compare_failed",
|
|
21
|
+
ClipExportReady = "clip_export_ready",
|
|
22
|
+
ClipExportFailed = "clip_export_failed",
|
|
23
|
+
NvrClipReady = "nvr_clip_ready",
|
|
24
|
+
NvrClipFailed = "nvr_clip_failed",
|
|
25
|
+
UploadComplete = "upload_complete",
|
|
26
|
+
UploadFailed = "upload_failed",
|
|
27
|
+
RingCamerasImported = "ring_cameras_imported",
|
|
28
|
+
StorageWarning = "storage_warning",
|
|
29
|
+
Other = "other"
|
|
30
|
+
}
|
|
31
|
+
export interface NotificationContextBase {
|
|
32
|
+
cameraExid?: string;
|
|
33
|
+
projectExid?: string;
|
|
34
|
+
}
|
|
35
|
+
export interface CameraShareContext extends NotificationContextBase {
|
|
36
|
+
cameraExid: string;
|
|
37
|
+
projectExid: string;
|
|
38
|
+
shareId: number;
|
|
39
|
+
}
|
|
40
|
+
export interface CameraStatusChangeContext extends NotificationContextBase {
|
|
41
|
+
cameraExid: string;
|
|
42
|
+
projectExid: string;
|
|
43
|
+
newStatus: string;
|
|
44
|
+
}
|
|
45
|
+
export interface MentionContext extends NotificationContextBase {
|
|
46
|
+
}
|
|
47
|
+
export interface TimelapseCreatedContext extends NotificationContextBase {
|
|
48
|
+
cameraExid: string;
|
|
49
|
+
projectExid: string;
|
|
50
|
+
archiveExid: string;
|
|
51
|
+
}
|
|
52
|
+
export interface TimelapseFailedContext extends NotificationContextBase {
|
|
53
|
+
cameraExid: string;
|
|
54
|
+
projectExid: string;
|
|
55
|
+
}
|
|
56
|
+
export interface DroneProcessingContext extends NotificationContextBase {
|
|
57
|
+
projectExid: string;
|
|
58
|
+
droneDate: string;
|
|
59
|
+
}
|
|
60
|
+
export interface Processing360Context extends NotificationContextBase {
|
|
61
|
+
projectExid: string;
|
|
62
|
+
date: string;
|
|
63
|
+
floor: string;
|
|
64
|
+
}
|
|
65
|
+
export interface ExportNotificationContext extends NotificationContextBase {
|
|
66
|
+
projectExid: string;
|
|
67
|
+
archiveExid?: string;
|
|
68
|
+
compareExid?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface UploadNotificationContext extends NotificationContextBase {
|
|
71
|
+
projectExid: string;
|
|
72
|
+
}
|
|
73
|
+
export interface RingCamerasImportedContext extends NotificationContextBase {
|
|
74
|
+
projectExid: string;
|
|
75
|
+
projectName: string;
|
|
76
|
+
cameras: Array<{
|
|
77
|
+
exid: string;
|
|
78
|
+
name: string;
|
|
79
|
+
}>;
|
|
80
|
+
}
|
|
81
|
+
export interface StorageWarningContext extends NotificationContextBase {
|
|
82
|
+
projectExid: string;
|
|
83
|
+
cameraName: string;
|
|
84
|
+
}
|
|
85
|
+
export interface CommentMentionContext extends NotificationContextBase {
|
|
86
|
+
projectExid: string;
|
|
87
|
+
commentId: number;
|
|
88
|
+
scope: CommentsScope;
|
|
89
|
+
commentContext: CommentThreeSixtyContext;
|
|
90
|
+
content?: string;
|
|
91
|
+
label?: string;
|
|
92
|
+
projectName?: string;
|
|
93
|
+
}
|
|
94
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext | CommentMentionContext;
|
|
95
|
+
export type Notification = {
|
|
96
|
+
id: number;
|
|
97
|
+
type: NotificationType;
|
|
98
|
+
insertedAt: string;
|
|
99
|
+
initiatorId: number;
|
|
100
|
+
initiatorFullname: string;
|
|
101
|
+
initiatorEmail: string;
|
|
102
|
+
targetId: number;
|
|
103
|
+
targetFullname: string;
|
|
104
|
+
targetEmail: string;
|
|
105
|
+
readTimestamp: string | null;
|
|
106
|
+
context: NotificationContext;
|
|
107
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import type { NvrModel } from "@evercam/api/types";
|
|
2
|
+
export type Nvr = {
|
|
3
|
+
id?: number;
|
|
4
|
+
kitId?: number;
|
|
5
|
+
deviceType: NvrDeviceType;
|
|
6
|
+
serial: string;
|
|
7
|
+
model: NvrModel;
|
|
8
|
+
httpUrl: string | null;
|
|
9
|
+
rtspUrl: string | null;
|
|
10
|
+
macAddress: string;
|
|
11
|
+
username: string | null;
|
|
12
|
+
password: string | null;
|
|
13
|
+
nerves: boolean;
|
|
14
|
+
version?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare enum NvrDeviceType {
|
|
17
|
+
Rpi4 = "rpi4",
|
|
18
|
+
Rpi5 = "rpi5",
|
|
19
|
+
OrinNano = "orin_nano",
|
|
20
|
+
Giraffe = "giraffe"
|
|
21
|
+
}
|
|
22
|
+
export declare enum NvrHddStatus {
|
|
23
|
+
Error = "error",
|
|
24
|
+
Idle = "idle",
|
|
25
|
+
NotExist = "notexist",
|
|
26
|
+
Ok = "ok",
|
|
27
|
+
Unformatted = "unformatted"
|
|
28
|
+
}
|
|
29
|
+
export type NvrCreatePayload = {
|
|
30
|
+
serial?: string;
|
|
31
|
+
httpUrl?: string | null;
|
|
32
|
+
rtspUrl?: string | null;
|
|
33
|
+
deviceType?: NvrDeviceType;
|
|
34
|
+
model: NvrModel;
|
|
35
|
+
username?: string | null;
|
|
36
|
+
password?: string | null;
|
|
37
|
+
kitId?: number;
|
|
38
|
+
};
|
|
39
|
+
export type NvrConnectionFields = Pick<NvrCreatePayload, "username" | "password" | "httpUrl" | "rtspUrl">;
|
|
40
|
+
export type AdminNvr = {
|
|
41
|
+
name: string;
|
|
42
|
+
exid: string;
|
|
43
|
+
externalHost: string | null;
|
|
44
|
+
model: string | null;
|
|
45
|
+
deviceName: string | null;
|
|
46
|
+
macAddress: string | null;
|
|
47
|
+
firmwareVersion: string | null;
|
|
48
|
+
resolution: string | null;
|
|
49
|
+
bitrateType: string | null;
|
|
50
|
+
videoQuality: string | null;
|
|
51
|
+
frameRate: number | null;
|
|
52
|
+
bitrate: string | null;
|
|
53
|
+
videoEncoding: string | null;
|
|
54
|
+
hddName: string | null;
|
|
55
|
+
hddCapacity: string | null;
|
|
56
|
+
freeSpace: string | null;
|
|
57
|
+
hddStatus: string | null;
|
|
58
|
+
hddProperty: string | null;
|
|
59
|
+
nvrStatus: string;
|
|
60
|
+
timeMode: string | null;
|
|
61
|
+
localTime: string | null;
|
|
62
|
+
timezone: string | null;
|
|
63
|
+
addressingFormatType: string | null;
|
|
64
|
+
hostName: string | null;
|
|
65
|
+
portNo: string | null;
|
|
66
|
+
synchronizeInterval: string | null;
|
|
67
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export type OAuthClient = {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
redirectUris: string[];
|
|
6
|
+
logoUrl: string | null;
|
|
7
|
+
scopes: string[];
|
|
8
|
+
active: boolean;
|
|
9
|
+
description: string | null;
|
|
10
|
+
owner: {
|
|
11
|
+
id: number;
|
|
12
|
+
name: string;
|
|
13
|
+
email: string;
|
|
14
|
+
} | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
updatedAt: string;
|
|
17
|
+
};
|
|
18
|
+
export type OAuthClientWithSecret = OAuthClient & {
|
|
19
|
+
clientSecret: string;
|
|
20
|
+
};
|
|
21
|
+
export type CreateOAuthClientPayload = {
|
|
22
|
+
name: string;
|
|
23
|
+
redirectUris: string[];
|
|
24
|
+
scopes?: string[];
|
|
25
|
+
description?: string;
|
|
26
|
+
logoUrl?: string;
|
|
27
|
+
};
|
|
28
|
+
export type AdminCreateOAuthClientPayload = CreateOAuthClientPayload & {
|
|
29
|
+
clientId?: string;
|
|
30
|
+
clientSecret?: string;
|
|
31
|
+
};
|
|
32
|
+
export type UpdateOAuthClientPayload = {
|
|
33
|
+
name?: string;
|
|
34
|
+
redirectUris?: string[];
|
|
35
|
+
scopes?: string[];
|
|
36
|
+
description?: string;
|
|
37
|
+
logoUrl?: string;
|
|
38
|
+
active?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type OAuthScopeDetail = {
|
|
41
|
+
scope: string;
|
|
42
|
+
description: string;
|
|
43
|
+
group: string;
|
|
44
|
+
};
|
|
45
|
+
export type OAuthConsentInfo = {
|
|
46
|
+
client: {
|
|
47
|
+
name: string;
|
|
48
|
+
logoUrl: string | null;
|
|
49
|
+
description: string | null;
|
|
50
|
+
};
|
|
51
|
+
scopes: OAuthScopeDetail[];
|
|
52
|
+
};
|
|
53
|
+
export type OAuthConsentPayload = {
|
|
54
|
+
clientId: string;
|
|
55
|
+
scope: string;
|
|
56
|
+
redirectUri: string;
|
|
57
|
+
state: string;
|
|
58
|
+
decision: "allow" | "deny";
|
|
59
|
+
};
|
|
60
|
+
export type OAuthConsentResponse = {
|
|
61
|
+
redirectUrl: string;
|
|
62
|
+
};
|