@evercam/api 1.0.0-67288ab75 → 1.0.0-684a60b92

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 (84) hide show
  1. package/README.md +3 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +9 -1
  3. package/dist/api/api/adminApi.d.ts +123 -87
  4. package/dist/api/api/aiApi.d.ts +65 -80
  5. package/dist/api/api/authzApi.d.ts +32 -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 +122 -93
  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 +113 -33
  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 +187 -5
  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/analytics.d.ts +153 -41
  19. package/dist/api/types/anpr.d.ts +24 -13
  20. package/dist/api/types/auditLogs.d.ts +1 -1
  21. package/dist/api/types/authz.d.ts +61 -0
  22. package/dist/api/types/autodesk.d.ts +7 -7
  23. package/dist/api/types/automation.d.ts +86 -1
  24. package/dist/api/types/axios.d.ts +10 -5
  25. package/dist/api/types/bim.d.ts +11 -5
  26. package/dist/api/types/camera.d.ts +99 -72
  27. package/dist/api/types/comments.d.ts +21 -9
  28. package/dist/api/types/company.d.ts +42 -1
  29. package/dist/api/types/compare.d.ts +20 -5
  30. package/dist/api/types/connector.d.ts +3 -5
  31. package/dist/api/types/coolify.d.ts +20 -2
  32. package/dist/api/types/copilot.d.ts +11 -6
  33. package/dist/api/types/credentials.d.ts +1 -0
  34. package/dist/api/types/detections.d.ts +20 -22
  35. package/dist/api/types/drone.d.ts +1 -0
  36. package/dist/api/types/errors.d.ts +1 -0
  37. package/dist/api/types/gateReport.d.ts +46 -150
  38. package/dist/api/types/hdd.d.ts +26 -1
  39. package/dist/api/types/index.d.ts +9 -1
  40. package/dist/api/types/ingest.d.ts +94 -2
  41. package/dist/api/types/kit.d.ts +43 -7
  42. package/dist/api/types/media.d.ts +2 -1
  43. package/dist/api/types/notification.d.ts +32 -2
  44. package/dist/api/types/oauth.d.ts +62 -0
  45. package/dist/api/types/planner.d.ts +48 -1
  46. package/dist/api/types/posthog.d.ts +15 -0
  47. package/dist/api/types/procore.d.ts +13 -6
  48. package/dist/api/types/progressPhoto.d.ts +6 -32
  49. package/dist/api/types/project.d.ts +134 -18
  50. package/dist/api/types/recording.d.ts +3 -3
  51. package/dist/api/types/recycleBin.d.ts +14 -0
  52. package/dist/api/types/ring.d.ts +53 -0
  53. package/dist/api/types/routeParams.d.ts +2 -1
  54. package/dist/api/types/router.d.ts +20 -1
  55. package/dist/api/types/shared.d.ts +11 -9
  56. package/dist/api/types/shares.d.ts +6 -144
  57. package/dist/api/types/sim.d.ts +6 -6
  58. package/dist/api/types/siteAnalytics.d.ts +191 -46
  59. package/dist/api/types/smartSeach.d.ts +5 -0
  60. package/dist/api/types/snapshots.d.ts +42 -1
  61. package/dist/api/types/sso.d.ts +55 -0
  62. package/dist/api/types/storageProvider.d.ts +19 -0
  63. package/dist/api/types/storyblok.d.ts +40 -0
  64. package/dist/api/types/streaming.d.ts +3 -3
  65. package/dist/api/types/tag.d.ts +1 -1
  66. package/dist/api/types/time.d.ts +4 -18
  67. package/dist/api/types/timelapse.d.ts +3 -4
  68. package/dist/api/types/user.d.ts +105 -31
  69. package/dist/api/types/videoWall.d.ts +47 -14
  70. package/dist/api/types/weather.d.ts +77 -11
  71. package/dist/api/types/widget.d.ts +96 -16
  72. package/dist/api/types/xweather.d.ts +4 -4
  73. package/dist/api/utils.d.ts +1 -0
  74. package/dist/index.js +1239 -923
  75. package/dist/index.js.map +1 -1
  76. package/dist/index.umd.cjs +1 -1
  77. package/dist/index.umd.cjs.map +1 -1
  78. package/dist/shared/types/components.d.ts +122 -11
  79. package/dist/shared/types/imagePlayer.d.ts +2 -2
  80. package/dist/shared/types/index.d.ts +1 -0
  81. package/dist/shared/types/rbac.d.ts +67 -0
  82. package/dist/shared/types/timeline.d.ts +2 -1
  83. package/package.json +4 -4
  84. package/dist/api/types/storageServers.d.ts +0 -4
@@ -1,11 +1,48 @@
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 } from "@evercam/shared/types";
2
2
  import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
3
3
  import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
4
+ import { SeriesOptionsType } from "highcharts";
5
+ export type SelectItem = {
6
+ text: string;
7
+ value: string | number;
8
+ };
9
+ export declare enum IframeMessageType {
10
+ LiveView = "liveView",
11
+ EditSnapshot = "editSnapshot",
12
+ Weather = "weather",
13
+ CameraInfo = "cameraInfo",
14
+ AnalyticsEvent = "analyticsEvent",
15
+ Ready = "ready",
16
+ Info = "info",
17
+ GateReport = "gateReport",
18
+ CreateCompare = "createCompare",
19
+ UploadDrone = "uploadDrone",
20
+ UploadBIM = "uploadBIM",
21
+ History = "history",
22
+ PerformanceScore = "performanceScore",
23
+ ShareLink = "shareLink",
24
+ LoadForgeModel = "loadForgeModel",
25
+ LoadPlannerList = "loadPlannerList",
26
+ SaveProjectBounds = "saveProjectBounds",
27
+ ArchiveComment = "archiveComment",
28
+ UnarchiveComment = "unarchiveComment",
29
+ DeleteComment = "deleteComment",
30
+ CreateComment = "createComment",
31
+ RefreshComments = "refreshComments",
32
+ CommentSyncFailed = "commentSyncFailed",
33
+ Load360Gallery = "load360Gallery",
34
+ Upload360 = "upload360"
35
+ }
36
+ export declare enum NavigationArrow {
37
+ Previous = "previous",
38
+ Next = "next"
39
+ }
4
40
  export declare enum WatermarkedImageDownloadOrigin {
5
41
  Drone = "drone",
6
42
  Bim = "BIM",
7
43
  Snapshot = "snapshot",
8
44
  The360 = "360",
45
+ The360Gallery = "360 Gallery",
9
46
  Planner = "Planner"
10
47
  }
11
48
  export declare enum PlayerMode {
@@ -43,13 +80,6 @@ export type TimelinePlayerGroupConfig = {
43
80
  export type TimelinePlayerConfig = {
44
81
  [groupName: string]: TimelinePlayerGroupConfig;
45
82
  };
46
- export type TimelinePlayerTooltipItem = {
47
- label?: string;
48
- title?: string;
49
- thumbnailUrl: string;
50
- placeholderThumbnailUrl?: string;
51
- fallbackThumbnailUrl?: string;
52
- };
53
83
  export declare enum TimelineGroupId {
54
84
  ThreeSixty = "w360",
55
85
  Drone = "drone",
@@ -153,11 +183,14 @@ export declare enum FormSchemaComponents {
153
183
  SelectField = "SelectField",
154
184
  MultiOption = "MultiOption",
155
185
  TextField = "TextField",
156
- CheckBox = "SwitchField",
157
- DateTime = "DatePickerInput",
186
+ SwitchField = "SwitchField",
187
+ CheckBox = "CheckBoxField",
188
+ Date = "DatePickerInput",
189
+ DateTime = "DateTimeField",
158
190
  TextArea = "Textarea",
159
191
  Search = "Autocomplete",
160
- ReadOnly = "ReadOnly"
192
+ ReadOnly = "ReadOnly",
193
+ Ratio = "RatioField"
161
194
  }
162
195
  export declare enum FormSchemaDataType {
163
196
  String = "string",
@@ -190,3 +223,81 @@ export interface LeaderLineInstance {
190
223
  remove(): void;
191
224
  position(): void;
192
225
  }
226
+ export type SnapshotCardItem = {
227
+ label?: string;
228
+ title?: string;
229
+ thumbnailUrl: string;
230
+ placeholderThumbnailUrl?: string;
231
+ fallbackThumbnailUrl?: string;
232
+ };
233
+ export type DocumentExtended = Document & {
234
+ webkitIsFullScreen?: boolean;
235
+ mozFullScreen?: boolean;
236
+ msFullscreenElement?: Element | null;
237
+ fullscreenElement?: Element;
238
+ webkitFullscreenElement?: Element;
239
+ mozFullScreenElement?: Element;
240
+ };
241
+ export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
242
+ data: T[];
243
+ };
244
+ export type FormattedNotificationData = {
245
+ title: string;
246
+ link: string;
247
+ thumbnail?: string;
248
+ icon?: string;
249
+ drone?: boolean;
250
+ is360?: boolean;
251
+ };
252
+ export type FormattedNotification = FormattedNotificationData & {
253
+ date: string;
254
+ read: boolean;
255
+ id: number;
256
+ thumbnailError?: boolean;
257
+ };
258
+ export type ProcoreProjectStepData = {
259
+ project: ProcoreUserProject | null;
260
+ album: ProcoreProjectAlbum | null;
261
+ observationType: ProcoreObservationType | null;
262
+ };
263
+ export type ProcoreUploadFormData = {
264
+ procoreType: ProcoreType;
265
+ project: ProcoreUserProject | null;
266
+ album: ProcoreProjectAlbum | null;
267
+ observationType: ProcoreObservationType | null;
268
+ observationForm: Record<string, string | number | boolean | null>;
269
+ };
270
+ export type AconexUploadFormData = {
271
+ project: AconexUserProject | null;
272
+ form: Record<string, string | number | boolean | null>;
273
+ };
274
+ export type AutodeskUploadFormData = {
275
+ hub: AutodeskUserHub | null;
276
+ project: AutodeskProject | null;
277
+ folder: AutodeskFolder | null;
278
+ };
279
+ export interface MediaHubFilters {
280
+ title: string;
281
+ requesterEmail: string | undefined;
282
+ camera: string | undefined;
283
+ type: string;
284
+ fromDate: string;
285
+ toDate: string;
286
+ sortBy: string;
287
+ }
288
+ export interface MediaHubSortParameter {
289
+ label: string;
290
+ value: string;
291
+ }
292
+ export type TableHeaderParams<TItem = unknown> = {
293
+ value: string;
294
+ text: string;
295
+ cellClass?: string;
296
+ align?: string;
297
+ sortable?: boolean;
298
+ visible?: boolean;
299
+ width?: number | string;
300
+ copyable?: boolean;
301
+ toStringFn?: (item: TItem, key: string) => any;
302
+ sort?: (a: unknown, b: unknown) => number;
303
+ };
@@ -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;
@@ -23,7 +23,7 @@ export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
23
23
  snapshotTimestamp: Timestamp;
24
24
  };
25
25
  export declare enum ImageQuality {
26
- ThureeSixty = "360",
26
+ ThreeSixty = "360",
27
27
  FourEighty = "480",
28
28
  SevenTwenty = "720",
29
29
  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-67288ab75",
3
+ "version": "1.0.0-684a60b92",
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": "20.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.6.0",
39
+ "@types/node": "^25.5.0",
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
- };