@evercam/api 1.0.0-9a767ebbe → 1.0.0-9c3cd2ae7
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 +60 -27
- package/dist/api/api/adminApi.d.ts +19 -15
- package/dist/api/api/aiApi.d.ts +60 -2
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +29 -8
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +13 -3
- package/dist/api/types/360.d.ts +142 -4
- package/dist/api/types/aiConfigs.d.ts +154 -0
- package/dist/api/types/analytics.d.ts +34 -11
- 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 +46 -0
- package/dist/api/types/axios.d.ts +8 -5
- package/dist/api/types/bim.d.ts +26 -1
- package/dist/api/types/camera.d.ts +8 -3
- package/dist/api/types/comments.d.ts +10 -7
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +3 -10
- package/dist/api/types/drone.d.ts +6 -5
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +1 -0
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +6 -0
- package/dist/api/types/ingest.d.ts +15 -3
- package/dist/api/types/kit.d.ts +38 -2
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +12 -2
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +2 -3
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/recording.d.ts +5 -9
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +1 -0
- package/dist/api/types/siteAnalytics.d.ts +3 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +0 -1
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/timelapse.d.ts +2 -6
- package/dist/api/types/user.d.ts +1 -4
- package/dist/api/utils.d.ts +0 -1
- package/dist/index.js +1272 -806
- 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 +78 -5
- 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 +21 -0
- package/package.json +4 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, type ProcoreUserProject, type ProcoreProjectAlbum, type ProcoreObservationType, type AconexUserProject, type AutodeskUserHub, type AutodeskProject, type AutodeskFolder, type ProcoreType, TaskStatus, Tag } from "@evercam/shared/types";
|
|
1
|
+
import { type _360Scene, type Media, type DroneModel, type MobileCaptureSnapshot, type TimelineDateInterval, type TimelinePrecision, type Comment, type ProcoreUserProject, type ProcoreProjectAlbum, type ProcoreObservationType, type AconexUserProject, type AutodeskUserHub, type AutodeskProject, type AutodeskFolder, type ProcoreType, type HammertechProject, type HammertechIssueType, type HammertechPriority, type HammertechClassification, type HammertechFileFieldValue, TaskStatus, Tag, TuplePoint2D } from "@evercam/shared/types";
|
|
2
|
+
import type { AdminCamera, IngestUploadInitResponse } from "@evercam/api/types";
|
|
2
3
|
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
3
4
|
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
4
5
|
import { SeriesOptionsType } from "highcharts";
|
|
@@ -6,6 +7,11 @@ export type SelectItem = {
|
|
|
6
7
|
text: string;
|
|
7
8
|
value: string | number;
|
|
8
9
|
};
|
|
10
|
+
export type RoiProjectGroup = {
|
|
11
|
+
exid: string;
|
|
12
|
+
name: string;
|
|
13
|
+
cameras: AdminCamera[];
|
|
14
|
+
};
|
|
9
15
|
export declare enum IframeMessageType {
|
|
10
16
|
LiveView = "liveView",
|
|
11
17
|
EditSnapshot = "editSnapshot",
|
|
@@ -33,7 +39,10 @@ export declare enum IframeMessageType {
|
|
|
33
39
|
Load360Gallery = "load360Gallery",
|
|
34
40
|
Upload360 = "upload360",
|
|
35
41
|
FetchForgeToken = "FetchForgeToken",
|
|
36
|
-
ForgeTokenResponse = "ForgeTokenResponse"
|
|
42
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
43
|
+
ShowBimUploadChoice = "showBimUploadChoice",
|
|
44
|
+
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
45
|
+
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
37
46
|
}
|
|
38
47
|
export declare enum NavigationArrow {
|
|
39
48
|
Previous = "previous",
|
|
@@ -44,7 +53,6 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
44
53
|
Bim = "BIM",
|
|
45
54
|
Snapshot = "snapshot",
|
|
46
55
|
The360 = "360",
|
|
47
|
-
The360Gallery = "360 Gallery",
|
|
48
56
|
Planner = "Planner"
|
|
49
57
|
}
|
|
50
58
|
export declare enum PlayerMode {
|
|
@@ -151,8 +159,8 @@ export type LeaderLineOptions = {
|
|
|
151
159
|
startPlugSize?: number;
|
|
152
160
|
endPlugSize?: number;
|
|
153
161
|
path?: LeaderLinesPathType;
|
|
154
|
-
startSocketGravity?:
|
|
155
|
-
endSocketGravity?:
|
|
162
|
+
startSocketGravity?: TuplePoint2D;
|
|
163
|
+
endSocketGravity?: TuplePoint2D;
|
|
156
164
|
dash?: {
|
|
157
165
|
animation: boolean | {
|
|
158
166
|
duration: number;
|
|
@@ -179,12 +187,14 @@ export type TagSelectorItem = Tag & {
|
|
|
179
187
|
};
|
|
180
188
|
export declare enum FormSchemaComponents {
|
|
181
189
|
SelectField = "SelectField",
|
|
190
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
182
191
|
MultiOption = "MultiOption",
|
|
183
192
|
TextField = "TextField",
|
|
184
193
|
SwitchField = "SwitchField",
|
|
185
194
|
CheckBox = "CheckBoxField",
|
|
186
195
|
Date = "DatePickerInput",
|
|
187
196
|
DateTime = "DateTimeField",
|
|
197
|
+
Time = "TimeField",
|
|
188
198
|
TextArea = "Textarea",
|
|
189
199
|
Search = "Autocomplete",
|
|
190
200
|
ReadOnly = "ReadOnly",
|
|
@@ -199,6 +209,7 @@ export declare enum FormSchemaDataType {
|
|
|
199
209
|
export type FormSchemaOptions = {
|
|
200
210
|
title: string;
|
|
201
211
|
value: string;
|
|
212
|
+
parentId?: string | null;
|
|
202
213
|
};
|
|
203
214
|
export type FormSchemaField = {
|
|
204
215
|
id: string;
|
|
@@ -213,8 +224,20 @@ export type FormSchemaField = {
|
|
|
213
224
|
columns?: number;
|
|
214
225
|
};
|
|
215
226
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
227
|
+
export type DrawingStats = {
|
|
228
|
+
overlay: boolean;
|
|
229
|
+
geolocated: boolean;
|
|
230
|
+
isCalibrated: boolean;
|
|
231
|
+
walks: number;
|
|
232
|
+
markers: number;
|
|
233
|
+
minimodel: number;
|
|
234
|
+
bim: number;
|
|
235
|
+
comments: number;
|
|
236
|
+
lastCapturedDate: string | null;
|
|
237
|
+
};
|
|
216
238
|
export interface ScrollListener {
|
|
217
239
|
element: Element | Window;
|
|
240
|
+
event: "scroll" | "resize";
|
|
218
241
|
handler: () => void;
|
|
219
242
|
}
|
|
220
243
|
export interface LeaderLineInstance {
|
|
@@ -239,8 +262,13 @@ export type DocumentExtended = Document & {
|
|
|
239
262
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
240
263
|
data: T[];
|
|
241
264
|
};
|
|
265
|
+
export type NotificationTitleSegment = {
|
|
266
|
+
text: string;
|
|
267
|
+
isBold?: boolean;
|
|
268
|
+
};
|
|
242
269
|
export type FormattedNotificationData = {
|
|
243
270
|
title: string;
|
|
271
|
+
titleSegments?: NotificationTitleSegment[];
|
|
244
272
|
link: string;
|
|
245
273
|
thumbnail?: string;
|
|
246
274
|
icon?: string;
|
|
@@ -274,6 +302,20 @@ export type AutodeskUploadFormData = {
|
|
|
274
302
|
project: AutodeskProject | null;
|
|
275
303
|
folder: AutodeskFolder | null;
|
|
276
304
|
};
|
|
305
|
+
export type HammertechUploadFormData = {
|
|
306
|
+
project: HammertechProject | null;
|
|
307
|
+
issueType: HammertechIssueType | null;
|
|
308
|
+
description: string;
|
|
309
|
+
priority: HammertechPriority | null;
|
|
310
|
+
dueDate: string | null;
|
|
311
|
+
classification: HammertechClassification | null;
|
|
312
|
+
locationId: string | null;
|
|
313
|
+
isPositiveObservation: boolean;
|
|
314
|
+
isPhotoForFixRequired: boolean;
|
|
315
|
+
customFieldFormId: string | null;
|
|
316
|
+
customFieldValues: Record<string, unknown>;
|
|
317
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
318
|
+
};
|
|
277
319
|
export interface MediaHubFilters {
|
|
278
320
|
title: string;
|
|
279
321
|
requesterEmail: string | undefined;
|
|
@@ -299,3 +341,34 @@ export type TableHeaderParams<TItem = unknown> = {
|
|
|
299
341
|
toStringFn?: (item: TItem, key: string) => any;
|
|
300
342
|
sort?: (a: unknown, b: unknown) => number;
|
|
301
343
|
};
|
|
344
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
345
|
+
projectName: string;
|
|
346
|
+
};
|
|
347
|
+
export type BimUploadFileResult = {
|
|
348
|
+
url: string;
|
|
349
|
+
title: string;
|
|
350
|
+
fileExtension: string;
|
|
351
|
+
};
|
|
352
|
+
export interface ThreeSixtyWalk {
|
|
353
|
+
id: string;
|
|
354
|
+
name: string;
|
|
355
|
+
date: string;
|
|
356
|
+
color: string;
|
|
357
|
+
dateId: string;
|
|
358
|
+
floorId: string;
|
|
359
|
+
}
|
|
360
|
+
export interface ThreeSixtyWalkGroup {
|
|
361
|
+
date: string;
|
|
362
|
+
walks: ThreeSixtyWalk[];
|
|
363
|
+
}
|
|
364
|
+
export type DatePresetContext = {
|
|
365
|
+
minDate?: string;
|
|
366
|
+
maxDate: string;
|
|
367
|
+
effectiveMinDate?: string;
|
|
368
|
+
effectiveMaxDate: string;
|
|
369
|
+
};
|
|
370
|
+
export type DatePreset = {
|
|
371
|
+
name: string;
|
|
372
|
+
resolveRange?: (ctx: DatePresetContext) => [string, string];
|
|
373
|
+
isHide?: (ctx: DatePresetContext) => boolean;
|
|
374
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum CustomDataTableFilterType {
|
|
2
|
+
Select = "SelectSearchFilter",
|
|
3
|
+
Text = "TextFieldSearchFilter"
|
|
4
|
+
}
|
|
5
|
+
export interface CustomDataTableFilterField<T = unknown> {
|
|
6
|
+
component: CustomDataTableFilterType;
|
|
7
|
+
attributes?: Record<string, unknown>;
|
|
8
|
+
customFilter?: (item: T, fieldName: string, search: unknown) => boolean;
|
|
9
|
+
}
|
|
10
|
+
export type CustomDataTableFilterFields<T = unknown> = Record<string, CustomDataTableFilterField<T>>;
|
|
@@ -13,7 +13,7 @@ export type EventMarker<T extends {}> = T & {
|
|
|
13
13
|
label: string;
|
|
14
14
|
thumbnailUrl: string;
|
|
15
15
|
isActive: boolean;
|
|
16
|
-
|
|
16
|
+
markerType?: RecordingsMarker;
|
|
17
17
|
};
|
|
18
18
|
export type SnapshotEvent<T extends {}> = T & {
|
|
19
19
|
eventTime: Timestamp;
|
|
@@ -22,6 +22,13 @@ export type MatchedSnapshotEvent<T extends {}> = SnapshotEvent<T> & {
|
|
|
22
22
|
frameIndex: number;
|
|
23
23
|
snapshotTimestamp: Timestamp;
|
|
24
24
|
};
|
|
25
|
+
export declare enum RecordingsMarker {
|
|
26
|
+
Comment = "comment",
|
|
27
|
+
GateReport = "gate-report",
|
|
28
|
+
Anpr = "anpr",
|
|
29
|
+
Detection = "detection",
|
|
30
|
+
SmartSearch = "smart-search"
|
|
31
|
+
}
|
|
25
32
|
export declare enum ImageQuality {
|
|
26
33
|
ThreeSixty = "360",
|
|
27
34
|
FourEighty = "480",
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type ObservationsTableHeader = {
|
|
2
|
+
isThumbnail?: boolean;
|
|
3
|
+
visible: boolean;
|
|
4
|
+
divider: boolean;
|
|
5
|
+
sortable: boolean;
|
|
6
|
+
text: string;
|
|
7
|
+
value: string;
|
|
8
|
+
class: string;
|
|
9
|
+
align: string;
|
|
10
|
+
};
|
|
11
|
+
export type ObservationsCountDay = {
|
|
12
|
+
day: string;
|
|
13
|
+
};
|
|
14
|
+
export type ObservationsTableOptionsUpdate = {
|
|
15
|
+
page: number;
|
|
16
|
+
sortBy: string[];
|
|
17
|
+
sortDesc: boolean[];
|
|
18
|
+
};
|
|
19
|
+
export type ObservationsEventsTableState = {
|
|
20
|
+
height: number | string;
|
|
21
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evercam/api",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-9c3cd2ae7",
|
|
4
4
|
"description": "Evercam API client",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,6 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"readme": "README.md",
|
|
30
30
|
"scripts": {
|
|
31
|
+
"preinstall": "node ../shared/ci-scripts/check-bootstrap.js",
|
|
32
|
+
"bootstrap": "node ../shared/ci-scripts/bootstrap.js",
|
|
31
33
|
"clean": "rimraf dist",
|
|
32
34
|
"typecheck": "tsc --noEmit",
|
|
33
35
|
"build:types": "tsc --declaration --emitDeclarationOnly",
|
|
@@ -36,7 +38,7 @@
|
|
|
36
38
|
"publish-api": "cd ../.. && yarn publish-api"
|
|
37
39
|
},
|
|
38
40
|
"devDependencies": {
|
|
39
|
-
"@types/node": "^25.
|
|
41
|
+
"@types/node": "^25.9.1",
|
|
40
42
|
"vite": "latest",
|
|
41
43
|
"vite-plugin-commonjs": "^0.10.3",
|
|
42
44
|
"vite-plugin-dts": "^4.5.4"
|