@evercam/api 1.0.0-964e29308 → 1.0.0-97bd6ccd7
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 +20 -15
- package/dist/api/api/aiApi.d.ts +125 -4
- package/dist/api/api/authzApi.d.ts +5 -3
- package/dist/api/api/evercamApi.d.ts +32 -12
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +21 -7
- package/dist/api/types/360.d.ts +167 -83
- package/dist/api/types/aiConfigs.d.ts +244 -0
- package/dist/api/types/analytics.d.ts +36 -23
- package/dist/api/types/anpr.d.ts +31 -2
- package/dist/api/types/auditLogs.d.ts +18 -0
- package/dist/api/types/authz.d.ts +71 -0
- package/dist/api/types/automation.d.ts +23 -4
- package/dist/api/types/axios.d.ts +9 -9
- package/dist/api/types/bim.d.ts +28 -5
- package/dist/api/types/camera.d.ts +13 -32
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/copilot.d.ts +0 -3
- package/dist/api/types/detections.d.ts +3 -10
- package/dist/api/types/drone.d.ts +94 -6
- package/dist/api/types/errors.d.ts +13 -1
- package/dist/api/types/gateReport.d.ts +7 -22
- package/dist/api/types/gateReportManagement.d.ts +170 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +8 -1
- package/dist/api/types/ingest.d.ts +98 -3
- package/dist/api/types/kit.d.ts +41 -51
- package/dist/api/types/map.d.ts +12 -0
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +41 -2
- package/dist/api/types/observationEvents.d.ts +135 -0
- package/dist/api/types/observations.d.ts +84 -0
- package/dist/api/types/planner.d.ts +56 -10
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +11 -2
- package/dist/api/types/recording.d.ts +8 -13
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +3 -11
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +18 -18
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +3 -5
- package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/storyblok.d.ts +0 -13
- package/dist/api/types/timelapse.d.ts +4 -8
- package/dist/api/types/user.d.ts +1 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1832 -682
- 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 +111 -38
- 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 +2 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/package.json +4 -2
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import { PaginatedItems, PaginationParams } from "@evercam/api/types";
|
|
2
|
+
export declare enum AiApp {
|
|
3
|
+
GateReport = "gate_report",
|
|
4
|
+
Ppe = "ppe",
|
|
5
|
+
SiteAnalytics = "site_analytics",
|
|
6
|
+
Observations360 = "observations_360"
|
|
7
|
+
}
|
|
8
|
+
export declare enum AiProvider {
|
|
9
|
+
Gemini = "gemini",
|
|
10
|
+
OpenAi = "openai",
|
|
11
|
+
Anthropic = "anthropic"
|
|
12
|
+
}
|
|
13
|
+
export declare enum AiConfigsPromptDialogMode {
|
|
14
|
+
Create = "create",
|
|
15
|
+
Edit = "edit",
|
|
16
|
+
View = "view",
|
|
17
|
+
Subprompt = "subprompt"
|
|
18
|
+
}
|
|
19
|
+
export declare enum AiConfigsKeyDialogMode {
|
|
20
|
+
Create = "create",
|
|
21
|
+
Rotate = "rotate",
|
|
22
|
+
Rename = "rename"
|
|
23
|
+
}
|
|
24
|
+
export interface AiAppConfig {
|
|
25
|
+
bg: string;
|
|
26
|
+
fg: string;
|
|
27
|
+
border: string;
|
|
28
|
+
icon: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const AI_APP_CONFIGS: Record<AiApp | "generic", AiAppConfig>;
|
|
31
|
+
export interface AiProviderConfig {
|
|
32
|
+
bg: string;
|
|
33
|
+
fg: string;
|
|
34
|
+
icon: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const AI_PROVIDER_CONFIGS: Record<AiProvider, AiProviderConfig>;
|
|
37
|
+
export declare enum AiPromptModel {
|
|
38
|
+
Gemini3Pro = "gemini-3-pro",
|
|
39
|
+
Gemini3FlashPreview = "gemini-3-flash-preview",
|
|
40
|
+
Gemini25Pro = "gemini-2.5-pro",
|
|
41
|
+
Gemini25Flash = "gemini-2.5-flash",
|
|
42
|
+
Gemini20Flash = "gemini-2.0-flash",
|
|
43
|
+
Gpt5 = "gpt-5",
|
|
44
|
+
Gpt5Mini = "gpt-5-mini",
|
|
45
|
+
Gpt4o = "gpt-4o",
|
|
46
|
+
Gpt4oMini = "gpt-4o-mini",
|
|
47
|
+
ClaudeOpus45 = "claude-opus-4-5",
|
|
48
|
+
ClaudeSonnet46 = "claude-sonnet-4-6",
|
|
49
|
+
ClaudeHaiku45 = "claude-haiku-4-5"
|
|
50
|
+
}
|
|
51
|
+
export declare enum AiPromptType {
|
|
52
|
+
Prompt = "prompt",
|
|
53
|
+
Parent = "parent",
|
|
54
|
+
Subprompt = "subprompt"
|
|
55
|
+
}
|
|
56
|
+
export interface AiPrompt {
|
|
57
|
+
id: number;
|
|
58
|
+
title: string | null;
|
|
59
|
+
purpose: string | null;
|
|
60
|
+
app: string | null;
|
|
61
|
+
model: string | null;
|
|
62
|
+
prompt: string;
|
|
63
|
+
outputSchema: Record<string, unknown> | null;
|
|
64
|
+
createdBy: string;
|
|
65
|
+
createdAt: string;
|
|
66
|
+
updatedAt: string;
|
|
67
|
+
promptType: AiPromptType;
|
|
68
|
+
parentId: number | null;
|
|
69
|
+
subpromptCount: number;
|
|
70
|
+
}
|
|
71
|
+
export interface AiPromptCreatePayload {
|
|
72
|
+
title?: string | null;
|
|
73
|
+
purpose: string;
|
|
74
|
+
app: string;
|
|
75
|
+
model?: string | null;
|
|
76
|
+
prompt: string;
|
|
77
|
+
outputSchema?: Record<string, unknown> | null;
|
|
78
|
+
promptType?: AiPromptType.Prompt | AiPromptType.Parent;
|
|
79
|
+
}
|
|
80
|
+
export interface AiPromptUpdatePayload {
|
|
81
|
+
title?: string | null;
|
|
82
|
+
purpose?: string;
|
|
83
|
+
app?: string;
|
|
84
|
+
model?: string | null;
|
|
85
|
+
prompt?: string;
|
|
86
|
+
outputSchema?: Record<string, unknown> | null;
|
|
87
|
+
}
|
|
88
|
+
export type AiPromptQueryParams = PaginationParams & {
|
|
89
|
+
app?: string;
|
|
90
|
+
purpose?: string;
|
|
91
|
+
model?: string;
|
|
92
|
+
search?: string;
|
|
93
|
+
createdBy?: string;
|
|
94
|
+
promptType?: AiPromptType;
|
|
95
|
+
includeSubprompts?: boolean;
|
|
96
|
+
};
|
|
97
|
+
export interface AiSubpromptCreatePayload {
|
|
98
|
+
title?: string | null;
|
|
99
|
+
purpose: string;
|
|
100
|
+
model?: string | null;
|
|
101
|
+
prompt: string;
|
|
102
|
+
outputSchema?: Record<string, unknown> | null;
|
|
103
|
+
}
|
|
104
|
+
export type AiPromptListResponse = PaginatedItems<AiPrompt>;
|
|
105
|
+
export interface AiPromptCreateResponse {
|
|
106
|
+
created: boolean;
|
|
107
|
+
data: AiPrompt;
|
|
108
|
+
message: string;
|
|
109
|
+
}
|
|
110
|
+
export interface AiPromptUpdateResponse {
|
|
111
|
+
updated: boolean;
|
|
112
|
+
id: number | string;
|
|
113
|
+
message: string;
|
|
114
|
+
}
|
|
115
|
+
export interface AiPromptDeleteResponse {
|
|
116
|
+
deleted: boolean;
|
|
117
|
+
count: number;
|
|
118
|
+
message: string;
|
|
119
|
+
}
|
|
120
|
+
export interface AiApiKey {
|
|
121
|
+
id: number;
|
|
122
|
+
projectExid: string;
|
|
123
|
+
provider: string;
|
|
124
|
+
name: string;
|
|
125
|
+
purpose: string;
|
|
126
|
+
enabled: boolean;
|
|
127
|
+
autoGenerated: boolean;
|
|
128
|
+
firstUsedAt: string | null;
|
|
129
|
+
lastUsedAt: string | null;
|
|
130
|
+
insertedAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
}
|
|
133
|
+
export interface AiApiKeyCreatePayload {
|
|
134
|
+
projectExid: string;
|
|
135
|
+
provider: string;
|
|
136
|
+
name?: string;
|
|
137
|
+
purpose?: string;
|
|
138
|
+
apiKey?: string;
|
|
139
|
+
enabled?: boolean;
|
|
140
|
+
}
|
|
141
|
+
export interface AiApiKeyUpdatePayload {
|
|
142
|
+
name?: string;
|
|
143
|
+
enabled?: boolean;
|
|
144
|
+
apiKey?: string;
|
|
145
|
+
}
|
|
146
|
+
export type AiApiKeyQueryParams = {
|
|
147
|
+
projectExid?: string;
|
|
148
|
+
provider?: string;
|
|
149
|
+
purpose?: string;
|
|
150
|
+
enabled?: boolean;
|
|
151
|
+
};
|
|
152
|
+
export interface AiApiKeyCreateResponse {
|
|
153
|
+
created: boolean;
|
|
154
|
+
data: AiApiKey;
|
|
155
|
+
message: string;
|
|
156
|
+
}
|
|
157
|
+
export interface AiApiKeyUpdateResponse {
|
|
158
|
+
updated: boolean;
|
|
159
|
+
id: number | string;
|
|
160
|
+
message: string;
|
|
161
|
+
}
|
|
162
|
+
export interface AiApiKeyDeleteResponse {
|
|
163
|
+
deleted: boolean;
|
|
164
|
+
count: number;
|
|
165
|
+
message: string;
|
|
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
|
+
}
|
|
@@ -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,9 @@ 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",
|
|
269
|
+
MarkUpToolSendViaEmail = "MarkUpTool-SendViaEmail",
|
|
270
|
+
MarkUpToolSendViaEmailSent = "MarkUpTool-SendViaEmail-Sent",
|
|
264
271
|
RecordingsCancelExportDialog = "CancelExportDialog",
|
|
265
272
|
RecordingsClickSupportLink = "ClickSupportLink",
|
|
266
273
|
RecordingsCreateClip = "CreateClip",
|
|
@@ -282,17 +289,6 @@ export declare enum AnalyticsEvent {
|
|
|
282
289
|
SharingSortBy = "SortBy",
|
|
283
290
|
SharingChangeAccessRight = "ChangeAccessRight",
|
|
284
291
|
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
|
-
ThreeSixtyGalleryToggleFilters = "Gallery-ToggleFilters",
|
|
294
|
-
ThreeSixtyGalleryUpdateFloorName = "Gallery-UpdateFloorName",
|
|
295
|
-
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
296
292
|
ThreeSixtyChangeDate = "ChangeDate",
|
|
297
293
|
ThreeSixtyChangeFloor = "ChangeFloor",
|
|
298
294
|
ThreeSixtyCloseCompare = "CloseCompare",
|
|
@@ -301,6 +297,7 @@ export declare enum AnalyticsEvent {
|
|
|
301
297
|
ThreeSixtyDisableMeasuringTool = "DisableMeasuringTool",
|
|
302
298
|
ThreeSixtyDisableCommnetTool = "DisableCommentTool",
|
|
303
299
|
ThreeSixtyEnableMeasuringTool = "EnableMeasuringTool",
|
|
300
|
+
ThreeSixtyMeasuringPerformed = "measuring_performed",
|
|
304
301
|
ThreeSixtyEnableCommentTool = "EnableCommentTool",
|
|
305
302
|
ThreeSixtyLockCompare = "LockCompare",
|
|
306
303
|
ThreeSixtyLockForgeBIM = "LockForgeBIM",
|
|
@@ -311,6 +308,7 @@ export declare enum AnalyticsEvent {
|
|
|
311
308
|
ThreeSixtyOpenForgeBIM = "OpenForgeBIM",
|
|
312
309
|
ThreeSixtyOpenMarkersThumbnailsList = "OpenMarkersThumbnailsList",
|
|
313
310
|
ThreeSixtyOpenCommentsList = "OpenCommentsList",
|
|
311
|
+
ThreeSixtyGalleryEditWalkName = "Gallery-EditWalkName",
|
|
314
312
|
ThreeSixtySaveComment = "SaveComment",
|
|
315
313
|
ThreeSixtyUnarchiveComment = "UnarchiveComment",
|
|
316
314
|
ThreeSixtyArchiveComment = "ArchiveComment",
|
|
@@ -320,13 +318,7 @@ export declare enum AnalyticsEvent {
|
|
|
320
318
|
ThreeSixtyToggleMinimapVisibility = "ToggleMinimapVisibility",
|
|
321
319
|
ThreeSixtyToggleMiniModel = "ToggleMiniModel",
|
|
322
320
|
ThreeSixtyToggleCommentsVisibility = "ToggleCommentsVisibility",
|
|
323
|
-
|
|
324
|
-
ThreeSixtyTourPlay = "Tour-Play",
|
|
325
|
-
ThreeSixtyTourSetSpeedXHalve = "Tour-SetSpeedX0.5",
|
|
326
|
-
ThreeSixtyTourSetSpeedX1 = "Tour-SetSpeedX1",
|
|
327
|
-
ThreeSixtyTourSetSpeedX2 = "Tour-SetSpeedX2",
|
|
328
|
-
ThreeSixtyTourSetSpeedX4 = "Tour-SetSpeedX4",
|
|
329
|
-
ThreeSixtyTourToggleLoop = "Tour-ToggleLoop",
|
|
321
|
+
ThreeSixtyToggleCameraPinsVisibility = "toggle_camera_pins_visibility",
|
|
330
322
|
ThreeSixtyUnlockCompare = "UnlockCompare",
|
|
331
323
|
ThreeSixtyUnlockForgeBIM = "UnlockForgeBIM",
|
|
332
324
|
ThreeSixtyUploadAssets = "UploadAssets",
|
|
@@ -349,7 +341,6 @@ export declare enum AnalyticsEvent {
|
|
|
349
341
|
DroneResetView = "ResetView",
|
|
350
342
|
DroneSettingsToggle360PathsVisibility = "Settings-Toggle360PathsVisibility",
|
|
351
343
|
DroneSettingsToggleCameraMarkersVisibility = "Settings-ToggleCameraMarkersVisibility",
|
|
352
|
-
DroneSettingsToggleSurroundingBuildingsTool = "Settings-ToggleSurroundingBuildingsTool",
|
|
353
344
|
DroneSettingsToggleCommentsVisibility = "Settings-ToggleCommentsVisibility",
|
|
354
345
|
DroneSettingsToggleAerialShotsVisibility = "Settings-ToggleAerialShotsVisibility",
|
|
355
346
|
DroneSettingsOpenCommentsList = "Settings-OpenCommentsList",
|
|
@@ -360,6 +351,7 @@ export declare enum AnalyticsEvent {
|
|
|
360
351
|
DroneToggleMapStyle = "ToggleMapStyle",
|
|
361
352
|
DroneTogglePointCloud = "TogglePointCloud",
|
|
362
353
|
DroneToggleGaussianSplat = "ToggleGaussianSplat",
|
|
354
|
+
DroneToggleGlobe = "ToggleGlobe",
|
|
363
355
|
DroneToggleQualityMode = "ChooseQuality",
|
|
364
356
|
DroneToggleSideMenu = "ToggleSideMenu",
|
|
365
357
|
DroneToggleImageryPlan = "ToggleImageryPlan",
|
|
@@ -406,7 +398,8 @@ export declare enum AnalyticsEvent {
|
|
|
406
398
|
DrawingClickHome = "ClickHome",
|
|
407
399
|
DrawingsUploadDrawing = "UploadDrawing",
|
|
408
400
|
DrawingsCreateDrawing = "CreateDrawing",
|
|
409
|
-
|
|
401
|
+
DrawingsSelectPdfPage = "SelectPdfPage",
|
|
402
|
+
DrawingsDeleteDrawing = "DeleteDrawing",
|
|
410
403
|
DrawingToggleMapStyle = "ToggleMapStyle",
|
|
411
404
|
DrawingToggleMapLabels = "ToggleMapLabels",
|
|
412
405
|
DrawingToggleCamerasLabels = "ToggleCamerasLabels",
|
|
@@ -459,7 +452,6 @@ export declare enum AnalyticsEvent {
|
|
|
459
452
|
ProjectSettingsMembersBulkRoleUpdate = "BulkRoleUpdate",
|
|
460
453
|
ProjectSettingsMembersDeleteCameraAccess = "DeleteCameraAccess",
|
|
461
454
|
ProjectSettingsMembersEditCameraAccess = "EditCameraAccess",
|
|
462
|
-
ProjectSettingsMembersFiltersClick = "FiltersClick",
|
|
463
455
|
ProjectSettingsMembersShareCamera = "ShareCamera",
|
|
464
456
|
ProjectSettingsMembersToggleAddDialog = "ToggleAddDialog",
|
|
465
457
|
ProjectSettingsOverviewOpenInMapView = "OpenInMapView",
|
|
@@ -493,6 +485,7 @@ export declare enum AnalyticsEvent {
|
|
|
493
485
|
GateReportTimelineDateClick = "Timeline-DateClick",
|
|
494
486
|
GateReportToggleThumbnails = "ToggleThumbnails",
|
|
495
487
|
PpeTimelineDateClick = "PpeTimeline-DateClick",
|
|
488
|
+
ObservationsFilterTypes = "Observations-FilterTypes",
|
|
496
489
|
HelpMenuToggleMenuButton = "HelpMenu-ToggleMenuButton",
|
|
497
490
|
HelpMenuOpenProjectContactsDialog = "HelpMenu-OpenProjectContactsDialog",
|
|
498
491
|
HelpMenuOpenLiveChat = "HelpMenu-OpenLiveChat",
|
|
@@ -548,7 +541,6 @@ export declare enum AnalyticsEvent {
|
|
|
548
541
|
AutomationsEditUsersFilter = "EditUsersFilter",
|
|
549
542
|
AutomationsEditDaysFilter = "EditDaysFilter",
|
|
550
543
|
AutomationsEditCamerasFilter = "EditCamerasFilter",
|
|
551
|
-
AutomationsFiltersClicked = "FiltersClicked",
|
|
552
544
|
AutomationToggleEditDialog = "ToggleEditDialog",
|
|
553
545
|
AutomationToggleCreateDialog = "ToggleCreateDialog",
|
|
554
546
|
AutomationTypeName = "TypeName",
|
|
@@ -597,5 +589,26 @@ export declare enum AnalyticsEvent {
|
|
|
597
589
|
AskAIClickVoice = "AskAI-ClickVoice",
|
|
598
590
|
AskAIClickFullscreen = "AskAI-ClickFullscreen",
|
|
599
591
|
AskAIExitFullscreen = "AskAI-ExitFullscreen",
|
|
600
|
-
AskAICloseChat = "AskAI-CloseChat"
|
|
592
|
+
AskAICloseChat = "AskAI-CloseChat",
|
|
593
|
+
ForgeBimAddModelButtonClicked = "ForgeBim-AddModelButtonClicked",
|
|
594
|
+
ForgeBimUploadChoiceDialogOpened = "ForgeBim-UploadChoiceDialogOpened",
|
|
595
|
+
ForgeBimModelAddMethodSelected = "ForgeBim-ModelAddMethodSelected",
|
|
596
|
+
ForgeBimUploadChoiceDialogDismissed = "ForgeBim-UploadChoiceDialogDismissed",
|
|
597
|
+
ForgeBimLocalModelFileSelected = "ForgeBim-LocalModelFileSelected",
|
|
598
|
+
ForgeBimLocalModelFileRejected = "ForgeBim-LocalModelFileRejected",
|
|
599
|
+
ForgeBimUploadModelFileToIngestStarted = "ForgeBim-UploadModelFileToIngestStarted",
|
|
600
|
+
ForgeBimUploadModelFileToIngestCompleted = "ForgeBim-UploadModelFileToIngestCompleted",
|
|
601
|
+
ForgeBimUploadModelFileToIngestFailed = "ForgeBim-UploadModelFileToIngestFailed",
|
|
602
|
+
ForgeBimAccModelSelectorOpened = "ForgeBim-AccModelSelectorOpened",
|
|
603
|
+
ForgeBimAccModelSelectorDismissed = "ForgeBim-AccModelSelectorDismissed",
|
|
604
|
+
ForgeBimAccModelConfirmed = "ForgeBim-AccModelConfirmed",
|
|
605
|
+
ForgeBimModelDuplicateDetected = "ForgeBim-ModelDuplicateDetected",
|
|
606
|
+
ForgeBimUpdateModelButtonClicked = "ForgeBim-UpdateModelButtonClicked",
|
|
607
|
+
ForgeBimReplaceModelWarningOpened = "ForgeBim-ReplaceModelWarningOpened",
|
|
608
|
+
ForgeBimReplaceModelConfirmed = "ForgeBim-ReplaceModelConfirmed",
|
|
609
|
+
ForgeBimReplaceModelCancelled = "ForgeBim-ReplaceModelCancelled",
|
|
610
|
+
ForgeBimModelAdded = "ForgeBim-ModelAdded",
|
|
611
|
+
ForgeBimModelUpdated = "ForgeBim-ModelUpdated",
|
|
612
|
+
ForgeBimModelSaveFailed = "ForgeBim-ModelSaveFailed",
|
|
613
|
+
ForgeBimIngestNotificationFailed = "ForgeBim-IngestNotificationFailed"
|
|
601
614
|
}
|
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;
|
|
@@ -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;
|
|
@@ -82,7 +101,7 @@ export type AutomationProviderOption = {
|
|
|
82
101
|
requiresConnection: boolean;
|
|
83
102
|
};
|
|
84
103
|
export type FormattedAutomation = {
|
|
85
|
-
cameraExids
|
|
104
|
+
cameraExids?: string;
|
|
86
105
|
name: string;
|
|
87
106
|
subject: string;
|
|
88
107
|
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;
|
|
@@ -13,13 +9,14 @@ export type AxiosEnvironment = {
|
|
|
13
9
|
ingestGpuApiUrl?: string | null;
|
|
14
10
|
posthogApiUrl?: string | null;
|
|
15
11
|
posthogProjectId?: string | null;
|
|
16
|
-
posthogPrivateApiKey?: string | null;
|
|
17
12
|
firebaseVideowallUrl?: string | null;
|
|
18
13
|
weatherApiBaseUrl?: string | null;
|
|
19
14
|
evercamLabsUrl?: string | null;
|
|
15
|
+
isLabsStaging?: boolean;
|
|
20
16
|
firebaseDbLink?: string | null;
|
|
21
17
|
firebaseStorageUrl?: string | null;
|
|
22
18
|
firebaseStorageToken?: string | null;
|
|
19
|
+
forgeTokenServerUrl?: string | null;
|
|
23
20
|
snapshotsURL?: string | null;
|
|
24
21
|
app?: string | null;
|
|
25
22
|
getAuthToken?: () => string | null;
|
|
@@ -29,15 +26,18 @@ export type AxiosEnvironment = {
|
|
|
29
26
|
export type RequestInterceptor = (req: AxiosRequestConfig, env: AxiosEnvironment) => AxiosRequestConfig & any;
|
|
30
27
|
export type ResponseInterceptor = (res: AxiosResponse, env: AxiosEnvironment) => AxiosResponse & any;
|
|
31
28
|
export type ErrorInterceptor = (error: any, env: AxiosEnvironment) => any;
|
|
29
|
+
export type RequestManager = {
|
|
30
|
+
createToken: (key: string) => CancelTokenSource["token"];
|
|
31
|
+
cancelToken: (key: string) => void;
|
|
32
|
+
cancelAll: () => void;
|
|
33
|
+
};
|
|
32
34
|
export interface ExtendedAxiosInstance extends AxiosInstance {
|
|
33
35
|
CancelToken: CancelTokenStatic;
|
|
34
36
|
isCancel: (value: AxiosResponse | AxiosError | unknown) => boolean;
|
|
35
37
|
setToken: (token: string) => void;
|
|
36
38
|
setHeader: (headerName: string, value: any) => void;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
resetCancelTokens: () => void;
|
|
40
|
-
cancelRequests: () => void;
|
|
39
|
+
createRequestManager: () => RequestManager;
|
|
40
|
+
requestManager: RequestManager;
|
|
41
41
|
env: AxiosEnvironment;
|
|
42
42
|
addEnvironmentVariables: (vars: Record<string, any>) => void;
|
|
43
43
|
addRequestInterceptor: (interceptor: RequestInterceptor, errorInterceptor?: ErrorInterceptor) => void;
|