@evercam/api 1.0.0-0ddf6c628 → 1.0.0-112ba26f5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +212 -15
- package/dist/api/api/adminApi.d.ts +105 -96
- package/dist/api/api/aiApi.d.ts +131 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +62 -35
- package/dist/api/api/evercamLabsApi.d.ts +9 -18
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +89 -66
- package/dist/api/api/reportsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +178 -86
- package/dist/api/types/admin.d.ts +37 -3
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +66 -37
- package/dist/api/types/anpr.d.ts +36 -6
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +179 -21
- package/dist/api/types/authz.d.ts +72 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +12 -12
- package/dist/api/types/bim.d.ts +55 -12
- package/dist/api/types/camera.d.ts +238 -126
- package/dist/api/types/comments.d.ts +67 -26
- package/dist/api/types/company.d.ts +11 -5
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +9 -10
- 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 +9 -23
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/hdd.d.ts +1 -1
- package/dist/api/types/index.d.ts +11 -2
- package/dist/api/types/ingest.d.ts +200 -20
- package/dist/api/types/kit.d.ts +97 -117
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +31 -3
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/nvr.d.ts +39 -8
- package/dist/api/types/observationEvents.d.ts +167 -0
- package/dist/api/types/observations.d.ts +89 -0
- package/dist/api/types/planner.d.ts +98 -8
- package/dist/api/types/posthog.d.ts +56 -0
- package/dist/api/types/progressPhoto.d.ts +38 -25
- package/dist/api/types/project.d.ts +75 -24
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +108 -0
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/router.d.ts +15 -10
- package/dist/api/types/shared.d.ts +39 -29
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/sim.d.ts +18 -6
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +79 -0
- package/dist/api/types/snapshots.d.ts +98 -13
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/sso.d.ts +11 -37
- package/dist/api/types/storageProvider.d.ts +16 -5
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +6 -9
- package/dist/api/types/user.d.ts +42 -32
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2331 -966
- 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 +530 -43
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +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/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,7 +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";
|
|
4
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
|
+
};
|
|
5
231
|
export declare enum NavigationArrow {
|
|
6
232
|
Previous = "previous",
|
|
7
233
|
Next = "next"
|
|
@@ -11,31 +237,12 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
11
237
|
Bim = "BIM",
|
|
12
238
|
Snapshot = "snapshot",
|
|
13
239
|
The360 = "360",
|
|
14
|
-
The360Gallery = "360 Gallery",
|
|
15
240
|
Planner = "Planner"
|
|
16
241
|
}
|
|
17
242
|
export declare enum PlayerMode {
|
|
18
243
|
Video = "video",
|
|
19
244
|
Jpegs = "jpegs"
|
|
20
245
|
}
|
|
21
|
-
export type TasksStatusMap = {
|
|
22
|
-
[key: string]: TaskStatus;
|
|
23
|
-
};
|
|
24
|
-
export type TaskProgressItem = {
|
|
25
|
-
status: TaskStatus;
|
|
26
|
-
description: string;
|
|
27
|
-
percentDone?: number;
|
|
28
|
-
duration?: number;
|
|
29
|
-
};
|
|
30
|
-
export type GlobalSearchMatch = {
|
|
31
|
-
path: Array<string>;
|
|
32
|
-
value: string | number | boolean;
|
|
33
|
-
};
|
|
34
|
-
export type GlobalSearchResult = {
|
|
35
|
-
index: number;
|
|
36
|
-
matches: Array<GlobalSearchMatch>;
|
|
37
|
-
};
|
|
38
|
-
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
39
246
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
40
247
|
precision?: TimelinePrecision;
|
|
41
248
|
labels?: string[];
|
|
@@ -78,6 +285,12 @@ export type TimelineMediaHubItemsByType = {
|
|
|
78
285
|
timelapse?: Media[];
|
|
79
286
|
xRay?: Media[];
|
|
80
287
|
};
|
|
288
|
+
export type KitMetricChartData = KitMetricData & {
|
|
289
|
+
results?: GrafanaMetricResults;
|
|
290
|
+
stats?: EvercamStats[];
|
|
291
|
+
metricId?: ExNvrMetricId;
|
|
292
|
+
value?: number;
|
|
293
|
+
};
|
|
81
294
|
export declare enum HighchartsStackingBehavior {
|
|
82
295
|
Overlap = "overlap",
|
|
83
296
|
Normal = "normal",
|
|
@@ -118,8 +331,8 @@ export type LeaderLineOptions = {
|
|
|
118
331
|
startPlugSize?: number;
|
|
119
332
|
endPlugSize?: number;
|
|
120
333
|
path?: LeaderLinesPathType;
|
|
121
|
-
startSocketGravity?:
|
|
122
|
-
endSocketGravity?:
|
|
334
|
+
startSocketGravity?: TuplePoint2D;
|
|
335
|
+
endSocketGravity?: TuplePoint2D;
|
|
123
336
|
dash?: {
|
|
124
337
|
animation: boolean | {
|
|
125
338
|
duration: number;
|
|
@@ -136,10 +349,6 @@ export type LineConfig = {
|
|
|
136
349
|
end: CssSelector | CssSelector[];
|
|
137
350
|
options?: LeaderLineOptions;
|
|
138
351
|
};
|
|
139
|
-
export type Point = {
|
|
140
|
-
x: number;
|
|
141
|
-
y: number;
|
|
142
|
-
};
|
|
143
352
|
export declare enum ZohoDeskTicketStatus {
|
|
144
353
|
Closed = "Closed",
|
|
145
354
|
OnHold = "On Hold",
|
|
@@ -150,12 +359,14 @@ export type TagSelectorItem = Tag & {
|
|
|
150
359
|
};
|
|
151
360
|
export declare enum FormSchemaComponents {
|
|
152
361
|
SelectField = "SelectField",
|
|
362
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
153
363
|
MultiOption = "MultiOption",
|
|
154
364
|
TextField = "TextField",
|
|
155
365
|
SwitchField = "SwitchField",
|
|
156
366
|
CheckBox = "CheckBoxField",
|
|
157
367
|
Date = "DatePickerInput",
|
|
158
368
|
DateTime = "DateTimeField",
|
|
369
|
+
Time = "TimeField",
|
|
159
370
|
TextArea = "Textarea",
|
|
160
371
|
Search = "Autocomplete",
|
|
161
372
|
ReadOnly = "ReadOnly",
|
|
@@ -170,6 +381,7 @@ export declare enum FormSchemaDataType {
|
|
|
170
381
|
export type FormSchemaOptions = {
|
|
171
382
|
title: string;
|
|
172
383
|
value: string;
|
|
384
|
+
parentId?: string | null;
|
|
173
385
|
};
|
|
174
386
|
export type FormSchemaField = {
|
|
175
387
|
id: string;
|
|
@@ -184,8 +396,20 @@ export type FormSchemaField = {
|
|
|
184
396
|
columns?: number;
|
|
185
397
|
};
|
|
186
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
|
+
};
|
|
187
410
|
export interface ScrollListener {
|
|
188
411
|
element: Element | Window;
|
|
412
|
+
event: "scroll" | "resize";
|
|
189
413
|
handler: () => void;
|
|
190
414
|
}
|
|
191
415
|
export interface LeaderLineInstance {
|
|
@@ -199,24 +423,25 @@ export type SnapshotCardItem = {
|
|
|
199
423
|
placeholderThumbnailUrl?: string;
|
|
200
424
|
fallbackThumbnailUrl?: string;
|
|
201
425
|
};
|
|
202
|
-
export type DocumentExtended = Document & {
|
|
203
|
-
webkitIsFullScreen?: boolean;
|
|
204
|
-
mozFullScreen?: boolean;
|
|
205
|
-
msFullscreenElement?: Element | null;
|
|
206
|
-
fullscreenElement?: Element;
|
|
207
|
-
webkitFullscreenElement?: Element;
|
|
208
|
-
mozFullScreenElement?: Element;
|
|
209
|
-
};
|
|
210
426
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
211
427
|
data: T[];
|
|
212
428
|
};
|
|
429
|
+
export type NotificationTitleSegment = {
|
|
430
|
+
text: string;
|
|
431
|
+
isBold?: boolean;
|
|
432
|
+
};
|
|
213
433
|
export type FormattedNotificationData = {
|
|
214
434
|
title: string;
|
|
435
|
+
titleSegments?: NotificationTitleSegment[];
|
|
215
436
|
link: string;
|
|
216
437
|
thumbnail?: string;
|
|
217
|
-
icon
|
|
218
|
-
|
|
219
|
-
|
|
438
|
+
icon: string;
|
|
439
|
+
excerpt?: string;
|
|
440
|
+
commentTarget?: {
|
|
441
|
+
commentId: number;
|
|
442
|
+
dateId: string | number;
|
|
443
|
+
floorId: string;
|
|
444
|
+
};
|
|
220
445
|
};
|
|
221
446
|
export type FormattedNotification = FormattedNotificationData & {
|
|
222
447
|
date: string;
|
|
@@ -245,6 +470,20 @@ export type AutodeskUploadFormData = {
|
|
|
245
470
|
project: AutodeskProject | null;
|
|
246
471
|
folder: AutodeskFolder | null;
|
|
247
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
|
+
};
|
|
248
487
|
export interface MediaHubFilters {
|
|
249
488
|
title: string;
|
|
250
489
|
requesterEmail: string | undefined;
|
|
@@ -258,13 +497,261 @@ export interface MediaHubSortParameter {
|
|
|
258
497
|
label: string;
|
|
259
498
|
value: string;
|
|
260
499
|
}
|
|
261
|
-
export type
|
|
262
|
-
|
|
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 = {
|
|
263
743
|
text: string;
|
|
264
|
-
|
|
265
|
-
|
|
744
|
+
value: string;
|
|
745
|
+
width?: number;
|
|
266
746
|
sortable?: boolean;
|
|
267
747
|
visible?: boolean;
|
|
268
|
-
width?: number;
|
|
269
|
-
toStringFn?: (item: TItem, key: string) => any;
|
|
270
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
|
+
}
|
|
@@ -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>>;
|