@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.
- package/dist/api/api/3dFirebaseApi.d.ts +171 -15
- package/dist/api/api/adminApi.d.ts +1 -0
- package/dist/api/api/aiApi.d.ts +2 -2
- package/dist/api/api/authzApi.d.ts +1 -2
- package/dist/api/types/360.d.ts +55 -50
- package/dist/api/types/analytics.d.ts +0 -4
- package/dist/api/types/axios.d.ts +1 -0
- package/dist/api/types/camera.d.ts +4 -23
- package/dist/api/types/drone.d.ts +91 -3
- package/dist/api/types/gateReport.d.ts +6 -11
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/ingest.d.ts +8 -0
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/planner.d.ts +54 -0
- package/dist/api/types/project.d.ts +4 -2
- package/dist/api/types/recording.d.ts +1 -0
- package/dist/api/types/roi.d.ts +2 -2
- package/dist/api/types/shared.d.ts +18 -0
- package/dist/api/types/siteView.d.ts +74 -0
- package/dist/api/types/timelapse.d.ts +7 -0
- package/dist/index.js +1104 -616
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.cjs.map +1 -1
- package/dist/shared/types/components.d.ts +3 -5
- package/package.json +2 -2
|
@@ -1,27 +1,183 @@
|
|
|
1
|
-
import { _360ProjectJsonResponse,
|
|
1
|
+
import { _360Floor, _360FloorId, _360Marker3D, _360Pin, _360ProjectJsonResponse, _360ProjectListItem, _360Scene, _360SceneRoute, _360Walk, Point3D, DroneBimData, DroneImageryPlan, DroneMarker, DroneModel, DroneProjectData, DroneProjectDataPatch, DroneProjectTransform, DroneTag, DroneTransformPatch, ForgeMarker, ForgeProjectData, ForgeView, ItwinProjectData, MapView, PlannerListItem, SitePlan, ProjectExid, SiteViewCameraListItem, SiteViewerType, DroneCameraTransform } from "@evercam/api/types";
|
|
2
2
|
import { AxiosRequestConfig } from "axios";
|
|
3
|
-
export declare const getFirebaseDbApi: () => string
|
|
4
|
-
export declare const getFirebaseStorageUrl: () => string
|
|
5
|
-
export declare const getFirebaseStorageToken: () => string
|
|
3
|
+
export declare const getFirebaseDbApi: () => string;
|
|
4
|
+
export declare const getFirebaseStorageUrl: () => string;
|
|
5
|
+
export declare const getFirebaseStorageToken: () => string;
|
|
6
|
+
export declare const getForgeTokenServerUrl: () => string;
|
|
6
7
|
export declare const _3dFirebaseApi: {
|
|
7
8
|
drone: {
|
|
8
|
-
getProjectInfo(projectExid: ProjectExid): Promise<
|
|
9
|
-
|
|
9
|
+
getProjectInfo(projectExid: ProjectExid): Promise<DroneProjectData>;
|
|
10
|
+
getTransformInfo(projectExid: ProjectExid): Promise<DroneProjectTransform>;
|
|
11
|
+
getProjectTags(projectExid: ProjectExid): Promise<Record<string, DroneTag>>;
|
|
12
|
+
getTags(projectId: ProjectExid): Promise<Record<string, DroneTag>>;
|
|
13
|
+
patchTags({ projectId, tags, }: {
|
|
14
|
+
projectId: ProjectExid;
|
|
15
|
+
tags: Record<string, DroneTag | null>;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
saveMarkers({ projectId, markers, }: {
|
|
18
|
+
projectId: ProjectExid;
|
|
19
|
+
markers: Record<string, DroneMarker>;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
patchTransform({ projectId, data, }: {
|
|
22
|
+
projectId: ProjectExid;
|
|
23
|
+
data: DroneTransformPatch;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
saveTerrainPoints({ projectId, dateId, points, }: {
|
|
26
|
+
projectId: ProjectExid;
|
|
27
|
+
dateId: string;
|
|
28
|
+
points: Point3D[];
|
|
29
|
+
}): Promise<void>;
|
|
30
|
+
patchImageryPlan({ projectId, plan, }: {
|
|
31
|
+
projectId: ProjectExid;
|
|
32
|
+
plan: Record<string, DroneImageryPlan>;
|
|
33
|
+
}): Promise<void>;
|
|
34
|
+
deleteImageryPlan({ projectId, uuid, }: {
|
|
35
|
+
projectId: ProjectExid;
|
|
36
|
+
uuid: string;
|
|
37
|
+
}): Promise<void>;
|
|
38
|
+
saveImageryPlans({ projectId, plans, }: {
|
|
39
|
+
projectId: ProjectExid;
|
|
40
|
+
plans: Record<string, DroneImageryPlan>;
|
|
41
|
+
}): Promise<void>;
|
|
42
|
+
getBlackListIds(projectId: ProjectExid): Promise<string | null>;
|
|
43
|
+
saveBlackListIds({ projectId, ids, }: {
|
|
44
|
+
projectId: ProjectExid;
|
|
45
|
+
ids: string;
|
|
46
|
+
}): Promise<void>;
|
|
47
|
+
saveModel({ projectId, model, }: {
|
|
48
|
+
projectId: ProjectExid;
|
|
49
|
+
model: DroneModel;
|
|
50
|
+
}): Promise<void>;
|
|
51
|
+
saveModels({ projectId, models, }: {
|
|
52
|
+
projectId: ProjectExid;
|
|
53
|
+
models: DroneModel[];
|
|
54
|
+
}): Promise<void>;
|
|
55
|
+
saveBimData({ projectId, data, }: {
|
|
56
|
+
projectId: ProjectExid;
|
|
57
|
+
data: DroneBimData;
|
|
58
|
+
}): Promise<void>;
|
|
59
|
+
getBimTransparencyFlag(projectId: ProjectExid): Promise<boolean | null>;
|
|
60
|
+
saveCameraTransform({ projectId, isScene3D, transform, }: {
|
|
61
|
+
projectId: ProjectExid;
|
|
62
|
+
isScene3D: boolean;
|
|
63
|
+
transform: Record<string, DroneCameraTransform>;
|
|
64
|
+
}): Promise<void>;
|
|
10
65
|
};
|
|
11
66
|
_360: {
|
|
12
67
|
getProjectInfo(projectExid: ProjectExid, params?: {
|
|
13
68
|
config?: AxiosRequestConfig;
|
|
14
69
|
}): Promise<_360ProjectJsonResponse>;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
70
|
+
getProjectsList(): Promise<_360ProjectListItem[]>;
|
|
71
|
+
updateProjectsList(items: Record<string, _360ProjectListItem>): Promise<void>;
|
|
72
|
+
updateProjectsListItem(index: number, data: _360ProjectListItem): Promise<void>;
|
|
73
|
+
deleteProject(projectId: string): Promise<void>;
|
|
74
|
+
updateProjectInfo(projectId: string, data: Partial<_360ProjectJsonResponse>): Promise<void>;
|
|
75
|
+
getDateWalks(projectExid: ProjectExid, dateId: string): Promise<_360Walk>;
|
|
76
|
+
updateFloor(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360Floor>): Promise<_360ProjectJsonResponse>;
|
|
77
|
+
getRoute(projectExid: ProjectExid, dateId: string, floorIndex: string): Promise<_360SceneRoute | null>;
|
|
78
|
+
getDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
79
|
+
getAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
80
|
+
getAerialShotDate(projectId: ProjectExid, dateId: number): Promise<string | null>;
|
|
81
|
+
getFloor({ projectId, dateId, floorId, }: {
|
|
82
|
+
projectId: ProjectExid;
|
|
83
|
+
dateId: number;
|
|
84
|
+
floorId: _360FloorId;
|
|
85
|
+
}): Promise<_360Floor>;
|
|
86
|
+
getAerialShotsFloor({ projectId, dateId, floorId, }: {
|
|
87
|
+
projectId: ProjectExid;
|
|
88
|
+
dateId: number;
|
|
89
|
+
floorId: _360FloorId;
|
|
90
|
+
}): Promise<_360Floor>;
|
|
91
|
+
update3DMarkers({ projectId, dateId, floorId, markers, }: {
|
|
92
|
+
projectId: ProjectExid;
|
|
93
|
+
dateId: number;
|
|
94
|
+
floorId: _360FloorId;
|
|
95
|
+
markers: Record<string, _360Marker3D>;
|
|
96
|
+
}): Promise<void>;
|
|
97
|
+
patchFloor({ projectId, dateId, floorId, data, }: {
|
|
98
|
+
projectId: ProjectExid;
|
|
99
|
+
dateId: number;
|
|
100
|
+
floorId: _360FloorId;
|
|
101
|
+
data: Partial<_360Floor>;
|
|
102
|
+
}): Promise<void>;
|
|
103
|
+
updateFloors({ projectId, dateId, floors, }: {
|
|
104
|
+
projectId: ProjectExid;
|
|
105
|
+
dateId: number;
|
|
106
|
+
floors: _360Scene["floors"];
|
|
107
|
+
}): Promise<void>;
|
|
108
|
+
deleteFloor({ projectId, dateId, floorId, }: {
|
|
109
|
+
projectId: ProjectExid;
|
|
110
|
+
dateId: number;
|
|
111
|
+
floorId: _360FloorId;
|
|
112
|
+
}): Promise<void>;
|
|
113
|
+
updateDates(projectId: ProjectExid, dates: _360Scene[]): Promise<void>;
|
|
114
|
+
deleteDate(projectId: ProjectExid, dateId: number): Promise<void>;
|
|
115
|
+
getPins({ projectId, dateId, floorId, }: {
|
|
116
|
+
projectId: ProjectExid;
|
|
117
|
+
dateId: number;
|
|
118
|
+
floorId: _360FloorId;
|
|
119
|
+
}): Promise<Record<string, _360Pin>>;
|
|
120
|
+
updatePins({ projectId, dateId, floorId, pins, }: {
|
|
121
|
+
projectId: ProjectExid;
|
|
122
|
+
dateId: number;
|
|
123
|
+
floorId: _360FloorId;
|
|
124
|
+
pins: Record<string, _360Pin>;
|
|
125
|
+
}): Promise<void>;
|
|
126
|
+
getGPXText(url: string): Promise<string>;
|
|
127
|
+
updateRoute(projectExid: ProjectExid, dateId: string, floorIndex: string, body: Partial<_360SceneRoute>): Promise<void>;
|
|
128
|
+
updateFeatureFlag(projectID: string, dateID: string, floorID: string, featureFlagName: string, value: boolean): Promise<void>;
|
|
129
|
+
saveSteps(projectID: string, dateID: string, floorID: string, stepsValue: number): Promise<void>;
|
|
130
|
+
updateGPXFile(projectExid: ProjectExid, dateId: string, floorIndex: string, gpxContent: string): Promise<void>;
|
|
131
|
+
getProjectDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
132
|
+
getProjectAerialShotsDates(projectId: ProjectExid): Promise<_360Scene[]>;
|
|
133
|
+
getProjectDateFloors({ projectId, dateId, }: {
|
|
134
|
+
projectId: ProjectExid;
|
|
135
|
+
dateId: string | number;
|
|
136
|
+
}): Promise<Record<string, _360Floor>>;
|
|
23
137
|
};
|
|
24
138
|
forge: {
|
|
25
|
-
|
|
139
|
+
getAccessToken(): Promise<{
|
|
140
|
+
access_token: string;
|
|
141
|
+
}>;
|
|
142
|
+
getProjectInfo(projectExid: ProjectExid): Promise<ForgeProjectData | null>;
|
|
143
|
+
getForgeData(projectId: string): Promise<ForgeProjectData | null>;
|
|
144
|
+
saveSavedView(projectId: string, payload: ForgeView): Promise<void>;
|
|
145
|
+
saveMarkers(projectId: string, markers: ForgeMarker[]): Promise<void>;
|
|
146
|
+
};
|
|
147
|
+
itwin: {
|
|
148
|
+
getProjectInfo(projectId: string): Promise<ItwinProjectData | null>;
|
|
149
|
+
clearBimCompare(projectId: string): Promise<void>;
|
|
150
|
+
clearSiteView(projectId: string, modelIndex: number): Promise<void>;
|
|
151
|
+
};
|
|
152
|
+
siteView: {
|
|
153
|
+
getCamerasList(): Promise<SiteViewCameraListItem[]>;
|
|
154
|
+
updateCamerasList(items: Record<string, SiteViewCameraListItem>): Promise<void>;
|
|
155
|
+
updateCamerasListItem(trueIndex: number, item: SiteViewCameraListItem): Promise<void>;
|
|
156
|
+
updateProjectData({ viewerType, projectId, data, subPath, }: {
|
|
157
|
+
viewerType: SiteViewerType;
|
|
158
|
+
projectId: ProjectExid;
|
|
159
|
+
data: ForgeProjectData | ItwinProjectData | DroneProjectDataPatch;
|
|
160
|
+
subPath?: string;
|
|
161
|
+
}): Promise<void>;
|
|
162
|
+
deleteProjectData(viewerType: SiteViewerType, projectId: ProjectExid): Promise<void>;
|
|
163
|
+
readAllData(dbLink: string): Promise<Record<string, unknown>>;
|
|
164
|
+
writeAllData(dbLink: string, data: Record<string, unknown>): Promise<void>;
|
|
165
|
+
};
|
|
166
|
+
map: {
|
|
167
|
+
getMapViews(projectExid: ProjectExid): Promise<MapView[]>;
|
|
168
|
+
updateMapViews(projectExid: ProjectExid, mapViews: Record<string, MapView>): Promise<void>;
|
|
169
|
+
};
|
|
170
|
+
safety: {
|
|
171
|
+
getTPulseLink(projectExid: ProjectExid): Promise<{
|
|
172
|
+
link?: string;
|
|
173
|
+
} | null>;
|
|
174
|
+
updateTPulseLink(projectExid: ProjectExid, link: string): Promise<void>;
|
|
175
|
+
};
|
|
176
|
+
planner: {
|
|
177
|
+
getPlannerList(): Promise<Record<string, PlannerListItem>>;
|
|
178
|
+
getPlannerItem(sitePlanId: string): Promise<PlannerListItem | null>;
|
|
179
|
+
saveSitePlanMetaData(sitePlanId: string, payload: PlannerListItem): Promise<void>;
|
|
180
|
+
getSitePlan(sitePlanId: string): Promise<SitePlan | null>;
|
|
181
|
+
saveSitePlan(sitePlanId: string, payload: SitePlan): Promise<void>;
|
|
26
182
|
};
|
|
27
183
|
};
|
|
@@ -175,6 +175,7 @@ export declare const AdminApi: {
|
|
|
175
175
|
params: Partial<KitBoxQueryParams>;
|
|
176
176
|
}): Promise<PaginatedItems<KitBox>>;
|
|
177
177
|
createBox(params: KitBoxCreatePayload): Promise<KitBox>;
|
|
178
|
+
updateBox(id: string, params: KitBoxCreatePayload): Promise<KitBox>;
|
|
178
179
|
};
|
|
179
180
|
logs: {
|
|
180
181
|
getAllCamerasStatusLogs(params: {
|
package/dist/api/api/aiApi.d.ts
CHANGED
|
@@ -30,10 +30,10 @@ export declare const AiApi: {
|
|
|
30
30
|
roi: {
|
|
31
31
|
getROIs(projectExid: string, params?: Partial<RoisQueryParams>): Promise<GateReportROI[]>;
|
|
32
32
|
createROI(params: Omit<GateReportRoiRequestPayload, "id"> & {
|
|
33
|
-
createdBy
|
|
33
|
+
createdBy?: string;
|
|
34
34
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
35
35
|
updateROI({ updatedBy, id, ...params }: Partial<GateReportRoiRequestPayload> & {
|
|
36
|
-
updatedBy
|
|
36
|
+
updatedBy?: string;
|
|
37
37
|
}): Promise<import("axios").AxiosResponse<any, any>>;
|
|
38
38
|
deleteROI({ id, updatedBy }: {
|
|
39
39
|
id: number;
|
|
@@ -17,8 +17,7 @@ export declare const AuthzApi: {
|
|
|
17
17
|
addPermission(id: number, action: string): Promise<void>;
|
|
18
18
|
deletePermission(id: number, action: string): Promise<void>;
|
|
19
19
|
getRoleUsers(id: number): Promise<AuthzRoleUser[]>;
|
|
20
|
-
assignUsers(
|
|
21
|
-
unassignUsers(id: number, emails: Array<string>, resourceId: string): Promise<void>;
|
|
20
|
+
assignUsers(roleId: number, emails: Array<string>, resourceId?: string): Promise<void>;
|
|
22
21
|
getUserRoles(projectExid?: ProjectExid, resourceType?: RoleResourceType): Promise<AuthzUserRolesResponse>;
|
|
23
22
|
};
|
|
24
23
|
projectRoles: {
|
package/dist/api/types/360.d.ts
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import { DateType } from "@evercam/api/types/time";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { GeoPoint, Point3D } from "@evercam/api/types/shared";
|
|
3
|
+
export type _360OverlayPosition = {
|
|
4
|
+
northEast: GeoPoint;
|
|
5
|
+
northWest: GeoPoint;
|
|
6
|
+
southEast: GeoPoint;
|
|
7
|
+
southWest: GeoPoint;
|
|
5
8
|
};
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
export type ForgeViewport = {
|
|
10
|
+
name: string;
|
|
11
|
+
eye: number[];
|
|
12
|
+
target: number[];
|
|
13
|
+
worldUpVector?: number[];
|
|
10
14
|
};
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
export type ForgeView = {
|
|
16
|
+
name: string;
|
|
17
|
+
viewport: ForgeViewport;
|
|
18
|
+
timestamp: string;
|
|
14
19
|
};
|
|
15
20
|
export type _360CameraRotation = {
|
|
16
21
|
azimuthAngle: number;
|
|
17
22
|
polarAngle: number;
|
|
18
23
|
};
|
|
24
|
+
export type _360Geolocation = {
|
|
25
|
+
latitude: number;
|
|
26
|
+
longitude: number;
|
|
27
|
+
};
|
|
19
28
|
export type _360Marker3D = {
|
|
20
|
-
cameraPosition:
|
|
29
|
+
cameraPosition: Point3D;
|
|
21
30
|
geolocation: _360Geolocation;
|
|
22
31
|
nextRoomId: _360MakerId;
|
|
23
|
-
position:
|
|
32
|
+
position: Point3D;
|
|
24
33
|
rotation: {
|
|
25
34
|
_order: "XYZ" | string;
|
|
26
35
|
_x: number;
|
|
@@ -35,7 +44,7 @@ export type _360Tag = {
|
|
|
35
44
|
comment: string;
|
|
36
45
|
creationDate: number;
|
|
37
46
|
currentRoom: _360MakerId;
|
|
38
|
-
position:
|
|
47
|
+
position: Point3D;
|
|
39
48
|
cameraRotation: _360CameraRotation;
|
|
40
49
|
};
|
|
41
50
|
export type _360FloorId = string | number;
|
|
@@ -45,8 +54,16 @@ export type _360Floor = {
|
|
|
45
54
|
_3DMarkers: _360Marker3D[];
|
|
46
55
|
cameraRotation: _360CameraRotation;
|
|
47
56
|
fbxModel: string;
|
|
57
|
+
fbxModelHQ?: string;
|
|
58
|
+
pointCloudModelHQ?: string;
|
|
48
59
|
initialMarker: _360MakerId;
|
|
49
60
|
modelViewerFeatureFlag: boolean;
|
|
61
|
+
imagesOnlyFeatureFlag?: boolean;
|
|
62
|
+
forgeBIMFeatureFlag?: boolean;
|
|
63
|
+
isForgeGravityEnabled?: boolean;
|
|
64
|
+
initialForgeView?: ForgeView | null;
|
|
65
|
+
enhancedLightFeatureFlag?: boolean;
|
|
66
|
+
calibrationDetails?: Record<string, unknown>;
|
|
50
67
|
route: {
|
|
51
68
|
cameraHeadingOffset: string;
|
|
52
69
|
overlayID: number;
|
|
@@ -54,7 +71,7 @@ export type _360Floor = {
|
|
|
54
71
|
};
|
|
55
72
|
sceneScale: number;
|
|
56
73
|
steps: number;
|
|
57
|
-
tags
|
|
74
|
+
tags?: Record<string, _360Tag>;
|
|
58
75
|
};
|
|
59
76
|
export type _360WalkV2 = {
|
|
60
77
|
archive: string;
|
|
@@ -92,24 +109,7 @@ export type _360FloorV2 = {
|
|
|
92
109
|
hasOverlay: boolean;
|
|
93
110
|
isCalibrated: boolean;
|
|
94
111
|
createdBy: string | null;
|
|
95
|
-
overlayPosition:
|
|
96
|
-
northEast: {
|
|
97
|
-
lat: number;
|
|
98
|
-
lng: number;
|
|
99
|
-
};
|
|
100
|
-
northWest: {
|
|
101
|
-
lat: number;
|
|
102
|
-
lng: number;
|
|
103
|
-
};
|
|
104
|
-
southEast: {
|
|
105
|
-
lat: number;
|
|
106
|
-
lng: number;
|
|
107
|
-
};
|
|
108
|
-
southWest: {
|
|
109
|
-
lat: number;
|
|
110
|
-
lng: number;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
112
|
+
overlayPosition: _360OverlayPosition;
|
|
113
113
|
insertedAt: string;
|
|
114
114
|
updatedAt: string;
|
|
115
115
|
};
|
|
@@ -123,11 +123,33 @@ export type _360Scene = {
|
|
|
123
123
|
polarAngle: number;
|
|
124
124
|
azimuthAngle: number;
|
|
125
125
|
};
|
|
126
|
+
export declare enum _360PinType {
|
|
127
|
+
Default = "Default"
|
|
128
|
+
}
|
|
129
|
+
export type _360Pin = {
|
|
130
|
+
position: Point3D;
|
|
131
|
+
pinType: _360PinType;
|
|
132
|
+
pinId?: string;
|
|
133
|
+
cameraExid?: string;
|
|
134
|
+
name: string;
|
|
135
|
+
currentRoom?: _360MakerId;
|
|
136
|
+
cameraRotation?: _360CameraRotation;
|
|
137
|
+
};
|
|
126
138
|
export type _360SceneRoute = {
|
|
127
139
|
cameraHeadingOffset?: number;
|
|
128
140
|
overlayID?: number;
|
|
129
141
|
track?: string;
|
|
130
142
|
};
|
|
143
|
+
export type _360ProjectListItem = {
|
|
144
|
+
integrationType: string;
|
|
145
|
+
projectId: string;
|
|
146
|
+
projectName: string;
|
|
147
|
+
providerID: string;
|
|
148
|
+
providerPrefix: string;
|
|
149
|
+
providerSuffix: string;
|
|
150
|
+
timeline: string;
|
|
151
|
+
uniqueId: string;
|
|
152
|
+
};
|
|
131
153
|
export type _360FullProject = {
|
|
132
154
|
dates: _360SceneWithFloors[];
|
|
133
155
|
integrationType: string;
|
|
@@ -231,24 +253,7 @@ export type GenerateFloorPayload = {
|
|
|
231
253
|
changedBy: string;
|
|
232
254
|
name?: string;
|
|
233
255
|
mapStyle?: string;
|
|
234
|
-
overlayPositionCorners:
|
|
235
|
-
northEast: {
|
|
236
|
-
lat: number;
|
|
237
|
-
lng: number;
|
|
238
|
-
};
|
|
239
|
-
northWest: {
|
|
240
|
-
lat: number;
|
|
241
|
-
lng: number;
|
|
242
|
-
};
|
|
243
|
-
southWest: {
|
|
244
|
-
lat: number;
|
|
245
|
-
lng: number;
|
|
246
|
-
};
|
|
247
|
-
southEast: {
|
|
248
|
-
lat: number;
|
|
249
|
-
lng: number;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
256
|
+
overlayPositionCorners: _360OverlayPosition;
|
|
252
257
|
};
|
|
253
258
|
export type _360QueueQueryParams = {
|
|
254
259
|
projectId?: string;
|
|
@@ -290,7 +290,6 @@ export declare enum AnalyticsEvent {
|
|
|
290
290
|
ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
|
|
291
291
|
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
292
292
|
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
293
|
-
ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
|
|
294
293
|
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
295
294
|
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
296
295
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
@@ -406,7 +405,6 @@ export declare enum AnalyticsEvent {
|
|
|
406
405
|
DrawingClickHome = "ClickHome",
|
|
407
406
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
408
407
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
409
|
-
DrawingToggleFilter = "ToggleFilter",
|
|
410
408
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
411
409
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
412
410
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -459,7 +457,6 @@ export declare enum AnalyticsEvent {
|
|
|
459
457
|
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
460
458
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
461
459
|
ProjectSettingsMembersEditCameraAccess = "EditCameraAccess",
|
|
462
|
-
ProjectSettingsMembersFiltersClick = "FiltersClick",
|
|
463
460
|
ProjectSettingsMembersShareCamera = "ShareCamera",
|
|
464
461
|
ProjectSettingsMembersToggleAddDialog = "ToggleAddDialog",
|
|
465
462
|
ProjectSettingsOverviewOpenInMapView = "OpenInMapView",
|
|
@@ -548,7 +545,6 @@ export declare enum AnalyticsEvent {
|
|
|
548
545
|
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
549
546
|
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
550
547
|
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
551
|
-
AutomationsFiltersClicked = "FiltersClicked",
|
|
552
548
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
553
549
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
554
550
|
AutomationTypeName = "TypeName",
|
|
@@ -20,6 +20,7 @@ export type AxiosEnvironment = {
|
|
|
20
20
|
firebaseDbLink?: string | null;
|
|
21
21
|
firebaseStorageUrl?: string | null;
|
|
22
22
|
firebaseStorageToken?: string | null;
|
|
23
|
+
forgeTokenServerUrl?: string | null;
|
|
23
24
|
snapshotsURL?: string | null;
|
|
24
25
|
app?: string | null;
|
|
25
26
|
getAuthToken?: () => string | null;
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
+
import { GeoPoint } from "@evercam/api/types/shared";
|
|
3
4
|
export type CameraExid = string;
|
|
4
5
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
5
|
-
export type Cartesian3 = {
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
z: number;
|
|
9
|
-
};
|
|
10
6
|
export type Camera = {
|
|
11
7
|
cameraPowerSchedule?: Schedule;
|
|
12
8
|
camPassword?: string;
|
|
@@ -46,10 +42,7 @@ export type Camera = {
|
|
|
46
42
|
isPublic: boolean;
|
|
47
43
|
lastOnlineAt: string;
|
|
48
44
|
lastPolledAt: string;
|
|
49
|
-
location:
|
|
50
|
-
lat: number;
|
|
51
|
-
lng: number;
|
|
52
|
-
};
|
|
45
|
+
location: GeoPoint;
|
|
53
46
|
modelId: string;
|
|
54
47
|
modelName: string;
|
|
55
48
|
name: string;
|
|
@@ -112,10 +105,7 @@ export type AdminCamera = {
|
|
|
112
105
|
isPublic: boolean;
|
|
113
106
|
sharedWithConstruction?: boolean;
|
|
114
107
|
timezone: string | null;
|
|
115
|
-
location?:
|
|
116
|
-
lat: number;
|
|
117
|
-
lng: number;
|
|
118
|
-
} | null;
|
|
108
|
+
location?: GeoPoint | null;
|
|
119
109
|
fovAngle?: number | null;
|
|
120
110
|
fovRadius?: number | null;
|
|
121
111
|
heading?: number | null;
|
|
@@ -167,10 +157,7 @@ export type AdminCamera = {
|
|
|
167
157
|
};
|
|
168
158
|
export type CameraMapMarker = {
|
|
169
159
|
isOnline: boolean;
|
|
170
|
-
location:
|
|
171
|
-
lat: number;
|
|
172
|
-
lng: number;
|
|
173
|
-
};
|
|
160
|
+
location: GeoPoint;
|
|
174
161
|
needFov: boolean;
|
|
175
162
|
rotation: number;
|
|
176
163
|
fovAngle: number;
|
|
@@ -320,12 +307,6 @@ export declare enum CameraModel {
|
|
|
320
307
|
Other = "other",
|
|
321
308
|
Ring = "ring"
|
|
322
309
|
}
|
|
323
|
-
export type DroneCameraTransform = {
|
|
324
|
-
position: Cartesian3;
|
|
325
|
-
direction: Cartesian3;
|
|
326
|
-
up: Cartesian3;
|
|
327
|
-
right: Cartesian3;
|
|
328
|
-
};
|
|
329
310
|
export type Footage = {
|
|
330
311
|
cameraExid: string;
|
|
331
312
|
cameraName: string;
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { Point3D } from "@evercam/api/types/shared";
|
|
2
|
+
export type DroneCameraTransform = {
|
|
3
|
+
position: Point3D;
|
|
4
|
+
direction: Point3D;
|
|
5
|
+
up: Point3D;
|
|
6
|
+
right: Point3D;
|
|
7
|
+
};
|
|
1
8
|
export type DroneModel = {
|
|
2
9
|
cesiumId: string;
|
|
3
10
|
cesiumId2D: string;
|
|
@@ -9,10 +16,91 @@ export type DroneModel = {
|
|
|
9
16
|
link: string;
|
|
10
17
|
trueIndex: number;
|
|
11
18
|
};
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
19
|
+
export type DroneProjectTransform = {
|
|
20
|
+
initialCameraTransform?: DroneCameraTransform;
|
|
21
|
+
initial2DCameraTransform?: DroneCameraTransform;
|
|
22
|
+
blackListIds?: string;
|
|
23
|
+
markers?: Record<string, DroneMarker>;
|
|
24
|
+
imageryPlans?: Record<string, DroneImageryPlan>;
|
|
25
|
+
bimData?: DroneBimData;
|
|
26
|
+
terrainPoints?: Record<string, Point3D[]>;
|
|
27
|
+
projectWGS84Coordinates?: DroneProjectCoordinates | null;
|
|
28
|
+
tags?: Record<string, DroneTag>;
|
|
29
|
+
};
|
|
30
|
+
export type DroneProjectData = {
|
|
31
|
+
models?: DroneModel[];
|
|
32
|
+
integrationType?: DroneProvider;
|
|
33
|
+
origin?: string;
|
|
34
|
+
params?: Record<string, unknown>;
|
|
35
|
+
pointSize?: string;
|
|
36
|
+
};
|
|
37
|
+
export type DroneProjectDataPatch = {
|
|
38
|
+
models?: Record<number, Partial<DroneModel>>;
|
|
39
|
+
integrationType?: DroneProvider;
|
|
40
|
+
origin?: string;
|
|
41
|
+
params?: string;
|
|
42
|
+
};
|
|
43
|
+
export type DroneProjectCoordinates = {
|
|
44
|
+
lat: number | null;
|
|
45
|
+
lon: number | null;
|
|
46
|
+
alt: number | null;
|
|
47
|
+
};
|
|
48
|
+
export type DroneTransformPatch = {
|
|
49
|
+
projectWGS84Coordinates?: DroneProjectCoordinates | null;
|
|
50
|
+
};
|
|
51
|
+
export declare enum DroneTagType {
|
|
52
|
+
AerialShot = "AerialShot"
|
|
53
|
+
}
|
|
54
|
+
export type DroneTag<T extends DroneTagType = DroneTagType> = {
|
|
55
|
+
id?: number;
|
|
56
|
+
type: T;
|
|
57
|
+
comment: string;
|
|
58
|
+
position?: Point3D;
|
|
59
|
+
cameraTransform?: DroneCameraTransform;
|
|
60
|
+
creationDate: string;
|
|
61
|
+
hyperlink?: string;
|
|
62
|
+
height?: number;
|
|
63
|
+
};
|
|
64
|
+
export type AerialShotPoint = DroneTag<DroneTagType.AerialShot>;
|
|
65
|
+
export type DroneMarkerTransform = {
|
|
66
|
+
fovAngle: number;
|
|
67
|
+
fovRadius: number;
|
|
68
|
+
heading: number;
|
|
69
|
+
height: number;
|
|
70
|
+
latitude: string;
|
|
71
|
+
longitude: string;
|
|
72
|
+
pitch: number;
|
|
73
|
+
roll: number;
|
|
74
|
+
scale: number;
|
|
75
|
+
};
|
|
76
|
+
export declare enum DroneMarkerType {
|
|
77
|
+
Default = "Default",
|
|
78
|
+
Gate = "Gate",
|
|
79
|
+
Indoor = "Indoor"
|
|
80
|
+
}
|
|
81
|
+
export type DroneMarker = {
|
|
82
|
+
type: DroneMarkerType;
|
|
83
|
+
name: string;
|
|
84
|
+
cameraExid: string;
|
|
85
|
+
transform: DroneMarkerTransform;
|
|
86
|
+
};
|
|
87
|
+
export type DroneImageryPlan = {
|
|
88
|
+
cesiumId: number;
|
|
89
|
+
uuid: string;
|
|
90
|
+
name: string;
|
|
91
|
+
alpha: number;
|
|
92
|
+
order: number;
|
|
93
|
+
};
|
|
94
|
+
export type DroneBimData = {
|
|
95
|
+
cesiumId: string | null;
|
|
96
|
+
iModelId: string | null;
|
|
97
|
+
changeSetId: string | null;
|
|
98
|
+
isItwin: boolean;
|
|
15
99
|
};
|
|
16
100
|
export declare enum DroneUrlParams {
|
|
17
101
|
Date = "date"
|
|
18
102
|
}
|
|
103
|
+
export declare enum DroneProvider {
|
|
104
|
+
Evercam = "Evercam",
|
|
105
|
+
DroneDeploy = "DroneDeploy"
|
|
106
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnprDirection, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, RoiShapeType, Timestamp } from "@evercam/api/types";
|
|
1
|
+
import { AnprDirection, AnprEvent, CameraExid, DateType, PaginatedItems, PaginationParams, ProjectExid, RoiDirection, RoiShapeType, RoiType, Timestamp, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
export declare enum GateReportDetectionType {
|
|
3
3
|
Auto = "auto",
|
|
4
4
|
Manual = "manual",
|
|
@@ -259,23 +259,19 @@ export type AnprBasedGateReportExportRequestParams = AnprExportBaseParams & {
|
|
|
259
259
|
export type LegacyAnprExportParams = AnprExportBaseParams & {
|
|
260
260
|
direction?: AnprDirection;
|
|
261
261
|
};
|
|
262
|
-
type X1 = number;
|
|
263
|
-
type Y1 = number;
|
|
264
|
-
type X2 = number;
|
|
265
|
-
type Y2 = number;
|
|
266
262
|
export type GateReportROIShape = {
|
|
267
|
-
coordinates: [
|
|
263
|
+
coordinates: TuplePoint2D[];
|
|
268
264
|
type: RoiShapeType;
|
|
269
265
|
};
|
|
270
266
|
export type GateReportROI = {
|
|
271
267
|
cameraex?: string;
|
|
272
268
|
fromDate?: string;
|
|
273
|
-
directionFilter?:
|
|
269
|
+
directionFilter?: RoiDirection;
|
|
274
270
|
id?: number;
|
|
275
271
|
insertedAt?: Timestamp;
|
|
276
272
|
isActive?: boolean;
|
|
277
273
|
name?: string;
|
|
278
|
-
roiType?:
|
|
274
|
+
roiType?: RoiType;
|
|
279
275
|
updatedAt?: Timestamp;
|
|
280
276
|
shapes?: GateReportROIShape[];
|
|
281
277
|
};
|
|
@@ -318,7 +314,7 @@ export type RoisQueryParams = {
|
|
|
318
314
|
id: number;
|
|
319
315
|
name: string;
|
|
320
316
|
fromDate: string;
|
|
321
|
-
roiType:
|
|
317
|
+
roiType: RoiType;
|
|
322
318
|
isActive: boolean;
|
|
323
319
|
directionFilter: string;
|
|
324
320
|
sort: string;
|
|
@@ -327,11 +323,10 @@ export type GateReportRoiRequestPayload = {
|
|
|
327
323
|
id: number;
|
|
328
324
|
cameraExid: string;
|
|
329
325
|
name: string;
|
|
330
|
-
roiType:
|
|
326
|
+
roiType: RoiType;
|
|
331
327
|
isActive: true;
|
|
332
328
|
fromDate: string;
|
|
333
329
|
shapes: GateReportROIShape[];
|
|
334
330
|
directionFilter: string;
|
|
335
331
|
note: string;
|
|
336
332
|
};
|
|
337
|
-
export {};
|