@evercam/api 1.0.0-7fa1a601b → 1.0.0-802693295
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 +216 -13
- package/dist/api/api/adminApi.d.ts +161 -161
- package/dist/api/api/aiApi.d.ts +184 -88
- package/dist/api/api/authzApi.d.ts +29 -17
- package/dist/api/api/client/axios.d.ts +2 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +157 -120
- package/dist/api/api/evercamLabsApi.d.ts +10 -17
- package/dist/api/api/exNvrApi.d.ts +2 -2
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +132 -57
- package/dist/api/api/ptzApi.d.ts +12 -3
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +275 -48
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +85 -0
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +189 -76
- package/dist/api/types/anpr.d.ts +49 -2
- 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 +116 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +65 -3
- package/dist/api/types/axios.d.ts +20 -14
- package/dist/api/types/bim.d.ts +65 -16
- package/dist/api/types/camera.d.ts +323 -199
- package/dist/api/types/comments.d.ts +68 -31
- package/dist/api/types/company.d.ts +53 -6
- package/dist/api/types/compare.d.ts +21 -6
- package/dist/api/types/connector.d.ts +5 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/detections.d.ts +26 -18
- package/dist/api/types/drone.d.ts +95 -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 +51 -169
- 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 +27 -2
- package/dist/api/types/index.d.ts +17 -3
- package/dist/api/types/ingest.d.ts +280 -17
- package/dist/api/types/kit.d.ts +121 -115
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +33 -4
- package/dist/api/types/notification.d.ts +83 -3
- package/dist/api/types/nvr.d.ts +39 -8
- 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 +98 -8
- package/dist/api/types/posthog.d.ts +71 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +42 -25
- package/dist/api/types/project.d.ts +158 -33
- package/dist/api/types/recording.d.ts +9 -15
- package/dist/api/types/recycleBin.d.ts +9 -3
- package/dist/api/types/reports.d.ts +109 -0
- package/dist/api/types/ring.d.ts +53 -0
- 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 +34 -10
- package/dist/api/types/shared.d.ts +47 -30
- package/dist/api/types/shares.d.ts +6 -157
- package/dist/api/types/sim.d.ts +23 -11
- package/dist/api/types/siteAnalytics.d.ts +169 -47
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +99 -14
- 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 +30 -0
- package/dist/api/types/storyblok.d.ts +27 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +7 -11
- package/dist/api/types/user.d.ts +139 -54
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +83 -15
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2545 -1106
- 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 +598 -34
- 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 +10 -3
- package/dist/shared/types/index.d.ts +5 -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 +2 -1
- 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 -157
- package/dist/api/types/storageServers.d.ts +0 -4
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,6 +1,233 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type Vue from "vue";
|
|
2
|
+
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, type ProcoreUserProject, type ProcoreProjectAlbum, type ProcoreObservationType, type AconexUserProject, type AutodeskUserHub, type AutodeskProject, type AutodeskFolder, type ProcoreType, type HammertechProject, type HammertechIssueType, type HammertechPriority, type HammertechClassification, type HammertechFileFieldValue, Tag, TuplePoint2D, CameraStatus } from "@evercam/shared/types";
|
|
3
|
+
import type { _360AssetType, AdminCamera, Camera, AuditLog, AuditLogDetails, AuditLogEntity, AuditLogsParams, DroneComparisonFrames, EvercamStats, ExNvrFootageAvailableStatus, ExNvrMetricId, IngestUploadInitResponse, KitMetricData, JsonValue, PaginationParams, Router, GrafanaMetricResults } from "@evercam/api/types";
|
|
2
4
|
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
3
5
|
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
6
|
+
import { SeriesOptionsType } from "highcharts";
|
|
7
|
+
export type ReorderableCamera = Camera & {
|
|
8
|
+
thumbnailSrc?: string;
|
|
9
|
+
batteryLevel?: {
|
|
10
|
+
voltage: number;
|
|
11
|
+
level: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
color: string;
|
|
14
|
+
} | null;
|
|
15
|
+
};
|
|
16
|
+
export type SelectItem = {
|
|
17
|
+
text: string;
|
|
18
|
+
value: string | number;
|
|
19
|
+
};
|
|
20
|
+
export type RoiProjectGroup = {
|
|
21
|
+
exid: string;
|
|
22
|
+
name: string;
|
|
23
|
+
cameras: AdminCamera[];
|
|
24
|
+
};
|
|
25
|
+
export declare enum IframeMessageType {
|
|
26
|
+
LiveView = "liveView",
|
|
27
|
+
EditSnapshot = "editSnapshot",
|
|
28
|
+
Weather = "weather",
|
|
29
|
+
CameraInfo = "cameraInfo",
|
|
30
|
+
AnalyticsEvent = "analyticsEvent",
|
|
31
|
+
Ready = "ready",
|
|
32
|
+
Info = "info",
|
|
33
|
+
GateReport = "gateReport",
|
|
34
|
+
CreateCompare = "createCompare",
|
|
35
|
+
UploadDrone = "uploadDrone",
|
|
36
|
+
UploadBIM = "uploadBIM",
|
|
37
|
+
History = "history",
|
|
38
|
+
PerformanceScore = "performanceScore",
|
|
39
|
+
ShareLink = "shareLink",
|
|
40
|
+
LoadForgeModel = "loadForgeModel",
|
|
41
|
+
LoadPlannerList = "loadPlannerList",
|
|
42
|
+
SaveProjectBounds = "saveProjectBounds",
|
|
43
|
+
ArchiveComment = "archiveComment",
|
|
44
|
+
UnarchiveComment = "unarchiveComment",
|
|
45
|
+
DeleteComment = "deleteComment",
|
|
46
|
+
CreateComment = "createComment",
|
|
47
|
+
RefreshComments = "refreshComments",
|
|
48
|
+
CommentSyncFailed = "commentSyncFailed",
|
|
49
|
+
Load360Gallery = "load360Gallery",
|
|
50
|
+
Upload360 = "upload360",
|
|
51
|
+
FetchForgeToken = "FetchForgeToken",
|
|
52
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
53
|
+
ShowBimUploadChoice = "showBimUploadChoice",
|
|
54
|
+
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
55
|
+
Fetch360DrawingIds = "fetch360DrawingIds",
|
|
56
|
+
DrawingIdsResponse = "drawingIdsResponse",
|
|
57
|
+
CloseCameraMarkerPreview = "CloseCameraMarkerPreview",
|
|
58
|
+
ChatInit = "chatInit",
|
|
59
|
+
ChatToken = "chatToken",
|
|
60
|
+
ChatContext = "chatContext",
|
|
61
|
+
ChatTheme = "chatTheme",
|
|
62
|
+
ChatNavigate = "chatNavigate",
|
|
63
|
+
ChatConversations = "chatConversations",
|
|
64
|
+
ChatOpenConversation = "chatOpenConversation",
|
|
65
|
+
ChatNewConversation = "chatNewConversation",
|
|
66
|
+
ChatRenameConversation = "chatRenameConversation",
|
|
67
|
+
ChatDeleteConversation = "chatDeleteConversation",
|
|
68
|
+
ChatOpenWalkMarker = "chatOpenWalkMarker",
|
|
69
|
+
ChatOpenView = "chatOpenView",
|
|
70
|
+
ChatOpenSearch = "chatOpenSearch",
|
|
71
|
+
ChatWorkspace = "chatWorkspace",
|
|
72
|
+
ChatEntityNames = "chatEntityNames",
|
|
73
|
+
ChatNotify = "chatNotify",
|
|
74
|
+
ProjectMembers = "projectMembers",
|
|
75
|
+
FocusComment = "focusComment",
|
|
76
|
+
ShareByEmail = "shareByEmail"
|
|
77
|
+
}
|
|
78
|
+
export declare enum ChatTheme {
|
|
79
|
+
Dark = "dark",
|
|
80
|
+
Light = "light"
|
|
81
|
+
}
|
|
82
|
+
export type ChatUser = {
|
|
83
|
+
email: string;
|
|
84
|
+
name: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* The dashboard's answer to the frame's `Ready`.
|
|
88
|
+
*
|
|
89
|
+
* The token travels here and nowhere else — never in the iframe URL, which
|
|
90
|
+
* would land it in history, referrers and logs.
|
|
91
|
+
*/
|
|
92
|
+
export type ChatInitPayload = {
|
|
93
|
+
token: string;
|
|
94
|
+
user: ChatUser;
|
|
95
|
+
theme: ChatTheme;
|
|
96
|
+
timezone: string;
|
|
97
|
+
};
|
|
98
|
+
/** Pushed on rotation. A frame holding a mount-time token 401s the moment it changes. */
|
|
99
|
+
export type ChatTokenPayload = {
|
|
100
|
+
token: string;
|
|
101
|
+
};
|
|
102
|
+
/** Pushed on every dashboard route change. */
|
|
103
|
+
export type ChatContextPayload = {
|
|
104
|
+
pageId: string;
|
|
105
|
+
projectExid: string | null;
|
|
106
|
+
projectName: string | null;
|
|
107
|
+
cameraExid: string | null;
|
|
108
|
+
timezone: string;
|
|
109
|
+
/**
|
|
110
|
+
* A conversation to open, from `?chat=` on the dashboard's URL.
|
|
111
|
+
*
|
|
112
|
+
* Deep-linking lives in the *context* rather than in a message of its own
|
|
113
|
+
* because it is exactly that — a fact about where the host currently is, sent
|
|
114
|
+
* on every route change alongside the project and page. `null` means "no
|
|
115
|
+
* opinion", which is what every other page sends.
|
|
116
|
+
*/
|
|
117
|
+
chatId: string | null;
|
|
118
|
+
/** A Reports page to open, from `?view=`, the same way. */
|
|
119
|
+
view?: ChatView | null;
|
|
120
|
+
/** A report to open, from `?report=`. */
|
|
121
|
+
reportId?: string | null;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Exid → name for every camera and project the host already holds, so the frame
|
|
125
|
+
* can show names instead of exids without fetching them again.
|
|
126
|
+
*/
|
|
127
|
+
export type ChatEntityNamesPayload = {
|
|
128
|
+
cameras: Record<string, string>;
|
|
129
|
+
projects: Record<string, string>;
|
|
130
|
+
};
|
|
131
|
+
export type ChatThemePayload = {
|
|
132
|
+
theme: ChatTheme;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* A page id plus params, never a route string — the dashboard owns the
|
|
136
|
+
* id → route mapping.
|
|
137
|
+
*/
|
|
138
|
+
export type ChatNavigatePayload = {
|
|
139
|
+
pageId: string;
|
|
140
|
+
params: Record<string, string>;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Open a 360-walk marker in the 360 viewer, facing one view.
|
|
144
|
+
*
|
|
145
|
+
* Sent by Chat when a `WalkView` in an answer is clicked. The dashboard opens the
|
|
146
|
+
* 360 app in its own dialog (`Walk360Preview`), outside the chat frame, so the
|
|
147
|
+
* viewer gets the whole screen. `walkName` and `walkDate` are how the 360 app
|
|
148
|
+
* knows a walk (its `floor` and `date` URL params); `camera` is the viewer's own
|
|
149
|
+
* azimuth/polar angles for that view, or null to open at the marker's default.
|
|
150
|
+
*/
|
|
151
|
+
export type ChatOpenWalkMarkerPayload = {
|
|
152
|
+
projectExid: string;
|
|
153
|
+
walkId: string;
|
|
154
|
+
walkName: string;
|
|
155
|
+
walkDate: string;
|
|
156
|
+
markerId: string;
|
|
157
|
+
view: string;
|
|
158
|
+
camera: {
|
|
159
|
+
azimuthAngle: number;
|
|
160
|
+
polarAngle: number;
|
|
161
|
+
} | null;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* One conversation, as the dashboard's sidebar needs it.
|
|
165
|
+
*
|
|
166
|
+
* A deliberate projection of the engine's `ChatSession` — a label and a
|
|
167
|
+
* timestamp, nothing else. The transcript stays in the frame: mirroring `turns`
|
|
168
|
+
* would put every message of every conversation on the bridge each time the list
|
|
169
|
+
* changed, to render a row that shows neither.
|
|
170
|
+
*/
|
|
171
|
+
export type ChatSessionSummary = {
|
|
172
|
+
id: string;
|
|
173
|
+
title: string | null;
|
|
174
|
+
updatedAt: string;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* The frame's conversation list, mirrored up for the left sidebar to draw.
|
|
178
|
+
*
|
|
179
|
+
* The frame stays the single owner of this data — it holds the engine client and
|
|
180
|
+
* the bearer. The host renders and sends intent back; it never fetches.
|
|
181
|
+
*/
|
|
182
|
+
export type ChatConversationsPayload = {
|
|
183
|
+
sessions: ChatSessionSummary[];
|
|
184
|
+
openId: string | null;
|
|
185
|
+
isLoading: boolean;
|
|
186
|
+
};
|
|
187
|
+
export type ChatOpenConversationPayload = {
|
|
188
|
+
id: string;
|
|
189
|
+
};
|
|
190
|
+
/** The frame's top-level views. A report page belongs to whichever list opened it. */
|
|
191
|
+
export declare enum ChatView {
|
|
192
|
+
Chat = "chat",
|
|
193
|
+
Inbox = "inbox",
|
|
194
|
+
SavedReports = "savedReports",
|
|
195
|
+
Explore = "explore",
|
|
196
|
+
Report = "report"
|
|
197
|
+
}
|
|
198
|
+
/** Host → frame: show one of the Reports pages, or the chat. */
|
|
199
|
+
export type ChatOpenViewPayload = {
|
|
200
|
+
view: ChatView;
|
|
201
|
+
};
|
|
202
|
+
export declare enum ChatNotifyTone {
|
|
203
|
+
Success = "success",
|
|
204
|
+
Error = "error",
|
|
205
|
+
Info = "info"
|
|
206
|
+
}
|
|
207
|
+
/** Frame → host: a notification the host shows the way it shows its own. */
|
|
208
|
+
export type ChatNotifyPayload = {
|
|
209
|
+
text: string;
|
|
210
|
+
tone: ChatNotifyTone;
|
|
211
|
+
};
|
|
212
|
+
/**
|
|
213
|
+
* Frame → host: what the sidebar's Reports group needs — which entry is active
|
|
214
|
+
* and the two counts it shows. Like `ChatConversationsPayload`, a projection:
|
|
215
|
+
* the reports themselves stay in the frame.
|
|
216
|
+
*/
|
|
217
|
+
export type ChatWorkspacePayload = {
|
|
218
|
+
view: ChatView;
|
|
219
|
+
/** The report open on its own page, or null. */
|
|
220
|
+
reportId?: string | null;
|
|
221
|
+
unreadCount: number;
|
|
222
|
+
savedCount: number;
|
|
223
|
+
};
|
|
224
|
+
export type ChatRenameConversationPayload = {
|
|
225
|
+
id: string;
|
|
226
|
+
title: string;
|
|
227
|
+
};
|
|
228
|
+
export type ChatDeleteConversationPayload = {
|
|
229
|
+
id: string;
|
|
230
|
+
};
|
|
4
231
|
export declare enum NavigationArrow {
|
|
5
232
|
Previous = "previous",
|
|
6
233
|
Next = "next"
|
|
@@ -10,31 +237,12 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
10
237
|
Bim = "BIM",
|
|
11
238
|
Snapshot = "snapshot",
|
|
12
239
|
The360 = "360",
|
|
13
|
-
The360Gallery = "360 Gallery",
|
|
14
240
|
Planner = "Planner"
|
|
15
241
|
}
|
|
16
242
|
export declare enum PlayerMode {
|
|
17
243
|
Video = "video",
|
|
18
244
|
Jpegs = "jpegs"
|
|
19
245
|
}
|
|
20
|
-
export type TasksStatusMap = {
|
|
21
|
-
[key: string]: TaskStatus;
|
|
22
|
-
};
|
|
23
|
-
export type TaskProgressItem = {
|
|
24
|
-
status: TaskStatus;
|
|
25
|
-
description: string;
|
|
26
|
-
percentDone?: number;
|
|
27
|
-
duration?: number;
|
|
28
|
-
};
|
|
29
|
-
export type GlobalSearchMatch = {
|
|
30
|
-
path: Array<string>;
|
|
31
|
-
value: string | number | boolean;
|
|
32
|
-
};
|
|
33
|
-
export type GlobalSearchResult = {
|
|
34
|
-
index: number;
|
|
35
|
-
matches: Array<GlobalSearchMatch>;
|
|
36
|
-
};
|
|
37
|
-
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
38
246
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
39
247
|
precision?: TimelinePrecision;
|
|
40
248
|
labels?: string[];
|
|
@@ -48,13 +256,6 @@ export type TimelinePlayerGroupConfig = {
|
|
|
48
256
|
export type TimelinePlayerConfig = {
|
|
49
257
|
[groupName: string]: TimelinePlayerGroupConfig;
|
|
50
258
|
};
|
|
51
|
-
export type TimelinePlayerTooltipItem = {
|
|
52
|
-
label?: string;
|
|
53
|
-
title?: string;
|
|
54
|
-
thumbnailUrl: string;
|
|
55
|
-
placeholderThumbnailUrl?: string;
|
|
56
|
-
fallbackThumbnailUrl?: string;
|
|
57
|
-
};
|
|
58
259
|
export declare enum TimelineGroupId {
|
|
59
260
|
ThreeSixty = "w360",
|
|
60
261
|
Drone = "drone",
|
|
@@ -84,6 +285,12 @@ export type TimelineMediaHubItemsByType = {
|
|
|
84
285
|
timelapse?: Media[];
|
|
85
286
|
xRay?: Media[];
|
|
86
287
|
};
|
|
288
|
+
export type KitMetricChartData = KitMetricData & {
|
|
289
|
+
results?: GrafanaMetricResults;
|
|
290
|
+
stats?: EvercamStats[];
|
|
291
|
+
metricId?: ExNvrMetricId;
|
|
292
|
+
value?: number;
|
|
293
|
+
};
|
|
87
294
|
export declare enum HighchartsStackingBehavior {
|
|
88
295
|
Overlap = "overlap",
|
|
89
296
|
Normal = "normal",
|
|
@@ -124,8 +331,8 @@ export type LeaderLineOptions = {
|
|
|
124
331
|
startPlugSize?: number;
|
|
125
332
|
endPlugSize?: number;
|
|
126
333
|
path?: LeaderLinesPathType;
|
|
127
|
-
startSocketGravity?:
|
|
128
|
-
endSocketGravity?:
|
|
334
|
+
startSocketGravity?: TuplePoint2D;
|
|
335
|
+
endSocketGravity?: TuplePoint2D;
|
|
129
336
|
dash?: {
|
|
130
337
|
animation: boolean | {
|
|
131
338
|
duration: number;
|
|
@@ -142,10 +349,6 @@ export type LineConfig = {
|
|
|
142
349
|
end: CssSelector | CssSelector[];
|
|
143
350
|
options?: LeaderLineOptions;
|
|
144
351
|
};
|
|
145
|
-
export type Point = {
|
|
146
|
-
x: number;
|
|
147
|
-
y: number;
|
|
148
|
-
};
|
|
149
352
|
export declare enum ZohoDeskTicketStatus {
|
|
150
353
|
Closed = "Closed",
|
|
151
354
|
OnHold = "On Hold",
|
|
@@ -156,11 +359,14 @@ export type TagSelectorItem = Tag & {
|
|
|
156
359
|
};
|
|
157
360
|
export declare enum FormSchemaComponents {
|
|
158
361
|
SelectField = "SelectField",
|
|
362
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
159
363
|
MultiOption = "MultiOption",
|
|
160
364
|
TextField = "TextField",
|
|
161
|
-
|
|
365
|
+
SwitchField = "SwitchField",
|
|
366
|
+
CheckBox = "CheckBoxField",
|
|
162
367
|
Date = "DatePickerInput",
|
|
163
368
|
DateTime = "DateTimeField",
|
|
369
|
+
Time = "TimeField",
|
|
164
370
|
TextArea = "Textarea",
|
|
165
371
|
Search = "Autocomplete",
|
|
166
372
|
ReadOnly = "ReadOnly",
|
|
@@ -175,6 +381,7 @@ export declare enum FormSchemaDataType {
|
|
|
175
381
|
export type FormSchemaOptions = {
|
|
176
382
|
title: string;
|
|
177
383
|
value: string;
|
|
384
|
+
parentId?: string | null;
|
|
178
385
|
};
|
|
179
386
|
export type FormSchemaField = {
|
|
180
387
|
id: string;
|
|
@@ -189,11 +396,368 @@ export type FormSchemaField = {
|
|
|
189
396
|
columns?: number;
|
|
190
397
|
};
|
|
191
398
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
399
|
+
export type DrawingStats = {
|
|
400
|
+
overlay: boolean;
|
|
401
|
+
geolocated: boolean;
|
|
402
|
+
isCalibrated: boolean;
|
|
403
|
+
walks: number;
|
|
404
|
+
markers: number;
|
|
405
|
+
minimodel: number;
|
|
406
|
+
bim: number;
|
|
407
|
+
comments: number;
|
|
408
|
+
lastCapturedDate: string | null;
|
|
409
|
+
};
|
|
192
410
|
export interface ScrollListener {
|
|
193
411
|
element: Element | Window;
|
|
412
|
+
event: "scroll" | "resize";
|
|
194
413
|
handler: () => void;
|
|
195
414
|
}
|
|
196
415
|
export interface LeaderLineInstance {
|
|
197
416
|
remove(): void;
|
|
198
417
|
position(): void;
|
|
199
418
|
}
|
|
419
|
+
export type SnapshotCardItem = {
|
|
420
|
+
label?: string;
|
|
421
|
+
title?: string;
|
|
422
|
+
thumbnailUrl: string;
|
|
423
|
+
placeholderThumbnailUrl?: string;
|
|
424
|
+
fallbackThumbnailUrl?: string;
|
|
425
|
+
};
|
|
426
|
+
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
427
|
+
data: T[];
|
|
428
|
+
};
|
|
429
|
+
export type NotificationTitleSegment = {
|
|
430
|
+
text: string;
|
|
431
|
+
isBold?: boolean;
|
|
432
|
+
};
|
|
433
|
+
export type FormattedNotificationData = {
|
|
434
|
+
title: string;
|
|
435
|
+
titleSegments?: NotificationTitleSegment[];
|
|
436
|
+
link: string;
|
|
437
|
+
thumbnail?: string;
|
|
438
|
+
icon: string;
|
|
439
|
+
excerpt?: string;
|
|
440
|
+
commentTarget?: {
|
|
441
|
+
commentId: number;
|
|
442
|
+
dateId: string | number;
|
|
443
|
+
floorId: string;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
export type FormattedNotification = FormattedNotificationData & {
|
|
447
|
+
date: string;
|
|
448
|
+
read: boolean;
|
|
449
|
+
id: number;
|
|
450
|
+
thumbnailError?: boolean;
|
|
451
|
+
};
|
|
452
|
+
export type ProcoreProjectStepData = {
|
|
453
|
+
project: ProcoreUserProject | null;
|
|
454
|
+
album: ProcoreProjectAlbum | null;
|
|
455
|
+
observationType: ProcoreObservationType | null;
|
|
456
|
+
};
|
|
457
|
+
export type ProcoreUploadFormData = {
|
|
458
|
+
procoreType: ProcoreType;
|
|
459
|
+
project: ProcoreUserProject | null;
|
|
460
|
+
album: ProcoreProjectAlbum | null;
|
|
461
|
+
observationType: ProcoreObservationType | null;
|
|
462
|
+
observationForm: Record<string, string | number | boolean | null>;
|
|
463
|
+
};
|
|
464
|
+
export type AconexUploadFormData = {
|
|
465
|
+
project: AconexUserProject | null;
|
|
466
|
+
form: Record<string, string | number | boolean | null>;
|
|
467
|
+
};
|
|
468
|
+
export type AutodeskUploadFormData = {
|
|
469
|
+
hub: AutodeskUserHub | null;
|
|
470
|
+
project: AutodeskProject | null;
|
|
471
|
+
folder: AutodeskFolder | null;
|
|
472
|
+
};
|
|
473
|
+
export type HammertechUploadFormData = {
|
|
474
|
+
project: HammertechProject | null;
|
|
475
|
+
issueType: HammertechIssueType | null;
|
|
476
|
+
description: string;
|
|
477
|
+
priority: HammertechPriority | null;
|
|
478
|
+
dueDate: string | null;
|
|
479
|
+
classification: HammertechClassification | null;
|
|
480
|
+
locationId: string | null;
|
|
481
|
+
isPositiveObservation: boolean;
|
|
482
|
+
isPhotoForFixRequired: boolean;
|
|
483
|
+
customFieldFormId: string | null;
|
|
484
|
+
customFieldValues: Record<string, unknown>;
|
|
485
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
486
|
+
};
|
|
487
|
+
export interface MediaHubFilters {
|
|
488
|
+
title: string;
|
|
489
|
+
requesterEmail: string | undefined;
|
|
490
|
+
camera: string | undefined;
|
|
491
|
+
type: string;
|
|
492
|
+
fromDate: string;
|
|
493
|
+
toDate: string;
|
|
494
|
+
sortBy: string;
|
|
495
|
+
}
|
|
496
|
+
export interface MediaHubSortParameter {
|
|
497
|
+
label: string;
|
|
498
|
+
value: string;
|
|
499
|
+
}
|
|
500
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
501
|
+
projectName: string;
|
|
502
|
+
};
|
|
503
|
+
export type BimUploadFileResult = {
|
|
504
|
+
url: string;
|
|
505
|
+
title: string;
|
|
506
|
+
fileExtension: string;
|
|
507
|
+
};
|
|
508
|
+
export type CameraCardItem = {
|
|
509
|
+
thumbnail: string;
|
|
510
|
+
title: string;
|
|
511
|
+
exid: string;
|
|
512
|
+
status: CameraStatus;
|
|
513
|
+
disabled: boolean;
|
|
514
|
+
to: string;
|
|
515
|
+
isOffline: boolean;
|
|
516
|
+
isWaiting: boolean;
|
|
517
|
+
isUnderNda: boolean;
|
|
518
|
+
isAdmin: boolean;
|
|
519
|
+
batteryVoltage: number | null;
|
|
520
|
+
};
|
|
521
|
+
export type ThreeSixtyGalleryView = "drawings" | "walks";
|
|
522
|
+
export interface ThreeSixtyWalk {
|
|
523
|
+
id: string;
|
|
524
|
+
name: string;
|
|
525
|
+
date: string;
|
|
526
|
+
monthKey: string;
|
|
527
|
+
color: string;
|
|
528
|
+
dateId: string;
|
|
529
|
+
floorId: string;
|
|
530
|
+
commentCount: number;
|
|
531
|
+
hasBim: boolean;
|
|
532
|
+
hasMinimodel: boolean;
|
|
533
|
+
}
|
|
534
|
+
export interface ThreeSixtyWalkGroup {
|
|
535
|
+
date: string;
|
|
536
|
+
walks: ThreeSixtyWalk[];
|
|
537
|
+
}
|
|
538
|
+
export type ThreeSixtyMediaDownloadOption = {
|
|
539
|
+
type: _360AssetType;
|
|
540
|
+
title: string;
|
|
541
|
+
icon: string;
|
|
542
|
+
};
|
|
543
|
+
export type DrawingSelection = {
|
|
544
|
+
pageNumber: number;
|
|
545
|
+
size: number;
|
|
546
|
+
thumbnail: string | null;
|
|
547
|
+
pageCount: number;
|
|
548
|
+
};
|
|
549
|
+
export type CommentCardComment = {
|
|
550
|
+
id?: number | string;
|
|
551
|
+
content?: string;
|
|
552
|
+
createdAt?: string;
|
|
553
|
+
archivedAt?: string;
|
|
554
|
+
creatorName?: string;
|
|
555
|
+
label?: string;
|
|
556
|
+
timestamp?: string;
|
|
557
|
+
cameraExid?: string;
|
|
558
|
+
position3d?: number[];
|
|
559
|
+
canDelete?: boolean;
|
|
560
|
+
};
|
|
561
|
+
export type ErrorPageParams = {
|
|
562
|
+
statusCode: number;
|
|
563
|
+
message: string;
|
|
564
|
+
homePageLink?: boolean;
|
|
565
|
+
};
|
|
566
|
+
export declare enum AuditLogDetailsView {
|
|
567
|
+
Diff = "diff",
|
|
568
|
+
OfflineMessage = "offlineMessage",
|
|
569
|
+
Delete = "delete",
|
|
570
|
+
Create = "create",
|
|
571
|
+
NvrDeviceSettings = "nvrDeviceSettings",
|
|
572
|
+
RouterDeviceSettings = "routerDeviceSettings"
|
|
573
|
+
}
|
|
574
|
+
export type AuditLogDetailsCell = AuditLogDetails[keyof AuditLogDetails] | JsonValue;
|
|
575
|
+
export type AuditLogDetailsRow = {
|
|
576
|
+
key: string;
|
|
577
|
+
cells: AuditLogDetailsCell[];
|
|
578
|
+
isJsonFormatted?: boolean;
|
|
579
|
+
isScopeList?: boolean;
|
|
580
|
+
rowClass?: string;
|
|
581
|
+
};
|
|
582
|
+
export type AuditLogDetailsTable = {
|
|
583
|
+
headers: {
|
|
584
|
+
text: string;
|
|
585
|
+
width?: string;
|
|
586
|
+
}[];
|
|
587
|
+
rows: AuditLogDetailsRow[];
|
|
588
|
+
};
|
|
589
|
+
export type AuditLogAuthMethodView = {
|
|
590
|
+
icon: string;
|
|
591
|
+
label: string;
|
|
592
|
+
tooltip: string;
|
|
593
|
+
};
|
|
594
|
+
export type AuditLogLinkEntity = AuditLogEntity.Cameras | AuditLogEntity.Projects | AuditLogEntity.Routers | AuditLogEntity.Users | AuditLogEntity.Sims;
|
|
595
|
+
export type AuditLogRow = AuditLog & {
|
|
596
|
+
canExpand: boolean;
|
|
597
|
+
authMethod: AuditLogAuthMethodView | null;
|
|
598
|
+
};
|
|
599
|
+
export type AuditLogsReportParams = PaginationParams & Partial<AuditLogsParams>;
|
|
600
|
+
export declare enum ShareByEmailKind {
|
|
601
|
+
Drone = "drone"
|
|
602
|
+
}
|
|
603
|
+
export declare enum ShareByEmailStatus {
|
|
604
|
+
Capturing = "capturing",
|
|
605
|
+
Ready = "ready",
|
|
606
|
+
Failed = "failed"
|
|
607
|
+
}
|
|
608
|
+
export type DroneEmailCapture = Pick<DroneComparisonFrames, "beforeDate" | "afterDate"> & Partial<Pick<DroneComparisonFrames, "beforeImage" | "afterImage">> & {
|
|
609
|
+
status: ShareByEmailStatus;
|
|
610
|
+
error?: string;
|
|
611
|
+
};
|
|
612
|
+
export type QuillEditorInstance = {
|
|
613
|
+
enable: (enabled: boolean) => void;
|
|
614
|
+
root: HTMLElement;
|
|
615
|
+
clipboard: {
|
|
616
|
+
dangerouslyPasteHTML: (index: number, html: string, source?: string) => void;
|
|
617
|
+
};
|
|
618
|
+
deleteText: (index: number, length: number, source?: string) => void;
|
|
619
|
+
getLength: () => number;
|
|
620
|
+
getSelection: (focus?: boolean) => {
|
|
621
|
+
index: number;
|
|
622
|
+
length: number;
|
|
623
|
+
} | null;
|
|
624
|
+
insertEmbed: (index: number, type: string, value: string, source?: string) => void;
|
|
625
|
+
setSelection: (index: number, length?: number) => void;
|
|
626
|
+
};
|
|
627
|
+
export type ValidationObserverRef = Vue & {
|
|
628
|
+
validate: () => Promise<boolean>;
|
|
629
|
+
reset: () => void;
|
|
630
|
+
};
|
|
631
|
+
export type SummaryElementInputOption = {
|
|
632
|
+
name?: string;
|
|
633
|
+
value?: string | number | boolean | null;
|
|
634
|
+
class?: string;
|
|
635
|
+
disabled?: boolean;
|
|
636
|
+
disabledReason?: string;
|
|
637
|
+
};
|
|
638
|
+
export declare enum SummaryElementInputType {
|
|
639
|
+
TextField = "TEXT_FIELD",
|
|
640
|
+
TextArea = "TEXT_AREA",
|
|
641
|
+
SingleSelect = "SINGLE_SELECT"
|
|
642
|
+
}
|
|
643
|
+
export type SummaryElementInput = {
|
|
644
|
+
key?: string;
|
|
645
|
+
label?: string;
|
|
646
|
+
value?: string | number | boolean | null;
|
|
647
|
+
type?: SummaryElementInputType;
|
|
648
|
+
dataset?: SummaryElementInputOption[];
|
|
649
|
+
binds?: Record<string, string | number | boolean>;
|
|
650
|
+
isModel?: boolean;
|
|
651
|
+
isCameraConfig?: boolean;
|
|
652
|
+
isNvrConfig?: boolean;
|
|
653
|
+
isCloudRecording?: boolean;
|
|
654
|
+
isCameraLocation?: boolean;
|
|
655
|
+
cloudRecordingId?: string | number | null;
|
|
656
|
+
};
|
|
657
|
+
export type SimReassignmentAlert = {
|
|
658
|
+
sim: string;
|
|
659
|
+
kitName: string;
|
|
660
|
+
kitId: number;
|
|
661
|
+
kitSerial: string;
|
|
662
|
+
};
|
|
663
|
+
export type CameraStatusTimelineEvent = {
|
|
664
|
+
startDate: string | undefined;
|
|
665
|
+
endDate: string | undefined;
|
|
666
|
+
color: string;
|
|
667
|
+
status: CameraStatus | ExNvrFootageAvailableStatus;
|
|
668
|
+
originalStatus?: CameraStatus;
|
|
669
|
+
};
|
|
670
|
+
export type CameraStatusTimelineEventsGroup = {
|
|
671
|
+
label: string;
|
|
672
|
+
color: string;
|
|
673
|
+
events: CameraStatusTimelineEvent[];
|
|
674
|
+
};
|
|
675
|
+
export type CameraStatusTimelineData = {
|
|
676
|
+
loading: boolean;
|
|
677
|
+
exNvrIntervalsEventsGroup: Record<string, CameraStatusTimelineEventsGroup>;
|
|
678
|
+
cameraStatusEventsGroup: Record<string, CameraStatusTimelineEventsGroup>;
|
|
679
|
+
};
|
|
680
|
+
export type CameraStatusTimelineInterval = {
|
|
681
|
+
startDate: string | undefined;
|
|
682
|
+
endDate: string | undefined;
|
|
683
|
+
};
|
|
684
|
+
export type CameraInstalledMarker = {
|
|
685
|
+
timestamp: string | undefined;
|
|
686
|
+
label: string;
|
|
687
|
+
color: string;
|
|
688
|
+
textColor: string;
|
|
689
|
+
id: string;
|
|
690
|
+
};
|
|
691
|
+
export type KitHddInfoField = {
|
|
692
|
+
label: string;
|
|
693
|
+
value: string | undefined;
|
|
694
|
+
};
|
|
695
|
+
export type FootageFormItem = {
|
|
696
|
+
id?: number;
|
|
697
|
+
cameraId?: string;
|
|
698
|
+
cameraExid?: string;
|
|
699
|
+
cameraName?: string;
|
|
700
|
+
startDate?: string | null;
|
|
701
|
+
endDate?: string | null;
|
|
702
|
+
};
|
|
703
|
+
export type LiveViewFrequencyOption = {
|
|
704
|
+
value: number | null;
|
|
705
|
+
name: string;
|
|
706
|
+
disabled?: boolean;
|
|
707
|
+
disabledReason?: string;
|
|
708
|
+
};
|
|
709
|
+
export type CameraSummaryRouterDetails = Partial<Router> & {
|
|
710
|
+
externalHost?: string;
|
|
711
|
+
kitId?: number;
|
|
712
|
+
cameras?: {
|
|
713
|
+
name: string;
|
|
714
|
+
id: number;
|
|
715
|
+
exid: string;
|
|
716
|
+
}[];
|
|
717
|
+
};
|
|
718
|
+
export declare enum ChartType {
|
|
719
|
+
Area = "area",
|
|
720
|
+
Line = "line",
|
|
721
|
+
Column = "column"
|
|
722
|
+
}
|
|
723
|
+
export declare enum ChartZoomType {
|
|
724
|
+
XY = "xy"
|
|
725
|
+
}
|
|
726
|
+
export declare enum AiConfigsPromptsViewMode {
|
|
727
|
+
Grid = "grid",
|
|
728
|
+
Table = "table"
|
|
729
|
+
}
|
|
730
|
+
export type FocusableInputRef = Vue & {
|
|
731
|
+
focus: () => void;
|
|
732
|
+
isFocused: boolean;
|
|
733
|
+
};
|
|
734
|
+
export type MenuSaveRef = Vue & {
|
|
735
|
+
save: (value: string) => void;
|
|
736
|
+
};
|
|
737
|
+
export type RouteTab = {
|
|
738
|
+
label: string;
|
|
739
|
+
to: string;
|
|
740
|
+
disabled: boolean;
|
|
741
|
+
};
|
|
742
|
+
export type ToggleableTableHeader = {
|
|
743
|
+
text: string;
|
|
744
|
+
value: string;
|
|
745
|
+
width?: number;
|
|
746
|
+
sortable?: boolean;
|
|
747
|
+
visible?: boolean;
|
|
748
|
+
};
|
|
749
|
+
export declare enum BatteryChartType {
|
|
750
|
+
BatteryVoltage = "battery-voltage",
|
|
751
|
+
VoltageSummary = "voltage-summary",
|
|
752
|
+
BatteryVoltagesSummary = "battery-voltages-summary"
|
|
753
|
+
}
|
|
754
|
+
export declare enum BatteryReadingsTab {
|
|
755
|
+
Table = 0,
|
|
756
|
+
Graph = 1
|
|
757
|
+
}
|
|
758
|
+
export declare enum SsoStorageKey {
|
|
759
|
+
State = "ssoState",
|
|
760
|
+
Provider = "ssoProvider",
|
|
761
|
+
SourceUrl = "sourceUrlRequestedSso",
|
|
762
|
+
PostSsoRedirectUrl = "postSsoRedirectUrl"
|
|
763
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CustomDataTableFilterType {
|
|
2
|
+
Select = "SelectSearchFilter",
|
|
3
|
+
Text = "TextFieldSearchFilter"
|
|
4
|
+
}
|
|
5
|
+
export interface CustomDataTableFilterField<T = unknown> {
|
|
6
|
+
component: CustomDataTableFilterType;
|
|
7
|
+
attributes?: Record<string, unknown>;
|
|
8
|
+
customFilter?: (item: T, fieldName: string, search: unknown) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export type CustomDataTableFilterFields<T = unknown> = Record<string, CustomDataTableFilterField<T>>;
|