@evercam/api 1.0.0-eef6c21fd → 1.0.0-f1d191d6c
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 +53 -21
- package/dist/api/api/adminApi.d.ts +19 -15
- package/dist/api/api/aiApi.d.ts +60 -2
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +23 -8
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +10 -2
- package/dist/api/types/360.d.ts +118 -4
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +32 -1
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/authz.d.ts +46 -0
- package/dist/api/types/axios.d.ts +8 -5
- package/dist/api/types/bim.d.ts +26 -1
- package/dist/api/types/camera.d.ts +3 -1
- package/dist/api/types/comments.d.ts +2 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +3 -1
- package/dist/api/types/drone.d.ts +6 -5
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +1 -0
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +5 -0
- package/dist/api/types/ingest.d.ts +11 -0
- package/dist/api/types/kit.d.ts +38 -2
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/recording.d.ts +3 -8
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/siteAnalytics.d.ts +1 -1
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +5 -0
- package/dist/api/types/user.d.ts +1 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1217 -755
- 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 +64 -2
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +4 -2
package/dist/api/types/360.d.ts
CHANGED
|
@@ -92,6 +92,7 @@ export type _360WalkV2 = {
|
|
|
92
92
|
processingStatus: string;
|
|
93
93
|
projectId: string;
|
|
94
94
|
report: string;
|
|
95
|
+
processingLog: string;
|
|
95
96
|
route: unknown | null;
|
|
96
97
|
startPosition: unknown | null;
|
|
97
98
|
tusLinks: unknown | null;
|
|
@@ -112,10 +113,11 @@ export type _360FloorV2 = {
|
|
|
112
113
|
overlayPosition: _360OverlayPosition;
|
|
113
114
|
insertedAt: string;
|
|
114
115
|
updatedAt: string;
|
|
116
|
+
deletedAt: string | null;
|
|
115
117
|
};
|
|
116
118
|
export type _360Scene = {
|
|
117
119
|
date: string;
|
|
118
|
-
dateID: number;
|
|
120
|
+
dateID: string | number;
|
|
119
121
|
floors: {
|
|
120
122
|
floorID: _360FloorId;
|
|
121
123
|
name: string;
|
|
@@ -181,12 +183,23 @@ export type MobileCaptureSnapshot = {
|
|
|
181
183
|
thumbnailUrl: string;
|
|
182
184
|
};
|
|
183
185
|
export declare enum _360UrlParams {
|
|
184
|
-
DateId = "
|
|
186
|
+
DateId = "dateId",
|
|
185
187
|
Date = "date",
|
|
186
188
|
Floor = "floor",
|
|
187
189
|
Marker = "marker",
|
|
188
190
|
PolarAngle = "polarAngle",
|
|
189
|
-
AzimuthAngle = "azimuthAngle"
|
|
191
|
+
AzimuthAngle = "azimuthAngle",
|
|
192
|
+
Zoom = "zoom",
|
|
193
|
+
User = "user",
|
|
194
|
+
ViewerMode = "viewer_mode",
|
|
195
|
+
ProjectId = "projectId",
|
|
196
|
+
Unit = "unit",
|
|
197
|
+
LockDate = "lockDate",
|
|
198
|
+
LockFloor = "lockFloor",
|
|
199
|
+
LockMarker = "lockMarker",
|
|
200
|
+
IsWidget = "isWidget",
|
|
201
|
+
MediaLocked = "mediaLocked",
|
|
202
|
+
Debug = "debug"
|
|
190
203
|
}
|
|
191
204
|
export declare enum _360AssetType {
|
|
192
205
|
Video = "video",
|
|
@@ -220,7 +233,7 @@ export declare enum PathMarkerColor {
|
|
|
220
233
|
export type _360AssetsQueryParams = {
|
|
221
234
|
page: number;
|
|
222
235
|
limit: number;
|
|
223
|
-
|
|
236
|
+
projectId: string;
|
|
224
237
|
date: DateType;
|
|
225
238
|
floor: string;
|
|
226
239
|
id: string;
|
|
@@ -243,6 +256,7 @@ export type DrawingsRequestPayload = {
|
|
|
243
256
|
limit?: number;
|
|
244
257
|
paginate?: boolean;
|
|
245
258
|
withAsset?: boolean;
|
|
259
|
+
includeDeleted?: boolean;
|
|
246
260
|
};
|
|
247
261
|
export type GenerateFloorPayload = {
|
|
248
262
|
overlay?: {
|
|
@@ -278,4 +292,104 @@ export type Generate360MapRequestPayload = {
|
|
|
278
292
|
cameraOffset: string;
|
|
279
293
|
startPoint: string;
|
|
280
294
|
endPoint: string;
|
|
295
|
+
drawingId?: number;
|
|
296
|
+
markers?: Array<{
|
|
297
|
+
position: {
|
|
298
|
+
x: number;
|
|
299
|
+
y: number;
|
|
300
|
+
z: number;
|
|
301
|
+
};
|
|
302
|
+
}>;
|
|
303
|
+
startPointIndex?: number;
|
|
304
|
+
endPointIndex?: number;
|
|
305
|
+
};
|
|
306
|
+
export declare enum EModelsType {
|
|
307
|
+
FBX = "FBX",
|
|
308
|
+
PointCloud = "PLY"
|
|
309
|
+
}
|
|
310
|
+
export type _360FloorRef = {
|
|
311
|
+
projectID: string;
|
|
312
|
+
dateID: string;
|
|
313
|
+
floorID: string;
|
|
314
|
+
};
|
|
315
|
+
export type _360Vector3 = {
|
|
316
|
+
x: number;
|
|
317
|
+
y: number;
|
|
318
|
+
z: number;
|
|
319
|
+
};
|
|
320
|
+
export type _360MarkerData = {
|
|
321
|
+
cameraPosition: _360Vector3;
|
|
322
|
+
nextRoomId: string;
|
|
323
|
+
position: _360Vector3;
|
|
324
|
+
geolocation: {
|
|
325
|
+
latitude: number;
|
|
326
|
+
longitude: number;
|
|
327
|
+
};
|
|
328
|
+
rotation: {
|
|
329
|
+
_order: string;
|
|
330
|
+
_x: number;
|
|
331
|
+
_y: number;
|
|
332
|
+
_z: number;
|
|
333
|
+
isEuler: boolean;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
export type _360Route = {
|
|
337
|
+
overlayID?: number;
|
|
338
|
+
track?: string;
|
|
339
|
+
cameraHeadingOffset?: number;
|
|
340
|
+
};
|
|
341
|
+
export type _360CalibrationDetails = {
|
|
342
|
+
baseOriginOf360Viewer?: _360Vector3;
|
|
343
|
+
baseOriginOfForgeViewer?: _360Vector3;
|
|
344
|
+
rotationMatrix?: {
|
|
345
|
+
elements: number[];
|
|
346
|
+
};
|
|
347
|
+
scaleMatrix?: {
|
|
348
|
+
elements: number[];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
export type _360FloorData = {
|
|
352
|
+
_3DMarkers: _360MarkerData[];
|
|
353
|
+
fbxModel: string | null;
|
|
354
|
+
fbxModelHQ: string | null;
|
|
355
|
+
pointCloudModelHQ: string | null;
|
|
356
|
+
initialMarker: string;
|
|
357
|
+
cameraRotation: _360CameraRotation;
|
|
358
|
+
steps: number;
|
|
359
|
+
route: _360Route | null;
|
|
360
|
+
sceneScale: number;
|
|
361
|
+
modelViewerFeatureFlag: boolean;
|
|
362
|
+
imagesOnlyFeatureFlag: boolean;
|
|
363
|
+
forgeBIMFeatureFlag: boolean;
|
|
364
|
+
isForgeGravityEnabled: boolean;
|
|
365
|
+
initialForgeView: Record<string, unknown> | null;
|
|
366
|
+
calibrationDetails: _360CalibrationDetails;
|
|
367
|
+
enhancedLightFeatureFlag: boolean;
|
|
368
|
+
};
|
|
369
|
+
export type _360PinData = {
|
|
370
|
+
position: _360Vector3;
|
|
371
|
+
pinType: string;
|
|
372
|
+
name: string;
|
|
373
|
+
pinId?: string;
|
|
374
|
+
cameraExid?: string;
|
|
375
|
+
currentRoom?: string;
|
|
376
|
+
cameraRotation?: {
|
|
377
|
+
polarAngle: number;
|
|
378
|
+
azimuthAngle: number;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
export type _360ForgeTimelineItem = {
|
|
382
|
+
taskNumber: number;
|
|
383
|
+
taskID: string;
|
|
384
|
+
actualStartDate: string;
|
|
385
|
+
actualEndDate: string;
|
|
386
|
+
plannedStartDate: string;
|
|
387
|
+
plannedEndDate: string;
|
|
388
|
+
objectIDs: number[];
|
|
389
|
+
};
|
|
390
|
+
export type _360ForgeProject = {
|
|
391
|
+
urns?: Array<{
|
|
392
|
+
urn: string;
|
|
393
|
+
}>;
|
|
394
|
+
timeline?: _360ForgeTimelineItem[];
|
|
281
395
|
};
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
export declare enum AiApp {
|
|
2
|
+
GateReport = "gate_report",
|
|
3
|
+
Ppe = "ppe",
|
|
4
|
+
SiteAnalytics = "site_analytics"
|
|
5
|
+
}
|
|
6
|
+
export declare enum AiProvider {
|
|
7
|
+
Gemini = "gemini",
|
|
8
|
+
OpenAi = "openai",
|
|
9
|
+
Anthropic = "anthropic"
|
|
10
|
+
}
|
|
11
|
+
export declare enum AiConfigsPromptDialogMode {
|
|
12
|
+
Create = "create",
|
|
13
|
+
Edit = "edit",
|
|
14
|
+
View = "view"
|
|
15
|
+
}
|
|
16
|
+
export declare enum AiConfigsKeyDialogMode {
|
|
17
|
+
Create = "create",
|
|
18
|
+
Rotate = "rotate",
|
|
19
|
+
Rename = "rename"
|
|
20
|
+
}
|
|
21
|
+
export interface AiAppConfig {
|
|
22
|
+
bg: string;
|
|
23
|
+
fg: string;
|
|
24
|
+
border: string;
|
|
25
|
+
icon: string;
|
|
26
|
+
}
|
|
27
|
+
export declare const AI_APP_CONFIGS: Record<AiApp | "generic", AiAppConfig>;
|
|
28
|
+
export interface AiProviderConfig {
|
|
29
|
+
bg: string;
|
|
30
|
+
fg: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
}
|
|
33
|
+
export declare const AI_PROVIDER_CONFIGS: Record<AiProvider, AiProviderConfig>;
|
|
34
|
+
export declare enum AiPromptModel {
|
|
35
|
+
Gemini3Pro = "gemini-3-pro",
|
|
36
|
+
Gemini3FlashPreview = "gemini-3-flash-preview",
|
|
37
|
+
Gemini25Pro = "gemini-2.5-pro",
|
|
38
|
+
Gemini25Flash = "gemini-2.5-flash",
|
|
39
|
+
Gemini20Flash = "gemini-2.0-flash",
|
|
40
|
+
Gpt5 = "gpt-5",
|
|
41
|
+
Gpt5Mini = "gpt-5-mini",
|
|
42
|
+
Gpt4o = "gpt-4o",
|
|
43
|
+
Gpt4oMini = "gpt-4o-mini",
|
|
44
|
+
ClaudeOpus45 = "claude-opus-4-5",
|
|
45
|
+
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
46
|
+
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
47
|
+
}
|
|
48
|
+
export interface AiPrompt {
|
|
49
|
+
id: number;
|
|
50
|
+
title: string | null;
|
|
51
|
+
purpose: string | null;
|
|
52
|
+
app: string | null;
|
|
53
|
+
model: string | null;
|
|
54
|
+
prompt: string;
|
|
55
|
+
outputSchema: Record<string, unknown> | null;
|
|
56
|
+
createdBy: string;
|
|
57
|
+
createdAt: string;
|
|
58
|
+
updatedAt: string;
|
|
59
|
+
}
|
|
60
|
+
export interface AiPromptCreatePayload {
|
|
61
|
+
title?: string | null;
|
|
62
|
+
purpose: string;
|
|
63
|
+
app: string;
|
|
64
|
+
model?: string | null;
|
|
65
|
+
prompt: string;
|
|
66
|
+
outputSchema?: Record<string, unknown> | null;
|
|
67
|
+
}
|
|
68
|
+
export interface AiPromptUpdatePayload {
|
|
69
|
+
title?: string | null;
|
|
70
|
+
purpose?: string;
|
|
71
|
+
app?: string;
|
|
72
|
+
model?: string | null;
|
|
73
|
+
prompt?: string;
|
|
74
|
+
outputSchema?: Record<string, unknown> | null;
|
|
75
|
+
}
|
|
76
|
+
export type AiPromptQueryParams = {
|
|
77
|
+
app?: string;
|
|
78
|
+
purpose?: string;
|
|
79
|
+
model?: string;
|
|
80
|
+
search?: string;
|
|
81
|
+
createdBy?: string;
|
|
82
|
+
page?: number;
|
|
83
|
+
limit?: number;
|
|
84
|
+
};
|
|
85
|
+
export interface AiPromptListResponse {
|
|
86
|
+
items: AiPrompt[];
|
|
87
|
+
total: number;
|
|
88
|
+
page: number;
|
|
89
|
+
limit: number;
|
|
90
|
+
from: number;
|
|
91
|
+
to: number;
|
|
92
|
+
}
|
|
93
|
+
export interface AiPromptCreateResponse {
|
|
94
|
+
created: boolean;
|
|
95
|
+
data: AiPrompt;
|
|
96
|
+
message: string;
|
|
97
|
+
}
|
|
98
|
+
export interface AiPromptUpdateResponse {
|
|
99
|
+
updated: boolean;
|
|
100
|
+
id: number | string;
|
|
101
|
+
message: string;
|
|
102
|
+
}
|
|
103
|
+
export interface AiPromptDeleteResponse {
|
|
104
|
+
deleted: boolean;
|
|
105
|
+
count: number;
|
|
106
|
+
message: string;
|
|
107
|
+
}
|
|
108
|
+
export interface AiApiKey {
|
|
109
|
+
id: number;
|
|
110
|
+
projectExid: string;
|
|
111
|
+
provider: string;
|
|
112
|
+
name: string;
|
|
113
|
+
purpose: string;
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
autoGenerated: boolean;
|
|
116
|
+
firstUsedAt: string | null;
|
|
117
|
+
lastUsedAt: string | null;
|
|
118
|
+
insertedAt: string;
|
|
119
|
+
updatedAt: string;
|
|
120
|
+
}
|
|
121
|
+
export interface AiApiKeyCreatePayload {
|
|
122
|
+
projectExid: string;
|
|
123
|
+
provider: string;
|
|
124
|
+
name?: string;
|
|
125
|
+
purpose?: string;
|
|
126
|
+
apiKey?: string;
|
|
127
|
+
enabled?: boolean;
|
|
128
|
+
}
|
|
129
|
+
export interface AiApiKeyUpdatePayload {
|
|
130
|
+
name?: string;
|
|
131
|
+
enabled?: boolean;
|
|
132
|
+
apiKey?: string;
|
|
133
|
+
}
|
|
134
|
+
export type AiApiKeyQueryParams = {
|
|
135
|
+
projectExid?: string;
|
|
136
|
+
provider?: string;
|
|
137
|
+
purpose?: string;
|
|
138
|
+
enabled?: boolean;
|
|
139
|
+
};
|
|
140
|
+
export interface AiApiKeyCreateResponse {
|
|
141
|
+
created: boolean;
|
|
142
|
+
data: AiApiKey;
|
|
143
|
+
message: string;
|
|
144
|
+
}
|
|
145
|
+
export interface AiApiKeyUpdateResponse {
|
|
146
|
+
updated: boolean;
|
|
147
|
+
id: number | string;
|
|
148
|
+
message: string;
|
|
149
|
+
}
|
|
150
|
+
export interface AiApiKeyDeleteResponse {
|
|
151
|
+
deleted: boolean;
|
|
152
|
+
count: number;
|
|
153
|
+
message: string;
|
|
154
|
+
}
|
|
@@ -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",
|
|
@@ -302,6 +308,7 @@ export declare enum AnalyticsEvent {
|
|
|
302
308
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
303
309
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
304
310
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
311
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
305
312
|
ThreeSixtySaveComment = "SaveComment",
|
|
306
313
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
307
314
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -311,6 +318,7 @@ export declare enum AnalyticsEvent {
|
|
|
311
318
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
312
319
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
313
320
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
321
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
314
322
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
315
323
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
316
324
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -351,6 +359,7 @@ export declare enum AnalyticsEvent {
|
|
|
351
359
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
352
360
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
353
361
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
362
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
354
363
|
DroneToggleQualityMode = "ChooseQuality",
|
|
355
364
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
356
365
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -397,6 +406,7 @@ export declare enum AnalyticsEvent {
|
|
|
397
406
|
DrawingClickHome = "ClickHome",
|
|
398
407
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
399
408
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
409
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
400
410
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
401
411
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
402
412
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -585,5 +595,26 @@ export declare enum AnalyticsEvent {
|
|
|
585
595
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
586
596
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
587
597
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
588
|
-
AskAICloseChat = "AskAI-CloseChat"
|
|
598
|
+
AskAICloseChat = "AskAI-CloseChat",
|
|
599
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
600
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
601
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
602
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
603
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
604
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
605
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
606
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
607
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
608
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
609
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
610
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
611
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
612
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
613
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
614
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
615
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
616
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
617
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
618
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
619
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
589
620
|
}
|
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
|
};
|
|
@@ -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
|
+
};
|
|
@@ -13,10 +13,10 @@ export type AxiosEnvironment = {
|
|
|
13
13
|
ingestGpuApiUrl?: string | null;
|
|
14
14
|
posthogApiUrl?: string | null;
|
|
15
15
|
posthogProjectId?: string | null;
|
|
16
|
-
posthogPrivateApiKey?: string | null;
|
|
17
16
|
firebaseVideowallUrl?: string | null;
|
|
18
17
|
weatherApiBaseUrl?: string | null;
|
|
19
18
|
evercamLabsUrl?: string | null;
|
|
19
|
+
isLabsStaging?: boolean;
|
|
20
20
|
firebaseDbLink?: string | null;
|
|
21
21
|
firebaseStorageUrl?: string | null;
|
|
22
22
|
firebaseStorageToken?: string | null;
|
|
@@ -30,15 +30,18 @@ export type AxiosEnvironment = {
|
|
|
30
30
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
31
31
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
32
32
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
33
|
+
export type RequestManager = {
|
|
34
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
35
|
+
cancelToken: (key: string) => void;
|
|
36
|
+
cancelAll: () => void;
|
|
37
|
+
};
|
|
33
38
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
34
39
|
CancelToken: CancelTokenStatic;
|
|
35
40
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
36
41
|
setToken: (token: string) => void;
|
|
37
42
|
setHeader: (headerName: string, value: any) => void;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
resetCancelTokens: () => void;
|
|
41
|
-
cancelRequests: () => void;
|
|
43
|
+
createRequestManager: () => RequestManager;
|
|
44
|
+
requestManager: RequestManager;
|
|
42
45
|
env: AxiosEnvironment;
|
|
43
46
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
44
47
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -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;
|
|
@@ -151,3 +151,28 @@ export type BimUploadPayload = {
|
|
|
151
151
|
fileExtension: string;
|
|
152
152
|
}[];
|
|
153
153
|
};
|
|
154
|
+
export declare enum ForgeBimUploadMethod {
|
|
155
|
+
FileUpload = "file_upload",
|
|
156
|
+
AutodeskAcc = "autodesk_acc"
|
|
157
|
+
}
|
|
158
|
+
export declare enum ForgeBimFileRejectionReason {
|
|
159
|
+
InvalidType = "invalid_type",
|
|
160
|
+
ExceedsSizeLimit = "exceeds_size_limit"
|
|
161
|
+
}
|
|
162
|
+
export declare enum ForgeBimUploadStage {
|
|
163
|
+
TusUpload = "tus_upload",
|
|
164
|
+
IngestUpload = "ingest_upload"
|
|
165
|
+
}
|
|
166
|
+
export declare enum ForgeBimDialogTrigger {
|
|
167
|
+
UpdateModel = "update_model",
|
|
168
|
+
AddModel = "add_model",
|
|
169
|
+
InitialSetup = "initial_setup"
|
|
170
|
+
}
|
|
171
|
+
export type BimUpdatedWebhookPayload = {
|
|
172
|
+
eventName: "bim.updated";
|
|
173
|
+
projectId: string;
|
|
174
|
+
data: {
|
|
175
|
+
updatedAt: string;
|
|
176
|
+
bimIdentifier: string;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
|
|
1
|
+
import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
|
|
2
2
|
import { DateRangeFilter } from "@evercam/api/types/time";
|
|
3
3
|
import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
|
|
4
4
|
export type CameraExid = string;
|
|
@@ -80,6 +80,7 @@ export type Camera = {
|
|
|
80
80
|
vendorName: string;
|
|
81
81
|
isAccessRestricted?: boolean;
|
|
82
82
|
kitAlarms?: KitAlarm[];
|
|
83
|
+
timestampPosition?: TimestampPositionCoordinates;
|
|
83
84
|
};
|
|
84
85
|
export type AdminCamera = {
|
|
85
86
|
id: number;
|
|
@@ -199,6 +200,7 @@ export declare enum CameraFeatureFlag {
|
|
|
199
200
|
PpeOwlv2 = "ppe_owlv2",
|
|
200
201
|
PpeGemini = "ppe_gemini",
|
|
201
202
|
PpeYolo = "ppe_yolo",
|
|
203
|
+
PpeV2 = "ppe_v2",
|
|
202
204
|
NoLiveView = "no_live_view",
|
|
203
205
|
Ring = "ring",
|
|
204
206
|
CloudOnly = "cloud_only"
|
|
@@ -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>;
|
|
@@ -102,6 +102,7 @@ export declare enum PpeLabel {
|
|
|
102
102
|
Helmet = "helmet",
|
|
103
103
|
HighVisibilityVest = "high-visibility-vest",
|
|
104
104
|
SafetyGlasses = "safety-glasses",
|
|
105
|
+
Gloves = "gloves",
|
|
105
106
|
Person = "person",
|
|
106
107
|
Man = "man",
|
|
107
108
|
Woman = "woman"
|
|
@@ -111,5 +112,6 @@ export declare enum DetectionModel {
|
|
|
111
112
|
Yolov11 = 2,
|
|
112
113
|
Yolov112 = 3,
|
|
113
114
|
GroundingDino = 4,
|
|
114
|
-
Owlv2 = 5
|
|
115
|
+
Owlv2 = 5,
|
|
116
|
+
PpeV2 = 6
|
|
115
117
|
}
|
|
@@ -6,13 +6,13 @@ export type DroneCameraTransform = {
|
|
|
6
6
|
right: Point3D;
|
|
7
7
|
};
|
|
8
8
|
export type DroneModel = {
|
|
9
|
-
cesiumId:
|
|
10
|
-
cesiumId2D:
|
|
9
|
+
cesiumId: number;
|
|
10
|
+
cesiumId2D: number;
|
|
11
11
|
date: string;
|
|
12
12
|
cesiumPointCloudId: string;
|
|
13
13
|
cesiumGausianSplatId: string;
|
|
14
14
|
pointSize: string;
|
|
15
|
-
maximumScreenSpaceError:
|
|
15
|
+
maximumScreenSpaceError: number;
|
|
16
16
|
link: string;
|
|
17
17
|
trueIndex: number;
|
|
18
18
|
};
|
|
@@ -29,10 +29,11 @@ export type DroneProjectTransform = {
|
|
|
29
29
|
};
|
|
30
30
|
export type DroneProjectData = {
|
|
31
31
|
models?: DroneModel[];
|
|
32
|
+
transform?: DroneProjectTransform;
|
|
32
33
|
integrationType?: DroneProvider;
|
|
33
34
|
origin?: string;
|
|
34
|
-
params?:
|
|
35
|
-
pointSize?:
|
|
35
|
+
params?: string;
|
|
36
|
+
pointSize?: number;
|
|
36
37
|
};
|
|
37
38
|
export type DroneProjectDataPatch = {
|
|
38
39
|
models?: Record<number, Partial<DroneModel>>;
|
|
@@ -46,4 +46,15 @@ type _EvercamApiError = {
|
|
|
46
46
|
innerError?: _EvercamApiError;
|
|
47
47
|
};
|
|
48
48
|
export type EvercamApiError = AxiosError<_EvercamApiError>;
|
|
49
|
+
export type AppError = {
|
|
50
|
+
statusCode?: number;
|
|
51
|
+
message?: string;
|
|
52
|
+
redirect?: {
|
|
53
|
+
url?: string;
|
|
54
|
+
label?: string;
|
|
55
|
+
delay?: number;
|
|
56
|
+
};
|
|
57
|
+
withSupportMessage?: boolean;
|
|
58
|
+
isWidget?: boolean;
|
|
59
|
+
};
|
|
49
60
|
export {};
|