@evercam/api 1.0.0-0a308274b → 1.0.0-0a3924df5
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 +6 -0
- package/dist/api/api/3dFirebaseApi.d.ts +224 -0
- package/dist/api/api/adminApi.d.ts +379 -0
- package/dist/api/api/aiApi.d.ts +251 -0
- package/dist/api/api/authzApi.d.ts +40 -0
- package/dist/api/{client → api/client}/axios.d.ts +2 -1
- package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
- package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +14 -0
- package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
- package/dist/api/api/evercamApi.d.ts +353 -0
- package/dist/api/api/evercamLabsApi.d.ts +37 -0
- package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +2 -2
- package/dist/api/api/index.d.ts +14 -0
- package/dist/api/api/ingestApi.d.ts +170 -0
- package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/api/videoWallApi.d.ts +9 -0
- package/dist/api/api/weatherApi.d.ts +9 -0
- package/dist/api/index.d.ts +3 -13
- package/dist/api/types/360.d.ts +368 -0
- package/dist/api/types/aconex.d.ts +143 -0
- package/dist/api/types/admin.d.ts +85 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/{types → api/types}/analytics.d.ts +288 -120
- package/dist/{types → api/types}/anpr.d.ts +65 -19
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +257 -0
- package/dist/api/types/authz.d.ts +132 -0
- package/dist/{types → api/types}/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +123 -0
- package/dist/{types → api/types}/axios.d.ts +32 -11
- package/dist/{types → api/types}/bim.d.ts +65 -16
- package/dist/api/types/camera.d.ts +660 -0
- package/dist/api/types/comments.d.ts +96 -0
- package/dist/api/types/company.d.ts +121 -0
- package/dist/{types → api/types}/compare.d.ts +21 -6
- package/dist/api/types/connector.d.ts +21 -0
- package/dist/api/types/coolify.d.ts +36 -0
- package/dist/{types → api/types}/countries.d.ts +0 -7
- package/dist/{types → api/types}/credentials.d.ts +1 -0
- package/dist/api/types/detections.d.ts +120 -0
- package/dist/api/types/drone.d.ts +106 -0
- package/dist/api/types/emailMessages.d.ts +27 -0
- package/dist/{types → api/types}/errors.d.ts +31 -1
- package/dist/{types → api/types}/gateReport.d.ts +51 -169
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/{types → api/types}/hdd.d.ts +27 -2
- package/dist/{types → api/types}/index.d.ts +26 -5
- package/dist/api/types/ingest.d.ts +314 -0
- package/dist/{types → api/types}/kit.d.ts +174 -108
- package/dist/api/types/map.d.ts +16 -0
- package/dist/{types → api/types}/media.d.ts +33 -4
- package/dist/api/types/notification.d.ts +107 -0
- package/dist/api/types/nvr.d.ts +67 -0
- package/dist/api/types/oauth.d.ts +62 -0
- 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 +125 -0
- package/dist/api/types/posthog.d.ts +89 -0
- package/dist/api/types/procore.d.ts +229 -0
- package/dist/{types → api/types}/progressPhoto.d.ts +41 -40
- package/dist/api/types/project.d.ts +294 -0
- package/dist/{types → api/types}/recording.d.ts +10 -16
- package/dist/api/types/recycleBin.d.ts +20 -0
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/{types → api/types}/roi.d.ts +2 -9
- package/dist/{types → api/types}/routeParams.d.ts +5 -2
- package/dist/{types → api/types}/router.d.ts +34 -10
- package/dist/{types → api/types}/shared.d.ts +47 -44
- package/dist/api/types/shares.d.ts +45 -0
- package/dist/{types → api/types}/sim.d.ts +23 -11
- package/dist/api/types/siteAnalytics.d.ts +285 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +80 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +144 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +29 -0
- package/dist/api/types/storageProvider.d.ts +30 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/api/types/streaming.d.ts +97 -0
- package/dist/api/types/systemCheck.d.ts +11 -0
- package/dist/api/types/tag.d.ts +12 -0
- package/dist/api/types/time.d.ts +7 -0
- package/dist/{types → api/types}/timelapse.d.ts +14 -11
- package/dist/{types → api/types}/user.d.ts +143 -59
- package/dist/api/types/videoWall.d.ts +66 -0
- package/dist/api/types/weather.d.ts +153 -0
- package/dist/{types → api/types}/widget.d.ts +111 -22
- package/dist/api/types/xweather.d.ts +12 -0
- package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +3217 -1108
- 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/api/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
- package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
- package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
- package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
- package/dist/shared/types/components.d.ts +802 -0
- 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 +41 -0
- package/dist/shared/types/index.d.ts +9 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/report.d.ts +107 -0
- package/dist/shared/types/timeline.d.ts +10 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +8 -5
- package/dist/api/3dFirebaseApi.d.ts +0 -9
- package/dist/api/adminApi.d.ts +0 -307
- package/dist/api/aiApi.d.ts +0 -86
- package/dist/api/authzApi.d.ts +0 -21
- package/dist/api/evercamApi.d.ts +0 -266
- package/dist/api/evercamLabsApi.d.ts +0 -46
- package/dist/api/ingestApi.d.ts +0 -65
- package/dist/api/videoWallApi.d.ts +0 -9
- package/dist/api/weatherApi.d.ts +0 -25
- package/dist/types/360.d.ts +0 -83
- package/dist/types/aconex.d.ts +0 -45
- package/dist/types/auditLogs.d.ts +0 -99
- package/dist/types/automation.d.ts +0 -6
- package/dist/types/camera.d.ts +0 -564
- package/dist/types/comments.d.ts +0 -36
- package/dist/types/company.d.ts +0 -46
- package/dist/types/connector.d.ts +0 -16
- package/dist/types/copilot.d.ts +0 -156
- package/dist/types/detections.d.ts +0 -76
- package/dist/types/devices.d.ts +0 -228
- package/dist/types/drone.d.ts +0 -17
- package/dist/types/ingest.d.ts +0 -43
- package/dist/types/map.d.ts +0 -4
- package/dist/types/notification.d.ts +0 -27
- package/dist/types/nvr.d.ts +0 -36
- package/dist/types/procore.d.ts +0 -76
- package/dist/types/project.d.ts +0 -120
- package/dist/types/shares.d.ts +0 -192
- package/dist/types/siteAnalytics.d.ts +0 -84
- package/dist/types/sitePlanner.d.ts +0 -28
- package/dist/types/snapshots.d.ts +0 -50
- package/dist/types/storageServers.d.ts +0 -4
- package/dist/types/streaming.d.ts +0 -119
- package/dist/types/time.d.ts +0 -19
- package/dist/types/vendorModel.d.ts +0 -15
- package/dist/types/videoWall.d.ts +0 -33
- package/dist/types/weather.d.ts +0 -83
- /package/dist/api/{client → api/client}/index.d.ts +0 -0
- /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
- /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
|
@@ -2,14 +2,13 @@ export * from "./360";
|
|
|
2
2
|
export * from "./aconex";
|
|
3
3
|
export * from "./analytics";
|
|
4
4
|
export * from "./anpr";
|
|
5
|
+
export * from "./admin";
|
|
5
6
|
export * from "./media";
|
|
6
7
|
export * from "./autodesk";
|
|
7
8
|
export * from "./bim";
|
|
8
9
|
export * from "./camera";
|
|
9
10
|
export * from "./compare";
|
|
10
|
-
export * from "./copilot";
|
|
11
11
|
export * from "./credentials";
|
|
12
|
-
export * from "./devices";
|
|
13
12
|
export * from "./drone";
|
|
14
13
|
export * from "./errors";
|
|
15
14
|
export * from "./gateReport";
|
|
@@ -28,18 +27,21 @@ export * from "./routeParams";
|
|
|
28
27
|
export * from "./router";
|
|
29
28
|
export * from "./shares";
|
|
30
29
|
export * from "./sim";
|
|
31
|
-
export * from "./
|
|
32
|
-
export * from "./
|
|
30
|
+
export * from "./systemCheck";
|
|
31
|
+
export * from "./planner";
|
|
32
|
+
export * from "./storageProvider";
|
|
33
33
|
export * from "./streaming";
|
|
34
|
+
export * from "./storyblok";
|
|
34
35
|
export * from "./time";
|
|
35
36
|
export * from "./timelapse";
|
|
36
37
|
export * from "./user";
|
|
37
|
-
export * from "./vendorModel";
|
|
38
38
|
export * from "./videoWall";
|
|
39
39
|
export * from "./voyageControl";
|
|
40
|
+
export * from "./hammertech";
|
|
40
41
|
export * from "./weather";
|
|
41
42
|
export * from "./comments";
|
|
42
43
|
export * from "./detections";
|
|
44
|
+
export * from "./observations";
|
|
43
45
|
export * from "./axios";
|
|
44
46
|
export * from "./shared";
|
|
45
47
|
export * from "./company";
|
|
@@ -47,6 +49,25 @@ export * from "./kit";
|
|
|
47
49
|
export * from "./auditLogs";
|
|
48
50
|
export * from "./snapshots";
|
|
49
51
|
export * from "./siteAnalytics";
|
|
52
|
+
export * from "./siteAnalyticsManagement";
|
|
50
53
|
export * from "./widget";
|
|
51
54
|
export * from "./countries";
|
|
52
55
|
export * from "./automation";
|
|
56
|
+
export * from "./sso";
|
|
57
|
+
export * from "./coolify";
|
|
58
|
+
export * from "./tag";
|
|
59
|
+
export * from "./xweather";
|
|
60
|
+
export * from "./posthog";
|
|
61
|
+
export * from "./recycleBin";
|
|
62
|
+
export * from "./authz";
|
|
63
|
+
export * from "./oauth";
|
|
64
|
+
export * from "./apiKey";
|
|
65
|
+
export * from "./ring";
|
|
66
|
+
export * from "./smartSeach";
|
|
67
|
+
export * from "./siteView";
|
|
68
|
+
export * from "./aiConfigs";
|
|
69
|
+
export * from "./gateReportManagement";
|
|
70
|
+
export * from "./socket";
|
|
71
|
+
export * from "./reports";
|
|
72
|
+
export * from "./observationEvents";
|
|
73
|
+
export * from "./emailMessages";
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { PaginationParams, DateType, JsonValue, TuplePoint2D } 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
|
+
Downloading = "downloading"
|
|
13
|
+
}
|
|
14
|
+
export declare enum MobileAssetsType {
|
|
15
|
+
Audio = "mobile_audios",
|
|
16
|
+
Photo = "mobile_photos"
|
|
17
|
+
}
|
|
18
|
+
export declare enum IngestVersions {
|
|
19
|
+
V1 = "v1",
|
|
20
|
+
V2 = "v2",
|
|
21
|
+
V3 = "v3",
|
|
22
|
+
V4 = "v4",
|
|
23
|
+
V5 = "v5"
|
|
24
|
+
}
|
|
25
|
+
export declare enum IngestTypes {
|
|
26
|
+
Drone = "drone",
|
|
27
|
+
ThreeSixty = "360"
|
|
28
|
+
}
|
|
29
|
+
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
30
|
+
projectId: string;
|
|
31
|
+
processingStatus: IngestProcessingStatus;
|
|
32
|
+
};
|
|
33
|
+
export type IngestPaginatedResponse<T> = {
|
|
34
|
+
items: T[];
|
|
35
|
+
page: number;
|
|
36
|
+
limit: number;
|
|
37
|
+
total: number;
|
|
38
|
+
pageCount?: number;
|
|
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
|
+
};
|
|
114
|
+
export type DroneUploadItem = {
|
|
115
|
+
id: number;
|
|
116
|
+
projectId: string;
|
|
117
|
+
flightDate: string;
|
|
118
|
+
flightGeolocation: string;
|
|
119
|
+
modelZip: string;
|
|
120
|
+
orthomosaicZip: string;
|
|
121
|
+
reportPdf: string;
|
|
122
|
+
processingLog: string;
|
|
123
|
+
uploadedBy: string;
|
|
124
|
+
processingStatus: IngestProcessingStatus | string;
|
|
125
|
+
modelCesiumAssetId: string;
|
|
126
|
+
updatedAt: string;
|
|
127
|
+
canDelete: boolean;
|
|
128
|
+
canReprocess: boolean;
|
|
129
|
+
hasSteps: boolean;
|
|
130
|
+
aerialShotsCount: number;
|
|
131
|
+
};
|
|
132
|
+
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
133
|
+
export type DroneQueueResponse = {
|
|
134
|
+
size: number;
|
|
135
|
+
assetsDrone: DroneUploadItem[];
|
|
136
|
+
};
|
|
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;
|
|
225
|
+
}[];
|
|
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;
|
|
240
|
+
};
|
|
241
|
+
export type CalculateMeasuringOperationRequestPayload = {
|
|
242
|
+
date: DateType;
|
|
243
|
+
points: TuplePoint2D[];
|
|
244
|
+
operation: string;
|
|
245
|
+
};
|
|
246
|
+
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
247
|
+
date: DateType;
|
|
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
|
+
};
|
|
258
|
+
export type InspectionToolRequestPayload = {
|
|
259
|
+
date: DateType;
|
|
260
|
+
gpsAltitude: string;
|
|
261
|
+
gpsCoordinates: string;
|
|
262
|
+
};
|
|
263
|
+
export type _360AssetsResponse = IngestPaginatedResponse<_360WalkV2>;
|
|
264
|
+
export type _360AssetsCountsDay = {
|
|
265
|
+
day: number;
|
|
266
|
+
walks?: number;
|
|
267
|
+
mobilePhotos?: number;
|
|
268
|
+
[key: string]: JsonValue | undefined;
|
|
269
|
+
};
|
|
270
|
+
export type _360AssetsCountsResponse = {
|
|
271
|
+
days: _360AssetsCountsDay[];
|
|
272
|
+
};
|
|
273
|
+
export type _360QueueResponse = {
|
|
274
|
+
size: number;
|
|
275
|
+
assets360: _360WalkV2[];
|
|
276
|
+
};
|
|
277
|
+
export type _360FloorsResponse = IngestPaginatedResponse<_360FloorV2>;
|
|
278
|
+
export type BimUploadItem = {
|
|
279
|
+
id: number;
|
|
280
|
+
projectId: string;
|
|
281
|
+
uploadedBy: string;
|
|
282
|
+
files: string[];
|
|
283
|
+
updatedAt: string;
|
|
284
|
+
archive?: string | null;
|
|
285
|
+
};
|
|
286
|
+
export type BimUploadsResponse = IngestPaginatedResponse<BimUploadItem>;
|
|
287
|
+
export type IngestUploadInitResponse = {
|
|
288
|
+
id: number;
|
|
289
|
+
projectId: string;
|
|
290
|
+
token?: string;
|
|
291
|
+
projectName?: string;
|
|
292
|
+
};
|
|
293
|
+
export type MobileAssetsQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
294
|
+
projectId?: string;
|
|
295
|
+
project_id?: string;
|
|
296
|
+
assetType?: MobileAssetsType | string;
|
|
297
|
+
date?: DateType;
|
|
298
|
+
isPaginated?: boolean;
|
|
299
|
+
};
|
|
300
|
+
export type MobileCaptureAssetsResponse = IngestPaginatedResponse<{
|
|
301
|
+
id: string;
|
|
302
|
+
projectId?: string;
|
|
303
|
+
uploadedBy: string;
|
|
304
|
+
updatedAt: string;
|
|
305
|
+
assetType: string;
|
|
306
|
+
thumbnailUrl: string;
|
|
307
|
+
}> | Array<{
|
|
308
|
+
id: string;
|
|
309
|
+
projectId?: string;
|
|
310
|
+
uploadedBy: string;
|
|
311
|
+
updatedAt: string;
|
|
312
|
+
assetType: string;
|
|
313
|
+
thumbnailUrl: string;
|
|
314
|
+
}>;
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
-
countryRegion:
|
|
7
|
+
countryRegion: KitRegion;
|
|
8
8
|
id?: number;
|
|
9
9
|
jobId: number;
|
|
10
10
|
name: string;
|
|
@@ -12,10 +12,51 @@ 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;
|
|
18
19
|
powerSchedule: Schedule;
|
|
20
|
+
ups: boolean;
|
|
21
|
+
boxId: string;
|
|
22
|
+
tags: Tag[];
|
|
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;
|
|
19
60
|
};
|
|
20
61
|
export declare enum KitStatus {
|
|
21
62
|
New = "new",
|
|
@@ -23,17 +64,31 @@ export declare enum KitStatus {
|
|
|
23
64
|
Deployed = "deployed",
|
|
24
65
|
Decommissioned = "decommissioned"
|
|
25
66
|
}
|
|
67
|
+
export declare enum KitRegion {
|
|
68
|
+
APAC = "apac",
|
|
69
|
+
EMEA = "emea",
|
|
70
|
+
LATAM = "latam",
|
|
71
|
+
US = "na"
|
|
72
|
+
}
|
|
26
73
|
export declare enum KitAlarm {
|
|
27
74
|
NvrOffline = "nvr_offline",
|
|
75
|
+
OfflineScheduled = "offline_scheduled",
|
|
28
76
|
UnknownCamera = "unknown_camera",
|
|
29
77
|
NotRecordingCamera = "not_recording_camera",
|
|
30
|
-
OfflineScheduled = "offline_scheduled",
|
|
31
78
|
FullSD = "full_sd",
|
|
32
|
-
FullStorage = "full_storage"
|
|
79
|
+
FullStorage = "full_storage",
|
|
80
|
+
HddUnmounted = "hdd_unmounted",
|
|
81
|
+
NoHdd = "no_hdd",
|
|
82
|
+
MissingRouterInfo = "missing_router_info",
|
|
83
|
+
AcFailure = "ac_failure",
|
|
84
|
+
LowBattery = "low_battery",
|
|
85
|
+
GeneratorOff = "generator_off"
|
|
33
86
|
}
|
|
34
87
|
export declare enum KitMetricId {
|
|
35
|
-
|
|
36
|
-
|
|
88
|
+
SolarCharger = "solar_charger",
|
|
89
|
+
PanelPower = "panel_power",
|
|
90
|
+
Fan = "fan",
|
|
91
|
+
FanTemperature = "fan_temperature"
|
|
37
92
|
}
|
|
38
93
|
export declare enum KitMetricPeriod {
|
|
39
94
|
Last15Minutes = "now-15m",
|
|
@@ -99,55 +154,6 @@ export declare enum KitChartType {
|
|
|
99
154
|
TimeSeries = "timeseries",
|
|
100
155
|
BarChart = "barchart"
|
|
101
156
|
}
|
|
102
|
-
export type GrafanaDataSource = {
|
|
103
|
-
type: string;
|
|
104
|
-
uid: string;
|
|
105
|
-
};
|
|
106
|
-
export type GrafanaTarget = {
|
|
107
|
-
expr: string;
|
|
108
|
-
refId: string;
|
|
109
|
-
datasourceId?: string;
|
|
110
|
-
intervalMs?: number;
|
|
111
|
-
maxDataPoints?: number;
|
|
112
|
-
};
|
|
113
|
-
export type GrafanaPanel = {
|
|
114
|
-
[key: string]: unknown;
|
|
115
|
-
id: GrafanaMetricId;
|
|
116
|
-
name: keyof GrafanaMetricId;
|
|
117
|
-
title: string;
|
|
118
|
-
description: string;
|
|
119
|
-
type: KitChartType;
|
|
120
|
-
datasource: GrafanaDataSource;
|
|
121
|
-
targets: GrafanaTarget[];
|
|
122
|
-
maxDataPoints?: number;
|
|
123
|
-
interval?: string;
|
|
124
|
-
timeFrom?: string;
|
|
125
|
-
timeShift?: string;
|
|
126
|
-
options?: {
|
|
127
|
-
maxDataPoints?: number;
|
|
128
|
-
interval?: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
|
-
export type GrafanaDashboard = {
|
|
132
|
-
[key: string]: unknown;
|
|
133
|
-
panels: GrafanaPanel[];
|
|
134
|
-
time?: {
|
|
135
|
-
from: string;
|
|
136
|
-
to: string;
|
|
137
|
-
};
|
|
138
|
-
timepicker?: {
|
|
139
|
-
refresh_intervals: string[];
|
|
140
|
-
time_options: string[];
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
export type GrafanaQueryOptions = {
|
|
144
|
-
metricId: GrafanaMetricId;
|
|
145
|
-
host: string;
|
|
146
|
-
job?: string;
|
|
147
|
-
from?: string;
|
|
148
|
-
to?: string;
|
|
149
|
-
variables?: Record<string, string>;
|
|
150
|
-
};
|
|
151
157
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
152
158
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
153
159
|
export type GrafanaFieldConfig = {
|
|
@@ -221,10 +227,9 @@ export type GrafanaQueryResult = {
|
|
|
221
227
|
status: number;
|
|
222
228
|
frames: GrafanaFrame[];
|
|
223
229
|
};
|
|
230
|
+
export type GrafanaMetricResults = Record<string, GrafanaQueryResult>;
|
|
224
231
|
export type GrafanaMetricData = KitMetricData & {
|
|
225
|
-
results:
|
|
226
|
-
[key: string]: GrafanaQueryResult;
|
|
227
|
-
};
|
|
232
|
+
results: GrafanaMetricResults;
|
|
228
233
|
};
|
|
229
234
|
export type EvercamMetricData = KitMetricData & {
|
|
230
235
|
stats: EvercamStats[];
|
|
@@ -234,59 +239,49 @@ export type EvercamStats = {
|
|
|
234
239
|
[k: string]: number | string;
|
|
235
240
|
timestamp: string;
|
|
236
241
|
};
|
|
237
|
-
export type KitQueryParams = PaginationParams & {
|
|
242
|
+
export type KitQueryParams = PaginationParams & Partial<{
|
|
243
|
+
boxId: string;
|
|
238
244
|
name: string;
|
|
239
245
|
serial: string;
|
|
240
246
|
status: KitStatus;
|
|
247
|
+
tagId: number | number[];
|
|
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
|
+
}>;
|
|
268
|
+
export type KitMetricStatsEntry = {
|
|
269
|
+
timestamp: string;
|
|
270
|
+
voltage: number;
|
|
271
|
+
current: number;
|
|
272
|
+
panelVoltage: number;
|
|
273
|
+
panelPower: number;
|
|
274
|
+
yieldTotal: number;
|
|
275
|
+
yieldToday: number;
|
|
276
|
+
yieldYesterday: number;
|
|
277
|
+
maxPowerToday: number;
|
|
278
|
+
maxPowerYesterday: number;
|
|
241
279
|
};
|
|
242
|
-
export type
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
powerType: PowerType;
|
|
248
|
-
location: string;
|
|
249
|
-
countryId: number;
|
|
250
|
-
countryName: string;
|
|
251
|
-
countryRegion: string;
|
|
252
|
-
nvr: Nvr;
|
|
253
|
-
router: {
|
|
254
|
-
id: number;
|
|
255
|
-
serialNumber: number;
|
|
256
|
-
vpnUserId: string;
|
|
257
|
-
vpnPassword: string;
|
|
258
|
-
routerType: string;
|
|
259
|
-
routerUserId: string;
|
|
260
|
-
routerPassword: string;
|
|
261
|
-
routerHttpPort: number;
|
|
262
|
-
powerType: PowerType;
|
|
263
|
-
powerSchedule: Schedule;
|
|
264
|
-
vpnServer: string;
|
|
265
|
-
netbirdUrl: string;
|
|
266
|
-
sims: {
|
|
267
|
-
id: number;
|
|
268
|
-
number: string;
|
|
269
|
-
}[];
|
|
270
|
-
};
|
|
271
|
-
project: {
|
|
272
|
-
id: number;
|
|
273
|
-
exid: string;
|
|
274
|
-
name: string;
|
|
275
|
-
timezone: string;
|
|
276
|
-
status: string;
|
|
277
|
-
zohoId: string;
|
|
278
|
-
insertedAt: DateType;
|
|
279
|
-
};
|
|
280
|
-
};
|
|
281
|
-
export type KitCreatePayload = {
|
|
282
|
-
projectId?: number;
|
|
283
|
-
countryCode?: string;
|
|
284
|
-
name: string;
|
|
285
|
-
status: KitStatus;
|
|
286
|
-
powerType: PowerType;
|
|
287
|
-
config: {
|
|
288
|
-
region: Region;
|
|
289
|
-
};
|
|
280
|
+
export type KitFanStatsEntry = {
|
|
281
|
+
timestamp: string;
|
|
282
|
+
speed: number;
|
|
283
|
+
internalTemperature: number;
|
|
284
|
+
externalTemperature: number | null;
|
|
290
285
|
};
|
|
291
286
|
export type KitUpdatePayload = {
|
|
292
287
|
countryId: number;
|
|
@@ -295,3 +290,74 @@ export type KitUpdatePayload = {
|
|
|
295
290
|
kitStatus: KitStatus;
|
|
296
291
|
type: string;
|
|
297
292
|
};
|
|
293
|
+
export declare enum KitStorageTransport {
|
|
294
|
+
Sata = "sata",
|
|
295
|
+
Nvme = "nvme",
|
|
296
|
+
Usb = "usb"
|
|
297
|
+
}
|
|
298
|
+
export type KitStorageQueryParams = PaginationParams & Partial<{
|
|
299
|
+
kitId: number;
|
|
300
|
+
serial: string;
|
|
301
|
+
vendor: string;
|
|
302
|
+
transport: KitStorageTransport;
|
|
303
|
+
}>;
|
|
304
|
+
export type KitStorage = {
|
|
305
|
+
id: number;
|
|
306
|
+
serial: string;
|
|
307
|
+
status: string;
|
|
308
|
+
type: string;
|
|
309
|
+
metadata: {
|
|
310
|
+
formFactor: string;
|
|
311
|
+
};
|
|
312
|
+
model: string;
|
|
313
|
+
insertedAt: string;
|
|
314
|
+
updatedAt: string;
|
|
315
|
+
vendor: string;
|
|
316
|
+
kitId: number;
|
|
317
|
+
capacity: number;
|
|
318
|
+
freeSpace: number;
|
|
319
|
+
tran: KitStorageTransport;
|
|
320
|
+
};
|
|
321
|
+
export type KitFootageRequestPayload = Partial<{
|
|
322
|
+
cameraId: number;
|
|
323
|
+
storageId: number;
|
|
324
|
+
}>;
|
|
325
|
+
export type KitFootage = {
|
|
326
|
+
id: number;
|
|
327
|
+
startDate: string;
|
|
328
|
+
endDate: string;
|
|
329
|
+
cameraId: number;
|
|
330
|
+
storageId: number;
|
|
331
|
+
};
|
|
332
|
+
export type KitAlarmItem = {
|
|
333
|
+
id: number;
|
|
334
|
+
kitId: number;
|
|
335
|
+
alarm: KitAlarm;
|
|
336
|
+
startDate: string;
|
|
337
|
+
endDate: string | null;
|
|
338
|
+
};
|
|
339
|
+
export type KitBox = {
|
|
340
|
+
id: string;
|
|
341
|
+
gatewaySerial: string;
|
|
342
|
+
gatewayMac: string;
|
|
343
|
+
gatewayConfig: {
|
|
344
|
+
defaultPassword: string;
|
|
345
|
+
} | null;
|
|
346
|
+
kitSerials: string[];
|
|
347
|
+
insertedAt: string;
|
|
348
|
+
updatedAt: string;
|
|
349
|
+
};
|
|
350
|
+
export type KitBoxCreatePayload = {
|
|
351
|
+
id?: string;
|
|
352
|
+
gatewaySerial: string;
|
|
353
|
+
gatewayMac: string;
|
|
354
|
+
gatewayConfig?: {
|
|
355
|
+
defaultPassword?: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
358
|
+
export type KitBoxQueryParams = PaginationParams & Partial<{
|
|
359
|
+
id: string;
|
|
360
|
+
gatewaySerial: string;
|
|
361
|
+
gatewayMac: string;
|
|
362
|
+
hasKits: boolean;
|
|
363
|
+
}>;
|