@evercam/api 1.0.0-511ba8668 → 1.0.0-5198c9ce1
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 +204 -15
- package/dist/api/api/adminApi.d.ts +19 -15
- package/dist/api/api/aiApi.d.ts +62 -4
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +31 -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 +197 -54
- 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 +9 -5
- package/dist/api/types/bim.d.ts +26 -1
- package/dist/api/types/camera.d.ts +12 -25
- 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 +95 -6
- package/dist/api/types/errors.d.ts +11 -0
- package/dist/api/types/gateReport.d.ts +7 -11
- package/dist/api/types/gateReportManagement.d.ts +175 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/ingest.d.ts +15 -3
- package/dist/api/types/kit.d.ts +38 -2
- 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 +12 -2
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +55 -2
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +9 -1
- package/dist/api/types/recording.d.ts +5 -9
- package/dist/api/types/roi.d.ts +4 -3
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +19 -0
- package/dist/api/types/siteAnalytics.d.ts +3 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/siteView.d.ts +73 -0
- package/dist/api/types/snapshots.d.ts +13 -0
- package/dist/api/types/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 +1601 -648
- 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 +100 -9
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/imagePlayer.d.ts +8 -1
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +4 -2
|
@@ -1,11 +1,26 @@
|
|
|
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, CameraStatus } from "@evercam/shared/types";
|
|
2
|
+
import type { AdminCamera, Camera, 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
|
+
export type ReorderableCamera = Camera & {
|
|
7
|
+
thumbnailSrc?: string;
|
|
8
|
+
batteryLevel?: {
|
|
9
|
+
voltage: number;
|
|
10
|
+
level: string;
|
|
11
|
+
icon: string;
|
|
12
|
+
color: string;
|
|
13
|
+
} | null;
|
|
14
|
+
};
|
|
5
15
|
export type SelectItem = {
|
|
6
16
|
text: string;
|
|
7
17
|
value: string | number;
|
|
8
18
|
};
|
|
19
|
+
export type RoiProjectGroup = {
|
|
20
|
+
exid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
cameras: AdminCamera[];
|
|
23
|
+
};
|
|
9
24
|
export declare enum IframeMessageType {
|
|
10
25
|
LiveView = "liveView",
|
|
11
26
|
EditSnapshot = "editSnapshot",
|
|
@@ -33,7 +48,10 @@ export declare enum IframeMessageType {
|
|
|
33
48
|
Load360Gallery = "load360Gallery",
|
|
34
49
|
Upload360 = "upload360",
|
|
35
50
|
FetchForgeToken = "FetchForgeToken",
|
|
36
|
-
ForgeTokenResponse = "ForgeTokenResponse"
|
|
51
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
52
|
+
ShowBimUploadChoice = "showBimUploadChoice",
|
|
53
|
+
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
54
|
+
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
37
55
|
}
|
|
38
56
|
export declare enum NavigationArrow {
|
|
39
57
|
Previous = "previous",
|
|
@@ -44,7 +62,6 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
44
62
|
Bim = "BIM",
|
|
45
63
|
Snapshot = "snapshot",
|
|
46
64
|
The360 = "360",
|
|
47
|
-
The360Gallery = "360 Gallery",
|
|
48
65
|
Planner = "Planner"
|
|
49
66
|
}
|
|
50
67
|
export declare enum PlayerMode {
|
|
@@ -151,8 +168,8 @@ export type LeaderLineOptions = {
|
|
|
151
168
|
startPlugSize?: number;
|
|
152
169
|
endPlugSize?: number;
|
|
153
170
|
path?: LeaderLinesPathType;
|
|
154
|
-
startSocketGravity?:
|
|
155
|
-
endSocketGravity?:
|
|
171
|
+
startSocketGravity?: TuplePoint2D;
|
|
172
|
+
endSocketGravity?: TuplePoint2D;
|
|
156
173
|
dash?: {
|
|
157
174
|
animation: boolean | {
|
|
158
175
|
duration: number;
|
|
@@ -169,10 +186,6 @@ export type LineConfig = {
|
|
|
169
186
|
end: CssSelector | CssSelector[];
|
|
170
187
|
options?: LeaderLineOptions;
|
|
171
188
|
};
|
|
172
|
-
export type Point = {
|
|
173
|
-
x: number;
|
|
174
|
-
y: number;
|
|
175
|
-
};
|
|
176
189
|
export declare enum ZohoDeskTicketStatus {
|
|
177
190
|
Closed = "Closed",
|
|
178
191
|
OnHold = "On Hold",
|
|
@@ -183,12 +196,14 @@ export type TagSelectorItem = Tag & {
|
|
|
183
196
|
};
|
|
184
197
|
export declare enum FormSchemaComponents {
|
|
185
198
|
SelectField = "SelectField",
|
|
199
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
186
200
|
MultiOption = "MultiOption",
|
|
187
201
|
TextField = "TextField",
|
|
188
202
|
SwitchField = "SwitchField",
|
|
189
203
|
CheckBox = "CheckBoxField",
|
|
190
204
|
Date = "DatePickerInput",
|
|
191
205
|
DateTime = "DateTimeField",
|
|
206
|
+
Time = "TimeField",
|
|
192
207
|
TextArea = "Textarea",
|
|
193
208
|
Search = "Autocomplete",
|
|
194
209
|
ReadOnly = "ReadOnly",
|
|
@@ -203,6 +218,7 @@ export declare enum FormSchemaDataType {
|
|
|
203
218
|
export type FormSchemaOptions = {
|
|
204
219
|
title: string;
|
|
205
220
|
value: string;
|
|
221
|
+
parentId?: string | null;
|
|
206
222
|
};
|
|
207
223
|
export type FormSchemaField = {
|
|
208
224
|
id: string;
|
|
@@ -217,8 +233,20 @@ export type FormSchemaField = {
|
|
|
217
233
|
columns?: number;
|
|
218
234
|
};
|
|
219
235
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
236
|
+
export type DrawingStats = {
|
|
237
|
+
overlay: boolean;
|
|
238
|
+
geolocated: boolean;
|
|
239
|
+
isCalibrated: boolean;
|
|
240
|
+
walks: number;
|
|
241
|
+
markers: number;
|
|
242
|
+
minimodel: number;
|
|
243
|
+
bim: number;
|
|
244
|
+
comments: number;
|
|
245
|
+
lastCapturedDate: string | null;
|
|
246
|
+
};
|
|
220
247
|
export interface ScrollListener {
|
|
221
248
|
element: Element | Window;
|
|
249
|
+
event: "scroll" | "resize";
|
|
222
250
|
handler: () => void;
|
|
223
251
|
}
|
|
224
252
|
export interface LeaderLineInstance {
|
|
@@ -243,8 +271,13 @@ export type DocumentExtended = Document & {
|
|
|
243
271
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
244
272
|
data: T[];
|
|
245
273
|
};
|
|
274
|
+
export type NotificationTitleSegment = {
|
|
275
|
+
text: string;
|
|
276
|
+
isBold?: boolean;
|
|
277
|
+
};
|
|
246
278
|
export type FormattedNotificationData = {
|
|
247
279
|
title: string;
|
|
280
|
+
titleSegments?: NotificationTitleSegment[];
|
|
248
281
|
link: string;
|
|
249
282
|
thumbnail?: string;
|
|
250
283
|
icon?: string;
|
|
@@ -278,6 +311,20 @@ export type AutodeskUploadFormData = {
|
|
|
278
311
|
project: AutodeskProject | null;
|
|
279
312
|
folder: AutodeskFolder | null;
|
|
280
313
|
};
|
|
314
|
+
export type HammertechUploadFormData = {
|
|
315
|
+
project: HammertechProject | null;
|
|
316
|
+
issueType: HammertechIssueType | null;
|
|
317
|
+
description: string;
|
|
318
|
+
priority: HammertechPriority | null;
|
|
319
|
+
dueDate: string | null;
|
|
320
|
+
classification: HammertechClassification | null;
|
|
321
|
+
locationId: string | null;
|
|
322
|
+
isPositiveObservation: boolean;
|
|
323
|
+
isPhotoForFixRequired: boolean;
|
|
324
|
+
customFieldFormId: string | null;
|
|
325
|
+
customFieldValues: Record<string, unknown>;
|
|
326
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
327
|
+
};
|
|
281
328
|
export interface MediaHubFilters {
|
|
282
329
|
title: string;
|
|
283
330
|
requesterEmail: string | undefined;
|
|
@@ -303,3 +350,47 @@ export type TableHeaderParams<TItem = unknown> = {
|
|
|
303
350
|
toStringFn?: (item: TItem, key: string) => any;
|
|
304
351
|
sort?: (a: unknown, b: unknown) => number;
|
|
305
352
|
};
|
|
353
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
354
|
+
projectName: string;
|
|
355
|
+
};
|
|
356
|
+
export type BimUploadFileResult = {
|
|
357
|
+
url: string;
|
|
358
|
+
title: string;
|
|
359
|
+
fileExtension: string;
|
|
360
|
+
};
|
|
361
|
+
export type CameraCardItem = {
|
|
362
|
+
thumbnail: string;
|
|
363
|
+
title: string;
|
|
364
|
+
exid: string;
|
|
365
|
+
status: CameraStatus;
|
|
366
|
+
disabled: boolean;
|
|
367
|
+
to: string;
|
|
368
|
+
isOffline: boolean;
|
|
369
|
+
isWaiting: boolean;
|
|
370
|
+
isUnderNda: boolean;
|
|
371
|
+
isAdmin: boolean;
|
|
372
|
+
batteryVoltage: number | null;
|
|
373
|
+
};
|
|
374
|
+
export interface ThreeSixtyWalk {
|
|
375
|
+
id: string;
|
|
376
|
+
name: string;
|
|
377
|
+
date: string;
|
|
378
|
+
color: string;
|
|
379
|
+
dateId: string;
|
|
380
|
+
floorId: string;
|
|
381
|
+
}
|
|
382
|
+
export interface ThreeSixtyWalkGroup {
|
|
383
|
+
date: string;
|
|
384
|
+
walks: ThreeSixtyWalk[];
|
|
385
|
+
}
|
|
386
|
+
export type DatePresetContext = {
|
|
387
|
+
minDate?: string;
|
|
388
|
+
maxDate: string;
|
|
389
|
+
effectiveMinDate?: string;
|
|
390
|
+
effectiveMaxDate: string;
|
|
391
|
+
};
|
|
392
|
+
export type DatePreset = {
|
|
393
|
+
name: string;
|
|
394
|
+
resolveRange?: (ctx: DatePresetContext) => [string, string];
|
|
395
|
+
isHide?: (ctx: DatePresetContext) => boolean;
|
|
396
|
+
};
|
|
@@ -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-5198c9ce1",
|
|
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"
|