@evercam/api 1.0.0-964e29308 → 1.0.0-9a767ebbe

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.
@@ -70,6 +70,14 @@ export type DroneUploadUpdateRequestPayload = {
70
70
  title: string;
71
71
  fileExtension: string;
72
72
  }[];
73
+ aerialShots: {
74
+ url: string;
75
+ title: string;
76
+ fileExtension: string;
77
+ gpsLatitude: string;
78
+ gpsLongitude: string;
79
+ gpsAltitude: string;
80
+ }[];
73
81
  projectName: string;
74
82
  };
75
83
  export type CalculateMeasuringOperationRequestPayload = {
@@ -2,3 +2,15 @@ export declare enum MapType {
2
2
  Hybrid = "hybrid",
3
3
  Terrain = "terrain"
4
4
  }
5
+ export type MapView = {
6
+ east?: number;
7
+ floorID?: string;
8
+ image?: string;
9
+ mapStyle?: MapType;
10
+ name: string;
11
+ north?: number;
12
+ projectId: string;
13
+ projectName: string;
14
+ south?: number;
15
+ west?: number;
16
+ };
@@ -1,3 +1,20 @@
1
+ import { GeoPoint } from "./shared";
2
+ import { MapType } from "./map";
3
+ export type PlannerListItem = {
4
+ id: string;
5
+ projectId: string;
6
+ projectName: string;
7
+ projectLocation: string;
8
+ createdDate: string;
9
+ updatedDate: string;
10
+ owner?: string;
11
+ lastUpdatedBy?: string;
12
+ camerasCount?: number;
13
+ hasPlan?: boolean;
14
+ thumbnailUrl?: string;
15
+ projectMapType?: MapType;
16
+ sessionId?: string;
17
+ };
1
18
  export type Coordinate = [number, number];
2
19
  export type PolygonPath = Coordinate[];
3
20
  export type PolygonCoordinates = PolygonPath[];
@@ -47,6 +64,43 @@ export declare enum ERoles {
47
64
  Admin = "admin",
48
65
  User = "user"
49
66
  }
67
+ export type PlannerOverlay = {
68
+ imageUrl?: string;
69
+ corners?: {
70
+ topLeft: GeoPoint;
71
+ topRight: GeoPoint;
72
+ bottomLeft: GeoPoint;
73
+ bottomRight: GeoPoint;
74
+ } | null;
75
+ };
76
+ export type PlannerCameraMarker = {
77
+ name?: string;
78
+ location?: GeoPoint;
79
+ heading?: number;
80
+ fovAngle?: number;
81
+ fovRadius?: number;
82
+ isVisible?: boolean;
83
+ color?: string;
84
+ };
85
+ export type SitePlanBounds = {
86
+ northEast: GeoPoint;
87
+ southWest: GeoPoint;
88
+ };
89
+ export type SitePlan = {
90
+ id?: string;
91
+ projectId?: string;
92
+ owner?: string;
93
+ lastUpdatedBy?: string;
94
+ projectName?: string;
95
+ projectLocation?: string;
96
+ projectMapType?: EMapTypes;
97
+ projectBounds?: SitePlanBounds;
98
+ overlay?: PlannerOverlay;
99
+ markers?: PlannerCameraMarker[];
100
+ thumbnailUrl?: string;
101
+ createdDate?: string;
102
+ updatedDate?: string;
103
+ };
50
104
  export interface IDrawControl {
51
105
  _toolbars: {
52
106
  draw: {
@@ -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 = {
@@ -62,7 +62,8 @@ export declare enum ProjectArchiveTier {
62
62
  Full = "Full",
63
63
  Partial = "Partial",
64
64
  Minimal = "Minimal",
65
- ScheduledForDeletion = "Scheduled for Deletion"
65
+ ScheduledForDeletion = "Scheduled for Deletion",
66
+ No = "No"
66
67
  }
67
68
  export type UpdateCameraRestrictionPayload = {
68
69
  isAccessRestricted?: boolean;
@@ -109,6 +110,7 @@ export type ProjectsQueryParams = PaginationParams & {
109
110
  status: ProjectStatus;
110
111
  cameras: string;
111
112
  featureFlags: Array<ProjectFeatureFlag>;
113
+ featureFlagsOperator?: Operator;
112
114
  archived: string;
113
115
  };
114
116
  export type ProjectCreateRequestPayload = {
@@ -76,6 +76,7 @@ export declare enum CloudRecordingDuration {
76
76
  Month = 30,
77
77
  ThreeMonths = 90
78
78
  }
79
+ export declare const CloudRecordingDurationLabel: Record<CloudRecordingDuration, string>;
79
80
  export declare enum CloudRecordingStatus {
80
81
  On = "on",
81
82
  Off = "off",
@@ -9,8 +9,7 @@ export declare enum RoiShapeType {
9
9
  Polygon = "polygon",
10
10
  Line = "line",
11
11
  Direction = "direction",
12
- Rectangle = "rectangle",
13
- ROIBox = "ROIBox"
12
+ Rectangle = "rectangle"
14
13
  }
15
14
  export type RoiShape = {
16
15
  id: number | null;
@@ -19,6 +18,7 @@ export type RoiShape = {
19
18
  x2: number;
20
19
  y1: number;
21
20
  y2: number;
21
+ points?: [number, number][];
22
22
  };
23
23
  export declare enum RoiDirection {
24
24
  Arrived = "arrived",
@@ -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}`;
@@ -133,6 +137,20 @@ export interface JSON {
133
137
  stringify<T>(value: T, replacer?: (key: string, value: unknown) => unknown, space?: string | number): string & Stringified<T>;
134
138
  parse<T>(text: Stringified<T>, reviver?: (key: unknown, value: unknown) => unknown): T;
135
139
  }
140
+ export type TuplePoint2D = [number, number];
141
+ export type Point2D = {
142
+ x: number;
143
+ y: number;
144
+ };
145
+ export type Point3D = {
146
+ x: number;
147
+ y: number;
148
+ z: number;
149
+ };
150
+ export type GeoPoint = {
151
+ lat: number;
152
+ lng: number;
153
+ };
136
154
  export type Exid = string;
137
155
  export type EntityByExid<Entity extends unknown> = Record<Exid, Entity>;
138
156
  export type BatteryVoltage = {
@@ -0,0 +1,74 @@
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
+ };
34
+ export type TimelineItem = {
35
+ taskNumber: number;
36
+ taskID: string;
37
+ actualStartDate: string;
38
+ actualEndDate: string;
39
+ plannedStartDate: string;
40
+ plannedEndDate: string;
41
+ objectIDs: number[];
42
+ };
43
+ export type ForgeMarkerTransform = {
44
+ default: {
45
+ position: Point3D;
46
+ type: string;
47
+ };
48
+ };
49
+ export type ForgeMarker = {
50
+ name: string;
51
+ cameraExid: string;
52
+ transforms: ForgeMarkerTransform;
53
+ };
54
+ export type ForgeProjectData = {
55
+ urns?: ForgeUrn[];
56
+ isEvercamAccount?: boolean;
57
+ accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
58
+ timeline?: TimelineItem[];
59
+ savedView?: ForgeView;
60
+ markers?: ForgeMarker[];
61
+ };
62
+ export type ItwinModel = {
63
+ name: string;
64
+ iTwinId: string;
65
+ iModelId: string;
66
+ changeSetId?: string;
67
+ isIModel: boolean;
68
+ height?: number;
69
+ cesiumId?: number;
70
+ markerDistanceThreshold: number;
71
+ };
72
+ export type ItwinProjectData = {
73
+ models: ItwinModel[];
74
+ };
@@ -16,7 +16,9 @@ export type TimelapseVideoOptions = {
16
16
  removeTimestamp: boolean;
17
17
  smoothTransition: boolean;
18
18
  evercamWatermark: boolean;
19
+ sectionBlur?: boolean;
19
20
  timestampPosition?: TimestampPositionCoordinates;
21
+ blurRegions?: BlurRegionCoordinates[];
20
22
  };
21
23
  export type TimestampPositionCoordinates = {
22
24
  x: number;
@@ -24,6 +26,11 @@ export type TimestampPositionCoordinates = {
24
26
  w: number;
25
27
  h: number;
26
28
  };
29
+ export type BlurRegionPoint = {
30
+ x: number;
31
+ y: number;
32
+ };
33
+ export type BlurRegionCoordinates = BlurRegionPoint[];
27
34
  export type TimelapseLogoOptions = {
28
35
  id?: number;
29
36
  x: number;