@evercam/api 1.0.0-964e29308 → 1.0.0-98fee43f2
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 +20 -15
- package/dist/api/api/aiApi.d.ts +90 -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 +19 -5
- package/dist/api/types/360.d.ts +175 -76
- package/dist/api/types/aiConfigs.d.ts +242 -0
- package/dist/api/types/analytics.d.ts +34 -15
- 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 +95 -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 +61 -0
- package/dist/api/types/observations.d.ts +85 -0
- package/dist/api/types/planner.d.ts +55 -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 +1781 -673
- 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 +103 -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 +21 -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,12 @@ 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
|
+
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
35
55
|
}
|
|
36
56
|
export declare enum NavigationArrow {
|
|
37
57
|
Previous = "previous",
|
|
@@ -42,31 +62,12 @@ export declare enum WatermarkedImageDownloadOrigin {
|
|
|
42
62
|
Bim = "BIM",
|
|
43
63
|
Snapshot = "snapshot",
|
|
44
64
|
The360 = "360",
|
|
45
|
-
The360Gallery = "360 Gallery",
|
|
46
65
|
Planner = "Planner"
|
|
47
66
|
}
|
|
48
67
|
export declare enum PlayerMode {
|
|
49
68
|
Video = "video",
|
|
50
69
|
Jpegs = "jpegs"
|
|
51
70
|
}
|
|
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
71
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
71
72
|
precision?: TimelinePrecision;
|
|
72
73
|
labels?: string[];
|
|
@@ -149,8 +150,8 @@ export type LeaderLineOptions = {
|
|
|
149
150
|
startPlugSize?: number;
|
|
150
151
|
endPlugSize?: number;
|
|
151
152
|
path?: LeaderLinesPathType;
|
|
152
|
-
startSocketGravity?:
|
|
153
|
-
endSocketGravity?:
|
|
153
|
+
startSocketGravity?: TuplePoint2D;
|
|
154
|
+
endSocketGravity?: TuplePoint2D;
|
|
154
155
|
dash?: {
|
|
155
156
|
animation: boolean | {
|
|
156
157
|
duration: number;
|
|
@@ -167,10 +168,6 @@ export type LineConfig = {
|
|
|
167
168
|
end: CssSelector | CssSelector[];
|
|
168
169
|
options?: LeaderLineOptions;
|
|
169
170
|
};
|
|
170
|
-
export type Point = {
|
|
171
|
-
x: number;
|
|
172
|
-
y: number;
|
|
173
|
-
};
|
|
174
171
|
export declare enum ZohoDeskTicketStatus {
|
|
175
172
|
Closed = "Closed",
|
|
176
173
|
OnHold = "On Hold",
|
|
@@ -181,12 +178,14 @@ export type TagSelectorItem = Tag & {
|
|
|
181
178
|
};
|
|
182
179
|
export declare enum FormSchemaComponents {
|
|
183
180
|
SelectField = "SelectField",
|
|
181
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
184
182
|
MultiOption = "MultiOption",
|
|
185
183
|
TextField = "TextField",
|
|
186
184
|
SwitchField = "SwitchField",
|
|
187
185
|
CheckBox = "CheckBoxField",
|
|
188
186
|
Date = "DatePickerInput",
|
|
189
187
|
DateTime = "DateTimeField",
|
|
188
|
+
Time = "TimeField",
|
|
190
189
|
TextArea = "Textarea",
|
|
191
190
|
Search = "Autocomplete",
|
|
192
191
|
ReadOnly = "ReadOnly",
|
|
@@ -201,6 +200,7 @@ export declare enum FormSchemaDataType {
|
|
|
201
200
|
export type FormSchemaOptions = {
|
|
202
201
|
title: string;
|
|
203
202
|
value: string;
|
|
203
|
+
parentId?: string | null;
|
|
204
204
|
};
|
|
205
205
|
export type FormSchemaField = {
|
|
206
206
|
id: string;
|
|
@@ -215,8 +215,20 @@ export type FormSchemaField = {
|
|
|
215
215
|
columns?: number;
|
|
216
216
|
};
|
|
217
217
|
export type FormSchema = Record<string, FormSchemaField>;
|
|
218
|
+
export type DrawingStats = {
|
|
219
|
+
overlay: boolean;
|
|
220
|
+
geolocated: boolean;
|
|
221
|
+
isCalibrated: boolean;
|
|
222
|
+
walks: number;
|
|
223
|
+
markers: number;
|
|
224
|
+
minimodel: number;
|
|
225
|
+
bim: number;
|
|
226
|
+
comments: number;
|
|
227
|
+
lastCapturedDate: string | null;
|
|
228
|
+
};
|
|
218
229
|
export interface ScrollListener {
|
|
219
230
|
element: Element | Window;
|
|
231
|
+
event: "scroll" | "resize";
|
|
220
232
|
handler: () => void;
|
|
221
233
|
}
|
|
222
234
|
export interface LeaderLineInstance {
|
|
@@ -230,24 +242,19 @@ export type SnapshotCardItem = {
|
|
|
230
242
|
placeholderThumbnailUrl?: string;
|
|
231
243
|
fallbackThumbnailUrl?: string;
|
|
232
244
|
};
|
|
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
245
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
242
246
|
data: T[];
|
|
243
247
|
};
|
|
248
|
+
export type NotificationTitleSegment = {
|
|
249
|
+
text: string;
|
|
250
|
+
isBold?: boolean;
|
|
251
|
+
};
|
|
244
252
|
export type FormattedNotificationData = {
|
|
245
253
|
title: string;
|
|
254
|
+
titleSegments?: NotificationTitleSegment[];
|
|
246
255
|
link: string;
|
|
247
256
|
thumbnail?: string;
|
|
248
|
-
icon
|
|
249
|
-
drone?: boolean;
|
|
250
|
-
is360?: boolean;
|
|
257
|
+
icon: string;
|
|
251
258
|
};
|
|
252
259
|
export type FormattedNotification = FormattedNotificationData & {
|
|
253
260
|
date: string;
|
|
@@ -276,6 +283,20 @@ export type AutodeskUploadFormData = {
|
|
|
276
283
|
project: AutodeskProject | null;
|
|
277
284
|
folder: AutodeskFolder | null;
|
|
278
285
|
};
|
|
286
|
+
export type HammertechUploadFormData = {
|
|
287
|
+
project: HammertechProject | null;
|
|
288
|
+
issueType: HammertechIssueType | null;
|
|
289
|
+
description: string;
|
|
290
|
+
priority: HammertechPriority | null;
|
|
291
|
+
dueDate: string | null;
|
|
292
|
+
classification: HammertechClassification | null;
|
|
293
|
+
locationId: string | null;
|
|
294
|
+
isPositiveObservation: boolean;
|
|
295
|
+
isPhotoForFixRequired: boolean;
|
|
296
|
+
customFieldFormId: string | null;
|
|
297
|
+
customFieldValues: Record<string, unknown>;
|
|
298
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
299
|
+
};
|
|
279
300
|
export interface MediaHubFilters {
|
|
280
301
|
title: string;
|
|
281
302
|
requesterEmail: string | undefined;
|
|
@@ -301,3 +322,47 @@ export type TableHeaderParams<TItem = unknown> = {
|
|
|
301
322
|
toStringFn?: (item: TItem, key: string) => any;
|
|
302
323
|
sort?: (a: unknown, b: unknown) => number;
|
|
303
324
|
};
|
|
325
|
+
export type BimUploadObject = IngestUploadInitResponse & {
|
|
326
|
+
projectName: string;
|
|
327
|
+
};
|
|
328
|
+
export type BimUploadFileResult = {
|
|
329
|
+
url: string;
|
|
330
|
+
title: string;
|
|
331
|
+
fileExtension: string;
|
|
332
|
+
};
|
|
333
|
+
export type CameraCardItem = {
|
|
334
|
+
thumbnail: string;
|
|
335
|
+
title: string;
|
|
336
|
+
exid: string;
|
|
337
|
+
status: CameraStatus;
|
|
338
|
+
disabled: boolean;
|
|
339
|
+
to: string;
|
|
340
|
+
isOffline: boolean;
|
|
341
|
+
isWaiting: boolean;
|
|
342
|
+
isUnderNda: boolean;
|
|
343
|
+
isAdmin: boolean;
|
|
344
|
+
batteryVoltage: number | null;
|
|
345
|
+
};
|
|
346
|
+
export interface ThreeSixtyWalk {
|
|
347
|
+
id: string;
|
|
348
|
+
name: string;
|
|
349
|
+
date: string;
|
|
350
|
+
color: string;
|
|
351
|
+
dateId: string;
|
|
352
|
+
floorId: string;
|
|
353
|
+
}
|
|
354
|
+
export interface ThreeSixtyWalkGroup {
|
|
355
|
+
date: string;
|
|
356
|
+
walks: ThreeSixtyWalk[];
|
|
357
|
+
}
|
|
358
|
+
export type DatePresetContext = {
|
|
359
|
+
minDate?: string;
|
|
360
|
+
maxDate: string;
|
|
361
|
+
effectiveMinDate?: string;
|
|
362
|
+
effectiveMaxDate: string;
|
|
363
|
+
};
|
|
364
|
+
export type DatePreset = {
|
|
365
|
+
name: string;
|
|
366
|
+
resolveRange?: (ctx: DatePresetContext) => [string, string];
|
|
367
|
+
isHide?: (ctx: DatePresetContext) => boolean;
|
|
368
|
+
};
|
|
@@ -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-98fee43f2",
|
|
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
|
-
};
|