@evercam/api 1.0.0-bc5229297 → 1.0.0-bc621a120
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/README.md +1 -0
- package/dist/api/api/3dFirebaseApi.d.ts +60 -34
- package/dist/api/api/adminApi.d.ts +19 -15
- package/dist/api/api/aiApi.d.ts +124 -2
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +32 -12
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +21 -7
- package/dist/api/types/360.d.ts +122 -43
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +36 -9
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +23 -4
- package/dist/api/types/axios.d.ts +8 -9
- package/dist/api/types/bim.d.ts +28 -5
- package/dist/api/types/camera.d.ts +7 -10
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/copilot.d.ts +0 -3
- package/dist/api/types/detections.d.ts +3 -10
- package/dist/api/types/drone.d.ts +7 -7
- package/dist/api/types/errors.d.ts +13 -1
- package/dist/api/types/gateReport.d.ts +1 -11
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +7 -1
- package/dist/api/types/ingest.d.ts +90 -3
- package/dist/api/types/kit.d.ts +41 -51
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +41 -2
- package/dist/api/types/observationEvents.d.ts +140 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +3 -11
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +7 -0
- package/dist/api/types/recording.d.ts +5 -12
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +2 -10
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +1 -19
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +2 -13
- package/dist/api/types/user.d.ts +1 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1453 -788
- 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 +97 -33
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/package.json +4 -2
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -79,6 +79,9 @@ export declare enum AnalyticsEvent {
|
|
|
79
79
|
SettingsConnectorsRemoveVoyageControlConnection = "RemoveVoyageControl",
|
|
80
80
|
SettingsConnectorsToggleConnectorPromptDialog = "ToggleConnectorPromptDialog",
|
|
81
81
|
SettingsConnectorsToggleVoyageControlDialog = "ToggleVoyageControlDialog",
|
|
82
|
+
SettingsConnectorsConnectToHammertech = "ConnectToHammertech",
|
|
83
|
+
SettingsConnectorsRemoveHammertechConnection = "RemoveHammertech",
|
|
84
|
+
SettingsConnectorsToggleHammertechDialog = "ToggleHammertechDialog",
|
|
82
85
|
WidgetsSelectTypeThreeSixty = "Widgets-SelectType360",
|
|
83
86
|
WidgetsSelectProject = "SelectProject",
|
|
84
87
|
WidgetsSelect360Date = "Select360Date",
|
|
@@ -192,6 +195,7 @@ export declare enum AnalyticsEvent {
|
|
|
192
195
|
XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
|
|
193
196
|
XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
|
|
194
197
|
XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
|
|
198
|
+
XraySendToConnectorHammerTech = "Xray-SendToConnector-HammerTech",
|
|
195
199
|
WeatherGoBackDate = "Weather-GoBackDate",
|
|
196
200
|
WeatherGoForwardDate = "Weather-GoForwardDate",
|
|
197
201
|
WeatherReportExportFile = "ExportFile",
|
|
@@ -261,6 +265,9 @@ export declare enum AnalyticsEvent {
|
|
|
261
265
|
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
266
|
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
267
|
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
268
|
+
MarkUpToolSendToConnectorHammerTech = "MarkUpTool-SendToConnector-HammerTech",
|
|
269
|
+
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
270
|
+
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
264
271
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
265
272
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
266
273
|
RecordingsCreateClip = "CreateClip",
|
|
@@ -290,6 +297,7 @@ export declare enum AnalyticsEvent {
|
|
|
290
297
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
291
298
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
292
299
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
300
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
293
301
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
294
302
|
ThreeSixtyLockCompare = "LockCompare",
|
|
295
303
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -300,6 +308,7 @@ export declare enum AnalyticsEvent {
|
|
|
300
308
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
301
309
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
302
310
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
311
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
303
312
|
ThreeSixtySaveComment = "SaveComment",
|
|
304
313
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
305
314
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -309,13 +318,7 @@ export declare enum AnalyticsEvent {
|
|
|
309
318
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
310
319
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
311
320
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
312
|
-
|
|
313
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
314
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
315
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
316
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
317
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
318
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
321
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
319
322
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
320
323
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
321
324
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -338,7 +341,6 @@ export declare enum AnalyticsEvent {
|
|
|
338
341
|
DroneResetView = "ResetView",
|
|
339
342
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
340
343
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
341
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
342
344
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
343
345
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
344
346
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -349,6 +351,7 @@ export declare enum AnalyticsEvent {
|
|
|
349
351
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
350
352
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
351
353
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
354
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
352
355
|
DroneToggleQualityMode = "ChooseQuality",
|
|
353
356
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
354
357
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -395,6 +398,8 @@ export declare enum AnalyticsEvent {
|
|
|
395
398
|
DrawingClickHome = "ClickHome",
|
|
396
399
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
397
400
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
401
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
402
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
398
403
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
399
404
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
400
405
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -480,6 +485,7 @@ export declare enum AnalyticsEvent {
|
|
|
480
485
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
481
486
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
482
487
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
488
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
483
489
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
484
490
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
485
491
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -583,5 +589,26 @@ export declare enum AnalyticsEvent {
|
|
|
583
589
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
584
590
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
585
591
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
586
|
-
AskAICloseChat = "AskAI-CloseChat"
|
|
592
|
+
AskAICloseChat = "AskAI-CloseChat",
|
|
593
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
594
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
595
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
596
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
597
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
598
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
599
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
600
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
601
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
602
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
603
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
604
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
605
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
606
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
607
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
608
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
609
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
610
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
611
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
612
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
613
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
587
614
|
}
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -104,11 +104,40 @@ export declare enum AnprEventStatus {
|
|
|
104
104
|
export type AnprBulkUpdateRequestPayload = {
|
|
105
105
|
anprEventsIds: number[];
|
|
106
106
|
action: AnprEventStatus;
|
|
107
|
-
updatedBy: string;
|
|
108
107
|
};
|
|
109
108
|
export type AnprUpdateRequestPayload = {
|
|
110
109
|
plateNumber: string;
|
|
111
110
|
vehicleType: GateReportVehicleType;
|
|
112
111
|
direction: AnprDirection;
|
|
113
|
-
|
|
112
|
+
};
|
|
113
|
+
export declare enum AnprExtractionStatus {
|
|
114
|
+
Pending = "pending",
|
|
115
|
+
Running = "running",
|
|
116
|
+
Completed = "completed",
|
|
117
|
+
Failed = "failed"
|
|
118
|
+
}
|
|
119
|
+
export declare enum AnprExtractionSaveMode {
|
|
120
|
+
All = "all",
|
|
121
|
+
AiDbOnly = "ai_db_only",
|
|
122
|
+
ImagesOnly = "images_only"
|
|
123
|
+
}
|
|
124
|
+
export type AnprExtraction = {
|
|
125
|
+
id: number;
|
|
126
|
+
cameraId: number;
|
|
127
|
+
userId: number | null;
|
|
128
|
+
startDate: string;
|
|
129
|
+
endDate: string;
|
|
130
|
+
status: AnprExtractionStatus;
|
|
131
|
+
totalRecords: number;
|
|
132
|
+
error: string | null;
|
|
133
|
+
saveMode: AnprExtractionSaveMode;
|
|
134
|
+
startedAt: string | null;
|
|
135
|
+
completedAt: string | null;
|
|
136
|
+
insertedAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
};
|
|
139
|
+
export type AnprExtractionCreatePayload = {
|
|
140
|
+
startDate: string;
|
|
141
|
+
endDate: string;
|
|
142
|
+
saveMode?: AnprExtractionSaveMode;
|
|
114
143
|
};
|
|
@@ -33,6 +33,24 @@ export declare enum AuditLogActionType {
|
|
|
33
33
|
BIM_NOTE = "bim_note",
|
|
34
34
|
GATE_REPORT_NOTE = "gate_report_note"
|
|
35
35
|
}
|
|
36
|
+
export declare enum AuditLogEntity {
|
|
37
|
+
Cameras = "cameras",
|
|
38
|
+
Projects = "projects",
|
|
39
|
+
Layers = "layers",
|
|
40
|
+
Routers = "routers",
|
|
41
|
+
Sims = "sims",
|
|
42
|
+
Hdds = "hdds",
|
|
43
|
+
Nvr = "nvr",
|
|
44
|
+
Archives = "archives",
|
|
45
|
+
Users = "users",
|
|
46
|
+
Rois = "rois",
|
|
47
|
+
Kits = "kits",
|
|
48
|
+
Roles = "roles",
|
|
49
|
+
Tags = "tags",
|
|
50
|
+
KitsTags = "kits_tags",
|
|
51
|
+
Oauth = "oauth",
|
|
52
|
+
StorageProviders = "storage_providers"
|
|
53
|
+
}
|
|
36
54
|
export type AuditLog = {
|
|
37
55
|
id: number;
|
|
38
56
|
action: AuditLogActionType;
|
|
@@ -3,6 +3,10 @@ export declare enum RoleResourceType {
|
|
|
3
3
|
Camera = "camera",
|
|
4
4
|
Project = "project"
|
|
5
5
|
}
|
|
6
|
+
export declare enum RoleAssignmentLogAction {
|
|
7
|
+
Assign = "assign",
|
|
8
|
+
Unassign = "unassign"
|
|
9
|
+
}
|
|
6
10
|
export type RoleSubRole = {
|
|
7
11
|
resourceId: string;
|
|
8
12
|
roleId: number;
|
|
@@ -59,3 +63,70 @@ export type AuthzScopeCreatePayload = {
|
|
|
59
63
|
export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
|
|
60
64
|
export declare function isProjectRole(role: Role): role is ProjectResourceRole;
|
|
61
65
|
export declare function isCameraRole(role: Role): role is CameraResourceRole;
|
|
66
|
+
export type RoleAssignmentUserDetails = {
|
|
67
|
+
browser?: string | null;
|
|
68
|
+
device?: string | null;
|
|
69
|
+
os?: string | null;
|
|
70
|
+
country?: string | null;
|
|
71
|
+
countryCode?: string | null;
|
|
72
|
+
ip?: string | null;
|
|
73
|
+
impersonatedBy?: string | null;
|
|
74
|
+
};
|
|
75
|
+
export type RoleAssignmentRowUserDetails = RoleAssignmentUserDetails & {
|
|
76
|
+
via?: string | null;
|
|
77
|
+
inviteId?: number | null;
|
|
78
|
+
inviteEmail?: string | null;
|
|
79
|
+
};
|
|
80
|
+
export type RoleAssignmentLog = {
|
|
81
|
+
id: number;
|
|
82
|
+
action: RoleAssignmentLogAction;
|
|
83
|
+
assignerId: number | null;
|
|
84
|
+
assignerEmail: string | null;
|
|
85
|
+
assigneeId: number | null;
|
|
86
|
+
assigneeEmail: string;
|
|
87
|
+
roleId: number | null;
|
|
88
|
+
roleName: string | null;
|
|
89
|
+
previousRoleId: number | null;
|
|
90
|
+
previousRoleName: string | null;
|
|
91
|
+
scope: RoleResourceType;
|
|
92
|
+
projectExid: string | null;
|
|
93
|
+
cameraExid: string | null;
|
|
94
|
+
cameraName: string | null;
|
|
95
|
+
projectName: string | null;
|
|
96
|
+
ip: string | null;
|
|
97
|
+
userDetails: RoleAssignmentRowUserDetails | null;
|
|
98
|
+
insertedAt: string;
|
|
99
|
+
};
|
|
100
|
+
export type RoleAssignmentResourceRef = {
|
|
101
|
+
exid: string;
|
|
102
|
+
name: string | null;
|
|
103
|
+
};
|
|
104
|
+
export type RoleAssignmentLogBatch = {
|
|
105
|
+
groupId: string;
|
|
106
|
+
batchId: string | null;
|
|
107
|
+
batchSize: number;
|
|
108
|
+
assigneeId: number | null;
|
|
109
|
+
assigneeEmail: string;
|
|
110
|
+
actions: RoleAssignmentLogAction[];
|
|
111
|
+
projects: RoleAssignmentResourceRef[];
|
|
112
|
+
ip: string | null;
|
|
113
|
+
userDetails: RoleAssignmentUserDetails | null;
|
|
114
|
+
insertedAt: string;
|
|
115
|
+
children: RoleAssignmentLog[];
|
|
116
|
+
};
|
|
117
|
+
export type RoleAssignmentLogsParams = {
|
|
118
|
+
page?: number;
|
|
119
|
+
limit?: number;
|
|
120
|
+
sort?: string;
|
|
121
|
+
action?: RoleAssignmentLogAction;
|
|
122
|
+
roleId?: number;
|
|
123
|
+
roleName?: string;
|
|
124
|
+
assigneeEmail?: string;
|
|
125
|
+
assignerEmail?: string;
|
|
126
|
+
scope?: RoleResourceType;
|
|
127
|
+
projectExid?: string;
|
|
128
|
+
cameraExid?: string;
|
|
129
|
+
ip?: string;
|
|
130
|
+
from?: string;
|
|
131
|
+
to?: string;
|
|
132
|
+
};
|
|
@@ -8,8 +8,28 @@ export declare enum AutomationProvider {
|
|
|
8
8
|
export declare enum AutomationType {
|
|
9
9
|
Photo = "photo",
|
|
10
10
|
Compare = "compare",
|
|
11
|
-
GateReport = "gate_report"
|
|
11
|
+
GateReport = "gate_report",
|
|
12
|
+
Weather = "weather"
|
|
12
13
|
}
|
|
14
|
+
export declare enum AutomationWeatherReportType {
|
|
15
|
+
Forecast = "forecast",
|
|
16
|
+
History = "history"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AutomationExportFormat {
|
|
19
|
+
Pdf = "pdf",
|
|
20
|
+
Csv = "csv"
|
|
21
|
+
}
|
|
22
|
+
export declare enum AutomationWeatherDataGranularity {
|
|
23
|
+
Daily = "daily",
|
|
24
|
+
Hourly = "hourly"
|
|
25
|
+
}
|
|
26
|
+
export type AutomationWeatherConfig = {
|
|
27
|
+
reportType: AutomationWeatherReportType;
|
|
28
|
+
exportFormat: AutomationExportFormat;
|
|
29
|
+
dataGranularity?: AutomationWeatherDataGranularity;
|
|
30
|
+
selectedColumns?: string[];
|
|
31
|
+
forecastDays?: number;
|
|
32
|
+
};
|
|
13
33
|
export type AutomationCompareConfig = {
|
|
14
34
|
compareDelay: number;
|
|
15
35
|
};
|
|
@@ -22,7 +42,6 @@ export type AutomationGateReportConfig = {
|
|
|
22
42
|
fileType: string;
|
|
23
43
|
period: number;
|
|
24
44
|
columns: string[];
|
|
25
|
-
recipients: string | string[];
|
|
26
45
|
};
|
|
27
46
|
export type AutomationEmailProviderConfig = {
|
|
28
47
|
cameraExids?: CameraExid[];
|
|
@@ -51,7 +70,7 @@ export type AutomationAutodeskProviderConfig = {
|
|
|
51
70
|
folderName: string;
|
|
52
71
|
};
|
|
53
72
|
export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
|
|
54
|
-
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | {};
|
|
73
|
+
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | AutomationWeatherConfig | {};
|
|
55
74
|
export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
|
|
56
75
|
export type Automation = {
|
|
57
76
|
id?: number;
|
|
@@ -82,7 +101,7 @@ export type AutomationProviderOption = {
|
|
|
82
101
|
requiresConnection: boolean;
|
|
83
102
|
};
|
|
84
103
|
export type FormattedAutomation = {
|
|
85
|
-
cameraExids
|
|
104
|
+
cameraExids?: string;
|
|
86
105
|
name: string;
|
|
87
106
|
subject: string;
|
|
88
107
|
provider: AutomationProvider;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
2
|
import { Swr } from "@evercam/api/api/client/swr/Swr";
|
|
3
|
-
export type TimedRequest<T> = Promise<AxiosResponse<T> & {
|
|
4
|
-
duration: number;
|
|
5
|
-
error?: AxiosError;
|
|
6
|
-
}>;
|
|
7
3
|
export type AxiosEnvironment = {
|
|
8
4
|
baseUrl?: string | null;
|
|
9
5
|
stagingAiApiUrl?: string | null;
|
|
@@ -13,10 +9,10 @@ export type AxiosEnvironment = {
|
|
|
13
9
|
ingestGpuApiUrl?: string | null;
|
|
14
10
|
posthogApiUrl?: string | null;
|
|
15
11
|
posthogProjectId?: string | null;
|
|
16
|
-
posthogPrivateApiKey?: string | null;
|
|
17
12
|
firebaseVideowallUrl?: string | null;
|
|
18
13
|
weatherApiBaseUrl?: string | null;
|
|
19
14
|
evercamLabsUrl?: string | null;
|
|
15
|
+
isLabsStaging?: boolean;
|
|
20
16
|
firebaseDbLink?: string | null;
|
|
21
17
|
firebaseStorageUrl?: string | null;
|
|
22
18
|
firebaseStorageToken?: string | null;
|
|
@@ -30,15 +26,18 @@ export type AxiosEnvironment = {
|
|
|
30
26
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
31
27
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
32
28
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
29
|
+
export type RequestManager = {
|
|
30
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
31
|
+
cancelToken: (key: string) => void;
|
|
32
|
+
cancelAll: () => void;
|
|
33
|
+
};
|
|
33
34
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
34
35
|
CancelToken: CancelTokenStatic;
|
|
35
36
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
36
37
|
setToken: (token: string) => void;
|
|
37
38
|
setHeader: (headerName: string, value: any) => void;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
resetCancelTokens: () => void;
|
|
41
|
-
cancelRequests: () => void;
|
|
39
|
+
createRequestManager: () => RequestManager;
|
|
40
|
+
requestManager: RequestManager;
|
|
42
41
|
env: AxiosEnvironment;
|
|
43
42
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
44
43
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompareLogoPosition, DateType } from "@evercam/api/types";
|
|
1
|
+
import { CompareLogoPosition, DateType, PaginationParams } from "@evercam/api/types";
|
|
2
2
|
export declare enum BimModelType {
|
|
3
3
|
Architectural = "Architectural",
|
|
4
4
|
Structural = "Structural",
|
|
@@ -101,7 +101,7 @@ export type BIMLayerPostPayload = {
|
|
|
101
101
|
layerType: BIMLayerTypes;
|
|
102
102
|
startAt: DateType;
|
|
103
103
|
shapes: string;
|
|
104
|
-
zIndex
|
|
104
|
+
zIndex?: number;
|
|
105
105
|
};
|
|
106
106
|
export type BIMLayer = {
|
|
107
107
|
id: number;
|
|
@@ -137,9 +137,7 @@ export type ProcessPendingImagesBimParams = {
|
|
|
137
137
|
apiId: string;
|
|
138
138
|
apiKey: string;
|
|
139
139
|
};
|
|
140
|
-
export type BimUploadsQueryParams = {
|
|
141
|
-
page: number;
|
|
142
|
-
limit: number;
|
|
140
|
+
export type BimUploadsQueryParams = PaginationParams & {
|
|
143
141
|
projectId: string;
|
|
144
142
|
id: string;
|
|
145
143
|
uploadedBy: string;
|
|
@@ -151,3 +149,28 @@ export type BimUploadPayload = {
|
|
|
151
149
|
fileExtension: string;
|
|
152
150
|
}[];
|
|
153
151
|
};
|
|
152
|
+
export declare enum ForgeBimUploadMethod {
|
|
153
|
+
FileUpload = "file_upload",
|
|
154
|
+
AutodeskAcc = "autodesk_acc"
|
|
155
|
+
}
|
|
156
|
+
export declare enum ForgeBimFileRejectionReason {
|
|
157
|
+
InvalidType = "invalid_type",
|
|
158
|
+
ExceedsSizeLimit = "exceeds_size_limit"
|
|
159
|
+
}
|
|
160
|
+
export declare enum ForgeBimUploadStage {
|
|
161
|
+
TusUpload = "tus_upload",
|
|
162
|
+
IngestUpload = "ingest_upload"
|
|
163
|
+
}
|
|
164
|
+
export declare enum ForgeBimDialogTrigger {
|
|
165
|
+
UpdateModel = "update_model",
|
|
166
|
+
AddModel = "add_model",
|
|
167
|
+
InitialSetup = "initial_setup"
|
|
168
|
+
}
|
|
169
|
+
export type BimUpdatedWebhookPayload = {
|
|
170
|
+
eventName: "bim.updated";
|
|
171
|
+
projectId: string;
|
|
172
|
+
data: {
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
bimIdentifier: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
1
|
+
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
|
-
import { GeoPoint } from "@evercam/api/types/shared";
|
|
3
|
+
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
4
4
|
export type CameraExid = string;
|
|
5
5
|
export type CamerasByExid = EntityByExid<Camera>;
|
|
6
6
|
export type Camera = {
|
|
@@ -80,6 +80,8 @@ export type Camera = {
|
|
|
80
80
|
vendorName: string;
|
|
81
81
|
isAccessRestricted?: boolean;
|
|
82
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
84
|
+
position?: number | null;
|
|
83
85
|
};
|
|
84
86
|
export type AdminCamera = {
|
|
85
87
|
id: number;
|
|
@@ -199,17 +201,12 @@ export declare enum CameraFeatureFlag {
|
|
|
199
201
|
PpeOwlv2 = "ppe_owlv2",
|
|
200
202
|
PpeGemini = "ppe_gemini",
|
|
201
203
|
PpeYolo = "ppe_yolo",
|
|
204
|
+
PpeV2 = "ppe_v2",
|
|
202
205
|
NoLiveView = "no_live_view",
|
|
206
|
+
NoRecordings = "no_recordings",
|
|
203
207
|
Ring = "ring",
|
|
204
208
|
CloudOnly = "cloud_only"
|
|
205
209
|
}
|
|
206
|
-
export type CameraLogsRequestPayload = {
|
|
207
|
-
limit: number;
|
|
208
|
-
page: number;
|
|
209
|
-
types: string;
|
|
210
|
-
from: string;
|
|
211
|
-
to: string;
|
|
212
|
-
};
|
|
213
210
|
export type CameraUpdateRequestPayload = {
|
|
214
211
|
status?: string;
|
|
215
212
|
timezone?: string;
|
|
@@ -350,7 +347,7 @@ export type CameraCreateRequestPayload = {
|
|
|
350
347
|
isPowerScheduleActive?: boolean;
|
|
351
348
|
ptz?: boolean;
|
|
352
349
|
name: string;
|
|
353
|
-
coordinates?:
|
|
350
|
+
coordinates?: TuplePoint2D;
|
|
354
351
|
recordingFromNvr?: boolean;
|
|
355
352
|
CameraConfig: {
|
|
356
353
|
model: CameraModel;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
5
|
-
Drone = "drone"
|
|
5
|
+
Drone = "drone",
|
|
6
|
+
Timeline = "timeline"
|
|
6
7
|
}
|
|
7
8
|
export declare enum CommentsLabel {
|
|
8
9
|
Info = "Info",
|
|
@@ -11,6 +12,7 @@ export declare enum CommentsLabel {
|
|
|
11
12
|
}
|
|
12
13
|
export type CommentsRequestPayload = {
|
|
13
14
|
scope: CommentsScope;
|
|
15
|
+
cameraExid?: CameraExid;
|
|
14
16
|
};
|
|
15
17
|
export type CommentsListRequestPayload = PaginationParams & {
|
|
16
18
|
projectExid?: ProjectExid;
|
|
@@ -34,8 +36,8 @@ export type Comment = {
|
|
|
34
36
|
createdAt?: string;
|
|
35
37
|
creatorEmail?: string;
|
|
36
38
|
creatorName?: string;
|
|
37
|
-
position2d?:
|
|
38
|
-
position3d?:
|
|
39
|
+
position2d?: TuplePoint2D;
|
|
40
|
+
position3d?: TuplePoint3D;
|
|
39
41
|
context?: Record<string, unknown>;
|
|
40
42
|
canDelete?: boolean;
|
|
41
43
|
archivedAt?: string;
|
|
@@ -46,10 +48,11 @@ export type CommentCreationRequestPayload = {
|
|
|
46
48
|
toDate?: DateType;
|
|
47
49
|
timestamp?: DateType;
|
|
48
50
|
scope?: CommentsScope;
|
|
49
|
-
projectExid
|
|
51
|
+
projectExid?: ProjectExid;
|
|
50
52
|
cameraExid?: CameraExid;
|
|
51
53
|
content: string;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
+
label?: CommentsLabel;
|
|
55
|
+
position2d?: TuplePoint2D;
|
|
56
|
+
position3d?: [number, number, number];
|
|
54
57
|
context?: Record<string, unknown>;
|
|
55
58
|
};
|
|
@@ -45,9 +45,6 @@ export type CopilotMissingField<T = unknown> = {
|
|
|
45
45
|
error?: T;
|
|
46
46
|
};
|
|
47
47
|
export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
|
|
48
|
-
export type UserConversations = CopilotConversation & {
|
|
49
|
-
Message: CopilotMessage[];
|
|
50
|
-
};
|
|
51
48
|
export declare enum CopilotSocketEvent {
|
|
52
49
|
ConversationStart = "conversation:start",
|
|
53
50
|
ConversationCreated = "conversation:created",
|
|
@@ -13,15 +13,6 @@ export type SegmentsFilters = BaseDetectionsFilters & {
|
|
|
13
13
|
cameraExid: CameraExid;
|
|
14
14
|
};
|
|
15
15
|
export type BBox = number[];
|
|
16
|
-
export type SelectedObjectPath = {
|
|
17
|
-
label: string;
|
|
18
|
-
trackId: string;
|
|
19
|
-
paths: Array<{
|
|
20
|
-
timestamp: number;
|
|
21
|
-
center: [number, number];
|
|
22
|
-
bbox: BBox;
|
|
23
|
-
}>;
|
|
24
|
-
};
|
|
25
16
|
export type Label = DetectionLabel | PpeLabel;
|
|
26
17
|
export type Detection = {
|
|
27
18
|
bbox: BBox;
|
|
@@ -111,6 +102,7 @@ export declare enum PpeLabel {
|
|
|
111
102
|
Helmet = "helmet",
|
|
112
103
|
HighVisibilityVest = "high-visibility-vest",
|
|
113
104
|
SafetyGlasses = "safety-glasses",
|
|
105
|
+
Gloves = "gloves",
|
|
114
106
|
Person = "person",
|
|
115
107
|
Man = "man",
|
|
116
108
|
Woman = "woman"
|
|
@@ -120,5 +112,6 @@ export declare enum DetectionModel {
|
|
|
120
112
|
Yolov11 = 2,
|
|
121
113
|
Yolov112 = 3,
|
|
122
114
|
GroundingDino = 4,
|
|
123
|
-
Owlv2 = 5
|
|
115
|
+
Owlv2 = 5,
|
|
116
|
+
PpeV2 = 6
|
|
124
117
|
}
|
|
@@ -6,20 +6,19 @@ export type DroneCameraTransform = {
|
|
|
6
6
|
right: Point3D;
|
|
7
7
|
};
|
|
8
8
|
export type DroneModel = {
|
|
9
|
-
cesiumId:
|
|
10
|
-
cesiumId2D:
|
|
9
|
+
cesiumId: number;
|
|
10
|
+
cesiumId2D: number;
|
|
11
11
|
date: string;
|
|
12
12
|
cesiumPointCloudId: string;
|
|
13
13
|
cesiumGausianSplatId: string;
|
|
14
14
|
pointSize: string;
|
|
15
|
-
maximumScreenSpaceError:
|
|
15
|
+
maximumScreenSpaceError: number;
|
|
16
16
|
link: string;
|
|
17
17
|
trueIndex: number;
|
|
18
18
|
};
|
|
19
19
|
export type DroneProjectTransform = {
|
|
20
20
|
initialCameraTransform?: DroneCameraTransform;
|
|
21
21
|
initial2DCameraTransform?: DroneCameraTransform;
|
|
22
|
-
blackListIds?: string;
|
|
23
22
|
markers?: Record<string, DroneMarker>;
|
|
24
23
|
imageryPlans?: Record<string, DroneImageryPlan>;
|
|
25
24
|
bimData?: DroneBimData;
|
|
@@ -29,10 +28,11 @@ export type DroneProjectTransform = {
|
|
|
29
28
|
};
|
|
30
29
|
export type DroneProjectData = {
|
|
31
30
|
models?: DroneModel[];
|
|
31
|
+
transform?: DroneProjectTransform;
|
|
32
32
|
integrationType?: DroneProvider;
|
|
33
33
|
origin?: string;
|
|
34
|
-
params?:
|
|
35
|
-
pointSize?:
|
|
34
|
+
params?: string;
|
|
35
|
+
pointSize?: number;
|
|
36
36
|
};
|
|
37
37
|
export type DroneProjectDataPatch = {
|
|
38
38
|
models?: Record<number, Partial<DroneModel>>;
|
|
@@ -56,7 +56,7 @@ export type DroneTag<T extends DroneTagType = DroneTagType> = {
|
|
|
56
56
|
type: T;
|
|
57
57
|
comment: string;
|
|
58
58
|
position?: Point3D;
|
|
59
|
-
cameraTransform?:
|
|
59
|
+
cameraTransform?: string;
|
|
60
60
|
creationDate: string;
|
|
61
61
|
hyperlink?: string;
|
|
62
62
|
height?: number;
|
|
@@ -23,7 +23,8 @@ export declare enum ErrorCode {
|
|
|
23
23
|
UnauthorizedError = 401,
|
|
24
24
|
ForbiddenError = 403,
|
|
25
25
|
NotFoundError = 404,
|
|
26
|
-
ConflictError = 409
|
|
26
|
+
ConflictError = 409,
|
|
27
|
+
GoneError = 410
|
|
27
28
|
}
|
|
28
29
|
export declare enum EvercamApiErrorCode {
|
|
29
30
|
IntegrationError = "INTEGRATION_ERROR",
|
|
@@ -46,4 +47,15 @@ type _EvercamApiError = {
|
|
|
46
47
|
innerError?: _EvercamApiError;
|
|
47
48
|
};
|
|
48
49
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
50
|
+
export type AppError = {
|
|
51
|
+
statusCode?: number;
|
|
52
|
+
message?: string;
|
|
53
|
+
redirect?: {
|
|
54
|
+
url?: string;
|
|
55
|
+
label?: string;
|
|
56
|
+
delay?: number;
|
|
57
|
+
};
|
|
58
|
+
withSupportMessage?: boolean;
|
|
59
|
+
isWidget?: boolean;
|
|
60
|
+
};
|
|
49
61
|
export {};
|
|
@@ -166,12 +166,6 @@ export type GateReportEvent = {
|
|
|
166
166
|
truckType: GateReportVehicleType;
|
|
167
167
|
thumbnailUrl?: string;
|
|
168
168
|
};
|
|
169
|
-
export type GateReportArrivedEvent = GateReportEvent & {
|
|
170
|
-
eventType: GateReportEventType.Arrived;
|
|
171
|
-
};
|
|
172
|
-
export type GateReportLeftEvent = GateReportEvent & {
|
|
173
|
-
eventType: GateReportEventType.Left;
|
|
174
|
-
};
|
|
175
169
|
export type GateReportVerifiedDay = {
|
|
176
170
|
id: number;
|
|
177
171
|
day: string;
|
|
@@ -188,7 +182,6 @@ export type BoundingBox = {
|
|
|
188
182
|
ymax: number;
|
|
189
183
|
ymin: number;
|
|
190
184
|
};
|
|
191
|
-
export type EventsCountsByVehicleType = Record<GateReportVehicleType, number>;
|
|
192
185
|
export type EventsCount = {
|
|
193
186
|
in: number;
|
|
194
187
|
out: number;
|
|
@@ -203,10 +196,6 @@ export type MonthlyEventCount = EventsCount & {
|
|
|
203
196
|
export type DailyEventCount = EventsCount & {
|
|
204
197
|
day: string;
|
|
205
198
|
};
|
|
206
|
-
export type HourlyEventCount = {
|
|
207
|
-
hour: string;
|
|
208
|
-
count: number;
|
|
209
|
-
};
|
|
210
199
|
export type EventCountRequestPayload = {
|
|
211
200
|
vehicleTypes?: GateReportVehicleType[];
|
|
212
201
|
isPublic?: boolean;
|
|
@@ -249,6 +238,7 @@ export type AnprExportBaseParams = {
|
|
|
249
238
|
toDate?: string;
|
|
250
239
|
camerasExid?: CameraExid[];
|
|
251
240
|
isPublic?: boolean;
|
|
241
|
+
columns?: string[];
|
|
252
242
|
};
|
|
253
243
|
export type EventsExportRequestParameters = AnprExportBaseParams & {
|
|
254
244
|
eventType: GateReportEventType;
|