@evercam/api 1.0.0-c65b4959f → 1.0.0-cb5ac4ad5

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 (99) hide show
  1. package/README.md +3 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +201 -12
  3. package/dist/api/api/adminApi.d.ts +114 -101
  4. package/dist/api/api/aiApi.d.ts +187 -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 -108
  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 +123 -35
  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 +288 -25
  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 +130 -119
  30. package/dist/api/types/comments.d.ts +16 -11
  31. package/dist/api/types/company.d.ts +42 -1
  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 +13 -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 +16 -3
  44. package/dist/api/types/ingest.d.ts +191 -4
  45. package/dist/api/types/kit.d.ts +76 -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 -32
  56. package/dist/api/types/project.d.ts +150 -19
  57. package/dist/api/types/recording.d.ts +10 -15
  58. package/dist/api/types/recycleBin.d.ts +1 -1
  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 +1 -0
  62. package/dist/api/types/router.d.ts +20 -1
  63. package/dist/api/types/shared.d.ts +28 -24
  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 +49 -4
  71. package/dist/api/types/socket.d.ts +4 -0
  72. package/dist/api/types/storageProvider.d.ts +19 -0
  73. package/dist/api/types/storyblok.d.ts +27 -0
  74. package/dist/api/types/streaming.d.ts +3 -3
  75. package/dist/api/types/tag.d.ts +1 -1
  76. package/dist/api/types/time.d.ts +4 -18
  77. package/dist/api/types/timelapse.d.ts +7 -11
  78. package/dist/api/types/user.d.ts +121 -35
  79. package/dist/api/types/videoWall.d.ts +47 -14
  80. package/dist/api/types/weather.d.ts +77 -11
  81. package/dist/api/types/widget.d.ts +76 -15
  82. package/dist/api/types/workflows.d.ts +108 -0
  83. package/dist/api/types/xweather.d.ts +4 -4
  84. package/dist/api/utils.d.ts +1 -0
  85. package/dist/index.js +2446 -1048
  86. package/dist/index.js.map +1 -1
  87. package/dist/index.umd.cjs +1 -1
  88. package/dist/index.umd.cjs.map +1 -1
  89. package/dist/shared/types/components.d.ts +355 -36
  90. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  91. package/dist/shared/types/imagePlayer.d.ts +10 -3
  92. package/dist/shared/types/index.d.ts +3 -0
  93. package/dist/shared/types/observations.d.ts +25 -0
  94. package/dist/shared/types/rbac.d.ts +67 -0
  95. package/dist/shared/types/timeline.d.ts +2 -1
  96. package/package.json +6 -4
  97. package/dist/api/types/copilot.d.ts +0 -157
  98. package/dist/api/types/storageServers.d.ts +0 -4
  99. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,36 +1,195 @@
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",
7
185
  Snapshot = "snapshot",
8
186
  The360 = "360",
9
- The360Gallery = "360 Gallery",
10
187
  Planner = "Planner"
11
188
  }
12
189
  export declare enum PlayerMode {
13
190
  Video = "video",
14
191
  Jpegs = "jpegs"
15
192
  }
16
- export type TasksStatusMap = {
17
- [key: string]: TaskStatus;
18
- };
19
- export type TaskProgressItem = {
20
- status: TaskStatus;
21
- description: string;
22
- percentDone?: number;
23
- duration?: number;
24
- };
25
- export type GlobalSearchMatch = {
26
- path: Array<string>;
27
- value: string | number | boolean;
28
- };
29
- export type GlobalSearchResult = {
30
- index: number;
31
- matches: Array<GlobalSearchMatch>;
32
- };
33
- export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
34
193
  export type TimelineProviderRequestParams = TimelineDateInterval & {
35
194
  precision?: TimelinePrecision;
36
195
  labels?: string[];
@@ -44,13 +203,6 @@ export type TimelinePlayerGroupConfig = {
44
203
  export type TimelinePlayerConfig = {
45
204
  [groupName: string]: TimelinePlayerGroupConfig;
46
205
  };
47
- export type TimelinePlayerTooltipItem = {
48
- label?: string;
49
- title?: string;
50
- thumbnailUrl: string;
51
- placeholderThumbnailUrl?: string;
52
- fallbackThumbnailUrl?: string;
53
- };
54
206
  export declare enum TimelineGroupId {
55
207
  ThreeSixty = "w360",
56
208
  Drone = "drone",
@@ -120,8 +272,8 @@ export type LeaderLineOptions = {
120
272
  startPlugSize?: number;
121
273
  endPlugSize?: number;
122
274
  path?: LeaderLinesPathType;
123
- startSocketGravity?: [number, number];
124
- endSocketGravity?: [number, number];
275
+ startSocketGravity?: TuplePoint2D;
276
+ endSocketGravity?: TuplePoint2D;
125
277
  dash?: {
126
278
  animation: boolean | {
127
279
  duration: number;
@@ -138,10 +290,6 @@ export type LineConfig = {
138
290
  end: CssSelector | CssSelector[];
139
291
  options?: LeaderLineOptions;
140
292
  };
141
- export type Point = {
142
- x: number;
143
- y: number;
144
- };
145
293
  export declare enum ZohoDeskTicketStatus {
146
294
  Closed = "Closed",
147
295
  OnHold = "On Hold",
@@ -152,13 +300,18 @@ export type TagSelectorItem = Tag & {
152
300
  };
153
301
  export declare enum FormSchemaComponents {
154
302
  SelectField = "SelectField",
303
+ HierarchicalSelect = "HierarchicalSelectField",
155
304
  MultiOption = "MultiOption",
156
305
  TextField = "TextField",
157
- CheckBox = "SwitchField",
158
- DateTime = "DatePickerInput",
306
+ SwitchField = "SwitchField",
307
+ CheckBox = "CheckBoxField",
308
+ Date = "DatePickerInput",
309
+ DateTime = "DateTimeField",
310
+ Time = "TimeField",
159
311
  TextArea = "Textarea",
160
312
  Search = "Autocomplete",
161
- ReadOnly = "ReadOnly"
313
+ ReadOnly = "ReadOnly",
314
+ Ratio = "RatioField"
162
315
  }
163
316
  export declare enum FormSchemaDataType {
164
317
  String = "string",
@@ -169,6 +322,7 @@ export declare enum FormSchemaDataType {
169
322
  export type FormSchemaOptions = {
170
323
  title: string;
171
324
  value: string;
325
+ parentId?: string | null;
172
326
  };
173
327
  export type FormSchemaField = {
174
328
  id: string;
@@ -183,11 +337,176 @@ export type FormSchemaField = {
183
337
  columns?: number;
184
338
  };
185
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
+ };
186
351
  export interface ScrollListener {
187
352
  element: Element | Window;
353
+ event: "scroll" | "resize";
188
354
  handler: () => void;
189
355
  }
190
356
  export interface LeaderLineInstance {
191
357
  remove(): void;
192
358
  position(): void;
193
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-c65b4959f",
3
+ "version": "1.0.0-cb5ac4ad5",
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": "22.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.7.2",
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
+ }