@evercam/api 1.0.0-65148cdee → 1.0.0-6579824b6

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 (106) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +216 -13
  3. package/dist/api/api/adminApi.d.ts +123 -102
  4. package/dist/api/api/aiApi.d.ts +182 -86
  5. package/dist/api/api/authzApi.d.ts +34 -15
  6. package/dist/api/api/client/axios.d.ts +2 -1
  7. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  8. package/dist/api/api/evercamApi.d.ts +160 -114
  9. package/dist/api/api/evercamLabsApi.d.ts +6 -16
  10. package/dist/api/api/exNvrApi.d.ts +1 -1
  11. package/dist/api/api/index.d.ts +1 -0
  12. package/dist/api/api/ingestApi.d.ts +132 -57
  13. package/dist/api/api/ptzApi.d.ts +12 -3
  14. package/dist/api/api/reportsApi.d.ts +15 -0
  15. package/dist/api/api/videoWallApi.d.ts +2 -2
  16. package/dist/api/api/weatherApi.d.ts +2 -2
  17. package/dist/api/types/360.d.ts +269 -45
  18. package/dist/api/types/aconex.d.ts +9 -9
  19. package/dist/api/types/admin.d.ts +51 -0
  20. package/dist/api/types/aiConfigs.d.ts +244 -0
  21. package/dist/api/types/analytics.d.ts +162 -76
  22. package/dist/api/types/anpr.d.ts +48 -2
  23. package/dist/api/types/apiKey.d.ts +70 -0
  24. package/dist/api/types/auditLogs.d.ts +163 -20
  25. package/dist/api/types/authz.d.ts +132 -0
  26. package/dist/api/types/autodesk.d.ts +7 -7
  27. package/dist/api/types/automation.d.ts +65 -3
  28. package/dist/api/types/axios.d.ts +20 -14
  29. package/dist/api/types/bim.d.ts +39 -10
  30. package/dist/api/types/camera.d.ts +134 -126
  31. package/dist/api/types/comments.d.ts +16 -11
  32. package/dist/api/types/company.d.ts +43 -3
  33. package/dist/api/types/compare.d.ts +21 -6
  34. package/dist/api/types/connector.d.ts +5 -5
  35. package/dist/api/types/coolify.d.ts +18 -2
  36. package/dist/api/types/credentials.d.ts +1 -0
  37. package/dist/api/types/detections.d.ts +23 -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 +18 -2
  41. package/dist/api/types/gateReport.d.ts +49 -168
  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 +26 -1
  45. package/dist/api/types/index.d.ts +18 -3
  46. package/dist/api/types/ingest.d.ts +280 -17
  47. package/dist/api/types/kit.d.ts +72 -103
  48. package/dist/api/types/map.d.ts +12 -0
  49. package/dist/api/types/media.d.ts +9 -3
  50. package/dist/api/types/notification.d.ts +83 -3
  51. package/dist/api/types/nvr.d.ts +8 -8
  52. package/dist/api/types/oauth.d.ts +62 -0
  53. package/dist/api/types/observationEvents.d.ts +141 -0
  54. package/dist/api/types/observations.d.ts +89 -0
  55. package/dist/api/types/planner.d.ts +102 -9
  56. package/dist/api/types/posthog.d.ts +35 -0
  57. package/dist/api/types/procore.d.ts +13 -6
  58. package/dist/api/types/progressPhoto.d.ts +6 -2
  59. package/dist/api/types/project.d.ts +149 -22
  60. package/dist/api/types/recording.d.ts +10 -15
  61. package/dist/api/types/recycleBin.d.ts +1 -1
  62. package/dist/api/types/reports.d.ts +108 -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 +20 -1
  67. package/dist/api/types/shared.d.ts +42 -25
  68. package/dist/api/types/shares.d.ts +6 -157
  69. package/dist/api/types/sim.d.ts +6 -6
  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 +78 -0
  73. package/dist/api/types/smartSeach.d.ts +5 -0
  74. package/dist/api/types/snapshots.d.ts +49 -4
  75. package/dist/api/types/socket.d.ts +4 -0
  76. package/dist/api/types/storageProvider.d.ts +19 -0
  77. package/dist/api/types/storyblok.d.ts +27 -0
  78. package/dist/api/types/streaming.d.ts +3 -3
  79. package/dist/api/types/tag.d.ts +1 -1
  80. package/dist/api/types/time.d.ts +0 -18
  81. package/dist/api/types/timelapse.d.ts +7 -11
  82. package/dist/api/types/user.d.ts +134 -35
  83. package/dist/api/types/videoWall.d.ts +21 -21
  84. package/dist/api/types/weather.d.ts +75 -11
  85. package/dist/api/types/widget.d.ts +71 -12
  86. package/dist/api/types/xweather.d.ts +4 -4
  87. package/dist/api/utils.d.ts +1 -1
  88. package/dist/index.js +2589 -1113
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.umd.cjs +1 -1
  91. package/dist/index.umd.cjs.map +1 -1
  92. package/dist/shared/types/components.d.ts +403 -34
  93. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  94. package/dist/shared/types/droneUpload.d.ts +93 -0
  95. package/dist/shared/types/imagePlayer.d.ts +10 -3
  96. package/dist/shared/types/index.d.ts +5 -0
  97. package/dist/shared/types/observations.d.ts +25 -0
  98. package/dist/shared/types/rbac.d.ts +67 -0
  99. package/dist/shared/types/report.d.ts +107 -0
  100. package/dist/shared/types/timeline.d.ts +2 -1
  101. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  102. package/dist/shared/utils/datePresets.d.ts +31 -0
  103. package/package.json +4 -2
  104. package/dist/api/types/copilot.d.ts +0 -157
  105. package/dist/api/types/storageServers.d.ts +0 -4
  106. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,6 +1,181 @@
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 _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";
2
+ import type { _360AssetType, AdminCamera, Camera, AuditLog, AuditLogDetails, AuditLogEntity, AuditLogsParams, DroneComparisonFrames, IngestUploadInitResponse, JsonValue, PaginationParams } from "@evercam/api/types";
2
3
  import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
3
4
  import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
5
+ import { SeriesOptionsType } from "highcharts";
6
+ export type ReorderableCamera = Camera & {
7
+ thumbnailSrc?: string;
8
+ batteryLevel?: {
9
+ voltage: number;
10
+ level: string;
11
+ icon: string;
12
+ color: string;
13
+ } | null;
14
+ };
15
+ export type SelectItem = {
16
+ text: string;
17
+ value: string | number;
18
+ };
19
+ export type RoiProjectGroup = {
20
+ exid: string;
21
+ name: string;
22
+ cameras: AdminCamera[];
23
+ };
24
+ export declare enum IframeMessageType {
25
+ LiveView = "liveView",
26
+ EditSnapshot = "editSnapshot",
27
+ Weather = "weather",
28
+ CameraInfo = "cameraInfo",
29
+ AnalyticsEvent = "analyticsEvent",
30
+ Ready = "ready",
31
+ Info = "info",
32
+ GateReport = "gateReport",
33
+ CreateCompare = "createCompare",
34
+ UploadDrone = "uploadDrone",
35
+ UploadBIM = "uploadBIM",
36
+ History = "history",
37
+ PerformanceScore = "performanceScore",
38
+ ShareLink = "shareLink",
39
+ LoadForgeModel = "loadForgeModel",
40
+ LoadPlannerList = "loadPlannerList",
41
+ SaveProjectBounds = "saveProjectBounds",
42
+ ArchiveComment = "archiveComment",
43
+ UnarchiveComment = "unarchiveComment",
44
+ DeleteComment = "deleteComment",
45
+ CreateComment = "createComment",
46
+ RefreshComments = "refreshComments",
47
+ CommentSyncFailed = "commentSyncFailed",
48
+ Load360Gallery = "load360Gallery",
49
+ Upload360 = "upload360",
50
+ FetchForgeToken = "FetchForgeToken",
51
+ ForgeTokenResponse = "ForgeTokenResponse",
52
+ ShowBimUploadChoice = "showBimUploadChoice",
53
+ ViewerLaunchFlags = "viewerLaunchFlags",
54
+ Fetch360DrawingIds = "fetch360DrawingIds",
55
+ DrawingIdsResponse = "drawingIdsResponse",
56
+ CloseCameraMarkerPreview = "CloseCameraMarkerPreview",
57
+ ChatInit = "chatInit",
58
+ ChatToken = "chatToken",
59
+ ChatContext = "chatContext",
60
+ ChatTheme = "chatTheme",
61
+ ChatNavigate = "chatNavigate",
62
+ ChatConversations = "chatConversations",
63
+ ChatOpenConversation = "chatOpenConversation",
64
+ ChatNewConversation = "chatNewConversation",
65
+ ChatRenameConversation = "chatRenameConversation",
66
+ ChatDeleteConversation = "chatDeleteConversation",
67
+ ChatOpenWalkMarker = "chatOpenWalkMarker",
68
+ ProjectMembers = "projectMembers",
69
+ FocusComment = "focusComment",
70
+ ShareByEmail = "shareByEmail"
71
+ }
72
+ export declare enum ChatTheme {
73
+ Dark = "dark",
74
+ Light = "light"
75
+ }
76
+ export type ChatUser = {
77
+ email: string;
78
+ name: string;
79
+ };
80
+ /**
81
+ * The dashboard's answer to the frame's `Ready`.
82
+ *
83
+ * The token travels here and nowhere else — never in the iframe URL, which
84
+ * would land it in history, referrers and logs.
85
+ */
86
+ export type ChatInitPayload = {
87
+ token: string;
88
+ user: ChatUser;
89
+ theme: ChatTheme;
90
+ timezone: string;
91
+ };
92
+ /** Pushed on rotation. A frame holding a mount-time token 401s the moment it changes. */
93
+ export type ChatTokenPayload = {
94
+ token: string;
95
+ };
96
+ /** Pushed on every dashboard route change. */
97
+ export type ChatContextPayload = {
98
+ pageId: string;
99
+ projectExid: string | null;
100
+ projectName: string | null;
101
+ cameraExid: string | null;
102
+ timezone: string;
103
+ /**
104
+ * A conversation to open, from `?chat=` on the dashboard's URL.
105
+ *
106
+ * Deep-linking lives in the *context* rather than in a message of its own
107
+ * because it is exactly that — a fact about where the host currently is, sent
108
+ * on every route change alongside the project and page. `null` means "no
109
+ * opinion", which is what every other page sends.
110
+ */
111
+ chatId: string | null;
112
+ };
113
+ export type ChatThemePayload = {
114
+ theme: ChatTheme;
115
+ };
116
+ /**
117
+ * A page id plus params, never a route string — the dashboard owns the
118
+ * id → route mapping.
119
+ */
120
+ export type ChatNavigatePayload = {
121
+ pageId: string;
122
+ params: Record<string, string>;
123
+ };
124
+ /**
125
+ * Open a 360-walk marker in the 360 viewer, facing one view.
126
+ *
127
+ * Sent by Chat when a `WalkView` in an answer is clicked. The dashboard opens the
128
+ * 360 app in its own dialog (`Walk360Preview`), outside the chat frame, so the
129
+ * viewer gets the whole screen. `walkName` and `walkDate` are how the 360 app
130
+ * knows a walk (its `floor` and `date` URL params); `camera` is the viewer's own
131
+ * azimuth/polar angles for that view, or null to open at the marker's default.
132
+ */
133
+ export type ChatOpenWalkMarkerPayload = {
134
+ projectExid: string;
135
+ walkId: string;
136
+ walkName: string;
137
+ walkDate: string;
138
+ markerId: string;
139
+ view: string;
140
+ camera: {
141
+ azimuthAngle: number;
142
+ polarAngle: number;
143
+ } | null;
144
+ };
145
+ /**
146
+ * One conversation, as the dashboard's sidebar needs it.
147
+ *
148
+ * A deliberate projection of the engine's `ChatSession` — a label and a
149
+ * timestamp, nothing else. The transcript stays in the frame: mirroring `turns`
150
+ * would put every message of every conversation on the bridge each time the list
151
+ * changed, to render a row that shows neither.
152
+ */
153
+ export type ChatSessionSummary = {
154
+ id: string;
155
+ title: string | null;
156
+ updatedAt: string;
157
+ };
158
+ /**
159
+ * The frame's conversation list, mirrored up for the left sidebar to draw.
160
+ *
161
+ * The frame stays the single owner of this data — it holds the engine client and
162
+ * the bearer. The host renders and sends intent back; it never fetches.
163
+ */
164
+ export type ChatConversationsPayload = {
165
+ sessions: ChatSessionSummary[];
166
+ openId: string | null;
167
+ isLoading: boolean;
168
+ };
169
+ export type ChatOpenConversationPayload = {
170
+ id: string;
171
+ };
172
+ export type ChatRenameConversationPayload = {
173
+ id: string;
174
+ title: string;
175
+ };
176
+ export type ChatDeleteConversationPayload = {
177
+ id: string;
178
+ };
4
179
  export declare enum NavigationArrow {
5
180
  Previous = "previous",
6
181
  Next = "next"
@@ -10,31 +185,12 @@ export declare enum WatermarkedImageDownloadOrigin {
10
185
  Bim = "BIM",
11
186
  Snapshot = "snapshot",
12
187
  The360 = "360",
13
- The360Gallery = "360 Gallery",
14
188
  Planner = "Planner"
15
189
  }
16
190
  export declare enum PlayerMode {
17
191
  Video = "video",
18
192
  Jpegs = "jpegs"
19
193
  }
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
194
  export type TimelineProviderRequestParams = TimelineDateInterval & {
39
195
  precision?: TimelinePrecision;
40
196
  labels?: string[];
@@ -48,13 +204,6 @@ export type TimelinePlayerGroupConfig = {
48
204
  export type TimelinePlayerConfig = {
49
205
  [groupName: string]: TimelinePlayerGroupConfig;
50
206
  };
51
- export type TimelinePlayerTooltipItem = {
52
- label?: string;
53
- title?: string;
54
- thumbnailUrl: string;
55
- placeholderThumbnailUrl?: string;
56
- fallbackThumbnailUrl?: string;
57
- };
58
207
  export declare enum TimelineGroupId {
59
208
  ThreeSixty = "w360",
60
209
  Drone = "drone",
@@ -124,8 +273,8 @@ export type LeaderLineOptions = {
124
273
  startPlugSize?: number;
125
274
  endPlugSize?: number;
126
275
  path?: LeaderLinesPathType;
127
- startSocketGravity?: [number, number];
128
- endSocketGravity?: [number, number];
276
+ startSocketGravity?: TuplePoint2D;
277
+ endSocketGravity?: TuplePoint2D;
129
278
  dash?: {
130
279
  animation: boolean | {
131
280
  duration: number;
@@ -142,10 +291,6 @@ export type LineConfig = {
142
291
  end: CssSelector | CssSelector[];
143
292
  options?: LeaderLineOptions;
144
293
  };
145
- export type Point = {
146
- x: number;
147
- y: number;
148
- };
149
294
  export declare enum ZohoDeskTicketStatus {
150
295
  Closed = "Closed",
151
296
  OnHold = "On Hold",
@@ -156,11 +301,14 @@ export type TagSelectorItem = Tag & {
156
301
  };
157
302
  export declare enum FormSchemaComponents {
158
303
  SelectField = "SelectField",
304
+ HierarchicalSelect = "HierarchicalSelectField",
159
305
  MultiOption = "MultiOption",
160
306
  TextField = "TextField",
161
- CheckBox = "SwitchField",
307
+ SwitchField = "SwitchField",
308
+ CheckBox = "CheckBoxField",
162
309
  Date = "DatePickerInput",
163
310
  DateTime = "DateTimeField",
311
+ Time = "TimeField",
164
312
  TextArea = "Textarea",
165
313
  Search = "Autocomplete",
166
314
  ReadOnly = "ReadOnly",
@@ -175,6 +323,7 @@ export declare enum FormSchemaDataType {
175
323
  export type FormSchemaOptions = {
176
324
  title: string;
177
325
  value: string;
326
+ parentId?: string | null;
178
327
  };
179
328
  export type FormSchemaField = {
180
329
  id: string;
@@ -189,11 +338,231 @@ export type FormSchemaField = {
189
338
  columns?: number;
190
339
  };
191
340
  export type FormSchema = Record<string, FormSchemaField>;
341
+ export type DrawingStats = {
342
+ overlay: boolean;
343
+ geolocated: boolean;
344
+ isCalibrated: boolean;
345
+ walks: number;
346
+ markers: number;
347
+ minimodel: number;
348
+ bim: number;
349
+ comments: number;
350
+ lastCapturedDate: string | null;
351
+ };
192
352
  export interface ScrollListener {
193
353
  element: Element | Window;
354
+ event: "scroll" | "resize";
194
355
  handler: () => void;
195
356
  }
196
357
  export interface LeaderLineInstance {
197
358
  remove(): void;
198
359
  position(): void;
199
360
  }
361
+ export type SnapshotCardItem = {
362
+ label?: string;
363
+ title?: string;
364
+ thumbnailUrl: string;
365
+ placeholderThumbnailUrl?: string;
366
+ fallbackThumbnailUrl?: string;
367
+ };
368
+ export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
369
+ data: T[];
370
+ };
371
+ export type NotificationTitleSegment = {
372
+ text: string;
373
+ isBold?: boolean;
374
+ };
375
+ export type FormattedNotificationData = {
376
+ title: string;
377
+ titleSegments?: NotificationTitleSegment[];
378
+ link: string;
379
+ thumbnail?: string;
380
+ icon: string;
381
+ excerpt?: string;
382
+ commentTarget?: {
383
+ commentId: number;
384
+ dateId: string | number;
385
+ floorId: string;
386
+ };
387
+ };
388
+ export type FormattedNotification = FormattedNotificationData & {
389
+ date: string;
390
+ read: boolean;
391
+ id: number;
392
+ thumbnailError?: boolean;
393
+ };
394
+ export type ProcoreProjectStepData = {
395
+ project: ProcoreUserProject | null;
396
+ album: ProcoreProjectAlbum | null;
397
+ observationType: ProcoreObservationType | null;
398
+ };
399
+ export type ProcoreUploadFormData = {
400
+ procoreType: ProcoreType;
401
+ project: ProcoreUserProject | null;
402
+ album: ProcoreProjectAlbum | null;
403
+ observationType: ProcoreObservationType | null;
404
+ observationForm: Record<string, string | number | boolean | null>;
405
+ };
406
+ export type AconexUploadFormData = {
407
+ project: AconexUserProject | null;
408
+ form: Record<string, string | number | boolean | null>;
409
+ };
410
+ export type AutodeskUploadFormData = {
411
+ hub: AutodeskUserHub | null;
412
+ project: AutodeskProject | null;
413
+ folder: AutodeskFolder | null;
414
+ };
415
+ export type HammertechUploadFormData = {
416
+ project: HammertechProject | null;
417
+ issueType: HammertechIssueType | null;
418
+ description: string;
419
+ priority: HammertechPriority | null;
420
+ dueDate: string | null;
421
+ classification: HammertechClassification | null;
422
+ locationId: string | null;
423
+ isPositiveObservation: boolean;
424
+ isPhotoForFixRequired: boolean;
425
+ customFieldFormId: string | null;
426
+ customFieldValues: Record<string, unknown>;
427
+ fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
428
+ };
429
+ export interface MediaHubFilters {
430
+ title: string;
431
+ requesterEmail: string | undefined;
432
+ camera: string | undefined;
433
+ type: string;
434
+ fromDate: string;
435
+ toDate: string;
436
+ sortBy: string;
437
+ }
438
+ export interface MediaHubSortParameter {
439
+ label: string;
440
+ value: string;
441
+ }
442
+ export type BimUploadObject = IngestUploadInitResponse & {
443
+ projectName: string;
444
+ };
445
+ export type BimUploadFileResult = {
446
+ url: string;
447
+ title: string;
448
+ fileExtension: string;
449
+ };
450
+ export type CameraCardItem = {
451
+ thumbnail: string;
452
+ title: string;
453
+ exid: string;
454
+ status: CameraStatus;
455
+ disabled: boolean;
456
+ to: string;
457
+ isOffline: boolean;
458
+ isWaiting: boolean;
459
+ isUnderNda: boolean;
460
+ isAdmin: boolean;
461
+ batteryVoltage: number | null;
462
+ };
463
+ export type ThreeSixtyGalleryView = "drawings" | "walks";
464
+ export interface ThreeSixtyWalk {
465
+ id: string;
466
+ name: string;
467
+ date: string;
468
+ monthKey: string;
469
+ color: string;
470
+ dateId: string;
471
+ floorId: string;
472
+ commentCount: number;
473
+ hasBim: boolean;
474
+ hasMinimodel: boolean;
475
+ }
476
+ export interface ThreeSixtyWalkGroup {
477
+ date: string;
478
+ walks: ThreeSixtyWalk[];
479
+ }
480
+ export type ThreeSixtyMediaDownloadOption = {
481
+ type: _360AssetType;
482
+ title: string;
483
+ icon: string;
484
+ };
485
+ export type DrawingSelection = {
486
+ pageNumber: number;
487
+ size: number;
488
+ thumbnail: string | null;
489
+ pageCount: number;
490
+ };
491
+ export type CommentCardComment = {
492
+ id?: number | string;
493
+ content?: string;
494
+ createdAt?: string;
495
+ archivedAt?: string;
496
+ creatorName?: string;
497
+ label?: string;
498
+ timestamp?: string;
499
+ cameraExid?: string;
500
+ position3d?: number[];
501
+ canDelete?: boolean;
502
+ };
503
+ export type ErrorPageParams = {
504
+ statusCode: number;
505
+ message: string;
506
+ homePageLink?: boolean;
507
+ };
508
+ export declare enum AuditLogDetailsView {
509
+ Diff = "diff",
510
+ OfflineMessage = "offlineMessage",
511
+ Delete = "delete",
512
+ Create = "create",
513
+ NvrDeviceSettings = "nvrDeviceSettings",
514
+ RouterDeviceSettings = "routerDeviceSettings"
515
+ }
516
+ export type AuditLogDetailsCell = AuditLogDetails[keyof AuditLogDetails] | JsonValue;
517
+ export type AuditLogDetailsRow = {
518
+ key: string;
519
+ cells: AuditLogDetailsCell[];
520
+ isJsonFormatted?: boolean;
521
+ isScopeList?: boolean;
522
+ rowClass?: string;
523
+ };
524
+ export type AuditLogDetailsTable = {
525
+ headers: {
526
+ text: string;
527
+ width?: string;
528
+ }[];
529
+ rows: AuditLogDetailsRow[];
530
+ };
531
+ export type AuditLogAuthMethodView = {
532
+ icon: string;
533
+ label: string;
534
+ tooltip: string;
535
+ };
536
+ export type AuditLogLinkEntity = AuditLogEntity.Cameras | AuditLogEntity.Projects | AuditLogEntity.Routers | AuditLogEntity.Users | AuditLogEntity.Sims;
537
+ export type AuditLogRow = AuditLog & {
538
+ canExpand: boolean;
539
+ authMethod: AuditLogAuthMethodView | null;
540
+ };
541
+ export type AuditLogsReportParams = PaginationParams & Partial<AuditLogsParams>;
542
+ export declare enum ShareByEmailKind {
543
+ Drone = "drone"
544
+ }
545
+ export declare enum ShareByEmailStatus {
546
+ Capturing = "capturing",
547
+ Ready = "ready",
548
+ Failed = "failed"
549
+ }
550
+ export type DroneEmailCapture = Pick<DroneComparisonFrames, "beforeDate" | "afterDate"> & Partial<Pick<DroneComparisonFrames, "beforeImage" | "afterImage">> & {
551
+ status: ShareByEmailStatus;
552
+ error?: string;
553
+ };
554
+ export type QuillEditorInstance = {
555
+ enable: (enabled: boolean) => void;
556
+ root: HTMLElement;
557
+ clipboard: {
558
+ dangerouslyPasteHTML: (index: number, html: string, source?: string) => void;
559
+ };
560
+ deleteText: (index: number, length: number, source?: string) => void;
561
+ getLength: () => number;
562
+ getSelection: (focus?: boolean) => {
563
+ index: number;
564
+ length: number;
565
+ } | null;
566
+ insertEmbed: (index: number, type: string, value: string, source?: string) => void;
567
+ setSelection: (index: number, length?: number) => void;
568
+ };
@@ -0,0 +1,10 @@
1
+ export declare enum CustomDataTableFilterType {
2
+ Select = "SelectSearchFilter",
3
+ Text = "TextFieldSearchFilter"
4
+ }
5
+ export interface CustomDataTableFilterField<T = unknown> {
6
+ component: CustomDataTableFilterType;
7
+ attributes?: Record<string, unknown>;
8
+ customFilter?: (item: T, fieldName: string, search: unknown) => boolean;
9
+ }
10
+ export type CustomDataTableFilterFields<T = unknown> = Record<string, CustomDataTableFilterField<T>>;
@@ -0,0 +1,93 @@
1
+ import type { AerialAllocation, DroneFlightMetadata, DroneFileState, DroneFileError } from "@evercam/api/types";
2
+ export declare enum DroneUploadErrorCode {
3
+ Offline = "offline",
4
+ UploadStalled = "upload_stalled",
5
+ AuthorizationExpired = "upload_authorization_expired",
6
+ UploadRejected = "upload_rejected",
7
+ ServerUnreachable = "server_unreachable",
8
+ UploadStopped = "upload_stopped",
9
+ UploadCancelled = "upload_cancelled",
10
+ DuplicateFilenames = "duplicate_filenames",
11
+ DifferentFlight = "different_flight",
12
+ ProcessingClosed = "processing_closed",
13
+ PartialUploadFailed = "partial_upload_failed",
14
+ NotSubmitted = "not_submitted"
15
+ }
16
+ export declare enum DroneUploadStage {
17
+ Prepare = "prepare",
18
+ ChooseIngestUrl = "choose_ingest_url",
19
+ CreateProcessing = "create_processing",
20
+ GetProcessing = "get_processing",
21
+ Allocate = "allocate",
22
+ Put = "put",
23
+ Acknowledge = "acknowledge",
24
+ Complete = "complete"
25
+ }
26
+ export declare enum DroneUploadRetryTrigger {
27
+ Manual = "manual",
28
+ Online = "online",
29
+ Timer = "timer"
30
+ }
31
+ export type DroneUploadEventProps = {
32
+ processingId?: number;
33
+ isAerialOnly: boolean;
34
+ uploadedFiles: number;
35
+ totalFiles: number;
36
+ uploadedBytes: number;
37
+ totalBytes: number;
38
+ connectionType?: string;
39
+ };
40
+ export type AerialUploadFile = {
41
+ file: File;
42
+ allocation: AerialAllocation;
43
+ };
44
+ export declare enum DroneUploadStatus {
45
+ Queued = "queued",
46
+ Uploading = "uploading",
47
+ Failed = "failed",
48
+ Completed = "completed"
49
+ }
50
+ export type DroneUploadProgress = {
51
+ status: DroneUploadStatus;
52
+ uploadedFiles: number;
53
+ totalFiles: number;
54
+ uploadedBytes: number;
55
+ totalBytes: number;
56
+ percentage: number;
57
+ startedAt: number;
58
+ initialBytes: number;
59
+ error?: Error;
60
+ };
61
+ export type DroneUploadOptions = {
62
+ label?: string;
63
+ projectId: string;
64
+ processingId?: number;
65
+ flightMetadata: DroneFlightMetadata;
66
+ files: File[];
67
+ aerialShots: AerialUploadFile[];
68
+ onProgress?: (progress: DroneUploadProgress) => void;
69
+ };
70
+ export type AerialUploadOptions = Pick<DroneUploadOptions, "label" | "aerialShots" | "onProgress"> & {
71
+ processingId: number;
72
+ };
73
+ export type DroneUploadJob = {
74
+ readonly projectId?: string;
75
+ readonly initialProcessingId?: number;
76
+ readonly label: string;
77
+ readonly aerialFilenames: string[];
78
+ readonly createdAt: number;
79
+ processingId?: number;
80
+ ingestUrl?: string;
81
+ stage?: DroneUploadStage;
82
+ progress: DroneUploadProgress;
83
+ run: () => Promise<void>;
84
+ cancel: () => Promise<void>;
85
+ };
86
+ export type UploadCollection = {
87
+ files: File[];
88
+ initialStates?: DroneFileState[];
89
+ allocate: (files: File[]) => Promise<DroneFileState[]>;
90
+ acknowledge: (filenames: string[]) => Promise<{
91
+ errors: DroneFileError[];
92
+ }>;
93
+ };
@@ -1,4 +1,4 @@
1
- import type { Timestamp } from "@evercam/api/types";
1
+ import type { Timestamp } from "@evercam/shared/types";
2
2
  export interface Frame {
3
3
  label: string;
4
4
  src: string;
@@ -13,7 +13,7 @@ export type EventMarker<T extends {}> = T & {
13
13
  label: string;
14
14
  thumbnailUrl: string;
15
15
  isActive: boolean;
16
- cssClass?: Object | string;
16
+ markerType?: RecordingsMarker;
17
17
  };
18
18
  export type SnapshotEvent<T extends {}> = T & {
19
19
  eventTime: Timestamp;
@@ -22,8 +22,15 @@ export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
22
22
  frameIndex: number;
23
23
  snapshotTimestamp: Timestamp;
24
24
  };
25
+ export declare enum RecordingsMarker {
26
+ Comment = "comment",
27
+ GateReport = "gate-report",
28
+ Anpr = "anpr",
29
+ Detection = "detection",
30
+ SmartSearch = "smart-search"
31
+ }
25
32
  export declare enum ImageQuality {
26
- ThureeSixty = "360",
33
+ ThreeSixty = "360",
27
34
  FourEighty = "480",
28
35
  SevenTwenty = "720",
29
36
  OneZeroEightZero = "1080",
@@ -1,4 +1,9 @@
1
1
  export * from "@evercam/api/types";
2
2
  export * from "./components";
3
+ export * from "./report";
4
+ export * from "./customDataTableFilters";
3
5
  export * from "./imagePlayer";
4
6
  export * from "./timeline";
7
+ export * from "./rbac";
8
+ export * from "./observations";
9
+ export * from "./droneUpload";
@@ -0,0 +1,25 @@
1
+ export type ObservationsTableHeader = {
2
+ isThumbnail?: boolean;
3
+ visible: boolean;
4
+ divider: boolean;
5
+ sortable: boolean;
6
+ text: string;
7
+ value: string;
8
+ class: string;
9
+ align: string;
10
+ };
11
+ export type ObservationsCountDay = {
12
+ day: string;
13
+ };
14
+ export type ObservationsTableOptionsUpdate = {
15
+ page: number;
16
+ sortBy: string[];
17
+ sortDesc: boolean[];
18
+ };
19
+ export type ObservationsEventsTableState = {
20
+ height: number | string;
21
+ };
22
+ export type ObservationTypeOption = {
23
+ value: string;
24
+ label: string;
25
+ };