@evercam/api 1.0.0-e405b2c39 → 1.0.0-e424632fd
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/adminApi.d.ts +67 -37
- package/dist/api/api/aiApi.d.ts +57 -53
- package/dist/api/api/authzApi.d.ts +23 -16
- package/dist/api/api/client/axios.d.ts +1 -1
- package/dist/api/api/client/swr/Swr.d.ts +1 -1
- package/dist/api/api/evercamApi.d.ts +110 -71
- package/dist/api/api/evercamLabsApi.d.ts +4 -5
- package/dist/api/api/exNvrApi.d.ts +1 -1
- package/dist/api/api/ingestApi.d.ts +99 -47
- package/dist/api/api/ptzApi.d.ts +9 -4
- package/dist/api/api/videoWallApi.d.ts +2 -2
- package/dist/api/api/weatherApi.d.ts +2 -2
- package/dist/api/types/360.d.ts +4 -2
- package/dist/api/types/aconex.d.ts +9 -9
- package/dist/api/types/admin.d.ts +51 -0
- package/dist/api/types/analytics.d.ts +84 -48
- package/dist/api/types/anpr.d.ts +19 -2
- package/dist/api/types/auditLogs.d.ts +1 -1
- package/dist/api/types/authz.d.ts +44 -6
- package/dist/api/types/autodesk.d.ts +7 -7
- package/dist/api/types/automation.d.ts +37 -3
- package/dist/api/types/axios.d.ts +10 -6
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +87 -73
- package/dist/api/types/comments.d.ts +4 -8
- package/dist/api/types/company.d.ts +42 -1
- package/dist/api/types/compare.d.ts +20 -5
- package/dist/api/types/connector.d.ts +3 -5
- package/dist/api/types/coolify.d.ts +18 -2
- package/dist/api/types/copilot.d.ts +11 -6
- package/dist/api/types/detections.d.ts +20 -8
- package/dist/api/types/drone.d.ts +1 -0
- package/dist/api/types/gateReport.d.ts +45 -57
- package/dist/api/types/hdd.d.ts +26 -1
- package/dist/api/types/index.d.ts +6 -1
- package/dist/api/types/ingest.d.ts +98 -2
- package/dist/api/types/kit.d.ts +14 -7
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +32 -2
- package/dist/api/types/oauth.d.ts +62 -0
- package/dist/api/types/planner.d.ts +44 -0
- package/dist/api/types/posthog.d.ts +15 -0
- package/dist/api/types/procore.d.ts +13 -6
- package/dist/api/types/progressPhoto.d.ts +6 -2
- package/dist/api/types/project.d.ts +95 -21
- package/dist/api/types/recording.d.ts +3 -3
- package/dist/api/types/recycleBin.d.ts +1 -1
- package/dist/api/types/ring.d.ts +53 -0
- package/dist/api/types/router.d.ts +1 -1
- package/dist/api/types/shared.d.ts +16 -4
- package/dist/api/types/shares.d.ts +1 -1
- package/dist/api/types/sim.d.ts +6 -6
- package/dist/api/types/siteAnalytics.d.ts +79 -39
- package/dist/api/types/smartSeach.d.ts +5 -0
- package/dist/api/types/snapshots.d.ts +36 -4
- package/dist/api/types/storageProvider.d.ts +19 -0
- package/dist/api/types/storyblok.d.ts +40 -0
- package/dist/api/types/streaming.d.ts +3 -3
- package/dist/api/types/tag.d.ts +1 -1
- package/dist/api/types/time.d.ts +0 -18
- package/dist/api/types/timelapse.d.ts +12 -5
- package/dist/api/types/user.d.ts +101 -31
- package/dist/api/types/videoWall.d.ts +21 -21
- package/dist/api/types/weather.d.ts +75 -11
- package/dist/api/types/widget.d.ts +71 -12
- package/dist/api/types/xweather.d.ts +4 -4
- package/dist/index.js +858 -668
- 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 +115 -13
- package/dist/shared/types/imagePlayer.d.ts +1 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/rbac.d.ts +67 -0
- package/dist/shared/types/timeline.d.ts +2 -1
- package/package.json +2 -2
- package/dist/api/types/storageServers.d.ts +0 -4
package/dist/api/types/360.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DateType } from "
|
|
1
|
+
import { DateType } from "@evercam/api/types/time";
|
|
2
2
|
export type _360CameraParams = {
|
|
3
3
|
azimuthAngle: number;
|
|
4
4
|
polarAngle: number;
|
|
@@ -151,7 +151,8 @@ export type _360ProjectJsonResponse = {
|
|
|
151
151
|
[key: string]: any;
|
|
152
152
|
};
|
|
153
153
|
export type MobileCaptureSnapshot = {
|
|
154
|
-
id: string;
|
|
154
|
+
id: string | number;
|
|
155
|
+
projectId?: string;
|
|
155
156
|
uploadedBy: string;
|
|
156
157
|
updatedAt: string;
|
|
157
158
|
assetType: string;
|
|
@@ -219,6 +220,7 @@ export type DrawingsRequestPayload = {
|
|
|
219
220
|
page?: number;
|
|
220
221
|
limit?: number;
|
|
221
222
|
paginate?: boolean;
|
|
223
|
+
withAsset?: boolean;
|
|
222
224
|
};
|
|
223
225
|
export type GenerateFloorPayload = {
|
|
224
226
|
overlay?: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type AconexUserProject = {
|
|
2
2
|
id: number;
|
|
3
3
|
name: string;
|
|
4
4
|
shortName: string;
|
|
@@ -6,8 +6,8 @@ export type AconexUserProjectsResponsePayload = Array<{
|
|
|
6
6
|
endDate: string;
|
|
7
7
|
active: boolean;
|
|
8
8
|
hidden: boolean;
|
|
9
|
-
}
|
|
10
|
-
export type
|
|
9
|
+
};
|
|
10
|
+
export type AconexDocumentSchema = {
|
|
11
11
|
dataType: AconexDocumentDataType;
|
|
12
12
|
identifier: AconexIdentifiers;
|
|
13
13
|
fieldName: string;
|
|
@@ -17,18 +17,18 @@ export type AconexDocumentSchemaResponsePayload = Array<{
|
|
|
17
17
|
id: string;
|
|
18
18
|
value: string;
|
|
19
19
|
}>;
|
|
20
|
-
}
|
|
21
|
-
export type
|
|
20
|
+
};
|
|
21
|
+
export type AconexDocumentTypeSchema = {
|
|
22
22
|
dataType: AconexDocumentDataType;
|
|
23
|
-
identifier:
|
|
23
|
+
identifier: AconexIdentifiers;
|
|
24
24
|
fieldName: string;
|
|
25
25
|
modifiedFieldName?: string;
|
|
26
|
-
mandatoryStatus:
|
|
26
|
+
mandatoryStatus: AconexMandatoryStatus;
|
|
27
27
|
specifications?: Array<AconexFieldSpecification>;
|
|
28
|
-
}
|
|
28
|
+
};
|
|
29
29
|
export type AconexDocumentSchemaField = {
|
|
30
30
|
dataType: AconexDocumentDataType;
|
|
31
|
-
identifier: AconexIdentifiers
|
|
31
|
+
identifier: AconexIdentifiers;
|
|
32
32
|
schemaValues?: Array<{
|
|
33
33
|
id: string;
|
|
34
34
|
value: string;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { JsonObject } from "@evercam/api/types";
|
|
2
|
+
export type WithZohoParams = {
|
|
3
|
+
with_zoho?: boolean;
|
|
4
|
+
};
|
|
5
|
+
export type AdminSearchProjectItem = {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
status: string;
|
|
9
|
+
exid: string;
|
|
10
|
+
featureFlags: string[];
|
|
11
|
+
};
|
|
12
|
+
export type AdminSearchItem = AdminSearchProjectItem | JsonObject;
|
|
13
|
+
export type AdminInviteRole = {
|
|
14
|
+
id: number;
|
|
15
|
+
name: string;
|
|
16
|
+
resourceType: string;
|
|
17
|
+
};
|
|
18
|
+
export type AdminInviteAssigner = {
|
|
19
|
+
id: number;
|
|
20
|
+
email: string;
|
|
21
|
+
fullname: string;
|
|
22
|
+
};
|
|
23
|
+
export type AdminInviteAuthContextSubRole = {
|
|
24
|
+
resourceId: string;
|
|
25
|
+
roleId: number;
|
|
26
|
+
};
|
|
27
|
+
export type AdminInviteAuthContext = {
|
|
28
|
+
permissions: string[] | null;
|
|
29
|
+
subRoles: AdminInviteAuthContextSubRole[];
|
|
30
|
+
hasOverride: boolean;
|
|
31
|
+
};
|
|
32
|
+
export type AdminInvite = {
|
|
33
|
+
id: number;
|
|
34
|
+
message: string | null;
|
|
35
|
+
status: number;
|
|
36
|
+
email: string;
|
|
37
|
+
key: string;
|
|
38
|
+
updatedAt: string;
|
|
39
|
+
role: AdminInviteRole;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
resourceId: string;
|
|
42
|
+
assigner: AdminInviteAssigner;
|
|
43
|
+
sentCount: number;
|
|
44
|
+
lastSentAt: string;
|
|
45
|
+
authContext: AdminInviteAuthContext;
|
|
46
|
+
statusName: string;
|
|
47
|
+
};
|
|
48
|
+
export type ZohoDeskTicketSearchResponse = {
|
|
49
|
+
data: JsonObject[];
|
|
50
|
+
count: number;
|
|
51
|
+
};
|
|
@@ -41,6 +41,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
41
41
|
DroneInfo = "DroneInfo",
|
|
42
42
|
ThreeSixtyInfo = "360Info",
|
|
43
43
|
BimCompareInfo = "BimCompareInfo",
|
|
44
|
+
TimelineInfo = "TimelineInfo",
|
|
44
45
|
WeatherReport = "WeatherReport",
|
|
45
46
|
PpeReport = "PpeReport",
|
|
46
47
|
SmartSearch = "SmartSearch",
|
|
@@ -185,6 +186,12 @@ export declare enum AnalyticsEvent {
|
|
|
185
186
|
XarySelectLatestDate = "Xray-SelectLatestDate",
|
|
186
187
|
XarySelectOldestDate = "Xray-SelectOldestDate",
|
|
187
188
|
XraySendToConnector = "Xray-SendToConnector",
|
|
189
|
+
XraySendToConnectorSent = "Xray-SendToConnector-Sent",
|
|
190
|
+
XraySendToConnectorProcore = "Xray-SendToConnector-Procore",
|
|
191
|
+
XraySendToConnectorProcorePhotos = "Xray-SendToConnector-Procore-Photos",
|
|
192
|
+
XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
|
|
193
|
+
XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
|
|
194
|
+
XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
|
|
188
195
|
WeatherGoBackDate = "Weather-GoBackDate",
|
|
189
196
|
WeatherGoForwardDate = "Weather-GoForwardDate",
|
|
190
197
|
WeatherReportExportFile = "ExportFile",
|
|
@@ -248,11 +255,12 @@ export declare enum AnalyticsEvent {
|
|
|
248
255
|
MarkUpToolSaveToMediaHub = "MarkUpTool-SaveToMediaHub",
|
|
249
256
|
MarkUpToolDownloadAs = "MarkUpTool-DownloadAs",
|
|
250
257
|
MarkUpToolSendToConnector = "MarkUpTool-SendToConnector",
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
258
|
+
MarkUpToolSendToConnectorSent = "MarkUpTool-SendToConnector-Sent",
|
|
259
|
+
MarkUpToolSendToConnectorProcore = "MarkUpTool-SendToConnector-Procore",
|
|
260
|
+
MarkUpToolSendToConnectorProcorePhotos = "MarkUpTool-SendToConnector-Procore-Photos",
|
|
261
|
+
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
|
+
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
|
+
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
256
264
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
257
265
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
258
266
|
RecordingsCreateClip = "CreateClip",
|
|
@@ -282,7 +290,6 @@ export declare enum AnalyticsEvent {
|
|
|
282
290
|
ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
|
|
283
291
|
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
284
292
|
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
285
|
-
ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
|
|
286
293
|
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
287
294
|
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
288
295
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
@@ -324,7 +331,7 @@ export declare enum AnalyticsEvent {
|
|
|
324
331
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
325
332
|
DroneAreaToolClick = "AreaTool-Click",
|
|
326
333
|
DroneChangeDate = "ChangeDate",
|
|
327
|
-
|
|
334
|
+
DroneChooseCommentType = "ChooseCommentType",
|
|
328
335
|
DroneClickCameraLiveView = "ClickCameraLiveView",
|
|
329
336
|
DroneClickCameraMarker = "ClickCameraMarker",
|
|
330
337
|
DroneCompareToolClick = "CompareTool-Click",
|
|
@@ -339,16 +346,19 @@ export declare enum AnalyticsEvent {
|
|
|
339
346
|
DroneOpenHelpPanel = "OpenHelpPanel",
|
|
340
347
|
DroneOpenImageViewer = "OpenImageViewer",
|
|
341
348
|
DroneResetView = "ResetView",
|
|
342
|
-
DroneSaveTag = "SaveTag",
|
|
343
349
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
344
350
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
345
351
|
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
346
|
-
|
|
352
|
+
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
353
|
+
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
354
|
+
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
347
355
|
DroneShareLink = "ShareLink",
|
|
348
|
-
|
|
356
|
+
DroneCommentsToolClick = "CommentsTool-Click",
|
|
349
357
|
DroneToggleBimCompareTool = "ToggleBimCompareTool",
|
|
350
358
|
DroneToggleFullScreen = "ToggleFullScreen",
|
|
351
359
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
360
|
+
DroneTogglePointCloud = "TogglePointCloud",
|
|
361
|
+
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
352
362
|
DroneToggleQualityMode = "ChooseQuality",
|
|
353
363
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
354
364
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -359,6 +369,11 @@ export declare enum AnalyticsEvent {
|
|
|
359
369
|
DroneZoomIn = "ZoomIn",
|
|
360
370
|
DroneZoomOut = "ZoomOut",
|
|
361
371
|
DroneUploadSkipping = "SkipImageUpload",// To be removed later
|
|
372
|
+
DroneSaveComment = "SaveComment",
|
|
373
|
+
DroneUnarchiveComment = "UnarchiveComment",
|
|
374
|
+
DroneArchiveComment = "ArchiveComment",
|
|
375
|
+
DroneDeleteComment = "DeleteComment",
|
|
376
|
+
DroneSaveAerialShot = "SaveAerialShot",
|
|
362
377
|
PlannerAddCameraClick = "AddCameraClick",
|
|
363
378
|
PlannerAddSitePlanDrawingClick = "AddSitePlanDrawingClick",
|
|
364
379
|
PlannerAddSitePlanClick = "AddSitePlanClick",
|
|
@@ -390,7 +405,6 @@ export declare enum AnalyticsEvent {
|
|
|
390
405
|
DrawingClickHome = "ClickHome",
|
|
391
406
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
392
407
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
393
|
-
DrawingToggleFilter = "ToggleFilter",
|
|
394
408
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
395
409
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
396
410
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -418,37 +432,6 @@ export declare enum AnalyticsEvent {
|
|
|
418
432
|
TimelapseGoToMediaHub = "GoToMediaHub",
|
|
419
433
|
TimelapseToggleUploadLogoDialog = "ToggleUploadLogoDialog",
|
|
420
434
|
TimelapseUploadLogo = "UploadLogo",
|
|
421
|
-
ProgressPhotoCancelPause = "ProgressPhoto-CancelPause",
|
|
422
|
-
ProgressPhotoCancelResume = "ProgressPhoto-CancelResume",
|
|
423
|
-
ProgressPhotoCancelDelete = "ProgressPhoto-CancelDelete",
|
|
424
|
-
ProgressPhotoCreate = "ProgressPhoto-Create",
|
|
425
|
-
ProgressPhotoDelete = "ProgressPhoto-Delete",
|
|
426
|
-
ProgressPhotoEdit = "ProgressPhoto-Edit",
|
|
427
|
-
ProgressPhotoEditCamerasFilter = "ProgressPhoto-EditCamerasFilter",
|
|
428
|
-
ProgressPhotoEditDaysFilter = "ProgressPhoto-EditDaysFilter",
|
|
429
|
-
ProgressPhotoEditProjectsFilter = "ProgressPhoto-EditProjectsFilter",
|
|
430
|
-
ProgressPhotoEditSearchFilter = "ProgressPhoto-EditSearchFilter",
|
|
431
|
-
ProgressPhotoEditStatusFilter = "ProgressPhoto-EditStatusFilter",
|
|
432
|
-
ProgressPhotoEditUsersFilter = "ProgressPhoto-EditUsersFilter",
|
|
433
|
-
ProgressPhotoFiltersClicked = "ProgressPhoto-FiltersClicked",
|
|
434
|
-
ProgressPhotoPause = "ProgressPhoto-Pause",
|
|
435
|
-
ProgressPhotoResume = "ProgressPhoto-Resume",
|
|
436
|
-
ProgressPhotoResumeDelete = "ProgressPhoto-ResumeDelete",
|
|
437
|
-
ProgressPhotoSelectType = "ProgressPhoto-SelectType",
|
|
438
|
-
ProgressPhotoSelectCameras = "ProgressPhoto-SelectCameras",
|
|
439
|
-
ProgressPhotoToggleSelectAllOnlineCameras = "ProgressPhoto-ToggleSelectAllOnlineCameras",
|
|
440
|
-
ProgressPhotoToggleSelectAllCameras = "ProgressPhoto-ToggleSelectAllCameras",
|
|
441
|
-
ProgressPhotoClearAllCameras = "ProgressPhoto-ClearAllCameras",
|
|
442
|
-
ProgressPhotoEditCamerasSearchFilter = "ProgressPhoto-EditCamerasSearchFilter",
|
|
443
|
-
ProgressPhotoSelectDays = "ProgressPhoto-SelectDays",
|
|
444
|
-
ProgressPhotoSelectMember = "ProgressPhoto-SelectMember",
|
|
445
|
-
ProgressPhotoSelectProvider = "ProgressPhoto-SelectProvider",
|
|
446
|
-
ProgressPhotoSelectTime = "ProgressPhoto-SelectTime",
|
|
447
|
-
ProgressPhotoSelectTimezone = "ProgressPhoto-SelectTimezone",
|
|
448
|
-
ProgressPhotoEditSelectedCameras = "ProgressPhoto-EditSelectedCameras",
|
|
449
|
-
ProgressPhotoToggleCreateDialog = "ProgressPhoto-ToggleCreateDialog",
|
|
450
|
-
ProgressPhotoToggleEditDialog = "ProgressPhoto-ToggleEditDialog",
|
|
451
|
-
ProgressPhotoUnsubscribeUser = "ProgressPhoto-UnsubscribeUser",
|
|
452
435
|
MapViewChooseSatellite = "MapView-ChooseSatellite",
|
|
453
436
|
MapViewChooseTerrain = "MapView-ChooseMap",
|
|
454
437
|
MapViewClickCameraLink = "MapView-ClickCameraLink",
|
|
@@ -465,10 +448,15 @@ export declare enum AnalyticsEvent {
|
|
|
465
448
|
ProjectSettingsCameraSettingsSaveCameraName = "SaveCameraName",
|
|
466
449
|
ProjectSettingsMembersApplyCamerasFilter = "ApplyCamerasFilter",
|
|
467
450
|
ProjectSettingsMembersApplySearchFilter = "ApplySearchFilter",
|
|
451
|
+
ProjectSettingsMembersViewRoleInfo = "ViewRoleInfo",
|
|
452
|
+
ProjectSettingsMembersViewMemberInfo = "ViewMemberInfo",
|
|
453
|
+
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
454
|
+
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
455
|
+
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
468
456
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
457
|
+
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
469
458
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
470
459
|
ProjectSettingsMembersEditCameraAccess = "EditCameraAccess",
|
|
471
|
-
ProjectSettingsMembersFiltersClick = "FiltersClick",
|
|
472
460
|
ProjectSettingsMembersShareCamera = "ShareCamera",
|
|
473
461
|
ProjectSettingsMembersToggleAddDialog = "ToggleAddDialog",
|
|
474
462
|
ProjectSettingsOverviewOpenInMapView = "OpenInMapView",
|
|
@@ -520,8 +508,29 @@ export declare enum AnalyticsEvent {
|
|
|
520
508
|
ExportPdf = "ExportPdf",
|
|
521
509
|
ExportCsv = "ExportCsv",
|
|
522
510
|
FilterCameras = "FilterCameras",
|
|
511
|
+
ProgressPhotoCancelPause = "ProgressPhoto-CancelPause",
|
|
512
|
+
ProgressPhotoCancelResume = "ProgressPhoto-CancelResume",
|
|
513
|
+
ProgressPhotoCancelDelete = "ProgressPhoto-CancelDelete",
|
|
514
|
+
ProgressPhotoCreate = "ProgressPhoto-Create",
|
|
515
|
+
ProgressPhotoDelete = "ProgressPhoto-Delete",
|
|
516
|
+
ProgressPhotoEdit = "ProgressPhoto-Edit",
|
|
517
|
+
ProgressPhotoPause = "ProgressPhoto-Pause",
|
|
518
|
+
ProgressPhotoResume = "ProgressPhoto-Resume",
|
|
519
|
+
ProgressPhotoResumeDelete = "ProgressPhoto-ResumeDelete",
|
|
520
|
+
ProgressPhotoSelectType = "ProgressPhoto-SelectType",
|
|
521
|
+
ProgressPhotoSelectCameras = "ProgressPhoto-SelectCameras",
|
|
522
|
+
ProgressPhotoToggleSelectAllOnlineCameras = "ProgressPhoto-ToggleSelectAllOnlineCameras",
|
|
523
|
+
ProgressPhotoToggleSelectAllCameras = "ProgressPhoto-ToggleSelectAllCameras",
|
|
524
|
+
ProgressPhotoClearAllCameras = "ProgressPhoto-ClearAllCameras",
|
|
525
|
+
ProgressPhotoEditCamerasSearchFilter = "ProgressPhoto-EditCamerasSearchFilter",
|
|
526
|
+
ProgressPhotoSelectDays = "ProgressPhoto-SelectDays",
|
|
527
|
+
ProgressPhotoSelectMember = "ProgressPhoto-SelectMember",
|
|
528
|
+
ProgressPhotoSelectProvider = "ProgressPhoto-SelectProvider",
|
|
529
|
+
ProgressPhotoSelectTime = "ProgressPhoto-SelectTime",
|
|
530
|
+
ProgressPhotoSelectTimezone = "ProgressPhoto-SelectTimezone",
|
|
531
|
+
ProgressPhotoUnsubscribeUser = "ProgressPhoto-UnsubscribeUser",
|
|
523
532
|
CompareSelectProvider = "Compare-SelectProvider",
|
|
524
|
-
|
|
533
|
+
CompareSelectCameras = "Compare-SelectCameras",
|
|
525
534
|
CompareEdit = "Compare-Edit",
|
|
526
535
|
CompareSelectTimezone = "Compare-SelectTimezone",
|
|
527
536
|
CompareSelectMember = "Compare-SelectMember",
|
|
@@ -529,12 +538,32 @@ export declare enum AnalyticsEvent {
|
|
|
529
538
|
CompareToggleSelectAllCameras = "Compare-ToggleSelectAllCameras",
|
|
530
539
|
CompareClearAllCameras = "Compare-ClearAllCameras",
|
|
531
540
|
CompareEditCamerasSearchFilter = "Compare-EditCamerasSearchFilter",
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
541
|
+
CompareSelectType = "Compare-SelectType",
|
|
542
|
+
CompareCreate = "Compare-Create",
|
|
543
|
+
AutomationsEditSearchFilter = "EditSearchFilter",
|
|
544
|
+
AutomationsEditStatusFilter = "EditStatusFilter",
|
|
545
|
+
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
546
|
+
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
547
|
+
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
535
548
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
536
549
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
537
550
|
AutomationTypeName = "TypeName",
|
|
551
|
+
GateReportSelectType = "GateReport-SelectType",
|
|
552
|
+
GateReportToggleSelectAllCameras = "GateReport-ToggleSelectAllCameras",
|
|
553
|
+
GateReportToggleSelectAllOnlineCameras = "GateReport-ToggleSelectAllOnlineCameras",
|
|
554
|
+
GateReportToggleClearAllCameras = "GateReport-ClearAllCameras",
|
|
555
|
+
GateReportEditCamerasSearchFilter = "GateReport-EditCamerasSearchFilter",
|
|
556
|
+
GateReportSelectDays = "GateReport-SelectDays",
|
|
557
|
+
GateReportSelectTime = "GateReport-SelectTime",
|
|
558
|
+
GateReportSelectTimezone = "GateReport-SelectTimezone",
|
|
559
|
+
GateReportSelectVehicleTypes = "GateReport-SelectVehicleTypes",
|
|
560
|
+
GateReportSelectColumn = "GateReport-SelectColumn",
|
|
561
|
+
GateReportSelectPeriod = "GateReport-SelectPeriod",
|
|
562
|
+
GateReportSelectExportType = "GateReport-SelectExportType",
|
|
563
|
+
GateReportSelectMember = "GateReport-SelectMember",
|
|
564
|
+
GateReportSelectCameras = "GateReport-SelectCameras",
|
|
565
|
+
GateReportCreate = "GateReport-Create",
|
|
566
|
+
GateReportEdit = "GateReport-Edit",
|
|
538
567
|
CompareSelectDays = "Compare-SelectDays",
|
|
539
568
|
CompareSelectDelay = "Compare-SelectDelay",
|
|
540
569
|
CompareSelectTime = "Compare-SelectTime",
|
|
@@ -557,5 +586,12 @@ export declare enum AnalyticsEvent {
|
|
|
557
586
|
SmartSearchSaveQuery = "SmartSearch-SaveQuery",
|
|
558
587
|
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
559
588
|
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
560
|
-
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage"
|
|
589
|
+
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage",
|
|
590
|
+
AskAIClickAskAI = "AskAI-ClickAskAI",
|
|
591
|
+
AskAIClickExpand = "AskAI-ClickExpand",
|
|
592
|
+
AskAIClickCollapse = "AskAI-ClickCollapse",
|
|
593
|
+
AskAIClickVoice = "AskAI-ClickVoice",
|
|
594
|
+
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
595
|
+
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
596
|
+
AskAICloseChat = "AskAI-CloseChat"
|
|
561
597
|
}
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePrecision } from "
|
|
1
|
+
import { BoundingBox, CameraExid, DateType, GateReportVehicleType, TimelinePrecision } from "@evercam/api/types";
|
|
2
2
|
export type AnprQueryParams = {
|
|
3
3
|
page?: number;
|
|
4
4
|
limit?: number;
|
|
@@ -62,7 +62,13 @@ export type AnprEvent = {
|
|
|
62
62
|
votedVehicleType: GateReportVehicleType | string;
|
|
63
63
|
roiId?: number;
|
|
64
64
|
captureTime: DateType;
|
|
65
|
-
|
|
65
|
+
contextThumbnailUrl: string;
|
|
66
|
+
isPublic: boolean;
|
|
67
|
+
label: string;
|
|
68
|
+
mp4Url: string;
|
|
69
|
+
plateThumbnailUrl: string;
|
|
70
|
+
thumbnailUrl: string;
|
|
71
|
+
metadata: {
|
|
66
72
|
evercamMetadata?: {
|
|
67
73
|
anpr?: {
|
|
68
74
|
bbox: BoundingBox;
|
|
@@ -95,3 +101,14 @@ export declare enum AnprEventStatus {
|
|
|
95
101
|
IsDuplicate = "is_duplicate",
|
|
96
102
|
NotDuplicate = "not_duplicate"
|
|
97
103
|
}
|
|
104
|
+
export type AnprBulkUpdateRequestPayload = {
|
|
105
|
+
anprEventsIds: number[];
|
|
106
|
+
action: AnprEventStatus;
|
|
107
|
+
updatedBy: string;
|
|
108
|
+
};
|
|
109
|
+
export type AnprUpdateRequestPayload = {
|
|
110
|
+
plateNumber: string;
|
|
111
|
+
vehicleType: GateReportVehicleType;
|
|
112
|
+
direction: AnprDirection;
|
|
113
|
+
updatedBy: string;
|
|
114
|
+
};
|
|
@@ -3,16 +3,22 @@ export declare enum RoleResourceType {
|
|
|
3
3
|
Camera = "camera",
|
|
4
4
|
Project = "project"
|
|
5
5
|
}
|
|
6
|
+
export type RoleSubRole = {
|
|
7
|
+
resourceId: string;
|
|
8
|
+
roleId: number;
|
|
9
|
+
roleName?: string;
|
|
10
|
+
permissions?: string[];
|
|
11
|
+
};
|
|
6
12
|
export type Role = {
|
|
7
13
|
id: number;
|
|
8
14
|
name: string;
|
|
9
|
-
|
|
15
|
+
description?: string | null;
|
|
16
|
+
resource?: string;
|
|
10
17
|
resourceType: RoleResourceType;
|
|
18
|
+
resourceId?: string | null;
|
|
11
19
|
permissions: string[];
|
|
12
|
-
subRoles?:
|
|
13
|
-
|
|
14
|
-
roleId: number;
|
|
15
|
-
}>;
|
|
20
|
+
subRoles?: RoleSubRole[];
|
|
21
|
+
isDefault?: boolean;
|
|
16
22
|
};
|
|
17
23
|
export type ProjectResourceRole = Role & {
|
|
18
24
|
resourceType: RoleResourceType.Project;
|
|
@@ -20,4 +26,36 @@ export type ProjectResourceRole = Role & {
|
|
|
20
26
|
export type CameraResourceRole = Omit<Role, "subRoles"> & {
|
|
21
27
|
resourceType: RoleResourceType.Camera;
|
|
22
28
|
};
|
|
23
|
-
export type ProjectRoleRequestPayload =
|
|
29
|
+
export type ProjectRoleRequestPayload = {
|
|
30
|
+
name: string;
|
|
31
|
+
permissions: string[];
|
|
32
|
+
subRoles?: RoleSubRole[];
|
|
33
|
+
};
|
|
34
|
+
export type AuthzRoleUser = {
|
|
35
|
+
email: string;
|
|
36
|
+
resourceId: string;
|
|
37
|
+
};
|
|
38
|
+
export type AuthzUserRolesResponse = {
|
|
39
|
+
roles: Role[];
|
|
40
|
+
};
|
|
41
|
+
export type AuthzScopePermission = {
|
|
42
|
+
id: number;
|
|
43
|
+
action: string;
|
|
44
|
+
exid: string;
|
|
45
|
+
};
|
|
46
|
+
export type AuthzScope = {
|
|
47
|
+
id: number;
|
|
48
|
+
name: string;
|
|
49
|
+
description: string | null;
|
|
50
|
+
permissions: AuthzScopePermission[];
|
|
51
|
+
app: string;
|
|
52
|
+
exid: string;
|
|
53
|
+
};
|
|
54
|
+
export type AuthzScopeCreatePayload = {
|
|
55
|
+
name: string;
|
|
56
|
+
description?: string;
|
|
57
|
+
permissions: string[];
|
|
58
|
+
};
|
|
59
|
+
export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
|
|
60
|
+
export declare function isProjectRole(role: Role): role is ProjectResourceRole;
|
|
61
|
+
export declare function isCameraRole(role: Role): role is CameraResourceRole;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type AutodeskUserHub = {
|
|
2
2
|
text: string;
|
|
3
3
|
value: string;
|
|
4
|
-
}
|
|
5
|
-
export type
|
|
4
|
+
};
|
|
5
|
+
export type AutodeskProject = {
|
|
6
6
|
text: string;
|
|
7
7
|
value: string;
|
|
8
|
-
}
|
|
9
|
-
export type
|
|
8
|
+
};
|
|
9
|
+
export type AutodeskFolder = {
|
|
10
10
|
text: string;
|
|
11
11
|
value: string;
|
|
12
12
|
allowedFileType: string;
|
|
13
13
|
allowedFolderType: string;
|
|
14
|
-
children: Array<
|
|
14
|
+
children: Array<AutodeskFolder>;
|
|
15
15
|
parentName?: string;
|
|
16
16
|
};
|
|
17
|
-
export type
|
|
17
|
+
export type AutodeskSnapshot = {
|
|
18
18
|
projectId: string;
|
|
19
19
|
folderId: string;
|
|
20
20
|
accFileType: string;
|
|
@@ -7,14 +7,27 @@ export declare enum AutomationProvider {
|
|
|
7
7
|
}
|
|
8
8
|
export declare enum AutomationType {
|
|
9
9
|
Photo = "photo",
|
|
10
|
-
Compare = "compare"
|
|
10
|
+
Compare = "compare",
|
|
11
|
+
GateReport = "gate_report"
|
|
11
12
|
}
|
|
12
13
|
export type AutomationCompareConfig = {
|
|
13
14
|
compareDelay: number;
|
|
14
15
|
};
|
|
15
|
-
export type
|
|
16
|
+
export type AutomationEmailRecipient = string | {
|
|
17
|
+
email: string;
|
|
18
|
+
};
|
|
19
|
+
export type AutomationGateReportConfig = {
|
|
20
|
+
projectExid: string;
|
|
21
|
+
vehicleTypes: string[];
|
|
22
|
+
fileType: string;
|
|
23
|
+
period: number;
|
|
24
|
+
columns: string[];
|
|
16
25
|
recipients: string | string[];
|
|
17
26
|
};
|
|
27
|
+
export type AutomationEmailProviderConfig = {
|
|
28
|
+
cameraExids?: CameraExid[];
|
|
29
|
+
recipients: string | AutomationEmailRecipient[];
|
|
30
|
+
};
|
|
18
31
|
export type AutomationProcoreProviderConfig = {
|
|
19
32
|
companyId: number;
|
|
20
33
|
companyName: string;
|
|
@@ -38,9 +51,10 @@ export type AutomationAutodeskProviderConfig = {
|
|
|
38
51
|
folderName: string;
|
|
39
52
|
};
|
|
40
53
|
export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
|
|
41
|
-
export type AutomationOptionsConfig = AutomationCompareConfig | {};
|
|
54
|
+
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | {};
|
|
42
55
|
export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
|
|
43
56
|
export type Automation = {
|
|
57
|
+
id?: number;
|
|
44
58
|
cameraExids: CameraExid[];
|
|
45
59
|
name: string;
|
|
46
60
|
subject?: string;
|
|
@@ -59,3 +73,23 @@ export declare enum AutomationConfigStep {
|
|
|
59
73
|
Settings = "settings",
|
|
60
74
|
Destination = "destination"
|
|
61
75
|
}
|
|
76
|
+
export type AutomationProviderOption = {
|
|
77
|
+
labelTranslationKey: string;
|
|
78
|
+
descriptionTranslationKey: string;
|
|
79
|
+
value: AutomationProvider;
|
|
80
|
+
icon: string;
|
|
81
|
+
iconSize?: string;
|
|
82
|
+
requiresConnection: boolean;
|
|
83
|
+
};
|
|
84
|
+
export type FormattedAutomation = {
|
|
85
|
+
cameraExids: string;
|
|
86
|
+
name: string;
|
|
87
|
+
subject: string;
|
|
88
|
+
provider: AutomationProvider;
|
|
89
|
+
type: AutomationType;
|
|
90
|
+
config: Partial<AutomationProviderConfig> & Partial<AutomationOptionsConfig>;
|
|
91
|
+
notifyDays: string;
|
|
92
|
+
notifyTime: string;
|
|
93
|
+
timezone: string;
|
|
94
|
+
isPaused: boolean;
|
|
95
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
|
-
import { Swr } from "
|
|
2
|
+
import { Swr } from "@evercam/api/api/client/swr/Swr";
|
|
3
3
|
export type TimedRequest<T> = Promise<AxiosResponse<T> & {
|
|
4
4
|
duration: number;
|
|
5
5
|
error?: AxiosError;
|
|
@@ -8,8 +8,8 @@ export type AxiosEnvironment = {
|
|
|
8
8
|
baseUrl?: string | null;
|
|
9
9
|
stagingAiApiUrl?: string | null;
|
|
10
10
|
aiApiUrl?: string | null;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
ingestDroneApi?: string | null;
|
|
12
|
+
ingest360Api?: string | null;
|
|
13
13
|
ingestGpuApiUrl?: string | null;
|
|
14
14
|
posthogApiUrl?: string | null;
|
|
15
15
|
posthogProjectId?: string | null;
|
|
@@ -31,7 +31,7 @@ export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) =>
|
|
|
31
31
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
32
32
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
33
33
|
CancelToken: CancelTokenStatic;
|
|
34
|
-
isCancel: (value: AxiosResponse | AxiosError |
|
|
34
|
+
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
35
35
|
setToken: (token: string) => void;
|
|
36
36
|
setHeader: (headerName: string, value: any) => void;
|
|
37
37
|
generateCancelTokenSource: () => CancelTokenSource;
|
|
@@ -50,6 +50,10 @@ export type SwrResponse<T> = {
|
|
|
50
50
|
cachedValue: ResponseValue<T>;
|
|
51
51
|
freshPromise: Promise<ResponseValue<T>>;
|
|
52
52
|
};
|
|
53
|
+
export type SwrRequestConfig<T> = Omit<AxiosRequestConfig, "onSwrHit" | "onSwrRefresh"> & {
|
|
54
|
+
onSwrHit?: (data: T) => unknown;
|
|
55
|
+
onSwrRefresh?: (data: T) => unknown;
|
|
56
|
+
};
|
|
53
57
|
declare module "axios" {
|
|
54
58
|
interface AxiosRequestConfig {
|
|
55
59
|
raw?: boolean;
|
|
@@ -59,8 +63,8 @@ declare module "axios" {
|
|
|
59
63
|
startTime: number;
|
|
60
64
|
};
|
|
61
65
|
swr?: boolean;
|
|
62
|
-
onSwrHit?:
|
|
63
|
-
onSwrRefresh?:
|
|
66
|
+
onSwrHit?: (data: any) => unknown;
|
|
67
|
+
onSwrRefresh?: (data: any) => unknown;
|
|
64
68
|
onSwrError?: (error: Error) => unknown;
|
|
65
69
|
}
|
|
66
70
|
}
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompareLogoPosition, DateType } from "@evercam/api/types";
|
|
2
2
|
export declare enum BimModelType {
|
|
3
3
|
Architectural = "Architectural",
|
|
4
4
|
Structural = "Structural",
|
|
@@ -48,14 +48,15 @@ export type BimCompareExportRequestPayload = {
|
|
|
48
48
|
layerId?: number;
|
|
49
49
|
maskId?: number;
|
|
50
50
|
evercamWatermark?: boolean;
|
|
51
|
+
logo?: CompareLogoPosition;
|
|
51
52
|
};
|
|
52
53
|
export type BimLayerResponsePayload = {
|
|
53
54
|
id: number;
|
|
54
55
|
name: string;
|
|
55
|
-
insertedAt:
|
|
56
|
-
updatedAt:
|
|
56
|
+
insertedAt: string;
|
|
57
|
+
updatedAt: string;
|
|
57
58
|
shapes: string;
|
|
58
|
-
startAt:
|
|
59
|
+
startAt: string;
|
|
59
60
|
};
|
|
60
61
|
export declare enum BimUploadStatus {
|
|
61
62
|
Initial = 0,
|
|
@@ -78,13 +79,18 @@ export type BimCreationPayload = {
|
|
|
78
79
|
};
|
|
79
80
|
export declare enum BIMLayerTypes {
|
|
80
81
|
Mask = "mask",
|
|
82
|
+
BimMask = "bim_mask",
|
|
81
83
|
MeasuringGrid = "measuring_grid",
|
|
82
84
|
BimArchitectural = "bim_architectural",
|
|
83
85
|
BimStructural = "bim_structural",
|
|
84
86
|
Bim4D = "bim_4d",
|
|
85
87
|
BimMep = "bim_mep",
|
|
86
88
|
RecordingsTag = "recordings_tag",
|
|
87
|
-
Milestone = "milestone"
|
|
89
|
+
Milestone = "milestone",
|
|
90
|
+
ForgeBimArchitectural = "forge_bim_architectural",
|
|
91
|
+
ForgeBimStructural = "forge_bim_structural",
|
|
92
|
+
ForgeBim4D = "forge_bim_4d",
|
|
93
|
+
ForgeBimMep = "forge_bim_mep"
|
|
88
94
|
}
|
|
89
95
|
export type BimLayersQueryParams = {
|
|
90
96
|
layerType: BIMLayerTypes;
|