@evercam/api 1.0.0-ea5c7d976 → 1.0.0-eb137e485

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.
Files changed (156) hide show
  1. package/README.md +4 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +224 -0
  3. package/dist/api/api/adminApi.d.ts +379 -0
  4. package/dist/api/api/aiApi.d.ts +251 -0
  5. package/dist/api/api/authzApi.d.ts +40 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +1 -1
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/api/evercamApi.d.ts +353 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +37 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +2 -2
  14. package/dist/api/api/index.d.ts +14 -0
  15. package/dist/api/api/ingestApi.d.ts +170 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +12 -3
  17. package/dist/api/api/reportsApi.d.ts +15 -0
  18. package/dist/api/api/videoWallApi.d.ts +9 -0
  19. package/dist/api/api/weatherApi.d.ts +9 -0
  20. package/dist/api/index.d.ts +3 -13
  21. package/dist/api/types/360.d.ts +368 -0
  22. package/dist/api/types/aconex.d.ts +143 -0
  23. package/dist/api/types/admin.d.ts +85 -0
  24. package/dist/api/types/aiConfigs.d.ts +244 -0
  25. package/dist/{types → api/types}/analytics.d.ts +265 -96
  26. package/dist/{types → api/types}/anpr.d.ts +57 -13
  27. package/dist/api/types/apiKey.d.ts +70 -0
  28. package/dist/api/types/auditLogs.d.ts +257 -0
  29. package/dist/api/types/authz.d.ts +132 -0
  30. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  31. package/dist/api/types/automation.d.ts +123 -0
  32. package/dist/{types → api/types}/axios.d.ts +32 -11
  33. package/dist/{types → api/types}/bim.d.ts +65 -16
  34. package/dist/api/types/camera.d.ts +660 -0
  35. package/dist/api/types/comments.d.ts +96 -0
  36. package/dist/api/types/company.d.ts +121 -0
  37. package/dist/{types → api/types}/compare.d.ts +21 -6
  38. package/dist/api/types/connector.d.ts +21 -0
  39. package/dist/api/types/coolify.d.ts +36 -0
  40. package/dist/{types → api/types}/countries.d.ts +0 -7
  41. package/dist/{types → api/types}/credentials.d.ts +1 -0
  42. package/dist/api/types/detections.d.ts +120 -0
  43. package/dist/api/types/drone.d.ts +106 -0
  44. package/dist/api/types/emailMessages.d.ts +27 -0
  45. package/dist/{types → api/types}/errors.d.ts +31 -1
  46. package/dist/{types → api/types}/gateReport.d.ts +51 -169
  47. package/dist/api/types/gateReportManagement.d.ts +170 -0
  48. package/dist/api/types/hammertech.d.ts +98 -0
  49. package/dist/{types → api/types}/hdd.d.ts +27 -2
  50. package/dist/{types → api/types}/index.d.ts +23 -4
  51. package/dist/api/types/ingest.d.ts +314 -0
  52. package/dist/{types → api/types}/kit.d.ts +170 -108
  53. package/dist/api/types/map.d.ts +16 -0
  54. package/dist/{types → api/types}/media.d.ts +33 -4
  55. package/dist/api/types/notification.d.ts +107 -0
  56. package/dist/api/types/nvr.d.ts +67 -0
  57. package/dist/api/types/oauth.d.ts +62 -0
  58. package/dist/api/types/observationEvents.d.ts +167 -0
  59. package/dist/api/types/observations.d.ts +89 -0
  60. package/dist/api/types/planner.d.ts +125 -0
  61. package/dist/api/types/posthog.d.ts +89 -0
  62. package/dist/api/types/procore.d.ts +229 -0
  63. package/dist/{types → api/types}/progressPhoto.d.ts +41 -40
  64. package/dist/api/types/project.d.ts +293 -0
  65. package/dist/{types → api/types}/recording.d.ts +10 -16
  66. package/dist/api/types/recycleBin.d.ts +20 -0
  67. package/dist/api/types/reports.d.ts +109 -0
  68. package/dist/api/types/ring.d.ts +53 -0
  69. package/dist/{types → api/types}/roi.d.ts +2 -9
  70. package/dist/{types → api/types}/routeParams.d.ts +5 -2
  71. package/dist/{types → api/types}/router.d.ts +34 -10
  72. package/dist/{types → api/types}/shared.d.ts +48 -36
  73. package/dist/api/types/shares.d.ts +45 -0
  74. package/dist/{types → api/types}/sim.d.ts +23 -11
  75. package/dist/api/types/siteAnalytics.d.ts +285 -0
  76. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  77. package/dist/api/types/siteView.d.ts +80 -0
  78. package/dist/api/types/smartSeach.d.ts +5 -0
  79. package/dist/api/types/snapshots.d.ts +144 -0
  80. package/dist/api/types/socket.d.ts +4 -0
  81. package/dist/api/types/sso.d.ts +29 -0
  82. package/dist/api/types/storageProvider.d.ts +30 -0
  83. package/dist/api/types/storyblok.d.ts +27 -0
  84. package/dist/{types → api/types}/streaming.d.ts +4 -25
  85. package/dist/api/types/systemCheck.d.ts +11 -0
  86. package/dist/{types → api/types}/tag.d.ts +1 -1
  87. package/dist/api/types/time.d.ts +7 -0
  88. package/dist/{types → api/types}/timelapse.d.ts +7 -11
  89. package/dist/{types → api/types}/user.d.ts +143 -59
  90. package/dist/api/types/videoWall.d.ts +66 -0
  91. package/dist/api/types/weather.d.ts +153 -0
  92. package/dist/{types → api/types}/widget.d.ts +108 -19
  93. package/dist/api/types/xweather.d.ts +12 -0
  94. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  95. package/dist/index.d.ts +2 -3
  96. package/dist/index.js +3174 -1147
  97. package/dist/index.js.map +1 -1
  98. package/dist/index.umd.cjs +1 -1
  99. package/dist/index.umd.cjs.map +1 -1
  100. package/dist/shared/api/index.d.ts +3 -0
  101. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  102. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  103. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  104. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  105. package/dist/shared/types/components.d.ts +763 -0
  106. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  107. package/dist/shared/types/droneUpload.d.ts +93 -0
  108. package/dist/shared/types/imagePlayer.d.ts +41 -0
  109. package/dist/shared/types/index.d.ts +9 -0
  110. package/dist/shared/types/observations.d.ts +25 -0
  111. package/dist/shared/types/rbac.d.ts +67 -0
  112. package/dist/shared/types/report.d.ts +107 -0
  113. package/dist/shared/types/timeline.d.ts +10 -0
  114. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  115. package/dist/shared/utils/datePresets.d.ts +31 -0
  116. package/package.json +7 -4
  117. package/dist/api/3dFirebaseApi.d.ts +0 -9
  118. package/dist/api/adminApi.d.ts +0 -313
  119. package/dist/api/aiApi.d.ts +0 -110
  120. package/dist/api/authzApi.d.ts +0 -21
  121. package/dist/api/evercamApi.d.ts +0 -266
  122. package/dist/api/evercamLabsApi.d.ts +0 -46
  123. package/dist/api/ingestApi.d.ts +0 -65
  124. package/dist/api/videoWallApi.d.ts +0 -9
  125. package/dist/api/weatherApi.d.ts +0 -27
  126. package/dist/types/360.d.ts +0 -83
  127. package/dist/types/aconex.d.ts +0 -45
  128. package/dist/types/auditLogs.d.ts +0 -99
  129. package/dist/types/automation.d.ts +0 -6
  130. package/dist/types/camera.d.ts +0 -565
  131. package/dist/types/comments.d.ts +0 -36
  132. package/dist/types/company.d.ts +0 -46
  133. package/dist/types/connector.d.ts +0 -16
  134. package/dist/types/coolify.d.ts +0 -18
  135. package/dist/types/copilot.d.ts +0 -157
  136. package/dist/types/detections.d.ts +0 -76
  137. package/dist/types/devices.d.ts +0 -228
  138. package/dist/types/drone.d.ts +0 -17
  139. package/dist/types/ingest.d.ts +0 -43
  140. package/dist/types/map.d.ts +0 -4
  141. package/dist/types/notification.d.ts +0 -27
  142. package/dist/types/nvr.d.ts +0 -36
  143. package/dist/types/planner.d.ts +0 -28
  144. package/dist/types/procore.d.ts +0 -76
  145. package/dist/types/project.d.ts +0 -119
  146. package/dist/types/shares.d.ts +0 -192
  147. package/dist/types/siteAnalytics.d.ts +0 -84
  148. package/dist/types/snapshots.d.ts +0 -50
  149. package/dist/types/storageServers.d.ts +0 -4
  150. package/dist/types/time.d.ts +0 -19
  151. package/dist/types/vendorModel.d.ts +0 -15
  152. package/dist/types/videoWall.d.ts +0 -33
  153. package/dist/types/weather.d.ts +0 -83
  154. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  155. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  156. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -0,0 +1,763 @@
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";
4
+ import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
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
+ };
231
+ export declare enum NavigationArrow {
232
+ Previous = "previous",
233
+ Next = "next"
234
+ }
235
+ export declare enum WatermarkedImageDownloadOrigin {
236
+ Drone = "drone",
237
+ Bim = "BIM",
238
+ Snapshot = "snapshot",
239
+ The360 = "360",
240
+ Planner = "Planner"
241
+ }
242
+ export declare enum PlayerMode {
243
+ Video = "video",
244
+ Jpegs = "jpegs"
245
+ }
246
+ export type TimelineProviderRequestParams = TimelineDateInterval & {
247
+ precision?: TimelinePrecision;
248
+ labels?: string[];
249
+ trackId?: number;
250
+ };
251
+ export type TimelinePlayerGroupConfig = {
252
+ provider?: TimelineDataProvider;
253
+ events?: Array<TimelineEvent>;
254
+ getChartType?: (precision: TimelinePrecision) => TimelineChartType;
255
+ } & Omit<TimelineEventsGroup, "events">;
256
+ export type TimelinePlayerConfig = {
257
+ [groupName: string]: TimelinePlayerGroupConfig;
258
+ };
259
+ export declare enum TimelineGroupId {
260
+ ThreeSixty = "w360",
261
+ Drone = "drone",
262
+ Bim = "bim",
263
+ Media = "media",
264
+ Comments = "comments",
265
+ Anpr = "anpr",
266
+ MobileCapture = "mobileCapture",
267
+ ExNvrRecordings = "exNvrRecordings",
268
+ Luminance = "luminance",
269
+ ObjectInspector = "objectInspector"
270
+ }
271
+ export type TimelineOverlayType = TimelineGroupId.ThreeSixty | TimelineGroupId.Drone | TimelineGroupId.Media | TimelineGroupId.MobileCapture | TimelineGroupId.Bim | TimelineGroupId.Comments | "compare";
272
+ export type TimelineOverlayData<T extends TimelineOverlayType> = T extends TimelineGroupId.ThreeSixty ? _360Scene : T extends TimelineGroupId.Drone ? DroneModel : T extends TimelineGroupId.Media ? Media : T extends TimelineGroupId.MobileCapture ? MobileCaptureSnapshot : T extends TimelineGroupId.Comments ? Comment : never;
273
+ export declare enum TimelineMarkerId {
274
+ Xray = "xray",
275
+ CurrentSnapshot = "current",
276
+ CompareBeforeSnapshot = "compareBefore",
277
+ CompareAfterSnapshot = "compareAfter",
278
+ ObjectInspectorFirstSeen = "firstSeen",
279
+ ObjectInspectorLastSeen = "lastSeen"
280
+ }
281
+ export type TimelineMediaHubItemsByType = {
282
+ clip?: Media[];
283
+ compare?: Media[];
284
+ edit?: Media[];
285
+ timelapse?: Media[];
286
+ xRay?: Media[];
287
+ };
288
+ export type KitMetricChartData = KitMetricData & {
289
+ results?: GrafanaMetricResults;
290
+ stats?: EvercamStats[];
291
+ metricId?: ExNvrMetricId;
292
+ value?: number;
293
+ };
294
+ export declare enum HighchartsStackingBehavior {
295
+ Overlap = "overlap",
296
+ Normal = "normal",
297
+ Percent = "percent",
298
+ Stream = "stream"
299
+ }
300
+ export declare enum LeaderLinePlugType {
301
+ Disc = "disc",
302
+ Square = "square",
303
+ Arrow1 = "arrow1",
304
+ Arrow2 = "arrow2",
305
+ Arrow3 = "arrow3",
306
+ Hand = "hand",
307
+ CrossHair = "crosshair",
308
+ Behind = "behind"
309
+ }
310
+ export declare enum LeaderLinesPathType {
311
+ Straight = "straight",
312
+ Arc = "arc",
313
+ Fluid = "fluid",
314
+ Magnet = "magnet",
315
+ Grid = "grid"
316
+ }
317
+ export declare enum LeaderLinesSocketPosition {
318
+ Top = "top",
319
+ Right = "right",
320
+ Bottom = "bottom",
321
+ Left = "left",
322
+ Auto = "auto"
323
+ }
324
+ export type LeaderLineOptions = {
325
+ startSocket?: LeaderLinesSocketPosition;
326
+ endSocket?: LeaderLinesSocketPosition;
327
+ color?: string | ((element: any) => string);
328
+ size?: number;
329
+ startPlug?: LeaderLinePlugType;
330
+ endPlug?: LeaderLinePlugType;
331
+ startPlugSize?: number;
332
+ endPlugSize?: number;
333
+ path?: LeaderLinesPathType;
334
+ startSocketGravity?: TuplePoint2D;
335
+ endSocketGravity?: TuplePoint2D;
336
+ dash?: {
337
+ animation: boolean | {
338
+ duration: number;
339
+ };
340
+ } | ((element: any) => {
341
+ animation: boolean | {
342
+ duration: number;
343
+ };
344
+ });
345
+ };
346
+ export type CssSelector = string;
347
+ export type LineConfig = {
348
+ start: CssSelector | CssSelector[];
349
+ end: CssSelector | CssSelector[];
350
+ options?: LeaderLineOptions;
351
+ };
352
+ export declare enum ZohoDeskTicketStatus {
353
+ Closed = "Closed",
354
+ OnHold = "On Hold",
355
+ Open = "Open"
356
+ }
357
+ export type TagSelectorItem = Tag & {
358
+ isExcluded?: boolean;
359
+ };
360
+ export declare enum FormSchemaComponents {
361
+ SelectField = "SelectField",
362
+ HierarchicalSelect = "HierarchicalSelectField",
363
+ MultiOption = "MultiOption",
364
+ TextField = "TextField",
365
+ SwitchField = "SwitchField",
366
+ CheckBox = "CheckBoxField",
367
+ Date = "DatePickerInput",
368
+ DateTime = "DateTimeField",
369
+ Time = "TimeField",
370
+ TextArea = "Textarea",
371
+ Search = "Autocomplete",
372
+ ReadOnly = "ReadOnly",
373
+ Ratio = "RatioField"
374
+ }
375
+ export declare enum FormSchemaDataType {
376
+ String = "string",
377
+ Number = "number",
378
+ Boolean = "boolean",
379
+ Date = "date"
380
+ }
381
+ export type FormSchemaOptions = {
382
+ title: string;
383
+ value: string;
384
+ parentId?: string | null;
385
+ };
386
+ export type FormSchemaField = {
387
+ id: string;
388
+ component: FormSchemaComponents;
389
+ required?: boolean;
390
+ name: string;
391
+ options?: FormSchemaOptions[];
392
+ disabled?: boolean;
393
+ dataType: FormSchemaDataType;
394
+ multiple?: boolean;
395
+ defaultValue?: any;
396
+ columns?: number;
397
+ };
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
+ };
410
+ export interface ScrollListener {
411
+ element: Element | Window;
412
+ event: "scroll" | "resize";
413
+ handler: () => void;
414
+ }
415
+ export interface LeaderLineInstance {
416
+ remove(): void;
417
+ position(): void;
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
+ }