@evercam/api 1.0.0-e424632fd → 1.0.0-e78536009
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 +197 -15
- package/dist/api/api/adminApi.d.ts +24 -20
- package/dist/api/api/aiApi.d.ts +127 -4
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +41 -13
- package/dist/api/api/evercamLabsApi.d.ts +5 -16
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +22 -9
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +171 -83
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +48 -33
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -1
- 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 +28 -5
- package/dist/api/types/camera.d.ts +37 -46
- package/dist/api/types/comments.d.ts +16 -7
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +3 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/errors.d.ts +13 -1
- package/dist/api/types/gateReport.d.ts +4 -14
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +9 -2
- package/dist/api/types/ingest.d.ts +90 -3
- package/dist/api/types/kit.d.ts +43 -51
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +7 -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 +84 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +16 -3
- package/dist/api/types/recording.d.ts +7 -13
- 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/shared.d.ts +17 -24
- package/dist/api/types/shares.d.ts +0 -13
- 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 +78 -0
- package/dist/api/types/snapshots.d.ts +13 -0
- 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 +2 -13
- package/dist/api/types/user.d.ts +16 -4
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +1908 -748
- 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 +246 -35
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +25 -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",
|
|
@@ -38,6 +39,80 @@ export type IngestPaginatedResponse<T> = {
|
|
|
38
39
|
total: number;
|
|
39
40
|
pageCount?: number;
|
|
40
41
|
};
|
|
42
|
+
export declare enum IngestProcessingStepStatus {
|
|
43
|
+
Running = "running",
|
|
44
|
+
Completed = "completed",
|
|
45
|
+
Failed = "failed",
|
|
46
|
+
Skipped = "skipped"
|
|
47
|
+
}
|
|
48
|
+
export declare enum IngestProcessingRunStatus {
|
|
49
|
+
Processing = "processing",
|
|
50
|
+
Completed = "completed",
|
|
51
|
+
Failed = "failed"
|
|
52
|
+
}
|
|
53
|
+
export type IngestProcessingMetricStat = {
|
|
54
|
+
avg?: number;
|
|
55
|
+
peak?: number;
|
|
56
|
+
};
|
|
57
|
+
export type IngestProcessingStepMetrics = {
|
|
58
|
+
cpu?: IngestProcessingMetricStat;
|
|
59
|
+
ram?: IngestProcessingMetricStat;
|
|
60
|
+
gpuUtil?: IngestProcessingMetricStat;
|
|
61
|
+
gpuMemDevice?: IngestProcessingMetricStat;
|
|
62
|
+
gpuMemStep?: IngestProcessingMetricStat;
|
|
63
|
+
ramTotalMb?: number;
|
|
64
|
+
diskTotalMb?: number;
|
|
65
|
+
};
|
|
66
|
+
export type IngestProcessingStepDetail = {
|
|
67
|
+
input?: Record<string, JsonValue>;
|
|
68
|
+
params?: Record<string, JsonValue>;
|
|
69
|
+
output?: Record<string, JsonValue>;
|
|
70
|
+
metrics?: IngestProcessingStepMetrics;
|
|
71
|
+
error?: string;
|
|
72
|
+
};
|
|
73
|
+
export type IngestProcessingStep = {
|
|
74
|
+
name: string;
|
|
75
|
+
tool?: string;
|
|
76
|
+
status: IngestProcessingStepStatus | string;
|
|
77
|
+
startedAt?: string;
|
|
78
|
+
endedAt?: string;
|
|
79
|
+
durationSec?: number;
|
|
80
|
+
durationPct?: number;
|
|
81
|
+
detail?: IngestProcessingStepDetail;
|
|
82
|
+
};
|
|
83
|
+
export type IngestProcessingDiskUsage = {
|
|
84
|
+
sourceMb?: number;
|
|
85
|
+
framesMb?: number;
|
|
86
|
+
resultMb?: number;
|
|
87
|
+
totalMb?: number;
|
|
88
|
+
};
|
|
89
|
+
export type IngestProcessingPeakUsage = {
|
|
90
|
+
cpu?: number;
|
|
91
|
+
ram?: number;
|
|
92
|
+
gpuUtil?: number;
|
|
93
|
+
gpuMemDevice?: number;
|
|
94
|
+
gpuMemStep?: number;
|
|
95
|
+
};
|
|
96
|
+
export type IngestProcessingFootprint = {
|
|
97
|
+
disk?: IngestProcessingDiskUsage;
|
|
98
|
+
peak?: IngestProcessingPeakUsage;
|
|
99
|
+
};
|
|
100
|
+
export type IngestProcessingProgress = {
|
|
101
|
+
available: boolean;
|
|
102
|
+
status?: IngestProcessingRunStatus | string;
|
|
103
|
+
processingStatus?: IngestProcessingStatus | string;
|
|
104
|
+
currentStep?: string | null;
|
|
105
|
+
error?: string | null;
|
|
106
|
+
startedAt?: string;
|
|
107
|
+
steps: IngestProcessingStep[];
|
|
108
|
+
footprint?: IngestProcessingFootprint;
|
|
109
|
+
};
|
|
110
|
+
export type IngestTrackedAsset = {
|
|
111
|
+
id: number;
|
|
112
|
+
projectId: string;
|
|
113
|
+
name?: string;
|
|
114
|
+
processingStatus?: IngestProcessingStatus | string;
|
|
115
|
+
};
|
|
41
116
|
export type DroneUploadItem = {
|
|
42
117
|
id: number;
|
|
43
118
|
projectId: string;
|
|
@@ -48,11 +123,14 @@ export type DroneUploadItem = {
|
|
|
48
123
|
modelZip: string;
|
|
49
124
|
orthomosaicZip: string;
|
|
50
125
|
reportPdf: string;
|
|
126
|
+
processingLog: string;
|
|
51
127
|
uploadedBy: string;
|
|
52
128
|
processingStatus: IngestProcessingStatus | string;
|
|
53
129
|
modelCesiumAssetId: string;
|
|
54
130
|
updatedAt: string;
|
|
55
131
|
hasTusLinks: boolean;
|
|
132
|
+
hasSteps: boolean;
|
|
133
|
+
aerialShots: AerialShotItem[];
|
|
56
134
|
};
|
|
57
135
|
export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
|
|
58
136
|
export type DroneQueueResponse = {
|
|
@@ -82,12 +160,21 @@ export type DroneUploadUpdateRequestPayload = {
|
|
|
82
160
|
};
|
|
83
161
|
export type CalculateMeasuringOperationRequestPayload = {
|
|
84
162
|
date: DateType;
|
|
85
|
-
points: [
|
|
163
|
+
points: TuplePoint2D[];
|
|
86
164
|
operation: string;
|
|
87
165
|
};
|
|
88
166
|
export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
|
|
89
167
|
date: DateType;
|
|
90
168
|
};
|
|
169
|
+
export type AerialShotItem = {
|
|
170
|
+
id: number;
|
|
171
|
+
droneUploadId: number;
|
|
172
|
+
fileLink: string;
|
|
173
|
+
thumbnailLink: string;
|
|
174
|
+
gpsLatitude: string;
|
|
175
|
+
gpsLongitude: string;
|
|
176
|
+
gpsAltitude: string;
|
|
177
|
+
};
|
|
91
178
|
export type InspectionToolRequestPayload = {
|
|
92
179
|
date: DateType;
|
|
93
180
|
gpsAltitude: string;
|
package/dist/api/types/kit.d.ts
CHANGED
|
@@ -21,6 +21,38 @@ export type Kit = {
|
|
|
21
21
|
tags: Tag[];
|
|
22
22
|
storages: KitStorage[];
|
|
23
23
|
createdAt: string;
|
|
24
|
+
decommissionedAt?: string;
|
|
25
|
+
deletedAt?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare enum KitSupportCheckId {
|
|
28
|
+
RouterSmsRoundTrip = "router_sms_round_trip",
|
|
29
|
+
NvrRecordingAllCameras = "nvr_recording_all_cameras",
|
|
30
|
+
NvrRecordingThirdStream = "nvr_recording_third_stream",
|
|
31
|
+
CamerasHaveDeviceId = "cameras_have_device_id",
|
|
32
|
+
CamerasRecording = "cameras_recording",
|
|
33
|
+
CamerasSdCardMounted = "cameras_sd_card_mounted",
|
|
34
|
+
BatteryReadings = "battery_readings"
|
|
35
|
+
}
|
|
36
|
+
export declare enum KitSupportCheckStatus {
|
|
37
|
+
Passed = "passed",
|
|
38
|
+
Failed = "failed",
|
|
39
|
+
Skipped = "skipped"
|
|
40
|
+
}
|
|
41
|
+
export type KitSupportCheck = {
|
|
42
|
+
id: KitSupportCheckId;
|
|
43
|
+
name: string;
|
|
44
|
+
status: KitSupportCheckStatus;
|
|
45
|
+
error: string | null;
|
|
46
|
+
};
|
|
47
|
+
export type KitSupportChecklist = {
|
|
48
|
+
checks: KitSupportCheck[];
|
|
49
|
+
};
|
|
50
|
+
export type KitDiagnosticRun = {
|
|
51
|
+
kitId: number;
|
|
52
|
+
kitSerial: string;
|
|
53
|
+
checks: KitSupportCheck[];
|
|
54
|
+
ranAt: string;
|
|
55
|
+
isSeen: boolean;
|
|
24
56
|
};
|
|
25
57
|
export declare enum KitStatus {
|
|
26
58
|
New = "new",
|
|
@@ -45,11 +77,14 @@ export declare enum KitAlarm {
|
|
|
45
77
|
NoHdd = "no_hdd",
|
|
46
78
|
MissingRouterInfo = "missing_router_info",
|
|
47
79
|
AcFailure = "ac_failure",
|
|
48
|
-
LowBattery = "low_battery"
|
|
80
|
+
LowBattery = "low_battery",
|
|
81
|
+
GeneratorOff = "generator_off"
|
|
49
82
|
}
|
|
50
83
|
export declare enum KitMetricId {
|
|
51
84
|
SolarCharger = "solar_charger",
|
|
52
|
-
PanelPower = "panel_power"
|
|
85
|
+
PanelPower = "panel_power",
|
|
86
|
+
Fan = "fan",
|
|
87
|
+
FanTemperature = "fan_temperature"
|
|
53
88
|
}
|
|
54
89
|
export declare enum KitMetricPeriod {
|
|
55
90
|
Last15Minutes = "now-15m",
|
|
@@ -115,55 +150,6 @@ export declare enum KitChartType {
|
|
|
115
150
|
TimeSeries = "timeseries",
|
|
116
151
|
BarChart = "barchart"
|
|
117
152
|
}
|
|
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
153
|
export type GrafanaTimeSeriesValue = number | string | null;
|
|
168
154
|
export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
|
|
169
155
|
export type GrafanaFieldConfig = {
|
|
@@ -312,6 +298,12 @@ export type KitMetricStatsEntry = {
|
|
|
312
298
|
panelVoltage: number;
|
|
313
299
|
panelPower: number;
|
|
314
300
|
};
|
|
301
|
+
export type KitFanStatsEntry = {
|
|
302
|
+
timestamp: string;
|
|
303
|
+
speed: number;
|
|
304
|
+
internalTemperature: number;
|
|
305
|
+
externalTemperature: number | null;
|
|
306
|
+
};
|
|
315
307
|
export type KitUpdatePayload = {
|
|
316
308
|
countryId: number;
|
|
317
309
|
name: string;
|
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
|
+
};
|
|
@@ -43,7 +43,8 @@ export declare enum MediaFileType {
|
|
|
43
43
|
Mp4 = "mp4",
|
|
44
44
|
Png = "png",
|
|
45
45
|
Pdf = "pdf",
|
|
46
|
-
Jpeg = "jpeg"
|
|
46
|
+
Jpeg = "jpeg",
|
|
47
|
+
Csv = "csv"
|
|
47
48
|
}
|
|
48
49
|
export declare enum MediaStatus {
|
|
49
50
|
Pending = "Pending",
|
|
@@ -93,7 +94,7 @@ export type MediaCreateRequestPayload = {
|
|
|
93
94
|
cameraExid?: string;
|
|
94
95
|
requestedBy?: string;
|
|
95
96
|
notes?: string;
|
|
96
|
-
category?: ClipsCategory;
|
|
97
|
+
category?: MediaCategory | ClipsCategory;
|
|
97
98
|
isUrgent?: boolean;
|
|
98
99
|
storeAsType?: MediaType;
|
|
99
100
|
};
|
|
@@ -108,6 +109,10 @@ export declare enum ClipsCategory {
|
|
|
108
109
|
Marketing = "marketing",
|
|
109
110
|
BestPracticies = "best_practices"
|
|
110
111
|
}
|
|
112
|
+
export declare enum MediaCategory {
|
|
113
|
+
Weather = "weather",
|
|
114
|
+
SmartSearch = "smart_search"
|
|
115
|
+
}
|
|
111
116
|
export type MediaDeleteRequestPayload = {
|
|
112
117
|
timelapseIds: (string | number)[];
|
|
113
118
|
compareIds: (string | number)[];
|
|
@@ -1,11 +1,32 @@
|
|
|
1
|
+
import { CommentsScope, CommentThreeSixtyContext } from "./comments";
|
|
1
2
|
export declare enum NotificationType {
|
|
2
3
|
CameraShare = "camera_share",
|
|
3
4
|
CameraStatusChange = "camera_status_changed",
|
|
4
5
|
Mention = "mention",
|
|
6
|
+
CommentMention = "comment_mention",
|
|
5
7
|
TimelapseCreated = "timelapse_created",
|
|
6
8
|
TimelapseFailed = "timelapse_failed",
|
|
7
9
|
DroneProcessing = "drone_processing_done",
|
|
8
|
-
Processing360 = "three_sixty_done"
|
|
10
|
+
Processing360 = "three_sixty_done",
|
|
11
|
+
SmartSearchExportReady = "smart_search_export_ready",
|
|
12
|
+
SmartSearchExportFailed = "smart_search_export_failed",
|
|
13
|
+
GateReportExportReady = "gate_report_export_ready",
|
|
14
|
+
GateReportExportFailed = "gate_report_export_failed",
|
|
15
|
+
PpeExportReady = "ppe_export_ready",
|
|
16
|
+
PpeExportFailed = "ppe_export_failed",
|
|
17
|
+
WeatherExportReady = "weather_export_ready",
|
|
18
|
+
WeatherExportFailed = "weather_export_failed",
|
|
19
|
+
CompareReady = "compare_ready",
|
|
20
|
+
CompareFailed = "compare_failed",
|
|
21
|
+
ClipExportReady = "clip_export_ready",
|
|
22
|
+
ClipExportFailed = "clip_export_failed",
|
|
23
|
+
NvrClipReady = "nvr_clip_ready",
|
|
24
|
+
NvrClipFailed = "nvr_clip_failed",
|
|
25
|
+
UploadComplete = "upload_complete",
|
|
26
|
+
UploadFailed = "upload_failed",
|
|
27
|
+
RingCamerasImported = "ring_cameras_imported",
|
|
28
|
+
StorageWarning = "storage_warning",
|
|
29
|
+
Other = "other"
|
|
9
30
|
}
|
|
10
31
|
export interface NotificationContextBase {
|
|
11
32
|
cameraExid?: string;
|
|
@@ -41,7 +62,36 @@ export interface Processing360Context extends NotificationContextBase {
|
|
|
41
62
|
date: string;
|
|
42
63
|
floor: string;
|
|
43
64
|
}
|
|
44
|
-
export
|
|
65
|
+
export interface ExportNotificationContext extends NotificationContextBase {
|
|
66
|
+
projectExid: string;
|
|
67
|
+
archiveExid?: string;
|
|
68
|
+
compareExid?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface UploadNotificationContext extends NotificationContextBase {
|
|
71
|
+
projectExid: string;
|
|
72
|
+
}
|
|
73
|
+
export interface RingCamerasImportedContext extends NotificationContextBase {
|
|
74
|
+
projectExid: string;
|
|
75
|
+
projectName: string;
|
|
76
|
+
cameras: Array<{
|
|
77
|
+
exid: string;
|
|
78
|
+
name: string;
|
|
79
|
+
}>;
|
|
80
|
+
}
|
|
81
|
+
export interface StorageWarningContext extends NotificationContextBase {
|
|
82
|
+
projectExid: string;
|
|
83
|
+
cameraName: string;
|
|
84
|
+
}
|
|
85
|
+
export interface CommentMentionContext extends NotificationContextBase {
|
|
86
|
+
projectExid: string;
|
|
87
|
+
commentId: number;
|
|
88
|
+
scope: CommentsScope;
|
|
89
|
+
commentContext: CommentThreeSixtyContext;
|
|
90
|
+
content?: string;
|
|
91
|
+
label?: string;
|
|
92
|
+
projectName?: string;
|
|
93
|
+
}
|
|
94
|
+
export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext | CommentMentionContext;
|
|
45
95
|
export type Notification = {
|
|
46
96
|
id: number;
|
|
47
97
|
type: NotificationType;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import type { VisionProvider } from "@evercam/api/types";
|
|
2
|
+
export declare enum ObservationEventStatus {
|
|
3
|
+
Detected = "detected",
|
|
4
|
+
Approved = "approved",
|
|
5
|
+
Disapproved = "disapproved",
|
|
6
|
+
Unsure = "unsure"
|
|
7
|
+
}
|
|
8
|
+
export interface ObservationEventStatusConfig {
|
|
9
|
+
bg: string;
|
|
10
|
+
fg: string;
|
|
11
|
+
border: string;
|
|
12
|
+
label: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const OBSERVATION_EVENT_STATUS_CONFIGS: Record<ObservationEventStatus, ObservationEventStatusConfig>;
|
|
15
|
+
export interface SiteAnalyticsObservationEvent {
|
|
16
|
+
id: number;
|
|
17
|
+
sourceType?: ObservationSourceType;
|
|
18
|
+
sessionId?: string | null;
|
|
19
|
+
markerId?: string | null;
|
|
20
|
+
drawingId?: string | null;
|
|
21
|
+
drawingName?: string | null;
|
|
22
|
+
walkName?: string | null;
|
|
23
|
+
sightings?: Array<Record<string, unknown>> | null;
|
|
24
|
+
observationTypeId: number;
|
|
25
|
+
observationName: string | null;
|
|
26
|
+
observationCode: string | null;
|
|
27
|
+
cameraExid: string;
|
|
28
|
+
projectExid: string | null;
|
|
29
|
+
startTime: string;
|
|
30
|
+
endTime: string | null;
|
|
31
|
+
confidence: number | null;
|
|
32
|
+
status: ObservationEventStatus;
|
|
33
|
+
aiEvidence: string | null;
|
|
34
|
+
bbox: number[] | null;
|
|
35
|
+
model: string | null;
|
|
36
|
+
promptId: number | null;
|
|
37
|
+
observationMetadata: Record<string, unknown> | null;
|
|
38
|
+
trigger: ObservationEventTrigger | string;
|
|
39
|
+
reviewedBy: string | null;
|
|
40
|
+
reviewedAt: string | null;
|
|
41
|
+
insertedAt: string;
|
|
42
|
+
}
|
|
43
|
+
export type ObservationEventQueryParams = {
|
|
44
|
+
cameraExid?: string;
|
|
45
|
+
projectExid?: string;
|
|
46
|
+
observationTypeIds?: string;
|
|
47
|
+
status?: ObservationEventStatus | string;
|
|
48
|
+
sourceType?: ObservationSourceType | string;
|
|
49
|
+
modelName?: string;
|
|
50
|
+
sortBy?: string;
|
|
51
|
+
sortDir?: "asc" | "desc";
|
|
52
|
+
page?: number;
|
|
53
|
+
limit?: number;
|
|
54
|
+
};
|
|
55
|
+
export interface ObservationModelOption {
|
|
56
|
+
modelName: string;
|
|
57
|
+
total: number;
|
|
58
|
+
}
|
|
59
|
+
export interface ObservationEventListResponse {
|
|
60
|
+
items: SiteAnalyticsObservationEvent[];
|
|
61
|
+
total: number;
|
|
62
|
+
page: number;
|
|
63
|
+
limit: number;
|
|
64
|
+
from: number;
|
|
65
|
+
to: number;
|
|
66
|
+
}
|
|
67
|
+
export type ObservationEventVerdict = ObservationEventStatus.Approved | ObservationEventStatus.Disapproved | ObservationEventStatus.Unsure;
|
|
68
|
+
export interface ObservationEventReviewPayload {
|
|
69
|
+
status: ObservationEventVerdict;
|
|
70
|
+
}
|
|
71
|
+
export interface ObservationEventReviewResponse {
|
|
72
|
+
updated: boolean;
|
|
73
|
+
id: number | string;
|
|
74
|
+
message: string;
|
|
75
|
+
}
|
|
76
|
+
export declare enum ObservationSourceType {
|
|
77
|
+
Camera = "camera",
|
|
78
|
+
Walk360 = "walk360",
|
|
79
|
+
Drone = "drone"
|
|
80
|
+
}
|
|
81
|
+
export declare enum ObservationEventTrigger {
|
|
82
|
+
CameraDetection = "camera_detection",
|
|
83
|
+
Walk = "walk"
|
|
84
|
+
}
|
|
85
|
+
export declare enum Walk360ProcessedSessionStatus {
|
|
86
|
+
Done = "done",
|
|
87
|
+
Processing = "processing",
|
|
88
|
+
Retryable = "retryable",
|
|
89
|
+
Error = "error"
|
|
90
|
+
}
|
|
91
|
+
export interface Walk360Activity {
|
|
92
|
+
observationTypeId: number;
|
|
93
|
+
}
|
|
94
|
+
export interface Walk360WorkerInfo {
|
|
95
|
+
coolifyAppId?: string | null;
|
|
96
|
+
workerStatus?: string | null;
|
|
97
|
+
workerIsRunning?: boolean;
|
|
98
|
+
appUrl?: string | null;
|
|
99
|
+
visionProvider?: VisionProvider;
|
|
100
|
+
}
|
|
101
|
+
export interface Walk360Config extends Walk360WorkerInfo {
|
|
102
|
+
projectExid: string;
|
|
103
|
+
enabled: boolean;
|
|
104
|
+
startDate: string | null;
|
|
105
|
+
activities: Walk360Activity[];
|
|
106
|
+
configured: boolean;
|
|
107
|
+
maxParallelWalks?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface Walk360ConfigSummary extends Walk360WorkerInfo {
|
|
110
|
+
projectExid: string;
|
|
111
|
+
projectName?: string | null;
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
startDate: string | null;
|
|
114
|
+
activities: Walk360Activity[];
|
|
115
|
+
maxParallelWalks: number;
|
|
116
|
+
walksDone: number;
|
|
117
|
+
walksProcessing: number;
|
|
118
|
+
walksRetryable: number;
|
|
119
|
+
eventsCreated: number;
|
|
120
|
+
lastProcessedAt: string | null;
|
|
121
|
+
updatedAt: string | null;
|
|
122
|
+
}
|
|
123
|
+
export interface Walk360WorkerAction {
|
|
124
|
+
projectExid: string;
|
|
125
|
+
appUuid: string | null;
|
|
126
|
+
message: string;
|
|
127
|
+
state: string;
|
|
128
|
+
}
|
|
129
|
+
export interface Walk360ProcessedSession {
|
|
130
|
+
id: number;
|
|
131
|
+
projectExid: string;
|
|
132
|
+
sourceType: ObservationSourceType;
|
|
133
|
+
sessionId: string;
|
|
134
|
+
status: Walk360ProcessedSessionStatus;
|
|
135
|
+
markersTotal: number | null;
|
|
136
|
+
markersProcessed: number | null;
|
|
137
|
+
eventsCreated: number | null;
|
|
138
|
+
error: string | null;
|
|
139
|
+
startedAt: string;
|
|
140
|
+
finishedAt: string | null;
|
|
141
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type ProjectExid, type CameraExid, type DateType, type BBox, AiObservationFeasibilityStatus, ObservationEventStatus, DownloadFileType } from "@evercam/api/types";
|
|
2
|
+
export type ObservationApproval = boolean | ObservationEventStatus.Unsure | null;
|
|
3
|
+
export type ObservationEvent = {
|
|
4
|
+
id: number;
|
|
5
|
+
observationTypeId: number;
|
|
6
|
+
observationCode: string | null;
|
|
7
|
+
cameraExid: CameraExid;
|
|
8
|
+
projectExid: ProjectExid | null;
|
|
9
|
+
capturedAt: DateType;
|
|
10
|
+
endTime: DateType | null;
|
|
11
|
+
confidence: number | null;
|
|
12
|
+
status: ObservationEventStatus;
|
|
13
|
+
isApproved: ObservationApproval;
|
|
14
|
+
reason: string | null;
|
|
15
|
+
personBbox: BBox | null;
|
|
16
|
+
modelVersion: string | null;
|
|
17
|
+
observationMetadata: Record<string, unknown> | null;
|
|
18
|
+
trigger: string;
|
|
19
|
+
reviewedBy: string | null;
|
|
20
|
+
reviewedAt: DateType | null;
|
|
21
|
+
};
|
|
22
|
+
export type ObservationType = {
|
|
23
|
+
id: number;
|
|
24
|
+
observationCode: string;
|
|
25
|
+
name: string;
|
|
26
|
+
description: string | null;
|
|
27
|
+
type: string;
|
|
28
|
+
severity: number | null;
|
|
29
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
30
|
+
};
|
|
31
|
+
export declare enum ObservationMissingItem {
|
|
32
|
+
Helmet = "helmet",
|
|
33
|
+
HighVisVest = "high_vis_vest",
|
|
34
|
+
Gloves = "gloves",
|
|
35
|
+
Glasses = "glasses"
|
|
36
|
+
}
|
|
37
|
+
export type ObservationEventsQueryParams = {
|
|
38
|
+
cameraExid?: CameraExid;
|
|
39
|
+
observationCode?: string;
|
|
40
|
+
fromDate?: string;
|
|
41
|
+
toDate?: string;
|
|
42
|
+
missingItems?: string;
|
|
43
|
+
status?: ObservationEventStatus;
|
|
44
|
+
sort?: string;
|
|
45
|
+
page?: number;
|
|
46
|
+
limit?: number;
|
|
47
|
+
};
|
|
48
|
+
export type ObservationEventsExportQueryParams = {
|
|
49
|
+
cameraExid?: CameraExid;
|
|
50
|
+
fromDate: string;
|
|
51
|
+
toDate: string;
|
|
52
|
+
required?: string;
|
|
53
|
+
compliant?: boolean;
|
|
54
|
+
fileType: DownloadFileType;
|
|
55
|
+
directDownload?: boolean;
|
|
56
|
+
includeInvalid?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type ObservationApprovalUpdateResponse = {
|
|
59
|
+
updated: boolean;
|
|
60
|
+
id: number | string | null;
|
|
61
|
+
message: string;
|
|
62
|
+
};
|
|
63
|
+
export declare enum ObservationCountsGranularity {
|
|
64
|
+
Day = "day",
|
|
65
|
+
Week = "week",
|
|
66
|
+
Month = "month"
|
|
67
|
+
}
|
|
68
|
+
export type ObservationEventsCountsQueryParams = {
|
|
69
|
+
cameraExid?: CameraExid;
|
|
70
|
+
observationCode?: string;
|
|
71
|
+
fromDate?: string;
|
|
72
|
+
toDate?: string;
|
|
73
|
+
missingItems?: string;
|
|
74
|
+
status?: ObservationEventStatus;
|
|
75
|
+
granularity?: ObservationCountsGranularity;
|
|
76
|
+
};
|
|
77
|
+
export type ObservationEventCount = {
|
|
78
|
+
bucket: DateType;
|
|
79
|
+
total: number;
|
|
80
|
+
};
|
|
81
|
+
export declare enum ObservationRequiredItem {
|
|
82
|
+
Helmet = "has_helmet",
|
|
83
|
+
HighVisVest = "has_high_vis_vest"
|
|
84
|
+
}
|
|
@@ -1,5 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { GeoPoint, TuplePoint2D } from "./shared";
|
|
2
|
+
import { MapType } from "./map";
|
|
3
|
+
export type PlannerListItem = {
|
|
4
|
+
id: string;
|
|
5
|
+
projectId: string;
|
|
6
|
+
projectName: string;
|
|
7
|
+
projectLocation: string;
|
|
8
|
+
createdDate: string;
|
|
9
|
+
updatedDate: string;
|
|
10
|
+
owner?: string;
|
|
11
|
+
lastUpdatedBy?: string;
|
|
12
|
+
camerasCount?: number;
|
|
13
|
+
hasPlan?: boolean;
|
|
14
|
+
thumbnailUrl?: string;
|
|
15
|
+
projectMapType?: MapType;
|
|
16
|
+
sessionId?: string;
|
|
17
|
+
};
|
|
18
|
+
export type PolygonPath = TuplePoint2D[];
|
|
3
19
|
export type PolygonCoordinates = PolygonPath[];
|
|
4
20
|
export interface GeoJSONPolygon {
|
|
5
21
|
type: "Polygon";
|
|
@@ -13,6 +29,7 @@ export declare enum PlannerUrlParams {
|
|
|
13
29
|
DealId = "deal_id"
|
|
14
30
|
}
|
|
15
31
|
export declare enum EDistortImageModes {
|
|
32
|
+
Edit = "edit",
|
|
16
33
|
FreeRotate = "freeRotate",
|
|
17
34
|
Lock = "lock",
|
|
18
35
|
Rotate = "rotate",
|
|
@@ -35,18 +52,47 @@ export declare enum EPageType {
|
|
|
35
52
|
List = "list",
|
|
36
53
|
Item = "item"
|
|
37
54
|
}
|
|
38
|
-
export declare enum EPaths {
|
|
39
|
-
Home = "/",
|
|
40
|
-
Session = "/session"
|
|
41
|
-
}
|
|
42
|
-
export declare enum EProjectItems {
|
|
43
|
-
Camera = "camera",
|
|
44
|
-
Overlay = "overlay"
|
|
45
|
-
}
|
|
46
55
|
export declare enum ERoles {
|
|
47
56
|
Admin = "admin",
|
|
48
57
|
User = "user"
|
|
49
58
|
}
|
|
59
|
+
export type PlannerOverlay = {
|
|
60
|
+
imageUrl?: string;
|
|
61
|
+
corners?: {
|
|
62
|
+
topLeft: GeoPoint;
|
|
63
|
+
topRight: GeoPoint;
|
|
64
|
+
bottomLeft: GeoPoint;
|
|
65
|
+
bottomRight: GeoPoint;
|
|
66
|
+
} | null;
|
|
67
|
+
};
|
|
68
|
+
export type PlannerCameraMarker = {
|
|
69
|
+
name?: string;
|
|
70
|
+
location?: GeoPoint;
|
|
71
|
+
heading?: number;
|
|
72
|
+
fovAngle?: number;
|
|
73
|
+
fovRadius?: number;
|
|
74
|
+
isVisible?: boolean;
|
|
75
|
+
color?: string;
|
|
76
|
+
};
|
|
77
|
+
export type SitePlanBounds = {
|
|
78
|
+
northEast: GeoPoint;
|
|
79
|
+
southWest: GeoPoint;
|
|
80
|
+
};
|
|
81
|
+
export type SitePlan = {
|
|
82
|
+
id?: string;
|
|
83
|
+
projectId?: string;
|
|
84
|
+
owner?: string;
|
|
85
|
+
lastUpdatedBy?: string;
|
|
86
|
+
projectName?: string;
|
|
87
|
+
projectLocation?: string;
|
|
88
|
+
projectMapType?: EMapTypes;
|
|
89
|
+
projectBounds?: SitePlanBounds;
|
|
90
|
+
overlay?: PlannerOverlay;
|
|
91
|
+
markers?: PlannerCameraMarker[];
|
|
92
|
+
thumbnailUrl?: string;
|
|
93
|
+
createdDate?: string;
|
|
94
|
+
updatedDate?: string;
|
|
95
|
+
};
|
|
50
96
|
export interface IDrawControl {
|
|
51
97
|
_toolbars: {
|
|
52
98
|
draw: {
|