@evercam/api 1.0.0-ff3128bbe → 1.0.0-ff34bc64c
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 +203 -15
- package/dist/api/api/adminApi.d.ts +32 -21
- package/dist/api/api/aiApi.d.ts +127 -4
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +48 -25
- package/dist/api/api/evercamLabsApi.d.ts +5 -16
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +41 -29
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +171 -83
- package/dist/api/types/admin.d.ts +1 -1
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +49 -33
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +19 -4
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +10 -9
- package/dist/api/types/bim.d.ts +29 -6
- package/dist/api/types/camera.d.ts +38 -47
- package/dist/api/types/comments.d.ts +16 -7
- package/dist/api/types/company.d.ts +1 -2
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +3 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/errors.d.ts +18 -2
- package/dist/api/types/gateReport.d.ts +7 -22
- 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 +9 -2
- package/dist/api/types/ingest.d.ts +177 -27
- package/dist/api/types/kit.d.ts +44 -101
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +7 -2
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +17 -4
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +24 -22
- 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 +127 -0
- package/dist/api/types/siteView.d.ts +78 -0
- 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 +4 -8
- package/dist/api/types/user.d.ts +16 -4
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -1
- package/dist/index.js +2169 -915
- 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 +247 -49
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +66 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +4 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/dist/shared/types/report.d.ts +101 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +4 -2
- package/dist/api/types/copilot.d.ts +0 -162
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum AnalyticsEventPageId {
|
|
2
2
|
Timeline = "Timeline",
|
|
3
|
-
|
|
3
|
+
Chat = "Chat",
|
|
4
4
|
Recordings = "Recordings",
|
|
5
5
|
Liveview = "LiveView",
|
|
6
6
|
Compare = "Compare",
|
|
@@ -60,12 +60,12 @@ export declare enum AnalyticsEvent {
|
|
|
60
60
|
MarkUpTool = "MarkUpTool-Toggle",
|
|
61
61
|
Comment = "Comment-Toggle",
|
|
62
62
|
Compare = "Compare-Toggle",
|
|
63
|
-
Copilot = "Copilot-Toggle",
|
|
64
63
|
DownloadMediaOpen = "DownloadMedia-Open",
|
|
65
64
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
66
65
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
67
66
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
68
67
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
68
|
+
SettingsAccountRevokeAuthorizedApp = "RevokeAuthorizedApp",
|
|
69
69
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
70
70
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
71
71
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
@@ -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",
|
|
@@ -153,12 +156,6 @@ export declare enum AnalyticsEvent {
|
|
|
153
156
|
TimelineCompareSlide = "Compare-Slide",
|
|
154
157
|
TimelineSelectMilestoneItem = "Timeline-SelectMilestoneItem",
|
|
155
158
|
TimelineSelectTimestamp = "Timeline-SelectTimestamp",
|
|
156
|
-
CopilotSendMessage = "Copilot-SendMessage",
|
|
157
|
-
CopilotClickTimestamp = "Copilot-ClickTimestamp",
|
|
158
|
-
CopilotRegenerate = "Copilot-Regenerate",
|
|
159
|
-
CopilotError = "Copilot-Error",
|
|
160
|
-
CopilotNavigation = "Copilot-Navigation",
|
|
161
|
-
CopilotToggle = "Copilot-Toggle",
|
|
162
159
|
GroupsVisibilityMobileCapture = "GroupsVisibility-MobileCapture",
|
|
163
160
|
GroupsVisibilityAnpr = "GroupsVisibility-Anpr",
|
|
164
161
|
GroupsVisibilityComments = "GroupsVisibility-Comments",
|
|
@@ -192,6 +189,7 @@ export declare enum AnalyticsEvent {
|
|
|
192
189
|
XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
|
|
193
190
|
XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
|
|
194
191
|
XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
|
|
192
|
+
XraySendToConnectorHammerTech = "Xray-SendToConnector-HammerTech",
|
|
195
193
|
WeatherGoBackDate = "Weather-GoBackDate",
|
|
196
194
|
WeatherGoForwardDate = "Weather-GoForwardDate",
|
|
197
195
|
WeatherReportExportFile = "ExportFile",
|
|
@@ -261,6 +259,9 @@ export declare enum AnalyticsEvent {
|
|
|
261
259
|
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
260
|
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
261
|
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
262
|
+
MarkUpToolSendToConnectorHammerTech = "MarkUpTool-SendToConnector-HammerTech",
|
|
263
|
+
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
264
|
+
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
264
265
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
265
266
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
266
267
|
RecordingsCreateClip = "CreateClip",
|
|
@@ -282,16 +283,6 @@ export declare enum AnalyticsEvent {
|
|
|
282
283
|
SharingSortBy = "SortBy",
|
|
283
284
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
284
285
|
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
|
-
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
294
|
-
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
295
286
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
296
287
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
297
288
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -300,6 +291,7 @@ export declare enum AnalyticsEvent {
|
|
|
300
291
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
301
292
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
302
293
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
294
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
303
295
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
304
296
|
ThreeSixtyLockCompare = "LockCompare",
|
|
305
297
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -310,6 +302,7 @@ export declare enum AnalyticsEvent {
|
|
|
310
302
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
311
303
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
312
304
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
305
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
313
306
|
ThreeSixtySaveComment = "SaveComment",
|
|
314
307
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
315
308
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -319,13 +312,7 @@ export declare enum AnalyticsEvent {
|
|
|
319
312
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
320
313
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
321
314
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
322
|
-
|
|
323
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
324
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
325
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
326
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
327
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
328
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
315
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
329
316
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
330
317
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
331
318
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -348,7 +335,6 @@ export declare enum AnalyticsEvent {
|
|
|
348
335
|
DroneResetView = "ResetView",
|
|
349
336
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
350
337
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
351
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
352
338
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
353
339
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
354
340
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -359,6 +345,7 @@ export declare enum AnalyticsEvent {
|
|
|
359
345
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
360
346
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
361
347
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
348
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
362
349
|
DroneToggleQualityMode = "ChooseQuality",
|
|
363
350
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
364
351
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -405,6 +392,8 @@ export declare enum AnalyticsEvent {
|
|
|
405
392
|
DrawingClickHome = "ClickHome",
|
|
406
393
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
407
394
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
395
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
396
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
408
397
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
409
398
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
410
399
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -453,6 +442,7 @@ export declare enum AnalyticsEvent {
|
|
|
453
442
|
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
454
443
|
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
455
444
|
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
445
|
+
ProjectSettingsMembersResendInvite = "ResendInvite",
|
|
456
446
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
457
447
|
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
458
448
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
@@ -490,6 +480,7 @@ export declare enum AnalyticsEvent {
|
|
|
490
480
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
491
481
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
492
482
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
483
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
493
484
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
494
485
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
495
486
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -587,11 +578,36 @@ export declare enum AnalyticsEvent {
|
|
|
587
578
|
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
588
579
|
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
589
580
|
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage",
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
581
|
+
ChatToggleSidebarMode = "Chat-ToggleSidebarMode",
|
|
582
|
+
ChatSendMessage = "Chat-SendMessage",
|
|
583
|
+
ChatClickStarter = "Chat-ClickStarter",
|
|
584
|
+
ChatStopResponse = "Chat-StopResponse",
|
|
585
|
+
ChatCopyAnswer = "Chat-CopyAnswer",
|
|
586
|
+
ChatDownloadPdf = "Chat-DownloadPdf",
|
|
587
|
+
ChatOpenCamera = "Chat-OpenCamera",
|
|
588
|
+
ChatNewConversation = "Chat-NewConversation",
|
|
589
|
+
ChatOpenConversation = "Chat-OpenConversation",
|
|
590
|
+
ChatRenameConversation = "Chat-RenameConversation",
|
|
591
|
+
ChatDeleteConversation = "Chat-DeleteConversation",
|
|
592
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
593
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
594
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
595
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
596
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
597
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
598
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
599
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
600
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
601
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
602
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
603
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
604
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
605
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
606
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
607
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
608
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
609
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
610
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
611
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
612
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
597
613
|
}
|
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
|
};
|
|
@@ -12,7 +12,6 @@ export declare enum AuditLogActionType {
|
|
|
12
12
|
WAITING_FOR_SITE_VISIT = "waiting_for_site_visit",
|
|
13
13
|
SMS = "sms",
|
|
14
14
|
CUSTOM = "custom",
|
|
15
|
-
PUBLIC_NOTE = "public_note",
|
|
16
15
|
SIM = "sim",
|
|
17
16
|
LOGIN = "login",
|
|
18
17
|
LOGOUT = "logout",
|
|
@@ -29,9 +28,25 @@ export declare enum AuditLogActionType {
|
|
|
29
28
|
DELETE_SHARE = "delete_share",
|
|
30
29
|
SHARE_REQUEST = "share_request",
|
|
31
30
|
DELETE_SHARE_REQUEST = "delete_share_request",
|
|
32
|
-
TRANSFER_OWNERSHIP = "transfer_ownership"
|
|
33
|
-
|
|
34
|
-
|
|
31
|
+
TRANSFER_OWNERSHIP = "transfer_ownership"
|
|
32
|
+
}
|
|
33
|
+
export declare enum AuditLogEntity {
|
|
34
|
+
Cameras = "cameras",
|
|
35
|
+
Projects = "projects",
|
|
36
|
+
Layers = "layers",
|
|
37
|
+
Routers = "routers",
|
|
38
|
+
Sims = "sims",
|
|
39
|
+
Hdds = "hdds",
|
|
40
|
+
Nvr = "nvr",
|
|
41
|
+
Archives = "archives",
|
|
42
|
+
Users = "users",
|
|
43
|
+
Rois = "rois",
|
|
44
|
+
Kits = "kits",
|
|
45
|
+
Roles = "roles",
|
|
46
|
+
Tags = "tags",
|
|
47
|
+
KitsTags = "kits_tags",
|
|
48
|
+
Oauth = "oauth",
|
|
49
|
+
StorageProviders = "storage_providers"
|
|
35
50
|
}
|
|
36
51
|
export type AuditLog = {
|
|
37
52
|
id: number;
|
|
@@ -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;
|
|
@@ -81,8 +100,17 @@ export type AutomationProviderOption = {
|
|
|
81
100
|
iconSize?: string;
|
|
82
101
|
requiresConnection: boolean;
|
|
83
102
|
};
|
|
103
|
+
export type AutomationTypeOption = {
|
|
104
|
+
labelTranslationKey: string;
|
|
105
|
+
descriptionTranslationKey: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
value: AutomationType;
|
|
109
|
+
icon: string;
|
|
110
|
+
iconType?: string;
|
|
111
|
+
};
|
|
84
112
|
export type FormattedAutomation = {
|
|
85
|
-
cameraExids
|
|
113
|
+
cameraExids?: string;
|
|
86
114
|
name: string;
|
|
87
115
|
subject: string;
|
|
88
116
|
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,13 +9,15 @@ 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;
|
|
16
|
+
workflowsApiUrl?: string | null;
|
|
20
17
|
firebaseDbLink?: string | null;
|
|
21
18
|
firebaseStorageUrl?: string | null;
|
|
22
19
|
firebaseStorageToken?: string | null;
|
|
20
|
+
forgeTokenServerUrl?: string | null;
|
|
23
21
|
snapshotsURL?: string | null;
|
|
24
22
|
app?: string | null;
|
|
25
23
|
getAuthToken?: () => string | null;
|
|
@@ -29,15 +27,18 @@ export type AxiosEnvironment = {
|
|
|
29
27
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
30
28
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
31
29
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
30
|
+
export type RequestManager = {
|
|
31
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
32
|
+
cancelToken: (key: string) => void;
|
|
33
|
+
cancelAll: () => void;
|
|
34
|
+
};
|
|
32
35
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
33
36
|
CancelToken: CancelTokenStatic;
|
|
34
37
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
35
38
|
setToken: (token: string) => void;
|
|
36
39
|
setHeader: (headerName: string, value: any) => void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
resetCancelTokens: () => void;
|
|
40
|
-
cancelRequests: () => void;
|
|
40
|
+
createRequestManager: () => RequestManager;
|
|
41
|
+
requestManager: RequestManager;
|
|
41
42
|
env: AxiosEnvironment;
|
|
42
43
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
43
44
|
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",
|
|
@@ -40,7 +40,7 @@ export type BimCompareExportRequestPayload = {
|
|
|
40
40
|
cameraExid: string;
|
|
41
41
|
snapshotDate: string;
|
|
42
42
|
bimDate: string;
|
|
43
|
-
embed
|
|
43
|
+
embed?: string;
|
|
44
44
|
compareExid: string;
|
|
45
45
|
createAnimation: boolean;
|
|
46
46
|
bimTransparency?: number;
|
|
@@ -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
|
+
};
|