@evercam/api 1.0.0-fefe23b74 → 1.0.0-ff34bc64c
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/dist/api/api/3dFirebaseApi.d.ts +19 -14
- package/dist/api/api/adminApi.d.ts +13 -7
- package/dist/api/api/aiApi.d.ts +67 -2
- package/dist/api/api/authzApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +23 -18
- package/dist/api/api/evercamLabsApi.d.ts +1 -12
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +33 -29
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +28 -59
- package/dist/api/types/admin.d.ts +1 -1
- package/dist/api/types/aiConfigs.d.ts +102 -12
- package/dist/api/types/analytics.d.ts +17 -23
- package/dist/api/types/auditLogs.d.ts +1 -4
- package/dist/api/types/authz.d.ts +34 -9
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +1 -4
- package/dist/api/types/bim.d.ts +3 -5
- package/dist/api/types/camera.d.ts +27 -22
- package/dist/api/types/comments.d.ts +7 -1
- package/dist/api/types/company.d.ts +1 -2
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/drone.d.ts +1 -2
- package/dist/api/types/errors.d.ts +7 -2
- package/dist/api/types/gateReport.d.ts +0 -11
- package/dist/api/types/gateReportManagement.d.ts +2 -7
- package/dist/api/types/index.d.ts +3 -2
- package/dist/api/types/ingest.d.ts +165 -26
- package/dist/api/types/kit.d.ts +7 -100
- package/dist/api/types/media.d.ts +1 -2
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +36 -37
- package/dist/api/types/planner.d.ts +1 -8
- package/dist/api/types/project.d.ts +15 -3
- package/dist/api/types/recording.d.ts +2 -4
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +0 -9
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +5 -22
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +1 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +39 -4
- package/dist/api/types/siteView.d.ts +6 -1
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +1 -8
- package/dist/api/types/user.d.ts +15 -0
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1132 -807
- 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 +180 -53
- package/dist/shared/types/droneUpload.d.ts +66 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +4 -0
- package/dist/shared/types/report.d.ts +101 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +1 -1
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -81,6 +81,7 @@ export type Camera = {
|
|
|
81
81
|
isAccessRestricted?: boolean;
|
|
82
82
|
kitAlarms?: KitAlarm[];
|
|
83
83
|
timestampPosition?: TimestampPositionCoordinates;
|
|
84
|
+
position?: number | null;
|
|
84
85
|
};
|
|
85
86
|
export type AdminCamera = {
|
|
86
87
|
id: number;
|
|
@@ -202,16 +203,10 @@ export declare enum CameraFeatureFlag {
|
|
|
202
203
|
PpeYolo = "ppe_yolo",
|
|
203
204
|
PpeV2 = "ppe_v2",
|
|
204
205
|
NoLiveView = "no_live_view",
|
|
206
|
+
NoRecordings = "no_recordings",
|
|
205
207
|
Ring = "ring",
|
|
206
208
|
CloudOnly = "cloud_only"
|
|
207
209
|
}
|
|
208
|
-
export type CameraLogsRequestPayload = {
|
|
209
|
-
limit: number;
|
|
210
|
-
page: number;
|
|
211
|
-
types: string;
|
|
212
|
-
from: string;
|
|
213
|
-
to: string;
|
|
214
|
-
};
|
|
215
210
|
export type CameraUpdateRequestPayload = {
|
|
216
211
|
status?: string;
|
|
217
212
|
timezone?: string;
|
|
@@ -252,13 +247,17 @@ export type CameraUpdateRequestPayload = {
|
|
|
252
247
|
export type CamerasResponsePayload = {
|
|
253
248
|
cameras?: Camera[];
|
|
254
249
|
};
|
|
255
|
-
export type
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
customMessage?: string;
|
|
250
|
+
export type CameraNoteResponsePayload = {
|
|
251
|
+
id: number;
|
|
252
|
+
camera: {
|
|
253
|
+
exid: string;
|
|
254
|
+
name: string;
|
|
261
255
|
};
|
|
256
|
+
who: string;
|
|
257
|
+
noteType: string;
|
|
258
|
+
content: string;
|
|
259
|
+
pinned: boolean;
|
|
260
|
+
insertedAt: string;
|
|
262
261
|
};
|
|
263
262
|
export type CameraStatusLog = {
|
|
264
263
|
start: string;
|
|
@@ -389,22 +388,26 @@ export type CameraDeletePayload = {
|
|
|
389
388
|
verify: string;
|
|
390
389
|
password: string;
|
|
391
390
|
};
|
|
392
|
-
export type SaveNotePayload = {
|
|
393
|
-
noteType: string;
|
|
394
|
-
content: string;
|
|
395
|
-
};
|
|
396
391
|
export type CameraNote = {
|
|
397
392
|
id: number;
|
|
398
393
|
cameraId: number;
|
|
394
|
+
who: string;
|
|
399
395
|
noteType: string;
|
|
400
396
|
content: string;
|
|
397
|
+
pinned: boolean;
|
|
401
398
|
insertedAt: DateType;
|
|
402
399
|
};
|
|
400
|
+
export type GetCameraNotesParams = {
|
|
401
|
+
noteType?: string;
|
|
402
|
+
pinned?: boolean;
|
|
403
|
+
sort?: string;
|
|
404
|
+
page?: number;
|
|
405
|
+
limit?: number;
|
|
406
|
+
};
|
|
403
407
|
export type CreateCameraNotePayload = {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
action: string;
|
|
408
|
+
noteType: string;
|
|
409
|
+
content: string;
|
|
410
|
+
pinned?: boolean;
|
|
408
411
|
};
|
|
409
412
|
export declare enum HddStatus {
|
|
410
413
|
Error = "error",
|
|
@@ -488,7 +491,7 @@ export declare enum DuplicatedCameraFields {
|
|
|
488
491
|
export type DuplicatedCameraObject = {
|
|
489
492
|
exid: string;
|
|
490
493
|
name: string;
|
|
491
|
-
cameraStatus:
|
|
494
|
+
cameraStatus: CameraStatus;
|
|
492
495
|
crStatus: string;
|
|
493
496
|
};
|
|
494
497
|
export type DuplicatedCameraResponse = {
|
|
@@ -504,6 +507,8 @@ export type MergeDuplicatedCameraPayload = {
|
|
|
504
507
|
shareeCameras: Record<string, unknown>;
|
|
505
508
|
};
|
|
506
509
|
export type FetchCameraQueryParams = PaginationParams & {
|
|
510
|
+
/** Narrows the index to one project. Sent as `project_exid`. */
|
|
511
|
+
projectExid: ProjectExid;
|
|
507
512
|
status: CameraStatus;
|
|
508
513
|
isPublic: boolean;
|
|
509
514
|
featureFlags: CameraFeatureFlag[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
@@ -56,3 +56,9 @@ export type CommentCreationRequestPayload = {
|
|
|
56
56
|
position3d?: [number, number, number];
|
|
57
57
|
context?: Record<string, unknown>;
|
|
58
58
|
};
|
|
59
|
+
export type CommentThreeSixtyContext = {
|
|
60
|
+
floorId: string;
|
|
61
|
+
dateId: string;
|
|
62
|
+
currentRoom: string;
|
|
63
|
+
cameraRotation: _360CameraRotation;
|
|
64
|
+
};
|
|
@@ -19,7 +19,6 @@ export type DroneModel = {
|
|
|
19
19
|
export type DroneProjectTransform = {
|
|
20
20
|
initialCameraTransform?: DroneCameraTransform;
|
|
21
21
|
initial2DCameraTransform?: DroneCameraTransform;
|
|
22
|
-
blackListIds?: string;
|
|
23
22
|
markers?: Record<string, DroneMarker>;
|
|
24
23
|
imageryPlans?: Record<string, DroneImageryPlan>;
|
|
25
24
|
bimData?: DroneBimData;
|
|
@@ -57,7 +56,7 @@ export type DroneTag<T extends DroneTagType = DroneTagType> = {
|
|
|
57
56
|
type: T;
|
|
58
57
|
comment: string;
|
|
59
58
|
position?: Point3D;
|
|
60
|
-
cameraTransform?:
|
|
59
|
+
cameraTransform?: string;
|
|
61
60
|
creationDate: string;
|
|
62
61
|
hyperlink?: string;
|
|
63
62
|
height?: number;
|
|
@@ -23,7 +23,9 @@ export declare enum ErrorCode {
|
|
|
23
23
|
UnauthorizedError = 401,
|
|
24
24
|
ForbiddenError = 403,
|
|
25
25
|
NotFoundError = 404,
|
|
26
|
-
ConflictError = 409
|
|
26
|
+
ConflictError = 409,
|
|
27
|
+
GoneError = 410,
|
|
28
|
+
TooManyRequestsError = 429
|
|
27
29
|
}
|
|
28
30
|
export declare enum EvercamApiErrorCode {
|
|
29
31
|
IntegrationError = "INTEGRATION_ERROR",
|
|
@@ -37,7 +39,8 @@ export declare enum EvercamApiErrorCode {
|
|
|
37
39
|
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
38
40
|
PasswordReset = "PASSWORD_RESET",
|
|
39
41
|
RequireShareRequest = "REQUIRE_SHARE_REQUEST",
|
|
40
|
-
Generic = "GENERIC"
|
|
42
|
+
Generic = "GENERIC",
|
|
43
|
+
VideoWallInUse = "VIDEO_WALL_IN_USE"
|
|
41
44
|
}
|
|
42
45
|
type _EvercamApiError = {
|
|
43
46
|
code: EvercamApiErrorCode;
|
|
@@ -46,6 +49,8 @@ type _EvercamApiError = {
|
|
|
46
49
|
innerError?: _EvercamApiError;
|
|
47
50
|
};
|
|
48
51
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
52
|
+
export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
|
|
53
|
+
export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
|
|
49
54
|
export type AppError = {
|
|
50
55
|
statusCode?: number;
|
|
51
56
|
message?: string;
|
|
@@ -166,12 +166,6 @@ export type GateReportEvent = {
|
|
|
166
166
|
truckType: GateReportVehicleType;
|
|
167
167
|
thumbnailUrl?: string;
|
|
168
168
|
};
|
|
169
|
-
export type GateReportArrivedEvent = GateReportEvent & {
|
|
170
|
-
eventType: GateReportEventType.Arrived;
|
|
171
|
-
};
|
|
172
|
-
export type GateReportLeftEvent = GateReportEvent & {
|
|
173
|
-
eventType: GateReportEventType.Left;
|
|
174
|
-
};
|
|
175
169
|
export type GateReportVerifiedDay = {
|
|
176
170
|
id: number;
|
|
177
171
|
day: string;
|
|
@@ -188,7 +182,6 @@ export type BoundingBox = {
|
|
|
188
182
|
ymax: number;
|
|
189
183
|
ymin: number;
|
|
190
184
|
};
|
|
191
|
-
export type EventsCountsByVehicleType = Record<GateReportVehicleType, number>;
|
|
192
185
|
export type EventsCount = {
|
|
193
186
|
in: number;
|
|
194
187
|
out: number;
|
|
@@ -203,10 +196,6 @@ export type MonthlyEventCount = EventsCount & {
|
|
|
203
196
|
export type DailyEventCount = EventsCount & {
|
|
204
197
|
day: string;
|
|
205
198
|
};
|
|
206
|
-
export type HourlyEventCount = {
|
|
207
|
-
hour: string;
|
|
208
|
-
count: number;
|
|
209
|
-
};
|
|
210
199
|
export type EventCountRequestPayload = {
|
|
211
200
|
vehicleTypes?: GateReportVehicleType[];
|
|
212
201
|
isPublic?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
|
|
2
2
|
export declare enum VehicleClassifierSource {
|
|
3
3
|
Local = "local",
|
|
4
4
|
Api = "api"
|
|
@@ -130,11 +130,9 @@ export type CreateGateReportAppPayload = {
|
|
|
130
130
|
priorSimilarLimit?: number;
|
|
131
131
|
};
|
|
132
132
|
export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
|
|
133
|
-
export type
|
|
133
|
+
export type GateReportAppsQueryParams = PaginationParams & {
|
|
134
134
|
projectExid?: ProjectExid;
|
|
135
135
|
includeStatus?: boolean;
|
|
136
|
-
page?: number;
|
|
137
|
-
limit?: number;
|
|
138
136
|
};
|
|
139
137
|
export type CoolifyProjectOption = {
|
|
140
138
|
uuid: string;
|
|
@@ -152,9 +150,6 @@ export declare enum AppRuntimeState {
|
|
|
152
150
|
Stopped = "stopped",
|
|
153
151
|
Restarting = "restarting"
|
|
154
152
|
}
|
|
155
|
-
export type AppRuntimeStateRequest = {
|
|
156
|
-
state: AppRuntimeState;
|
|
157
|
-
};
|
|
158
153
|
export type AppActionResponse = {
|
|
159
154
|
success: boolean;
|
|
160
155
|
message: string | null;
|
|
@@ -8,7 +8,6 @@ export * from "./autodesk";
|
|
|
8
8
|
export * from "./bim";
|
|
9
9
|
export * from "./camera";
|
|
10
10
|
export * from "./compare";
|
|
11
|
-
export * from "./copilot";
|
|
12
11
|
export * from "./credentials";
|
|
13
12
|
export * from "./drone";
|
|
14
13
|
export * from "./errors";
|
|
@@ -36,7 +35,6 @@ export * from "./storyblok";
|
|
|
36
35
|
export * from "./time";
|
|
37
36
|
export * from "./timelapse";
|
|
38
37
|
export * from "./user";
|
|
39
|
-
export * from "./vendorModel";
|
|
40
38
|
export * from "./videoWall";
|
|
41
39
|
export * from "./voyageControl";
|
|
42
40
|
export * from "./hammertech";
|
|
@@ -68,3 +66,6 @@ export * from "./smartSeach";
|
|
|
68
66
|
export * from "./siteView";
|
|
69
67
|
export * from "./aiConfigs";
|
|
70
68
|
export * from "./gateReportManagement";
|
|
69
|
+
export * from "./socket";
|
|
70
|
+
export * from "./workflows";
|
|
71
|
+
export * from "./observationEvents";
|
|
@@ -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,11 +37,83 @@ 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;
|
|
@@ -53,34 +124,102 @@ export type DroneUploadItem = {
|
|
|
53
124
|
processingStatus: IngestProcessingStatus | string;
|
|
54
125
|
modelCesiumAssetId: string;
|
|
55
126
|
updatedAt: string;
|
|
56
|
-
|
|
57
|
-
|
|
127
|
+
canDelete: boolean;
|
|
128
|
+
canReprocess: boolean;
|
|
129
|
+
hasSteps: boolean;
|
|
130
|
+
aerialShotsCount: number;
|
|
58
131
|
};
|
|
59
132
|
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
60
133
|
export type DroneQueueResponse = {
|
|
61
134
|
size: number;
|
|
62
135
|
assetsDrone: DroneUploadItem[];
|
|
63
136
|
};
|
|
64
|
-
export type
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
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 DroneCreated = {
|
|
211
|
+
id: number;
|
|
212
|
+
projectId: string;
|
|
213
|
+
processingStatus: IngestProcessingStatus;
|
|
214
|
+
aerialShots: AerialUploadState[];
|
|
215
|
+
errors: DroneFileError[];
|
|
216
|
+
};
|
|
217
|
+
export type DroneDeletion = {
|
|
218
|
+
deleted: {
|
|
219
|
+
filename: string;
|
|
220
|
+
id?: number;
|
|
82
221
|
}[];
|
|
83
|
-
|
|
222
|
+
errors: DroneFileError[];
|
|
84
223
|
};
|
|
85
224
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
86
225
|
date: DateType;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, CountryCode, CountryId,
|
|
1
|
+
import { CameraExid, CountryCode, CountryId, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
|
|
2
2
|
export type Kit = {
|
|
3
3
|
alarms: KitAlarm[];
|
|
4
4
|
countryCode: CountryCode;
|
|
@@ -21,12 +21,17 @@ export type Kit = {
|
|
|
21
21
|
tags: Tag[];
|
|
22
22
|
storages: KitStorage[];
|
|
23
23
|
createdAt: string;
|
|
24
|
+
decommissionedAt?: string;
|
|
25
|
+
deletedAt?: string;
|
|
24
26
|
};
|
|
25
27
|
export declare enum KitSupportCheckId {
|
|
26
28
|
RouterSmsRoundTrip = "router_sms_round_trip",
|
|
27
29
|
NvrRecordingAllCameras = "nvr_recording_all_cameras",
|
|
30
|
+
NvrRecordingThirdStream = "nvr_recording_third_stream",
|
|
28
31
|
CamerasHaveDeviceId = "cameras_have_device_id",
|
|
29
|
-
CamerasRecording = "cameras_recording"
|
|
32
|
+
CamerasRecording = "cameras_recording",
|
|
33
|
+
CamerasSdCardMounted = "cameras_sd_card_mounted",
|
|
34
|
+
BatteryReadings = "battery_readings"
|
|
30
35
|
}
|
|
31
36
|
export declare enum KitSupportCheckStatus {
|
|
32
37
|
Passed = "passed",
|
|
@@ -145,55 +150,6 @@ export declare enum KitChartType {
|
|
|
145
150
|
TimeSeries = "timeseries",
|
|
146
151
|
BarChart = "barchart"
|
|
147
152
|
}
|
|
148
|
-
export type GrafanaDataSource = {
|
|
149
|
-
type: string;
|
|
150
|
-
uid: string;
|
|
151
|
-
};
|
|
152
|
-
export type GrafanaTarget = {
|
|
153
|
-
expr: string;
|
|
154
|
-
refId: string;
|
|
155
|
-
datasourceId?: string;
|
|
156
|
-
intervalMs?: number;
|
|
157
|
-
maxDataPoints?: number;
|
|
158
|
-
};
|
|
159
|
-
export type GrafanaPanel = {
|
|
160
|
-
[key: string]: unknown;
|
|
161
|
-
id: GrafanaMetricId;
|
|
162
|
-
name: keyof GrafanaMetricId;
|
|
163
|
-
title: string;
|
|
164
|
-
description: string;
|
|
165
|
-
type: KitChartType;
|
|
166
|
-
datasource: GrafanaDataSource;
|
|
167
|
-
targets: GrafanaTarget[];
|
|
168
|
-
maxDataPoints?: number;
|
|
169
|
-
interval?: string;
|
|
170
|
-
timeFrom?: string;
|
|
171
|
-
timeShift?: string;
|
|
172
|
-
options?: {
|
|
173
|
-
maxDataPoints?: number;
|
|
174
|
-
interval?: string;
|
|
175
|
-
};
|
|
176
|
-
};
|
|
177
|
-
export type GrafanaDashboard = {
|
|
178
|
-
[key: string]: unknown;
|
|
179
|
-
panels: GrafanaPanel[];
|
|
180
|
-
time?: {
|
|
181
|
-
from: string;
|
|
182
|
-
to: string;
|
|
183
|
-
};
|
|
184
|
-
timepicker?: {
|
|
185
|
-
refresh_intervals: string[];
|
|
186
|
-
time_options: string[];
|
|
187
|
-
};
|
|
188
|
-
};
|
|
189
|
-
export type GrafanaQueryOptions = {
|
|
190
|
-
metricId: GrafanaMetricId;
|
|
191
|
-
host: string;
|
|
192
|
-
job?: string;
|
|
193
|
-
from?: string;
|
|
194
|
-
to?: string;
|
|
195
|
-
variables?: Record<string, string>;
|
|
196
|
-
};
|
|
197
153
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
198
154
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
199
155
|
export type GrafanaFieldConfig = {
|
|
@@ -286,55 +242,6 @@ export type KitQueryParams = PaginationParams & {
|
|
|
286
242
|
status: KitStatus;
|
|
287
243
|
tagId: number | number[];
|
|
288
244
|
};
|
|
289
|
-
export type AdminKit = {
|
|
290
|
-
id: number;
|
|
291
|
-
name: string;
|
|
292
|
-
serial: string;
|
|
293
|
-
status: string;
|
|
294
|
-
powerType: PowerType;
|
|
295
|
-
location: string;
|
|
296
|
-
countryId: number;
|
|
297
|
-
countryName: string;
|
|
298
|
-
countryRegion: string;
|
|
299
|
-
nvr: Nvr;
|
|
300
|
-
router: {
|
|
301
|
-
id: number;
|
|
302
|
-
serialNumber: number;
|
|
303
|
-
vpnUserId: string;
|
|
304
|
-
vpnPassword: string;
|
|
305
|
-
routerType: string;
|
|
306
|
-
routerUserId: string;
|
|
307
|
-
routerPassword: string;
|
|
308
|
-
routerHttpPort: number;
|
|
309
|
-
powerType: PowerType;
|
|
310
|
-
powerSchedule: Schedule;
|
|
311
|
-
vpnServer: string;
|
|
312
|
-
netbirdUrl: string;
|
|
313
|
-
sims: {
|
|
314
|
-
id: number;
|
|
315
|
-
number: string;
|
|
316
|
-
}[];
|
|
317
|
-
};
|
|
318
|
-
project: {
|
|
319
|
-
id: number;
|
|
320
|
-
exid: string;
|
|
321
|
-
name: string;
|
|
322
|
-
timezone: string;
|
|
323
|
-
status: string;
|
|
324
|
-
zohoId: string;
|
|
325
|
-
insertedAt: DateType;
|
|
326
|
-
};
|
|
327
|
-
};
|
|
328
|
-
export type KitCreatePayload = {
|
|
329
|
-
projectId?: number;
|
|
330
|
-
countryCode?: string;
|
|
331
|
-
name: string;
|
|
332
|
-
status: KitStatus;
|
|
333
|
-
powerType: PowerType;
|
|
334
|
-
config: {
|
|
335
|
-
region: KitRegion;
|
|
336
|
-
};
|
|
337
|
-
};
|
|
338
245
|
export type KitMetricStatsEntry = {
|
|
339
246
|
timestamp: string;
|
|
340
247
|
voltage: number;
|
|
@@ -111,8 +111,7 @@ export declare enum ClipsCategory {
|
|
|
111
111
|
}
|
|
112
112
|
export declare enum MediaCategory {
|
|
113
113
|
Weather = "weather",
|
|
114
|
-
SmartSearch = "smart_search"
|
|
115
|
-
Copilot = "copilot"
|
|
114
|
+
SmartSearch = "smart_search"
|
|
116
115
|
}
|
|
117
116
|
export type MediaDeleteRequestPayload = {
|
|
118
117
|
timelapseIds: (string | number)[];
|