@evercam/api 1.0.0-0261f7ecb
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 +3 -0
- package/dist/api/3dFirebaseApi.d.ts +9 -0
- package/dist/api/adminApi.d.ts +304 -0
- package/dist/api/aiApi.d.ts +110 -0
- package/dist/api/authzApi.d.ts +21 -0
- package/dist/api/client/axios.d.ts +13 -0
- package/dist/api/client/customErrors.d.ts +80 -0
- package/dist/api/client/index.d.ts +5 -0
- package/dist/api/client/interceptors.d.ts +10 -0
- package/dist/api/evercamApi.d.ts +266 -0
- package/dist/api/evercamLabsApi.d.ts +46 -0
- package/dist/api/exNvrApi.d.ts +43 -0
- package/dist/api/index.d.ts +13 -0
- package/dist/api/ingestApi.d.ts +65 -0
- package/dist/api/ptzApi.d.ts +36 -0
- package/dist/api/videoWallApi.d.ts +9 -0
- package/dist/api/weatherApi.d.ts +27 -0
- package/dist/api/webRtcApi.d.ts +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2499 -0
- package/dist/index.js.map +1 -0
- package/dist/index.umd.cjs +2 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/types/360.d.ts +83 -0
- package/dist/types/aconex.d.ts +45 -0
- package/dist/types/analytics.d.ts +480 -0
- package/dist/types/anpr.d.ts +100 -0
- package/dist/types/auditLogs.d.ts +99 -0
- package/dist/types/autodesk.d.ts +29 -0
- package/dist/types/automation.d.ts +6 -0
- package/dist/types/axios.d.ts +50 -0
- package/dist/types/bim.d.ts +147 -0
- package/dist/types/camera.d.ts +565 -0
- package/dist/types/comments.d.ts +36 -0
- package/dist/types/company.d.ts +46 -0
- package/dist/types/compare.d.ts +57 -0
- package/dist/types/connector.d.ts +16 -0
- package/dist/types/coolify.d.ts +18 -0
- package/dist/types/copilot.d.ts +157 -0
- package/dist/types/countries.d.ts +507 -0
- package/dist/types/credentials.d.ts +5 -0
- package/dist/types/detections.d.ts +76 -0
- package/dist/types/devices.d.ts +228 -0
- package/dist/types/drone.d.ts +17 -0
- package/dist/types/errors.d.ts +36 -0
- package/dist/types/gateReport.d.ts +441 -0
- package/dist/types/hdd.d.ts +63 -0
- package/dist/types/index.d.ts +53 -0
- package/dist/types/ingest.d.ts +43 -0
- package/dist/types/kit.d.ts +299 -0
- package/dist/types/map.d.ts +4 -0
- package/dist/types/media.d.ts +114 -0
- package/dist/types/notification.d.ts +27 -0
- package/dist/types/nvr.d.ts +36 -0
- package/dist/types/planner.d.ts +28 -0
- package/dist/types/procore.d.ts +76 -0
- package/dist/types/progressPhoto.d.ts +90 -0
- package/dist/types/project.d.ts +119 -0
- package/dist/types/recording.d.ts +124 -0
- package/dist/types/roi.d.ts +26 -0
- package/dist/types/routeParams.d.ts +50 -0
- package/dist/types/router.d.ts +67 -0
- package/dist/types/shared.d.ts +199 -0
- package/dist/types/shares.d.ts +192 -0
- package/dist/types/sim.d.ts +114 -0
- package/dist/types/siteAnalytics.d.ts +84 -0
- package/dist/types/snapshots.d.ts +50 -0
- package/dist/types/storageServers.d.ts +4 -0
- package/dist/types/streaming.d.ts +118 -0
- package/dist/types/time.d.ts +19 -0
- package/dist/types/timelapse.d.ts +99 -0
- package/dist/types/user.d.ts +276 -0
- package/dist/types/vendorModel.d.ts +15 -0
- package/dist/types/videoWall.d.ts +33 -0
- package/dist/types/voyageControl.d.ts +6 -0
- package/dist/types/weather.d.ts +83 -0
- package/dist/types/widget.d.ts +172 -0
- package/dist/utils.d.ts +9 -0
- package/package.json +49 -0
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule } from "@/types";
|
|
2
|
+
export type Kit = {
|
|
3
|
+
alarms: KitAlarm[];
|
|
4
|
+
countryCode: CountryCode;
|
|
5
|
+
countryId: CountryId;
|
|
6
|
+
countryName: string;
|
|
7
|
+
countryRegion: Region;
|
|
8
|
+
id?: number;
|
|
9
|
+
jobId: number;
|
|
10
|
+
name: string;
|
|
11
|
+
nvr: Nvr;
|
|
12
|
+
powerType: PowerType;
|
|
13
|
+
project: Project;
|
|
14
|
+
projectId: number;
|
|
15
|
+
router: Partial<Router>;
|
|
16
|
+
serial: string;
|
|
17
|
+
status: KitStatus;
|
|
18
|
+
powerSchedule: Schedule;
|
|
19
|
+
};
|
|
20
|
+
export declare enum KitStatus {
|
|
21
|
+
New = "new",
|
|
22
|
+
Active = "active",
|
|
23
|
+
Deployed = "deployed",
|
|
24
|
+
Decommissioned = "decommissioned"
|
|
25
|
+
}
|
|
26
|
+
export declare enum KitAlarm {
|
|
27
|
+
NvrOffline = "nvr_offline",
|
|
28
|
+
UnknownCamera = "unknown_camera",
|
|
29
|
+
NotRecordingCamera = "not_recording_camera",
|
|
30
|
+
OfflineScheduled = "offline_scheduled",
|
|
31
|
+
FullSD = "full_sd",
|
|
32
|
+
FullStorage = "full_storage",
|
|
33
|
+
HddUnmounted = "hdd_unmounted",
|
|
34
|
+
NoHdd = "no_hdd"
|
|
35
|
+
}
|
|
36
|
+
export declare enum KitMetricId {
|
|
37
|
+
BatteryStats = "battery",
|
|
38
|
+
PanelPowerStats = "panel_power"
|
|
39
|
+
}
|
|
40
|
+
export declare enum KitMetricPeriod {
|
|
41
|
+
Last15Minutes = "now-15m",
|
|
42
|
+
Last1Hour = "now-1h",
|
|
43
|
+
Last24Hours = "now-24h",
|
|
44
|
+
Last7Days = "now-7d",
|
|
45
|
+
Last30Days = "now-30d",
|
|
46
|
+
Last90Days = "now-90d"
|
|
47
|
+
}
|
|
48
|
+
export declare enum GrafanaMetricId {
|
|
49
|
+
SbcCpuLoad = "SbcCpuLoad",
|
|
50
|
+
SbcSystemLoad5MnAvg = "SbcSystemLoad5MnAvg",
|
|
51
|
+
SbcSystemLoad15MnAvg = "SbcSystemLoad15MnAvg",
|
|
52
|
+
SbcRamUsed = "SbcRamUsed",
|
|
53
|
+
SbcSwapUsed = "SbcSwapUsed",
|
|
54
|
+
SbcRootFsUsed = "SbcRootFsUsed",
|
|
55
|
+
SbcCpuCoresTotal = "SbcCpuCoresTotal",
|
|
56
|
+
SbcRamTotal = "SbcRamTotal",
|
|
57
|
+
SbcSwapTotal = "SbcSwapTotal",
|
|
58
|
+
SbcRootFsTotal = "SbcRootFsTotal",
|
|
59
|
+
SbcUptime = "SbcUptime",
|
|
60
|
+
SbcCpuStats = "SbcCpuStats",
|
|
61
|
+
SbcRamStats = "SbcRamStats",
|
|
62
|
+
SbcNetworkStats = "SbcNetworkStats",
|
|
63
|
+
SbcTimeSyncStats = "SbcTimeSyncStats",
|
|
64
|
+
SbcTemperatureStats = "SbcTemperatureStats",
|
|
65
|
+
SbcTimeSyncDriftStats = "SbcTimeSyncDriftStats",
|
|
66
|
+
CameraInfo = "CameraInfo",
|
|
67
|
+
CameraRecordingStateTimeline = "CameraRecordingStateTimeline",
|
|
68
|
+
CameraStreamInfo = "CameraStreamInfo",
|
|
69
|
+
LocalStorage = "LocalStorage",
|
|
70
|
+
StorageSpaceUsed = "StorageSpaceUsed",
|
|
71
|
+
RouterTemperature = "RouterTemperature",
|
|
72
|
+
RouterCpuLoad = "RouterCpuLoad",
|
|
73
|
+
RouterRamUsed = "RouterRamUsed",
|
|
74
|
+
RouterSystemLoad5MnAvg = "RouterSystemLoad5MnAvg",
|
|
75
|
+
RouterSwapTotal = "RouterSwapTotal",
|
|
76
|
+
RouterRamTotal = "RouterRamTotal",
|
|
77
|
+
RouterUptime = "RouterUptime",
|
|
78
|
+
RouterCpuCoresTotal = "RouterCpuCoresTotal",
|
|
79
|
+
RouterSignalReliability = "RouterSignalReliability",
|
|
80
|
+
RouterSINR = "RouterSINR",
|
|
81
|
+
RouterRSRP = "RouterRSRP",
|
|
82
|
+
RouterRSRQ = "RouterRSRQ",
|
|
83
|
+
RouterRSSI = "RouterRSSI",
|
|
84
|
+
RouterSignalStrengthStats = "RouterSignalStrengthStats",
|
|
85
|
+
RouterSignalQualityStats = "RouterSignalQualityStats",
|
|
86
|
+
RouterDataConsumptionStats = "RouterDataConsumptionStats",
|
|
87
|
+
BatteryVoltageAndCurrentStats = "BatteryVoltageAndCurrentStats",
|
|
88
|
+
PanelVoltageAndPowerStats = "PanelVoltageAndPowerStats",
|
|
89
|
+
ExNvrStatus = "ExNvrStatus",
|
|
90
|
+
ExNvrVersion = "ExNvrVersion",
|
|
91
|
+
ExNvrMemoryUsage = "ExNvrMemoryUsage",
|
|
92
|
+
ExNvrLogs = "ExNvrLogs"
|
|
93
|
+
}
|
|
94
|
+
export declare enum KitChartType {
|
|
95
|
+
Stat = "stat",
|
|
96
|
+
Gauge = "gauge",
|
|
97
|
+
Graph = "graph",
|
|
98
|
+
Table = "table",
|
|
99
|
+
StateTimeline = "state-timeline",
|
|
100
|
+
Logs = "logs",
|
|
101
|
+
TimeSeries = "timeseries",
|
|
102
|
+
BarChart = "barchart"
|
|
103
|
+
}
|
|
104
|
+
export type GrafanaDataSource = {
|
|
105
|
+
type: string;
|
|
106
|
+
uid: string;
|
|
107
|
+
};
|
|
108
|
+
export type GrafanaTarget = {
|
|
109
|
+
expr: string;
|
|
110
|
+
refId: string;
|
|
111
|
+
datasourceId?: string;
|
|
112
|
+
intervalMs?: number;
|
|
113
|
+
maxDataPoints?: number;
|
|
114
|
+
};
|
|
115
|
+
export type GrafanaPanel = {
|
|
116
|
+
[key: string]: unknown;
|
|
117
|
+
id: GrafanaMetricId;
|
|
118
|
+
name: keyof GrafanaMetricId;
|
|
119
|
+
title: string;
|
|
120
|
+
description: string;
|
|
121
|
+
type: KitChartType;
|
|
122
|
+
datasource: GrafanaDataSource;
|
|
123
|
+
targets: GrafanaTarget[];
|
|
124
|
+
maxDataPoints?: number;
|
|
125
|
+
interval?: string;
|
|
126
|
+
timeFrom?: string;
|
|
127
|
+
timeShift?: string;
|
|
128
|
+
options?: {
|
|
129
|
+
maxDataPoints?: number;
|
|
130
|
+
interval?: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
export type GrafanaDashboard = {
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
panels: GrafanaPanel[];
|
|
136
|
+
time?: {
|
|
137
|
+
from: string;
|
|
138
|
+
to: string;
|
|
139
|
+
};
|
|
140
|
+
timepicker?: {
|
|
141
|
+
refresh_intervals: string[];
|
|
142
|
+
time_options: string[];
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
export type GrafanaQueryOptions = {
|
|
146
|
+
metricId: GrafanaMetricId;
|
|
147
|
+
host: string;
|
|
148
|
+
job?: string;
|
|
149
|
+
from?: string;
|
|
150
|
+
to?: string;
|
|
151
|
+
variables?: Record<string, string>;
|
|
152
|
+
};
|
|
153
|
+
export type GrafanaTimeSeriesValue = number | string | null;
|
|
154
|
+
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
155
|
+
export type GrafanaFieldConfig = {
|
|
156
|
+
displayNameFromDS?: string;
|
|
157
|
+
links?: string[];
|
|
158
|
+
color?: string;
|
|
159
|
+
custom?: {
|
|
160
|
+
lineInterpolation?: string;
|
|
161
|
+
fillOpacity?: number;
|
|
162
|
+
gradientMode?: string;
|
|
163
|
+
lineWidth?: number;
|
|
164
|
+
spanNulls?: boolean;
|
|
165
|
+
resultType?: string;
|
|
166
|
+
};
|
|
167
|
+
thresholds?: {
|
|
168
|
+
mode: string;
|
|
169
|
+
steps: Array<{
|
|
170
|
+
color: string;
|
|
171
|
+
value: number | null;
|
|
172
|
+
}>;
|
|
173
|
+
};
|
|
174
|
+
unit?: string;
|
|
175
|
+
decimals?: number;
|
|
176
|
+
interval?: number;
|
|
177
|
+
};
|
|
178
|
+
export type GrafanaField = {
|
|
179
|
+
name: string;
|
|
180
|
+
type: string;
|
|
181
|
+
typeInfo: {
|
|
182
|
+
frame: string;
|
|
183
|
+
nullable?: boolean;
|
|
184
|
+
};
|
|
185
|
+
config: GrafanaFieldConfig;
|
|
186
|
+
labels?: {
|
|
187
|
+
[key: string]: string;
|
|
188
|
+
};
|
|
189
|
+
values?: GrafanaTimeSeriesValues;
|
|
190
|
+
};
|
|
191
|
+
export type GrafanaSchemaMeta = {
|
|
192
|
+
type?: string;
|
|
193
|
+
typeVersion?: number[];
|
|
194
|
+
custom?: {
|
|
195
|
+
resultType?: string;
|
|
196
|
+
frameType?: string;
|
|
197
|
+
};
|
|
198
|
+
stats?: Array<{
|
|
199
|
+
displayName: string;
|
|
200
|
+
value: number;
|
|
201
|
+
unit?: string;
|
|
202
|
+
}>;
|
|
203
|
+
executedQueryString?: string;
|
|
204
|
+
};
|
|
205
|
+
export type GrafanaSchema = {
|
|
206
|
+
name?: string;
|
|
207
|
+
refId: string;
|
|
208
|
+
meta: GrafanaSchemaMeta;
|
|
209
|
+
fields: GrafanaField[];
|
|
210
|
+
};
|
|
211
|
+
export type GrafanaFrame = {
|
|
212
|
+
schema: GrafanaSchema;
|
|
213
|
+
data: {
|
|
214
|
+
values: GrafanaTimeSeriesValues;
|
|
215
|
+
nanos?: Array<number[] | null>;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
export type KitMetricData = {
|
|
219
|
+
type: KitChartType;
|
|
220
|
+
chartProps?: Record<string, unknown>;
|
|
221
|
+
};
|
|
222
|
+
export type GrafanaQueryResult = {
|
|
223
|
+
status: number;
|
|
224
|
+
frames: GrafanaFrame[];
|
|
225
|
+
};
|
|
226
|
+
export type GrafanaMetricData = KitMetricData & {
|
|
227
|
+
results: {
|
|
228
|
+
[key: string]: GrafanaQueryResult;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
export type EvercamMetricData = KitMetricData & {
|
|
232
|
+
stats: EvercamStats[];
|
|
233
|
+
};
|
|
234
|
+
export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricData>;
|
|
235
|
+
export type EvercamStats = {
|
|
236
|
+
[k: string]: number | string;
|
|
237
|
+
timestamp: string;
|
|
238
|
+
};
|
|
239
|
+
export type KitQueryParams = PaginationParams & {
|
|
240
|
+
name: string;
|
|
241
|
+
serial: string;
|
|
242
|
+
status: KitStatus;
|
|
243
|
+
};
|
|
244
|
+
export type AdminKit = {
|
|
245
|
+
id: number;
|
|
246
|
+
name: string;
|
|
247
|
+
serial: string;
|
|
248
|
+
status: string;
|
|
249
|
+
powerType: PowerType;
|
|
250
|
+
location: string;
|
|
251
|
+
countryId: number;
|
|
252
|
+
countryName: string;
|
|
253
|
+
countryRegion: string;
|
|
254
|
+
nvr: Nvr;
|
|
255
|
+
router: {
|
|
256
|
+
id: number;
|
|
257
|
+
serialNumber: number;
|
|
258
|
+
vpnUserId: string;
|
|
259
|
+
vpnPassword: string;
|
|
260
|
+
routerType: string;
|
|
261
|
+
routerUserId: string;
|
|
262
|
+
routerPassword: string;
|
|
263
|
+
routerHttpPort: number;
|
|
264
|
+
powerType: PowerType;
|
|
265
|
+
powerSchedule: Schedule;
|
|
266
|
+
vpnServer: string;
|
|
267
|
+
netbirdUrl: string;
|
|
268
|
+
sims: {
|
|
269
|
+
id: number;
|
|
270
|
+
number: string;
|
|
271
|
+
}[];
|
|
272
|
+
};
|
|
273
|
+
project: {
|
|
274
|
+
id: number;
|
|
275
|
+
exid: string;
|
|
276
|
+
name: string;
|
|
277
|
+
timezone: string;
|
|
278
|
+
status: string;
|
|
279
|
+
zohoId: string;
|
|
280
|
+
insertedAt: DateType;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
export type KitCreatePayload = {
|
|
284
|
+
projectId?: number;
|
|
285
|
+
countryCode?: string;
|
|
286
|
+
name: string;
|
|
287
|
+
status: KitStatus;
|
|
288
|
+
powerType: PowerType;
|
|
289
|
+
config: {
|
|
290
|
+
region: Region;
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
export type KitUpdatePayload = {
|
|
294
|
+
countryId: number;
|
|
295
|
+
name: string;
|
|
296
|
+
kitSerial: string;
|
|
297
|
+
kitStatus: KitStatus;
|
|
298
|
+
type: string;
|
|
299
|
+
};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { CameraExid, Exid, DateType } from "@/types";
|
|
2
|
+
export type MediaExid = Exid;
|
|
3
|
+
export type Media = {
|
|
4
|
+
project_exid?: string;
|
|
5
|
+
cameraExid?: CameraExid;
|
|
6
|
+
cameraName: string;
|
|
7
|
+
cameraTimezone: string;
|
|
8
|
+
createdAt: string;
|
|
9
|
+
fromDate: string;
|
|
10
|
+
id: number;
|
|
11
|
+
requesterEmail: string;
|
|
12
|
+
requesterName: string;
|
|
13
|
+
title: string;
|
|
14
|
+
toDate: string;
|
|
15
|
+
url?: string;
|
|
16
|
+
exid?: MediaExid;
|
|
17
|
+
embedCode?: string;
|
|
18
|
+
fileName?: string;
|
|
19
|
+
format?: string;
|
|
20
|
+
frames?: number;
|
|
21
|
+
link?: string;
|
|
22
|
+
public?: boolean;
|
|
23
|
+
type: MediaType;
|
|
24
|
+
status?: MediaStatus;
|
|
25
|
+
projectExid?: string;
|
|
26
|
+
thumbnailUrl?: string;
|
|
27
|
+
mediaUrl?: string;
|
|
28
|
+
};
|
|
29
|
+
export declare enum MediaType {
|
|
30
|
+
EditedImage = "edit",
|
|
31
|
+
ExternalUrl = "url",
|
|
32
|
+
Clip = "clip",
|
|
33
|
+
File = "file",
|
|
34
|
+
LocalClip = "local_clip",
|
|
35
|
+
XRay = "x-ray",
|
|
36
|
+
Timelapse = "timelapse",
|
|
37
|
+
Compare = "compare",
|
|
38
|
+
MobileAsset = "mobile-asset"
|
|
39
|
+
}
|
|
40
|
+
export declare enum MediaFileType {
|
|
41
|
+
Gif = "gif",
|
|
42
|
+
Mp4 = "mp4",
|
|
43
|
+
Png = "png",
|
|
44
|
+
Pdf = "pdf",
|
|
45
|
+
Jpeg = "jpeg"
|
|
46
|
+
}
|
|
47
|
+
export declare enum MediaStatus {
|
|
48
|
+
Pending = "Pending",
|
|
49
|
+
Creating = "Creating",
|
|
50
|
+
Processing = "Processing",
|
|
51
|
+
Extracting = "Extracting",
|
|
52
|
+
Uploading = "Uploading",
|
|
53
|
+
Completed = "Completed",
|
|
54
|
+
Failed = "Failed",
|
|
55
|
+
NoData = "No Data"
|
|
56
|
+
}
|
|
57
|
+
export declare enum MediaStatusId {
|
|
58
|
+
Pending = 0,
|
|
59
|
+
Processing = 1,
|
|
60
|
+
Completed = 2,
|
|
61
|
+
Failed = 3
|
|
62
|
+
}
|
|
63
|
+
export type MediaFilterQueryParams = {
|
|
64
|
+
title?: string;
|
|
65
|
+
sort?: string;
|
|
66
|
+
sortBy?: string;
|
|
67
|
+
dateRange?: string | string[];
|
|
68
|
+
fromDate?: string;
|
|
69
|
+
toDate?: string;
|
|
70
|
+
cameraName?: string;
|
|
71
|
+
requesterEmail?: string;
|
|
72
|
+
type?: MediaType;
|
|
73
|
+
cameraExid?: string;
|
|
74
|
+
page?: number;
|
|
75
|
+
limit?: number;
|
|
76
|
+
camera?: string;
|
|
77
|
+
};
|
|
78
|
+
export type MediaUpdateRequestPayload = {
|
|
79
|
+
name?: string;
|
|
80
|
+
title?: string;
|
|
81
|
+
public?: boolean;
|
|
82
|
+
};
|
|
83
|
+
export type MediaCreateRequestPayload = {
|
|
84
|
+
fromDate: DateType;
|
|
85
|
+
toDate: DateType;
|
|
86
|
+
title: string;
|
|
87
|
+
type: MediaType;
|
|
88
|
+
fileUrl?: string;
|
|
89
|
+
fileExtension?: string;
|
|
90
|
+
url?: string;
|
|
91
|
+
content?: string;
|
|
92
|
+
cameraExid?: string;
|
|
93
|
+
requestedBy?: string;
|
|
94
|
+
notes?: string;
|
|
95
|
+
category?: ClipsCategory;
|
|
96
|
+
isUrgent?: boolean;
|
|
97
|
+
storeAsType?: MediaType;
|
|
98
|
+
};
|
|
99
|
+
export type MediaUsersResponsePayload = Array<{
|
|
100
|
+
id: number;
|
|
101
|
+
email: string;
|
|
102
|
+
name: string;
|
|
103
|
+
}>;
|
|
104
|
+
export declare enum ClipsCategory {
|
|
105
|
+
HealthSafetySecurity = "health_safety_security",
|
|
106
|
+
Legal = "legal",
|
|
107
|
+
Marketing = "marketing",
|
|
108
|
+
BestPracticies = "best_practices"
|
|
109
|
+
}
|
|
110
|
+
export type MediaDeleteRequestPayload = {
|
|
111
|
+
timelapseIds: (string | number)[];
|
|
112
|
+
compareIds: (string | number)[];
|
|
113
|
+
archiveIds: (string | number)[];
|
|
114
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare enum NotificationType {
|
|
2
|
+
CameraShare = "camera_share",
|
|
3
|
+
CameraStatusChange = "camera_status_changed",
|
|
4
|
+
Mention = "mention",
|
|
5
|
+
TimelapseCreated = "timelapse_created",
|
|
6
|
+
TimelapseFailed = "timelapse_failed",
|
|
7
|
+
DroneProcessing = "drone_processing_done",
|
|
8
|
+
Processing360 = "three_sixty_done"
|
|
9
|
+
}
|
|
10
|
+
export interface CameraShareContext {
|
|
11
|
+
cameraExid: string;
|
|
12
|
+
projectExid: string;
|
|
13
|
+
shareId: number;
|
|
14
|
+
}
|
|
15
|
+
export type Notification = {
|
|
16
|
+
id: number;
|
|
17
|
+
type: NotificationType;
|
|
18
|
+
insertedAt: string;
|
|
19
|
+
initiatorId: number;
|
|
20
|
+
initiatorFullname: string;
|
|
21
|
+
initiatorEmail: string;
|
|
22
|
+
targetId: number;
|
|
23
|
+
targetFullname: string;
|
|
24
|
+
targetEmail: string;
|
|
25
|
+
readTimestamp: string | null;
|
|
26
|
+
context: CameraShareContext;
|
|
27
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { NvrModel } from "@evercam/api/types";
|
|
2
|
+
export type Nvr = {
|
|
3
|
+
id?: number;
|
|
4
|
+
deviceType: NvrDeviceType;
|
|
5
|
+
serial: string;
|
|
6
|
+
model: NvrModel;
|
|
7
|
+
httpUrl: string;
|
|
8
|
+
rtspUrl: string;
|
|
9
|
+
macAddress: string;
|
|
10
|
+
username: string;
|
|
11
|
+
password: string;
|
|
12
|
+
nerves: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare enum NvrDeviceType {
|
|
15
|
+
Rpi4 = "rpi4",
|
|
16
|
+
Rpi5 = "rpi5",
|
|
17
|
+
OrinNano = "orin_nano",
|
|
18
|
+
Giraffe = "giraffe"
|
|
19
|
+
}
|
|
20
|
+
export declare enum NvrHddStatus {
|
|
21
|
+
Error = "error",
|
|
22
|
+
Idle = "idle",
|
|
23
|
+
NotExist = "notexist",
|
|
24
|
+
Ok = "ok",
|
|
25
|
+
Unformatted = "unformatted"
|
|
26
|
+
}
|
|
27
|
+
export type NvrCreatePayload = {
|
|
28
|
+
serial?: string;
|
|
29
|
+
httpUrl: string;
|
|
30
|
+
rtspUrl?: string;
|
|
31
|
+
deviceType?: NvrDeviceType;
|
|
32
|
+
model: NvrModel;
|
|
33
|
+
username: string;
|
|
34
|
+
password: string;
|
|
35
|
+
kitId?: number;
|
|
36
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export declare enum EMapTypes {
|
|
2
|
+
Blank = "Blank",
|
|
3
|
+
Satellite = "Satellite",
|
|
4
|
+
Street = "Street",
|
|
5
|
+
GoogleSatellite = "hybrid",
|
|
6
|
+
GoogleStreet = "roadmap",
|
|
7
|
+
GoogleTerrain = "terrain"
|
|
8
|
+
}
|
|
9
|
+
export declare enum EMarkers {
|
|
10
|
+
CameraMarker = "cameraMarker",
|
|
11
|
+
ThreeSixtyMarker = "threeSixtyMarkers"
|
|
12
|
+
}
|
|
13
|
+
export declare enum EPageType {
|
|
14
|
+
List = "list",
|
|
15
|
+
Item = "item"
|
|
16
|
+
}
|
|
17
|
+
export declare enum EPaths {
|
|
18
|
+
Home = "/",
|
|
19
|
+
Session = "/session"
|
|
20
|
+
}
|
|
21
|
+
export declare enum EProjectItems {
|
|
22
|
+
Camera = "camera",
|
|
23
|
+
Overlay = "overlay"
|
|
24
|
+
}
|
|
25
|
+
export declare enum ERoles {
|
|
26
|
+
Admin = "admin",
|
|
27
|
+
User = "user"
|
|
28
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export type ProcoreUserCompaniesResponsePayload = Array<{
|
|
2
|
+
id: number;
|
|
3
|
+
isActive?: boolean;
|
|
4
|
+
name: string;
|
|
5
|
+
}>;
|
|
6
|
+
export type ProcoreUserProjectRequestPayload = {
|
|
7
|
+
companyId: number;
|
|
8
|
+
};
|
|
9
|
+
export type ProcoreUserProjectsResponsePayload = Array<{
|
|
10
|
+
accountingProjectNumber?: number;
|
|
11
|
+
active: boolean;
|
|
12
|
+
address: string;
|
|
13
|
+
city: string;
|
|
14
|
+
company: {
|
|
15
|
+
id: number;
|
|
16
|
+
name: string;
|
|
17
|
+
};
|
|
18
|
+
completionDate: string;
|
|
19
|
+
countryCode: string;
|
|
20
|
+
county: string;
|
|
21
|
+
createdAt: string;
|
|
22
|
+
customFields?: object;
|
|
23
|
+
designatedMarketArea: string;
|
|
24
|
+
displayName: string;
|
|
25
|
+
estimatedValue: string;
|
|
26
|
+
id: number;
|
|
27
|
+
isDemo: boolean;
|
|
28
|
+
latitude: number;
|
|
29
|
+
longitude: number;
|
|
30
|
+
name: string;
|
|
31
|
+
originCode: string | number | null;
|
|
32
|
+
originData: string | null;
|
|
33
|
+
originId: number | null;
|
|
34
|
+
ownersProjectId: number | null;
|
|
35
|
+
parentJobId: number | null;
|
|
36
|
+
phone: string | number;
|
|
37
|
+
photoId: number;
|
|
38
|
+
projectBidTypeId: number | null;
|
|
39
|
+
projectNumber: string;
|
|
40
|
+
projectOwnerTypeId: number | null;
|
|
41
|
+
projectRegionId: number | null;
|
|
42
|
+
stage: string;
|
|
43
|
+
startDate: string;
|
|
44
|
+
stateCode: string;
|
|
45
|
+
storeNumber?: string;
|
|
46
|
+
timeZone: string;
|
|
47
|
+
totalValue: string;
|
|
48
|
+
updatedAt: string;
|
|
49
|
+
zip: number;
|
|
50
|
+
}>;
|
|
51
|
+
export type ProcoreEditedImageUploadRequestPayload = {
|
|
52
|
+
projectExid: string;
|
|
53
|
+
companyId: number;
|
|
54
|
+
projectId: number;
|
|
55
|
+
snapshot: string;
|
|
56
|
+
categoryId?: number;
|
|
57
|
+
};
|
|
58
|
+
export type ProcoreProjectsAlbumsPayload = Array<{
|
|
59
|
+
count: number;
|
|
60
|
+
coverPhoto: string | null;
|
|
61
|
+
createdAt: string;
|
|
62
|
+
id: number;
|
|
63
|
+
links: {
|
|
64
|
+
delete: string;
|
|
65
|
+
show: string;
|
|
66
|
+
update: string;
|
|
67
|
+
};
|
|
68
|
+
name: string;
|
|
69
|
+
position: number;
|
|
70
|
+
private: boolean;
|
|
71
|
+
updatedAt: string;
|
|
72
|
+
}>;
|
|
73
|
+
export type ProcoreProjectsAlbumsRequestPayload = {
|
|
74
|
+
companyId: number;
|
|
75
|
+
projectId: number;
|
|
76
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { DateTime, DateType, PaginationParams } from "@/types";
|
|
2
|
+
export type ProgressPhoto = {
|
|
3
|
+
cameraIds: string;
|
|
4
|
+
cameraNames: number;
|
|
5
|
+
createdAt: string;
|
|
6
|
+
id: number;
|
|
7
|
+
provider: string;
|
|
8
|
+
config: Partial<{
|
|
9
|
+
recipients: string;
|
|
10
|
+
projectId: number;
|
|
11
|
+
companyId: number;
|
|
12
|
+
}>;
|
|
13
|
+
isPaused: boolean;
|
|
14
|
+
notifyDays: string;
|
|
15
|
+
notifyTime: string;
|
|
16
|
+
requesterEmail: string;
|
|
17
|
+
requesterName: string;
|
|
18
|
+
timezone: string;
|
|
19
|
+
title: string;
|
|
20
|
+
};
|
|
21
|
+
export type ProgressPhotosCreateUpdateRequestPayload = {
|
|
22
|
+
cameraExids?: string;
|
|
23
|
+
notifyDays?: string;
|
|
24
|
+
notifyTime?: string;
|
|
25
|
+
provider?: string;
|
|
26
|
+
config?: {
|
|
27
|
+
recipients?: string;
|
|
28
|
+
projectId?: number;
|
|
29
|
+
companyId?: number;
|
|
30
|
+
catergoryId?: string;
|
|
31
|
+
};
|
|
32
|
+
subject?: string;
|
|
33
|
+
isPaused?: boolean;
|
|
34
|
+
timezone?: string;
|
|
35
|
+
};
|
|
36
|
+
export type ProgressPhotosUnSubscribeParams = {
|
|
37
|
+
email: string;
|
|
38
|
+
token?: string;
|
|
39
|
+
};
|
|
40
|
+
export type ProgressPhotosResponsePayload = {
|
|
41
|
+
progressPhotos: ProgressPhoto[];
|
|
42
|
+
};
|
|
43
|
+
export declare enum ProgressPhotoDialogType {
|
|
44
|
+
Create = "create",
|
|
45
|
+
Edit = "edit",
|
|
46
|
+
Pause = "pause"
|
|
47
|
+
}
|
|
48
|
+
export type CameraOption = {
|
|
49
|
+
exid: string;
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
export interface ProgressPhotoItem {
|
|
53
|
+
id: number;
|
|
54
|
+
cameras: CameraOption[] | string[] | string;
|
|
55
|
+
insertedAt: string;
|
|
56
|
+
provider: string;
|
|
57
|
+
config: {
|
|
58
|
+
recipients: string | string[];
|
|
59
|
+
sendSnapshotAs: string;
|
|
60
|
+
};
|
|
61
|
+
isPaused: boolean;
|
|
62
|
+
notifyDays: string | string[];
|
|
63
|
+
notifyTime: string;
|
|
64
|
+
api_id: string;
|
|
65
|
+
api_key: string;
|
|
66
|
+
timezone: string;
|
|
67
|
+
exid: string;
|
|
68
|
+
fullname: string;
|
|
69
|
+
}
|
|
70
|
+
export type ProgressPhotosQueryParams = PaginationParams & {
|
|
71
|
+
fullname: string;
|
|
72
|
+
recipients: string;
|
|
73
|
+
notifyTime: string;
|
|
74
|
+
timezone: string;
|
|
75
|
+
cameras: string;
|
|
76
|
+
};
|
|
77
|
+
export type progressPhotosHistoryQueryParams = {
|
|
78
|
+
insertedAt: DateType[];
|
|
79
|
+
recipients: string;
|
|
80
|
+
subject: string;
|
|
81
|
+
cameraId: string;
|
|
82
|
+
failedCameraId: string;
|
|
83
|
+
};
|
|
84
|
+
export type ProgressPhotosHistory = {
|
|
85
|
+
id: number;
|
|
86
|
+
cameraIds: string;
|
|
87
|
+
failedCameraIds: string;
|
|
88
|
+
subject: string;
|
|
89
|
+
recipients: DateTime;
|
|
90
|
+
};
|