@evercam/api 1.0.0-bc158a880 → 1.0.0-bc5229297
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 +8 -1
- package/dist/api/api/aiApi.d.ts +2 -2
- package/dist/api/api/authzApi.d.ts +1 -2
- package/dist/api/api/evercamApi.d.ts +10 -2
- package/dist/api/api/ingestApi.d.ts +44 -43
- package/dist/api/types/360.d.ts +55 -50
- package/dist/api/types/analytics.d.ts +9 -14
- package/dist/api/types/authz.d.ts +1 -0
- package/dist/api/types/axios.d.ts +3 -3
- package/dist/api/types/camera.d.ts +10 -23
- package/dist/api/types/drone.d.ts +92 -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 +14 -1
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/planner.d.ts +98 -0
- package/dist/api/types/project.d.ts +8 -3
- package/dist/api/types/recording.d.ts +3 -1
- 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/snapshots.d.ts +35 -3
- package/dist/api/types/timelapse.d.ts +9 -1
- package/dist/api/types/user.d.ts +0 -1
- package/dist/index.js +1240 -710
- 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 +48 -6
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/package.json +2 -2
|
@@ -282,17 +282,6 @@ export declare enum AnalyticsEvent {
|
|
|
282
282
|
SharingSortBy = "SortBy",
|
|
283
283
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
284
284
|
ThreeSixtyGallery = "Gallery",
|
|
285
|
-
ThreeSixtyGalleryFilterAssetTypes = "Gallery-FilterAssetTypes",
|
|
286
|
-
ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
|
|
287
|
-
ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
|
|
288
|
-
ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
|
|
289
|
-
ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
|
|
290
|
-
ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
|
|
291
|
-
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
292
|
-
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
293
|
-
ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
|
|
294
|
-
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
295
|
-
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
296
285
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
297
286
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
298
287
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -358,6 +347,8 @@ export declare enum AnalyticsEvent {
|
|
|
358
347
|
DroneToggleBimCompareTool = "ToggleBimCompareTool",
|
|
359
348
|
DroneToggleFullScreen = "ToggleFullScreen",
|
|
360
349
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
350
|
+
DroneTogglePointCloud = "TogglePointCloud",
|
|
351
|
+
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
361
352
|
DroneToggleQualityMode = "ChooseQuality",
|
|
362
353
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
363
354
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -372,6 +363,7 @@ export declare enum AnalyticsEvent {
|
|
|
372
363
|
DroneUnarchiveComment = "UnarchiveComment",
|
|
373
364
|
DroneArchiveComment = "ArchiveComment",
|
|
374
365
|
DroneDeleteComment = "DeleteComment",
|
|
366
|
+
DroneSaveAerialShot = "SaveAerialShot",
|
|
375
367
|
PlannerAddCameraClick = "AddCameraClick",
|
|
376
368
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
377
369
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -403,7 +395,6 @@ export declare enum AnalyticsEvent {
|
|
|
403
395
|
DrawingClickHome = "ClickHome",
|
|
404
396
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
405
397
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
406
|
-
DrawingToggleFilter = "ToggleFilter",
|
|
407
398
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
408
399
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
409
400
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -447,10 +438,15 @@ export declare enum AnalyticsEvent {
|
|
|
447
438
|
ProjectSettingsCameraSettingsSaveCameraName = "SaveCameraName",
|
|
448
439
|
ProjectSettingsMembersApplyCamerasFilter = "ApplyCamerasFilter",
|
|
449
440
|
ProjectSettingsMembersApplySearchFilter = "ApplySearchFilter",
|
|
441
|
+
ProjectSettingsMembersViewRoleInfo = "ViewRoleInfo",
|
|
442
|
+
ProjectSettingsMembersViewMemberInfo = "ViewMemberInfo",
|
|
443
|
+
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
444
|
+
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
445
|
+
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
450
446
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
447
|
+
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
451
448
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
452
449
|
ProjectSettingsMembersEditCameraAccess = "EditCameraAccess",
|
|
453
|
-
ProjectSettingsMembersFiltersClick = "FiltersClick",
|
|
454
450
|
ProjectSettingsMembersShareCamera = "ShareCamera",
|
|
455
451
|
ProjectSettingsMembersToggleAddDialog = "ToggleAddDialog",
|
|
456
452
|
ProjectSettingsOverviewOpenInMapView = "OpenInMapView",
|
|
@@ -539,7 +535,6 @@ export declare enum AnalyticsEvent {
|
|
|
539
535
|
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
540
536
|
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
541
537
|
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
542
|
-
AutomationsFiltersClicked = "FiltersClicked",
|
|
543
538
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
544
539
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
545
540
|
AutomationTypeName = "TypeName",
|
|
@@ -8,10 +8,9 @@ export type AxiosEnvironment = {
|
|
|
8
8
|
baseUrl?: string | null;
|
|
9
9
|
stagingAiApiUrl?: string | null;
|
|
10
10
|
aiApiUrl?: string | null;
|
|
11
|
-
|
|
11
|
+
ingestDroneApi?: string | null;
|
|
12
|
+
ingest360Api?: string | null;
|
|
12
13
|
ingestGpuApiUrl?: string | null;
|
|
13
|
-
ingestGpuV3ApiUrl?: string | null;
|
|
14
|
-
ingestGpuV4ApiUrl?: string | null;
|
|
15
14
|
posthogApiUrl?: string | null;
|
|
16
15
|
posthogProjectId?: string | null;
|
|
17
16
|
posthogPrivateApiKey?: string | null;
|
|
@@ -21,6 +20,7 @@ export type AxiosEnvironment = {
|
|
|
21
20
|
firebaseDbLink?: string | null;
|
|
22
21
|
firebaseStorageUrl?: string | null;
|
|
23
22
|
firebaseStorageToken?: string | null;
|
|
23
|
+
forgeTokenServerUrl?: string | null;
|
|
24
24
|
snapshotsURL?: string | null;
|
|
25
25
|
app?: string | null;
|
|
26
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;
|
|
@@ -17,6 +13,7 @@ export type Camera = {
|
|
|
17
13
|
status: string;
|
|
18
14
|
storageDuration: string;
|
|
19
15
|
};
|
|
16
|
+
liveViewFrequency: number | null;
|
|
20
17
|
createdAt: string;
|
|
21
18
|
description: string | null;
|
|
22
19
|
discoverable: boolean;
|
|
@@ -45,10 +42,7 @@ export type Camera = {
|
|
|
45
42
|
isPublic: boolean;
|
|
46
43
|
lastOnlineAt: string;
|
|
47
44
|
lastPolledAt: string;
|
|
48
|
-
location:
|
|
49
|
-
lat: number;
|
|
50
|
-
lng: number;
|
|
51
|
-
};
|
|
45
|
+
location: GeoPoint;
|
|
52
46
|
modelId: string;
|
|
53
47
|
modelName: string;
|
|
54
48
|
name: string;
|
|
@@ -111,10 +105,7 @@ export type AdminCamera = {
|
|
|
111
105
|
isPublic: boolean;
|
|
112
106
|
sharedWithConstruction?: boolean;
|
|
113
107
|
timezone: string | null;
|
|
114
|
-
location?:
|
|
115
|
-
lat: number;
|
|
116
|
-
lng: number;
|
|
117
|
-
} | null;
|
|
108
|
+
location?: GeoPoint | null;
|
|
118
109
|
fovAngle?: number | null;
|
|
119
110
|
fovRadius?: number | null;
|
|
120
111
|
heading?: number | null;
|
|
@@ -154,6 +145,7 @@ export type AdminCamera = {
|
|
|
154
145
|
cloudRecordingStatus?: string | null;
|
|
155
146
|
cloudRecordingSchedule?: ScheduleLowercase | null;
|
|
156
147
|
cloudRecordingStorageDuration?: number | null;
|
|
148
|
+
liveViewFrequency?: number | null;
|
|
157
149
|
anprSources?: string[];
|
|
158
150
|
storageProviders?: string[];
|
|
159
151
|
featureFlags?: CameraFeatureFlag[];
|
|
@@ -165,10 +157,7 @@ export type AdminCamera = {
|
|
|
165
157
|
};
|
|
166
158
|
export type CameraMapMarker = {
|
|
167
159
|
isOnline: boolean;
|
|
168
|
-
location:
|
|
169
|
-
lat: number;
|
|
170
|
-
lng: number;
|
|
171
|
-
};
|
|
160
|
+
location: GeoPoint;
|
|
172
161
|
needFov: boolean;
|
|
173
162
|
rotation: number;
|
|
174
163
|
fovAngle: number;
|
|
@@ -207,6 +196,9 @@ export declare enum CameraFeatureFlag {
|
|
|
207
196
|
Segmentation = "segmentation",
|
|
208
197
|
SegmentationAutoLabelling = "segmentation_auto_labelling",
|
|
209
198
|
PpeMonitoring = "ppe_monitoring",
|
|
199
|
+
PpeOwlv2 = "ppe_owlv2",
|
|
200
|
+
PpeGemini = "ppe_gemini",
|
|
201
|
+
PpeYolo = "ppe_yolo",
|
|
210
202
|
NoLiveView = "no_live_view",
|
|
211
203
|
Ring = "ring",
|
|
212
204
|
CloudOnly = "cloud_only"
|
|
@@ -253,6 +245,7 @@ export type CameraUpdateRequestPayload = {
|
|
|
253
245
|
fovRadius?: number;
|
|
254
246
|
featureFlags: CameraFeatureFlag[];
|
|
255
247
|
isAccessRestricted?: boolean;
|
|
248
|
+
liveViewFrequency?: number | null;
|
|
256
249
|
};
|
|
257
250
|
export type CamerasResponsePayload = {
|
|
258
251
|
cameras?: Camera[];
|
|
@@ -317,12 +310,6 @@ export declare enum CameraModel {
|
|
|
317
310
|
Other = "other",
|
|
318
311
|
Ring = "ring"
|
|
319
312
|
}
|
|
320
|
-
export type DroneCameraTransform = {
|
|
321
|
-
position: Cartesian3;
|
|
322
|
-
direction: Cartesian3;
|
|
323
|
-
up: Cartesian3;
|
|
324
|
-
right: Cartesian3;
|
|
325
|
-
};
|
|
326
313
|
export type Footage = {
|
|
327
314
|
cameraExid: string;
|
|
328
315
|
cameraName: string;
|
|
@@ -1,17 +1,106 @@
|
|
|
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;
|
|
4
11
|
date: string;
|
|
5
12
|
cesiumPointCloudId: string;
|
|
13
|
+
cesiumGausianSplatId: string;
|
|
6
14
|
pointSize: string;
|
|
7
15
|
maximumScreenSpaceError: string;
|
|
8
16
|
link: string;
|
|
9
17
|
trueIndex: number;
|
|
10
18
|
};
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
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;
|
|
14
99
|
};
|
|
15
100
|
export declare enum DroneUrlParams {
|
|
16
101
|
Date = "date"
|
|
17
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 {};
|
|
@@ -18,7 +18,12 @@ export declare enum IngestVersions {
|
|
|
18
18
|
V1 = "v1",
|
|
19
19
|
V2 = "v2",
|
|
20
20
|
V3 = "v3",
|
|
21
|
-
V4 = "v4"
|
|
21
|
+
V4 = "v4",
|
|
22
|
+
V5 = "v5"
|
|
23
|
+
}
|
|
24
|
+
export declare enum IngestTypes {
|
|
25
|
+
Drone = "drone",
|
|
26
|
+
ThreeSixty = "360"
|
|
22
27
|
}
|
|
23
28
|
export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
|
|
24
29
|
projectId: string;
|
|
@@ -65,6 +70,14 @@ export type DroneUploadUpdateRequestPayload = {
|
|
|
65
70
|
title: string;
|
|
66
71
|
fileExtension: string;
|
|
67
72
|
}[];
|
|
73
|
+
aerialShots: {
|
|
74
|
+
url: string;
|
|
75
|
+
title: string;
|
|
76
|
+
fileExtension: string;
|
|
77
|
+
gpsLatitude: string;
|
|
78
|
+
gpsLongitude: string;
|
|
79
|
+
gpsAltitude: string;
|
|
80
|
+
}[];
|
|
68
81
|
projectName: string;
|
|
69
82
|
};
|
|
70
83
|
export type CalculateMeasuringOperationRequestPayload = {
|
package/dist/api/types/map.d.ts
CHANGED
|
@@ -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,34 @@
|
|
|
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
|
+
};
|
|
18
|
+
export type Coordinate = [number, number];
|
|
19
|
+
export type PolygonPath = Coordinate[];
|
|
20
|
+
export type PolygonCoordinates = PolygonPath[];
|
|
21
|
+
export interface GeoJSONPolygon {
|
|
22
|
+
type: "Polygon";
|
|
23
|
+
coordinates: PolygonCoordinates;
|
|
24
|
+
}
|
|
25
|
+
export declare enum PlannerUrlParams {
|
|
26
|
+
SitePlanId = "site_plan_id",
|
|
27
|
+
IsNewSitePlan = "is_new_site_plan",
|
|
28
|
+
IsBoundsMode = "is_bounds_mode",
|
|
29
|
+
ProjectPosition = "project_position",
|
|
30
|
+
DealId = "deal_id"
|
|
31
|
+
}
|
|
1
32
|
export declare enum EDistortImageModes {
|
|
2
33
|
FreeRotate = "freeRotate",
|
|
3
34
|
Lock = "lock",
|
|
@@ -33,3 +64,70 @@ export declare enum ERoles {
|
|
|
33
64
|
Admin = "admin",
|
|
34
65
|
User = "user"
|
|
35
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
|
+
};
|
|
104
|
+
export interface IDrawControl {
|
|
105
|
+
_toolbars: {
|
|
106
|
+
draw: {
|
|
107
|
+
_activeMode: {
|
|
108
|
+
handler: {
|
|
109
|
+
disable(): void;
|
|
110
|
+
completeShape(): void;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
_modes: {
|
|
114
|
+
polygon: {
|
|
115
|
+
handler: {
|
|
116
|
+
enable(): void;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
edit: {
|
|
122
|
+
_modes: {
|
|
123
|
+
edit: {
|
|
124
|
+
handler: {
|
|
125
|
+
enable(): void;
|
|
126
|
+
disable(): void;
|
|
127
|
+
save(): void;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
}
|
|
@@ -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 = {
|
|
@@ -163,6 +165,7 @@ export type ProjectRole = {
|
|
|
163
165
|
};
|
|
164
166
|
export type ProjectMember = {
|
|
165
167
|
id: string;
|
|
168
|
+
key?: string;
|
|
166
169
|
email: string;
|
|
167
170
|
fullname: string;
|
|
168
171
|
lastSeenAt?: string;
|
|
@@ -172,7 +175,9 @@ export type ProjectMember = {
|
|
|
172
175
|
resourceId: string;
|
|
173
176
|
roleId: number;
|
|
174
177
|
}>;
|
|
175
|
-
company?:
|
|
178
|
+
company?: {
|
|
179
|
+
name: string;
|
|
180
|
+
} | null;
|
|
176
181
|
};
|
|
177
182
|
export type ProjectInvite = {
|
|
178
183
|
id?: string;
|
|
@@ -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",
|
|
@@ -119,5 +120,6 @@ export declare enum VpnServer {
|
|
|
119
120
|
WireGuard7 = "WireGuard7",
|
|
120
121
|
WireGuard8 = "WireGuard8",
|
|
121
122
|
WireGuard9 = "WireGuard9",
|
|
122
|
-
WireGuard10 = "WireGuard10"
|
|
123
|
+
WireGuard10 = "WireGuard10",
|
|
124
|
+
WgHub = "WgHub"
|
|
123
125
|
}
|
package/dist/api/types/roi.d.ts
CHANGED
|
@@ -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
|
+
};
|