@evercam/api 1.0.0-9fea602cf → 1.0.0-a1265cf0a
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 +56 -16
- package/dist/api/api/adminApi.d.ts +5 -4
- package/dist/api/api/aiApi.d.ts +30 -3
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +21 -10
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +6 -2
- package/dist/api/types/360.d.ts +135 -33
- package/dist/api/types/aiConfigs.d.ts +3 -11
- package/dist/api/types/analytics.d.ts +9 -0
- package/dist/api/types/authz.d.ts +46 -0
- package/dist/api/types/axios.d.ts +2 -4
- package/dist/api/types/bim.d.ts +3 -5
- package/dist/api/types/camera.d.ts +2 -7
- package/dist/api/types/comments.d.ts +2 -1
- 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/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 +12 -1
- package/dist/api/types/kit.d.ts +38 -51
- package/dist/api/types/media.d.ts +2 -1
- 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 +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 +4 -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 +90 -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 +1 -8
- package/dist/api/types/user.d.ts +0 -3
- package/dist/index.js +832 -514
- 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 +74 -28
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +1 -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",
|
|
@@ -54,24 +68,6 @@ export declare enum PlayerMode {
|
|
|
54
68
|
Video = "video",
|
|
55
69
|
Jpegs = "jpegs"
|
|
56
70
|
}
|
|
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
71
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
76
72
|
precision?: TimelinePrecision;
|
|
77
73
|
labels?: string[];
|
|
@@ -182,12 +178,14 @@ export type TagSelectorItem = Tag & {
|
|
|
182
178
|
};
|
|
183
179
|
export declare enum FormSchemaComponents {
|
|
184
180
|
SelectField = "SelectField",
|
|
181
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
185
182
|
MultiOption = "MultiOption",
|
|
186
183
|
TextField = "TextField",
|
|
187
184
|
SwitchField = "SwitchField",
|
|
188
185
|
CheckBox = "CheckBoxField",
|
|
189
186
|
Date = "DatePickerInput",
|
|
190
187
|
DateTime = "DateTimeField",
|
|
188
|
+
Time = "TimeField",
|
|
191
189
|
TextArea = "Textarea",
|
|
192
190
|
Search = "Autocomplete",
|
|
193
191
|
ReadOnly = "ReadOnly",
|
|
@@ -202,6 +200,7 @@ export declare enum FormSchemaDataType {
|
|
|
202
200
|
export type FormSchemaOptions = {
|
|
203
201
|
title: string;
|
|
204
202
|
value: string;
|
|
203
|
+
parentId?: string | null;
|
|
205
204
|
};
|
|
206
205
|
export type FormSchemaField = {
|
|
207
206
|
id: string;
|
|
@@ -243,19 +242,16 @@ export type SnapshotCardItem = {
|
|
|
243
242
|
placeholderThumbnailUrl?: string;
|
|
244
243
|
fallbackThumbnailUrl?: string;
|
|
245
244
|
};
|
|
246
|
-
export type DocumentExtended = Document & {
|
|
247
|
-
webkitIsFullScreen?: boolean;
|
|
248
|
-
mozFullScreen?: boolean;
|
|
249
|
-
msFullscreenElement?: Element | null;
|
|
250
|
-
fullscreenElement?: Element;
|
|
251
|
-
webkitFullscreenElement?: Element;
|
|
252
|
-
mozFullScreenElement?: Element;
|
|
253
|
-
};
|
|
254
245
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
255
246
|
data: T[];
|
|
256
247
|
};
|
|
248
|
+
export type NotificationTitleSegment = {
|
|
249
|
+
text: string;
|
|
250
|
+
isBold?: boolean;
|
|
251
|
+
};
|
|
257
252
|
export type FormattedNotificationData = {
|
|
258
253
|
title: string;
|
|
254
|
+
titleSegments?: NotificationTitleSegment[];
|
|
259
255
|
link: string;
|
|
260
256
|
thumbnail?: string;
|
|
261
257
|
icon?: string;
|
|
@@ -289,6 +285,20 @@ export type AutodeskUploadFormData = {
|
|
|
289
285
|
project: AutodeskProject | null;
|
|
290
286
|
folder: AutodeskFolder | null;
|
|
291
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
|
+
};
|
|
292
302
|
export interface MediaHubFilters {
|
|
293
303
|
title: string;
|
|
294
304
|
requesterEmail: string | undefined;
|
|
@@ -322,3 +332,39 @@ export type BimUploadFileResult = {
|
|
|
322
332
|
title: string;
|
|
323
333
|
fileExtension: string;
|
|
324
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
|
+
};
|
|
@@ -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,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
|
-
};
|