@evercam/api 1.0.0-93d7383e0 → 1.0.0-946af3a76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/api/3dFirebaseApi.d.ts +63 -24
- package/dist/api/api/adminApi.d.ts +17 -10
- package/dist/api/api/aiApi.d.ts +95 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +39 -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 -31
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +117 -42
- package/dist/api/types/admin.d.ts +1 -1
- package/dist/api/types/aiConfigs.d.ts +102 -12
- package/dist/api/types/analytics.d.ts +29 -24
- package/dist/api/types/auditLogs.d.ts +1 -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 +9 -8
- package/dist/api/types/bim.d.ts +12 -6
- package/dist/api/types/camera.d.ts +27 -22
- package/dist/api/types/comments.d.ts +9 -2
- 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 +1 -0
- package/dist/api/types/drone.d.ts +1 -2
- package/dist/api/types/errors.d.ts +7 -2
- package/dist/api/types/gateReport.d.ts +0 -11
- package/dist/api/types/gateReportManagement.d.ts +2 -7
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +6 -2
- package/dist/api/types/ingest.d.ts +178 -25
- package/dist/api/types/kit.d.ts +44 -101
- 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 +1 -8
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +15 -3
- package/dist/api/types/recording.d.ts +5 -5
- 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 +5 -22
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +1 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
- package/dist/api/types/siteView.d.ts +6 -1
- 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 +1 -8
- package/dist/api/types/user.d.ts +16 -3
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1592 -941
- 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 +221 -44
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/droneUpload.d.ts +67 -0
- 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 +3 -1
- 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",
|
|
@@ -16,6 +16,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
16
16
|
Automations = "Automations",
|
|
17
17
|
ProgressPhotosUnsubscribe = "ProgressPhotosUnsubscribe",
|
|
18
18
|
VideoWall = "VideoWall",
|
|
19
|
+
GlobalVideoWall = "GlobalVideoWall",
|
|
19
20
|
ProjectSettings = "ProjectSettings",
|
|
20
21
|
ProjectSettingsCameraSettings = "ProjectSettings-CameraSettings",
|
|
21
22
|
ProjectSettingsMembers = "ProjectSettings-Members",
|
|
@@ -36,6 +37,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
36
37
|
EmbeddedLive = "EmbeddedLive",
|
|
37
38
|
EmbeddedRecordings = "EmbeddedRecordings",
|
|
38
39
|
EmbeddedBimCompare = "EmbeddedBimCompare",
|
|
40
|
+
GlobalWidgets = "GlobalWidgets",
|
|
39
41
|
GateReportInfo = "GateReportInfo",
|
|
40
42
|
BimInfo = "BimInfo",
|
|
41
43
|
DroneInfo = "DroneInfo",
|
|
@@ -60,12 +62,12 @@ export declare enum AnalyticsEvent {
|
|
|
60
62
|
MarkUpTool = "MarkUpTool-Toggle",
|
|
61
63
|
Comment = "Comment-Toggle",
|
|
62
64
|
Compare = "Compare-Toggle",
|
|
63
|
-
Copilot = "Copilot-Toggle",
|
|
64
65
|
DownloadMediaOpen = "DownloadMedia-Open",
|
|
65
66
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
66
67
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
67
68
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
68
69
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
70
|
+
SettingsAccountRevokeAuthorizedApp = "RevokeAuthorizedApp",
|
|
69
71
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
70
72
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
71
73
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
@@ -79,6 +81,9 @@ export declare enum AnalyticsEvent {
|
|
|
79
81
|
SettingsConnectorsRemoveVoyageControlConnection = "RemoveVoyageControl",
|
|
80
82
|
SettingsConnectorsToggleConnectorPromptDialog = "ToggleConnectorPromptDialog",
|
|
81
83
|
SettingsConnectorsToggleVoyageControlDialog = "ToggleVoyageControlDialog",
|
|
84
|
+
SettingsConnectorsConnectToHammertech = "ConnectToHammertech",
|
|
85
|
+
SettingsConnectorsRemoveHammertechConnection = "RemoveHammertech",
|
|
86
|
+
SettingsConnectorsToggleHammertechDialog = "ToggleHammertechDialog",
|
|
82
87
|
WidgetsSelectTypeThreeSixty = "Widgets-SelectType360",
|
|
83
88
|
WidgetsSelectProject = "SelectProject",
|
|
84
89
|
WidgetsSelect360Date = "Select360Date",
|
|
@@ -153,12 +158,6 @@ export declare enum AnalyticsEvent {
|
|
|
153
158
|
TimelineCompareSlide = "Compare-Slide",
|
|
154
159
|
TimelineSelectMilestoneItem = "Timeline-SelectMilestoneItem",
|
|
155
160
|
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
161
|
GroupsVisibilityMobileCapture = "GroupsVisibility-MobileCapture",
|
|
163
162
|
GroupsVisibilityAnpr = "GroupsVisibility-Anpr",
|
|
164
163
|
GroupsVisibilityComments = "GroupsVisibility-Comments",
|
|
@@ -192,6 +191,7 @@ export declare enum AnalyticsEvent {
|
|
|
192
191
|
XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
|
|
193
192
|
XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
|
|
194
193
|
XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
|
|
194
|
+
XraySendToConnectorHammerTech = "Xray-SendToConnector-HammerTech",
|
|
195
195
|
WeatherGoBackDate = "Weather-GoBackDate",
|
|
196
196
|
WeatherGoForwardDate = "Weather-GoForwardDate",
|
|
197
197
|
WeatherReportExportFile = "ExportFile",
|
|
@@ -261,6 +261,7 @@ export declare enum AnalyticsEvent {
|
|
|
261
261
|
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
262
|
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
263
|
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
264
|
+
MarkUpToolSendToConnectorHammerTech = "MarkUpTool-SendToConnector-HammerTech",
|
|
264
265
|
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
265
266
|
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
266
267
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
@@ -292,6 +293,7 @@ export declare enum AnalyticsEvent {
|
|
|
292
293
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
293
294
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
294
295
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
296
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
295
297
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
296
298
|
ThreeSixtyLockCompare = "LockCompare",
|
|
297
299
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -312,13 +314,7 @@ export declare enum AnalyticsEvent {
|
|
|
312
314
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
313
315
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
314
316
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
315
|
-
|
|
316
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
317
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
318
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
319
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
320
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
321
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
317
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
322
318
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
323
319
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
324
320
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -341,7 +337,6 @@ export declare enum AnalyticsEvent {
|
|
|
341
337
|
DroneResetView = "ResetView",
|
|
342
338
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
343
339
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
344
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
345
340
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
346
341
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
347
342
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -352,6 +347,7 @@ export declare enum AnalyticsEvent {
|
|
|
352
347
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
353
348
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
354
349
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
350
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
355
351
|
DroneToggleQualityMode = "ChooseQuality",
|
|
356
352
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
357
353
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -398,6 +394,8 @@ export declare enum AnalyticsEvent {
|
|
|
398
394
|
DrawingClickHome = "ClickHome",
|
|
399
395
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
400
396
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
397
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
398
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
401
399
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
402
400
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
403
401
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -446,6 +444,7 @@ export declare enum AnalyticsEvent {
|
|
|
446
444
|
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
447
445
|
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
448
446
|
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
447
|
+
ProjectSettingsMembersResendInvite = "ResendInvite",
|
|
449
448
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
450
449
|
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
451
450
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
@@ -483,6 +482,7 @@ export declare enum AnalyticsEvent {
|
|
|
483
482
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
484
483
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
485
484
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
485
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
486
486
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
487
487
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
488
488
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -580,13 +580,17 @@ export declare enum AnalyticsEvent {
|
|
|
580
580
|
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
581
581
|
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
582
582
|
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage",
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
583
|
+
ChatToggleSidebarMode = "Chat-ToggleSidebarMode",
|
|
584
|
+
ChatSendMessage = "Chat-SendMessage",
|
|
585
|
+
ChatClickStarter = "Chat-ClickStarter",
|
|
586
|
+
ChatStopResponse = "Chat-StopResponse",
|
|
587
|
+
ChatCopyAnswer = "Chat-CopyAnswer",
|
|
588
|
+
ChatDownloadPdf = "Chat-DownloadPdf",
|
|
589
|
+
ChatOpenCamera = "Chat-OpenCamera",
|
|
590
|
+
ChatNewConversation = "Chat-NewConversation",
|
|
591
|
+
ChatOpenConversation = "Chat-OpenConversation",
|
|
592
|
+
ChatRenameConversation = "Chat-RenameConversation",
|
|
593
|
+
ChatDeleteConversation = "Chat-DeleteConversation",
|
|
590
594
|
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
591
595
|
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
592
596
|
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
@@ -606,5 +610,6 @@ export declare enum AnalyticsEvent {
|
|
|
606
610
|
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
607
611
|
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
608
612
|
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
609
|
-
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed"
|
|
613
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
614
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
610
615
|
}
|
|
@@ -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,7 @@ 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
|
-
BIM_NOTE = "bim_note",
|
|
34
|
-
GATE_REPORT_NOTE = "gate_report_note"
|
|
31
|
+
TRANSFER_OWNERSHIP = "transfer_ownership"
|
|
35
32
|
}
|
|
36
33
|
export declare enum AuditLogEntity {
|
|
37
34
|
Cameras = "cameras",
|
|
@@ -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;
|
|
@@ -16,6 +12,8 @@ export type AxiosEnvironment = {
|
|
|
16
12
|
firebaseVideowallUrl?: string | null;
|
|
17
13
|
weatherApiBaseUrl?: string | null;
|
|
18
14
|
evercamLabsUrl?: string | null;
|
|
15
|
+
isLabsStaging?: boolean;
|
|
16
|
+
workflowsApiUrl?: string | null;
|
|
19
17
|
firebaseDbLink?: string | null;
|
|
20
18
|
firebaseStorageUrl?: string | null;
|
|
21
19
|
firebaseStorageToken?: 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;
|
|
@@ -168,3 +166,11 @@ export declare enum ForgeBimDialogTrigger {
|
|
|
168
166
|
AddModel = "add_model",
|
|
169
167
|
InitialSetup = "initial_setup"
|
|
170
168
|
}
|
|
169
|
+
export type BimUpdatedWebhookPayload = {
|
|
170
|
+
eventName: "bim.updated";
|
|
171
|
+
projectId: string;
|
|
172
|
+
data: {
|
|
173
|
+
updatedAt: string;
|
|
174
|
+
bimIdentifier: string;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
@@ -81,6 +81,7 @@ export type Camera = {
|
|
|
81
81
|
isAccessRestricted?: boolean;
|
|
82
82
|
kitAlarms?: KitAlarm[];
|
|
83
83
|
timestampPosition?: TimestampPositionCoordinates;
|
|
84
|
+
position?: number | null;
|
|
84
85
|
};
|
|
85
86
|
export type AdminCamera = {
|
|
86
87
|
id: number;
|
|
@@ -202,16 +203,10 @@ export declare enum CameraFeatureFlag {
|
|
|
202
203
|
PpeYolo = "ppe_yolo",
|
|
203
204
|
PpeV2 = "ppe_v2",
|
|
204
205
|
NoLiveView = "no_live_view",
|
|
206
|
+
NoRecordings = "no_recordings",
|
|
205
207
|
Ring = "ring",
|
|
206
208
|
CloudOnly = "cloud_only"
|
|
207
209
|
}
|
|
208
|
-
export type CameraLogsRequestPayload = {
|
|
209
|
-
limit: number;
|
|
210
|
-
page: number;
|
|
211
|
-
types: string;
|
|
212
|
-
from: string;
|
|
213
|
-
to: string;
|
|
214
|
-
};
|
|
215
210
|
export type CameraUpdateRequestPayload = {
|
|
216
211
|
status?: string;
|
|
217
212
|
timezone?: string;
|
|
@@ -252,13 +247,17 @@ export type CameraUpdateRequestPayload = {
|
|
|
252
247
|
export type CamerasResponsePayload = {
|
|
253
248
|
cameras?: Camera[];
|
|
254
249
|
};
|
|
255
|
-
export type
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
customMessage?: string;
|
|
250
|
+
export type CameraNoteResponsePayload = {
|
|
251
|
+
id: number;
|
|
252
|
+
camera: {
|
|
253
|
+
exid: string;
|
|
254
|
+
name: string;
|
|
261
255
|
};
|
|
256
|
+
who: string;
|
|
257
|
+
noteType: string;
|
|
258
|
+
content: string;
|
|
259
|
+
pinned: boolean;
|
|
260
|
+
insertedAt: string;
|
|
262
261
|
};
|
|
263
262
|
export type CameraStatusLog = {
|
|
264
263
|
start: string;
|
|
@@ -389,22 +388,26 @@ export type CameraDeletePayload = {
|
|
|
389
388
|
verify: string;
|
|
390
389
|
password: string;
|
|
391
390
|
};
|
|
392
|
-
export type SaveNotePayload = {
|
|
393
|
-
noteType: string;
|
|
394
|
-
content: string;
|
|
395
|
-
};
|
|
396
391
|
export type CameraNote = {
|
|
397
392
|
id: number;
|
|
398
393
|
cameraId: number;
|
|
394
|
+
who: string;
|
|
399
395
|
noteType: string;
|
|
400
396
|
content: string;
|
|
397
|
+
pinned: boolean;
|
|
401
398
|
insertedAt: DateType;
|
|
402
399
|
};
|
|
400
|
+
export type GetCameraNotesParams = {
|
|
401
|
+
noteType?: string;
|
|
402
|
+
pinned?: boolean;
|
|
403
|
+
sort?: string;
|
|
404
|
+
page?: number;
|
|
405
|
+
limit?: number;
|
|
406
|
+
};
|
|
403
407
|
export type CreateCameraNotePayload = {
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
action: string;
|
|
408
|
+
noteType: string;
|
|
409
|
+
content: string;
|
|
410
|
+
pinned?: boolean;
|
|
408
411
|
};
|
|
409
412
|
export declare enum HddStatus {
|
|
410
413
|
Error = "error",
|
|
@@ -488,7 +491,7 @@ export declare enum DuplicatedCameraFields {
|
|
|
488
491
|
export type DuplicatedCameraObject = {
|
|
489
492
|
exid: string;
|
|
490
493
|
name: string;
|
|
491
|
-
cameraStatus:
|
|
494
|
+
cameraStatus: CameraStatus;
|
|
492
495
|
crStatus: string;
|
|
493
496
|
};
|
|
494
497
|
export type DuplicatedCameraResponse = {
|
|
@@ -504,6 +507,8 @@ export type MergeDuplicatedCameraPayload = {
|
|
|
504
507
|
shareeCameras: Record<string, unknown>;
|
|
505
508
|
};
|
|
506
509
|
export type FetchCameraQueryParams = PaginationParams & {
|
|
510
|
+
/** Narrows the index to one project. Sent as `project_exid`. */
|
|
511
|
+
projectExid: ProjectExid;
|
|
507
512
|
status: CameraStatus;
|
|
508
513
|
isPublic: boolean;
|
|
509
514
|
featureFlags: CameraFeatureFlag[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
|
|
2
2
|
export declare enum CommentsScope {
|
|
3
3
|
Recordings = "recordings",
|
|
4
4
|
ThreeSixty = "360",
|
|
@@ -48,10 +48,17 @@ export type CommentCreationRequestPayload = {
|
|
|
48
48
|
toDate?: DateType;
|
|
49
49
|
timestamp?: DateType;
|
|
50
50
|
scope?: CommentsScope;
|
|
51
|
-
projectExid
|
|
51
|
+
projectExid?: ProjectExid;
|
|
52
52
|
cameraExid?: CameraExid;
|
|
53
53
|
content: string;
|
|
54
|
+
label?: CommentsLabel;
|
|
54
55
|
position2d?: TuplePoint2D;
|
|
55
56
|
position3d?: [number, number, number];
|
|
56
57
|
context?: Record<string, unknown>;
|
|
57
58
|
};
|
|
59
|
+
export type CommentThreeSixtyContext = {
|
|
60
|
+
floorId: string;
|
|
61
|
+
dateId: string;
|
|
62
|
+
currentRoom: string;
|
|
63
|
+
cameraRotation: _360CameraRotation;
|
|
64
|
+
};
|
|
@@ -19,7 +19,6 @@ export type DroneModel = {
|
|
|
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;
|
|
@@ -57,7 +56,7 @@ export type DroneTag<T extends DroneTagType = DroneTagType> = {
|
|
|
57
56
|
type: T;
|
|
58
57
|
comment: string;
|
|
59
58
|
position?: Point3D;
|
|
60
|
-
cameraTransform?:
|
|
59
|
+
cameraTransform?: string;
|
|
61
60
|
creationDate: string;
|
|
62
61
|
hyperlink?: string;
|
|
63
62
|
height?: number;
|
|
@@ -23,7 +23,9 @@ 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,
|
|
28
|
+
TooManyRequestsError = 429
|
|
27
29
|
}
|
|
28
30
|
export declare enum EvercamApiErrorCode {
|
|
29
31
|
IntegrationError = "INTEGRATION_ERROR",
|
|
@@ -37,7 +39,8 @@ export declare enum EvercamApiErrorCode {
|
|
|
37
39
|
ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
|
|
38
40
|
PasswordReset = "PASSWORD_RESET",
|
|
39
41
|
RequireShareRequest = "REQUIRE_SHARE_REQUEST",
|
|
40
|
-
Generic = "GENERIC"
|
|
42
|
+
Generic = "GENERIC",
|
|
43
|
+
VideoWallInUse = "VIDEO_WALL_IN_USE"
|
|
41
44
|
}
|
|
42
45
|
type _EvercamApiError = {
|
|
43
46
|
code: EvercamApiErrorCode;
|
|
@@ -46,6 +49,8 @@ type _EvercamApiError = {
|
|
|
46
49
|
innerError?: _EvercamApiError;
|
|
47
50
|
};
|
|
48
51
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
52
|
+
export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
|
|
53
|
+
export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
|
|
49
54
|
export type AppError = {
|
|
50
55
|
statusCode?: number;
|
|
51
56
|
message?: string;
|
|
@@ -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;
|