@evercam/api 1.0.0-533505ee2 → 1.0.0-53d3bfead
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 +12 -13
- package/dist/api/api/adminApi.d.ts +2 -1
- package/dist/api/api/aiApi.d.ts +49 -2
- package/dist/api/api/authzApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +16 -5
- package/dist/api/api/ingestApi.d.ts +12 -6
- package/dist/api/types/360.d.ts +24 -59
- package/dist/api/types/aiConfigs.d.ts +99 -11
- package/dist/api/types/analytics.d.ts +8 -8
- package/dist/api/types/authz.d.ts +34 -9
- package/dist/api/types/automation.d.ts +23 -4
- package/dist/api/types/axios.d.ts +1 -4
- package/dist/api/types/bim.d.ts +2 -4
- package/dist/api/types/camera.d.ts +2 -7
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/copilot.d.ts +0 -3
- 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 +2 -1
- 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 +4 -1
- package/dist/api/types/ingest.d.ts +77 -1
- package/dist/api/types/kit.d.ts +30 -49
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +41 -2
- package/dist/api/types/observationEvents.d.ts +61 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +0 -8
- package/dist/api/types/project.d.ts +7 -0
- package/dist/api/types/recording.d.ts +2 -4
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +0 -9
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +0 -19
- 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 +29 -4
- 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/index.js +941 -666
- 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 +61 -31
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/package.json +1 -1
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { PaginatedItems, PaginationParams } from "@evercam/api/types";
|
|
1
2
|
export declare enum AiApp {
|
|
2
3
|
GateReport = "gate_report",
|
|
3
4
|
Ppe = "ppe",
|
|
@@ -11,7 +12,8 @@ export declare enum AiProvider {
|
|
|
11
12
|
export declare enum AiConfigsPromptDialogMode {
|
|
12
13
|
Create = "create",
|
|
13
14
|
Edit = "edit",
|
|
14
|
-
View = "view"
|
|
15
|
+
View = "view",
|
|
16
|
+
Subprompt = "subprompt"
|
|
15
17
|
}
|
|
16
18
|
export declare enum AiConfigsKeyDialogMode {
|
|
17
19
|
Create = "create",
|
|
@@ -45,6 +47,11 @@ export declare enum AiPromptModel {
|
|
|
45
47
|
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
46
48
|
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
47
49
|
}
|
|
50
|
+
export declare enum AiPromptType {
|
|
51
|
+
Prompt = "prompt",
|
|
52
|
+
Parent = "parent",
|
|
53
|
+
Subprompt = "subprompt"
|
|
54
|
+
}
|
|
48
55
|
export interface AiPrompt {
|
|
49
56
|
id: number;
|
|
50
57
|
title: string | null;
|
|
@@ -56,6 +63,9 @@ export interface AiPrompt {
|
|
|
56
63
|
createdBy: string;
|
|
57
64
|
createdAt: string;
|
|
58
65
|
updatedAt: string;
|
|
66
|
+
promptType: AiPromptType;
|
|
67
|
+
parentId: number | null;
|
|
68
|
+
subpromptCount: number;
|
|
59
69
|
}
|
|
60
70
|
export interface AiPromptCreatePayload {
|
|
61
71
|
title?: string | null;
|
|
@@ -64,6 +74,7 @@ export interface AiPromptCreatePayload {
|
|
|
64
74
|
model?: string | null;
|
|
65
75
|
prompt: string;
|
|
66
76
|
outputSchema?: Record<string, unknown> | null;
|
|
77
|
+
promptType?: AiPromptType.Prompt | AiPromptType.Parent;
|
|
67
78
|
}
|
|
68
79
|
export interface AiPromptUpdatePayload {
|
|
69
80
|
title?: string | null;
|
|
@@ -73,23 +84,23 @@ export interface AiPromptUpdatePayload {
|
|
|
73
84
|
prompt?: string;
|
|
74
85
|
outputSchema?: Record<string, unknown> | null;
|
|
75
86
|
}
|
|
76
|
-
export type AiPromptQueryParams = {
|
|
87
|
+
export type AiPromptQueryParams = PaginationParams & {
|
|
77
88
|
app?: string;
|
|
78
89
|
purpose?: string;
|
|
79
90
|
model?: string;
|
|
80
91
|
search?: string;
|
|
81
92
|
createdBy?: string;
|
|
82
|
-
|
|
83
|
-
|
|
93
|
+
promptType?: AiPromptType;
|
|
94
|
+
includeSubprompts?: boolean;
|
|
84
95
|
};
|
|
85
|
-
export interface
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
to: number;
|
|
96
|
+
export interface AiSubpromptCreatePayload {
|
|
97
|
+
title?: string | null;
|
|
98
|
+
purpose: string;
|
|
99
|
+
model?: string | null;
|
|
100
|
+
prompt: string;
|
|
101
|
+
outputSchema?: Record<string, unknown> | null;
|
|
92
102
|
}
|
|
103
|
+
export type AiPromptListResponse = PaginatedItems<AiPrompt>;
|
|
93
104
|
export interface AiPromptCreateResponse {
|
|
94
105
|
created: boolean;
|
|
95
106
|
data: AiPrompt;
|
|
@@ -152,3 +163,80 @@ export interface AiApiKeyDeleteResponse {
|
|
|
152
163
|
count: number;
|
|
153
164
|
message: string;
|
|
154
165
|
}
|
|
166
|
+
export declare enum AiObservationFeasibilityStatus {
|
|
167
|
+
Prod = "prod",
|
|
168
|
+
Beta = "beta",
|
|
169
|
+
Parked = "parked"
|
|
170
|
+
}
|
|
171
|
+
export declare enum AiObservationTimeDetection {
|
|
172
|
+
PerSecond = "per_second",
|
|
173
|
+
PerMinute = "per_minute",
|
|
174
|
+
Hourly = "hourly",
|
|
175
|
+
Daily = "daily"
|
|
176
|
+
}
|
|
177
|
+
export interface AiObservationFeasibilityConfig {
|
|
178
|
+
bg: string;
|
|
179
|
+
fg: string;
|
|
180
|
+
border: string;
|
|
181
|
+
label: string;
|
|
182
|
+
}
|
|
183
|
+
export declare const AI_OBSERVATION_FEASIBILITY_CONFIGS: Record<AiObservationFeasibilityStatus, AiObservationFeasibilityConfig>;
|
|
184
|
+
export interface AiObservationType {
|
|
185
|
+
id: number;
|
|
186
|
+
observationCode: string;
|
|
187
|
+
name: string;
|
|
188
|
+
description: string | null;
|
|
189
|
+
type: string;
|
|
190
|
+
rules: Record<string, unknown> | null;
|
|
191
|
+
timeDetection: string | null;
|
|
192
|
+
every: number | null;
|
|
193
|
+
severity: number | null;
|
|
194
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
195
|
+
promptId: number | null;
|
|
196
|
+
promptName: string | null;
|
|
197
|
+
insertedAt: string;
|
|
198
|
+
updatedAt: string;
|
|
199
|
+
}
|
|
200
|
+
export interface AiObservationTypeCreatePayload {
|
|
201
|
+
observationCode: string;
|
|
202
|
+
name: string;
|
|
203
|
+
description?: string | null;
|
|
204
|
+
type: string;
|
|
205
|
+
rules?: Record<string, unknown> | null;
|
|
206
|
+
timeDetection?: string | null;
|
|
207
|
+
every?: number | null;
|
|
208
|
+
severity?: number | null;
|
|
209
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
210
|
+
promptId?: number | null;
|
|
211
|
+
}
|
|
212
|
+
export type AiObservationTypeUpdatePayload = Partial<Omit<AiObservationTypeCreatePayload, "observationCode">>;
|
|
213
|
+
export type AiObservationTypeQueryParams = {
|
|
214
|
+
search?: string;
|
|
215
|
+
feasibilityStatus?: string;
|
|
216
|
+
type?: string;
|
|
217
|
+
page?: number;
|
|
218
|
+
limit?: number;
|
|
219
|
+
};
|
|
220
|
+
export interface AiObservationTypeListResponse {
|
|
221
|
+
items: AiObservationType[];
|
|
222
|
+
total: number;
|
|
223
|
+
page: number;
|
|
224
|
+
limit: number;
|
|
225
|
+
from: number;
|
|
226
|
+
to: number;
|
|
227
|
+
}
|
|
228
|
+
export interface AiObservationTypeCreateResponse {
|
|
229
|
+
created: boolean;
|
|
230
|
+
data: AiObservationType;
|
|
231
|
+
message: string;
|
|
232
|
+
}
|
|
233
|
+
export interface AiObservationTypeUpdateResponse {
|
|
234
|
+
updated: boolean;
|
|
235
|
+
id: number | string;
|
|
236
|
+
message: string;
|
|
237
|
+
}
|
|
238
|
+
export interface AiObservationTypeDeleteResponse {
|
|
239
|
+
deleted: boolean;
|
|
240
|
+
count: number;
|
|
241
|
+
message: string;
|
|
242
|
+
}
|
|
@@ -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,7 @@ 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",
|
|
264
269
|
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
265
270
|
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
266
271
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
@@ -314,13 +319,6 @@ export declare enum AnalyticsEvent {
|
|
|
314
319
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
315
320
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
316
321
|
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
317
|
-
ThreeSixtyTourPause = "Tour-Pause",
|
|
318
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
319
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
320
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
321
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
322
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
323
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
324
322
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
325
323
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
326
324
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -343,7 +341,6 @@ export declare enum AnalyticsEvent {
|
|
|
343
341
|
DroneResetView = "ResetView",
|
|
344
342
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
345
343
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
346
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
347
344
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
348
345
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
349
346
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -354,6 +351,7 @@ export declare enum AnalyticsEvent {
|
|
|
354
351
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
355
352
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
356
353
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
354
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
357
355
|
DroneToggleQualityMode = "ChooseQuality",
|
|
358
356
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
359
357
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -400,6 +398,7 @@ export declare enum AnalyticsEvent {
|
|
|
400
398
|
DrawingClickHome = "ClickHome",
|
|
401
399
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
402
400
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
401
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
403
402
|
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
404
403
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
405
404
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
@@ -486,6 +485,7 @@ export declare enum AnalyticsEvent {
|
|
|
486
485
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
487
486
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
488
487
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
488
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
489
489
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
490
490
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
491
491
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -63,6 +63,20 @@ export type AuthzScopeCreatePayload = {
|
|
|
63
63
|
export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
|
|
64
64
|
export declare function isProjectRole(role: Role): role is ProjectResourceRole;
|
|
65
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
|
+
};
|
|
66
80
|
export type RoleAssignmentLog = {
|
|
67
81
|
id: number;
|
|
68
82
|
action: RoleAssignmentLogAction;
|
|
@@ -77,17 +91,28 @@ export type RoleAssignmentLog = {
|
|
|
77
91
|
scope: RoleResourceType;
|
|
78
92
|
projectExid: string | null;
|
|
79
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[];
|
|
80
112
|
ip: string | null;
|
|
81
|
-
userDetails:
|
|
82
|
-
browser?: string | null;
|
|
83
|
-
device?: string | null;
|
|
84
|
-
os?: string | null;
|
|
85
|
-
country?: string | null;
|
|
86
|
-
countryCode?: string | null;
|
|
87
|
-
ip?: string | null;
|
|
88
|
-
impersonatedBy?: string | null;
|
|
89
|
-
} | null;
|
|
113
|
+
userDetails: RoleAssignmentUserDetails | null;
|
|
90
114
|
insertedAt: string;
|
|
115
|
+
children: RoleAssignmentLog[];
|
|
91
116
|
};
|
|
92
117
|
export type RoleAssignmentLogsParams = {
|
|
93
118
|
page?: number;
|
|
@@ -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;
|
|
@@ -32,6 +28,7 @@ export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) =>
|
|
|
32
28
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
33
29
|
export type RequestManager = {
|
|
34
30
|
createToken: (key: string) => CancelTokenSource["token"];
|
|
31
|
+
cancelToken: (key: string) => void;
|
|
35
32
|
cancelAll: () => void;
|
|
36
33
|
};
|
|
37
34
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
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",
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -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",
|
|
@@ -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,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",
|
|
@@ -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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
|
|
1
|
+
import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
|
|
2
2
|
export declare enum VehicleClassifierSource {
|
|
3
3
|
Local = "local",
|
|
4
4
|
Api = "api"
|
|
@@ -130,11 +130,9 @@ export type CreateGateReportAppPayload = {
|
|
|
130
130
|
priorSimilarLimit?: number;
|
|
131
131
|
};
|
|
132
132
|
export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
|
|
133
|
-
export type
|
|
133
|
+
export type GateReportAppsQueryParams = PaginationParams & {
|
|
134
134
|
projectExid?: ProjectExid;
|
|
135
135
|
includeStatus?: boolean;
|
|
136
|
-
page?: number;
|
|
137
|
-
limit?: number;
|
|
138
136
|
};
|
|
139
137
|
export type CoolifyProjectOption = {
|
|
140
138
|
uuid: string;
|
|
@@ -152,9 +150,6 @@ export declare enum AppRuntimeState {
|
|
|
152
150
|
Stopped = "stopped",
|
|
153
151
|
Restarting = "restarting"
|
|
154
152
|
}
|
|
155
|
-
export type AppRuntimeStateRequest = {
|
|
156
|
-
state: AppRuntimeState;
|
|
157
|
-
};
|
|
158
153
|
export type AppActionResponse = {
|
|
159
154
|
success: boolean;
|
|
160
155
|
message: string | null;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
export declare enum HammertechRegion {
|
|
2
|
+
US = "us",
|
|
3
|
+
AU = "au",
|
|
4
|
+
EU = "eu"
|
|
5
|
+
}
|
|
6
|
+
export type HammertechConnectPayload = {
|
|
7
|
+
email: string;
|
|
8
|
+
password: string;
|
|
9
|
+
tenant: string;
|
|
10
|
+
region: HammertechRegion;
|
|
11
|
+
};
|
|
12
|
+
export type HammertechProject = {
|
|
13
|
+
projectId: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export type HammertechLocation = {
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
parentId: string | null;
|
|
20
|
+
};
|
|
21
|
+
export type HammertechCustomFieldDataType = "FreeText" | "TextArea" | "Number" | "Date" | "Time" | "DateTime" | "ExpiryDate" | "Checkbox" | "YesNoRadio" | "YesNoNaRadio" | "Dropdown" | "Radio" | "MultiSelectDropdown" | "ImageUpload" | "FileUpload" | "Signature" | "SignatureWithName" | "Heading" | "BigLabel" | "ExpandingLabel" | "Separator" | "NoMargin" | "Image" | "FileDownload" | "ChildForm" | "SectionStart" | "SectionEnd" | "SystemField" | string;
|
|
22
|
+
export type HammertechCustomField = {
|
|
23
|
+
id: string;
|
|
24
|
+
internalName: string;
|
|
25
|
+
name?: string;
|
|
26
|
+
customFieldType: HammertechCustomFieldDataType;
|
|
27
|
+
isRequired?: boolean;
|
|
28
|
+
answerOptions?: string[];
|
|
29
|
+
};
|
|
30
|
+
export type HammertechCustomFieldForm = {
|
|
31
|
+
id: string;
|
|
32
|
+
customFields: HammertechCustomField[];
|
|
33
|
+
};
|
|
34
|
+
export declare enum HammertechPriority {
|
|
35
|
+
Low = "Low",
|
|
36
|
+
Medium = "Medium",
|
|
37
|
+
High = "High",
|
|
38
|
+
Critical = "Critical"
|
|
39
|
+
}
|
|
40
|
+
export declare enum HammertechClassification {
|
|
41
|
+
Undefined = "Undefined",
|
|
42
|
+
Positive = "Positive",
|
|
43
|
+
Negative = "Negative",
|
|
44
|
+
Neutral = "Neutral"
|
|
45
|
+
}
|
|
46
|
+
export type HammertechIssueType = {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
forcePriority?: boolean;
|
|
50
|
+
suggestedPriority?: HammertechPriority | null;
|
|
51
|
+
canBeNegative?: boolean;
|
|
52
|
+
canBeNeutral?: boolean;
|
|
53
|
+
canBePositive?: boolean;
|
|
54
|
+
openIssueCustomFieldForm?: HammertechCustomFieldForm | null;
|
|
55
|
+
};
|
|
56
|
+
export type HammertechCustomFieldValue = {
|
|
57
|
+
customFieldId: string;
|
|
58
|
+
value?: unknown;
|
|
59
|
+
storedFileId?: string;
|
|
60
|
+
};
|
|
61
|
+
export declare const HAMMERTECH_FILE_FIELD_TYPES: string[];
|
|
62
|
+
export declare function isHammertechFileFieldType(type?: string): boolean;
|
|
63
|
+
export declare function isHammertechSignatureWithName(type?: string): boolean;
|
|
64
|
+
export type HammertechStoredFilePayload = {
|
|
65
|
+
fileName?: string;
|
|
66
|
+
base64FileContent: string;
|
|
67
|
+
annotation?: string;
|
|
68
|
+
id?: string;
|
|
69
|
+
};
|
|
70
|
+
export type HammertechStoredFileResponse = {
|
|
71
|
+
isSuccess: boolean;
|
|
72
|
+
httpStatusCode: number;
|
|
73
|
+
messageText: string;
|
|
74
|
+
createdEntityId: string;
|
|
75
|
+
xRequestId: string;
|
|
76
|
+
};
|
|
77
|
+
export type HammertechFileFieldValue = {
|
|
78
|
+
file: File | null;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
export type HammertechCreateIssuePayload = {
|
|
82
|
+
projectId: string;
|
|
83
|
+
issueTypeId: string;
|
|
84
|
+
snapshot: string;
|
|
85
|
+
issueDate?: string;
|
|
86
|
+
description?: string;
|
|
87
|
+
priority?: HammertechPriority;
|
|
88
|
+
dueDate?: string;
|
|
89
|
+
classification?: HammertechClassification;
|
|
90
|
+
locationId?: string;
|
|
91
|
+
isPositiveObservation?: boolean;
|
|
92
|
+
isPhotoForFixRequired?: boolean;
|
|
93
|
+
openIssueCustomFieldFormId?: string;
|
|
94
|
+
openIssueCustomFieldValues?: HammertechCustomFieldValue[];
|
|
95
|
+
};
|
|
96
|
+
export type HammertechIssueResponse = {
|
|
97
|
+
id: string;
|
|
98
|
+
};
|
|
@@ -36,12 +36,13 @@ export * from "./storyblok";
|
|
|
36
36
|
export * from "./time";
|
|
37
37
|
export * from "./timelapse";
|
|
38
38
|
export * from "./user";
|
|
39
|
-
export * from "./vendorModel";
|
|
40
39
|
export * from "./videoWall";
|
|
41
40
|
export * from "./voyageControl";
|
|
41
|
+
export * from "./hammertech";
|
|
42
42
|
export * from "./weather";
|
|
43
43
|
export * from "./comments";
|
|
44
44
|
export * from "./detections";
|
|
45
|
+
export * from "./observations";
|
|
45
46
|
export * from "./axios";
|
|
46
47
|
export * from "./shared";
|
|
47
48
|
export * from "./company";
|
|
@@ -66,3 +67,5 @@ export * from "./smartSeach";
|
|
|
66
67
|
export * from "./siteView";
|
|
67
68
|
export * from "./aiConfigs";
|
|
68
69
|
export * from "./gateReportManagement";
|
|
70
|
+
export * from "./socket";
|
|
71
|
+
export * from "./observationEvents";
|