@evercam/api 1.0.0-9fea602cf → 1.0.0-a1265cf0a
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 +56 -16
- package/dist/api/api/adminApi.d.ts +5 -4
- package/dist/api/api/aiApi.d.ts +30 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +21 -10
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +6 -2
- package/dist/api/types/360.d.ts +135 -33
- package/dist/api/types/aiConfigs.d.ts +3 -11
- package/dist/api/types/analytics.d.ts +9 -0
- package/dist/api/types/authz.d.ts +46 -0
- package/dist/api/types/axios.d.ts +2 -4
- package/dist/api/types/bim.d.ts +3 -5
- package/dist/api/types/camera.d.ts +2 -7
- package/dist/api/types/comments.d.ts +2 -1
- 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/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 +12 -1
- package/dist/api/types/kit.d.ts +38 -51
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +12 -2
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +0 -8
- 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 +4 -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 +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 +90 -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 +1 -8
- package/dist/api/types/user.d.ts +0 -3
- package/dist/index.js +832 -514
- 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 +74 -28
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +1 -1
- package/dist/api/types/vendorModel.d.ts +0 -15
package/dist/api/types/360.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DateType } from "@evercam/api/types/time";
|
|
2
|
-
import { GeoPoint, Point3D } from "@evercam/api/types/shared";
|
|
2
|
+
import { GeoPoint, PaginationParams, Point3D } from "@evercam/api/types/shared";
|
|
3
3
|
export type _360OverlayPosition = {
|
|
4
4
|
northEast: GeoPoint;
|
|
5
5
|
northWest: GeoPoint;
|
|
@@ -93,6 +93,7 @@ export type _360WalkV2 = {
|
|
|
93
93
|
projectId: string;
|
|
94
94
|
report: string;
|
|
95
95
|
processingLog: string;
|
|
96
|
+
hasSteps?: boolean;
|
|
96
97
|
route: unknown | null;
|
|
97
98
|
startPosition: unknown | null;
|
|
98
99
|
tusLinks: unknown | null;
|
|
@@ -101,6 +102,29 @@ export type _360WalkV2 = {
|
|
|
101
102
|
videoArchive: string;
|
|
102
103
|
videos: string[];
|
|
103
104
|
};
|
|
105
|
+
export type _360ProcessingStep = {
|
|
106
|
+
name: string;
|
|
107
|
+
tool: string | null;
|
|
108
|
+
status: string;
|
|
109
|
+
startedAt: string | null;
|
|
110
|
+
endedAt: string | null;
|
|
111
|
+
durationSec: number | null;
|
|
112
|
+
durationPct: number | null;
|
|
113
|
+
detail: Record<string, unknown>;
|
|
114
|
+
};
|
|
115
|
+
export type _360ProgressResponse = {
|
|
116
|
+
available: boolean;
|
|
117
|
+
processingStatus: string;
|
|
118
|
+
status: string | null;
|
|
119
|
+
currentStep: string | null;
|
|
120
|
+
startedAt: string | null;
|
|
121
|
+
steps: _360ProcessingStep[];
|
|
122
|
+
footprint?: _360Footprint | null;
|
|
123
|
+
};
|
|
124
|
+
export type _360Footprint = {
|
|
125
|
+
disk: Record<string, number>;
|
|
126
|
+
peak: Record<string, number>;
|
|
127
|
+
};
|
|
104
128
|
export type _360FloorV2 = {
|
|
105
129
|
id: _360FloorId;
|
|
106
130
|
assets: _360WalkV2[];
|
|
@@ -113,10 +137,11 @@ export type _360FloorV2 = {
|
|
|
113
137
|
overlayPosition: _360OverlayPosition;
|
|
114
138
|
insertedAt: string;
|
|
115
139
|
updatedAt: string;
|
|
140
|
+
deletedAt: string | null;
|
|
116
141
|
};
|
|
117
142
|
export type _360Scene = {
|
|
118
143
|
date: string;
|
|
119
|
-
dateID: number;
|
|
144
|
+
dateID: string | number;
|
|
120
145
|
floors: {
|
|
121
146
|
floorID: _360FloorId;
|
|
122
147
|
name: string;
|
|
@@ -151,24 +176,6 @@ export type _360ProjectListItem = {
|
|
|
151
176
|
timeline: string;
|
|
152
177
|
uniqueId: string;
|
|
153
178
|
};
|
|
154
|
-
export type _360FullProject = {
|
|
155
|
-
dates: _360SceneWithFloors[];
|
|
156
|
-
integrationType: string;
|
|
157
|
-
projectId: string;
|
|
158
|
-
projectName: string;
|
|
159
|
-
providerID: string;
|
|
160
|
-
providerPrefix: string;
|
|
161
|
-
providerSuffix: string;
|
|
162
|
-
timeline: string;
|
|
163
|
-
uniqueId: string;
|
|
164
|
-
};
|
|
165
|
-
export type _360FullFloor = _360Floor & {
|
|
166
|
-
id: _360FloorId;
|
|
167
|
-
name: string;
|
|
168
|
-
};
|
|
169
|
-
export type _360SceneWithFloors = _360Scene & {
|
|
170
|
-
floors: _360FullFloor[];
|
|
171
|
-
};
|
|
172
179
|
export type _360ProjectJsonResponse = {
|
|
173
180
|
dates: _360Scene[];
|
|
174
181
|
[key: string]: any;
|
|
@@ -182,12 +189,23 @@ export type MobileCaptureSnapshot = {
|
|
|
182
189
|
thumbnailUrl: string;
|
|
183
190
|
};
|
|
184
191
|
export declare enum _360UrlParams {
|
|
185
|
-
DateId = "
|
|
192
|
+
DateId = "dateId",
|
|
186
193
|
Date = "date",
|
|
187
194
|
Floor = "floor",
|
|
188
195
|
Marker = "marker",
|
|
189
196
|
PolarAngle = "polarAngle",
|
|
190
|
-
AzimuthAngle = "azimuthAngle"
|
|
197
|
+
AzimuthAngle = "azimuthAngle",
|
|
198
|
+
Zoom = "zoom",
|
|
199
|
+
User = "user",
|
|
200
|
+
ViewerMode = "viewer_mode",
|
|
201
|
+
ProjectId = "projectId",
|
|
202
|
+
Unit = "unit",
|
|
203
|
+
LockDate = "lockDate",
|
|
204
|
+
LockFloor = "lockFloor",
|
|
205
|
+
LockMarker = "lockMarker",
|
|
206
|
+
IsWidget = "isWidget",
|
|
207
|
+
MediaLocked = "mediaLocked",
|
|
208
|
+
Debug = "debug"
|
|
191
209
|
}
|
|
192
210
|
export declare enum _360AssetType {
|
|
193
211
|
Video = "video",
|
|
@@ -201,11 +219,6 @@ export declare enum _360AssetLabel {
|
|
|
201
219
|
Walks = "walks",
|
|
202
220
|
MobilePhotos = "mobilePhotos"
|
|
203
221
|
}
|
|
204
|
-
export declare enum _360Feature {
|
|
205
|
-
BIM = "BIM",
|
|
206
|
-
Minimap = "Minimap",
|
|
207
|
-
Minimodel = "Minimodel"
|
|
208
|
-
}
|
|
209
222
|
export declare enum _360IntergrationType {
|
|
210
223
|
Evercam = "Evercam",
|
|
211
224
|
Matterport = "Matterport",
|
|
@@ -218,9 +231,7 @@ export declare enum PathMarkerColor {
|
|
|
218
231
|
End = "#fd7567",
|
|
219
232
|
Default = "#2196F3"
|
|
220
233
|
}
|
|
221
|
-
export type _360AssetsQueryParams = {
|
|
222
|
-
page: number;
|
|
223
|
-
limit: number;
|
|
234
|
+
export type _360AssetsQueryParams = PaginationParams & {
|
|
224
235
|
projectId: string;
|
|
225
236
|
date: DateType;
|
|
226
237
|
floor: string;
|
|
@@ -232,7 +243,7 @@ export type _360AssetsRequestPayload = {
|
|
|
232
243
|
floor: string;
|
|
233
244
|
uploadedBy?: string;
|
|
234
245
|
};
|
|
235
|
-
export type DrawingsRequestPayload = {
|
|
246
|
+
export type DrawingsRequestPayload = PaginationParams & {
|
|
236
247
|
projectId?: string;
|
|
237
248
|
name?: string;
|
|
238
249
|
changedBy?: string;
|
|
@@ -240,10 +251,9 @@ export type DrawingsRequestPayload = {
|
|
|
240
251
|
startDate?: string;
|
|
241
252
|
endDate?: string;
|
|
242
253
|
id?: number;
|
|
243
|
-
page?: number;
|
|
244
|
-
limit?: number;
|
|
245
254
|
paginate?: boolean;
|
|
246
255
|
withAsset?: boolean;
|
|
256
|
+
includeDeleted?: boolean;
|
|
247
257
|
};
|
|
248
258
|
export type GenerateFloorPayload = {
|
|
249
259
|
overlay?: {
|
|
@@ -287,4 +297,96 @@ export type Generate360MapRequestPayload = {
|
|
|
287
297
|
z: number;
|
|
288
298
|
};
|
|
289
299
|
}>;
|
|
300
|
+
startPointIndex?: number;
|
|
301
|
+
endPointIndex?: number;
|
|
302
|
+
};
|
|
303
|
+
export declare enum EModelsType {
|
|
304
|
+
FBX = "FBX",
|
|
305
|
+
PointCloud = "PLY"
|
|
306
|
+
}
|
|
307
|
+
export type _360FloorRef = {
|
|
308
|
+
projectID: string;
|
|
309
|
+
dateID: string;
|
|
310
|
+
floorID: string;
|
|
311
|
+
};
|
|
312
|
+
export type _360Vector3 = {
|
|
313
|
+
x: number;
|
|
314
|
+
y: number;
|
|
315
|
+
z: number;
|
|
316
|
+
};
|
|
317
|
+
export type _360MarkerData = {
|
|
318
|
+
cameraPosition: _360Vector3;
|
|
319
|
+
nextRoomId: string;
|
|
320
|
+
position: _360Vector3;
|
|
321
|
+
geolocation?: {
|
|
322
|
+
latitude: number;
|
|
323
|
+
longitude: number;
|
|
324
|
+
};
|
|
325
|
+
rotation: {
|
|
326
|
+
_order: string;
|
|
327
|
+
_x: number;
|
|
328
|
+
_y: number;
|
|
329
|
+
_z: number;
|
|
330
|
+
isEuler: boolean;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
export type _360Route = {
|
|
334
|
+
overlayID?: number;
|
|
335
|
+
track?: string;
|
|
336
|
+
cameraHeadingOffset?: number;
|
|
337
|
+
};
|
|
338
|
+
export type _360CalibrationDetails = {
|
|
339
|
+
baseOriginOf360Viewer?: _360Vector3;
|
|
340
|
+
baseOriginOfForgeViewer?: _360Vector3;
|
|
341
|
+
rotationMatrix?: {
|
|
342
|
+
elements: number[];
|
|
343
|
+
};
|
|
344
|
+
scaleMatrix?: {
|
|
345
|
+
elements: number[];
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
export type _360FloorData = {
|
|
349
|
+
_3DMarkers: _360MarkerData[];
|
|
350
|
+
fbxModel: string | null;
|
|
351
|
+
fbxModelHQ: string | null;
|
|
352
|
+
pointCloudModelHQ: string | null;
|
|
353
|
+
initialMarker: string;
|
|
354
|
+
cameraRotation: _360CameraRotation;
|
|
355
|
+
steps: number;
|
|
356
|
+
route: _360Route | null;
|
|
357
|
+
sceneScale: number;
|
|
358
|
+
modelViewerFeatureFlag: boolean;
|
|
359
|
+
imagesOnlyFeatureFlag: boolean;
|
|
360
|
+
forgeBIMFeatureFlag: boolean;
|
|
361
|
+
isForgeGravityEnabled: boolean;
|
|
362
|
+
initialForgeView: Record<string, unknown> | null;
|
|
363
|
+
calibrationDetails: _360CalibrationDetails;
|
|
364
|
+
enhancedLightFeatureFlag: boolean;
|
|
365
|
+
};
|
|
366
|
+
export type _360PinData = {
|
|
367
|
+
position: _360Vector3;
|
|
368
|
+
pinType: string;
|
|
369
|
+
name: string;
|
|
370
|
+
pinId?: string;
|
|
371
|
+
cameraExid?: string;
|
|
372
|
+
currentRoom?: string;
|
|
373
|
+
cameraRotation?: {
|
|
374
|
+
polarAngle: number;
|
|
375
|
+
azimuthAngle: number;
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
export type _360ForgeTimelineItem = {
|
|
379
|
+
taskNumber: number;
|
|
380
|
+
taskID: string;
|
|
381
|
+
actualStartDate: string;
|
|
382
|
+
actualEndDate: string;
|
|
383
|
+
plannedStartDate: string;
|
|
384
|
+
plannedEndDate: string;
|
|
385
|
+
objectIDs: number[];
|
|
386
|
+
};
|
|
387
|
+
export type _360ForgeProject = {
|
|
388
|
+
urns?: Array<{
|
|
389
|
+
urn: string;
|
|
390
|
+
}>;
|
|
391
|
+
timeline?: _360ForgeTimelineItem[];
|
|
290
392
|
};
|
|
@@ -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",
|
|
@@ -73,23 +74,14 @@ export interface AiPromptUpdatePayload {
|
|
|
73
74
|
prompt?: string;
|
|
74
75
|
outputSchema?: Record<string, unknown> | null;
|
|
75
76
|
}
|
|
76
|
-
export type AiPromptQueryParams = {
|
|
77
|
+
export type AiPromptQueryParams = PaginationParams & {
|
|
77
78
|
app?: string;
|
|
78
79
|
purpose?: string;
|
|
79
80
|
model?: string;
|
|
80
81
|
search?: string;
|
|
81
82
|
createdBy?: string;
|
|
82
|
-
page?: number;
|
|
83
|
-
limit?: number;
|
|
84
83
|
};
|
|
85
|
-
export
|
|
86
|
-
items: AiPrompt[];
|
|
87
|
-
total: number;
|
|
88
|
-
page: number;
|
|
89
|
-
limit: number;
|
|
90
|
-
from: number;
|
|
91
|
-
to: number;
|
|
92
|
-
}
|
|
84
|
+
export type AiPromptListResponse = PaginatedItems<AiPrompt>;
|
|
93
85
|
export interface AiPromptCreateResponse {
|
|
94
86
|
created: boolean;
|
|
95
87
|
data: AiPrompt;
|
|
@@ -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",
|
|
@@ -292,6 +297,7 @@ export declare enum AnalyticsEvent {
|
|
|
292
297
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
293
298
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
294
299
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
300
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
295
301
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
296
302
|
ThreeSixtyLockCompare = "LockCompare",
|
|
297
303
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -312,6 +318,7 @@ export declare enum AnalyticsEvent {
|
|
|
312
318
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
313
319
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
314
320
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
321
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
315
322
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
316
323
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
317
324
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -352,6 +359,7 @@ export declare enum AnalyticsEvent {
|
|
|
352
359
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
353
360
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
354
361
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
362
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
355
363
|
DroneToggleQualityMode = "ChooseQuality",
|
|
356
364
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
357
365
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -398,6 +406,7 @@ export declare enum AnalyticsEvent {
|
|
|
398
406
|
DrawingClickHome = "ClickHome",
|
|
399
407
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
400
408
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
409
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
401
410
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
402
411
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
403
412
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -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,45 @@ 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 RoleAssignmentLog = {
|
|
67
|
+
id: number;
|
|
68
|
+
action: RoleAssignmentLogAction;
|
|
69
|
+
assignerId: number | null;
|
|
70
|
+
assignerEmail: string | null;
|
|
71
|
+
assigneeId: number | null;
|
|
72
|
+
assigneeEmail: string;
|
|
73
|
+
roleId: number | null;
|
|
74
|
+
roleName: string | null;
|
|
75
|
+
previousRoleId: number | null;
|
|
76
|
+
previousRoleName: string | null;
|
|
77
|
+
scope: RoleResourceType;
|
|
78
|
+
projectExid: string | null;
|
|
79
|
+
cameraExid: string | null;
|
|
80
|
+
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;
|
|
90
|
+
insertedAt: string;
|
|
91
|
+
};
|
|
92
|
+
export type RoleAssignmentLogsParams = {
|
|
93
|
+
page?: number;
|
|
94
|
+
limit?: number;
|
|
95
|
+
sort?: string;
|
|
96
|
+
action?: RoleAssignmentLogAction;
|
|
97
|
+
roleId?: number;
|
|
98
|
+
roleName?: string;
|
|
99
|
+
assigneeEmail?: string;
|
|
100
|
+
assignerEmail?: string;
|
|
101
|
+
scope?: RoleResourceType;
|
|
102
|
+
projectExid?: string;
|
|
103
|
+
cameraExid?: string;
|
|
104
|
+
ip?: string;
|
|
105
|
+
from?: string;
|
|
106
|
+
to?: string;
|
|
107
|
+
};
|
|
@@ -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,7 @@ export type AxiosEnvironment = {
|
|
|
16
12
|
firebaseVideowallUrl?: string | null;
|
|
17
13
|
weatherApiBaseUrl?: string | null;
|
|
18
14
|
evercamLabsUrl?: string | null;
|
|
15
|
+
isLabsStaging?: boolean;
|
|
19
16
|
firebaseDbLink?: string | null;
|
|
20
17
|
firebaseStorageUrl?: string | null;
|
|
21
18
|
firebaseStorageToken?: string | null;
|
|
@@ -31,6 +28,7 @@ export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) =>
|
|
|
31
28
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
32
29
|
export type RequestManager = {
|
|
33
30
|
createToken: (key: string) => CancelTokenSource["token"];
|
|
31
|
+
cancelToken: (key: string) => void;
|
|
34
32
|
cancelAll: () => void;
|
|
35
33
|
};
|
|
36
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",
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -48,9 +48,10 @@ 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>;
|
|
@@ -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",
|
|
@@ -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
|
+
};
|