@evercam/api 1.0.0-4530231e7 → 1.0.0-4544b2a4c

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