@evercam/api 1.0.0-58e7ec980 → 1.0.0-5c25db0fc

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 (78) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +7 -1
  2. package/dist/api/api/adminApi.d.ts +74 -83
  3. package/dist/api/api/aiApi.d.ts +57 -84
  4. package/dist/api/api/authzApi.d.ts +27 -17
  5. package/dist/api/api/client/axios.d.ts +2 -1
  6. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  7. package/dist/api/api/evercamApi.d.ts +114 -96
  8. package/dist/api/api/evercamLabsApi.d.ts +4 -3
  9. package/dist/api/api/exNvrApi.d.ts +1 -1
  10. package/dist/api/api/ingestApi.d.ts +96 -44
  11. package/dist/api/api/ptzApi.d.ts +12 -3
  12. package/dist/api/api/videoWallApi.d.ts +2 -2
  13. package/dist/api/api/weatherApi.d.ts +2 -2
  14. package/dist/api/types/360.d.ts +140 -5
  15. package/dist/api/types/aconex.d.ts +9 -9
  16. package/dist/api/types/admin.d.ts +51 -0
  17. package/dist/api/types/analytics.d.ts +92 -46
  18. package/dist/api/types/anpr.d.ts +19 -2
  19. package/dist/api/types/auditLogs.d.ts +1 -1
  20. package/dist/api/types/authz.d.ts +45 -6
  21. package/dist/api/types/autodesk.d.ts +7 -7
  22. package/dist/api/types/automation.d.ts +37 -3
  23. package/dist/api/types/axios.d.ts +10 -9
  24. package/dist/api/types/bim.d.ts +11 -5
  25. package/dist/api/types/camera.d.ts +94 -79
  26. package/dist/api/types/comments.d.ts +4 -8
  27. package/dist/api/types/company.d.ts +42 -1
  28. package/dist/api/types/compare.d.ts +20 -5
  29. package/dist/api/types/connector.d.ts +3 -5
  30. package/dist/api/types/coolify.d.ts +18 -2
  31. package/dist/api/types/copilot.d.ts +11 -6
  32. package/dist/api/types/detections.d.ts +20 -8
  33. package/dist/api/types/drone.d.ts +1 -0
  34. package/dist/api/types/gateReport.d.ts +46 -150
  35. package/dist/api/types/hdd.d.ts +26 -1
  36. package/dist/api/types/index.d.ts +6 -1
  37. package/dist/api/types/ingest.d.ts +85 -2
  38. package/dist/api/types/kit.d.ts +31 -5
  39. package/dist/api/types/media.d.ts +2 -1
  40. package/dist/api/types/notification.d.ts +32 -2
  41. package/dist/api/types/oauth.d.ts +62 -0
  42. package/dist/api/types/planner.d.ts +44 -0
  43. package/dist/api/types/posthog.d.ts +15 -0
  44. package/dist/api/types/procore.d.ts +13 -6
  45. package/dist/api/types/progressPhoto.d.ts +6 -2
  46. package/dist/api/types/project.d.ts +98 -21
  47. package/dist/api/types/recording.d.ts +2 -3
  48. package/dist/api/types/recycleBin.d.ts +1 -1
  49. package/dist/api/types/ring.d.ts +53 -0
  50. package/dist/api/types/router.d.ts +20 -1
  51. package/dist/api/types/shared.d.ts +11 -4
  52. package/dist/api/types/shares.d.ts +6 -144
  53. package/dist/api/types/sim.d.ts +6 -6
  54. package/dist/api/types/siteAnalytics.d.ts +170 -46
  55. package/dist/api/types/smartSeach.d.ts +5 -0
  56. package/dist/api/types/snapshots.d.ts +1 -1
  57. package/dist/api/types/storageProvider.d.ts +19 -0
  58. package/dist/api/types/storyblok.d.ts +40 -0
  59. package/dist/api/types/streaming.d.ts +3 -3
  60. package/dist/api/types/tag.d.ts +1 -1
  61. package/dist/api/types/time.d.ts +0 -18
  62. package/dist/api/types/timelapse.d.ts +3 -4
  63. package/dist/api/types/user.d.ts +101 -31
  64. package/dist/api/types/videoWall.d.ts +21 -21
  65. package/dist/api/types/weather.d.ts +75 -11
  66. package/dist/api/types/widget.d.ts +71 -12
  67. package/dist/api/types/xweather.d.ts +4 -4
  68. package/dist/index.js +863 -781
  69. package/dist/index.js.map +1 -1
  70. package/dist/index.umd.cjs +1 -1
  71. package/dist/index.umd.cjs.map +1 -1
  72. package/dist/shared/types/components.d.ts +85 -9
  73. package/dist/shared/types/imagePlayer.d.ts +2 -2
  74. package/dist/shared/types/index.d.ts +1 -0
  75. package/dist/shared/types/rbac.d.ts +67 -0
  76. package/dist/shared/types/timeline.d.ts +2 -1
  77. package/package.json +2 -2
  78. package/dist/api/types/storageServers.d.ts +0 -4
@@ -1,6 +1,11 @@
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
+ };
4
9
  export declare enum NavigationArrow {
5
10
  Previous = "previous",
6
11
  Next = "next"
@@ -48,13 +53,6 @@ export type TimelinePlayerGroupConfig = {
48
53
  export type TimelinePlayerConfig = {
49
54
  [groupName: string]: TimelinePlayerGroupConfig;
50
55
  };
51
- export type TimelinePlayerTooltipItem = {
52
- label?: string;
53
- title?: string;
54
- thumbnailUrl: string;
55
- placeholderThumbnailUrl?: string;
56
- fallbackThumbnailUrl?: string;
57
- };
58
56
  export declare enum TimelineGroupId {
59
57
  ThreeSixty = "w360",
60
58
  Drone = "drone",
@@ -158,7 +156,8 @@ export declare enum FormSchemaComponents {
158
156
  SelectField = "SelectField",
159
157
  MultiOption = "MultiOption",
160
158
  TextField = "TextField",
161
- CheckBox = "SwitchField",
159
+ SwitchField = "SwitchField",
160
+ CheckBox = "CheckBoxField",
162
161
  Date = "DatePickerInput",
163
162
  DateTime = "DateTimeField",
164
163
  TextArea = "Textarea",
@@ -197,3 +196,80 @@ export interface LeaderLineInstance {
197
196
  remove(): void;
198
197
  position(): void;
199
198
  }
199
+ export type SnapshotCardItem = {
200
+ label?: string;
201
+ title?: string;
202
+ thumbnailUrl: string;
203
+ placeholderThumbnailUrl?: string;
204
+ fallbackThumbnailUrl?: string;
205
+ };
206
+ export type DocumentExtended = Document & {
207
+ webkitIsFullScreen?: boolean;
208
+ mozFullScreen?: boolean;
209
+ msFullscreenElement?: Element | null;
210
+ fullscreenElement?: Element;
211
+ webkitFullscreenElement?: Element;
212
+ mozFullScreenElement?: Element;
213
+ };
214
+ export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
215
+ data: T[];
216
+ };
217
+ export type FormattedNotificationData = {
218
+ title: string;
219
+ link: string;
220
+ thumbnail?: string;
221
+ icon?: string;
222
+ drone?: boolean;
223
+ is360?: boolean;
224
+ };
225
+ export type FormattedNotification = FormattedNotificationData & {
226
+ date: string;
227
+ read: boolean;
228
+ id: number;
229
+ thumbnailError?: boolean;
230
+ };
231
+ export type ProcoreProjectStepData = {
232
+ project: ProcoreUserProject | null;
233
+ album: ProcoreProjectAlbum | null;
234
+ observationType: ProcoreObservationType | null;
235
+ };
236
+ export type ProcoreUploadFormData = {
237
+ procoreType: ProcoreType;
238
+ project: ProcoreUserProject | null;
239
+ album: ProcoreProjectAlbum | null;
240
+ observationType: ProcoreObservationType | null;
241
+ observationForm: Record<string, string | number | boolean | null>;
242
+ };
243
+ export type AconexUploadFormData = {
244
+ project: AconexUserProject | null;
245
+ form: Record<string, string | number | boolean | null>;
246
+ };
247
+ export type AutodeskUploadFormData = {
248
+ hub: AutodeskUserHub | null;
249
+ project: AutodeskProject | null;
250
+ folder: AutodeskFolder | null;
251
+ };
252
+ export interface MediaHubFilters {
253
+ title: string;
254
+ requesterEmail: string | undefined;
255
+ camera: string | undefined;
256
+ type: string;
257
+ fromDate: string;
258
+ toDate: string;
259
+ sortBy: string;
260
+ }
261
+ export interface MediaHubSortParameter {
262
+ label: string;
263
+ value: string;
264
+ }
265
+ export type TableHeaderParams<TItem = unknown> = {
266
+ value: string;
267
+ text: string;
268
+ cellClass?: string;
269
+ align?: string;
270
+ sortable?: boolean;
271
+ visible?: boolean;
272
+ width?: number | string;
273
+ toStringFn?: (item: TItem, key: string) => any;
274
+ sort?: (a: unknown, b: unknown) => number;
275
+ };
@@ -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-58e7ec980",
3
+ "version": "1.0.0-5c25db0fc",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "publish-api": "cd ../.. && yarn publish-api"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^25.0.9",
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"
@@ -1,4 +0,0 @@
1
- export type StorageServer = string;
2
- export type StorageServersResponsePayload = {
3
- servers: StorageServer[];
4
- };