@evercam/api 1.0.0-07cc45493 → 1.0.0-095233f21
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 -23
- package/dist/api/api/adminApi.d.ts +10 -9
- package/dist/api/api/aiApi.d.ts +85 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +23 -7
- package/dist/api/api/ingestApi.d.ts +14 -6
- package/dist/api/types/360.d.ts +111 -42
- package/dist/api/types/aiConfigs.d.ts +102 -12
- package/dist/api/types/analytics.d.ts +12 -8
- package/dist/api/types/auditLogs.d.ts +0 -1
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +2 -4
- package/dist/api/types/bim.d.ts +3 -5
- package/dist/api/types/camera.d.ts +24 -21
- package/dist/api/types/comments.d.ts +7 -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/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 +87 -1
- package/dist/api/types/kit.d.ts +41 -50
- package/dist/api/types/media.d.ts +2 -1
- package/dist/api/types/notification.d.ts +52 -2
- package/dist/api/types/observationEvents.d.ts +141 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +1 -8
- package/dist/api/types/project.d.ts +12 -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 +39 -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/api/types/user.d.ts +15 -3
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1196 -677
- 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 +93 -33
- 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
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;
|
|
@@ -77,7 +77,7 @@ export type _360WalkV2 = {
|
|
|
77
77
|
archive: string;
|
|
78
78
|
date: string;
|
|
79
79
|
deviceSerial: string | null;
|
|
80
|
-
endPosition:
|
|
80
|
+
endPosition: string | null;
|
|
81
81
|
floor: string;
|
|
82
82
|
floorId: number;
|
|
83
83
|
id: number;
|
|
@@ -93,8 +93,9 @@ export type _360WalkV2 = {
|
|
|
93
93
|
projectId: string;
|
|
94
94
|
report: string;
|
|
95
95
|
processingLog: string;
|
|
96
|
+
hasSteps?: boolean;
|
|
96
97
|
route: unknown | null;
|
|
97
|
-
startPosition:
|
|
98
|
+
startPosition: string | null;
|
|
98
99
|
tusLinks: unknown | null;
|
|
99
100
|
updatedAt: string;
|
|
100
101
|
uploadedBy: string;
|
|
@@ -113,13 +114,15 @@ export type _360FloorV2 = {
|
|
|
113
114
|
overlayPosition: _360OverlayPosition;
|
|
114
115
|
insertedAt: string;
|
|
115
116
|
updatedAt: string;
|
|
117
|
+
deletedAt: string | null;
|
|
116
118
|
};
|
|
117
119
|
export type _360Scene = {
|
|
118
120
|
date: string;
|
|
119
|
-
dateID: number;
|
|
121
|
+
dateID: string | number;
|
|
120
122
|
floors: {
|
|
121
123
|
floorID: _360FloorId;
|
|
122
124
|
name: string;
|
|
125
|
+
isValidated?: boolean;
|
|
123
126
|
}[];
|
|
124
127
|
polarAngle: number;
|
|
125
128
|
azimuthAngle: number;
|
|
@@ -150,24 +153,7 @@ export type _360ProjectListItem = {
|
|
|
150
153
|
providerSuffix: string;
|
|
151
154
|
timeline: string;
|
|
152
155
|
uniqueId: string;
|
|
153
|
-
|
|
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[];
|
|
156
|
+
requiresValidation?: boolean;
|
|
171
157
|
};
|
|
172
158
|
export type _360ProjectJsonResponse = {
|
|
173
159
|
dates: _360Scene[];
|
|
@@ -182,12 +168,25 @@ export type MobileCaptureSnapshot = {
|
|
|
182
168
|
thumbnailUrl: string;
|
|
183
169
|
};
|
|
184
170
|
export declare enum _360UrlParams {
|
|
185
|
-
DateId = "
|
|
171
|
+
DateId = "dateId",
|
|
186
172
|
Date = "date",
|
|
187
173
|
Floor = "floor",
|
|
188
174
|
Marker = "marker",
|
|
189
175
|
PolarAngle = "polarAngle",
|
|
190
|
-
AzimuthAngle = "azimuthAngle"
|
|
176
|
+
AzimuthAngle = "azimuthAngle",
|
|
177
|
+
Zoom = "zoom",
|
|
178
|
+
User = "user",
|
|
179
|
+
ViewerMode = "viewer_mode",
|
|
180
|
+
ProjectId = "projectId",
|
|
181
|
+
Unit = "unit",
|
|
182
|
+
LockDate = "lockDate",
|
|
183
|
+
LockFloor = "lockFloor",
|
|
184
|
+
LockMarker = "lockMarker",
|
|
185
|
+
IsWidget = "isWidget",
|
|
186
|
+
MediaLocked = "mediaLocked",
|
|
187
|
+
Debug = "debug",
|
|
188
|
+
RequiresValidation = "requires_validation",
|
|
189
|
+
CommentId = "comment_id"
|
|
191
190
|
}
|
|
192
191
|
export declare enum _360AssetType {
|
|
193
192
|
Video = "video",
|
|
@@ -201,11 +200,6 @@ export declare enum _360AssetLabel {
|
|
|
201
200
|
Walks = "walks",
|
|
202
201
|
MobilePhotos = "mobilePhotos"
|
|
203
202
|
}
|
|
204
|
-
export declare enum _360Feature {
|
|
205
|
-
BIM = "BIM",
|
|
206
|
-
Minimap = "Minimap",
|
|
207
|
-
Minimodel = "Minimodel"
|
|
208
|
-
}
|
|
209
203
|
export declare enum _360IntergrationType {
|
|
210
204
|
Evercam = "Evercam",
|
|
211
205
|
Matterport = "Matterport",
|
|
@@ -218,9 +212,7 @@ export declare enum PathMarkerColor {
|
|
|
218
212
|
End = "#fd7567",
|
|
219
213
|
Default = "#2196F3"
|
|
220
214
|
}
|
|
221
|
-
export type _360AssetsQueryParams = {
|
|
222
|
-
page: number;
|
|
223
|
-
limit: number;
|
|
215
|
+
export type _360AssetsQueryParams = PaginationParams & {
|
|
224
216
|
projectId: string;
|
|
225
217
|
date: DateType;
|
|
226
218
|
floor: string;
|
|
@@ -232,7 +224,7 @@ export type _360AssetsRequestPayload = {
|
|
|
232
224
|
floor: string;
|
|
233
225
|
uploadedBy?: string;
|
|
234
226
|
};
|
|
235
|
-
export type DrawingsRequestPayload = {
|
|
227
|
+
export type DrawingsRequestPayload = PaginationParams & {
|
|
236
228
|
projectId?: string;
|
|
237
229
|
name?: string;
|
|
238
230
|
changedBy?: string;
|
|
@@ -240,10 +232,9 @@ export type DrawingsRequestPayload = {
|
|
|
240
232
|
startDate?: string;
|
|
241
233
|
endDate?: string;
|
|
242
234
|
id?: number;
|
|
243
|
-
page?: number;
|
|
244
|
-
limit?: number;
|
|
245
235
|
paginate?: boolean;
|
|
246
236
|
withAsset?: boolean;
|
|
237
|
+
includeDeleted?: boolean;
|
|
247
238
|
};
|
|
248
239
|
export type GenerateFloorPayload = {
|
|
249
240
|
overlay?: {
|
|
@@ -267,16 +258,16 @@ export type _360AssetsUploadPayload = {
|
|
|
267
258
|
title: string;
|
|
268
259
|
fileExtension: string;
|
|
269
260
|
}[];
|
|
270
|
-
deviceSerial
|
|
271
|
-
startPosition
|
|
272
|
-
endPosition
|
|
273
|
-
isTimelapse
|
|
274
|
-
isImagesOnly
|
|
261
|
+
deviceSerial?: string;
|
|
262
|
+
startPosition?: string;
|
|
263
|
+
endPosition?: string;
|
|
264
|
+
isTimelapse?: boolean;
|
|
265
|
+
isImagesOnly?: boolean;
|
|
275
266
|
};
|
|
276
267
|
export type Generate360MapRequestPayload = {
|
|
277
|
-
dateId: string;
|
|
268
|
+
dateId: string | number;
|
|
278
269
|
floorId: string;
|
|
279
|
-
cameraOffset: string;
|
|
270
|
+
cameraOffset: string | number;
|
|
280
271
|
startPoint: string;
|
|
281
272
|
endPoint: string;
|
|
282
273
|
drawingId?: number;
|
|
@@ -290,3 +281,81 @@ export type Generate360MapRequestPayload = {
|
|
|
290
281
|
startPointIndex?: number;
|
|
291
282
|
endPointIndex?: number;
|
|
292
283
|
};
|
|
284
|
+
export declare enum EModelsType {
|
|
285
|
+
FBX = "FBX",
|
|
286
|
+
PointCloud = "PLY"
|
|
287
|
+
}
|
|
288
|
+
export type _360FloorRef = {
|
|
289
|
+
projectID: string;
|
|
290
|
+
dateID: string | number;
|
|
291
|
+
floorID: _360FloorId;
|
|
292
|
+
};
|
|
293
|
+
export type _360Vector3 = {
|
|
294
|
+
x: number;
|
|
295
|
+
y: number;
|
|
296
|
+
z: number;
|
|
297
|
+
};
|
|
298
|
+
export type _360MarkerData = {
|
|
299
|
+
cameraPosition: _360Vector3;
|
|
300
|
+
nextRoomId: string;
|
|
301
|
+
position: _360Vector3;
|
|
302
|
+
geolocation?: {
|
|
303
|
+
latitude: number;
|
|
304
|
+
longitude: number;
|
|
305
|
+
};
|
|
306
|
+
rotation: {
|
|
307
|
+
_order: string;
|
|
308
|
+
_x: number;
|
|
309
|
+
_y: number;
|
|
310
|
+
_z: number;
|
|
311
|
+
isEuler: boolean;
|
|
312
|
+
x?: number;
|
|
313
|
+
y?: number;
|
|
314
|
+
z?: number;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
export type _360Route = {
|
|
318
|
+
overlayID?: number;
|
|
319
|
+
track?: string;
|
|
320
|
+
cameraHeadingOffset?: number;
|
|
321
|
+
};
|
|
322
|
+
export type _360CalibrationDetails = {
|
|
323
|
+
baseOriginOf360Viewer?: _360Vector3;
|
|
324
|
+
baseOriginOfForgeViewer?: _360Vector3;
|
|
325
|
+
rotationMatrix?: {
|
|
326
|
+
elements: number[];
|
|
327
|
+
};
|
|
328
|
+
scaleMatrix?: {
|
|
329
|
+
elements: number[];
|
|
330
|
+
};
|
|
331
|
+
};
|
|
332
|
+
export type _360FloorData = {
|
|
333
|
+
_3DMarkers: _360MarkerData[];
|
|
334
|
+
fbxModel: string | null;
|
|
335
|
+
fbxModelHQ: string | null;
|
|
336
|
+
pointCloudModelHQ: string | null;
|
|
337
|
+
initialMarker: string;
|
|
338
|
+
cameraRotation: _360CameraRotation;
|
|
339
|
+
steps: number;
|
|
340
|
+
route: _360Route | null;
|
|
341
|
+
sceneScale: number;
|
|
342
|
+
modelViewerFeatureFlag: boolean;
|
|
343
|
+
imagesOnlyFeatureFlag: boolean;
|
|
344
|
+
forgeBIMFeatureFlag: boolean;
|
|
345
|
+
isForgeGravityEnabled: boolean;
|
|
346
|
+
initialForgeView: ForgeView | null;
|
|
347
|
+
calibrationDetails: _360CalibrationDetails;
|
|
348
|
+
enhancedLightFeatureFlag: boolean;
|
|
349
|
+
};
|
|
350
|
+
export type _360PinData = {
|
|
351
|
+
position: _360Vector3;
|
|
352
|
+
pinType: string;
|
|
353
|
+
name: string;
|
|
354
|
+
pinId?: string;
|
|
355
|
+
cameraExid?: string;
|
|
356
|
+
currentRoom?: string;
|
|
357
|
+
cameraRotation?: {
|
|
358
|
+
polarAngle: number;
|
|
359
|
+
azimuthAngle: number;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { PaginatedItems, PaginationParams } from "@evercam/api/types";
|
|
1
2
|
export declare enum AiApp {
|
|
2
3
|
GateReport = "gate_report",
|
|
3
4
|
Ppe = "ppe",
|
|
4
|
-
SiteAnalytics = "site_analytics"
|
|
5
|
+
SiteAnalytics = "site_analytics",
|
|
6
|
+
Observations360 = "observations_360"
|
|
5
7
|
}
|
|
6
8
|
export declare enum AiProvider {
|
|
7
9
|
Gemini = "gemini",
|
|
@@ -11,7 +13,8 @@ export declare enum AiProvider {
|
|
|
11
13
|
export declare enum AiConfigsPromptDialogMode {
|
|
12
14
|
Create = "create",
|
|
13
15
|
Edit = "edit",
|
|
14
|
-
View = "view"
|
|
16
|
+
View = "view",
|
|
17
|
+
Subprompt = "subprompt"
|
|
15
18
|
}
|
|
16
19
|
export declare enum AiConfigsKeyDialogMode {
|
|
17
20
|
Create = "create",
|
|
@@ -45,6 +48,11 @@ export declare enum AiPromptModel {
|
|
|
45
48
|
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
46
49
|
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
47
50
|
}
|
|
51
|
+
export declare enum AiPromptType {
|
|
52
|
+
Prompt = "prompt",
|
|
53
|
+
Parent = "parent",
|
|
54
|
+
Subprompt = "subprompt"
|
|
55
|
+
}
|
|
48
56
|
export interface AiPrompt {
|
|
49
57
|
id: number;
|
|
50
58
|
title: string | null;
|
|
@@ -56,6 +64,9 @@ export interface AiPrompt {
|
|
|
56
64
|
createdBy: string;
|
|
57
65
|
createdAt: string;
|
|
58
66
|
updatedAt: string;
|
|
67
|
+
promptType: AiPromptType;
|
|
68
|
+
parentId: number | null;
|
|
69
|
+
subpromptCount: number;
|
|
59
70
|
}
|
|
60
71
|
export interface AiPromptCreatePayload {
|
|
61
72
|
title?: string | null;
|
|
@@ -64,6 +75,7 @@ export interface AiPromptCreatePayload {
|
|
|
64
75
|
model?: string | null;
|
|
65
76
|
prompt: string;
|
|
66
77
|
outputSchema?: Record<string, unknown> | null;
|
|
78
|
+
promptType?: AiPromptType.Prompt | AiPromptType.Parent;
|
|
67
79
|
}
|
|
68
80
|
export interface AiPromptUpdatePayload {
|
|
69
81
|
title?: string | null;
|
|
@@ -73,23 +85,23 @@ export interface AiPromptUpdatePayload {
|
|
|
73
85
|
prompt?: string;
|
|
74
86
|
outputSchema?: Record<string, unknown> | null;
|
|
75
87
|
}
|
|
76
|
-
export type AiPromptQueryParams = {
|
|
88
|
+
export type AiPromptQueryParams = PaginationParams & {
|
|
77
89
|
app?: string;
|
|
78
90
|
purpose?: string;
|
|
79
91
|
model?: string;
|
|
80
92
|
search?: string;
|
|
81
93
|
createdBy?: string;
|
|
82
|
-
|
|
83
|
-
|
|
94
|
+
promptType?: AiPromptType;
|
|
95
|
+
includeSubprompts?: boolean;
|
|
84
96
|
};
|
|
85
|
-
export interface
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
to: number;
|
|
97
|
+
export interface AiSubpromptCreatePayload {
|
|
98
|
+
title?: string | null;
|
|
99
|
+
purpose: string;
|
|
100
|
+
model?: string | null;
|
|
101
|
+
prompt: string;
|
|
102
|
+
outputSchema?: Record<string, unknown> | null;
|
|
92
103
|
}
|
|
104
|
+
export type AiPromptListResponse = PaginatedItems<AiPrompt>;
|
|
93
105
|
export interface AiPromptCreateResponse {
|
|
94
106
|
created: boolean;
|
|
95
107
|
data: AiPrompt;
|
|
@@ -152,3 +164,81 @@ export interface AiApiKeyDeleteResponse {
|
|
|
152
164
|
count: number;
|
|
153
165
|
message: string;
|
|
154
166
|
}
|
|
167
|
+
export declare enum AiObservationFeasibilityStatus {
|
|
168
|
+
Prod = "prod",
|
|
169
|
+
Beta = "beta",
|
|
170
|
+
Parked = "parked"
|
|
171
|
+
}
|
|
172
|
+
export declare enum AiObservationTimeDetection {
|
|
173
|
+
PerSecond = "per_second",
|
|
174
|
+
PerMinute = "per_minute",
|
|
175
|
+
Hourly = "hourly",
|
|
176
|
+
Daily = "daily"
|
|
177
|
+
}
|
|
178
|
+
export interface AiObservationFeasibilityConfig {
|
|
179
|
+
bg: string;
|
|
180
|
+
fg: string;
|
|
181
|
+
border: string;
|
|
182
|
+
label: string;
|
|
183
|
+
}
|
|
184
|
+
export declare const AI_OBSERVATION_FEASIBILITY_CONFIGS: Record<AiObservationFeasibilityStatus, AiObservationFeasibilityConfig>;
|
|
185
|
+
export interface AiObservationType {
|
|
186
|
+
id: number;
|
|
187
|
+
observationCode: string;
|
|
188
|
+
name: string;
|
|
189
|
+
description: string | null;
|
|
190
|
+
type: string;
|
|
191
|
+
rules: Record<string, unknown> | null;
|
|
192
|
+
timeDetection: string | null;
|
|
193
|
+
every: number | null;
|
|
194
|
+
severity: number | null;
|
|
195
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
196
|
+
promptId: number | null;
|
|
197
|
+
promptName: string | null;
|
|
198
|
+
insertedAt: string;
|
|
199
|
+
updatedAt: string;
|
|
200
|
+
}
|
|
201
|
+
export interface AiObservationTypeCreatePayload {
|
|
202
|
+
observationCode: string;
|
|
203
|
+
name: string;
|
|
204
|
+
description?: string | null;
|
|
205
|
+
type: string;
|
|
206
|
+
rules?: Record<string, unknown> | null;
|
|
207
|
+
timeDetection?: string | null;
|
|
208
|
+
every?: number | null;
|
|
209
|
+
severity?: number | null;
|
|
210
|
+
feasibilityStatus: AiObservationFeasibilityStatus;
|
|
211
|
+
promptId?: number | null;
|
|
212
|
+
}
|
|
213
|
+
export type AiObservationTypeUpdatePayload = Partial<Omit<AiObservationTypeCreatePayload, "observationCode">>;
|
|
214
|
+
export type AiObservationTypeQueryParams = {
|
|
215
|
+
search?: string;
|
|
216
|
+
feasibilityStatus?: string;
|
|
217
|
+
sourceType?: string;
|
|
218
|
+
type?: string;
|
|
219
|
+
page?: number;
|
|
220
|
+
limit?: number;
|
|
221
|
+
};
|
|
222
|
+
export interface AiObservationTypeListResponse {
|
|
223
|
+
items: AiObservationType[];
|
|
224
|
+
total: number;
|
|
225
|
+
page: number;
|
|
226
|
+
limit: number;
|
|
227
|
+
from: number;
|
|
228
|
+
to: number;
|
|
229
|
+
}
|
|
230
|
+
export interface AiObservationTypeCreateResponse {
|
|
231
|
+
created: boolean;
|
|
232
|
+
data: AiObservationType;
|
|
233
|
+
message: string;
|
|
234
|
+
}
|
|
235
|
+
export interface AiObservationTypeUpdateResponse {
|
|
236
|
+
updated: boolean;
|
|
237
|
+
id: number | string;
|
|
238
|
+
message: string;
|
|
239
|
+
}
|
|
240
|
+
export interface AiObservationTypeDeleteResponse {
|
|
241
|
+
deleted: boolean;
|
|
242
|
+
count: number;
|
|
243
|
+
message: string;
|
|
244
|
+
}
|
|
@@ -66,6 +66,7 @@ export declare enum AnalyticsEvent {
|
|
|
66
66
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
67
67
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
68
68
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
69
|
+
SettingsAccountRevokeAuthorizedApp = "RevokeAuthorizedApp",
|
|
69
70
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
70
71
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
71
72
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
@@ -79,6 +80,9 @@ export declare enum AnalyticsEvent {
|
|
|
79
80
|
SettingsConnectorsRemoveVoyageControlConnection = "RemoveVoyageControl",
|
|
80
81
|
SettingsConnectorsToggleConnectorPromptDialog = "ToggleConnectorPromptDialog",
|
|
81
82
|
SettingsConnectorsToggleVoyageControlDialog = "ToggleVoyageControlDialog",
|
|
83
|
+
SettingsConnectorsConnectToHammertech = "ConnectToHammertech",
|
|
84
|
+
SettingsConnectorsRemoveHammertechConnection = "RemoveHammertech",
|
|
85
|
+
SettingsConnectorsToggleHammertechDialog = "ToggleHammertechDialog",
|
|
82
86
|
WidgetsSelectTypeThreeSixty = "Widgets-SelectType360",
|
|
83
87
|
WidgetsSelectProject = "SelectProject",
|
|
84
88
|
WidgetsSelect360Date = "Select360Date",
|
|
@@ -192,6 +196,7 @@ export declare enum AnalyticsEvent {
|
|
|
192
196
|
XraySendToConnectorProcoreObservations = "Xray-SendToConnector-Procore-Observations",
|
|
193
197
|
XraySendToConnectorAconex = "Xray-SendToConnector-Aconex",
|
|
194
198
|
XraySendToConnectorAutodesk = "Xray-SendToConnector-Autodesk",
|
|
199
|
+
XraySendToConnectorHammerTech = "Xray-SendToConnector-HammerTech",
|
|
195
200
|
WeatherGoBackDate = "Weather-GoBackDate",
|
|
196
201
|
WeatherGoForwardDate = "Weather-GoForwardDate",
|
|
197
202
|
WeatherReportExportFile = "ExportFile",
|
|
@@ -261,6 +266,7 @@ export declare enum AnalyticsEvent {
|
|
|
261
266
|
MarkUpToolSendToConnectorProcoreObservations = "MarkUpTool-SendToConnector-Procore-Observations",
|
|
262
267
|
MarkUpToolSendToConnectorAconex = "MarkUpTool-SendToConnector-Aconex",
|
|
263
268
|
MarkUpToolSendToConnectorAutodesk = "MarkUpTool-SendToConnector-Autodesk",
|
|
269
|
+
MarkUpToolSendToConnectorHammerTech = "MarkUpTool-SendToConnector-HammerTech",
|
|
264
270
|
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
265
271
|
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
266
272
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
@@ -292,6 +298,7 @@ export declare enum AnalyticsEvent {
|
|
|
292
298
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
293
299
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
294
300
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
301
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
295
302
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
296
303
|
ThreeSixtyLockCompare = "LockCompare",
|
|
297
304
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -312,13 +319,7 @@ export declare enum AnalyticsEvent {
|
|
|
312
319
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
313
320
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
314
321
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
315
|
-
|
|
316
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
317
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
318
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
319
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
320
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
321
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
322
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
322
323
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
323
324
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
324
325
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -341,7 +342,6 @@ export declare enum AnalyticsEvent {
|
|
|
341
342
|
DroneResetView = "ResetView",
|
|
342
343
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
343
344
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
344
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
345
345
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
346
346
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
347
347
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -352,6 +352,7 @@ export declare enum AnalyticsEvent {
|
|
|
352
352
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
353
353
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
354
354
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
355
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
355
356
|
DroneToggleQualityMode = "ChooseQuality",
|
|
356
357
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
357
358
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -398,6 +399,8 @@ export declare enum AnalyticsEvent {
|
|
|
398
399
|
DrawingClickHome = "ClickHome",
|
|
399
400
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
400
401
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
402
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
403
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
401
404
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
402
405
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
403
406
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -483,6 +486,7 @@ export declare enum AnalyticsEvent {
|
|
|
483
486
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
484
487
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
485
488
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
489
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
486
490
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
487
491
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
488
492
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -3,6 +3,10 @@ export declare enum RoleResourceType {
|
|
|
3
3
|
Camera = "camera",
|
|
4
4
|
Project = "project"
|
|
5
5
|
}
|
|
6
|
+
export declare enum RoleAssignmentLogAction {
|
|
7
|
+
Assign = "assign",
|
|
8
|
+
Unassign = "unassign"
|
|
9
|
+
}
|
|
6
10
|
export type RoleSubRole = {
|
|
7
11
|
resourceId: string;
|
|
8
12
|
roleId: number;
|
|
@@ -59,3 +63,70 @@ export type AuthzScopeCreatePayload = {
|
|
|
59
63
|
export type AuthzScopeUpdatePayload = Partial<AuthzScopeCreatePayload>;
|
|
60
64
|
export declare function isProjectRole(role: Role): role is ProjectResourceRole;
|
|
61
65
|
export declare function isCameraRole(role: Role): role is CameraResourceRole;
|
|
66
|
+
export type RoleAssignmentUserDetails = {
|
|
67
|
+
browser?: string | null;
|
|
68
|
+
device?: string | null;
|
|
69
|
+
os?: string | null;
|
|
70
|
+
country?: string | null;
|
|
71
|
+
countryCode?: string | null;
|
|
72
|
+
ip?: string | null;
|
|
73
|
+
impersonatedBy?: string | null;
|
|
74
|
+
};
|
|
75
|
+
export type RoleAssignmentRowUserDetails = RoleAssignmentUserDetails & {
|
|
76
|
+
via?: string | null;
|
|
77
|
+
inviteId?: number | null;
|
|
78
|
+
inviteEmail?: string | null;
|
|
79
|
+
};
|
|
80
|
+
export type RoleAssignmentLog = {
|
|
81
|
+
id: number;
|
|
82
|
+
action: RoleAssignmentLogAction;
|
|
83
|
+
assignerId: number | null;
|
|
84
|
+
assignerEmail: string | null;
|
|
85
|
+
assigneeId: number | null;
|
|
86
|
+
assigneeEmail: string;
|
|
87
|
+
roleId: number | null;
|
|
88
|
+
roleName: string | null;
|
|
89
|
+
previousRoleId: number | null;
|
|
90
|
+
previousRoleName: string | null;
|
|
91
|
+
scope: RoleResourceType;
|
|
92
|
+
projectExid: string | null;
|
|
93
|
+
cameraExid: string | null;
|
|
94
|
+
cameraName: string | null;
|
|
95
|
+
projectName: string | null;
|
|
96
|
+
ip: string | null;
|
|
97
|
+
userDetails: RoleAssignmentRowUserDetails | null;
|
|
98
|
+
insertedAt: string;
|
|
99
|
+
};
|
|
100
|
+
export type RoleAssignmentResourceRef = {
|
|
101
|
+
exid: string;
|
|
102
|
+
name: string | null;
|
|
103
|
+
};
|
|
104
|
+
export type RoleAssignmentLogBatch = {
|
|
105
|
+
groupId: string;
|
|
106
|
+
batchId: string | null;
|
|
107
|
+
batchSize: number;
|
|
108
|
+
assigneeId: number | null;
|
|
109
|
+
assigneeEmail: string;
|
|
110
|
+
actions: RoleAssignmentLogAction[];
|
|
111
|
+
projects: RoleAssignmentResourceRef[];
|
|
112
|
+
ip: string | null;
|
|
113
|
+
userDetails: RoleAssignmentUserDetails | null;
|
|
114
|
+
insertedAt: string;
|
|
115
|
+
children: RoleAssignmentLog[];
|
|
116
|
+
};
|
|
117
|
+
export type RoleAssignmentLogsParams = {
|
|
118
|
+
page?: number;
|
|
119
|
+
limit?: number;
|
|
120
|
+
sort?: string;
|
|
121
|
+
action?: RoleAssignmentLogAction;
|
|
122
|
+
roleId?: number;
|
|
123
|
+
roleName?: string;
|
|
124
|
+
assigneeEmail?: string;
|
|
125
|
+
assignerEmail?: string;
|
|
126
|
+
scope?: RoleResourceType;
|
|
127
|
+
projectExid?: string;
|
|
128
|
+
cameraExid?: string;
|
|
129
|
+
ip?: string;
|
|
130
|
+
from?: string;
|
|
131
|
+
to?: string;
|
|
132
|
+
};
|
|
@@ -8,8 +8,28 @@ export declare enum AutomationProvider {
|
|
|
8
8
|
export declare enum AutomationType {
|
|
9
9
|
Photo = "photo",
|
|
10
10
|
Compare = "compare",
|
|
11
|
-
GateReport = "gate_report"
|
|
11
|
+
GateReport = "gate_report",
|
|
12
|
+
Weather = "weather"
|
|
12
13
|
}
|
|
14
|
+
export declare enum AutomationWeatherReportType {
|
|
15
|
+
Forecast = "forecast",
|
|
16
|
+
History = "history"
|
|
17
|
+
}
|
|
18
|
+
export declare enum AutomationExportFormat {
|
|
19
|
+
Pdf = "pdf",
|
|
20
|
+
Csv = "csv"
|
|
21
|
+
}
|
|
22
|
+
export declare enum AutomationWeatherDataGranularity {
|
|
23
|
+
Daily = "daily",
|
|
24
|
+
Hourly = "hourly"
|
|
25
|
+
}
|
|
26
|
+
export type AutomationWeatherConfig = {
|
|
27
|
+
reportType: AutomationWeatherReportType;
|
|
28
|
+
exportFormat: AutomationExportFormat;
|
|
29
|
+
dataGranularity?: AutomationWeatherDataGranularity;
|
|
30
|
+
selectedColumns?: string[];
|
|
31
|
+
forecastDays?: number;
|
|
32
|
+
};
|
|
13
33
|
export type AutomationCompareConfig = {
|
|
14
34
|
compareDelay: number;
|
|
15
35
|
};
|
|
@@ -22,7 +42,6 @@ export type AutomationGateReportConfig = {
|
|
|
22
42
|
fileType: string;
|
|
23
43
|
period: number;
|
|
24
44
|
columns: string[];
|
|
25
|
-
recipients: string | string[];
|
|
26
45
|
};
|
|
27
46
|
export type AutomationEmailProviderConfig = {
|
|
28
47
|
cameraExids?: CameraExid[];
|
|
@@ -51,7 +70,7 @@ export type AutomationAutodeskProviderConfig = {
|
|
|
51
70
|
folderName: string;
|
|
52
71
|
};
|
|
53
72
|
export type AutomationProviderConfig = AutomationEmailProviderConfig | AutomationProcoreProviderConfig | AutomationAconexProviderConfig | AutomationAutodeskProviderConfig;
|
|
54
|
-
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | {};
|
|
73
|
+
export type AutomationOptionsConfig = AutomationCompareConfig | AutomationGateReportConfig | AutomationWeatherConfig | {};
|
|
55
74
|
export type AutomationConfig = AutomationProviderConfig & AutomationOptionsConfig;
|
|
56
75
|
export type Automation = {
|
|
57
76
|
id?: number;
|
|
@@ -81,8 +100,17 @@ export type AutomationProviderOption = {
|
|
|
81
100
|
iconSize?: string;
|
|
82
101
|
requiresConnection: boolean;
|
|
83
102
|
};
|
|
103
|
+
export type AutomationTypeOption = {
|
|
104
|
+
labelTranslationKey: string;
|
|
105
|
+
descriptionTranslationKey: string;
|
|
106
|
+
label?: string;
|
|
107
|
+
description?: string;
|
|
108
|
+
value: AutomationType;
|
|
109
|
+
icon: string;
|
|
110
|
+
iconType?: string;
|
|
111
|
+
};
|
|
84
112
|
export type FormattedAutomation = {
|
|
85
|
-
cameraExids
|
|
113
|
+
cameraExids?: string;
|
|
86
114
|
name: string;
|
|
87
115
|
subject: string;
|
|
88
116
|
provider: AutomationProvider;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { AxiosError, AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelTokenSource, CancelTokenStatic } from "axios";
|
|
2
2
|
import { Swr } from "@evercam/api/api/client/swr/Swr";
|
|
3
|
-
export type TimedRequest<T> = Promise<AxiosResponse<T> & {
|
|
4
|
-
duration: number;
|
|
5
|
-
error?: AxiosError;
|
|
6
|
-
}>;
|
|
7
3
|
export type AxiosEnvironment = {
|
|
8
4
|
baseUrl?: string | null;
|
|
9
5
|
stagingAiApiUrl?: string | null;
|
|
@@ -16,6 +12,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 {
|