@evercam/api 1.0.0-01249112e → 1.0.0-025384d3e
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 +57 -24
- package/dist/api/api/adminApi.d.ts +5 -4
- package/dist/api/api/aiApi.d.ts +58 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +23 -12
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +19 -6
- package/dist/api/types/360.d.ts +121 -42
- package/dist/api/types/aiConfigs.d.ts +99 -11
- package/dist/api/types/analytics.d.ts +12 -9
- 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 +8 -8
- package/dist/api/types/bim.d.ts +11 -5
- package/dist/api/types/camera.d.ts +5 -8
- package/dist/api/types/comments.d.ts +2 -1
- 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 -1
- package/dist/api/types/drone.d.ts +1 -2
- package/dist/api/types/errors.d.ts +13 -1
- package/dist/api/types/gateReport.d.ts +1 -11
- package/dist/api/types/gateReportManagement.d.ts +2 -7
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +5 -1
- package/dist/api/types/ingest.d.ts +88 -1
- package/dist/api/types/kit.d.ts +41 -51
- 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 +0 -8
- package/dist/api/types/posthog.d.ts +20 -0
- package/dist/api/types/project.d.ts +7 -0
- package/dist/api/types/recording.d.ts +5 -5
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +2 -10
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/shared.d.ts +0 -19
- package/dist/api/types/shares.d.ts +0 -13
- package/dist/api/types/siteAnalytics.d.ts +1 -3
- package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
- package/dist/api/types/siteView.d.ts +0 -1
- 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 +1 -8
- package/dist/api/types/user.d.ts +1 -3
- package/dist/index.js +1204 -723
- 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 +84 -31
- package/dist/shared/types/customDataTableFilters.d.ts +10 -0
- package/dist/shared/types/index.d.ts +2 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +3 -1
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,12 +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,
|
|
2
|
-
import type { IngestUploadInitResponse } from "@evercam/api/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, Tag, TuplePoint2D, CameraStatus } from "@evercam/shared/types";
|
|
2
|
+
import type { AdminCamera, Camera, IngestUploadInitResponse } from "@evercam/api/types";
|
|
3
3
|
import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
|
|
4
4
|
import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
|
|
5
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
|
+
};
|
|
6
15
|
export type SelectItem = {
|
|
7
16
|
text: string;
|
|
8
17
|
value: string | number;
|
|
9
18
|
};
|
|
19
|
+
export type RoiProjectGroup = {
|
|
20
|
+
exid: string;
|
|
21
|
+
name: string;
|
|
22
|
+
cameras: AdminCamera[];
|
|
23
|
+
};
|
|
10
24
|
export declare enum IframeMessageType {
|
|
11
25
|
LiveView = "liveView",
|
|
12
26
|
EditSnapshot = "editSnapshot",
|
|
@@ -37,6 +51,8 @@ export declare enum IframeMessageType {
|
|
|
37
51
|
ForgeTokenResponse = "ForgeTokenResponse",
|
|
38
52
|
ShowBimUploadChoice = "showBimUploadChoice",
|
|
39
53
|
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
54
|
+
Fetch360DrawingIds = "fetch360DrawingIds",
|
|
55
|
+
DrawingIdsResponse = "drawingIdsResponse",
|
|
40
56
|
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
41
57
|
}
|
|
42
58
|
export declare enum NavigationArrow {
|
|
@@ -54,24 +70,6 @@ export declare enum PlayerMode {
|
|
|
54
70
|
Video = "video",
|
|
55
71
|
Jpegs = "jpegs"
|
|
56
72
|
}
|
|
57
|
-
export type TasksStatusMap = {
|
|
58
|
-
[key: string]: TaskStatus;
|
|
59
|
-
};
|
|
60
|
-
export type TaskProgressItem = {
|
|
61
|
-
status: TaskStatus;
|
|
62
|
-
description: string;
|
|
63
|
-
percentDone?: number;
|
|
64
|
-
duration?: number;
|
|
65
|
-
};
|
|
66
|
-
export type GlobalSearchMatch = {
|
|
67
|
-
path: Array<string>;
|
|
68
|
-
value: string | number | boolean;
|
|
69
|
-
};
|
|
70
|
-
export type GlobalSearchResult = {
|
|
71
|
-
index: number;
|
|
72
|
-
matches: Array<GlobalSearchMatch>;
|
|
73
|
-
};
|
|
74
|
-
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
75
73
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
76
74
|
precision?: TimelinePrecision;
|
|
77
75
|
labels?: string[];
|
|
@@ -182,12 +180,14 @@ export type TagSelectorItem = Tag & {
|
|
|
182
180
|
};
|
|
183
181
|
export declare enum FormSchemaComponents {
|
|
184
182
|
SelectField = "SelectField",
|
|
183
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
185
184
|
MultiOption = "MultiOption",
|
|
186
185
|
TextField = "TextField",
|
|
187
186
|
SwitchField = "SwitchField",
|
|
188
187
|
CheckBox = "CheckBoxField",
|
|
189
188
|
Date = "DatePickerInput",
|
|
190
189
|
DateTime = "DateTimeField",
|
|
190
|
+
Time = "TimeField",
|
|
191
191
|
TextArea = "Textarea",
|
|
192
192
|
Search = "Autocomplete",
|
|
193
193
|
ReadOnly = "ReadOnly",
|
|
@@ -202,6 +202,7 @@ export declare enum FormSchemaDataType {
|
|
|
202
202
|
export type FormSchemaOptions = {
|
|
203
203
|
title: string;
|
|
204
204
|
value: string;
|
|
205
|
+
parentId?: string | null;
|
|
205
206
|
};
|
|
206
207
|
export type FormSchemaField = {
|
|
207
208
|
id: string;
|
|
@@ -229,6 +230,7 @@ export type DrawingStats = {
|
|
|
229
230
|
};
|
|
230
231
|
export interface ScrollListener {
|
|
231
232
|
element: Element | Window;
|
|
233
|
+
event: "scroll" | "resize";
|
|
232
234
|
handler: () => void;
|
|
233
235
|
}
|
|
234
236
|
export interface LeaderLineInstance {
|
|
@@ -242,24 +244,19 @@ export type SnapshotCardItem = {
|
|
|
242
244
|
placeholderThumbnailUrl?: string;
|
|
243
245
|
fallbackThumbnailUrl?: string;
|
|
244
246
|
};
|
|
245
|
-
export type DocumentExtended = Document & {
|
|
246
|
-
webkitIsFullScreen?: boolean;
|
|
247
|
-
mozFullScreen?: boolean;
|
|
248
|
-
msFullscreenElement?: Element | null;
|
|
249
|
-
fullscreenElement?: Element;
|
|
250
|
-
webkitFullscreenElement?: Element;
|
|
251
|
-
mozFullScreenElement?: Element;
|
|
252
|
-
};
|
|
253
247
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
254
248
|
data: T[];
|
|
255
249
|
};
|
|
250
|
+
export type NotificationTitleSegment = {
|
|
251
|
+
text: string;
|
|
252
|
+
isBold?: boolean;
|
|
253
|
+
};
|
|
256
254
|
export type FormattedNotificationData = {
|
|
257
255
|
title: string;
|
|
256
|
+
titleSegments?: NotificationTitleSegment[];
|
|
258
257
|
link: string;
|
|
259
258
|
thumbnail?: string;
|
|
260
|
-
icon
|
|
261
|
-
drone?: boolean;
|
|
262
|
-
is360?: boolean;
|
|
259
|
+
icon: string;
|
|
263
260
|
};
|
|
264
261
|
export type FormattedNotification = FormattedNotificationData & {
|
|
265
262
|
date: string;
|
|
@@ -288,6 +285,20 @@ export type AutodeskUploadFormData = {
|
|
|
288
285
|
project: AutodeskProject | null;
|
|
289
286
|
folder: AutodeskFolder | null;
|
|
290
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
|
+
};
|
|
291
302
|
export interface MediaHubFilters {
|
|
292
303
|
title: string;
|
|
293
304
|
requesterEmail: string | undefined;
|
|
@@ -321,3 +332,45 @@ export type BimUploadFileResult = {
|
|
|
321
332
|
title: string;
|
|
322
333
|
fileExtension: string;
|
|
323
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>>;
|
|
@@ -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-025384d3e",
|
|
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",
|
|
@@ -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
|
-
};
|