@evercam/api 1.0.0-abd430c3b → 1.0.0-abf5647b9
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 +197 -15
- package/dist/api/api/adminApi.d.ts +16 -12
- package/dist/api/api/aiApi.d.ts +44 -4
- package/dist/api/api/evercamApi.d.ts +16 -7
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +8 -2
- package/dist/api/types/360.d.ts +171 -54
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +27 -11
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/axios.d.ts +7 -5
- package/dist/api/types/bim.d.ts +25 -0
- package/dist/api/types/camera.d.ts +11 -25
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/detections.d.ts +2 -10
- package/dist/api/types/drone.d.ts +95 -6
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +7 -11
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/ingest.d.ts +3 -2
- package/dist/api/types/kit.d.ts +2 -1
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +6 -1
- package/dist/api/types/planner.d.ts +55 -2
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +2 -1
- package/dist/api/types/recording.d.ts +5 -9
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/shared.d.ts +19 -0
- package/dist/api/types/siteAnalytics.d.ts +3 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/timelapse.d.ts +2 -6
- package/dist/api/types/user.d.ts +1 -1
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1464 -660
- 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 +35 -9
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +1 -0
- package/package.json +4 -2
package/dist/api/types/360.d.ts
CHANGED
|
@@ -1,26 +1,35 @@
|
|
|
1
1
|
import { DateType } from "@evercam/api/types/time";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { GeoPoint, Point3D } from "@evercam/api/types/shared";
|
|
3
|
+
export type _360OverlayPosition = {
|
|
4
|
+
northEast: GeoPoint;
|
|
5
|
+
northWest: GeoPoint;
|
|
6
|
+
southEast: GeoPoint;
|
|
7
|
+
southWest: GeoPoint;
|
|
5
8
|
};
|
|
6
|
-
export type
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
export type ForgeViewport = {
|
|
10
|
+
name: string;
|
|
11
|
+
eye: number[];
|
|
12
|
+
target: number[];
|
|
13
|
+
worldUpVector?: number[];
|
|
10
14
|
};
|
|
11
|
-
export type
|
|
12
|
-
|
|
13
|
-
|
|
15
|
+
export type ForgeView = {
|
|
16
|
+
name: string;
|
|
17
|
+
viewport: ForgeViewport;
|
|
18
|
+
timestamp: string;
|
|
14
19
|
};
|
|
15
20
|
export type _360CameraRotation = {
|
|
16
21
|
azimuthAngle: number;
|
|
17
22
|
polarAngle: number;
|
|
18
23
|
};
|
|
24
|
+
export type _360Geolocation = {
|
|
25
|
+
latitude: number;
|
|
26
|
+
longitude: number;
|
|
27
|
+
};
|
|
19
28
|
export type _360Marker3D = {
|
|
20
|
-
cameraPosition:
|
|
29
|
+
cameraPosition: Point3D;
|
|
21
30
|
geolocation: _360Geolocation;
|
|
22
31
|
nextRoomId: _360MakerId;
|
|
23
|
-
position:
|
|
32
|
+
position: Point3D;
|
|
24
33
|
rotation: {
|
|
25
34
|
_order: "XYZ" | string;
|
|
26
35
|
_x: number;
|
|
@@ -35,7 +44,7 @@ export type _360Tag = {
|
|
|
35
44
|
comment: string;
|
|
36
45
|
creationDate: number;
|
|
37
46
|
currentRoom: _360MakerId;
|
|
38
|
-
position:
|
|
47
|
+
position: Point3D;
|
|
39
48
|
cameraRotation: _360CameraRotation;
|
|
40
49
|
};
|
|
41
50
|
export type _360FloorId = string | number;
|
|
@@ -45,8 +54,16 @@ export type _360Floor = {
|
|
|
45
54
|
_3DMarkers: _360Marker3D[];
|
|
46
55
|
cameraRotation: _360CameraRotation;
|
|
47
56
|
fbxModel: string;
|
|
57
|
+
fbxModelHQ?: string;
|
|
58
|
+
pointCloudModelHQ?: string;
|
|
48
59
|
initialMarker: _360MakerId;
|
|
49
60
|
modelViewerFeatureFlag: boolean;
|
|
61
|
+
imagesOnlyFeatureFlag?: boolean;
|
|
62
|
+
forgeBIMFeatureFlag?: boolean;
|
|
63
|
+
isForgeGravityEnabled?: boolean;
|
|
64
|
+
initialForgeView?: ForgeView | null;
|
|
65
|
+
enhancedLightFeatureFlag?: boolean;
|
|
66
|
+
calibrationDetails?: Record<string, unknown>;
|
|
50
67
|
route: {
|
|
51
68
|
cameraHeadingOffset: string;
|
|
52
69
|
overlayID: number;
|
|
@@ -54,7 +71,7 @@ export type _360Floor = {
|
|
|
54
71
|
};
|
|
55
72
|
sceneScale: number;
|
|
56
73
|
steps: number;
|
|
57
|
-
tags
|
|
74
|
+
tags?: Record<string, _360Tag>;
|
|
58
75
|
};
|
|
59
76
|
export type _360WalkV2 = {
|
|
60
77
|
archive: string;
|
|
@@ -75,6 +92,7 @@ export type _360WalkV2 = {
|
|
|
75
92
|
processingStatus: string;
|
|
76
93
|
projectId: string;
|
|
77
94
|
report: string;
|
|
95
|
+
processingLog: string;
|
|
78
96
|
route: unknown | null;
|
|
79
97
|
startPosition: unknown | null;
|
|
80
98
|
tusLinks: unknown | null;
|
|
@@ -92,30 +110,13 @@ export type _360FloorV2 = {
|
|
|
92
110
|
hasOverlay: boolean;
|
|
93
111
|
isCalibrated: boolean;
|
|
94
112
|
createdBy: string | null;
|
|
95
|
-
overlayPosition:
|
|
96
|
-
northEast: {
|
|
97
|
-
lat: number;
|
|
98
|
-
lng: number;
|
|
99
|
-
};
|
|
100
|
-
northWest: {
|
|
101
|
-
lat: number;
|
|
102
|
-
lng: number;
|
|
103
|
-
};
|
|
104
|
-
southEast: {
|
|
105
|
-
lat: number;
|
|
106
|
-
lng: number;
|
|
107
|
-
};
|
|
108
|
-
southWest: {
|
|
109
|
-
lat: number;
|
|
110
|
-
lng: number;
|
|
111
|
-
};
|
|
112
|
-
};
|
|
113
|
+
overlayPosition: _360OverlayPosition;
|
|
113
114
|
insertedAt: string;
|
|
114
115
|
updatedAt: string;
|
|
115
116
|
};
|
|
116
117
|
export type _360Scene = {
|
|
117
118
|
date: string;
|
|
118
|
-
dateID: number;
|
|
119
|
+
dateID: string | number;
|
|
119
120
|
floors: {
|
|
120
121
|
floorID: _360FloorId;
|
|
121
122
|
name: string;
|
|
@@ -123,11 +124,33 @@ export type _360Scene = {
|
|
|
123
124
|
polarAngle: number;
|
|
124
125
|
azimuthAngle: number;
|
|
125
126
|
};
|
|
127
|
+
export declare enum _360PinType {
|
|
128
|
+
Default = "Default"
|
|
129
|
+
}
|
|
130
|
+
export type _360Pin = {
|
|
131
|
+
position: Point3D;
|
|
132
|
+
pinType: _360PinType;
|
|
133
|
+
pinId?: string;
|
|
134
|
+
cameraExid?: string;
|
|
135
|
+
name: string;
|
|
136
|
+
currentRoom?: _360MakerId;
|
|
137
|
+
cameraRotation?: _360CameraRotation;
|
|
138
|
+
};
|
|
126
139
|
export type _360SceneRoute = {
|
|
127
140
|
cameraHeadingOffset?: number;
|
|
128
141
|
overlayID?: number;
|
|
129
142
|
track?: string;
|
|
130
143
|
};
|
|
144
|
+
export type _360ProjectListItem = {
|
|
145
|
+
integrationType: string;
|
|
146
|
+
projectId: string;
|
|
147
|
+
projectName: string;
|
|
148
|
+
providerID: string;
|
|
149
|
+
providerPrefix: string;
|
|
150
|
+
providerSuffix: string;
|
|
151
|
+
timeline: string;
|
|
152
|
+
uniqueId: string;
|
|
153
|
+
};
|
|
131
154
|
export type _360FullProject = {
|
|
132
155
|
dates: _360SceneWithFloors[];
|
|
133
156
|
integrationType: string;
|
|
@@ -159,12 +182,23 @@ export type MobileCaptureSnapshot = {
|
|
|
159
182
|
thumbnailUrl: string;
|
|
160
183
|
};
|
|
161
184
|
export declare enum _360UrlParams {
|
|
162
|
-
DateId = "
|
|
185
|
+
DateId = "dateId",
|
|
163
186
|
Date = "date",
|
|
164
187
|
Floor = "floor",
|
|
165
188
|
Marker = "marker",
|
|
166
189
|
PolarAngle = "polarAngle",
|
|
167
|
-
AzimuthAngle = "azimuthAngle"
|
|
190
|
+
AzimuthAngle = "azimuthAngle",
|
|
191
|
+
Zoom = "zoom",
|
|
192
|
+
User = "user",
|
|
193
|
+
ViewerMode = "viewer_mode",
|
|
194
|
+
ProjectId = "projectId",
|
|
195
|
+
Unit = "unit",
|
|
196
|
+
LockDate = "lockDate",
|
|
197
|
+
LockFloor = "lockFloor",
|
|
198
|
+
LockMarker = "lockMarker",
|
|
199
|
+
IsWidget = "isWidget",
|
|
200
|
+
MediaLocked = "mediaLocked",
|
|
201
|
+
Debug = "debug"
|
|
168
202
|
}
|
|
169
203
|
export declare enum _360AssetType {
|
|
170
204
|
Video = "video",
|
|
@@ -198,7 +232,7 @@ export declare enum PathMarkerColor {
|
|
|
198
232
|
export type _360AssetsQueryParams = {
|
|
199
233
|
page: number;
|
|
200
234
|
limit: number;
|
|
201
|
-
|
|
235
|
+
projectId: string;
|
|
202
236
|
date: DateType;
|
|
203
237
|
floor: string;
|
|
204
238
|
id: string;
|
|
@@ -231,24 +265,7 @@ export type GenerateFloorPayload = {
|
|
|
231
265
|
changedBy: string;
|
|
232
266
|
name?: string;
|
|
233
267
|
mapStyle?: string;
|
|
234
|
-
overlayPositionCorners:
|
|
235
|
-
northEast: {
|
|
236
|
-
lat: number;
|
|
237
|
-
lng: number;
|
|
238
|
-
};
|
|
239
|
-
northWest: {
|
|
240
|
-
lat: number;
|
|
241
|
-
lng: number;
|
|
242
|
-
};
|
|
243
|
-
southWest: {
|
|
244
|
-
lat: number;
|
|
245
|
-
lng: number;
|
|
246
|
-
};
|
|
247
|
-
southEast: {
|
|
248
|
-
lat: number;
|
|
249
|
-
lng: number;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
268
|
+
overlayPositionCorners: _360OverlayPosition;
|
|
252
269
|
};
|
|
253
270
|
export type _360QueueQueryParams = {
|
|
254
271
|
projectId?: string;
|
|
@@ -273,4 +290,104 @@ export type Generate360MapRequestPayload = {
|
|
|
273
290
|
cameraOffset: string;
|
|
274
291
|
startPoint: string;
|
|
275
292
|
endPoint: string;
|
|
293
|
+
drawingId?: number;
|
|
294
|
+
markers?: Array<{
|
|
295
|
+
position: {
|
|
296
|
+
x: number;
|
|
297
|
+
y: number;
|
|
298
|
+
z: number;
|
|
299
|
+
};
|
|
300
|
+
}>;
|
|
301
|
+
startPointIndex?: number;
|
|
302
|
+
endPointIndex?: number;
|
|
303
|
+
};
|
|
304
|
+
export declare enum EModelsType {
|
|
305
|
+
FBX = "FBX",
|
|
306
|
+
PointCloud = "PLY"
|
|
307
|
+
}
|
|
308
|
+
export type _360FloorRef = {
|
|
309
|
+
projectID: string;
|
|
310
|
+
dateID: string;
|
|
311
|
+
floorID: string;
|
|
312
|
+
};
|
|
313
|
+
export type _360Vector3 = {
|
|
314
|
+
x: number;
|
|
315
|
+
y: number;
|
|
316
|
+
z: number;
|
|
317
|
+
};
|
|
318
|
+
export type _360MarkerData = {
|
|
319
|
+
cameraPosition: _360Vector3;
|
|
320
|
+
nextRoomId: string;
|
|
321
|
+
position: _360Vector3;
|
|
322
|
+
geolocation: {
|
|
323
|
+
latitude: number;
|
|
324
|
+
longitude: number;
|
|
325
|
+
};
|
|
326
|
+
rotation: {
|
|
327
|
+
_order: string;
|
|
328
|
+
_x: number;
|
|
329
|
+
_y: number;
|
|
330
|
+
_z: number;
|
|
331
|
+
isEuler: boolean;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
export type _360Route = {
|
|
335
|
+
overlayID?: number;
|
|
336
|
+
track?: string;
|
|
337
|
+
cameraHeadingOffset?: number;
|
|
338
|
+
};
|
|
339
|
+
export type _360CalibrationDetails = {
|
|
340
|
+
baseOriginOf360Viewer?: _360Vector3;
|
|
341
|
+
baseOriginOfForgeViewer?: _360Vector3;
|
|
342
|
+
rotationMatrix?: {
|
|
343
|
+
elements: number[];
|
|
344
|
+
};
|
|
345
|
+
scaleMatrix?: {
|
|
346
|
+
elements: number[];
|
|
347
|
+
};
|
|
348
|
+
};
|
|
349
|
+
export type _360FloorData = {
|
|
350
|
+
_3DMarkers: _360MarkerData[];
|
|
351
|
+
fbxModel: string | null;
|
|
352
|
+
fbxModelHQ: string | null;
|
|
353
|
+
pointCloudModelHQ: string | null;
|
|
354
|
+
initialMarker: string;
|
|
355
|
+
cameraRotation: _360CameraRotation;
|
|
356
|
+
steps: number;
|
|
357
|
+
route: _360Route | null;
|
|
358
|
+
sceneScale: number;
|
|
359
|
+
modelViewerFeatureFlag: boolean;
|
|
360
|
+
imagesOnlyFeatureFlag: boolean;
|
|
361
|
+
forgeBIMFeatureFlag: boolean;
|
|
362
|
+
isForgeGravityEnabled: boolean;
|
|
363
|
+
initialForgeView: Record<string, unknown> | null;
|
|
364
|
+
calibrationDetails: _360CalibrationDetails;
|
|
365
|
+
enhancedLightFeatureFlag: boolean;
|
|
366
|
+
};
|
|
367
|
+
export type _360PinData = {
|
|
368
|
+
position: _360Vector3;
|
|
369
|
+
pinType: string;
|
|
370
|
+
name: string;
|
|
371
|
+
pinId?: string;
|
|
372
|
+
cameraExid?: string;
|
|
373
|
+
currentRoom?: string;
|
|
374
|
+
cameraRotation?: {
|
|
375
|
+
polarAngle: number;
|
|
376
|
+
azimuthAngle: number;
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
export type _360ForgeTimelineItem = {
|
|
380
|
+
taskNumber: number;
|
|
381
|
+
taskID: string;
|
|
382
|
+
actualStartDate: string;
|
|
383
|
+
actualEndDate: string;
|
|
384
|
+
plannedStartDate: string;
|
|
385
|
+
plannedEndDate: string;
|
|
386
|
+
objectIDs: number[];
|
|
387
|
+
};
|
|
388
|
+
export type _360ForgeProject = {
|
|
389
|
+
urns?: Array<{
|
|
390
|
+
urn: string;
|
|
391
|
+
}>;
|
|
392
|
+
timeline?: _360ForgeTimelineItem[];
|
|
276
393
|
};
|
|
@@ -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
|
+
}
|
|
@@ -261,6 +261,8 @@ export declare enum AnalyticsEvent {
|
|
|
261
261
|
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
262
|
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
263
|
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
264
|
+
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
265
|
+
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
264
266
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
265
267
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
266
268
|
RecordingsCreateClip = "CreateClip",
|
|
@@ -282,16 +284,6 @@ export declare enum AnalyticsEvent {
|
|
|
282
284
|
SharingSortBy = "SortBy",
|
|
283
285
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
284
286
|
ThreeSixtyGallery = "Gallery",
|
|
285
|
-
ThreeSixtyGalleryFilterAssetTypes = "Gallery-FilterAssetTypes",
|
|
286
|
-
ThreeSixtyGalleryFilterDateRange = "Gallery-FilterDateRange",
|
|
287
|
-
ThreeSixtyGalleryFilterFeatures = "Gallery-FilterFeatures",
|
|
288
|
-
ThreeSixtyGalleryFilterFloorName = "Gallery-FilterFloorName",
|
|
289
|
-
ThreeSixtyGalleryFilterUploadedBy = "Gallery-FilterUploadedBy",
|
|
290
|
-
ThreeSixtyGalleryTimelineSelectMilestoneItem = "Gallery-TimelineSelectMilestoneItem",
|
|
291
|
-
ThreeSixtyGalleryTimelineDateClick = "Gallery-TimelineDateClick",
|
|
292
|
-
ThreeSixtyGalleryToggleUploadDialog = "Gallery-ToggleUploadDialog",
|
|
293
|
-
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
294
|
-
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
295
287
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
296
288
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
297
289
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -300,6 +292,7 @@ export declare enum AnalyticsEvent {
|
|
|
300
292
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
301
293
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
302
294
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
295
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
303
296
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
304
297
|
ThreeSixtyLockCompare = "LockCompare",
|
|
305
298
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -310,6 +303,7 @@ export declare enum AnalyticsEvent {
|
|
|
310
303
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
311
304
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
312
305
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
306
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
313
307
|
ThreeSixtySaveComment = "SaveComment",
|
|
314
308
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
315
309
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -319,6 +313,7 @@ export declare enum AnalyticsEvent {
|
|
|
319
313
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
320
314
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
321
315
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
316
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
322
317
|
ThreeSixtyTourPause = "Tour-Pause",
|
|
323
318
|
ThreeSixtyTourPlay = "Tour-Play",
|
|
324
319
|
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
@@ -593,5 +588,26 @@ export declare enum AnalyticsEvent {
|
|
|
593
588
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
594
589
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
595
590
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
596
|
-
AskAICloseChat = "AskAI-CloseChat"
|
|
591
|
+
AskAICloseChat = "AskAI-CloseChat",
|
|
592
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
593
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
594
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
595
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
596
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
597
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
598
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
599
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
600
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
601
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
602
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
603
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
604
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
605
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
606
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
607
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
608
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
609
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
610
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
611
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
612
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
597
613
|
}
|
package/dist/api/types/anpr.d.ts
CHANGED
|
@@ -104,11 +104,40 @@ export declare enum AnprEventStatus {
|
|
|
104
104
|
export type AnprBulkUpdateRequestPayload = {
|
|
105
105
|
anprEventsIds: number[];
|
|
106
106
|
action: AnprEventStatus;
|
|
107
|
-
updatedBy: string;
|
|
108
107
|
};
|
|
109
108
|
export type AnprUpdateRequestPayload = {
|
|
110
109
|
plateNumber: string;
|
|
111
110
|
vehicleType: GateReportVehicleType;
|
|
112
111
|
direction: AnprDirection;
|
|
113
|
-
|
|
112
|
+
};
|
|
113
|
+
export declare enum AnprExtractionStatus {
|
|
114
|
+
Pending = "pending",
|
|
115
|
+
Running = "running",
|
|
116
|
+
Completed = "completed",
|
|
117
|
+
Failed = "failed"
|
|
118
|
+
}
|
|
119
|
+
export declare enum AnprExtractionSaveMode {
|
|
120
|
+
All = "all",
|
|
121
|
+
AiDbOnly = "ai_db_only",
|
|
122
|
+
ImagesOnly = "images_only"
|
|
123
|
+
}
|
|
124
|
+
export type AnprExtraction = {
|
|
125
|
+
id: number;
|
|
126
|
+
cameraId: number;
|
|
127
|
+
userId: number | null;
|
|
128
|
+
startDate: string;
|
|
129
|
+
endDate: string;
|
|
130
|
+
status: AnprExtractionStatus;
|
|
131
|
+
totalRecords: number;
|
|
132
|
+
error: string | null;
|
|
133
|
+
saveMode: AnprExtractionSaveMode;
|
|
134
|
+
startedAt: string | null;
|
|
135
|
+
completedAt: string | null;
|
|
136
|
+
insertedAt: string;
|
|
137
|
+
updatedAt: string;
|
|
138
|
+
};
|
|
139
|
+
export type AnprExtractionCreatePayload = {
|
|
140
|
+
startDate: string;
|
|
141
|
+
endDate: string;
|
|
142
|
+
saveMode?: AnprExtractionSaveMode;
|
|
114
143
|
};
|
|
@@ -33,6 +33,24 @@ export declare enum AuditLogActionType {
|
|
|
33
33
|
BIM_NOTE = "bim_note",
|
|
34
34
|
GATE_REPORT_NOTE = "gate_report_note"
|
|
35
35
|
}
|
|
36
|
+
export declare enum AuditLogEntity {
|
|
37
|
+
Cameras = "cameras",
|
|
38
|
+
Projects = "projects",
|
|
39
|
+
Layers = "layers",
|
|
40
|
+
Routers = "routers",
|
|
41
|
+
Sims = "sims",
|
|
42
|
+
Hdds = "hdds",
|
|
43
|
+
Nvr = "nvr",
|
|
44
|
+
Archives = "archives",
|
|
45
|
+
Users = "users",
|
|
46
|
+
Rois = "rois",
|
|
47
|
+
Kits = "kits",
|
|
48
|
+
Roles = "roles",
|
|
49
|
+
Tags = "tags",
|
|
50
|
+
KitsTags = "kits_tags",
|
|
51
|
+
Oauth = "oauth",
|
|
52
|
+
StorageProviders = "storage_providers"
|
|
53
|
+
}
|
|
36
54
|
export type AuditLog = {
|
|
37
55
|
id: number;
|
|
38
56
|
action: AuditLogActionType;
|
|
@@ -13,13 +13,13 @@ 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;
|
|
20
19
|
firebaseDbLink?: string | null;
|
|
21
20
|
firebaseStorageUrl?: string | null;
|
|
22
21
|
firebaseStorageToken?: string | null;
|
|
22
|
+
forgeTokenServerUrl?: string | null;
|
|
23
23
|
snapshotsURL?: string | null;
|
|
24
24
|
app?: string | null;
|
|
25
25
|
getAuthToken?: () => string | null;
|
|
@@ -29,15 +29,17 @@ export type AxiosEnvironment = {
|
|
|
29
29
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
30
30
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
31
31
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
32
|
+
export type RequestManager = {
|
|
33
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
34
|
+
cancelAll: () => void;
|
|
35
|
+
};
|
|
32
36
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
33
37
|
CancelToken: CancelTokenStatic;
|
|
34
38
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
35
39
|
setToken: (token: string) => void;
|
|
36
40
|
setHeader: (headerName: string, value: any) => void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
resetCancelTokens: () => void;
|
|
40
|
-
cancelRequests: () => void;
|
|
41
|
+
createRequestManager: () => RequestManager;
|
|
42
|
+
requestManager: RequestManager;
|
|
41
43
|
env: AxiosEnvironment;
|
|
42
44
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
43
45
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|
package/dist/api/types/bim.d.ts
CHANGED
|
@@ -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
|
+
};
|