@evercam/api 1.0.0-5ccefe067 → 1.0.0-5d2895b13

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 (100) hide show
  1. package/README.md +4 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +203 -10
  3. package/dist/api/api/adminApi.d.ts +145 -98
  4. package/dist/api/api/aiApi.d.ts +190 -82
  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 +154 -103
  9. package/dist/api/api/evercamLabsApi.d.ts +8 -17
  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 +127 -34
  13. package/dist/api/api/ptzApi.d.ts +12 -3
  14. package/dist/api/api/videoWallApi.d.ts +7 -7
  15. package/dist/api/api/weatherApi.d.ts +2 -2
  16. package/dist/api/api/workflowsApi.d.ts +15 -0
  17. package/dist/api/types/360.d.ts +293 -23
  18. package/dist/api/types/aconex.d.ts +104 -6
  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 +182 -59
  22. package/dist/api/types/anpr.d.ts +53 -13
  23. package/dist/api/types/auditLogs.d.ts +19 -2
  24. package/dist/api/types/authz.d.ts +132 -0
  25. package/dist/api/types/autodesk.d.ts +7 -7
  26. package/dist/api/types/automation.d.ts +114 -1
  27. package/dist/api/types/axios.d.ts +20 -14
  28. package/dist/api/types/bim.d.ts +38 -9
  29. package/dist/api/types/camera.d.ts +135 -113
  30. package/dist/api/types/comments.d.ts +32 -11
  31. package/dist/api/types/company.d.ts +43 -2
  32. package/dist/api/types/compare.d.ts +20 -5
  33. package/dist/api/types/connector.d.ts +5 -5
  34. package/dist/api/types/coolify.d.ts +20 -2
  35. package/dist/api/types/credentials.d.ts +1 -0
  36. package/dist/api/types/detections.d.ts +23 -32
  37. package/dist/api/types/drone.d.ts +95 -6
  38. package/dist/api/types/errors.d.ts +14 -1
  39. package/dist/api/types/gateReport.d.ts +49 -168
  40. package/dist/api/types/gateReportManagement.d.ts +170 -0
  41. package/dist/api/types/hammertech.d.ts +98 -0
  42. package/dist/api/types/hdd.d.ts +26 -1
  43. package/dist/api/types/index.d.ts +18 -3
  44. package/dist/api/types/ingest.d.ts +191 -4
  45. package/dist/api/types/kit.d.ts +95 -56
  46. package/dist/api/types/map.d.ts +12 -0
  47. package/dist/api/types/media.d.ts +9 -3
  48. package/dist/api/types/notification.d.ts +83 -3
  49. package/dist/api/types/oauth.d.ts +62 -0
  50. package/dist/api/types/observationEvents.d.ts +141 -0
  51. package/dist/api/types/observations.d.ts +84 -0
  52. package/dist/api/types/planner.d.ts +102 -9
  53. package/dist/api/types/posthog.d.ts +35 -0
  54. package/dist/api/types/procore.d.ts +13 -6
  55. package/dist/api/types/progressPhoto.d.ts +6 -31
  56. package/dist/api/types/project.d.ts +150 -18
  57. package/dist/api/types/recording.d.ts +10 -15
  58. package/dist/api/types/recycleBin.d.ts +14 -0
  59. package/dist/api/types/ring.d.ts +53 -0
  60. package/dist/api/types/roi.d.ts +3 -11
  61. package/dist/api/types/routeParams.d.ts +3 -1
  62. package/dist/api/types/router.d.ts +20 -1
  63. package/dist/api/types/shared.d.ts +28 -29
  64. package/dist/api/types/shares.d.ts +6 -157
  65. package/dist/api/types/sim.d.ts +6 -6
  66. package/dist/api/types/siteAnalytics.d.ts +189 -46
  67. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  68. package/dist/api/types/siteView.d.ts +78 -0
  69. package/dist/api/types/smartSeach.d.ts +5 -0
  70. package/dist/api/types/snapshots.d.ts +55 -1
  71. package/dist/api/types/socket.d.ts +4 -0
  72. package/dist/api/types/sso.d.ts +55 -0
  73. package/dist/api/types/storageProvider.d.ts +19 -0
  74. package/dist/api/types/storyblok.d.ts +27 -0
  75. package/dist/api/types/streaming.d.ts +4 -5
  76. package/dist/api/types/tag.d.ts +1 -1
  77. package/dist/api/types/time.d.ts +4 -18
  78. package/dist/api/types/timelapse.d.ts +7 -11
  79. package/dist/api/types/user.d.ts +121 -35
  80. package/dist/api/types/videoWall.d.ts +47 -14
  81. package/dist/api/types/weather.d.ts +77 -11
  82. package/dist/api/types/widget.d.ts +96 -16
  83. package/dist/api/types/workflows.d.ts +108 -0
  84. package/dist/api/types/xweather.d.ts +4 -4
  85. package/dist/api/utils.d.ts +1 -0
  86. package/dist/index.js +2532 -1039
  87. package/dist/index.js.map +1 -1
  88. package/dist/index.umd.cjs +1 -1
  89. package/dist/index.umd.cjs.map +1 -1
  90. package/dist/shared/types/components.d.ts +355 -35
  91. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  92. package/dist/shared/types/imagePlayer.d.ts +10 -3
  93. package/dist/shared/types/index.d.ts +3 -0
  94. package/dist/shared/types/observations.d.ts +25 -0
  95. package/dist/shared/types/rbac.d.ts +67 -0
  96. package/dist/shared/types/timeline.d.ts +2 -1
  97. package/package.json +6 -4
  98. package/dist/api/types/copilot.d.ts +0 -157
  99. package/dist/api/types/storageServers.d.ts +0 -4
  100. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,6 +1,184 @@
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, IngestUploadInitResponse } 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
+ }
71
+ export declare enum ChatTheme {
72
+ Dark = "dark",
73
+ Light = "light"
74
+ }
75
+ export type ChatUser = {
76
+ email: string;
77
+ name: string;
78
+ };
79
+ /**
80
+ * The dashboard's answer to the frame's `Ready`.
81
+ *
82
+ * The token travels here and nowhere else — never in the iframe URL, which
83
+ * would land it in history, referrers and logs.
84
+ */
85
+ export type ChatInitPayload = {
86
+ token: string;
87
+ user: ChatUser;
88
+ theme: ChatTheme;
89
+ timezone: string;
90
+ };
91
+ /** Pushed on rotation. A frame holding a mount-time token 401s the moment it changes. */
92
+ export type ChatTokenPayload = {
93
+ token: string;
94
+ };
95
+ /** Pushed on every dashboard route change. */
96
+ export type ChatContextPayload = {
97
+ pageId: string;
98
+ projectExid: string | null;
99
+ projectName: string | null;
100
+ cameraExid: string | null;
101
+ timezone: string;
102
+ /**
103
+ * A conversation to open, from `?chat=` on the dashboard's URL.
104
+ *
105
+ * Deep-linking lives in the *context* rather than in a message of its own
106
+ * because it is exactly that — a fact about where the host currently is, sent
107
+ * on every route change alongside the project and page. `null` means "no
108
+ * opinion", which is what every other page sends.
109
+ */
110
+ chatId: string | null;
111
+ };
112
+ export type ChatThemePayload = {
113
+ theme: ChatTheme;
114
+ };
115
+ /**
116
+ * A page id plus params, never a route string — the dashboard owns the
117
+ * id → route mapping.
118
+ */
119
+ export type ChatNavigatePayload = {
120
+ pageId: string;
121
+ params: Record<string, string>;
122
+ };
123
+ /**
124
+ * Open a 360-walk marker in the 360 viewer, facing one view.
125
+ *
126
+ * Sent by Chat when a `WalkView` in an answer is clicked. The dashboard opens the
127
+ * 360 app in its own dialog (`Walk360Preview`), outside the chat frame, so the
128
+ * viewer gets the whole screen. `walkName` and `walkDate` are how the 360 app
129
+ * knows a walk (its `floor` and `date` URL params); `camera` is the viewer's own
130
+ * azimuth/polar angles for that view, or null to open at the marker's default.
131
+ */
132
+ export type ChatOpenWalkMarkerPayload = {
133
+ projectExid: string;
134
+ walkId: string;
135
+ walkName: string;
136
+ walkDate: string;
137
+ markerId: string;
138
+ view: string;
139
+ camera: {
140
+ azimuthAngle: number;
141
+ polarAngle: number;
142
+ } | null;
143
+ };
144
+ /**
145
+ * One conversation, as the dashboard's sidebar needs it.
146
+ *
147
+ * A deliberate projection of the engine's `ChatSession` — a label and a
148
+ * timestamp, nothing else. The transcript stays in the frame: mirroring `turns`
149
+ * would put every message of every conversation on the bridge each time the list
150
+ * changed, to render a row that shows neither.
151
+ */
152
+ export type ChatSessionSummary = {
153
+ id: string;
154
+ title: string | null;
155
+ updatedAt: string;
156
+ };
157
+ /**
158
+ * The frame's conversation list, mirrored up for the left sidebar to draw.
159
+ *
160
+ * The frame stays the single owner of this data — it holds the engine client and
161
+ * the bearer. The host renders and sends intent back; it never fetches.
162
+ */
163
+ export type ChatConversationsPayload = {
164
+ sessions: ChatSessionSummary[];
165
+ openId: string | null;
166
+ isLoading: boolean;
167
+ };
168
+ export type ChatOpenConversationPayload = {
169
+ id: string;
170
+ };
171
+ export type ChatRenameConversationPayload = {
172
+ id: string;
173
+ title: string;
174
+ };
175
+ export type ChatDeleteConversationPayload = {
176
+ id: string;
177
+ };
178
+ export declare enum NavigationArrow {
179
+ Previous = "previous",
180
+ Next = "next"
181
+ }
4
182
  export declare enum WatermarkedImageDownloadOrigin {
5
183
  Drone = "drone",
6
184
  Bim = "BIM",
@@ -12,24 +190,6 @@ export declare enum PlayerMode {
12
190
  Video = "video",
13
191
  Jpegs = "jpegs"
14
192
  }
15
- export type TasksStatusMap = {
16
- [key: string]: TaskStatus;
17
- };
18
- export type TaskProgressItem = {
19
- status: TaskStatus;
20
- description: string;
21
- percentDone?: number;
22
- duration?: number;
23
- };
24
- export type GlobalSearchMatch = {
25
- path: Array<string>;
26
- value: string | number | boolean;
27
- };
28
- export type GlobalSearchResult = {
29
- index: number;
30
- matches: Array<GlobalSearchMatch>;
31
- };
32
- export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
33
193
  export type TimelineProviderRequestParams = TimelineDateInterval & {
34
194
  precision?: TimelinePrecision;
35
195
  labels?: string[];
@@ -43,13 +203,6 @@ export type TimelinePlayerGroupConfig = {
43
203
  export type TimelinePlayerConfig = {
44
204
  [groupName: string]: TimelinePlayerGroupConfig;
45
205
  };
46
- export type TimelinePlayerTooltipItem = {
47
- label?: string;
48
- title?: string;
49
- thumbnailUrl: string;
50
- placeholderThumbnailUrl?: string;
51
- fallbackThumbnailUrl?: string;
52
- };
53
206
  export declare enum TimelineGroupId {
54
207
  ThreeSixty = "w360",
55
208
  Drone = "drone",
@@ -119,8 +272,8 @@ export type LeaderLineOptions = {
119
272
  startPlugSize?: number;
120
273
  endPlugSize?: number;
121
274
  path?: LeaderLinesPathType;
122
- startSocketGravity?: [number, number];
123
- endSocketGravity?: [number, number];
275
+ startSocketGravity?: TuplePoint2D;
276
+ endSocketGravity?: TuplePoint2D;
124
277
  dash?: {
125
278
  animation: boolean | {
126
279
  duration: number;
@@ -137,10 +290,6 @@ export type LineConfig = {
137
290
  end: CssSelector | CssSelector[];
138
291
  options?: LeaderLineOptions;
139
292
  };
140
- export type Point = {
141
- x: number;
142
- y: number;
143
- };
144
293
  export declare enum ZohoDeskTicketStatus {
145
294
  Closed = "Closed",
146
295
  OnHold = "On Hold",
@@ -151,13 +300,18 @@ export type TagSelectorItem = Tag & {
151
300
  };
152
301
  export declare enum FormSchemaComponents {
153
302
  SelectField = "SelectField",
303
+ HierarchicalSelect = "HierarchicalSelectField",
154
304
  MultiOption = "MultiOption",
155
305
  TextField = "TextField",
156
- CheckBox = "SwitchField",
157
- DateTime = "DatePickerInput",
306
+ SwitchField = "SwitchField",
307
+ CheckBox = "CheckBoxField",
308
+ Date = "DatePickerInput",
309
+ DateTime = "DateTimeField",
310
+ Time = "TimeField",
158
311
  TextArea = "Textarea",
159
312
  Search = "Autocomplete",
160
- ReadOnly = "ReadOnly"
313
+ ReadOnly = "ReadOnly",
314
+ Ratio = "RatioField"
161
315
  }
162
316
  export declare enum FormSchemaDataType {
163
317
  String = "string",
@@ -168,6 +322,7 @@ export declare enum FormSchemaDataType {
168
322
  export type FormSchemaOptions = {
169
323
  title: string;
170
324
  value: string;
325
+ parentId?: string | null;
171
326
  };
172
327
  export type FormSchemaField = {
173
328
  id: string;
@@ -182,11 +337,176 @@ export type FormSchemaField = {
182
337
  columns?: number;
183
338
  };
184
339
  export type FormSchema = Record<string, FormSchemaField>;
340
+ export type DrawingStats = {
341
+ overlay: boolean;
342
+ geolocated: boolean;
343
+ isCalibrated: boolean;
344
+ walks: number;
345
+ markers: number;
346
+ minimodel: number;
347
+ bim: number;
348
+ comments: number;
349
+ lastCapturedDate: string | null;
350
+ };
185
351
  export interface ScrollListener {
186
352
  element: Element | Window;
353
+ event: "scroll" | "resize";
187
354
  handler: () => void;
188
355
  }
189
356
  export interface LeaderLineInstance {
190
357
  remove(): void;
191
358
  position(): void;
192
359
  }
360
+ export type SnapshotCardItem = {
361
+ label?: string;
362
+ title?: string;
363
+ thumbnailUrl: string;
364
+ placeholderThumbnailUrl?: string;
365
+ fallbackThumbnailUrl?: string;
366
+ };
367
+ export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
368
+ data: T[];
369
+ };
370
+ export type NotificationTitleSegment = {
371
+ text: string;
372
+ isBold?: boolean;
373
+ };
374
+ export type FormattedNotificationData = {
375
+ title: string;
376
+ titleSegments?: NotificationTitleSegment[];
377
+ link: string;
378
+ thumbnail?: string;
379
+ icon: string;
380
+ excerpt?: string;
381
+ commentTarget?: {
382
+ commentId: number;
383
+ dateId: string | number;
384
+ floorId: string;
385
+ };
386
+ };
387
+ export type FormattedNotification = FormattedNotificationData & {
388
+ date: string;
389
+ read: boolean;
390
+ id: number;
391
+ thumbnailError?: boolean;
392
+ };
393
+ export type ProcoreProjectStepData = {
394
+ project: ProcoreUserProject | null;
395
+ album: ProcoreProjectAlbum | null;
396
+ observationType: ProcoreObservationType | null;
397
+ };
398
+ export type ProcoreUploadFormData = {
399
+ procoreType: ProcoreType;
400
+ project: ProcoreUserProject | null;
401
+ album: ProcoreProjectAlbum | null;
402
+ observationType: ProcoreObservationType | null;
403
+ observationForm: Record<string, string | number | boolean | null>;
404
+ };
405
+ export type AconexUploadFormData = {
406
+ project: AconexUserProject | null;
407
+ form: Record<string, string | number | boolean | null>;
408
+ };
409
+ export type AutodeskUploadFormData = {
410
+ hub: AutodeskUserHub | null;
411
+ project: AutodeskProject | null;
412
+ folder: AutodeskFolder | null;
413
+ };
414
+ export type HammertechUploadFormData = {
415
+ project: HammertechProject | null;
416
+ issueType: HammertechIssueType | null;
417
+ description: string;
418
+ priority: HammertechPriority | null;
419
+ dueDate: string | null;
420
+ classification: HammertechClassification | null;
421
+ locationId: string | null;
422
+ isPositiveObservation: boolean;
423
+ isPhotoForFixRequired: boolean;
424
+ customFieldFormId: string | null;
425
+ customFieldValues: Record<string, unknown>;
426
+ fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
427
+ };
428
+ export interface MediaHubFilters {
429
+ title: string;
430
+ requesterEmail: string | undefined;
431
+ camera: string | undefined;
432
+ type: string;
433
+ fromDate: string;
434
+ toDate: string;
435
+ sortBy: string;
436
+ }
437
+ export interface MediaHubSortParameter {
438
+ label: string;
439
+ value: string;
440
+ }
441
+ export type TableHeaderParams<TItem = unknown> = {
442
+ value: string;
443
+ text: string;
444
+ align?: string;
445
+ sortable?: boolean;
446
+ visible?: boolean;
447
+ width?: number | string;
448
+ copyable?: boolean;
449
+ toStringFn?: (item: TItem, key: string) => any;
450
+ sort?: (a: unknown, b: unknown) => number;
451
+ };
452
+ export type BimUploadObject = IngestUploadInitResponse & {
453
+ projectName: string;
454
+ };
455
+ export type BimUploadFileResult = {
456
+ url: string;
457
+ title: string;
458
+ fileExtension: string;
459
+ };
460
+ export type CameraCardItem = {
461
+ thumbnail: string;
462
+ title: string;
463
+ exid: string;
464
+ status: CameraStatus;
465
+ disabled: boolean;
466
+ to: string;
467
+ isOffline: boolean;
468
+ isWaiting: boolean;
469
+ isUnderNda: boolean;
470
+ isAdmin: boolean;
471
+ batteryVoltage: number | null;
472
+ };
473
+ export type ThreeSixtyGalleryView = "drawings" | "walks";
474
+ export interface ThreeSixtyWalk {
475
+ id: string;
476
+ name: string;
477
+ date: string;
478
+ monthKey: string;
479
+ color: string;
480
+ dateId: string;
481
+ floorId: string;
482
+ commentCount: number;
483
+ hasBim: boolean;
484
+ hasMinimodel: boolean;
485
+ }
486
+ export interface ThreeSixtyWalkGroup {
487
+ date: string;
488
+ walks: ThreeSixtyWalk[];
489
+ }
490
+ export type ThreeSixtyMediaDownloadOption = {
491
+ type: _360AssetType;
492
+ title: string;
493
+ icon: string;
494
+ };
495
+ export type DrawingSelection = {
496
+ pageNumber: number;
497
+ size: number;
498
+ thumbnail: string | null;
499
+ pageCount: number;
500
+ };
501
+ export type CommentCardComment = {
502
+ id?: number | string;
503
+ content?: string;
504
+ createdAt?: string;
505
+ archivedAt?: string;
506
+ creatorName?: string;
507
+ label?: string;
508
+ timestamp?: string;
509
+ cameraExid?: string;
510
+ position3d?: number[];
511
+ canDelete?: boolean;
512
+ };
@@ -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>>;
@@ -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,7 @@
1
1
  export * from "@evercam/api/types";
2
2
  export * from "./components";
3
+ export * from "./customDataTableFilters";
3
4
  export * from "./imagePlayer";
4
5
  export * from "./timeline";
6
+ export * from "./rbac";
7
+ export * from "./observations";
@@ -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
+ };
@@ -0,0 +1,67 @@
1
+ import type { ProjectMember, ProjectInvite, ProjectResourceRole } from "@evercam/api/types";
2
+ export type HasRoleChangedFn<T = ProjectMember | ProjectInvite> = (entity: T, baseRole: ProjectResourceRole) => boolean;
3
+ export type ProjectRoleData = {
4
+ id?: number;
5
+ name: string;
6
+ description?: string | null;
7
+ permissions: string[];
8
+ subRoles?: Array<{
9
+ resourceId: string;
10
+ roleId: number | null;
11
+ }>;
12
+ };
13
+ export type ProjectResourcePermission = {
14
+ id: string;
15
+ name: string;
16
+ description?: string;
17
+ requires?: string;
18
+ };
19
+ export type ProjectResource = {
20
+ id: string;
21
+ name: string;
22
+ permissions: ProjectResourcePermission[];
23
+ };
24
+ export type ProjectPermissionWarning = {
25
+ resourceId: string;
26
+ message: string;
27
+ type?: string;
28
+ cameraExids?: string[];
29
+ accessLevel?: string;
30
+ grantAllPermissions?: boolean;
31
+ };
32
+ export type ProjectDisabledPermission = {
33
+ id: string;
34
+ reason: string;
35
+ };
36
+ export type CameraAccessFilters = {
37
+ memberName: string;
38
+ memberEmail: string;
39
+ cameraName: string;
40
+ };
41
+ export type CameraAccessLevelConfig = {
42
+ id: string;
43
+ name: string;
44
+ description: string;
45
+ permissions: string[];
46
+ };
47
+ export declare enum CameraStatusGroup {
48
+ Active = "active",
49
+ Pending = "pending",
50
+ Archived = "archived"
51
+ }
52
+ export type CameraStatusGroupConfig = {
53
+ text: string;
54
+ icon: string;
55
+ color: string;
56
+ };
57
+ export type CameraFeatureIconConfig = {
58
+ icon: string;
59
+ tooltip: string;
60
+ };
61
+ export type RecipientRule = {
62
+ blocked: string[];
63
+ };
64
+ export type RecipientRules = {
65
+ notExistingRecipients?: RecipientRule;
66
+ notPendingInviteRecipients?: RecipientRule;
67
+ };
@@ -1,4 +1,4 @@
1
- import { TimelineGroupId, type TimelinePlayerGroupConfig } from "@evercam/shared/types/components";
1
+ import { TimelineGroupId, type TimelinePlayerGroupConfig } from "./components";
2
2
  export interface TimelineGroup {
3
3
  id: TimelineGroupId;
4
4
  timelineConfig: TimelinePlayerGroupConfig | Record<string, TimelinePlayerGroupConfig>;
@@ -6,4 +6,5 @@ export interface TimelineGroup {
6
6
  isDisabled: boolean;
7
7
  isRestricted?: boolean;
8
8
  hasMultipleGroups?: boolean;
9
+ isPersistent?: boolean;
9
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-5ccefe067",
3
+ "version": "1.0.0-5d2895b13",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,10 +24,12 @@
24
24
  "dist"
25
25
  ],
26
26
  "engines": {
27
- "node": "20.x"
27
+ "node": ">=22"
28
28
  },
29
29
  "readme": "README.md",
30
30
  "scripts": {
31
+ "preinstall": "node ../shared/ci-scripts/check-bootstrap.js",
32
+ "bootstrap": "node ../shared/ci-scripts/bootstrap.js",
31
33
  "clean": "rimraf dist",
32
34
  "typecheck": "tsc --noEmit",
33
35
  "build:types": "tsc --declaration --emitDeclarationOnly",
@@ -36,7 +38,7 @@
36
38
  "publish-api": "cd ../.. && yarn publish-api"
37
39
  },
38
40
  "devDependencies": {
39
- "@types/node": "^24.3.1",
41
+ "@types/node": "^25.9.1",
40
42
  "vite": "latest",
41
43
  "vite-plugin-commonjs": "^0.10.3",
42
44
  "vite-plugin-dts": "^4.5.4"
@@ -47,4 +49,4 @@
47
49
  "idb-keyval": "^6.2.2",
48
50
  "moment-timezone": "^0.5.46"
49
51
  }
50
- }
52
+ }