@evercam/api 1.0.0-003291add

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 (104) hide show
  1. package/README.md +6 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +183 -0
  3. package/dist/api/api/adminApi.d.ts +377 -0
  4. package/dist/api/api/aiApi.d.ts +128 -0
  5. package/dist/api/api/authzApi.d.ts +37 -0
  6. package/dist/api/api/client/axios.d.ts +14 -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 +337 -0
  13. package/dist/api/api/evercamLabsApi.d.ts +45 -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 +148 -0
  17. package/dist/api/api/ptzApi.d.ts +45 -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 +281 -0
  23. package/dist/api/types/aconex.d.ts +143 -0
  24. package/dist/api/types/admin.d.ts +51 -0
  25. package/dist/api/types/analytics.d.ts +597 -0
  26. package/dist/api/types/anpr.d.ts +114 -0
  27. package/dist/api/types/auditLogs.d.ts +99 -0
  28. package/dist/api/types/authz.d.ts +61 -0
  29. package/dist/api/types/autodesk.d.ts +29 -0
  30. package/dist/api/types/automation.d.ts +95 -0
  31. package/dist/api/types/axios.d.ts +71 -0
  32. package/dist/api/types/bim.d.ts +153 -0
  33. package/dist/api/types/camera.d.ts +535 -0
  34. package/dist/api/types/comments.d.ts +55 -0
  35. package/dist/api/types/company.d.ts +115 -0
  36. package/dist/api/types/compare.d.ts +72 -0
  37. package/dist/api/types/connector.d.ts +19 -0
  38. package/dist/api/types/coolify.d.ts +36 -0
  39. package/dist/api/types/copilot.d.ts +162 -0
  40. package/dist/api/types/countries.d.ts +500 -0
  41. package/dist/api/types/credentials.d.ts +6 -0
  42. package/dist/api/types/detections.d.ts +124 -0
  43. package/dist/api/types/drone.d.ts +106 -0
  44. package/dist/api/types/errors.d.ts +49 -0
  45. package/dist/api/types/gateReport.d.ts +332 -0
  46. package/dist/api/types/hdd.d.ts +88 -0
  47. package/dist/api/types/index.d.ts +65 -0
  48. package/dist/api/types/ingest.d.ts +147 -0
  49. package/dist/api/types/kit.d.ts +383 -0
  50. package/dist/api/types/map.d.ts +16 -0
  51. package/dist/api/types/media.d.ts +115 -0
  52. package/dist/api/types/notification.d.ts +57 -0
  53. package/dist/api/types/nvr.d.ts +36 -0
  54. package/dist/api/types/oauth.d.ts +62 -0
  55. package/dist/api/types/planner.d.ts +133 -0
  56. package/dist/api/types/posthog.d.ts +33 -0
  57. package/dist/api/types/procore.d.ts +229 -0
  58. package/dist/api/types/progressPhoto.d.ts +78 -0
  59. package/dist/api/types/project.d.ts +247 -0
  60. package/dist/api/types/recording.d.ts +125 -0
  61. package/dist/api/types/recycleBin.d.ts +14 -0
  62. package/dist/api/types/ring.d.ts +53 -0
  63. package/dist/api/types/roi.d.ts +27 -0
  64. package/dist/api/types/routeParams.d.ts +52 -0
  65. package/dist/api/types/router.d.ts +86 -0
  66. package/dist/api/types/shared.d.ts +219 -0
  67. package/dist/api/types/shares.d.ts +58 -0
  68. package/dist/api/types/sim.d.ts +114 -0
  69. package/dist/api/types/siteAnalytics.d.ts +287 -0
  70. package/dist/api/types/siteView.d.ts +74 -0
  71. package/dist/api/types/smartSeach.d.ts +5 -0
  72. package/dist/api/types/snapshots.d.ts +91 -0
  73. package/dist/api/types/sso.d.ts +55 -0
  74. package/dist/api/types/storageProvider.d.ts +19 -0
  75. package/dist/api/types/storyblok.d.ts +40 -0
  76. package/dist/api/types/streaming.d.ts +97 -0
  77. package/dist/api/types/systemCheck.d.ts +11 -0
  78. package/dist/api/types/tag.d.ts +12 -0
  79. package/dist/api/types/time.d.ts +7 -0
  80. package/dist/api/types/timelapse.d.ts +106 -0
  81. package/dist/api/types/user.d.ts +345 -0
  82. package/dist/api/types/vendorModel.d.ts +15 -0
  83. package/dist/api/types/videoWall.d.ts +66 -0
  84. package/dist/api/types/voyageControl.d.ts +6 -0
  85. package/dist/api/types/weather.d.ts +153 -0
  86. package/dist/api/types/widget.d.ts +252 -0
  87. package/dist/api/types/xweather.d.ts +12 -0
  88. package/dist/api/utils.d.ts +10 -0
  89. package/dist/index.d.ts +2 -0
  90. package/dist/index.js +3707 -0
  91. package/dist/index.js.map +1 -0
  92. package/dist/index.umd.cjs +2 -0
  93. package/dist/index.umd.cjs.map +1 -0
  94. package/dist/shared/api/index.d.ts +3 -0
  95. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  96. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  97. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  98. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  99. package/dist/shared/types/components.d.ts +301 -0
  100. package/dist/shared/types/imagePlayer.d.ts +34 -0
  101. package/dist/shared/types/index.d.ts +5 -0
  102. package/dist/shared/types/rbac.d.ts +67 -0
  103. package/dist/shared/types/timeline.d.ts +10 -0
  104. package/package.json +50 -0
@@ -0,0 +1,147 @@
1
+ import { PaginationParams, DateType, JsonValue } from "@evercam/api/types";
2
+ import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
3
+ export declare enum IngestProcessingStatus {
4
+ Completed = "completed",
5
+ Uploading = "uploading",
6
+ Created = "created",
7
+ Failed = "failed",
8
+ Aborted = "aborted",
9
+ Paused = "paused",
10
+ InProgress = "inprogress",
11
+ Pending = "pending"
12
+ }
13
+ export declare enum MobileAssetsType {
14
+ Audio = "mobile_audios",
15
+ Photo = "mobile_photos"
16
+ }
17
+ export declare enum IngestVersions {
18
+ V1 = "v1",
19
+ V2 = "v2",
20
+ V3 = "v3",
21
+ V4 = "v4",
22
+ V5 = "v5"
23
+ }
24
+ export declare enum IngestTypes {
25
+ Drone = "drone",
26
+ ThreeSixty = "360"
27
+ }
28
+ export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
29
+ projectId: string;
30
+ consumed: string;
31
+ token: string;
32
+ processingStatus: IngestProcessingStatus;
33
+ };
34
+ export type IngestPaginatedResponse<T> = {
35
+ items: T[];
36
+ page: number;
37
+ limit: number;
38
+ total: number;
39
+ pageCount?: number;
40
+ };
41
+ export type DroneUploadItem = {
42
+ id: number;
43
+ projectId: string;
44
+ consumed: boolean;
45
+ token: string;
46
+ flightDate: string;
47
+ flightGeolocation: string;
48
+ modelZip: string;
49
+ orthomosaicZip: string;
50
+ reportPdf: string;
51
+ uploadedBy: string;
52
+ processingStatus: IngestProcessingStatus | string;
53
+ modelCesiumAssetId: string;
54
+ updatedAt: string;
55
+ hasTusLinks: boolean;
56
+ };
57
+ export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
58
+ export type DroneQueueResponse = {
59
+ size: number;
60
+ assetsDrone: DroneUploadItem[];
61
+ };
62
+ export type DroneUploadUpdateRequestPayload = {
63
+ flightMetadata: {
64
+ dateTime: string;
65
+ gpsAltitude: string;
66
+ gpsCoordinates: string;
67
+ };
68
+ upload: {
69
+ url: string;
70
+ title: string;
71
+ fileExtension: string;
72
+ }[];
73
+ aerialShots: {
74
+ url: string;
75
+ title: string;
76
+ fileExtension: string;
77
+ gpsLatitude: string;
78
+ gpsLongitude: string;
79
+ gpsAltitude: string;
80
+ }[];
81
+ projectName: string;
82
+ };
83
+ export type CalculateMeasuringOperationRequestPayload = {
84
+ date: DateType;
85
+ points: [number, number][];
86
+ operation: string;
87
+ };
88
+ export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
89
+ date: DateType;
90
+ };
91
+ export type InspectionToolRequestPayload = {
92
+ date: DateType;
93
+ gpsAltitude: string;
94
+ gpsCoordinates: string;
95
+ };
96
+ export type _360AssetsResponse = IngestPaginatedResponse<_360WalkV2>;
97
+ export type _360AssetsCountsDay = {
98
+ day: number;
99
+ walks?: number;
100
+ mobilePhotos?: number;
101
+ [key: string]: JsonValue | undefined;
102
+ };
103
+ export type _360AssetsCountsResponse = {
104
+ days: _360AssetsCountsDay[];
105
+ };
106
+ export type _360QueueResponse = {
107
+ size: number;
108
+ assets360: _360WalkV2[];
109
+ };
110
+ export type _360FloorsResponse = IngestPaginatedResponse<_360FloorV2>;
111
+ export type BimUploadItem = {
112
+ id: number;
113
+ projectId: string;
114
+ uploadedBy: string;
115
+ files: string[];
116
+ updatedAt: string;
117
+ archive?: string | null;
118
+ };
119
+ export type BimUploadsResponse = IngestPaginatedResponse<BimUploadItem>;
120
+ export type IngestUploadInitResponse = {
121
+ id: number;
122
+ projectId: string;
123
+ token?: string;
124
+ projectName?: string;
125
+ };
126
+ export type MobileAssetsQueryParams = Partial<Omit<PaginationParams, "sort">> & {
127
+ projectId?: string;
128
+ project_id?: string;
129
+ assetType?: MobileAssetsType | string;
130
+ date?: DateType;
131
+ isPaginated?: boolean;
132
+ };
133
+ export type MobileCaptureAssetsResponse = IngestPaginatedResponse<{
134
+ id: string;
135
+ projectId?: string;
136
+ uploadedBy: string;
137
+ updatedAt: string;
138
+ assetType: string;
139
+ thumbnailUrl: string;
140
+ }> | Array<{
141
+ id: string;
142
+ projectId?: string;
143
+ uploadedBy: string;
144
+ updatedAt: string;
145
+ assetType: string;
146
+ thumbnailUrl: string;
147
+ }>;
@@ -0,0 +1,383 @@
1
+ import { CameraExid, CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/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
+ ups: boolean;
20
+ boxId: string;
21
+ tags: Tag[];
22
+ storages: KitStorage[];
23
+ createdAt: string;
24
+ };
25
+ export declare enum KitStatus {
26
+ New = "new",
27
+ Active = "active",
28
+ Deployed = "deployed",
29
+ Decommissioned = "decommissioned"
30
+ }
31
+ export declare enum KitRegion {
32
+ APAC = "apac",
33
+ EMEA = "emea",
34
+ LATAM = "latam",
35
+ US = "na"
36
+ }
37
+ export declare enum KitAlarm {
38
+ NvrOffline = "nvr_offline",
39
+ OfflineScheduled = "offline_scheduled",
40
+ UnknownCamera = "unknown_camera",
41
+ NotRecordingCamera = "not_recording_camera",
42
+ FullSD = "full_sd",
43
+ FullStorage = "full_storage",
44
+ HddUnmounted = "hdd_unmounted",
45
+ NoHdd = "no_hdd",
46
+ MissingRouterInfo = "missing_router_info",
47
+ AcFailure = "ac_failure",
48
+ LowBattery = "low_battery"
49
+ }
50
+ export declare enum KitMetricId {
51
+ SolarCharger = "solar_charger",
52
+ PanelPower = "panel_power"
53
+ }
54
+ export declare enum KitMetricPeriod {
55
+ Last15Minutes = "now-15m",
56
+ Last1Hour = "now-1h",
57
+ Last24Hours = "now-24h",
58
+ Last7Days = "now-7d",
59
+ Last30Days = "now-30d",
60
+ Last90Days = "now-90d"
61
+ }
62
+ export declare enum GrafanaMetricId {
63
+ SbcCpuLoad = "SbcCpuLoad",
64
+ SbcSystemLoad5MnAvg = "SbcSystemLoad5MnAvg",
65
+ SbcSystemLoad15MnAvg = "SbcSystemLoad15MnAvg",
66
+ SbcRamUsed = "SbcRamUsed",
67
+ SbcSwapUsed = "SbcSwapUsed",
68
+ SbcRootFsUsed = "SbcRootFsUsed",
69
+ SbcCpuCoresTotal = "SbcCpuCoresTotal",
70
+ SbcRamTotal = "SbcRamTotal",
71
+ SbcSwapTotal = "SbcSwapTotal",
72
+ SbcRootFsTotal = "SbcRootFsTotal",
73
+ SbcUptime = "SbcUptime",
74
+ SbcCpuStats = "SbcCpuStats",
75
+ SbcRamStats = "SbcRamStats",
76
+ SbcNetworkStats = "SbcNetworkStats",
77
+ SbcTimeSyncStats = "SbcTimeSyncStats",
78
+ SbcTemperatureStats = "SbcTemperatureStats",
79
+ SbcTimeSyncDriftStats = "SbcTimeSyncDriftStats",
80
+ CameraInfo = "CameraInfo",
81
+ CameraRecordingStateTimeline = "CameraRecordingStateTimeline",
82
+ CameraStreamInfo = "CameraStreamInfo",
83
+ LocalStorage = "LocalStorage",
84
+ StorageSpaceUsed = "StorageSpaceUsed",
85
+ RouterTemperature = "RouterTemperature",
86
+ RouterCpuLoad = "RouterCpuLoad",
87
+ RouterRamUsed = "RouterRamUsed",
88
+ RouterSystemLoad5MnAvg = "RouterSystemLoad5MnAvg",
89
+ RouterSwapTotal = "RouterSwapTotal",
90
+ RouterRamTotal = "RouterRamTotal",
91
+ RouterUptime = "RouterUptime",
92
+ RouterCpuCoresTotal = "RouterCpuCoresTotal",
93
+ RouterSignalReliability = "RouterSignalReliability",
94
+ RouterSINR = "RouterSINR",
95
+ RouterRSRP = "RouterRSRP",
96
+ RouterRSRQ = "RouterRSRQ",
97
+ RouterRSSI = "RouterRSSI",
98
+ RouterSignalStrengthStats = "RouterSignalStrengthStats",
99
+ RouterSignalQualityStats = "RouterSignalQualityStats",
100
+ RouterDataConsumptionStats = "RouterDataConsumptionStats",
101
+ BatteryVoltageAndCurrentStats = "BatteryVoltageAndCurrentStats",
102
+ PanelVoltageAndPowerStats = "PanelVoltageAndPowerStats",
103
+ ExNvrStatus = "ExNvrStatus",
104
+ ExNvrVersion = "ExNvrVersion",
105
+ ExNvrMemoryUsage = "ExNvrMemoryUsage",
106
+ ExNvrLogs = "ExNvrLogs"
107
+ }
108
+ export declare enum KitChartType {
109
+ Stat = "stat",
110
+ Gauge = "gauge",
111
+ Graph = "graph",
112
+ Table = "table",
113
+ StateTimeline = "state-timeline",
114
+ Logs = "logs",
115
+ TimeSeries = "timeseries",
116
+ BarChart = "barchart"
117
+ }
118
+ export type GrafanaDataSource = {
119
+ type: string;
120
+ uid: string;
121
+ };
122
+ export type GrafanaTarget = {
123
+ expr: string;
124
+ refId: string;
125
+ datasourceId?: string;
126
+ intervalMs?: number;
127
+ maxDataPoints?: number;
128
+ };
129
+ export type GrafanaPanel = {
130
+ [key: string]: unknown;
131
+ id: GrafanaMetricId;
132
+ name: keyof GrafanaMetricId;
133
+ title: string;
134
+ description: string;
135
+ type: KitChartType;
136
+ datasource: GrafanaDataSource;
137
+ targets: GrafanaTarget[];
138
+ maxDataPoints?: number;
139
+ interval?: string;
140
+ timeFrom?: string;
141
+ timeShift?: string;
142
+ options?: {
143
+ maxDataPoints?: number;
144
+ interval?: string;
145
+ };
146
+ };
147
+ export type GrafanaDashboard = {
148
+ [key: string]: unknown;
149
+ panels: GrafanaPanel[];
150
+ time?: {
151
+ from: string;
152
+ to: string;
153
+ };
154
+ timepicker?: {
155
+ refresh_intervals: string[];
156
+ time_options: string[];
157
+ };
158
+ };
159
+ export type GrafanaQueryOptions = {
160
+ metricId: GrafanaMetricId;
161
+ host: string;
162
+ job?: string;
163
+ from?: string;
164
+ to?: string;
165
+ variables?: Record<string, string>;
166
+ };
167
+ export type GrafanaTimeSeriesValue = number | string | null;
168
+ export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
169
+ export type GrafanaFieldConfig = {
170
+ displayNameFromDS?: string;
171
+ links?: string[];
172
+ color?: string;
173
+ custom?: {
174
+ lineInterpolation?: string;
175
+ fillOpacity?: number;
176
+ gradientMode?: string;
177
+ lineWidth?: number;
178
+ spanNulls?: boolean;
179
+ resultType?: string;
180
+ };
181
+ thresholds?: {
182
+ mode: string;
183
+ steps: Array<{
184
+ color: string;
185
+ value: number | null;
186
+ }>;
187
+ };
188
+ unit?: string;
189
+ decimals?: number;
190
+ interval?: number;
191
+ };
192
+ export type GrafanaField = {
193
+ name: string;
194
+ type: string;
195
+ typeInfo: {
196
+ frame: string;
197
+ nullable?: boolean;
198
+ };
199
+ config: GrafanaFieldConfig;
200
+ labels?: {
201
+ [key: string]: string;
202
+ };
203
+ values?: GrafanaTimeSeriesValues;
204
+ };
205
+ export type GrafanaSchemaMeta = {
206
+ type?: string;
207
+ typeVersion?: number[];
208
+ custom?: {
209
+ resultType?: string;
210
+ frameType?: string;
211
+ };
212
+ stats?: Array<{
213
+ displayName: string;
214
+ value: number;
215
+ unit?: string;
216
+ }>;
217
+ executedQueryString?: string;
218
+ };
219
+ export type GrafanaSchema = {
220
+ name?: string;
221
+ refId: string;
222
+ meta: GrafanaSchemaMeta;
223
+ fields: GrafanaField[];
224
+ };
225
+ export type GrafanaFrame = {
226
+ schema: GrafanaSchema;
227
+ data: {
228
+ values: GrafanaTimeSeriesValues;
229
+ nanos?: Array<number[] | null>;
230
+ };
231
+ };
232
+ export type KitMetricData = {
233
+ type: KitChartType;
234
+ chartProps?: Record<string, unknown>;
235
+ };
236
+ export type GrafanaQueryResult = {
237
+ status: number;
238
+ frames: GrafanaFrame[];
239
+ };
240
+ export type GrafanaMetricData = KitMetricData & {
241
+ results: {
242
+ [key: string]: GrafanaQueryResult;
243
+ };
244
+ };
245
+ export type EvercamMetricData = KitMetricData & {
246
+ stats: EvercamStats[];
247
+ };
248
+ export type GrafanaKitMetrics = Record<keyof typeof GrafanaMetricId, GrafanaMetricData>;
249
+ export type EvercamStats = {
250
+ [k: string]: number | string;
251
+ timestamp: string;
252
+ };
253
+ export type KitQueryParams = PaginationParams & {
254
+ name: string;
255
+ serial: string;
256
+ status: KitStatus;
257
+ tagId: number | number[];
258
+ };
259
+ export type AdminKit = {
260
+ id: number;
261
+ name: string;
262
+ serial: string;
263
+ status: string;
264
+ powerType: PowerType;
265
+ location: string;
266
+ countryId: number;
267
+ countryName: string;
268
+ countryRegion: string;
269
+ nvr: Nvr;
270
+ router: {
271
+ id: number;
272
+ serialNumber: number;
273
+ vpnUserId: string;
274
+ vpnPassword: string;
275
+ routerType: string;
276
+ routerUserId: string;
277
+ routerPassword: string;
278
+ routerHttpPort: number;
279
+ powerType: PowerType;
280
+ powerSchedule: Schedule;
281
+ vpnServer: string;
282
+ netbirdUrl: string;
283
+ sims: {
284
+ id: number;
285
+ number: string;
286
+ }[];
287
+ };
288
+ project: {
289
+ id: number;
290
+ exid: string;
291
+ name: string;
292
+ timezone: string;
293
+ status: string;
294
+ zohoId: string;
295
+ insertedAt: DateType;
296
+ };
297
+ };
298
+ export type KitCreatePayload = {
299
+ projectId?: number;
300
+ countryCode?: string;
301
+ name: string;
302
+ status: KitStatus;
303
+ powerType: PowerType;
304
+ config: {
305
+ region: KitRegion;
306
+ };
307
+ };
308
+ export type KitMetricStatsEntry = {
309
+ timestamp: string;
310
+ voltage: number;
311
+ current: number;
312
+ panelVoltage: number;
313
+ panelPower: number;
314
+ };
315
+ export type KitUpdatePayload = {
316
+ countryId: number;
317
+ name: string;
318
+ kitSerial: string;
319
+ kitStatus: KitStatus;
320
+ type: string;
321
+ };
322
+ export declare enum KitStorageTransport {
323
+ Sata = "sata",
324
+ Nvme = "nvme",
325
+ Usb = "usb"
326
+ }
327
+ export type KitStorageRequestPayload = {
328
+ kitId: number;
329
+ };
330
+ export type KitStorage = {
331
+ id: number;
332
+ serial: string;
333
+ status: string;
334
+ type: string;
335
+ metadata: {
336
+ formFactor: string;
337
+ };
338
+ model: string;
339
+ insertedAt: string;
340
+ updatedAt: string;
341
+ vendor: string;
342
+ kitId: number;
343
+ capacity: number;
344
+ freeSpace: number;
345
+ tran: KitStorageTransport;
346
+ };
347
+ export type KitFootageRequestPayload = {
348
+ cameraId: CameraExid;
349
+ storageId: number;
350
+ };
351
+ export type KitFootage = {
352
+ id: number;
353
+ startDate: string;
354
+ endDate: string;
355
+ cameraId: number;
356
+ storageId: number;
357
+ };
358
+ export type KitAlarmItem = {
359
+ id: number;
360
+ kitId: number;
361
+ alarm: KitAlarm;
362
+ startDate: string;
363
+ endDate: string | null;
364
+ };
365
+ export type KitBox = {
366
+ id: string;
367
+ gatewaySerial: string;
368
+ gatewayMac: string;
369
+ gatewayConfig: Record<string, unknown> | null;
370
+ insertedAt: string;
371
+ updatedAt: string;
372
+ };
373
+ export type KitBoxCreatePayload = {
374
+ id?: string;
375
+ gatewaySerial: string;
376
+ gatewayMac: string;
377
+ gatewayConfig?: Record<string, unknown>;
378
+ };
379
+ export type KitBoxQueryParams = PaginationParams & {
380
+ id: string;
381
+ gatewaySerial: string;
382
+ gatewayMac: string;
383
+ };
@@ -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
+ };
@@ -0,0 +1,115 @@
1
+ import type { CameraExid, Exid, DateType } from "@evercam/api/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
+ camera?: string;
29
+ };
30
+ export declare enum MediaType {
31
+ EditedImage = "edit",
32
+ ExternalUrl = "url",
33
+ Clip = "clip",
34
+ File = "file",
35
+ LocalClip = "local_clip",
36
+ XRay = "x-ray",
37
+ Timelapse = "timelapse",
38
+ Compare = "compare",
39
+ MobileAsset = "mobile-asset"
40
+ }
41
+ export declare enum MediaFileType {
42
+ Gif = "gif",
43
+ Mp4 = "mp4",
44
+ Png = "png",
45
+ Pdf = "pdf",
46
+ Jpeg = "jpeg"
47
+ }
48
+ export declare enum MediaStatus {
49
+ Pending = "Pending",
50
+ Creating = "Creating",
51
+ Processing = "Processing",
52
+ Extracting = "Extracting",
53
+ Uploading = "Uploading",
54
+ Completed = "Completed",
55
+ Failed = "Failed",
56
+ NoData = "No Data"
57
+ }
58
+ export declare enum MediaStatusId {
59
+ Pending = 0,
60
+ Processing = 1,
61
+ Completed = 2,
62
+ Failed = 3
63
+ }
64
+ export type MediaFilterQueryParams = {
65
+ title?: string;
66
+ sort?: string;
67
+ sortBy?: string;
68
+ dateRange?: string | string[];
69
+ fromDate?: string;
70
+ toDate?: string;
71
+ cameraName?: string;
72
+ requesterEmail?: string;
73
+ type?: MediaType;
74
+ cameraExid?: string;
75
+ page?: number;
76
+ limit?: number;
77
+ camera?: string;
78
+ };
79
+ export type MediaUpdateRequestPayload = {
80
+ name?: string;
81
+ title?: string;
82
+ public?: boolean;
83
+ };
84
+ export type MediaCreateRequestPayload = {
85
+ fromDate: DateType;
86
+ toDate: DateType;
87
+ title: string;
88
+ type: MediaType;
89
+ fileUrl?: string;
90
+ fileExtension?: string;
91
+ url?: string;
92
+ content?: string;
93
+ cameraExid?: string;
94
+ requestedBy?: string;
95
+ notes?: string;
96
+ category?: ClipsCategory;
97
+ isUrgent?: boolean;
98
+ storeAsType?: MediaType;
99
+ };
100
+ export type MediaUsersResponsePayload = Array<{
101
+ id: number;
102
+ email: string;
103
+ name: string;
104
+ }>;
105
+ export declare enum ClipsCategory {
106
+ HealthSafetySecurity = "health_safety_security",
107
+ Legal = "legal",
108
+ Marketing = "marketing",
109
+ BestPracticies = "best_practices"
110
+ }
111
+ export type MediaDeleteRequestPayload = {
112
+ timelapseIds: (string | number)[];
113
+ compareIds: (string | number)[];
114
+ archiveIds: (string | number)[];
115
+ };
@@ -0,0 +1,57 @@
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 NotificationContextBase {
11
+ cameraExid?: string;
12
+ projectExid?: string;
13
+ }
14
+ export interface CameraShareContext extends NotificationContextBase {
15
+ cameraExid: string;
16
+ projectExid: string;
17
+ shareId: number;
18
+ }
19
+ export interface CameraStatusChangeContext extends NotificationContextBase {
20
+ cameraExid: string;
21
+ projectExid: string;
22
+ newStatus: string;
23
+ }
24
+ export interface MentionContext extends NotificationContextBase {
25
+ }
26
+ export interface TimelapseCreatedContext extends NotificationContextBase {
27
+ cameraExid: string;
28
+ projectExid: string;
29
+ archiveExid: string;
30
+ }
31
+ export interface TimelapseFailedContext extends NotificationContextBase {
32
+ cameraExid: string;
33
+ projectExid: string;
34
+ }
35
+ export interface DroneProcessingContext extends NotificationContextBase {
36
+ projectExid: string;
37
+ droneDate: string;
38
+ }
39
+ export interface Processing360Context extends NotificationContextBase {
40
+ projectExid: string;
41
+ date: string;
42
+ floor: string;
43
+ }
44
+ export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
45
+ export type Notification = {
46
+ id: number;
47
+ type: NotificationType;
48
+ insertedAt: string;
49
+ initiatorId: number;
50
+ initiatorFullname: string;
51
+ initiatorEmail: string;
52
+ targetId: number;
53
+ targetFullname: string;
54
+ targetEmail: string;
55
+ readTimestamp: string | null;
56
+ context: NotificationContext;
57
+ };