@evercam/api 1.0.0-495478c92 → 1.0.0-4976cdc31

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 (86) hide show
  1. package/README.md +2 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +168 -12
  3. package/dist/api/api/adminApi.d.ts +104 -88
  4. package/dist/api/api/aiApi.d.ts +94 -81
  5. package/dist/api/api/authzApi.d.ts +31 -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 +131 -101
  9. package/dist/api/api/evercamLabsApi.d.ts +6 -4
  10. package/dist/api/api/exNvrApi.d.ts +1 -1
  11. package/dist/api/api/ingestApi.d.ts +110 -34
  12. package/dist/api/api/ptzApi.d.ts +12 -3
  13. package/dist/api/api/videoWallApi.d.ts +7 -7
  14. package/dist/api/api/weatherApi.d.ts +2 -2
  15. package/dist/api/types/360.d.ts +191 -9
  16. package/dist/api/types/aconex.d.ts +104 -6
  17. package/dist/api/types/admin.d.ts +51 -0
  18. package/dist/api/types/aiConfigs.d.ts +154 -0
  19. package/dist/api/types/analytics.d.ts +164 -43
  20. package/dist/api/types/anpr.d.ts +53 -13
  21. package/dist/api/types/auditLogs.d.ts +19 -1
  22. package/dist/api/types/authz.d.ts +61 -0
  23. package/dist/api/types/autodesk.d.ts +7 -7
  24. package/dist/api/types/automation.d.ts +86 -1
  25. package/dist/api/types/axios.d.ts +11 -6
  26. package/dist/api/types/bim.d.ts +28 -5
  27. package/dist/api/types/camera.d.ts +102 -98
  28. package/dist/api/types/comments.d.ts +8 -10
  29. package/dist/api/types/company.d.ts +42 -1
  30. package/dist/api/types/compare.d.ts +20 -5
  31. package/dist/api/types/connector.d.ts +3 -5
  32. package/dist/api/types/coolify.d.ts +20 -2
  33. package/dist/api/types/copilot.d.ts +11 -6
  34. package/dist/api/types/credentials.d.ts +1 -0
  35. package/dist/api/types/detections.d.ts +20 -31
  36. package/dist/api/types/drone.d.ts +96 -6
  37. package/dist/api/types/gateReport.d.ts +49 -158
  38. package/dist/api/types/gateReportManagement.d.ts +151 -0
  39. package/dist/api/types/hdd.d.ts +26 -1
  40. package/dist/api/types/index.d.ts +10 -1
  41. package/dist/api/types/ingest.d.ts +103 -3
  42. package/dist/api/types/kit.d.ts +33 -5
  43. package/dist/api/types/map.d.ts +12 -0
  44. package/dist/api/types/media.d.ts +2 -1
  45. package/dist/api/types/notification.d.ts +32 -2
  46. package/dist/api/types/oauth.d.ts +62 -0
  47. package/dist/api/types/planner.d.ts +101 -1
  48. package/dist/api/types/posthog.d.ts +15 -0
  49. package/dist/api/types/procore.d.ts +13 -6
  50. package/dist/api/types/progressPhoto.d.ts +6 -32
  51. package/dist/api/types/project.d.ts +137 -19
  52. package/dist/api/types/recording.d.ts +6 -11
  53. package/dist/api/types/recycleBin.d.ts +1 -1
  54. package/dist/api/types/ring.d.ts +53 -0
  55. package/dist/api/types/roi.d.ts +2 -2
  56. package/dist/api/types/routeParams.d.ts +2 -1
  57. package/dist/api/types/router.d.ts +20 -1
  58. package/dist/api/types/shared.d.ts +30 -4
  59. package/dist/api/types/shares.d.ts +6 -144
  60. package/dist/api/types/sim.d.ts +6 -6
  61. package/dist/api/types/siteAnalytics.d.ts +191 -46
  62. package/dist/api/types/siteView.d.ts +74 -0
  63. package/dist/api/types/smartSeach.d.ts +5 -0
  64. package/dist/api/types/snapshots.d.ts +50 -1
  65. package/dist/api/types/storageProvider.d.ts +19 -0
  66. package/dist/api/types/storyblok.d.ts +40 -0
  67. package/dist/api/types/streaming.d.ts +3 -3
  68. package/dist/api/types/tag.d.ts +1 -1
  69. package/dist/api/types/time.d.ts +4 -18
  70. package/dist/api/types/timelapse.d.ts +8 -5
  71. package/dist/api/types/user.d.ts +105 -32
  72. package/dist/api/types/videoWall.d.ts +47 -14
  73. package/dist/api/types/weather.d.ts +77 -11
  74. package/dist/api/types/widget.d.ts +76 -15
  75. package/dist/api/types/xweather.d.ts +4 -4
  76. package/dist/index.js +1807 -964
  77. package/dist/index.js.map +1 -1
  78. package/dist/index.umd.cjs +1 -1
  79. package/dist/index.umd.cjs.map +1 -1
  80. package/dist/shared/types/components.d.ts +148 -18
  81. package/dist/shared/types/imagePlayer.d.ts +10 -3
  82. package/dist/shared/types/index.d.ts +1 -0
  83. package/dist/shared/types/rbac.d.ts +67 -0
  84. package/dist/shared/types/timeline.d.ts +2 -1
  85. package/package.json +4 -4
  86. package/dist/api/types/storageServers.d.ts +0 -4
@@ -1,12 +1,53 @@
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, TaskStatus, Tag, TuplePoint2D } from "@evercam/shared/types";
2
+ import type { 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 SelectItem = {
7
+ text: string;
8
+ value: string | number;
9
+ };
10
+ export declare enum IframeMessageType {
11
+ LiveView = "liveView",
12
+ EditSnapshot = "editSnapshot",
13
+ Weather = "weather",
14
+ CameraInfo = "cameraInfo",
15
+ AnalyticsEvent = "analyticsEvent",
16
+ Ready = "ready",
17
+ Info = "info",
18
+ GateReport = "gateReport",
19
+ CreateCompare = "createCompare",
20
+ UploadDrone = "uploadDrone",
21
+ UploadBIM = "uploadBIM",
22
+ History = "history",
23
+ PerformanceScore = "performanceScore",
24
+ ShareLink = "shareLink",
25
+ LoadForgeModel = "loadForgeModel",
26
+ LoadPlannerList = "loadPlannerList",
27
+ SaveProjectBounds = "saveProjectBounds",
28
+ ArchiveComment = "archiveComment",
29
+ UnarchiveComment = "unarchiveComment",
30
+ DeleteComment = "deleteComment",
31
+ CreateComment = "createComment",
32
+ RefreshComments = "refreshComments",
33
+ CommentSyncFailed = "commentSyncFailed",
34
+ Load360Gallery = "load360Gallery",
35
+ Upload360 = "upload360",
36
+ FetchForgeToken = "FetchForgeToken",
37
+ ForgeTokenResponse = "ForgeTokenResponse",
38
+ ShowBimUploadChoice = "showBimUploadChoice",
39
+ ViewerLaunchFlags = "viewerLaunchFlags",
40
+ CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
41
+ }
42
+ export declare enum NavigationArrow {
43
+ Previous = "previous",
44
+ Next = "next"
45
+ }
4
46
  export declare enum WatermarkedImageDownloadOrigin {
5
47
  Drone = "drone",
6
48
  Bim = "BIM",
7
49
  Snapshot = "snapshot",
8
50
  The360 = "360",
9
- The360Gallery = "360 Gallery",
10
51
  Planner = "Planner"
11
52
  }
12
53
  export declare enum PlayerMode {
@@ -44,13 +85,6 @@ export type TimelinePlayerGroupConfig = {
44
85
  export type TimelinePlayerConfig = {
45
86
  [groupName: string]: TimelinePlayerGroupConfig;
46
87
  };
47
- export type TimelinePlayerTooltipItem = {
48
- label?: string;
49
- title?: string;
50
- thumbnailUrl: string;
51
- placeholderThumbnailUrl?: string;
52
- fallbackThumbnailUrl?: string;
53
- };
54
88
  export declare enum TimelineGroupId {
55
89
  ThreeSixty = "w360",
56
90
  Drone = "drone",
@@ -120,8 +154,8 @@ export type LeaderLineOptions = {
120
154
  startPlugSize?: number;
121
155
  endPlugSize?: number;
122
156
  path?: LeaderLinesPathType;
123
- startSocketGravity?: [number, number];
124
- endSocketGravity?: [number, number];
157
+ startSocketGravity?: TuplePoint2D;
158
+ endSocketGravity?: TuplePoint2D;
125
159
  dash?: {
126
160
  animation: boolean | {
127
161
  duration: number;
@@ -138,10 +172,6 @@ export type LineConfig = {
138
172
  end: CssSelector | CssSelector[];
139
173
  options?: LeaderLineOptions;
140
174
  };
141
- export type Point = {
142
- x: number;
143
- y: number;
144
- };
145
175
  export declare enum ZohoDeskTicketStatus {
146
176
  Closed = "Closed",
147
177
  OnHold = "On Hold",
@@ -154,11 +184,14 @@ export declare enum FormSchemaComponents {
154
184
  SelectField = "SelectField",
155
185
  MultiOption = "MultiOption",
156
186
  TextField = "TextField",
157
- CheckBox = "SwitchField",
158
- DateTime = "DatePickerInput",
187
+ SwitchField = "SwitchField",
188
+ CheckBox = "CheckBoxField",
189
+ Date = "DatePickerInput",
190
+ DateTime = "DateTimeField",
159
191
  TextArea = "Textarea",
160
192
  Search = "Autocomplete",
161
- ReadOnly = "ReadOnly"
193
+ ReadOnly = "ReadOnly",
194
+ Ratio = "RatioField"
162
195
  }
163
196
  export declare enum FormSchemaDataType {
164
197
  String = "string",
@@ -183,6 +216,17 @@ export type FormSchemaField = {
183
216
  columns?: number;
184
217
  };
185
218
  export type FormSchema = Record<string, FormSchemaField>;
219
+ export type DrawingStats = {
220
+ overlay: boolean;
221
+ geolocated: boolean;
222
+ isCalibrated: boolean;
223
+ walks: number;
224
+ markers: number;
225
+ minimodel: number;
226
+ bim: number;
227
+ comments: number;
228
+ lastCapturedDate: string | null;
229
+ };
186
230
  export interface ScrollListener {
187
231
  element: Element | Window;
188
232
  handler: () => void;
@@ -191,3 +235,89 @@ export interface LeaderLineInstance {
191
235
  remove(): void;
192
236
  position(): void;
193
237
  }
238
+ export type SnapshotCardItem = {
239
+ label?: string;
240
+ title?: string;
241
+ thumbnailUrl: string;
242
+ placeholderThumbnailUrl?: string;
243
+ fallbackThumbnailUrl?: string;
244
+ };
245
+ export type DocumentExtended = Document & {
246
+ webkitIsFullScreen?: boolean;
247
+ mozFullScreen?: boolean;
248
+ msFullscreenElement?: Element | null;
249
+ fullscreenElement?: Element;
250
+ webkitFullscreenElement?: Element;
251
+ mozFullScreenElement?: Element;
252
+ };
253
+ export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
254
+ data: T[];
255
+ };
256
+ export type FormattedNotificationData = {
257
+ title: string;
258
+ link: string;
259
+ thumbnail?: string;
260
+ icon?: string;
261
+ drone?: boolean;
262
+ is360?: boolean;
263
+ };
264
+ export type FormattedNotification = FormattedNotificationData & {
265
+ date: string;
266
+ read: boolean;
267
+ id: number;
268
+ thumbnailError?: boolean;
269
+ };
270
+ export type ProcoreProjectStepData = {
271
+ project: ProcoreUserProject | null;
272
+ album: ProcoreProjectAlbum | null;
273
+ observationType: ProcoreObservationType | null;
274
+ };
275
+ export type ProcoreUploadFormData = {
276
+ procoreType: ProcoreType;
277
+ project: ProcoreUserProject | null;
278
+ album: ProcoreProjectAlbum | null;
279
+ observationType: ProcoreObservationType | null;
280
+ observationForm: Record<string, string | number | boolean | null>;
281
+ };
282
+ export type AconexUploadFormData = {
283
+ project: AconexUserProject | null;
284
+ form: Record<string, string | number | boolean | null>;
285
+ };
286
+ export type AutodeskUploadFormData = {
287
+ hub: AutodeskUserHub | null;
288
+ project: AutodeskProject | null;
289
+ folder: AutodeskFolder | null;
290
+ };
291
+ export interface MediaHubFilters {
292
+ title: string;
293
+ requesterEmail: string | undefined;
294
+ camera: string | undefined;
295
+ type: string;
296
+ fromDate: string;
297
+ toDate: string;
298
+ sortBy: string;
299
+ }
300
+ export interface MediaHubSortParameter {
301
+ label: string;
302
+ value: string;
303
+ }
304
+ export type TableHeaderParams<TItem = unknown> = {
305
+ value: string;
306
+ text: string;
307
+ cellClass?: string;
308
+ align?: string;
309
+ sortable?: boolean;
310
+ visible?: boolean;
311
+ width?: number | string;
312
+ copyable?: boolean;
313
+ toStringFn?: (item: TItem, key: string) => any;
314
+ sort?: (a: unknown, b: unknown) => number;
315
+ };
316
+ export type BimUploadObject = IngestUploadInitResponse & {
317
+ projectName: string;
318
+ };
319
+ export type BimUploadFileResult = {
320
+ url: string;
321
+ title: string;
322
+ fileExtension: string;
323
+ };
@@ -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",
@@ -2,3 +2,4 @@ export * from "@evercam/api/types";
2
2
  export * from "./components";
3
3
  export * from "./imagePlayer";
4
4
  export * from "./timeline";
5
+ export * from "./rbac";
@@ -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-495478c92",
3
+ "version": "1.0.0-4976cdc31",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -24,7 +24,7 @@
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": {
@@ -36,7 +36,7 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^24.7.2",
39
+ "@types/node": "^25.9.1",
40
40
  "vite": "latest",
41
41
  "vite-plugin-commonjs": "^0.10.3",
42
42
  "vite-plugin-dts": "^4.5.4"
@@ -47,4 +47,4 @@
47
47
  "idb-keyval": "^6.2.2",
48
48
  "moment-timezone": "^0.5.46"
49
49
  }
50
- }
50
+ }
@@ -1,4 +0,0 @@
1
- export type StorageServer = string;
2
- export type StorageServersResponsePayload = {
3
- servers: StorageServer[];
4
- };