@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +56 -34
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +57 -33
- package/dist/api/types/anpr.d.ts +36 -6
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +6 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/api/types/errors.d.ts +19 -2
- package/dist/api/types/gateReport.d.ts +9 -23
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +194 -27
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- 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 +56 -10
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/snapshots.d.ts +63 -10
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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/types/components.d.ts +506 -46
- 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 +8 -1
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationParams, DateType, JsonValue } from "@evercam/api/types";
|
|
1
|
+
import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
|
|
3
3
|
export declare enum IngestProcessingStatus {
|
|
4
4
|
Completed = "completed",
|
|
@@ -8,7 +8,8 @@ export declare enum IngestProcessingStatus {
|
|
|
8
8
|
Aborted = "aborted",
|
|
9
9
|
Paused = "paused",
|
|
10
10
|
InProgress = "inprogress",
|
|
11
|
-
Pending = "pending"
|
|
11
|
+
Pending = "pending",
|
|
12
|
+
Downloading = "downloading"
|
|
12
13
|
}
|
|
13
14
|
export declare enum MobileAssetsType {
|
|
14
15
|
Audio = "mobile_audios",
|
|
@@ -27,8 +28,6 @@ export declare enum IngestTypes {
|
|
|
27
28
|
}
|
|
28
29
|
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
29
30
|
projectId: string;
|
|
30
|
-
consumed: string;
|
|
31
|
-
token: string;
|
|
32
31
|
processingStatus: IngestProcessingStatus;
|
|
33
32
|
};
|
|
34
33
|
export type IngestPaginatedResponse<T> = {
|
|
@@ -38,56 +37,224 @@ export type IngestPaginatedResponse<T> = {
|
|
|
38
37
|
total: number;
|
|
39
38
|
pageCount?: number;
|
|
40
39
|
};
|
|
40
|
+
export declare enum IngestProcessingStepStatus {
|
|
41
|
+
Running = "running",
|
|
42
|
+
Completed = "completed",
|
|
43
|
+
Failed = "failed",
|
|
44
|
+
Skipped = "skipped"
|
|
45
|
+
}
|
|
46
|
+
export declare enum IngestProcessingRunStatus {
|
|
47
|
+
Processing = "processing",
|
|
48
|
+
Completed = "completed",
|
|
49
|
+
Failed = "failed"
|
|
50
|
+
}
|
|
51
|
+
export type IngestProcessingMetricStat = {
|
|
52
|
+
avg?: number;
|
|
53
|
+
peak?: number;
|
|
54
|
+
};
|
|
55
|
+
export type IngestProcessingStepMetrics = {
|
|
56
|
+
cpu?: IngestProcessingMetricStat;
|
|
57
|
+
ram?: IngestProcessingMetricStat;
|
|
58
|
+
gpuUtil?: IngestProcessingMetricStat;
|
|
59
|
+
gpuMemDevice?: IngestProcessingMetricStat;
|
|
60
|
+
gpuMemStep?: IngestProcessingMetricStat;
|
|
61
|
+
ramTotalMb?: number;
|
|
62
|
+
diskTotalMb?: number;
|
|
63
|
+
};
|
|
64
|
+
export type IngestProcessingStepDetail = {
|
|
65
|
+
input?: Record<string, JsonValue>;
|
|
66
|
+
params?: Record<string, JsonValue>;
|
|
67
|
+
output?: Record<string, JsonValue>;
|
|
68
|
+
metrics?: IngestProcessingStepMetrics;
|
|
69
|
+
error?: string;
|
|
70
|
+
};
|
|
71
|
+
export type IngestProcessingStep = {
|
|
72
|
+
name: string;
|
|
73
|
+
tool?: string;
|
|
74
|
+
status: IngestProcessingStepStatus | string;
|
|
75
|
+
startedAt?: string;
|
|
76
|
+
endedAt?: string;
|
|
77
|
+
durationSec?: number;
|
|
78
|
+
durationPct?: number;
|
|
79
|
+
detail?: IngestProcessingStepDetail;
|
|
80
|
+
};
|
|
81
|
+
export type IngestProcessingDiskUsage = {
|
|
82
|
+
sourceMb?: number;
|
|
83
|
+
framesMb?: number;
|
|
84
|
+
resultMb?: number;
|
|
85
|
+
totalMb?: number;
|
|
86
|
+
};
|
|
87
|
+
export type IngestProcessingPeakUsage = {
|
|
88
|
+
cpu?: number;
|
|
89
|
+
ram?: number;
|
|
90
|
+
gpuUtil?: number;
|
|
91
|
+
gpuMemDevice?: number;
|
|
92
|
+
gpuMemStep?: number;
|
|
93
|
+
};
|
|
94
|
+
export type IngestProcessingFootprint = {
|
|
95
|
+
disk?: IngestProcessingDiskUsage;
|
|
96
|
+
peak?: IngestProcessingPeakUsage;
|
|
97
|
+
};
|
|
98
|
+
export type IngestProcessingProgress = {
|
|
99
|
+
available: boolean;
|
|
100
|
+
status?: IngestProcessingRunStatus | string;
|
|
101
|
+
processingStatus?: IngestProcessingStatus | string;
|
|
102
|
+
currentStep?: string | null;
|
|
103
|
+
error?: string | null;
|
|
104
|
+
startedAt?: string;
|
|
105
|
+
steps: IngestProcessingStep[];
|
|
106
|
+
footprint?: IngestProcessingFootprint;
|
|
107
|
+
};
|
|
108
|
+
export type IngestTrackedAsset = {
|
|
109
|
+
id: number;
|
|
110
|
+
projectId: string;
|
|
111
|
+
name?: string;
|
|
112
|
+
processingStatus?: IngestProcessingStatus | string;
|
|
113
|
+
};
|
|
41
114
|
export type DroneUploadItem = {
|
|
42
115
|
id: number;
|
|
43
116
|
projectId: string;
|
|
44
|
-
consumed: boolean;
|
|
45
|
-
token: string;
|
|
46
117
|
flightDate: string;
|
|
47
118
|
flightGeolocation: string;
|
|
48
119
|
modelZip: string;
|
|
49
120
|
orthomosaicZip: string;
|
|
50
121
|
reportPdf: string;
|
|
122
|
+
processingLog: string;
|
|
51
123
|
uploadedBy: string;
|
|
52
124
|
processingStatus: IngestProcessingStatus | string;
|
|
53
125
|
modelCesiumAssetId: string;
|
|
54
126
|
updatedAt: string;
|
|
55
|
-
|
|
127
|
+
canDelete: boolean;
|
|
128
|
+
canReprocess: boolean;
|
|
129
|
+
hasSteps: boolean;
|
|
130
|
+
aerialShotsCount: number;
|
|
56
131
|
};
|
|
57
132
|
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
58
133
|
export type DroneQueueResponse = {
|
|
59
134
|
size: number;
|
|
60
135
|
assetsDrone: DroneUploadItem[];
|
|
61
136
|
};
|
|
62
|
-
export type
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
137
|
+
export type DroneFlightMetadata = {
|
|
138
|
+
dateTime: string;
|
|
139
|
+
gpsAltitude: string;
|
|
140
|
+
gpsCoordinates: string;
|
|
141
|
+
};
|
|
142
|
+
export type DroneFileAllocation = {
|
|
143
|
+
filename: string;
|
|
144
|
+
contentType: string;
|
|
145
|
+
};
|
|
146
|
+
export declare enum UploadFileStatus {
|
|
147
|
+
Allocated = "allocated",
|
|
148
|
+
Acknowledged = "acknowledged"
|
|
149
|
+
}
|
|
150
|
+
export type DroneFileState = DroneFileAllocation & {
|
|
151
|
+
status: UploadFileStatus;
|
|
152
|
+
uploadUrl?: string;
|
|
153
|
+
};
|
|
154
|
+
export type DroneFileError = {
|
|
155
|
+
filename?: string;
|
|
156
|
+
id?: number;
|
|
157
|
+
code: string;
|
|
158
|
+
detail: string;
|
|
159
|
+
retryable: boolean;
|
|
160
|
+
};
|
|
161
|
+
export type DroneFileStates = {
|
|
162
|
+
files: DroneFileState[];
|
|
163
|
+
errors: DroneFileError[];
|
|
164
|
+
nextCursor?: string | null;
|
|
165
|
+
};
|
|
166
|
+
export type DroneCompletion = DroneFileStates & {
|
|
167
|
+
processingId: number;
|
|
168
|
+
processingStatus: IngestProcessingStatus;
|
|
169
|
+
};
|
|
170
|
+
export type DroneReprocessResponse = Pick<DroneCompletion, "processingId" | "processingStatus">;
|
|
171
|
+
export type AerialAllocation = DroneFileAllocation & {
|
|
172
|
+
gpsLatitude: string;
|
|
173
|
+
gpsLongitude: string;
|
|
174
|
+
gpsAltitude: string;
|
|
175
|
+
};
|
|
176
|
+
export type AerialUploadState = AerialAllocation & {
|
|
177
|
+
id: number;
|
|
178
|
+
status: UploadFileStatus;
|
|
179
|
+
processingStatus: IngestProcessingStatus;
|
|
180
|
+
uploadUrl?: string;
|
|
181
|
+
fileLink?: string;
|
|
182
|
+
thumbnailLink?: string;
|
|
183
|
+
};
|
|
184
|
+
export type AerialUploadStates = {
|
|
185
|
+
aerialShots: AerialUploadState[];
|
|
186
|
+
errors: DroneFileError[];
|
|
187
|
+
nextCursor?: string | null;
|
|
188
|
+
complete: boolean;
|
|
189
|
+
};
|
|
190
|
+
export type AerialShotState = {
|
|
191
|
+
id: number;
|
|
192
|
+
filename?: string | null;
|
|
193
|
+
status?: UploadFileStatus | null;
|
|
194
|
+
contentType?: string | null;
|
|
195
|
+
processingStatus?: AerialUploadState["processingStatus"] | null;
|
|
196
|
+
gpsLatitude: string;
|
|
197
|
+
gpsLongitude: string;
|
|
198
|
+
gpsAltitude: string;
|
|
199
|
+
fileLink?: string | null;
|
|
200
|
+
thumbnailLink?: string | null;
|
|
201
|
+
};
|
|
202
|
+
export type AerialShotPage = Omit<AerialUploadStates, "aerialShots"> & {
|
|
203
|
+
aerialShots: AerialShotState[];
|
|
204
|
+
};
|
|
205
|
+
export type DroneCreation = {
|
|
206
|
+
projectId: string;
|
|
207
|
+
flightMetadata: DroneFlightMetadata;
|
|
208
|
+
aerialShots?: AerialAllocation[];
|
|
209
|
+
};
|
|
210
|
+
export type DroneProcessingTarget = {
|
|
211
|
+
ingestUrl: string;
|
|
212
|
+
id: number;
|
|
213
|
+
};
|
|
214
|
+
export type DroneCreated = {
|
|
215
|
+
id: number;
|
|
216
|
+
projectId: string;
|
|
217
|
+
processingStatus: IngestProcessingStatus;
|
|
218
|
+
aerialShots: AerialUploadState[];
|
|
219
|
+
errors: DroneFileError[];
|
|
220
|
+
};
|
|
221
|
+
export type DroneDeletion = {
|
|
222
|
+
deleted: {
|
|
223
|
+
filename: string;
|
|
224
|
+
id?: number;
|
|
80
225
|
}[];
|
|
81
|
-
|
|
226
|
+
errors: DroneFileError[];
|
|
227
|
+
};
|
|
228
|
+
export type DroneComparisonFrames = {
|
|
229
|
+
beforeImage?: string;
|
|
230
|
+
afterImage: string;
|
|
231
|
+
beforeDate?: string;
|
|
232
|
+
afterDate: string;
|
|
233
|
+
};
|
|
234
|
+
export type DronePreviewImages = Pick<DroneComparisonFrames, "beforeImage" | "afterImage">;
|
|
235
|
+
export type DronePreview = {
|
|
236
|
+
mimeType: "image/gif" | "image/jpeg";
|
|
237
|
+
content: string;
|
|
238
|
+
width: number;
|
|
239
|
+
height: number;
|
|
82
240
|
};
|
|
83
241
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
84
242
|
date: DateType;
|
|
85
|
-
points: [
|
|
243
|
+
points: TuplePoint2D[];
|
|
86
244
|
operation: string;
|
|
87
245
|
};
|
|
88
246
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
89
247
|
date: DateType;
|
|
90
248
|
};
|
|
249
|
+
export type AerialShotItem = {
|
|
250
|
+
id: number;
|
|
251
|
+
droneUploadId: number;
|
|
252
|
+
fileLink: string;
|
|
253
|
+
thumbnailLink: string;
|
|
254
|
+
gpsLatitude: string;
|
|
255
|
+
gpsLongitude: string;
|
|
256
|
+
gpsAltitude: string;
|
|
257
|
+
};
|
|
91
258
|
export type InspectionToolRequestPayload = {
|
|
92
259
|
date: DateType;
|
|
93
260
|
gpsAltitude: string;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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
7
|
countryRegion: KitRegion;
|
|
@@ -12,6 +12,7 @@ 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;
|
|
@@ -19,8 +20,43 @@ export type Kit = {
|
|
|
19
20
|
ups: boolean;
|
|
20
21
|
boxId: string;
|
|
21
22
|
tags: Tag[];
|
|
22
|
-
storages: KitStorage[];
|
|
23
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;
|
|
24
60
|
};
|
|
25
61
|
export declare enum KitStatus {
|
|
26
62
|
New = "new",
|
|
@@ -45,11 +81,14 @@ export declare enum KitAlarm {
|
|
|
45
81
|
NoHdd = "no_hdd",
|
|
46
82
|
MissingRouterInfo = "missing_router_info",
|
|
47
83
|
AcFailure = "ac_failure",
|
|
48
|
-
LowBattery = "low_battery"
|
|
84
|
+
LowBattery = "low_battery",
|
|
85
|
+
GeneratorOff = "generator_off"
|
|
49
86
|
}
|
|
50
87
|
export declare enum KitMetricId {
|
|
51
88
|
SolarCharger = "solar_charger",
|
|
52
|
-
PanelPower = "panel_power"
|
|
89
|
+
PanelPower = "panel_power",
|
|
90
|
+
Fan = "fan",
|
|
91
|
+
FanTemperature = "fan_temperature"
|
|
53
92
|
}
|
|
54
93
|
export declare enum KitMetricPeriod {
|
|
55
94
|
Last15Minutes = "now-15m",
|
|
@@ -115,55 +154,6 @@ export declare enum KitChartType {
|
|
|
115
154
|
TimeSeries = "timeseries",
|
|
116
155
|
BarChart = "barchart"
|
|
117
156
|
}
|
|
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
157
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
168
158
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
169
159
|
export type GrafanaFieldConfig = {
|
|
@@ -237,10 +227,9 @@ export type GrafanaQueryResult = {
|
|
|
237
227
|
status: number;
|
|
238
228
|
frames: GrafanaFrame[];
|
|
239
229
|
};
|
|
230
|
+
export type GrafanaMetricResults = Record<string, GrafanaQueryResult>;
|
|
240
231
|
export type GrafanaMetricData = KitMetricData & {
|
|
241
|
-
results:
|
|
242
|
-
[key: string]: GrafanaQueryResult;
|
|
243
|
-
};
|
|
232
|
+
results: GrafanaMetricResults;
|
|
244
233
|
};
|
|
245
234
|
export type EvercamMetricData = KitMetricData & {
|
|
246
235
|
stats: EvercamStats[];
|
|
@@ -250,67 +239,49 @@ export type EvercamStats = {
|
|
|
250
239
|
[k: string]: number | string;
|
|
251
240
|
timestamp: string;
|
|
252
241
|
};
|
|
253
|
-
export type KitQueryParams = PaginationParams & {
|
|
242
|
+
export type KitQueryParams = PaginationParams & Partial<{
|
|
243
|
+
boxId: string;
|
|
254
244
|
name: string;
|
|
255
245
|
serial: string;
|
|
256
246
|
status: KitStatus;
|
|
257
247
|
tagId: number | number[];
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
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
|
-
};
|
|
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
|
+
}>;
|
|
308
268
|
export type KitMetricStatsEntry = {
|
|
309
269
|
timestamp: string;
|
|
310
270
|
voltage: number;
|
|
311
271
|
current: number;
|
|
312
272
|
panelVoltage: number;
|
|
313
273
|
panelPower: number;
|
|
274
|
+
yieldTotal: number;
|
|
275
|
+
yieldToday: number;
|
|
276
|
+
yieldYesterday: number;
|
|
277
|
+
maxPowerToday: number;
|
|
278
|
+
maxPowerYesterday: number;
|
|
279
|
+
};
|
|
280
|
+
export type KitFanStatsEntry = {
|
|
281
|
+
timestamp: string;
|
|
282
|
+
speed: number;
|
|
283
|
+
internalTemperature: number;
|
|
284
|
+
externalTemperature: number | null;
|
|
314
285
|
};
|
|
315
286
|
export type KitUpdatePayload = {
|
|
316
287
|
countryId: number;
|
|
@@ -324,9 +295,12 @@ export declare enum KitStorageTransport {
|
|
|
324
295
|
Nvme = "nvme",
|
|
325
296
|
Usb = "usb"
|
|
326
297
|
}
|
|
327
|
-
export type
|
|
298
|
+
export type KitStorageQueryParams = PaginationParams & Partial<{
|
|
328
299
|
kitId: number;
|
|
329
|
-
|
|
300
|
+
serial: string;
|
|
301
|
+
vendor: string;
|
|
302
|
+
transport: KitStorageTransport;
|
|
303
|
+
}>;
|
|
330
304
|
export type KitStorage = {
|
|
331
305
|
id: number;
|
|
332
306
|
serial: string;
|
|
@@ -344,10 +318,10 @@ export type KitStorage = {
|
|
|
344
318
|
freeSpace: number;
|
|
345
319
|
tran: KitStorageTransport;
|
|
346
320
|
};
|
|
347
|
-
export type KitFootageRequestPayload = {
|
|
348
|
-
cameraId:
|
|
321
|
+
export type KitFootageRequestPayload = Partial<{
|
|
322
|
+
cameraId: number;
|
|
349
323
|
storageId: number;
|
|
350
|
-
}
|
|
324
|
+
}>;
|
|
351
325
|
export type KitFootage = {
|
|
352
326
|
id: number;
|
|
353
327
|
startDate: string;
|
|
@@ -366,7 +340,10 @@ export type KitBox = {
|
|
|
366
340
|
id: string;
|
|
367
341
|
gatewaySerial: string;
|
|
368
342
|
gatewayMac: string;
|
|
369
|
-
gatewayConfig:
|
|
343
|
+
gatewayConfig: {
|
|
344
|
+
defaultPassword: string;
|
|
345
|
+
} | null;
|
|
346
|
+
kitSerials: string[];
|
|
370
347
|
insertedAt: string;
|
|
371
348
|
updatedAt: string;
|
|
372
349
|
};
|
|
@@ -374,10 +351,13 @@ export type KitBoxCreatePayload = {
|
|
|
374
351
|
id?: string;
|
|
375
352
|
gatewaySerial: string;
|
|
376
353
|
gatewayMac: string;
|
|
377
|
-
gatewayConfig?:
|
|
354
|
+
gatewayConfig?: {
|
|
355
|
+
defaultPassword?: string;
|
|
356
|
+
};
|
|
378
357
|
};
|
|
379
|
-
export type KitBoxQueryParams = PaginationParams & {
|
|
358
|
+
export type KitBoxQueryParams = PaginationParams & Partial<{
|
|
380
359
|
id: string;
|
|
381
360
|
gatewaySerial: string;
|
|
382
361
|
gatewayMac: string;
|
|
383
|
-
|
|
362
|
+
hasKits: boolean;
|
|
363
|
+
}>;
|
package/dist/api/types/map.d.ts
CHANGED
|
@@ -2,3 +2,15 @@ export declare enum MapType {
|
|
|
2
2
|
Hybrid = "hybrid",
|
|
3
3
|
Terrain = "terrain"
|
|
4
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
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;
|
|
@@ -26,6 +27,12 @@ export type Media = {
|
|
|
26
27
|
thumbnailUrl?: string;
|
|
27
28
|
mediaUrl?: string;
|
|
28
29
|
camera?: string;
|
|
30
|
+
notes?: string;
|
|
31
|
+
category?: MediaCategory | ClipsCategory;
|
|
32
|
+
isUrgent?: boolean;
|
|
33
|
+
bucket?: string;
|
|
34
|
+
sourceProduct?: string;
|
|
35
|
+
featureType?: string;
|
|
29
36
|
};
|
|
30
37
|
export declare enum MediaType {
|
|
31
38
|
EditedImage = "edit",
|
|
@@ -43,7 +50,8 @@ export declare enum MediaFileType {
|
|
|
43
50
|
Mp4 = "mp4",
|
|
44
51
|
Png = "png",
|
|
45
52
|
Pdf = "pdf",
|
|
46
|
-
Jpeg = "jpeg"
|
|
53
|
+
Jpeg = "jpeg",
|
|
54
|
+
Csv = "csv"
|
|
47
55
|
}
|
|
48
56
|
export declare enum MediaStatus {
|
|
49
57
|
Pending = "Pending",
|
|
@@ -76,6 +84,22 @@ export type MediaFilterQueryParams = {
|
|
|
76
84
|
limit?: number;
|
|
77
85
|
camera?: string;
|
|
78
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
|
+
}>;
|
|
79
103
|
export type MediaUpdateRequestPayload = {
|
|
80
104
|
name?: string;
|
|
81
105
|
title?: string;
|
|
@@ -93,7 +117,7 @@ export type MediaCreateRequestPayload = {
|
|
|
93
117
|
cameraExid?: string;
|
|
94
118
|
requestedBy?: string;
|
|
95
119
|
notes?: string;
|
|
96
|
-
category?: ClipsCategory;
|
|
120
|
+
category?: MediaCategory | ClipsCategory;
|
|
97
121
|
isUrgent?: boolean;
|
|
98
122
|
storeAsType?: MediaType;
|
|
99
123
|
};
|
|
@@ -108,6 +132,10 @@ export declare enum ClipsCategory {
|
|
|
108
132
|
Marketing = "marketing",
|
|
109
133
|
BestPracticies = "best_practices"
|
|
110
134
|
}
|
|
135
|
+
export declare enum MediaCategory {
|
|
136
|
+
Weather = "weather",
|
|
137
|
+
SmartSearch = "smart_search"
|
|
138
|
+
}
|
|
111
139
|
export type MediaDeleteRequestPayload = {
|
|
112
140
|
timelapseIds: (string | number)[];
|
|
113
141
|
compareIds: (string | number)[];
|