@evercam/api 1.0.0-e424632fd → 1.0.0-e78536009

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 (67) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +197 -15
  3. package/dist/api/api/adminApi.d.ts +24 -20
  4. package/dist/api/api/aiApi.d.ts +127 -4
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +41 -13
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  8. package/dist/api/api/index.d.ts +1 -0
  9. package/dist/api/api/ingestApi.d.ts +22 -9
  10. package/dist/api/api/workflowsApi.d.ts +15 -0
  11. package/dist/api/types/360.d.ts +171 -83
  12. package/dist/api/types/aiConfigs.d.ts +244 -0
  13. package/dist/api/types/analytics.d.ts +48 -33
  14. package/dist/api/types/anpr.d.ts +31 -2
  15. package/dist/api/types/auditLogs.d.ts +18 -1
  16. package/dist/api/types/authz.d.ts +71 -0
  17. package/dist/api/types/automation.d.ts +32 -4
  18. package/dist/api/types/axios.d.ts +10 -9
  19. package/dist/api/types/bim.d.ts +28 -5
  20. package/dist/api/types/camera.d.ts +37 -46
  21. package/dist/api/types/comments.d.ts +16 -7
  22. package/dist/api/types/connector.d.ts +2 -0
  23. package/dist/api/types/detections.d.ts +3 -10
  24. package/dist/api/types/drone.d.ts +94 -6
  25. package/dist/api/types/errors.d.ts +13 -1
  26. package/dist/api/types/gateReport.d.ts +4 -14
  27. package/dist/api/types/gateReportManagement.d.ts +170 -0
  28. package/dist/api/types/hammertech.d.ts +98 -0
  29. package/dist/api/types/index.d.ts +9 -2
  30. package/dist/api/types/ingest.d.ts +90 -3
  31. package/dist/api/types/kit.d.ts +43 -51
  32. package/dist/api/types/map.d.ts +12 -0
  33. package/dist/api/types/media.d.ts +7 -2
  34. package/dist/api/types/notification.d.ts +52 -2
  35. package/dist/api/types/observationEvents.d.ts +141 -0
  36. package/dist/api/types/observations.d.ts +84 -0
  37. package/dist/api/types/planner.d.ts +56 -10
  38. package/dist/api/types/posthog.d.ts +20 -0
  39. package/dist/api/types/project.d.ts +16 -3
  40. package/dist/api/types/recording.d.ts +7 -13
  41. package/dist/api/types/ring.d.ts +16 -16
  42. package/dist/api/types/roi.d.ts +3 -11
  43. package/dist/api/types/routeParams.d.ts +1 -0
  44. package/dist/api/types/shared.d.ts +17 -24
  45. package/dist/api/types/shares.d.ts +0 -13
  46. package/dist/api/types/siteAnalytics.d.ts +3 -5
  47. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  48. package/dist/api/types/siteView.d.ts +78 -0
  49. package/dist/api/types/snapshots.d.ts +13 -0
  50. package/dist/api/types/socket.d.ts +4 -0
  51. package/dist/api/types/storyblok.d.ts +0 -13
  52. package/dist/api/types/timelapse.d.ts +2 -13
  53. package/dist/api/types/user.d.ts +16 -4
  54. package/dist/api/types/workflows.d.ts +108 -0
  55. package/dist/api/utils.d.ts +1 -1
  56. package/dist/index.js +1908 -748
  57. package/dist/index.js.map +1 -1
  58. package/dist/index.umd.cjs +1 -1
  59. package/dist/index.umd.cjs.map +1 -1
  60. package/dist/shared/types/components.d.ts +246 -35
  61. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  62. package/dist/shared/types/imagePlayer.d.ts +8 -1
  63. package/dist/shared/types/index.d.ts +2 -0
  64. package/dist/shared/types/observations.d.ts +25 -0
  65. package/package.json +4 -2
  66. package/dist/api/types/copilot.d.ts +0 -162
  67. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -16,6 +16,26 @@ export declare enum ActiveUsersMetric {
16
16
  WAU = "wau",
17
17
  MAU = "mau"
18
18
  }
19
+ export type PosthogUser = {
20
+ id: string;
21
+ email: string;
22
+ isWeeklyActiveUser: number;
23
+ isMonthlyActiveUser: number;
24
+ eventsCount: number;
25
+ };
26
+ export type PosthogUsersRequestParams = {
27
+ companyExid?: string;
28
+ projectExid?: string;
29
+ cameraExid?: string;
30
+ productsActivityOnly?: boolean;
31
+ afterId?: string;
32
+ size?: number;
33
+ };
34
+ export type PosthogUsersResponse = {
35
+ data: PosthogUser[];
36
+ hasMore: boolean;
37
+ size: number;
38
+ };
19
39
  export type PosthogUserParams = {
20
40
  firstname?: string;
21
41
  lastname?: string;
@@ -1,4 +1,4 @@
1
- import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, PaginationParams } from "@evercam/api/types";
1
+ import { AdminCamera, Camera, CameraExid, DateType, EntityByExid, Exid, Operator, PaginationParams } from "@evercam/api/types";
2
2
  export type ProjectExid = Exid;
3
3
  export type ProjectsByExid = EntityByExid<Project>;
4
4
  export type Project = {
@@ -68,6 +68,13 @@ export declare enum ProjectArchiveTier {
68
68
  export type UpdateCameraRestrictionPayload = {
69
69
  isAccessRestricted?: boolean;
70
70
  };
71
+ export type CameraPosition = {
72
+ cameraExid: CameraExid;
73
+ position: number;
74
+ };
75
+ export type ReorderCamerasPayload = {
76
+ positions: CameraPosition[];
77
+ };
71
78
  export type Logo = {
72
79
  id: number;
73
80
  projectId: number;
@@ -89,10 +96,10 @@ export declare enum ProjectFeatureFlag {
89
96
  MediaHubSharing = "archives_sharing",
90
97
  GateReportAnprBased = "anpr_sourced",
91
98
  NoLicensePlate = "no_license_plate",
92
- DefaultToProjectApp = "default_to_project_app",
93
99
  SmartSearch = "smart_search",
94
100
  PpeMonitoring = "ppe_monitoring",
95
- NoGdpr = "no_gdpr"
101
+ NoGdpr = "no_gdpr",
102
+ Chat = "chat"
96
103
  }
97
104
  export type ProjectBatteryReading = {
98
105
  exid: number;
@@ -110,6 +117,7 @@ export type ProjectsQueryParams = PaginationParams & {
110
117
  status: ProjectStatus;
111
118
  cameras: string;
112
119
  featureFlags: Array<ProjectFeatureFlag>;
120
+ featureFlagsOperator?: Operator;
113
121
  archived: string;
114
122
  };
115
123
  export type ProjectCreateRequestPayload = {
@@ -222,6 +230,11 @@ export type ProjectUsersResponsePayload = {
222
230
  invites: ProjectInvite[];
223
231
  errors: ProjectUserError[];
224
232
  };
233
+ export type MentionableUser = {
234
+ id: number;
235
+ fullname: string;
236
+ email: string;
237
+ };
225
238
  export type ProjectStorageQueryParams = PaginationParams & {
226
239
  cameraName: string;
227
240
  cameraExid: CameraExid;
@@ -1,22 +1,24 @@
1
- import { ApiCredentials } from "@evercam/api/types";
1
+ import { ApiCredentials, PaginationParams } from "@evercam/api/types";
2
2
  import { CancelToken } from "axios";
3
3
  export type Snapshot = {
4
4
  createdAt: string;
5
5
  data: string;
6
6
  status?: string;
7
7
  };
8
- export type NearestSnapshotRequestPayload = {
8
+ export type SnapshotRequestPayload = {
9
9
  apiKey?: string;
10
10
  apiId?: string;
11
11
  token?: string;
12
12
  cancelToken?: object;
13
13
  includeImage?: boolean;
14
+ view?: boolean;
14
15
  };
15
16
  export type AvailableDaysRequestPayload = {
16
17
  cameraId: string;
17
18
  year: string;
18
19
  month: string;
19
20
  payload?: ApiCredentials;
21
+ cancelToken?: CancelToken;
20
22
  };
21
23
  export type AvailableDaysResponsePayload = {
22
24
  days: Array<number>;
@@ -39,11 +41,9 @@ export type NearestSnapshotResponsePayload = {
39
41
  notes?: string;
40
42
  }>;
41
43
  };
42
- export type SnapshotRangeRequestPayload = {
44
+ export type SnapshotRangeRequestPayload = PaginationParams & {
43
45
  from: string;
44
46
  to: string;
45
- limit?: number;
46
- page?: number;
47
47
  schedule?: boolean;
48
48
  count?: number;
49
49
  };
@@ -104,13 +104,6 @@ export declare enum SnapshotExtractionInterval {
104
104
  }
105
105
  export declare enum VpnServer {
106
106
  None = "None",
107
- OpenVPN1 = "OpenVPN1",
108
- OpenVPN2 = "OpenVPN2",
109
- OpenVPN3 = "OpenVPN3",
110
- OpenVPN4 = "OpenVPN4",
111
- OpenVPN5 = "OpenVPN5",
112
- PPTP1 = "PPTP1",
113
- PPTP2 = "PPTP2",
114
107
  WireGuard1 = "WireGuard1",
115
108
  WireGuard2 = "WireGuard2",
116
109
  WireGuard3 = "WireGuard3",
@@ -120,5 +113,6 @@ export declare enum VpnServer {
120
113
  WireGuard7 = "WireGuard7",
121
114
  WireGuard8 = "WireGuard8",
122
115
  WireGuard9 = "WireGuard9",
123
- WireGuard10 = "WireGuard10"
116
+ WireGuard10 = "WireGuard10",
117
+ WgHub = "WgHub"
124
118
  }
@@ -1,8 +1,23 @@
1
+ export type RingCompleteLinkingPayload = {
2
+ nonce: string;
3
+ time: string;
4
+ };
5
+ /** The only auto-import status complete-linking returns today. */
6
+ export declare const RING_AUTO_IMPORT_QUEUED = "queued";
7
+ export type RingAutoImportStatus = typeof RING_AUTO_IMPORT_QUEUED;
8
+ export type RingCompleteLinkingResponsePayload = {
9
+ status: string;
10
+ /** Absent when the API did not schedule an import. */
11
+ autoImport?: RingAutoImportStatus;
12
+ };
1
13
  export type RingDevice = {
2
14
  deviceId: string;
3
15
  name: string;
4
- deviceType: string;
16
+ /** Resolved from Ring's `device-status`; null when Ring did not return it. */
17
+ online: boolean | null;
18
+ deviceType: string | null;
5
19
  firmwareVersion: string | null;
20
+ /** Always null — Ring's API does not expose device power level. */
6
21
  batteryLife: number | null;
7
22
  location: string | null;
8
23
  imported: boolean;
@@ -13,21 +28,6 @@ export type RingDevice = {
13
28
  export type RingDevicesResponsePayload = {
14
29
  devices: RingDevice[];
15
30
  };
16
- export type RingImportDevicesPayload = {
17
- deviceIds: string[];
18
- projectExid: string;
19
- deviceNames?: Record<string, string>;
20
- };
21
- export type RingImportResponsePayload = {
22
- cameras: Array<{
23
- exid: string;
24
- name: string;
25
- }>;
26
- project: {
27
- exid: string;
28
- name: string;
29
- };
30
- };
31
31
  export type RingMoveDevicePayload = {
32
32
  projectExid: string;
33
33
  };
@@ -3,23 +3,15 @@ export declare enum RoiType {
3
3
  AnprContext = "anpr_context",
4
4
  ExclusionZone = "exclusion_zone",
5
5
  WorkflowArea = "workflow_area",
6
- SiteAnalytics = "site_analytics"
6
+ SiteAnalytics = "site_analytics",
7
+ Ppe = "ppe_roi"
7
8
  }
8
9
  export declare enum RoiShapeType {
9
10
  Polygon = "polygon",
10
11
  Line = "line",
11
12
  Direction = "direction",
12
- Rectangle = "rectangle",
13
- ROIBox = "ROIBox"
13
+ Rectangle = "rectangle"
14
14
  }
15
- export type RoiShape = {
16
- id: number | null;
17
- name: string;
18
- x1: number;
19
- x2: number;
20
- y1: number;
21
- y2: number;
22
- };
23
15
  export declare enum RoiDirection {
24
16
  Arrived = "arrived",
25
17
  Left = "left",
@@ -1,6 +1,7 @@
1
1
  export type RouteParams = {
2
2
  projectExid?: string;
3
3
  cameraExid?: string;
4
+ mediaExid?: string;
4
5
  timestamp?: string;
5
6
  fromDate?: string;
6
7
  toDate?: string;
@@ -1,4 +1,8 @@
1
1
  import { DateType } from "@evercam/api/types";
2
+ export declare enum Operator {
3
+ AND = "and",
4
+ OR = "or"
5
+ }
2
6
  type sortby = string;
3
7
  type sortDirection = "asc" | "desc";
4
8
  export type SortingUrlParam = `${sortby}|${sortDirection}`;
@@ -105,25 +109,14 @@ export declare enum InfoPage {
105
109
  DroneView = "drone-view",
106
110
  Compare = "compare",
107
111
  Timeline = "timeline",
108
- WeatherReport = "weather-report"
112
+ WeatherReport = "weather-report",
113
+ Cameras = "cameras"
109
114
  }
110
115
  export declare enum DownloadFileType {
111
116
  Jpeg = "jpeg",
112
117
  Pdf = "pdf",
113
118
  Csv = "csv"
114
119
  }
115
- export declare enum FeedbackContext {
116
- CopilotMessage = "copilot_message"
117
- }
118
- export type FeedbackPayload = {
119
- id?: number;
120
- user: string;
121
- text: string;
122
- type: string;
123
- context: FeedbackContext;
124
- messageId?: number;
125
- conversationId?: number;
126
- };
127
120
  export type Stringified<T> = string & {
128
121
  [P in keyof T]: {
129
122
  "_ value": T[P];
@@ -133,11 +126,21 @@ export interface JSON {
133
126
  stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
134
127
  parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
135
128
  }
129
+ export type TuplePoint2D = [number, number];
130
+ export type TuplePoint3D = [number, number, number];
136
131
  export type Point2D = {
137
132
  x: number;
138
133
  y: number;
139
134
  };
140
- export type TuplePoint2D = [number, number];
135
+ export type Point3D = {
136
+ x: number;
137
+ y: number;
138
+ z: number;
139
+ };
140
+ export type GeoPoint = {
141
+ lat: number;
142
+ lng: number;
143
+ };
141
144
  export type Exid = string;
142
145
  export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
143
146
  export type BatteryVoltage = {
@@ -164,16 +167,6 @@ export declare enum TimelinePrecision {
164
167
  Minute = "minute",
165
168
  Events = "events"
166
169
  }
167
- export type EntityStatsQueryParams = {
168
- period: "day" | "week" | "month";
169
- startDate: string;
170
- endDate: string;
171
- };
172
- export type EntityStat = {
173
- period: string;
174
- name: string;
175
- count: number;
176
- };
177
170
  export declare enum TaskStatus {
178
171
  Idle = "idle",
179
172
  Loading = "loading",
@@ -33,14 +33,6 @@ export type SharedUsersResponsePayload = Array<{
33
33
  email: string;
34
34
  name: string;
35
35
  }>;
36
- export type ShareCreateRequestPayload = {
37
- email: string[] | string;
38
- message?: string;
39
- permission?: string;
40
- rights: string;
41
- apiId?: string;
42
- apiKey?: string;
43
- };
44
36
  export type ShareCreateResponsePayload = {
45
37
  shares: Share[];
46
38
  shareRequests: ShareRequest[];
@@ -51,8 +43,3 @@ export declare enum InviteStatus {
51
43
  Used = 1,
52
44
  Failed = -2
53
45
  }
54
- export declare enum ShareVisibility {
55
- PublicDiscoverable = "publicDiscoverable",
56
- PublicUndiscoverable = "publicUndiscoverable",
57
- Private = "private"
58
- }
@@ -1,4 +1,4 @@
1
- import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter } from "@evercam/api/types";
1
+ import { BBox, BoundingBox, DateType, Schedule, ScheduleLowercase, CameraExid, DetectionModel, PaginationParams, PpeLabel, ProjectExid, CameraDateRangeFilter, CameraFeatureFlag, TimelineDateInterval, Camera, AdminCamera, _360FloorV2, _360FloorId, PaginatedItems, DateRangeFilter, TuplePoint2D } from "@evercam/api/types";
2
2
  import { DetectionLabel, DownloadFileType } from "@evercam/api/types";
3
3
  export declare enum SiteAnalyticsMode {
4
4
  Detections = "detections",
@@ -184,7 +184,7 @@ export type DetectionsExportRequestParams = DetectionsRequestParams & {
184
184
  directDownload?: boolean;
185
185
  };
186
186
  export type SmartSearchHeatmapPoint = {
187
- coordinates: [number, number];
187
+ coordinates: TuplePoint2D;
188
188
  detectionsCount: number;
189
189
  };
190
190
  export type SmartSearchHeatmapData = {
@@ -232,7 +232,7 @@ export type SiteAnalyticsProcessingStatus = {
232
232
  feature: CameraFeatureFlag;
233
233
  processedIntervals: TimelineDateInterval[];
234
234
  };
235
- export type SmartSearchRequestPayload = {
235
+ export type SmartSearchRequestPayload = PaginationParams & {
236
236
  cameraExids?: CameraExid[];
237
237
  drawingIds?: _360FloorId[];
238
238
  walkIds?: string[];
@@ -240,8 +240,6 @@ export type SmartSearchRequestPayload = {
240
240
  payload: SmartSearchBackendQuery;
241
241
  fromDate?: string;
242
242
  toDate?: string;
243
- page?: number;
244
- pageSize?: number;
245
243
  threshold?: number;
246
244
  };
247
245
  type SmartSearchResultItemBase = {
@@ -0,0 +1,127 @@
1
+ import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
2
+ export declare enum VisionProvider {
3
+ Gemini = "gemini",
4
+ Gemma = "gemma"
5
+ }
6
+ export declare const VISION_PROVIDER_OPTIONS: {
7
+ text: string;
8
+ value: VisionProvider;
9
+ }[];
10
+ export type SiteAnalyticsCoolifyStatus = {
11
+ appUuid: string | null;
12
+ name: string | null;
13
+ serverUuid: string | null;
14
+ serverName: string | null;
15
+ appUrl: string | null;
16
+ status: string | null;
17
+ isRunning: boolean;
18
+ updatedAt: string | null;
19
+ };
20
+ export type SiteAnalyticsProjectMeta = {
21
+ exid: ProjectExid;
22
+ name: string | null;
23
+ timezone: string | null;
24
+ featureFlags: string[] | null;
25
+ };
26
+ export type SiteAnalyticsCameraMeta = {
27
+ exid: CameraExid;
28
+ name: string | null;
29
+ status: string | null;
30
+ featureFlags: string[] | null;
31
+ };
32
+ export type SiteAnalyticsManagedApp = {
33
+ id: number;
34
+ projectExid: ProjectExid;
35
+ cameraExid: CameraExid;
36
+ coolifyAppId: string | null;
37
+ appVersion: string;
38
+ modelId: number | null;
39
+ startDate: DateType | null;
40
+ endDate: DateType | null;
41
+ startHour: number;
42
+ endHour: number;
43
+ source: string;
44
+ override: boolean;
45
+ timeIncreaseFrequency: number;
46
+ skipWeekends: boolean;
47
+ tracking: boolean;
48
+ observations: boolean;
49
+ visionProvider?: VisionProvider | null;
50
+ insertedAt: DateType | null;
51
+ updatedAt: DateType | null;
52
+ coolify: SiteAnalyticsCoolifyStatus | null;
53
+ project: SiteAnalyticsProjectMeta | null;
54
+ camera: SiteAnalyticsCameraMeta | null;
55
+ lastTrackingAt: DateType | null;
56
+ };
57
+ export type CreateSiteAnalyticsAppPayload = {
58
+ projectExid: ProjectExid;
59
+ cameraExid: CameraExid;
60
+ coolifyServerUuid: string;
61
+ appVersion?: string;
62
+ modelId?: number | null;
63
+ startDate?: DateType | null;
64
+ endDate?: DateType | null;
65
+ startHour?: number;
66
+ endHour?: number;
67
+ source?: string;
68
+ override?: boolean;
69
+ skipWeekends?: boolean;
70
+ timeIncreaseFrequency?: number;
71
+ tracking?: boolean;
72
+ observations?: boolean;
73
+ observationPromptId?: number | null;
74
+ visionProvider?: VisionProvider;
75
+ };
76
+ export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
77
+ export type ModelOption = {
78
+ modelId: number;
79
+ version: string;
80
+ };
81
+ export type SiteAnalyticsAppConfigFormValue = {
82
+ appVersion: string;
83
+ modelId: number | null;
84
+ startDate: string | null;
85
+ endDate: string | null;
86
+ startHour: number;
87
+ endHour: number;
88
+ source: string;
89
+ override: boolean;
90
+ timeIncreaseFrequency: number;
91
+ skipWeekends: boolean;
92
+ };
93
+ export type SiteAnalyticsManagementListParams = PaginationParams & {
94
+ projectExid?: ProjectExid;
95
+ includeStatus?: boolean;
96
+ };
97
+ export type CreateSiteAnalyticsAppResponse = {
98
+ created: boolean;
99
+ id: number | null;
100
+ data: SiteAnalyticsManagedApp | null;
101
+ count: number | null;
102
+ message: string;
103
+ };
104
+ export type DeleteSiteAnalyticsAppResponse = {
105
+ deleted: boolean;
106
+ count: number;
107
+ message: string;
108
+ };
109
+ export type ObservationConfigActivity = {
110
+ observationTypeId: number;
111
+ every: number | null;
112
+ };
113
+ export type ObservationConfig = {
114
+ id: number;
115
+ cameraExid: CameraExid;
116
+ projectExid: ProjectExid | null;
117
+ enabled: boolean;
118
+ activities: ObservationConfigActivity[];
119
+ createdBy: string | null;
120
+ insertedAt: DateType | null;
121
+ updatedAt: DateType | null;
122
+ };
123
+ export type UpsertObservationConfigPayload = {
124
+ projectExid?: ProjectExid;
125
+ enabled: boolean;
126
+ activities: ObservationConfigActivity[];
127
+ };
@@ -0,0 +1,78 @@
1
+ import { ForgeView } from "@evercam/api/types/360";
2
+ import { Point2D, Point3D } from "@evercam/api/types/shared";
3
+ export declare enum SiteViewSoftwareType {
4
+ Revit = "Revit",
5
+ Navisworks = "Navisworks",
6
+ Drone = "Drone",
7
+ Synchro = "Synchro"
8
+ }
9
+ export declare enum SiteViewerType {
10
+ ITwin = "iTwin",
11
+ Cesium = "Cesium",
12
+ Forge = "Forge"
13
+ }
14
+ export type SiteViewCameraListItem = {
15
+ projectId: string;
16
+ projectName: string;
17
+ software: SiteViewSoftwareType;
18
+ type: SiteViewerType;
19
+ uniqueId: string;
20
+ integrationType?: string;
21
+ };
22
+ export type ForgeUrn = {
23
+ displayName: string;
24
+ urn: string;
25
+ isModelHostedByEvercamACC?: boolean;
26
+ };
27
+ export type ForgeAccAlignmentData = {
28
+ bbox: {
29
+ min: Point2D;
30
+ max: Point2D;
31
+ };
32
+ transform: number[];
33
+ coordinateSystem?: {
34
+ context?: {
35
+ type?: string;
36
+ };
37
+ } | null;
38
+ };
39
+ export type TimelineItem = {
40
+ taskNumber: number;
41
+ taskID: string;
42
+ actualStartDate: string;
43
+ actualEndDate: string;
44
+ plannedStartDate: string;
45
+ plannedEndDate: string;
46
+ objectIDs: number[];
47
+ };
48
+ export type ForgeMarkerTransform = {
49
+ default: {
50
+ position: Point3D;
51
+ type: string;
52
+ };
53
+ };
54
+ export type ForgeMarker = {
55
+ name: string;
56
+ cameraExid: string;
57
+ transforms: ForgeMarkerTransform;
58
+ };
59
+ export type ForgeProjectData = {
60
+ urns?: ForgeUrn[];
61
+ accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
62
+ timeline?: TimelineItem[];
63
+ savedView?: ForgeView;
64
+ markers?: ForgeMarker[];
65
+ };
66
+ export type ItwinModel = {
67
+ name: string;
68
+ iTwinId: string;
69
+ iModelId: string;
70
+ changeSetId?: string;
71
+ isIModel: boolean;
72
+ height?: number;
73
+ cesiumId?: number;
74
+ markerDistanceThreshold: number;
75
+ };
76
+ export type ItwinProjectData = {
77
+ models: ItwinModel[];
78
+ };
@@ -5,8 +5,11 @@ export type SnapshotExtractionQyeryParams = PaginationParams & {
5
5
  status: SnapshotExtractionStatus;
6
6
  };
7
7
  export declare enum SnapshotExtractionStatus {
8
+ Cancelling = "canceling",
9
+ Cancelled = "cancelled",
8
10
  Completed = "completed",
9
11
  Failed = "failed",
12
+ Pending = "pending",
10
13
  Processing = "processing"
11
14
  }
12
15
  export declare enum SnapshotExtractionType {
@@ -30,6 +33,8 @@ export type SnapshotExtraction = {
30
33
  injectTo_cr: Boolean;
31
34
  schedule: Schedule;
32
35
  created_at: DateType;
36
+ jpegCount?: number;
37
+ obanJobId?: number;
33
38
  };
34
39
  export type SnapshotTestPayload = {
35
40
  cameraExid?: CameraExid;
@@ -42,6 +47,14 @@ export type SnapshotTestResponse = {
42
47
  status: string;
43
48
  data: string;
44
49
  };
50
+ export type SnapshotEmailDeliveryRequestPayload = {
51
+ snapshot: string;
52
+ recipients?: string[];
53
+ message?: string;
54
+ };
55
+ export type SnapshotEmailDeliveryResponsePayload = {
56
+ warning?: string;
57
+ };
45
58
  export type DeleteSnapshotQueryParams = {
46
59
  fromDate: DateType;
47
60
  toDate: DateType;
@@ -0,0 +1,4 @@
1
+ export type SocketAuthResponsePayload = {
2
+ wsToken: string;
3
+ expiresIn: number;
4
+ };
@@ -1,17 +1,4 @@
1
1
  import type { JsonObject, JsonValue } from "@evercam/api/types";
2
- export type StoryblokAsset = {
3
- id: number | null;
4
- alt: string | null;
5
- name: string;
6
- focus: string | null;
7
- title: string | null;
8
- filename: string;
9
- copyright: string | null;
10
- fieldtype: "asset";
11
- source?: string;
12
- metaData?: JsonObject;
13
- isExternalUrl?: boolean;
14
- };
15
2
  export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
16
3
  id: number;
17
4
  uuid: string;
@@ -1,4 +1,4 @@
1
- import { DateType, Schedule } from "@evercam/api/types";
1
+ import { Point2D, Schedule } from "@evercam/api/types";
2
2
  export declare enum TimelapseStatus {
3
3
  Pending = 11,
4
4
  Completed = 5,
@@ -26,11 +26,7 @@ export type TimestampPositionCoordinates = {
26
26
  w: number;
27
27
  h: number;
28
28
  };
29
- export type BlurRegionPoint = {
30
- x: number;
31
- y: number;
32
- };
33
- export type BlurRegionCoordinates = BlurRegionPoint[];
29
+ export type BlurRegionCoordinates = Point2D[];
34
30
  export type TimelapseLogoOptions = {
35
31
  id?: number;
36
32
  x: number;
@@ -58,13 +54,6 @@ export declare enum TimelapseType {
58
54
  Year = "year",
59
55
  FullProject = "full_project"
60
56
  }
61
- export type TimelapseFilterQueryParams = {
62
- from?: DateType;
63
- to?: DateType;
64
- period?: TimelapsePeriod;
65
- duration?: number;
66
- schedule?: Schedule;
67
- };
68
57
  export type TimelapseCreationRequestPayload = {
69
58
  title: string;
70
59
  duration: number;