@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
|
@@ -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,
|
|
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, 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",
|
|
@@ -31,7 +46,14 @@ export declare enum IframeMessageType {
|
|
|
31
46
|
RefreshComments = "refreshComments",
|
|
32
47
|
CommentSyncFailed = "commentSyncFailed",
|
|
33
48
|
Load360Gallery = "load360Gallery",
|
|
34
|
-
Upload360 = "upload360"
|
|
49
|
+
Upload360 = "upload360",
|
|
50
|
+
FetchForgeToken = "FetchForgeToken",
|
|
51
|
+
ForgeTokenResponse = "ForgeTokenResponse",
|
|
52
|
+
ShowBimUploadChoice = "showBimUploadChoice",
|
|
53
|
+
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
54
|
+
Fetch360DrawingIds = "fetch360DrawingIds",
|
|
55
|
+
DrawingIdsResponse = "drawingIdsResponse",
|
|
56
|
+
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
35
57
|
}
|
|
36
58
|
export declare enum NavigationArrow {
|
|
37
59
|
Previous = "previous",
|
|
@@ -42,31 +64,12 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
42
64
|
Bim = "BIM",
|
|
43
65
|
Snapshot = "snapshot",
|
|
44
66
|
The360 = "360",
|
|
45
|
-
The360Gallery = "360 Gallery",
|
|
46
67
|
Planner = "Planner"
|
|
47
68
|
}
|
|
48
69
|
export declare enum PlayerMode {
|
|
49
70
|
Video = "video",
|
|
50
71
|
Jpegs = "jpegs"
|
|
51
72
|
}
|
|
52
|
-
export type TasksStatusMap = {
|
|
53
|
-
[key: string]: TaskStatus;
|
|
54
|
-
};
|
|
55
|
-
export type TaskProgressItem = {
|
|
56
|
-
status: TaskStatus;
|
|
57
|
-
description: string;
|
|
58
|
-
percentDone?: number;
|
|
59
|
-
duration?: number;
|
|
60
|
-
};
|
|
61
|
-
export type GlobalSearchMatch = {
|
|
62
|
-
path: Array<string>;
|
|
63
|
-
value: string | number | boolean;
|
|
64
|
-
};
|
|
65
|
-
export type GlobalSearchResult = {
|
|
66
|
-
index: number;
|
|
67
|
-
matches: Array<GlobalSearchMatch>;
|
|
68
|
-
};
|
|
69
|
-
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
70
73
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
71
74
|
precision?: TimelinePrecision;
|
|
72
75
|
labels?: string[];
|
|
@@ -149,8 +152,8 @@ export type LeaderLineOptions = {
|
|
|
149
152
|
startPlugSize?: number;
|
|
150
153
|
endPlugSize?: number;
|
|
151
154
|
path?: LeaderLinesPathType;
|
|
152
|
-
startSocketGravity?:
|
|
153
|
-
endSocketGravity?:
|
|
155
|
+
startSocketGravity?: TuplePoint2D;
|
|
156
|
+
endSocketGravity?: TuplePoint2D;
|
|
154
157
|
dash?: {
|
|
155
158
|
animation: boolean | {
|
|
156
159
|
duration: number;
|
|
@@ -167,10 +170,6 @@ export type LineConfig = {
|
|
|
167
170
|
end: CssSelector | CssSelector[];
|
|
168
171
|
options?: LeaderLineOptions;
|
|
169
172
|
};
|
|
170
|
-
export type Point = {
|
|
171
|
-
x: number;
|
|
172
|
-
y: number;
|
|
173
|
-
};
|
|
174
173
|
export declare enum ZohoDeskTicketStatus {
|
|
175
174
|
Closed = "Closed",
|
|
176
175
|
OnHold = "On Hold",
|
|
@@ -181,12 +180,14 @@ export type TagSelectorItem = Tag & {
|
|
|
181
180
|
};
|
|
182
181
|
export declare enum FormSchemaComponents {
|
|
183
182
|
SelectField = "SelectField",
|
|
183
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
184
184
|
MultiOption = "MultiOption",
|
|
185
185
|
TextField = "TextField",
|
|
186
186
|
SwitchField = "SwitchField",
|
|
187
187
|
CheckBox = "CheckBoxField",
|
|
188
188
|
Date = "DatePickerInput",
|
|
189
189
|
DateTime = "DateTimeField",
|
|
190
|
+
Time = "TimeField",
|
|
190
191
|
TextArea = "Textarea",
|
|
191
192
|
Search = "Autocomplete",
|
|
192
193
|
ReadOnly = "ReadOnly",
|
|
@@ -201,6 +202,7 @@ export declare enum FormSchemaDataType {
|
|
|
201
202
|
export type FormSchemaOptions = {
|
|
202
203
|
title: string;
|
|
203
204
|
value: string;
|
|
205
|
+
parentId?: string | null;
|
|
204
206
|
};
|
|
205
207
|
export type FormSchemaField = {
|
|
206
208
|
id: string;
|
|
@@ -215,8 +217,20 @@ export type FormSchemaField = {
|
|
|
215
217
|
columns?: number;
|
|
216
218
|
};
|
|
217
219
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
220
|
+
export type DrawingStats = {
|
|
221
|
+
overlay: boolean;
|
|
222
|
+
geolocated: boolean;
|
|
223
|
+
isCalibrated: boolean;
|
|
224
|
+
walks: number;
|
|
225
|
+
markers: number;
|
|
226
|
+
minimodel: number;
|
|
227
|
+
bim: number;
|
|
228
|
+
comments: number;
|
|
229
|
+
lastCapturedDate: string | null;
|
|
230
|
+
};
|
|
218
231
|
export interface ScrollListener {
|
|
219
232
|
element: Element | Window;
|
|
233
|
+
event: "scroll" | "resize";
|
|
220
234
|
handler: () => void;
|
|
221
235
|
}
|
|
222
236
|
export interface LeaderLineInstance {
|
|
@@ -230,24 +244,19 @@ export type SnapshotCardItem = {
|
|
|
230
244
|
placeholderThumbnailUrl?: string;
|
|
231
245
|
fallbackThumbnailUrl?: string;
|
|
232
246
|
};
|
|
233
|
-
export type DocumentExtended = Document & {
|
|
234
|
-
webkitIsFullScreen?: boolean;
|
|
235
|
-
mozFullScreen?: boolean;
|
|
236
|
-
msFullscreenElement?: Element | null;
|
|
237
|
-
fullscreenElement?: Element;
|
|
238
|
-
webkitFullscreenElement?: Element;
|
|
239
|
-
mozFullScreenElement?: Element;
|
|
240
|
-
};
|
|
241
247
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
242
248
|
data: T[];
|
|
243
249
|
};
|
|
250
|
+
export type NotificationTitleSegment = {
|
|
251
|
+
text: string;
|
|
252
|
+
isBold?: boolean;
|
|
253
|
+
};
|
|
244
254
|
export type FormattedNotificationData = {
|
|
245
255
|
title: string;
|
|
256
|
+
titleSegments?: NotificationTitleSegment[];
|
|
246
257
|
link: string;
|
|
247
258
|
thumbnail?: string;
|
|
248
|
-
icon
|
|
249
|
-
drone?: boolean;
|
|
250
|
-
is360?: boolean;
|
|
259
|
+
icon: string;
|
|
251
260
|
};
|
|
252
261
|
export type FormattedNotification = FormattedNotificationData & {
|
|
253
262
|
date: string;
|
|
@@ -276,6 +285,20 @@ export type AutodeskUploadFormData = {
|
|
|
276
285
|
project: AutodeskProject | null;
|
|
277
286
|
folder: AutodeskFolder | null;
|
|
278
287
|
};
|
|
288
|
+
export type HammertechUploadFormData = {
|
|
289
|
+
project: HammertechProject | null;
|
|
290
|
+
issueType: HammertechIssueType | null;
|
|
291
|
+
description: string;
|
|
292
|
+
priority: HammertechPriority | null;
|
|
293
|
+
dueDate: string | null;
|
|
294
|
+
classification: HammertechClassification | null;
|
|
295
|
+
locationId: string | null;
|
|
296
|
+
isPositiveObservation: boolean;
|
|
297
|
+
isPhotoForFixRequired: boolean;
|
|
298
|
+
customFieldFormId: string | null;
|
|
299
|
+
customFieldValues: Record<string, unknown>;
|
|
300
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
301
|
+
};
|
|
279
302
|
export interface MediaHubFilters {
|
|
280
303
|
title: string;
|
|
281
304
|
requesterEmail: string | undefined;
|
|
@@ -301,3 +324,53 @@ export type TableHeaderParams<TItem = unknown> = {
|
|
|
301
324
|
toStringFn?: (item: TItem, key: string) => any;
|
|
302
325
|
sort?: (a: unknown, b: unknown) => number;
|
|
303
326
|
};
|
|
327
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
328
|
+
projectName: string;
|
|
329
|
+
};
|
|
330
|
+
export type BimUploadFileResult = {
|
|
331
|
+
url: string;
|
|
332
|
+
title: string;
|
|
333
|
+
fileExtension: string;
|
|
334
|
+
};
|
|
335
|
+
export type CameraCardItem = {
|
|
336
|
+
thumbnail: string;
|
|
337
|
+
title: string;
|
|
338
|
+
exid: string;
|
|
339
|
+
status: CameraStatus;
|
|
340
|
+
disabled: boolean;
|
|
341
|
+
to: string;
|
|
342
|
+
isOffline: boolean;
|
|
343
|
+
isWaiting: boolean;
|
|
344
|
+
isUnderNda: boolean;
|
|
345
|
+
isAdmin: boolean;
|
|
346
|
+
batteryVoltage: number | null;
|
|
347
|
+
};
|
|
348
|
+
export interface ThreeSixtyWalk {
|
|
349
|
+
id: string;
|
|
350
|
+
name: string;
|
|
351
|
+
date: string;
|
|
352
|
+
color: string;
|
|
353
|
+
dateId: string;
|
|
354
|
+
floorId: string;
|
|
355
|
+
}
|
|
356
|
+
export interface ThreeSixtyWalkGroup {
|
|
357
|
+
date: string;
|
|
358
|
+
walks: ThreeSixtyWalk[];
|
|
359
|
+
}
|
|
360
|
+
export type DatePresetContext = {
|
|
361
|
+
minDate?: string;
|
|
362
|
+
maxDate: string;
|
|
363
|
+
effectiveMinDate?: string;
|
|
364
|
+
effectiveMaxDate: string;
|
|
365
|
+
};
|
|
366
|
+
export type DatePreset = {
|
|
367
|
+
name: string;
|
|
368
|
+
resolveRange?: (ctx: DatePresetContext) => [string, string];
|
|
369
|
+
isHide?: (ctx: DatePresetContext) => boolean;
|
|
370
|
+
};
|
|
371
|
+
export type DrawingSelection = {
|
|
372
|
+
pageNumber: number;
|
|
373
|
+
size: number;
|
|
374
|
+
thumbnail: string | null;
|
|
375
|
+
pageCount: number;
|
|
376
|
+
};
|
|
@@ -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,25 @@
|
|
|
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
|
+
};
|
|
22
|
+
export type ObservationTypeOption = {
|
|
23
|
+
value: string;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
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-97bd6ccd7",
|
|
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"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type VendorModel = {
|
|
2
|
-
cameraCount: number;
|
|
3
|
-
exid: string;
|
|
4
|
-
h264Url: string;
|
|
5
|
-
jpgUrl: string;
|
|
6
|
-
name: string;
|
|
7
|
-
online: number;
|
|
8
|
-
playbackUrl: string;
|
|
9
|
-
};
|
|
10
|
-
export type VendorModelRequestPayload = {
|
|
11
|
-
sort: string;
|
|
12
|
-
};
|
|
13
|
-
export type VendorModelResponsePayload = {
|
|
14
|
-
data: VendorModel[];
|
|
15
|
-
};
|