@evercam/api 1.0.0-7efbe5a66 → 1.0.0-7f640ff6f

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 (107) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +216 -15
  3. package/dist/api/api/adminApi.d.ts +155 -139
  4. package/dist/api/api/aiApi.d.ts +192 -88
  5. package/dist/api/api/authzApi.d.ts +29 -17
  6. package/dist/api/api/client/axios.d.ts +2 -1
  7. package/dist/api/api/client/interceptors.d.ts +1 -1
  8. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  9. package/dist/api/api/evercamApi.d.ts +150 -118
  10. package/dist/api/api/evercamLabsApi.d.ts +10 -17
  11. package/dist/api/api/exNvrApi.d.ts +2 -2
  12. package/dist/api/api/index.d.ts +1 -0
  13. package/dist/api/api/ingestApi.d.ts +133 -58
  14. package/dist/api/api/ptzApi.d.ts +12 -3
  15. package/dist/api/api/reportsApi.d.ts +15 -0
  16. package/dist/api/api/videoWallApi.d.ts +2 -2
  17. package/dist/api/api/weatherApi.d.ts +2 -2
  18. package/dist/api/types/360.d.ts +269 -48
  19. package/dist/api/types/aconex.d.ts +9 -9
  20. package/dist/api/types/admin.d.ts +89 -0
  21. package/dist/api/types/aiConfigs.d.ts +244 -0
  22. package/dist/api/types/analytics.d.ts +164 -76
  23. package/dist/api/types/anpr.d.ts +142 -2
  24. package/dist/api/types/apiKey.d.ts +70 -0
  25. package/dist/api/types/auditLogs.d.ts +179 -21
  26. package/dist/api/types/authz.d.ts +116 -6
  27. package/dist/api/types/autodesk.d.ts +7 -7
  28. package/dist/api/types/automation.d.ts +65 -3
  29. package/dist/api/types/axios.d.ts +20 -14
  30. package/dist/api/types/bim.d.ts +80 -16
  31. package/dist/api/types/camera.d.ts +323 -199
  32. package/dist/api/types/comments.d.ts +68 -31
  33. package/dist/api/types/company.d.ts +53 -6
  34. package/dist/api/types/compare.d.ts +21 -6
  35. package/dist/api/types/connector.d.ts +5 -5
  36. package/dist/api/types/coolify.d.ts +18 -2
  37. package/dist/api/types/detections.d.ts +26 -18
  38. package/dist/api/types/drone.d.ts +95 -6
  39. package/dist/api/types/emailMessages.d.ts +27 -0
  40. package/dist/api/types/errors.d.ts +19 -2
  41. package/dist/api/types/gateReport.d.ts +86 -172
  42. package/dist/api/types/gateReportManagement.d.ts +170 -0
  43. package/dist/api/types/hammertech.d.ts +98 -0
  44. package/dist/api/types/hdd.d.ts +27 -2
  45. package/dist/api/types/index.d.ts +17 -3
  46. package/dist/api/types/ingest.d.ts +285 -17
  47. package/dist/api/types/kit.d.ts +121 -115
  48. package/dist/api/types/map.d.ts +12 -0
  49. package/dist/api/types/media.d.ts +33 -4
  50. package/dist/api/types/notification.d.ts +83 -3
  51. package/dist/api/types/nvr.d.ts +39 -8
  52. package/dist/api/types/oauth.d.ts +62 -0
  53. package/dist/api/types/observationEvents.d.ts +167 -0
  54. package/dist/api/types/observations.d.ts +89 -0
  55. package/dist/api/types/planner.d.ts +98 -8
  56. package/dist/api/types/posthog.d.ts +87 -0
  57. package/dist/api/types/procore.d.ts +13 -6
  58. package/dist/api/types/progressPhoto.d.ts +42 -25
  59. package/dist/api/types/project.d.ts +159 -33
  60. package/dist/api/types/recording.d.ts +9 -15
  61. package/dist/api/types/recycleBin.d.ts +9 -3
  62. package/dist/api/types/reports.d.ts +109 -0
  63. package/dist/api/types/ring.d.ts +53 -0
  64. package/dist/api/types/roi.d.ts +3 -11
  65. package/dist/api/types/routeParams.d.ts +1 -0
  66. package/dist/api/types/router.d.ts +34 -10
  67. package/dist/api/types/shared.d.ts +47 -30
  68. package/dist/api/types/shares.d.ts +6 -157
  69. package/dist/api/types/sim.d.ts +23 -11
  70. package/dist/api/types/siteAnalytics.d.ts +169 -47
  71. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  72. package/dist/api/types/siteView.d.ts +104 -0
  73. package/dist/api/types/smartSeach.d.ts +5 -0
  74. package/dist/api/types/snapshots.d.ts +99 -14
  75. package/dist/api/types/socket.d.ts +4 -0
  76. package/dist/api/types/sso.d.ts +12 -37
  77. package/dist/api/types/storageProvider.d.ts +30 -0
  78. package/dist/api/types/storyblok.d.ts +27 -0
  79. package/dist/api/types/streaming.d.ts +3 -3
  80. package/dist/api/types/tag.d.ts +1 -1
  81. package/dist/api/types/time.d.ts +0 -18
  82. package/dist/api/types/timelapse.d.ts +7 -11
  83. package/dist/api/types/user.d.ts +139 -54
  84. package/dist/api/types/videoWall.d.ts +21 -21
  85. package/dist/api/types/weather.d.ts +75 -11
  86. package/dist/api/types/widget.d.ts +83 -15
  87. package/dist/api/types/xweather.d.ts +4 -4
  88. package/dist/api/utils.d.ts +1 -1
  89. package/dist/index.js +2588 -1132
  90. package/dist/index.js.map +1 -1
  91. package/dist/index.umd.cjs +1 -1
  92. package/dist/index.umd.cjs.map +1 -1
  93. package/dist/shared/types/components.d.ts +769 -33
  94. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  95. package/dist/shared/types/droneUpload.d.ts +93 -0
  96. package/dist/shared/types/imagePlayer.d.ts +10 -3
  97. package/dist/shared/types/index.d.ts +5 -0
  98. package/dist/shared/types/observations.d.ts +25 -0
  99. package/dist/shared/types/rbac.d.ts +80 -0
  100. package/dist/shared/types/report.d.ts +108 -0
  101. package/dist/shared/types/timeline.d.ts +2 -1
  102. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  103. package/dist/shared/utils/datePresets.d.ts +31 -0
  104. package/package.json +4 -2
  105. package/dist/api/types/copilot.d.ts +0 -157
  106. package/dist/api/types/storageServers.d.ts +0 -4
  107. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,6 +1,238 @@
1
- import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, TaskStatus, Tag } from "@evercam/api/types";
1
+ import type Vue from "vue";
2
+ import { type _360Scene, type AdminSearchCameraItem, type AdminSearchProjectItem, 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, GeoPoint, CameraStatus } from "@evercam/shared/types";
3
+ import type { _360AssetType, AdminCamera, AnprCount, Camera, AuditLog, AuditLogDetails, AuditLogEntity, AuditLogsParams, DroneComparisonFrames, EvercamStats, ExNvrFootageAvailableStatus, ExNvrMetricId, IngestUploadInitResponse, KitMetricData, JsonValue, PaginationParams, Router, GrafanaMetricResults } from "@evercam/api/types";
2
4
  import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
3
5
  import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
6
+ import { SeriesOptionsType } from "highcharts";
7
+ export type ReorderableCamera = Camera & {
8
+ thumbnailSrc?: string;
9
+ batteryLevel?: {
10
+ voltage: number;
11
+ level: string;
12
+ icon: string;
13
+ color: string;
14
+ } | null;
15
+ };
16
+ export type SelectItem = {
17
+ text: string;
18
+ value: string | number;
19
+ };
20
+ export type RoiProjectGroup = {
21
+ exid: string;
22
+ name: string;
23
+ cameras: AdminCamera[];
24
+ };
25
+ export declare enum IframeMessageType {
26
+ LiveView = "liveView",
27
+ EditSnapshot = "editSnapshot",
28
+ Weather = "weather",
29
+ CameraInfo = "cameraInfo",
30
+ AnalyticsEvent = "analyticsEvent",
31
+ Ready = "ready",
32
+ Info = "info",
33
+ GateReport = "gateReport",
34
+ CreateCompare = "createCompare",
35
+ UploadDrone = "uploadDrone",
36
+ UploadBIM = "uploadBIM",
37
+ History = "history",
38
+ PerformanceScore = "performanceScore",
39
+ ShareLink = "shareLink",
40
+ LoadForgeModel = "loadForgeModel",
41
+ LoadPlannerList = "loadPlannerList",
42
+ SaveProjectBounds = "saveProjectBounds",
43
+ ArchiveComment = "archiveComment",
44
+ UnarchiveComment = "unarchiveComment",
45
+ DeleteComment = "deleteComment",
46
+ CreateComment = "createComment",
47
+ RefreshComments = "refreshComments",
48
+ CommentSyncFailed = "commentSyncFailed",
49
+ Load360Gallery = "load360Gallery",
50
+ Upload360 = "upload360",
51
+ FetchForgeToken = "FetchForgeToken",
52
+ ForgeTokenResponse = "ForgeTokenResponse",
53
+ ShowBimUploadChoice = "showBimUploadChoice",
54
+ ViewerLaunchFlags = "viewerLaunchFlags",
55
+ Fetch360DrawingIds = "fetch360DrawingIds",
56
+ DrawingIdsResponse = "drawingIdsResponse",
57
+ CloseCameraMarkerPreview = "CloseCameraMarkerPreview",
58
+ Theme = "theme",
59
+ ChatInit = "chatInit",
60
+ ChatToken = "chatToken",
61
+ ChatContext = "chatContext",
62
+ ChatTheme = "chatTheme",
63
+ ChatNavigate = "chatNavigate",
64
+ ChatConversations = "chatConversations",
65
+ ChatOpenConversation = "chatOpenConversation",
66
+ ChatNewConversation = "chatNewConversation",
67
+ ChatRenameConversation = "chatRenameConversation",
68
+ ChatDeleteConversation = "chatDeleteConversation",
69
+ ChatOpenWalkMarker = "chatOpenWalkMarker",
70
+ ChatOpenView = "chatOpenView",
71
+ ChatOpenSearch = "chatOpenSearch",
72
+ ChatWorkspace = "chatWorkspace",
73
+ ChatEntityNames = "chatEntityNames",
74
+ ChatNotify = "chatNotify",
75
+ ProjectMembers = "projectMembers",
76
+ FocusComment = "focusComment",
77
+ ShareByEmail = "shareByEmail"
78
+ }
79
+ export declare enum ChatTheme {
80
+ Dark = "dark",
81
+ Light = "light"
82
+ }
83
+ export declare enum ThemeMode {
84
+ Dark = "dark",
85
+ Light = "light"
86
+ }
87
+ export type ChatUser = {
88
+ email: string;
89
+ name: string;
90
+ };
91
+ /**
92
+ * The dashboard's answer to the frame's `Ready`.
93
+ *
94
+ * The token travels here and nowhere else — never in the iframe URL, which
95
+ * would land it in history, referrers and logs.
96
+ */
97
+ export type ChatInitPayload = {
98
+ token: string;
99
+ user: ChatUser;
100
+ theme: ChatTheme;
101
+ timezone: string;
102
+ };
103
+ /** Pushed on rotation. A frame holding a mount-time token 401s the moment it changes. */
104
+ export type ChatTokenPayload = {
105
+ token: string;
106
+ };
107
+ /** Pushed on every dashboard route change. */
108
+ export type ChatContextPayload = {
109
+ pageId: string;
110
+ projectExid: string | null;
111
+ projectName: string | null;
112
+ cameraExid: string | null;
113
+ timezone: string;
114
+ /**
115
+ * A conversation to open, from `?chat=` on the dashboard's URL.
116
+ *
117
+ * Deep-linking lives in the *context* rather than in a message of its own
118
+ * because it is exactly that — a fact about where the host currently is, sent
119
+ * on every route change alongside the project and page. `null` means "no
120
+ * opinion", which is what every other page sends.
121
+ */
122
+ chatId: string | null;
123
+ /** A Reports page to open, from `?view=`, the same way. */
124
+ view?: ChatView | null;
125
+ /** A report to open, from `?report=`. */
126
+ reportId?: string | null;
127
+ };
128
+ /**
129
+ * Exid → name for every camera and project the host already holds, so the frame
130
+ * can show names instead of exids without fetching them again.
131
+ */
132
+ export type ChatEntityNamesPayload = {
133
+ cameras: Record<string, string>;
134
+ projects: Record<string, string>;
135
+ };
136
+ export type ChatThemePayload = {
137
+ theme: ChatTheme;
138
+ };
139
+ /**
140
+ * A page id plus params, never a route string — the dashboard owns the
141
+ * id → route mapping.
142
+ */
143
+ export type ChatNavigatePayload = {
144
+ pageId: string;
145
+ params: Record<string, string>;
146
+ };
147
+ /**
148
+ * Open a 360-walk marker in the 360 viewer, facing one view.
149
+ *
150
+ * Sent by Chat when a `WalkView` in an answer is clicked. The dashboard opens the
151
+ * 360 app in its own dialog (`Walk360Preview`), outside the chat frame, so the
152
+ * viewer gets the whole screen. `walkName` and `walkDate` are how the 360 app
153
+ * knows a walk (its `floor` and `date` URL params); `camera` is the viewer's own
154
+ * azimuth/polar angles for that view, or null to open at the marker's default.
155
+ */
156
+ export type ChatOpenWalkMarkerPayload = {
157
+ projectExid: string;
158
+ walkId: string;
159
+ walkName: string;
160
+ walkDate: string;
161
+ markerId: string;
162
+ view: string;
163
+ camera: {
164
+ azimuthAngle: number;
165
+ polarAngle: number;
166
+ } | null;
167
+ };
168
+ /**
169
+ * One conversation, as the dashboard's sidebar needs it.
170
+ *
171
+ * A deliberate projection of the engine's `ChatSession` — a label and a
172
+ * timestamp, nothing else. The transcript stays in the frame: mirroring `turns`
173
+ * would put every message of every conversation on the bridge each time the list
174
+ * changed, to render a row that shows neither.
175
+ */
176
+ export type ChatSessionSummary = {
177
+ id: string;
178
+ title: string | null;
179
+ updatedAt: string;
180
+ };
181
+ /**
182
+ * The frame's conversation list, mirrored up for the left sidebar to draw.
183
+ *
184
+ * The frame stays the single owner of this data — it holds the engine client and
185
+ * the bearer. The host renders and sends intent back; it never fetches.
186
+ */
187
+ export type ChatConversationsPayload = {
188
+ sessions: ChatSessionSummary[];
189
+ openId: string | null;
190
+ isLoading: boolean;
191
+ };
192
+ export type ChatOpenConversationPayload = {
193
+ id: string;
194
+ };
195
+ /** The frame's top-level views. A report page belongs to whichever list opened it. */
196
+ export declare enum ChatView {
197
+ Chat = "chat",
198
+ Inbox = "inbox",
199
+ SavedReports = "savedReports",
200
+ Explore = "explore",
201
+ Report = "report"
202
+ }
203
+ /** Host → frame: show one of the Reports pages, or the chat. */
204
+ export type ChatOpenViewPayload = {
205
+ view: ChatView;
206
+ };
207
+ export declare enum ChatNotifyTone {
208
+ Success = "success",
209
+ Error = "error",
210
+ Info = "info"
211
+ }
212
+ /** Frame → host: a notification the host shows the way it shows its own. */
213
+ export type ChatNotifyPayload = {
214
+ text: string;
215
+ tone: ChatNotifyTone;
216
+ };
217
+ /**
218
+ * Frame → host: what the sidebar's Reports group needs — which entry is active
219
+ * and the two counts it shows. Like `ChatConversationsPayload`, a projection:
220
+ * the reports themselves stay in the frame.
221
+ */
222
+ export type ChatWorkspacePayload = {
223
+ view: ChatView;
224
+ /** The report open on its own page, or null. */
225
+ reportId?: string | null;
226
+ unreadCount: number;
227
+ savedCount: number;
228
+ };
229
+ export type ChatRenameConversationPayload = {
230
+ id: string;
231
+ title: string;
232
+ };
233
+ export type ChatDeleteConversationPayload = {
234
+ id: string;
235
+ };
4
236
  export declare enum NavigationArrow {
5
237
  Previous = "previous",
6
238
  Next = "next"
@@ -10,31 +242,12 @@ export declare enum WatermarkedImageDownloadOrigin {
10
242
  Bim = "BIM",
11
243
  Snapshot = "snapshot",
12
244
  The360 = "360",
13
- The360Gallery = "360 Gallery",
14
245
  Planner = "Planner"
15
246
  }
16
247
  export declare enum PlayerMode {
17
248
  Video = "video",
18
249
  Jpegs = "jpegs"
19
250
  }
20
- export type TasksStatusMap = {
21
- [key: string]: TaskStatus;
22
- };
23
- export type TaskProgressItem = {
24
- status: TaskStatus;
25
- description: string;
26
- percentDone?: number;
27
- duration?: number;
28
- };
29
- export type GlobalSearchMatch = {
30
- path: Array<string>;
31
- value: string | number | boolean;
32
- };
33
- export type GlobalSearchResult = {
34
- index: number;
35
- matches: Array<GlobalSearchMatch>;
36
- };
37
- export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
38
251
  export type TimelineProviderRequestParams = TimelineDateInterval & {
39
252
  precision?: TimelinePrecision;
40
253
  labels?: string[];
@@ -48,13 +261,6 @@ export type TimelinePlayerGroupConfig = {
48
261
  export type TimelinePlayerConfig = {
49
262
  [groupName: string]: TimelinePlayerGroupConfig;
50
263
  };
51
- export type TimelinePlayerTooltipItem = {
52
- label?: string;
53
- title?: string;
54
- thumbnailUrl: string;
55
- placeholderThumbnailUrl?: string;
56
- fallbackThumbnailUrl?: string;
57
- };
58
264
  export declare enum TimelineGroupId {
59
265
  ThreeSixty = "w360",
60
266
  Drone = "drone",
@@ -84,6 +290,12 @@ export type TimelineMediaHubItemsByType = {
84
290
  timelapse?: Media[];
85
291
  xRay?: Media[];
86
292
  };
293
+ export type KitMetricChartData = KitMetricData & {
294
+ results?: GrafanaMetricResults;
295
+ stats?: EvercamStats[];
296
+ metricId?: ExNvrMetricId;
297
+ value?: number;
298
+ };
87
299
  export declare enum HighchartsStackingBehavior {
88
300
  Overlap = "overlap",
89
301
  Normal = "normal",
@@ -124,8 +336,8 @@ export type LeaderLineOptions = {
124
336
  startPlugSize?: number;
125
337
  endPlugSize?: number;
126
338
  path?: LeaderLinesPathType;
127
- startSocketGravity?: [number, number];
128
- endSocketGravity?: [number, number];
339
+ startSocketGravity?: TuplePoint2D;
340
+ endSocketGravity?: TuplePoint2D;
129
341
  dash?: {
130
342
  animation: boolean | {
131
343
  duration: number;
@@ -142,10 +354,66 @@ export type LineConfig = {
142
354
  end: CssSelector | CssSelector[];
143
355
  options?: LeaderLineOptions;
144
356
  };
145
- export type Point = {
146
- x: number;
147
- y: number;
357
+ export type BimUploaderCamera = AdminSearchCameraItem & {
358
+ userApiId?: string;
359
+ userApiKey?: string;
360
+ };
361
+ export type IngestUploadObject = {
362
+ id: number;
363
+ projectId: string;
364
+ name?: string;
365
+ uploadType?: string;
366
+ };
367
+ export type IngestUploadLinkPayload = {
368
+ project: AdminSearchProjectItem;
369
+ uploadedBy: string;
370
+ };
371
+ export type HoveredThumbnail = {
372
+ isHovered: boolean;
373
+ url: string | false;
374
+ targetRect?: DOMRect;
375
+ };
376
+ export type AnprHeatmapItem = AnprCount & {
377
+ day: string;
378
+ count: number;
379
+ disabled: boolean;
380
+ };
381
+ export type IngestDurationWithColor = {
382
+ time: number | string;
383
+ color: string;
384
+ };
385
+ export type IngestTrackedFile = File & {
386
+ uploadPercentage?: string;
148
387
  };
388
+ export type Project360Form = {
389
+ projectId: string | null;
390
+ integrationType: string | null;
391
+ timeline: string | null;
392
+ projectName: string | null;
393
+ providerID: string | null;
394
+ providerPrefix: string;
395
+ providerSuffix: string;
396
+ requiresValidation: boolean;
397
+ };
398
+ export declare enum ThumbnailDisplayPosition {
399
+ Top = "top",
400
+ Left = "left"
401
+ }
402
+ export type FeatureFlagTreeItem = {
403
+ name: string;
404
+ value: string;
405
+ locked?: boolean;
406
+ tooltip?: string;
407
+ radioChildren?: boolean;
408
+ requiredCameraFeatures?: string[];
409
+ children?: FeatureFlagTreeItem[];
410
+ };
411
+ export declare enum ZohoCrmEntityType {
412
+ Camera = "camera",
413
+ User = "user",
414
+ Project = "project",
415
+ Company = "company"
416
+ }
149
417
  export declare enum ZohoDeskTicketStatus {
150
418
  Closed = "Closed",
151
419
  OnHold = "On Hold",
@@ -156,11 +424,14 @@ export type TagSelectorItem = Tag & {
156
424
  };
157
425
  export declare enum FormSchemaComponents {
158
426
  SelectField = "SelectField",
427
+ HierarchicalSelect = "HierarchicalSelectField",
159
428
  MultiOption = "MultiOption",
160
429
  TextField = "TextField",
161
- CheckBox = "SwitchField",
430
+ SwitchField = "SwitchField",
431
+ CheckBox = "CheckBoxField",
162
432
  Date = "DatePickerInput",
163
433
  DateTime = "DateTimeField",
434
+ Time = "TimeField",
164
435
  TextArea = "Textarea",
165
436
  Search = "Autocomplete",
166
437
  ReadOnly = "ReadOnly",
@@ -175,6 +446,7 @@ export declare enum FormSchemaDataType {
175
446
  export type FormSchemaOptions = {
176
447
  title: string;
177
448
  value: string;
449
+ parentId?: string | null;
178
450
  };
179
451
  export type FormSchemaField = {
180
452
  id: string;
@@ -189,11 +461,475 @@ export type FormSchemaField = {
189
461
  columns?: number;
190
462
  };
191
463
  export type FormSchema = Record<string, FormSchemaField>;
464
+ export type DrawingStats = {
465
+ overlay: boolean;
466
+ geolocated: boolean;
467
+ isCalibrated: boolean;
468
+ walks: number;
469
+ markers: number;
470
+ minimodel: number;
471
+ bim: number;
472
+ comments: number;
473
+ lastCapturedDate: string | null;
474
+ };
192
475
  export interface ScrollListener {
193
476
  element: Element | Window;
477
+ event: "scroll" | "resize";
194
478
  handler: () => void;
195
479
  }
196
480
  export interface LeaderLineInstance {
197
481
  remove(): void;
198
482
  position(): void;
199
483
  }
484
+ export type SnapshotCardItem = {
485
+ label?: string;
486
+ title?: string;
487
+ thumbnailUrl: string;
488
+ placeholderThumbnailUrl?: string;
489
+ fallbackThumbnailUrl?: string;
490
+ };
491
+ export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
492
+ data: T[];
493
+ };
494
+ export type NotificationTitleSegment = {
495
+ text: string;
496
+ isBold?: boolean;
497
+ };
498
+ export type FormattedNotificationData = {
499
+ title: string;
500
+ titleSegments?: NotificationTitleSegment[];
501
+ link: string;
502
+ thumbnail?: string;
503
+ icon: string;
504
+ excerpt?: string;
505
+ commentTarget?: {
506
+ commentId: number;
507
+ dateId: string | number;
508
+ floorId: string;
509
+ };
510
+ };
511
+ export type FormattedNotification = FormattedNotificationData & {
512
+ date: string;
513
+ read: boolean;
514
+ id: number;
515
+ thumbnailError?: boolean;
516
+ };
517
+ export type ProcoreProjectStepData = {
518
+ project: ProcoreUserProject | null;
519
+ album: ProcoreProjectAlbum | null;
520
+ observationType: ProcoreObservationType | null;
521
+ };
522
+ export type ProcoreUploadFormData = {
523
+ procoreType: ProcoreType;
524
+ project: ProcoreUserProject | null;
525
+ album: ProcoreProjectAlbum | null;
526
+ observationType: ProcoreObservationType | null;
527
+ observationForm: Record<string, string | number | boolean | null>;
528
+ };
529
+ export type AconexUploadFormData = {
530
+ project: AconexUserProject | null;
531
+ form: Record<string, string | number | boolean | null>;
532
+ };
533
+ export type AutodeskUploadFormData = {
534
+ hub: AutodeskUserHub | null;
535
+ project: AutodeskProject | null;
536
+ folder: AutodeskFolder | null;
537
+ };
538
+ export type HammertechUploadFormData = {
539
+ project: HammertechProject | null;
540
+ issueType: HammertechIssueType | null;
541
+ description: string;
542
+ priority: HammertechPriority | null;
543
+ dueDate: string | null;
544
+ classification: HammertechClassification | null;
545
+ locationId: string | null;
546
+ isPositiveObservation: boolean;
547
+ isPhotoForFixRequired: boolean;
548
+ customFieldFormId: string | null;
549
+ customFieldValues: Record<string, unknown>;
550
+ fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
551
+ };
552
+ export interface MediaHubFilters {
553
+ title: string;
554
+ requesterEmail: string | undefined;
555
+ camera: string | undefined;
556
+ type: string;
557
+ fromDate: string;
558
+ toDate: string;
559
+ sortBy: string;
560
+ }
561
+ export interface MediaHubSortParameter {
562
+ label: string;
563
+ value: string;
564
+ }
565
+ export type BimUploadObject = IngestUploadInitResponse & {
566
+ projectName: string;
567
+ };
568
+ export type BimUploadFileResult = {
569
+ url: string;
570
+ title: string;
571
+ fileExtension: string;
572
+ };
573
+ export type CameraCardItem = {
574
+ thumbnail: string;
575
+ title: string;
576
+ exid: string;
577
+ status: CameraStatus;
578
+ disabled: boolean;
579
+ to: string;
580
+ isOffline: boolean;
581
+ isWaiting: boolean;
582
+ isUnderNda: boolean;
583
+ isAdmin: boolean;
584
+ batteryVoltage: number | null;
585
+ };
586
+ export type ThreeSixtyGalleryView = "drawings" | "walks";
587
+ export interface ThreeSixtyWalk {
588
+ id: string;
589
+ name: string;
590
+ date: string;
591
+ monthKey: string;
592
+ color: string;
593
+ dateId: string;
594
+ floorId: string;
595
+ commentCount: number;
596
+ hasBim: boolean;
597
+ hasMinimodel: boolean;
598
+ }
599
+ export interface ThreeSixtyWalkGroup {
600
+ date: string;
601
+ walks: ThreeSixtyWalk[];
602
+ }
603
+ export type ThreeSixtyMediaDownloadOption = {
604
+ type: _360AssetType;
605
+ title: string;
606
+ icon: string;
607
+ };
608
+ export type DrawingSelection = {
609
+ pageNumber: number;
610
+ size: number;
611
+ thumbnail: string | null;
612
+ pageCount: number;
613
+ };
614
+ export type CommentCardComment = {
615
+ id?: number | string;
616
+ content?: string;
617
+ createdAt?: string;
618
+ archivedAt?: string;
619
+ creatorName?: string;
620
+ label?: string;
621
+ timestamp?: string;
622
+ cameraExid?: string;
623
+ position3d?: number[];
624
+ canDelete?: boolean;
625
+ };
626
+ export type ErrorPageParams = {
627
+ statusCode: number;
628
+ message: string;
629
+ homePageLink?: boolean;
630
+ };
631
+ export type GateReportDateRange = {
632
+ fromDate: string;
633
+ toDate: string;
634
+ };
635
+ export declare enum GateReportTimelineGranularity {
636
+ Day = "day",
637
+ Week = "week",
638
+ Month = "month",
639
+ Year = "year"
640
+ }
641
+ export type GateReportTimelineBucket = GateReportDateRange & {
642
+ in: number;
643
+ out: number;
644
+ };
645
+ export declare enum GateReportCardState {
646
+ Loading = "loading",
647
+ Ready = "ready",
648
+ Empty = "empty",
649
+ Unavailable = "unavailable"
650
+ }
651
+ export declare enum GateReportVehicleTypesCardState {
652
+ Hidden = "hidden",
653
+ Loading = "loading",
654
+ Unavailable = "unavailable",
655
+ ZeroReady = "zero-ready",
656
+ LegacyUnavailable = "legacy-unavailable",
657
+ Ready = "ready",
658
+ Failed = "failed"
659
+ }
660
+ export declare enum GateReportDirectionFilter {
661
+ All = "all",
662
+ Entries = "entries",
663
+ Exits = "exits"
664
+ }
665
+ export declare enum GateReportHeaderLayout {
666
+ Row = "row",
667
+ Beside = "beside",
668
+ Stacked = "stacked"
669
+ }
670
+ export declare enum GateReportPaginationControl {
671
+ Previous = "previous",
672
+ Next = "next"
673
+ }
674
+ export declare enum GateReportRangeEligibility {
675
+ Unverified = "unverified",
676
+ SingleDay = "single-day",
677
+ AnprLegacy = "anpr-legacy",
678
+ EmptySelection = "empty-selection",
679
+ UnsupportedSource = "unsupported-source",
680
+ Allowed = "allowed"
681
+ }
682
+ export type GateReportCountTotals = {
683
+ in: number;
684
+ out: number;
685
+ total: number;
686
+ };
687
+ export type GateReportRangeQueryValue = string | null | undefined | (string | null)[];
688
+ export type GateReportRangeQuery = {
689
+ from_date?: GateReportRangeQueryValue;
690
+ to_date?: GateReportRangeQueryValue;
691
+ drill_from?: GateReportRangeQueryValue;
692
+ drill_to?: GateReportRangeQueryValue;
693
+ selected_date?: GateReportRangeQueryValue;
694
+ };
695
+ export type GateReportRangeQueryResult = {
696
+ range: GateReportDateRange;
697
+ drill: GateReportDateRange | null;
698
+ };
699
+ export declare enum AuditLogDetailsView {
700
+ Diff = "diff",
701
+ OfflineMessage = "offlineMessage",
702
+ Delete = "delete",
703
+ Create = "create",
704
+ NvrDeviceSettings = "nvrDeviceSettings",
705
+ RouterDeviceSettings = "routerDeviceSettings"
706
+ }
707
+ export type AuditLogDetailsCell = AuditLogDetails[keyof AuditLogDetails] | JsonValue;
708
+ export type AuditLogDetailsRow = {
709
+ key: string;
710
+ cells: AuditLogDetailsCell[];
711
+ isJsonFormatted?: boolean;
712
+ isScopeList?: boolean;
713
+ rowClass?: string;
714
+ };
715
+ export type AuditLogDetailsTable = {
716
+ headers: {
717
+ text: string;
718
+ width?: string;
719
+ }[];
720
+ rows: AuditLogDetailsRow[];
721
+ };
722
+ export type AuditLogAuthMethodView = {
723
+ icon: string;
724
+ label: string;
725
+ tooltip: string;
726
+ };
727
+ export type AuditLogLinkEntity = AuditLogEntity.Cameras | AuditLogEntity.Projects | AuditLogEntity.Routers | AuditLogEntity.Users | AuditLogEntity.Sims;
728
+ export type AuditLogRow = AuditLog & {
729
+ canExpand: boolean;
730
+ authMethod: AuditLogAuthMethodView | null;
731
+ };
732
+ export type AuditLogsReportParams = PaginationParams & Partial<AuditLogsParams>;
733
+ export declare enum ShareByEmailKind {
734
+ Drone = "drone"
735
+ }
736
+ export declare enum ShareByEmailStatus {
737
+ Capturing = "capturing",
738
+ Ready = "ready",
739
+ Failed = "failed"
740
+ }
741
+ export type DroneEmailCapture = Pick<DroneComparisonFrames, "beforeDate" | "afterDate"> & Partial<Pick<DroneComparisonFrames, "beforeImage" | "afterImage">> & {
742
+ status: ShareByEmailStatus;
743
+ error?: string;
744
+ };
745
+ export type QuillEditorInstance = {
746
+ enable: (enabled: boolean) => void;
747
+ root: HTMLElement;
748
+ clipboard: {
749
+ dangerouslyPasteHTML: (index: number, html: string, source?: string) => void;
750
+ };
751
+ deleteText: (index: number, length: number, source?: string) => void;
752
+ getLength: () => number;
753
+ getSelection: (focus?: boolean) => {
754
+ index: number;
755
+ length: number;
756
+ } | null;
757
+ insertEmbed: (index: number, type: string, value: string, source?: string) => void;
758
+ setSelection: (index: number, length?: number) => void;
759
+ };
760
+ export type ValidationObserverRef = Vue & {
761
+ validate: () => Promise<boolean>;
762
+ reset: () => void;
763
+ };
764
+ export type SummaryElementInputOption = {
765
+ name?: string;
766
+ value?: string | number | boolean | null;
767
+ class?: string;
768
+ disabled?: boolean;
769
+ disabledReason?: string;
770
+ };
771
+ export declare enum SummaryElementInputType {
772
+ TextField = "TEXT_FIELD",
773
+ TextArea = "TEXT_AREA",
774
+ SingleSelect = "SINGLE_SELECT"
775
+ }
776
+ export type SummaryElementInput = {
777
+ key?: string;
778
+ label?: string;
779
+ value?: string | number | boolean | null;
780
+ type?: SummaryElementInputType;
781
+ dataset?: SummaryElementInputOption[];
782
+ binds?: Record<string, string | number | boolean>;
783
+ isModel?: boolean;
784
+ isCameraConfig?: boolean;
785
+ isNvrConfig?: boolean;
786
+ isCloudRecording?: boolean;
787
+ isCameraLocation?: boolean;
788
+ cloudRecordingId?: string | number | null;
789
+ };
790
+ export type SimReassignmentAlert = {
791
+ sim: string;
792
+ kitName: string;
793
+ kitId: number;
794
+ kitSerial: string;
795
+ };
796
+ export type CameraStatusTimelineEvent = {
797
+ startDate: string | undefined;
798
+ endDate: string | undefined;
799
+ color: string;
800
+ status: CameraStatus | ExNvrFootageAvailableStatus;
801
+ originalStatus?: CameraStatus;
802
+ };
803
+ export type CameraStatusTimelineEventsGroup = {
804
+ label: string;
805
+ color: string;
806
+ events: CameraStatusTimelineEvent[];
807
+ };
808
+ export type CameraStatusTimelineData = {
809
+ loading: boolean;
810
+ exNvrIntervalsEventsGroup: Record<string, CameraStatusTimelineEventsGroup>;
811
+ cameraStatusEventsGroup: Record<string, CameraStatusTimelineEventsGroup>;
812
+ };
813
+ export type CameraStatusTimelineInterval = {
814
+ startDate: string | undefined;
815
+ endDate: string | undefined;
816
+ };
817
+ export type CameraInstalledMarker = {
818
+ timestamp: string | undefined;
819
+ label: string;
820
+ color: string;
821
+ textColor: string;
822
+ id: string;
823
+ };
824
+ export type KitHddInfoField = {
825
+ label: string;
826
+ value: string | undefined;
827
+ };
828
+ export type FootageFormItem = {
829
+ id?: number;
830
+ cameraId?: string;
831
+ cameraExid?: string;
832
+ cameraName?: string;
833
+ startDate?: string | null;
834
+ endDate?: string | null;
835
+ };
836
+ export type LiveViewFrequencyOption = {
837
+ value: number | null;
838
+ name: string;
839
+ disabled?: boolean;
840
+ disabledReason?: string;
841
+ };
842
+ export type CameraSummaryRouterDetails = Partial<Router> & {
843
+ externalHost?: string;
844
+ kitId?: number;
845
+ cameras?: {
846
+ name: string;
847
+ id: number;
848
+ exid: string;
849
+ }[];
850
+ };
851
+ export declare enum ChartType {
852
+ Area = "area",
853
+ Line = "line",
854
+ Column = "column"
855
+ }
856
+ export declare enum ChartZoomType {
857
+ XY = "xy"
858
+ }
859
+ export declare enum AiConfigsPromptsViewMode {
860
+ Grid = "grid",
861
+ Table = "table"
862
+ }
863
+ export type FocusableInputRef = Vue & {
864
+ focus: () => void;
865
+ isFocused: boolean;
866
+ };
867
+ export type MenuSaveRef = Vue & {
868
+ save: (value: string) => void;
869
+ };
870
+ export type RouteTab = {
871
+ label: string;
872
+ to: string;
873
+ disabled: boolean;
874
+ };
875
+ export type ToggleableTableHeader = {
876
+ text: string;
877
+ value: string;
878
+ width?: number;
879
+ sortable?: boolean;
880
+ visible?: boolean;
881
+ };
882
+ export declare enum BatteryChartType {
883
+ BatteryVoltage = "battery-voltage",
884
+ VoltageSummary = "voltage-summary",
885
+ BatteryVoltagesSummary = "battery-voltages-summary"
886
+ }
887
+ export declare enum BatteryReadingsTab {
888
+ Table = 0,
889
+ Graph = 1
890
+ }
891
+ export declare enum SsoStorageKey {
892
+ State = "ssoState",
893
+ Provider = "ssoProvider",
894
+ SourceUrl = "sourceUrlRequestedSso",
895
+ PostSsoRedirectUrl = "postSsoRedirectUrl"
896
+ }
897
+ export type GoogleLatLng = {
898
+ lat(): number;
899
+ lng(): number;
900
+ };
901
+ export type GoogleLatLngBoundsLiteral = {
902
+ north: number;
903
+ south: number;
904
+ east: number;
905
+ west: number;
906
+ };
907
+ export type GoogleLatLngBounds = {
908
+ getNorthEast(): GoogleLatLng;
909
+ getSouthWest(): GoogleLatLng;
910
+ };
911
+ export type GoogleMap = {
912
+ fitBounds(bounds: GoogleLatLngBounds | GoogleLatLngBoundsLiteral): void;
913
+ setCenter(position: GoogleLatLng | GeoPoint): void;
914
+ setZoom(zoom: number): void;
915
+ };
916
+ export type GooglePlace = {
917
+ geometry?: {
918
+ location?: GoogleLatLng;
919
+ viewport?: GoogleLatLngBounds;
920
+ };
921
+ };
922
+ export type GoogleMapComponent = {
923
+ $mapPromise: Promise<GoogleMap>;
924
+ };
925
+ export type GooglePolygonComponent = {
926
+ $polygonObject: {
927
+ getPath(): {
928
+ getArray(): GoogleLatLng[];
929
+ };
930
+ };
931
+ };
932
+ export type GoogleMapMouseEvent = {
933
+ latLng: GoogleLatLng;
934
+ domEvent?: MouseEvent;
935
+ };