@evercam/api 1.0.0-79849e0e7 → 1.0.0-7e19ed0be
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 +100 -97
- package/dist/api/api/aiApi.d.ts +130 -7
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +52 -33
- package/dist/api/api/evercamLabsApi.d.ts +9 -17
- 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 +56 -34
- 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 +57 -33
- 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 +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 +55 -12
- package/dist/api/types/camera.d.ts +236 -127
- 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 +6 -10
- package/dist/api/types/drone.d.ts +94 -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 +194 -27
- 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 +56 -10
- 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 +69 -22
- package/dist/api/types/recording.d.ts +7 -13
- package/dist/api/types/recycleBin.d.ts +8 -2
- package/dist/api/types/reports.d.ts +109 -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 +63 -10
- 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 +4 -8
- package/dist/api/types/user.d.ts +48 -33
- package/dist/api/types/widget.d.ts +13 -4
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2242 -926
- 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 +506 -46
- 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 +4 -0
- package/dist/shared/types/observations.d.ts +25 -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,11 +1,27 @@
|
|
|
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
|
+
};
|
|
5
16
|
export type SelectItem = {
|
|
6
17
|
text: string;
|
|
7
18
|
value: string | number;
|
|
8
19
|
};
|
|
20
|
+
export type RoiProjectGroup = {
|
|
21
|
+
exid: string;
|
|
22
|
+
name: string;
|
|
23
|
+
cameras: AdminCamera[];
|
|
24
|
+
};
|
|
9
25
|
export declare enum IframeMessageType {
|
|
10
26
|
LiveView = "liveView",
|
|
11
27
|
EditSnapshot = "editSnapshot",
|
|
@@ -31,8 +47,187 @@ export declare enum IframeMessageType {
|
|
|
31
47
|
RefreshComments = "refreshComments",
|
|
32
48
|
CommentSyncFailed = "commentSyncFailed",
|
|
33
49
|
Load360Gallery = "load360Gallery",
|
|
34
|
-
Upload360 = "upload360"
|
|
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"
|
|
35
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
|
+
};
|
|
36
231
|
export declare enum NavigationArrow {
|
|
37
232
|
Previous = "previous",
|
|
38
233
|
Next = "next"
|
|
@@ -42,31 +237,12 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
42
237
|
Bim = "BIM",
|
|
43
238
|
Snapshot = "snapshot",
|
|
44
239
|
The360 = "360",
|
|
45
|
-
The360Gallery = "360 Gallery",
|
|
46
240
|
Planner = "Planner"
|
|
47
241
|
}
|
|
48
242
|
export declare enum PlayerMode {
|
|
49
243
|
Video = "video",
|
|
50
244
|
Jpegs = "jpegs"
|
|
51
245
|
}
|
|
52
|
-
export type TasksStatusMap = {
|
|
53
|
-
[key: string]: TaskStatus;
|
|
54
|
-
};
|
|
55
|
-
export type TaskProgressItem = {
|
|
56
|
-
status: TaskStatus;
|
|
57
|
-
description: string;
|
|
58
|
-
percentDone?: number;
|
|
59
|
-
duration?: number;
|
|
60
|
-
};
|
|
61
|
-
export type GlobalSearchMatch = {
|
|
62
|
-
path: Array<string>;
|
|
63
|
-
value: string | number | boolean;
|
|
64
|
-
};
|
|
65
|
-
export type GlobalSearchResult = {
|
|
66
|
-
index: number;
|
|
67
|
-
matches: Array<GlobalSearchMatch>;
|
|
68
|
-
};
|
|
69
|
-
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
70
246
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
71
247
|
precision?: TimelinePrecision;
|
|
72
248
|
labels?: string[];
|
|
@@ -109,6 +285,12 @@ export type TimelineMediaHubItemsByType = {
|
|
|
109
285
|
timelapse?: Media[];
|
|
110
286
|
xRay?: Media[];
|
|
111
287
|
};
|
|
288
|
+
export type KitMetricChartData = KitMetricData & {
|
|
289
|
+
results?: GrafanaMetricResults;
|
|
290
|
+
stats?: EvercamStats[];
|
|
291
|
+
metricId?: ExNvrMetricId;
|
|
292
|
+
value?: number;
|
|
293
|
+
};
|
|
112
294
|
export declare enum HighchartsStackingBehavior {
|
|
113
295
|
Overlap = "overlap",
|
|
114
296
|
Normal = "normal",
|
|
@@ -149,8 +331,8 @@ export type LeaderLineOptions = {
|
|
|
149
331
|
startPlugSize?: number;
|
|
150
332
|
endPlugSize?: number;
|
|
151
333
|
path?: LeaderLinesPathType;
|
|
152
|
-
startSocketGravity?:
|
|
153
|
-
endSocketGravity?:
|
|
334
|
+
startSocketGravity?: TuplePoint2D;
|
|
335
|
+
endSocketGravity?: TuplePoint2D;
|
|
154
336
|
dash?: {
|
|
155
337
|
animation: boolean | {
|
|
156
338
|
duration: number;
|
|
@@ -167,10 +349,6 @@ export type LineConfig = {
|
|
|
167
349
|
end: CssSelector | CssSelector[];
|
|
168
350
|
options?: LeaderLineOptions;
|
|
169
351
|
};
|
|
170
|
-
export type Point = {
|
|
171
|
-
x: number;
|
|
172
|
-
y: number;
|
|
173
|
-
};
|
|
174
352
|
export declare enum ZohoDeskTicketStatus {
|
|
175
353
|
Closed = "Closed",
|
|
176
354
|
OnHold = "On Hold",
|
|
@@ -181,12 +359,14 @@ export type TagSelectorItem = Tag & {
|
|
|
181
359
|
};
|
|
182
360
|
export declare enum FormSchemaComponents {
|
|
183
361
|
SelectField = "SelectField",
|
|
362
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
184
363
|
MultiOption = "MultiOption",
|
|
185
364
|
TextField = "TextField",
|
|
186
365
|
SwitchField = "SwitchField",
|
|
187
366
|
CheckBox = "CheckBoxField",
|
|
188
367
|
Date = "DatePickerInput",
|
|
189
368
|
DateTime = "DateTimeField",
|
|
369
|
+
Time = "TimeField",
|
|
190
370
|
TextArea = "Textarea",
|
|
191
371
|
Search = "Autocomplete",
|
|
192
372
|
ReadOnly = "ReadOnly",
|
|
@@ -201,6 +381,7 @@ export declare enum FormSchemaDataType {
|
|
|
201
381
|
export type FormSchemaOptions = {
|
|
202
382
|
title: string;
|
|
203
383
|
value: string;
|
|
384
|
+
parentId?: string | null;
|
|
204
385
|
};
|
|
205
386
|
export type FormSchemaField = {
|
|
206
387
|
id: string;
|
|
@@ -215,8 +396,20 @@ export type FormSchemaField = {
|
|
|
215
396
|
columns?: number;
|
|
216
397
|
};
|
|
217
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
|
+
};
|
|
218
410
|
export interface ScrollListener {
|
|
219
411
|
element: Element | Window;
|
|
412
|
+
event: "scroll" | "resize";
|
|
220
413
|
handler: () => void;
|
|
221
414
|
}
|
|
222
415
|
export interface LeaderLineInstance {
|
|
@@ -230,24 +423,25 @@ export type SnapshotCardItem = {
|
|
|
230
423
|
placeholderThumbnailUrl?: string;
|
|
231
424
|
fallbackThumbnailUrl?: string;
|
|
232
425
|
};
|
|
233
|
-
export type DocumentExtended = Document & {
|
|
234
|
-
webkitIsFullScreen?: boolean;
|
|
235
|
-
mozFullScreen?: boolean;
|
|
236
|
-
msFullscreenElement?: Element | null;
|
|
237
|
-
fullscreenElement?: Element;
|
|
238
|
-
webkitFullscreenElement?: Element;
|
|
239
|
-
mozFullScreenElement?: Element;
|
|
240
|
-
};
|
|
241
426
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
242
427
|
data: T[];
|
|
243
428
|
};
|
|
429
|
+
export type NotificationTitleSegment = {
|
|
430
|
+
text: string;
|
|
431
|
+
isBold?: boolean;
|
|
432
|
+
};
|
|
244
433
|
export type FormattedNotificationData = {
|
|
245
434
|
title: string;
|
|
435
|
+
titleSegments?: NotificationTitleSegment[];
|
|
246
436
|
link: string;
|
|
247
437
|
thumbnail?: string;
|
|
248
|
-
icon
|
|
249
|
-
|
|
250
|
-
|
|
438
|
+
icon: string;
|
|
439
|
+
excerpt?: string;
|
|
440
|
+
commentTarget?: {
|
|
441
|
+
commentId: number;
|
|
442
|
+
dateId: string | number;
|
|
443
|
+
floorId: string;
|
|
444
|
+
};
|
|
251
445
|
};
|
|
252
446
|
export type FormattedNotification = FormattedNotificationData & {
|
|
253
447
|
date: string;
|
|
@@ -276,6 +470,20 @@ export type AutodeskUploadFormData = {
|
|
|
276
470
|
project: AutodeskProject | null;
|
|
277
471
|
folder: AutodeskFolder | null;
|
|
278
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
|
+
};
|
|
279
487
|
export interface MediaHubFilters {
|
|
280
488
|
title: string;
|
|
281
489
|
requesterEmail: string | undefined;
|
|
@@ -289,15 +497,267 @@ export interface MediaHubSortParameter {
|
|
|
289
497
|
label: string;
|
|
290
498
|
value: string;
|
|
291
499
|
}
|
|
292
|
-
export type
|
|
293
|
-
|
|
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 = {
|
|
294
743
|
text: string;
|
|
295
|
-
|
|
296
|
-
|
|
744
|
+
value: string;
|
|
745
|
+
width?: number;
|
|
297
746
|
sortable?: boolean;
|
|
298
747
|
visible?: boolean;
|
|
299
|
-
width?: number | string;
|
|
300
|
-
copyable?: boolean;
|
|
301
|
-
toStringFn?: (item: TItem, key: string) => any;
|
|
302
|
-
sort?: (a: unknown, b: unknown) => number;
|
|
303
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>>;
|