@evercam/api 1.0.0-fefe23b74 → 1.0.0-ff2190f47
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 +26 -15
- package/dist/api/api/adminApi.d.ts +20 -7
- package/dist/api/api/aiApi.d.ts +67 -2
- package/dist/api/api/authzApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +23 -18
- package/dist/api/api/evercamLabsApi.d.ts +1 -12
- package/dist/api/api/index.d.ts +1 -0
- package/dist/api/api/ingestApi.d.ts +37 -32
- package/dist/api/api/workflowsApi.d.ts +15 -0
- package/dist/api/types/360.d.ts +29 -59
- package/dist/api/types/admin.d.ts +1 -1
- package/dist/api/types/aiConfigs.d.ts +102 -12
- package/dist/api/types/analytics.d.ts +25 -23
- package/dist/api/types/apiKey.d.ts +70 -0
- package/dist/api/types/auditLogs.d.ts +32 -11
- package/dist/api/types/authz.d.ts +34 -9
- package/dist/api/types/automation.d.ts +32 -4
- package/dist/api/types/axios.d.ts +1 -4
- package/dist/api/types/bim.d.ts +3 -5
- package/dist/api/types/camera.d.ts +27 -22
- package/dist/api/types/comments.d.ts +7 -1
- package/dist/api/types/company.d.ts +1 -2
- package/dist/api/types/compare.d.ts +1 -1
- package/dist/api/types/drone.d.ts +1 -2
- package/dist/api/types/errors.d.ts +7 -2
- package/dist/api/types/gateReport.d.ts +0 -11
- package/dist/api/types/gateReportManagement.d.ts +2 -7
- package/dist/api/types/index.d.ts +4 -2
- package/dist/api/types/ingest.d.ts +169 -26
- package/dist/api/types/kit.d.ts +7 -100
- package/dist/api/types/media.d.ts +1 -2
- 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 +39 -44
- package/dist/api/types/planner.d.ts +1 -8
- package/dist/api/types/project.d.ts +15 -3
- 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 +5 -22
- 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/siteView.d.ts +12 -7
- 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 -0
- package/dist/api/types/workflows.d.ts +108 -0
- package/dist/api/utils.d.ts +1 -0
- package/dist/index.js +1271 -903
- 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 +185 -53
- package/dist/shared/types/droneUpload.d.ts +93 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +4 -0
- package/dist/shared/types/report.d.ts +101 -0
- package/dist/shared/utils/datePickerValue.d.ts +36 -0
- package/dist/shared/utils/datePresets.d.ts +31 -0
- package/package.json +1 -1
- package/dist/api/types/copilot.d.ts +0 -162
- 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;
|
|
@@ -61,6 +61,7 @@ export type _360Floor = {
|
|
|
61
61
|
imagesOnlyFeatureFlag?: boolean;
|
|
62
62
|
forgeBIMFeatureFlag?: boolean;
|
|
63
63
|
isForgeGravityEnabled?: boolean;
|
|
64
|
+
bimHeight?: number;
|
|
64
65
|
initialForgeView?: ForgeView | null;
|
|
65
66
|
enhancedLightFeatureFlag?: boolean;
|
|
66
67
|
calibrationDetails?: Record<string, unknown>;
|
|
@@ -77,7 +78,7 @@ export type _360WalkV2 = {
|
|
|
77
78
|
archive: string;
|
|
78
79
|
date: string;
|
|
79
80
|
deviceSerial: string | null;
|
|
80
|
-
endPosition:
|
|
81
|
+
endPosition: string | null;
|
|
81
82
|
floor: string;
|
|
82
83
|
floorId: number;
|
|
83
84
|
id: number;
|
|
@@ -93,8 +94,9 @@ export type _360WalkV2 = {
|
|
|
93
94
|
projectId: string;
|
|
94
95
|
report: string;
|
|
95
96
|
processingLog: string;
|
|
97
|
+
hasSteps?: boolean;
|
|
96
98
|
route: unknown | null;
|
|
97
|
-
startPosition:
|
|
99
|
+
startPosition: string | null;
|
|
98
100
|
tusLinks: unknown | null;
|
|
99
101
|
updatedAt: string;
|
|
100
102
|
uploadedBy: string;
|
|
@@ -121,6 +123,7 @@ export type _360Scene = {
|
|
|
121
123
|
floors: {
|
|
122
124
|
floorID: _360FloorId;
|
|
123
125
|
name: string;
|
|
126
|
+
isValidated?: boolean;
|
|
124
127
|
}[];
|
|
125
128
|
polarAngle: number;
|
|
126
129
|
azimuthAngle: number;
|
|
@@ -151,24 +154,7 @@ export type _360ProjectListItem = {
|
|
|
151
154
|
providerSuffix: string;
|
|
152
155
|
timeline: string;
|
|
153
156
|
uniqueId: string;
|
|
154
|
-
|
|
155
|
-
export type _360FullProject = {
|
|
156
|
-
dates: _360SceneWithFloors[];
|
|
157
|
-
integrationType: string;
|
|
158
|
-
projectId: string;
|
|
159
|
-
projectName: string;
|
|
160
|
-
providerID: string;
|
|
161
|
-
providerPrefix: string;
|
|
162
|
-
providerSuffix: string;
|
|
163
|
-
timeline: string;
|
|
164
|
-
uniqueId: string;
|
|
165
|
-
};
|
|
166
|
-
export type _360FullFloor = _360Floor & {
|
|
167
|
-
id: _360FloorId;
|
|
168
|
-
name: string;
|
|
169
|
-
};
|
|
170
|
-
export type _360SceneWithFloors = _360Scene & {
|
|
171
|
-
floors: _360FullFloor[];
|
|
157
|
+
requiresValidation?: boolean;
|
|
172
158
|
};
|
|
173
159
|
export type _360ProjectJsonResponse = {
|
|
174
160
|
dates: _360Scene[];
|
|
@@ -199,7 +185,9 @@ export declare enum _360UrlParams {
|
|
|
199
185
|
LockMarker = "lockMarker",
|
|
200
186
|
IsWidget = "isWidget",
|
|
201
187
|
MediaLocked = "mediaLocked",
|
|
202
|
-
Debug = "debug"
|
|
188
|
+
Debug = "debug",
|
|
189
|
+
RequiresValidation = "requires_validation",
|
|
190
|
+
CommentId = "comment_id"
|
|
203
191
|
}
|
|
204
192
|
export declare enum _360AssetType {
|
|
205
193
|
Video = "video",
|
|
@@ -213,11 +201,6 @@ export declare enum _360AssetLabel {
|
|
|
213
201
|
Walks = "walks",
|
|
214
202
|
MobilePhotos = "mobilePhotos"
|
|
215
203
|
}
|
|
216
|
-
export declare enum _360Feature {
|
|
217
|
-
BIM = "BIM",
|
|
218
|
-
Minimap = "Minimap",
|
|
219
|
-
Minimodel = "Minimodel"
|
|
220
|
-
}
|
|
221
204
|
export declare enum _360IntergrationType {
|
|
222
205
|
Evercam = "Evercam",
|
|
223
206
|
Matterport = "Matterport",
|
|
@@ -228,14 +211,14 @@ export declare enum _360IntergrationType {
|
|
|
228
211
|
export declare enum PathMarkerColor {
|
|
229
212
|
Start = "#00e74c",
|
|
230
213
|
End = "#fd7567",
|
|
214
|
+
Anchor = "#ffb300",
|
|
231
215
|
Default = "#2196F3"
|
|
232
216
|
}
|
|
233
|
-
export type _360AssetsQueryParams = {
|
|
234
|
-
page: number;
|
|
235
|
-
limit: number;
|
|
217
|
+
export type _360AssetsQueryParams = PaginationParams & {
|
|
236
218
|
projectId: string;
|
|
237
219
|
date: DateType;
|
|
238
220
|
floor: string;
|
|
221
|
+
name: string;
|
|
239
222
|
id: string;
|
|
240
223
|
};
|
|
241
224
|
export type _360AssetsRequestPayload = {
|
|
@@ -244,7 +227,7 @@ export type _360AssetsRequestPayload = {
|
|
|
244
227
|
floor: string;
|
|
245
228
|
uploadedBy?: string;
|
|
246
229
|
};
|
|
247
|
-
export type DrawingsRequestPayload = {
|
|
230
|
+
export type DrawingsRequestPayload = PaginationParams & {
|
|
248
231
|
projectId?: string;
|
|
249
232
|
name?: string;
|
|
250
233
|
changedBy?: string;
|
|
@@ -252,8 +235,6 @@ export type DrawingsRequestPayload = {
|
|
|
252
235
|
startDate?: string;
|
|
253
236
|
endDate?: string;
|
|
254
237
|
id?: number;
|
|
255
|
-
page?: number;
|
|
256
|
-
limit?: number;
|
|
257
238
|
paginate?: boolean;
|
|
258
239
|
withAsset?: boolean;
|
|
259
240
|
includeDeleted?: boolean;
|
|
@@ -280,16 +261,16 @@ export type _360AssetsUploadPayload = {
|
|
|
280
261
|
title: string;
|
|
281
262
|
fileExtension: string;
|
|
282
263
|
}[];
|
|
283
|
-
deviceSerial
|
|
284
|
-
startPosition
|
|
285
|
-
endPosition
|
|
286
|
-
isTimelapse
|
|
287
|
-
isImagesOnly
|
|
264
|
+
deviceSerial?: string;
|
|
265
|
+
startPosition?: string;
|
|
266
|
+
endPosition?: string;
|
|
267
|
+
isTimelapse?: boolean;
|
|
268
|
+
isImagesOnly?: boolean;
|
|
288
269
|
};
|
|
289
270
|
export type Generate360MapRequestPayload = {
|
|
290
|
-
dateId: string;
|
|
271
|
+
dateId: string | number;
|
|
291
272
|
floorId: string;
|
|
292
|
-
cameraOffset: string;
|
|
273
|
+
cameraOffset: string | number;
|
|
293
274
|
startPoint: string;
|
|
294
275
|
endPoint: string;
|
|
295
276
|
drawingId?: number;
|
|
@@ -309,8 +290,8 @@ export declare enum EModelsType {
|
|
|
309
290
|
}
|
|
310
291
|
export type _360FloorRef = {
|
|
311
292
|
projectID: string;
|
|
312
|
-
dateID: string;
|
|
313
|
-
floorID:
|
|
293
|
+
dateID: string | number;
|
|
294
|
+
floorID: _360FloorId;
|
|
314
295
|
};
|
|
315
296
|
export type _360Vector3 = {
|
|
316
297
|
x: number;
|
|
@@ -321,7 +302,7 @@ export type _360MarkerData = {
|
|
|
321
302
|
cameraPosition: _360Vector3;
|
|
322
303
|
nextRoomId: string;
|
|
323
304
|
position: _360Vector3;
|
|
324
|
-
geolocation
|
|
305
|
+
geolocation?: {
|
|
325
306
|
latitude: number;
|
|
326
307
|
longitude: number;
|
|
327
308
|
};
|
|
@@ -331,6 +312,9 @@ export type _360MarkerData = {
|
|
|
331
312
|
_y: number;
|
|
332
313
|
_z: number;
|
|
333
314
|
isEuler: boolean;
|
|
315
|
+
x?: number;
|
|
316
|
+
y?: number;
|
|
317
|
+
z?: number;
|
|
334
318
|
};
|
|
335
319
|
};
|
|
336
320
|
export type _360Route = {
|
|
@@ -362,7 +346,8 @@ export type _360FloorData = {
|
|
|
362
346
|
imagesOnlyFeatureFlag: boolean;
|
|
363
347
|
forgeBIMFeatureFlag: boolean;
|
|
364
348
|
isForgeGravityEnabled: boolean;
|
|
365
|
-
|
|
349
|
+
bimHeight?: number | null;
|
|
350
|
+
initialForgeView: ForgeView | null;
|
|
366
351
|
calibrationDetails: _360CalibrationDetails;
|
|
367
352
|
enhancedLightFeatureFlag: boolean;
|
|
368
353
|
};
|
|
@@ -378,18 +363,3 @@ export type _360PinData = {
|
|
|
378
363
|
azimuthAngle: number;
|
|
379
364
|
};
|
|
380
365
|
};
|
|
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[];
|
|
395
|
-
};
|
|
@@ -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
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare enum AnalyticsEventPageId {
|
|
2
2
|
Timeline = "Timeline",
|
|
3
|
-
|
|
3
|
+
Chat = "Chat",
|
|
4
4
|
Recordings = "Recordings",
|
|
5
5
|
Liveview = "LiveView",
|
|
6
6
|
Compare = "Compare",
|
|
@@ -16,6 +16,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
16
16
|
Automations = "Automations",
|
|
17
17
|
ProgressPhotosUnsubscribe = "ProgressPhotosUnsubscribe",
|
|
18
18
|
VideoWall = "VideoWall",
|
|
19
|
+
GlobalVideoWall = "GlobalVideoWall",
|
|
19
20
|
ProjectSettings = "ProjectSettings",
|
|
20
21
|
ProjectSettingsCameraSettings = "ProjectSettings-CameraSettings",
|
|
21
22
|
ProjectSettingsMembers = "ProjectSettings-Members",
|
|
@@ -36,6 +37,7 @@ export declare enum AnalyticsEventPageId {
|
|
|
36
37
|
EmbeddedLive = "EmbeddedLive",
|
|
37
38
|
EmbeddedRecordings = "EmbeddedRecordings",
|
|
38
39
|
EmbeddedBimCompare = "EmbeddedBimCompare",
|
|
40
|
+
GlobalWidgets = "GlobalWidgets",
|
|
39
41
|
GateReportInfo = "GateReportInfo",
|
|
40
42
|
BimInfo = "BimInfo",
|
|
41
43
|
DroneInfo = "DroneInfo",
|
|
@@ -60,12 +62,12 @@ export declare enum AnalyticsEvent {
|
|
|
60
62
|
MarkUpTool = "MarkUpTool-Toggle",
|
|
61
63
|
Comment = "Comment-Toggle",
|
|
62
64
|
Compare = "Compare-Toggle",
|
|
63
|
-
Copilot = "Copilot-Toggle",
|
|
64
65
|
DownloadMediaOpen = "DownloadMedia-Open",
|
|
65
66
|
SettingsAccountUpdatePassword = "UpdatePassword",
|
|
66
67
|
SettingsAccountUpdatePersonalInformation = "UpdatePersonalInformation",
|
|
67
68
|
SettingsAccountRevokeSession = "RevokeSession",
|
|
68
69
|
SettingsAccountCancelRevokeSession = "CancelRevokeSession",
|
|
70
|
+
SettingsAccountRevokeAuthorizedApp = "RevokeAuthorizedApp",
|
|
69
71
|
SettingsAccountClickRowsPerPage = "ClickRowsPerPage",
|
|
70
72
|
SettingsAccountOpenDeleteAccountDialog = "DeleteAccount",
|
|
71
73
|
SettingsConnectorsConnectToProcore = "ConnectToProcore",
|
|
@@ -156,12 +158,6 @@ export declare enum AnalyticsEvent {
|
|
|
156
158
|
TimelineCompareSlide = "Compare-Slide",
|
|
157
159
|
TimelineSelectMilestoneItem = "Timeline-SelectMilestoneItem",
|
|
158
160
|
TimelineSelectTimestamp = "Timeline-SelectTimestamp",
|
|
159
|
-
CopilotSendMessage = "Copilot-SendMessage",
|
|
160
|
-
CopilotClickTimestamp = "Copilot-ClickTimestamp",
|
|
161
|
-
CopilotRegenerate = "Copilot-Regenerate",
|
|
162
|
-
CopilotError = "Copilot-Error",
|
|
163
|
-
CopilotNavigation = "Copilot-Navigation",
|
|
164
|
-
CopilotToggle = "Copilot-Toggle",
|
|
165
161
|
GroupsVisibilityMobileCapture = "GroupsVisibility-MobileCapture",
|
|
166
162
|
GroupsVisibilityAnpr = "GroupsVisibility-Anpr",
|
|
167
163
|
GroupsVisibilityComments = "GroupsVisibility-Comments",
|
|
@@ -319,13 +315,6 @@ export declare enum AnalyticsEvent {
|
|
|
319
315
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
320
316
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
321
317
|
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
322
|
-
ThreeSixtyTourPause = "Tour-Pause",
|
|
323
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
324
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
325
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
326
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
327
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
328
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
329
318
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
330
319
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
331
320
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -348,7 +337,6 @@ export declare enum AnalyticsEvent {
|
|
|
348
337
|
DroneResetView = "ResetView",
|
|
349
338
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
350
339
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
351
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
352
340
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
353
341
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
354
342
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -359,11 +347,18 @@ export declare enum AnalyticsEvent {
|
|
|
359
347
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
360
348
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
361
349
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
350
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
362
351
|
DroneToggleQualityMode = "ChooseQuality",
|
|
363
352
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
364
353
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
365
354
|
DroneToggleSceneMode = "ToggleSceneMode",
|
|
366
355
|
DroneUploadFlight = "UploadFlight",
|
|
356
|
+
DroneUploadStarted = "DroneUpload-Started",
|
|
357
|
+
DroneUploadFailed = "DroneUpload-Failed",
|
|
358
|
+
DroneUploadRetried = "DroneUpload-Retried",
|
|
359
|
+
DroneUploadAutoResumed = "DroneUpload-AutoResumed",
|
|
360
|
+
DroneUploadCompleted = "DroneUpload-Completed",
|
|
361
|
+
DroneUploadCancelled = "DroneUpload-Cancelled",
|
|
367
362
|
DroneViewLocationInGoogleMaps = "ViewLocationInGoogleMaps",
|
|
368
363
|
DroneVolumeToolClick = "VolumeTool-Click",
|
|
369
364
|
DroneZoomIn = "ZoomIn",
|
|
@@ -405,6 +400,7 @@ export declare enum AnalyticsEvent {
|
|
|
405
400
|
DrawingClickHome = "ClickHome",
|
|
406
401
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
407
402
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
403
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
408
404
|
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
409
405
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
410
406
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
@@ -454,6 +450,7 @@ export declare enum AnalyticsEvent {
|
|
|
454
450
|
ProjectSettingsMembersBulkRemove = "BulkRemove",
|
|
455
451
|
ProjectSettingsMembersInviteSent = "InviteSent",
|
|
456
452
|
ProjectSettingsMembersRejectInvite = "RejectInvite",
|
|
453
|
+
ProjectSettingsMembersResendInvite = "ResendInvite",
|
|
457
454
|
ProjectSettingsMembersAddMember = "AddMember",
|
|
458
455
|
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
459
456
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
@@ -491,6 +488,7 @@ export declare enum AnalyticsEvent {
|
|
|
491
488
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
492
489
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
493
490
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
491
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
494
492
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
495
493
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
496
494
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -588,13 +586,17 @@ export declare enum AnalyticsEvent {
|
|
|
588
586
|
SmartSearchThumbnailPlay = "SmartSearch-ThumbnailPlay",
|
|
589
587
|
SmartSearchExportFile = "SmartSearch-ExportFile",
|
|
590
588
|
SmartSearchDownloadHeatmapImage = "SmartSearch-DownloadHeatmapImage",
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
589
|
+
ChatToggleSidebarMode = "Chat-ToggleSidebarMode",
|
|
590
|
+
ChatSendMessage = "Chat-SendMessage",
|
|
591
|
+
ChatClickStarter = "Chat-ClickStarter",
|
|
592
|
+
ChatStopResponse = "Chat-StopResponse",
|
|
593
|
+
ChatCopyAnswer = "Chat-CopyAnswer",
|
|
594
|
+
ChatDownloadPdf = "Chat-DownloadPdf",
|
|
595
|
+
ChatOpenCamera = "Chat-OpenCamera",
|
|
596
|
+
ChatNewConversation = "Chat-NewConversation",
|
|
597
|
+
ChatOpenConversation = "Chat-OpenConversation",
|
|
598
|
+
ChatRenameConversation = "Chat-RenameConversation",
|
|
599
|
+
ChatDeleteConversation = "Chat-DeleteConversation",
|
|
598
600
|
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
599
601
|
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
600
602
|
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare enum ApiKeyType {
|
|
2
|
+
User = "user",
|
|
3
|
+
Workflows = "workflows",
|
|
4
|
+
Widget = "widget"
|
|
5
|
+
}
|
|
6
|
+
export type ApiKey = {
|
|
7
|
+
id: number;
|
|
8
|
+
name: string;
|
|
9
|
+
type: ApiKeyType;
|
|
10
|
+
maskedKey: string;
|
|
11
|
+
key: string | null;
|
|
12
|
+
scopes: string[];
|
|
13
|
+
projects: string[];
|
|
14
|
+
active: boolean;
|
|
15
|
+
expiresAt: string | null;
|
|
16
|
+
lastUsedAt: string | null;
|
|
17
|
+
revokedAt: string | null;
|
|
18
|
+
insertedAt: string;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
};
|
|
21
|
+
export declare enum ApiKeyStatus {
|
|
22
|
+
Active = "active",
|
|
23
|
+
Expired = "expired",
|
|
24
|
+
Revoked = "revoked"
|
|
25
|
+
}
|
|
26
|
+
export type ApiKeysRequestParams = {
|
|
27
|
+
name?: string;
|
|
28
|
+
type?: ApiKeyType;
|
|
29
|
+
status?: ApiKeyStatus[];
|
|
30
|
+
expiresAtFrom?: string;
|
|
31
|
+
expiresAtTo?: string;
|
|
32
|
+
lastUsedAtFrom?: string;
|
|
33
|
+
lastUsedAtTo?: string;
|
|
34
|
+
sort?: string;
|
|
35
|
+
page?: number;
|
|
36
|
+
limit?: number;
|
|
37
|
+
};
|
|
38
|
+
export type CreateApiKeyPayload = {
|
|
39
|
+
name: string;
|
|
40
|
+
scopes: string[];
|
|
41
|
+
resources?: {
|
|
42
|
+
projects: string[];
|
|
43
|
+
};
|
|
44
|
+
type?: ApiKeyType;
|
|
45
|
+
expiresAt?: string;
|
|
46
|
+
};
|
|
47
|
+
export type UpdateApiKeyPayload = {
|
|
48
|
+
name?: string;
|
|
49
|
+
scopes?: string[];
|
|
50
|
+
resources?: {
|
|
51
|
+
projects: string[];
|
|
52
|
+
};
|
|
53
|
+
expiresAt?: string | null;
|
|
54
|
+
};
|
|
55
|
+
export type AdminApiKey = Omit<ApiKey, "key"> & {
|
|
56
|
+
user: {
|
|
57
|
+
email: string;
|
|
58
|
+
fullname: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export type AdminApiKeysRequestParams = ApiKeysRequestParams & {
|
|
62
|
+
user?: string;
|
|
63
|
+
userId?: number;
|
|
64
|
+
lastUsedAtFrom?: string;
|
|
65
|
+
lastUsedAtTo?: string;
|
|
66
|
+
};
|
|
67
|
+
export type UpdateAdminApiKeyPayload = {
|
|
68
|
+
name: string;
|
|
69
|
+
expiresAt: string | null;
|
|
70
|
+
};
|
|
@@ -12,7 +12,6 @@ export declare enum AuditLogActionType {
|
|
|
12
12
|
WAITING_FOR_SITE_VISIT = "waiting_for_site_visit",
|
|
13
13
|
SMS = "sms",
|
|
14
14
|
CUSTOM = "custom",
|
|
15
|
-
PUBLIC_NOTE = "public_note",
|
|
16
15
|
SIM = "sim",
|
|
17
16
|
LOGIN = "login",
|
|
18
17
|
LOGOUT = "logout",
|
|
@@ -30,8 +29,14 @@ export declare enum AuditLogActionType {
|
|
|
30
29
|
SHARE_REQUEST = "share_request",
|
|
31
30
|
DELETE_SHARE_REQUEST = "delete_share_request",
|
|
32
31
|
TRANSFER_OWNERSHIP = "transfer_ownership",
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
OAUTH_AUTHORIZE = "oauth_authorize",
|
|
33
|
+
OAUTH_TOKEN_ISSUE = "oauth_token_issue",
|
|
34
|
+
OAUTH_TOKEN_REFRESH = "oauth_token_refresh",
|
|
35
|
+
OAUTH_TOKEN_REVOKE = "oauth_token_revoke",
|
|
36
|
+
OAUTH_CLIENT_CREATE = "oauth_client_create",
|
|
37
|
+
OAUTH_CLIENT_DELETE = "oauth_client_delete",
|
|
38
|
+
API_KEY_REGENERATE = "api_key_regenerate",
|
|
39
|
+
API_KEY_REVOKE = "api_key_revoke"
|
|
35
40
|
}
|
|
36
41
|
export declare enum AuditLogEntity {
|
|
37
42
|
Cameras = "cameras",
|
|
@@ -49,22 +54,38 @@ export declare enum AuditLogEntity {
|
|
|
49
54
|
Tags = "tags",
|
|
50
55
|
KitsTags = "kits_tags",
|
|
51
56
|
Oauth = "oauth",
|
|
57
|
+
ApiKeys = "api_keys",
|
|
52
58
|
StorageProviders = "storage_providers"
|
|
53
59
|
}
|
|
60
|
+
export declare enum AuditLogAuthMethod {
|
|
61
|
+
Password = "password",
|
|
62
|
+
ApiKeyV2 = "api_key_v2",
|
|
63
|
+
Widget = "widget",
|
|
64
|
+
OauthAccess = "oauth_access",
|
|
65
|
+
Impersonation = "impersonation",
|
|
66
|
+
Sso = "sso"
|
|
67
|
+
}
|
|
68
|
+
export type AuditLogUserDetails = {
|
|
69
|
+
browser: string;
|
|
70
|
+
country: string;
|
|
71
|
+
countryCode: string;
|
|
72
|
+
device: string | null;
|
|
73
|
+
ip: string;
|
|
74
|
+
os: string | null;
|
|
75
|
+
authMethod?: AuditLogAuthMethod;
|
|
76
|
+
apiKeyId?: number;
|
|
77
|
+
apiKeyName?: string;
|
|
78
|
+
apiKeyMasked?: string;
|
|
79
|
+
widgetId?: number;
|
|
80
|
+
oauthClientId?: string;
|
|
81
|
+
};
|
|
54
82
|
export type AuditLog = {
|
|
55
83
|
id: number;
|
|
56
84
|
action: AuditLogActionType;
|
|
57
85
|
details: Record<string, any>;
|
|
58
86
|
insertedAt: DateType;
|
|
59
87
|
entity: string;
|
|
60
|
-
|
|
61
|
-
browser: string;
|
|
62
|
-
country: string;
|
|
63
|
-
countryCode: string;
|
|
64
|
-
device: string | null;
|
|
65
|
-
ip: string;
|
|
66
|
-
os: string | null;
|
|
67
|
-
};
|
|
88
|
+
userDetails: AuditLogUserDetails;
|
|
68
89
|
who: string;
|
|
69
90
|
};
|
|
70
91
|
export type AuditLogsParams = PaginationParams & {
|