@evercam/api 1.0.0-533505ee2 → 1.0.0-53d3bfead
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/dist/api/api/3dFirebaseApi.d.ts +12 -13
- package/dist/api/api/adminApi.d.ts +2 -1
- package/dist/api/api/aiApi.d.ts +49 -2
- package/dist/api/api/authzApi.d.ts +2 -2
- package/dist/api/api/evercamApi.d.ts +16 -5
- package/dist/api/api/ingestApi.d.ts +12 -6
- package/dist/api/types/360.d.ts +24 -59
- package/dist/api/types/aiConfigs.d.ts +99 -11
- package/dist/api/types/analytics.d.ts +8 -8
- package/dist/api/types/authz.d.ts +34 -9
- package/dist/api/types/automation.d.ts +23 -4
- package/dist/api/types/axios.d.ts +1 -4
- package/dist/api/types/bim.d.ts +2 -4
- package/dist/api/types/camera.d.ts +2 -7
- package/dist/api/types/connector.d.ts +1 -0
- package/dist/api/types/copilot.d.ts +0 -3
- package/dist/api/types/detections.d.ts +1 -0
- package/dist/api/types/drone.d.ts +1 -2
- package/dist/api/types/errors.d.ts +2 -1
- package/dist/api/types/gateReport.d.ts +0 -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 +4 -1
- package/dist/api/types/ingest.d.ts +77 -1
- package/dist/api/types/kit.d.ts +30 -49
- package/dist/api/types/media.d.ts +2 -1
- 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 +84 -0
- package/dist/api/types/planner.d.ts +0 -8
- package/dist/api/types/project.d.ts +7 -0
- package/dist/api/types/recording.d.ts +2 -4
- package/dist/api/types/ring.d.ts +16 -16
- package/dist/api/types/roi.d.ts +0 -9
- 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 +29 -4
- 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/index.js +941 -666
- 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 +61 -31
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/observations.d.ts +25 -0
- package/package.json +1 -1
- package/dist/api/types/vendorModel.d.ts +0 -15
|
@@ -1,8 +1,17 @@
|
|
|
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 { AdminCamera, 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;
|
|
@@ -42,6 +51,8 @@ export declare enum IframeMessageType {
|
|
|
42
51
|
ForgeTokenResponse = "ForgeTokenResponse",
|
|
43
52
|
ShowBimUploadChoice = "showBimUploadChoice",
|
|
44
53
|
ViewerLaunchFlags = "viewerLaunchFlags",
|
|
54
|
+
Fetch360DrawingIds = "fetch360DrawingIds",
|
|
55
|
+
DrawingIdsResponse = "drawingIdsResponse",
|
|
45
56
|
CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
|
|
46
57
|
}
|
|
47
58
|
export declare enum NavigationArrow {
|
|
@@ -59,24 +70,6 @@ export declare enum PlayerMode {
|
|
|
59
70
|
Video = "video",
|
|
60
71
|
Jpegs = "jpegs"
|
|
61
72
|
}
|
|
62
|
-
export type TasksStatusMap = {
|
|
63
|
-
[key: string]: TaskStatus;
|
|
64
|
-
};
|
|
65
|
-
export type TaskProgressItem = {
|
|
66
|
-
status: TaskStatus;
|
|
67
|
-
description: string;
|
|
68
|
-
percentDone?: number;
|
|
69
|
-
duration?: number;
|
|
70
|
-
};
|
|
71
|
-
export type GlobalSearchMatch = {
|
|
72
|
-
path: Array<string>;
|
|
73
|
-
value: string | number | boolean;
|
|
74
|
-
};
|
|
75
|
-
export type GlobalSearchResult = {
|
|
76
|
-
index: number;
|
|
77
|
-
matches: Array<GlobalSearchMatch>;
|
|
78
|
-
};
|
|
79
|
-
export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
|
|
80
73
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
81
74
|
precision?: TimelinePrecision;
|
|
82
75
|
labels?: string[];
|
|
@@ -187,12 +180,14 @@ export type TagSelectorItem = Tag & {
|
|
|
187
180
|
};
|
|
188
181
|
export declare enum FormSchemaComponents {
|
|
189
182
|
SelectField = "SelectField",
|
|
183
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
190
184
|
MultiOption = "MultiOption",
|
|
191
185
|
TextField = "TextField",
|
|
192
186
|
SwitchField = "SwitchField",
|
|
193
187
|
CheckBox = "CheckBoxField",
|
|
194
188
|
Date = "DatePickerInput",
|
|
195
189
|
DateTime = "DateTimeField",
|
|
190
|
+
Time = "TimeField",
|
|
196
191
|
TextArea = "Textarea",
|
|
197
192
|
Search = "Autocomplete",
|
|
198
193
|
ReadOnly = "ReadOnly",
|
|
@@ -207,6 +202,7 @@ export declare enum FormSchemaDataType {
|
|
|
207
202
|
export type FormSchemaOptions = {
|
|
208
203
|
title: string;
|
|
209
204
|
value: string;
|
|
205
|
+
parentId?: string | null;
|
|
210
206
|
};
|
|
211
207
|
export type FormSchemaField = {
|
|
212
208
|
id: string;
|
|
@@ -248,14 +244,6 @@ export type SnapshotCardItem = {
|
|
|
248
244
|
placeholderThumbnailUrl?: string;
|
|
249
245
|
fallbackThumbnailUrl?: string;
|
|
250
246
|
};
|
|
251
|
-
export type DocumentExtended = Document & {
|
|
252
|
-
webkitIsFullScreen?: boolean;
|
|
253
|
-
mozFullScreen?: boolean;
|
|
254
|
-
msFullscreenElement?: Element | null;
|
|
255
|
-
fullscreenElement?: Element;
|
|
256
|
-
webkitFullscreenElement?: Element;
|
|
257
|
-
mozFullScreenElement?: Element;
|
|
258
|
-
};
|
|
259
247
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
260
248
|
data: T[];
|
|
261
249
|
};
|
|
@@ -268,9 +256,7 @@ export type FormattedNotificationData = {
|
|
|
268
256
|
titleSegments?: NotificationTitleSegment[];
|
|
269
257
|
link: string;
|
|
270
258
|
thumbnail?: string;
|
|
271
|
-
icon
|
|
272
|
-
drone?: boolean;
|
|
273
|
-
is360?: boolean;
|
|
259
|
+
icon: string;
|
|
274
260
|
};
|
|
275
261
|
export type FormattedNotification = FormattedNotificationData & {
|
|
276
262
|
date: string;
|
|
@@ -299,6 +285,20 @@ export type AutodeskUploadFormData = {
|
|
|
299
285
|
project: AutodeskProject | null;
|
|
300
286
|
folder: AutodeskFolder | null;
|
|
301
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
|
+
};
|
|
302
302
|
export interface MediaHubFilters {
|
|
303
303
|
title: string;
|
|
304
304
|
requesterEmail: string | undefined;
|
|
@@ -332,6 +332,19 @@ export type BimUploadFileResult = {
|
|
|
332
332
|
title: string;
|
|
333
333
|
fileExtension: string;
|
|
334
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
|
+
};
|
|
335
348
|
export interface ThreeSixtyWalk {
|
|
336
349
|
id: string;
|
|
337
350
|
name: string;
|
|
@@ -344,3 +357,20 @@ export interface ThreeSixtyWalkGroup {
|
|
|
344
357
|
date: string;
|
|
345
358
|
walks: ThreeSixtyWalk[];
|
|
346
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,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,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
|
-
};
|