@evercam/api 1.0.0-003a1ed80

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.
Files changed (95) hide show
  1. package/README.md +3 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +20 -0
  3. package/dist/api/api/adminApi.d.ts +355 -0
  4. package/dist/api/api/aiApi.d.ts +146 -0
  5. package/dist/api/api/authzApi.d.ts +21 -0
  6. package/dist/api/api/client/axios.d.ts +13 -0
  7. package/dist/api/api/client/customErrors.d.ts +90 -0
  8. package/dist/api/api/client/index.d.ts +5 -0
  9. package/dist/api/api/client/interceptors.d.ts +10 -0
  10. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  11. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  12. package/dist/api/api/evercamApi.d.ts +315 -0
  13. package/dist/api/api/evercamLabsApi.d.ts +43 -0
  14. package/dist/api/api/exNvrApi.d.ts +43 -0
  15. package/dist/api/api/index.d.ts +13 -0
  16. package/dist/api/api/ingestApi.d.ts +73 -0
  17. package/dist/api/api/ptzApi.d.ts +36 -0
  18. package/dist/api/api/videoWallApi.d.ts +9 -0
  19. package/dist/api/api/weatherApi.d.ts +9 -0
  20. package/dist/api/api/webRtcApi.d.ts +22 -0
  21. package/dist/api/index.d.ts +3 -0
  22. package/dist/api/types/360.d.ts +99 -0
  23. package/dist/api/types/aconex.d.ts +45 -0
  24. package/dist/api/types/analytics.d.ts +489 -0
  25. package/dist/api/types/anpr.d.ts +103 -0
  26. package/dist/api/types/auditLogs.d.ts +99 -0
  27. package/dist/api/types/autodesk.d.ts +29 -0
  28. package/dist/api/types/automation.d.ts +10 -0
  29. package/dist/api/types/axios.d.ts +65 -0
  30. package/dist/api/types/bim.d.ts +147 -0
  31. package/dist/api/types/camera.d.ts +531 -0
  32. package/dist/api/types/comments.d.ts +59 -0
  33. package/dist/api/types/company.d.ts +74 -0
  34. package/dist/api/types/compare.d.ts +57 -0
  35. package/dist/api/types/connector.d.ts +21 -0
  36. package/dist/api/types/coolify.d.ts +18 -0
  37. package/dist/api/types/copilot.d.ts +157 -0
  38. package/dist/api/types/countries.d.ts +500 -0
  39. package/dist/api/types/credentials.d.ts +5 -0
  40. package/dist/api/types/detections.d.ts +126 -0
  41. package/dist/api/types/drone.d.ts +17 -0
  42. package/dist/api/types/errors.d.ts +48 -0
  43. package/dist/api/types/gateReport.d.ts +441 -0
  44. package/dist/api/types/hdd.d.ts +63 -0
  45. package/dist/api/types/index.d.ts +57 -0
  46. package/dist/api/types/ingest.d.ts +47 -0
  47. package/dist/api/types/kit.d.ts +355 -0
  48. package/dist/api/types/map.d.ts +4 -0
  49. package/dist/api/types/media.d.ts +114 -0
  50. package/dist/api/types/notification.d.ts +27 -0
  51. package/dist/api/types/nvr.d.ts +36 -0
  52. package/dist/api/types/planner.d.ts +32 -0
  53. package/dist/api/types/posthog.d.ts +18 -0
  54. package/dist/api/types/procore.d.ts +222 -0
  55. package/dist/api/types/progressPhoto.d.ts +104 -0
  56. package/dist/api/types/project.d.ts +129 -0
  57. package/dist/api/types/recording.d.ts +123 -0
  58. package/dist/api/types/roi.d.ts +27 -0
  59. package/dist/api/types/routeParams.d.ts +51 -0
  60. package/dist/api/types/router.d.ts +67 -0
  61. package/dist/api/types/shared.d.ts +194 -0
  62. package/dist/api/types/shares.d.ts +196 -0
  63. package/dist/api/types/sim.d.ts +114 -0
  64. package/dist/api/types/siteAnalytics.d.ts +142 -0
  65. package/dist/api/types/snapshots.d.ts +50 -0
  66. package/dist/api/types/sso.d.ts +55 -0
  67. package/dist/api/types/storageServers.d.ts +4 -0
  68. package/dist/api/types/streaming.d.ts +97 -0
  69. package/dist/api/types/systemCheck.d.ts +11 -0
  70. package/dist/api/types/tag.d.ts +12 -0
  71. package/dist/api/types/time.d.ts +21 -0
  72. package/dist/api/types/timelapse.d.ts +99 -0
  73. package/dist/api/types/user.d.ts +271 -0
  74. package/dist/api/types/vendorModel.d.ts +15 -0
  75. package/dist/api/types/videoWall.d.ts +33 -0
  76. package/dist/api/types/voyageControl.d.ts +6 -0
  77. package/dist/api/types/weather.d.ts +87 -0
  78. package/dist/api/types/widget.d.ts +191 -0
  79. package/dist/api/types/xweather.d.ts +12 -0
  80. package/dist/api/utils.d.ts +9 -0
  81. package/dist/index.d.ts +2 -0
  82. package/dist/index.js +2971 -0
  83. package/dist/index.js.map +1 -0
  84. package/dist/index.umd.cjs +2 -0
  85. package/dist/index.umd.cjs.map +1 -0
  86. package/dist/shared/api/index.d.ts +3 -0
  87. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  88. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  89. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  90. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  91. package/dist/shared/types/components.d.ts +193 -0
  92. package/dist/shared/types/imagePlayer.d.ts +34 -0
  93. package/dist/shared/types/index.d.ts +4 -0
  94. package/dist/shared/types/timeline.d.ts +9 -0
  95. package/package.json +50 -0
@@ -0,0 +1,57 @@
1
+ export * from "./360";
2
+ export * from "./aconex";
3
+ export * from "./analytics";
4
+ export * from "./anpr";
5
+ export * from "./media";
6
+ export * from "./autodesk";
7
+ export * from "./bim";
8
+ export * from "./camera";
9
+ export * from "./compare";
10
+ export * from "./copilot";
11
+ export * from "./credentials";
12
+ export * from "./drone";
13
+ export * from "./errors";
14
+ export * from "./gateReport";
15
+ export * from "./hdd";
16
+ export * from "./ingest";
17
+ export * from "./map";
18
+ export * from "./connector";
19
+ export * from "./notification";
20
+ export * from "./nvr";
21
+ export * from "./procore";
22
+ export * from "./progressPhoto";
23
+ export * from "./project";
24
+ export * from "./recording";
25
+ export * from "./roi";
26
+ export * from "./routeParams";
27
+ export * from "./router";
28
+ export * from "./shares";
29
+ export * from "./sim";
30
+ export * from "./systemCheck";
31
+ export * from "./planner";
32
+ export * from "./storageServers";
33
+ export * from "./streaming";
34
+ export * from "./time";
35
+ export * from "./timelapse";
36
+ export * from "./user";
37
+ export * from "./vendorModel";
38
+ export * from "./videoWall";
39
+ export * from "./voyageControl";
40
+ export * from "./weather";
41
+ export * from "./comments";
42
+ export * from "./detections";
43
+ export * from "./axios";
44
+ export * from "./shared";
45
+ export * from "./company";
46
+ export * from "./kit";
47
+ export * from "./auditLogs";
48
+ export * from "./snapshots";
49
+ export * from "./siteAnalytics";
50
+ export * from "./widget";
51
+ export * from "./countries";
52
+ export * from "./automation";
53
+ export * from "./sso";
54
+ export * from "./coolify";
55
+ export * from "./tag";
56
+ export * from "./xweather";
57
+ export * from "./posthog";
@@ -0,0 +1,47 @@
1
+ import { PaginationParams, DateType } from "@/types";
2
+ export declare enum IngestProcessingStatus {
3
+ Completed = "completed",
4
+ Uploading = "uploading",
5
+ Created = "created",
6
+ Failed = "failed",
7
+ Aborted = "aborted",
8
+ Paused = "paused",
9
+ InProgress = "inprogress",
10
+ Pending = "pending"
11
+ }
12
+ export declare enum IngestVersions {
13
+ V1 = "v1",
14
+ V2 = "v2"
15
+ }
16
+ export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
17
+ projectId: string;
18
+ consumed: string;
19
+ token: string;
20
+ processingStatus: IngestProcessingStatus;
21
+ };
22
+ export type DroneUploadUpdateRequestPayload = {
23
+ flightMetadata: {
24
+ dateTime: string;
25
+ gpsAltitude: string;
26
+ gpsCoordinates: string;
27
+ };
28
+ upload: {
29
+ url: string;
30
+ title: string;
31
+ fileExtension: string;
32
+ }[];
33
+ projectName: string;
34
+ };
35
+ export type CalculateMeasuringOperationRequestPayload = {
36
+ date: DateType;
37
+ points: [number, number][];
38
+ operation: string;
39
+ };
40
+ export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
41
+ date: DateType;
42
+ };
43
+ export type InspectionToolRequestPayload = {
44
+ date: DateType;
45
+ gpsAltitude: string;
46
+ gpsCoordinates: string;
47
+ };
@@ -0,0 +1,355 @@
1
+ import { CameraExid, CountryCode, CountryId, DateTime, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@/types";
2
+ export type Kit = {
3
+ alarms: KitAlarm[];
4
+ countryCode: CountryCode;
5
+ countryId: CountryId;
6
+ countryName: string;
7
+ countryRegion: KitRegion;
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
+ tags: Tag[];
20
+ storages: KitStorage[];
21
+ createdAt: string;
22
+ };
23
+ export declare enum KitStatus {
24
+ New = "new",
25
+ Active = "active",
26
+ Deployed = "deployed",
27
+ Decommissioned = "decommissioned"
28
+ }
29
+ export declare enum KitRegion {
30
+ APAC = "apac",
31
+ EMEA = "emea",
32
+ LATAM = "latam",
33
+ US = "na"
34
+ }
35
+ export declare enum KitAlarm {
36
+ NvrOffline = "nvr_offline",
37
+ OfflineScheduled = "offline_scheduled",
38
+ UnknownCamera = "unknown_camera",
39
+ NotRecordingCamera = "not_recording_camera",
40
+ FullSD = "full_sd",
41
+ FullStorage = "full_storage",
42
+ HddUnmounted = "hdd_unmounted",
43
+ NoHdd = "no_hdd",
44
+ MissingRouterInfo = "missing_router_info",
45
+ AcFailure = "ac_failure",
46
+ LowBattery = "low_battery"
47
+ }
48
+ export declare enum KitMetricId {
49
+ SolarCharger = "solar_charger",
50
+ PanelPower = "panel_power"
51
+ }
52
+ export declare enum KitMetricPeriod {
53
+ Last15Minutes = "now-15m",
54
+ Last1Hour = "now-1h",
55
+ Last24Hours = "now-24h",
56
+ Last7Days = "now-7d",
57
+ Last30Days = "now-30d",
58
+ Last90Days = "now-90d"
59
+ }
60
+ export declare enum GrafanaMetricId {
61
+ SbcCpuLoad = "SbcCpuLoad",
62
+ SbcSystemLoad5MnAvg = "SbcSystemLoad5MnAvg",
63
+ SbcSystemLoad15MnAvg = "SbcSystemLoad15MnAvg",
64
+ SbcRamUsed = "SbcRamUsed",
65
+ SbcSwapUsed = "SbcSwapUsed",
66
+ SbcRootFsUsed = "SbcRootFsUsed",
67
+ SbcCpuCoresTotal = "SbcCpuCoresTotal",
68
+ SbcRamTotal = "SbcRamTotal",
69
+ SbcSwapTotal = "SbcSwapTotal",
70
+ SbcRootFsTotal = "SbcRootFsTotal",
71
+ SbcUptime = "SbcUptime",
72
+ SbcCpuStats = "SbcCpuStats",
73
+ SbcRamStats = "SbcRamStats",
74
+ SbcNetworkStats = "SbcNetworkStats",
75
+ SbcTimeSyncStats = "SbcTimeSyncStats",
76
+ SbcTemperatureStats = "SbcTemperatureStats",
77
+ SbcTimeSyncDriftStats = "SbcTimeSyncDriftStats",
78
+ CameraInfo = "CameraInfo",
79
+ CameraRecordingStateTimeline = "CameraRecordingStateTimeline",
80
+ CameraStreamInfo = "CameraStreamInfo",
81
+ LocalStorage = "LocalStorage",
82
+ StorageSpaceUsed = "StorageSpaceUsed",
83
+ RouterTemperature = "RouterTemperature",
84
+ RouterCpuLoad = "RouterCpuLoad",
85
+ RouterRamUsed = "RouterRamUsed",
86
+ RouterSystemLoad5MnAvg = "RouterSystemLoad5MnAvg",
87
+ RouterSwapTotal = "RouterSwapTotal",
88
+ RouterRamTotal = "RouterRamTotal",
89
+ RouterUptime = "RouterUptime",
90
+ RouterCpuCoresTotal = "RouterCpuCoresTotal",
91
+ RouterSignalReliability = "RouterSignalReliability",
92
+ RouterSINR = "RouterSINR",
93
+ RouterRSRP = "RouterRSRP",
94
+ RouterRSRQ = "RouterRSRQ",
95
+ RouterRSSI = "RouterRSSI",
96
+ RouterSignalStrengthStats = "RouterSignalStrengthStats",
97
+ RouterSignalQualityStats = "RouterSignalQualityStats",
98
+ RouterDataConsumptionStats = "RouterDataConsumptionStats",
99
+ BatteryVoltageAndCurrentStats = "BatteryVoltageAndCurrentStats",
100
+ PanelVoltageAndPowerStats = "PanelVoltageAndPowerStats",
101
+ ExNvrStatus = "ExNvrStatus",
102
+ ExNvrVersion = "ExNvrVersion",
103
+ ExNvrMemoryUsage = "ExNvrMemoryUsage",
104
+ ExNvrLogs = "ExNvrLogs"
105
+ }
106
+ export declare enum KitChartType {
107
+ Stat = "stat",
108
+ Gauge = "gauge",
109
+ Graph = "graph",
110
+ Table = "table",
111
+ StateTimeline = "state-timeline",
112
+ Logs = "logs",
113
+ TimeSeries = "timeseries",
114
+ BarChart = "barchart"
115
+ }
116
+ export type GrafanaDataSource = {
117
+ type: string;
118
+ uid: string;
119
+ };
120
+ export type GrafanaTarget = {
121
+ expr: string;
122
+ refId: string;
123
+ datasourceId?: string;
124
+ intervalMs?: number;
125
+ maxDataPoints?: number;
126
+ };
127
+ export type GrafanaPanel = {
128
+ [key: string]: unknown;
129
+ id: GrafanaMetricId;
130
+ name: keyof GrafanaMetricId;
131
+ title: string;
132
+ description: string;
133
+ type: KitChartType;
134
+ datasource: GrafanaDataSource;
135
+ targets: GrafanaTarget[];
136
+ maxDataPoints?: number;
137
+ interval?: string;
138
+ timeFrom?: string;
139
+ timeShift?: string;
140
+ options?: {
141
+ maxDataPoints?: number;
142
+ interval?: string;
143
+ };
144
+ };
145
+ export type GrafanaDashboard = {
146
+ [key: string]: unknown;
147
+ panels: GrafanaPanel[];
148
+ time?: {
149
+ from: string;
150
+ to: string;
151
+ };
152
+ timepicker?: {
153
+ refresh_intervals: string[];
154
+ time_options: string[];
155
+ };
156
+ };
157
+ export type GrafanaQueryOptions = {
158
+ metricId: GrafanaMetricId;
159
+ host: string;
160
+ job?: string;
161
+ from?: string;
162
+ to?: string;
163
+ variables?: Record<string, string>;
164
+ };
165
+ export type GrafanaTimeSeriesValue = number | string | null;
166
+ export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
167
+ export type GrafanaFieldConfig = {
168
+ displayNameFromDS?: string;
169
+ links?: string[];
170
+ color?: string;
171
+ custom?: {
172
+ lineInterpolation?: string;
173
+ fillOpacity?: number;
174
+ gradientMode?: string;
175
+ lineWidth?: number;
176
+ spanNulls?: boolean;
177
+ resultType?: string;
178
+ };
179
+ thresholds?: {
180
+ mode: string;
181
+ steps: Array<{
182
+ color: string;
183
+ value: number | null;
184
+ }>;
185
+ };
186
+ unit?: string;
187
+ decimals?: number;
188
+ interval?: number;
189
+ };
190
+ export type GrafanaField = {
191
+ name: string;
192
+ type: string;
193
+ typeInfo: {
194
+ frame: string;
195
+ nullable?: boolean;
196
+ };
197
+ config: GrafanaFieldConfig;
198
+ labels?: {
199
+ [key: string]: string;
200
+ };
201
+ values?: GrafanaTimeSeriesValues;
202
+ };
203
+ export type GrafanaSchemaMeta = {
204
+ type?: string;
205
+ typeVersion?: number[];
206
+ custom?: {
207
+ resultType?: string;
208
+ frameType?: string;
209
+ };
210
+ stats?: Array<{
211
+ displayName: string;
212
+ value: number;
213
+ unit?: string;
214
+ }>;
215
+ executedQueryString?: string;
216
+ };
217
+ export type GrafanaSchema = {
218
+ name?: string;
219
+ refId: string;
220
+ meta: GrafanaSchemaMeta;
221
+ fields: GrafanaField[];
222
+ };
223
+ export type GrafanaFrame = {
224
+ schema: GrafanaSchema;
225
+ data: {
226
+ values: GrafanaTimeSeriesValues;
227
+ nanos?: Array<number[] | null>;
228
+ };
229
+ };
230
+ export type KitMetricData = {
231
+ type: KitChartType;
232
+ chartProps?: Record<string, unknown>;
233
+ };
234
+ export type GrafanaQueryResult = {
235
+ status: number;
236
+ frames: GrafanaFrame[];
237
+ };
238
+ export type GrafanaMetricData = KitMetricData & {
239
+ results: {
240
+ [key: string]: GrafanaQueryResult;
241
+ };
242
+ };
243
+ export type EvercamMetricData = KitMetricData & {
244
+ stats: EvercamStats[];
245
+ };
246
+ export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricData>;
247
+ export type EvercamStats = {
248
+ [k: string]: number | string;
249
+ timestamp: string;
250
+ };
251
+ export type KitQueryParams = PaginationParams & {
252
+ name: string;
253
+ serial: string;
254
+ status: KitStatus;
255
+ tagId: number | number[];
256
+ };
257
+ export type AdminKit = {
258
+ id: number;
259
+ name: string;
260
+ serial: string;
261
+ status: string;
262
+ powerType: PowerType;
263
+ location: string;
264
+ countryId: number;
265
+ countryName: string;
266
+ countryRegion: string;
267
+ nvr: Nvr;
268
+ router: {
269
+ id: number;
270
+ serialNumber: number;
271
+ vpnUserId: string;
272
+ vpnPassword: string;
273
+ routerType: string;
274
+ routerUserId: string;
275
+ routerPassword: string;
276
+ routerHttpPort: number;
277
+ powerType: PowerType;
278
+ powerSchedule: Schedule;
279
+ vpnServer: string;
280
+ netbirdUrl: string;
281
+ sims: {
282
+ id: number;
283
+ number: string;
284
+ }[];
285
+ };
286
+ project: {
287
+ id: number;
288
+ exid: string;
289
+ name: string;
290
+ timezone: string;
291
+ status: string;
292
+ zohoId: string;
293
+ insertedAt: DateType;
294
+ };
295
+ };
296
+ export type KitCreatePayload = {
297
+ projectId?: number;
298
+ countryCode?: string;
299
+ name: string;
300
+ status: KitStatus;
301
+ powerType: PowerType;
302
+ config: {
303
+ region: KitRegion;
304
+ };
305
+ };
306
+ export type KitUpdatePayload = {
307
+ countryId: number;
308
+ name: string;
309
+ kitSerial: string;
310
+ kitStatus: KitStatus;
311
+ type: string;
312
+ };
313
+ export declare enum KitStorageTransport {
314
+ Sata = "sata",
315
+ Nvme = "nvme",
316
+ Usb = "usb"
317
+ }
318
+ export type KitStorageRequestPayload = {
319
+ kitId: number;
320
+ };
321
+ export type KitStorage = {
322
+ id: number;
323
+ serial: string;
324
+ status: string;
325
+ type: string;
326
+ metadata: {
327
+ formFactor: string;
328
+ };
329
+ model: string;
330
+ insertedAt: DateTime;
331
+ updatedAt: DateTime;
332
+ vendor: string;
333
+ kitId: number;
334
+ capacity: number;
335
+ freeSpace: number;
336
+ tran: KitStorageTransport;
337
+ };
338
+ export type KitFootageRequestPayload = {
339
+ cameraId: CameraExid;
340
+ storageId: number;
341
+ };
342
+ export type KitFootage = {
343
+ id: number;
344
+ startDate: string;
345
+ endDate: string;
346
+ cameraId: number;
347
+ storageId: number;
348
+ };
349
+ export type KitAlarmItem = {
350
+ id: number;
351
+ kitId: number;
352
+ alarm: KitAlarm;
353
+ startDate: DateTime;
354
+ endDate: DateTime | null;
355
+ };
@@ -0,0 +1,4 @@
1
+ export declare enum MapType {
2
+ Hybrid = "hybrid",
3
+ Terrain = "terrain"
4
+ }
@@ -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,32 @@
1
+ export declare enum EDistortImageModes {
2
+ FreeRotate = "freeRotate",
3
+ Lock = "lock"
4
+ }
5
+ export declare enum EMapTypes {
6
+ Blank = "Blank",
7
+ Satellite = "Satellite",
8
+ Street = "Street",
9
+ GoogleSatellite = "hybrid",
10
+ GoogleStreet = "roadmap",
11
+ GoogleTerrain = "terrain"
12
+ }
13
+ export declare enum EMarkers {
14
+ CameraMarker = "cameraMarker",
15
+ ThreeSixtyMarker = "threeSixtyMarkers"
16
+ }
17
+ export declare enum EPageType {
18
+ List = "list",
19
+ Item = "item"
20
+ }
21
+ export declare enum EPaths {
22
+ Home = "/",
23
+ Session = "/session"
24
+ }
25
+ export declare enum EProjectItems {
26
+ Camera = "camera",
27
+ Overlay = "overlay"
28
+ }
29
+ export declare enum ERoles {
30
+ Admin = "admin",
31
+ User = "user"
32
+ }
@@ -0,0 +1,18 @@
1
+ export type ActiveUsersRequestPayload = {
2
+ from?: string;
3
+ to?: string;
4
+ companyExid?: string;
5
+ projectExid?: string;
6
+ cameraExid?: string;
7
+ };
8
+ export type ActiveUsersResponsePayload = Array<{
9
+ date?: string;
10
+ dau?: number;
11
+ wau?: number;
12
+ mau?: number;
13
+ }>;
14
+ export declare enum ActiveUsersMetric {
15
+ DAU = "dau",
16
+ WAU = "wau",
17
+ MAU = "mau"
18
+ }