@evercam/api 1.0.0-a7ddee781 → 1.0.0-a956c10a1
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 +6 -0
- package/dist/api/api/adminApi.d.ts +3 -2
- package/dist/api/api/aiApi.d.ts +48 -2
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +17 -6
- package/dist/api/api/ingestApi.d.ts +7 -2
- package/dist/api/types/360.d.ts +11 -32
- package/dist/api/types/aiConfigs.d.ts +99 -11
- package/dist/api/types/analytics.d.ts +7 -0
- package/dist/api/types/authz.d.ts +46 -0
- package/dist/api/types/automation.d.ts +23 -4
- 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/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 -1
- 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 +85 -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/api/types/user.d.ts +0 -3
- package/dist/index.js +914 -615
- 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 +70 -31
- 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,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;
|
|
@@ -59,24 +68,6 @@ export declare enum PlayerMode {
|
|
|
59
68
|
Video = "video",
|
|
60
69
|
Jpegs = "jpegs"
|
|
61
70
|
}
|
|
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
71
|
export type TimelineProviderRequestParams = TimelineDateInterval & {
|
|
81
72
|
precision?: TimelinePrecision;
|
|
82
73
|
labels?: string[];
|
|
@@ -187,12 +178,14 @@ export type TagSelectorItem = Tag & {
|
|
|
187
178
|
};
|
|
188
179
|
export declare enum FormSchemaComponents {
|
|
189
180
|
SelectField = "SelectField",
|
|
181
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
190
182
|
MultiOption = "MultiOption",
|
|
191
183
|
TextField = "TextField",
|
|
192
184
|
SwitchField = "SwitchField",
|
|
193
185
|
CheckBox = "CheckBoxField",
|
|
194
186
|
Date = "DatePickerInput",
|
|
195
187
|
DateTime = "DateTimeField",
|
|
188
|
+
Time = "TimeField",
|
|
196
189
|
TextArea = "Textarea",
|
|
197
190
|
Search = "Autocomplete",
|
|
198
191
|
ReadOnly = "ReadOnly",
|
|
@@ -207,6 +200,7 @@ export declare enum FormSchemaDataType {
|
|
|
207
200
|
export type FormSchemaOptions = {
|
|
208
201
|
title: string;
|
|
209
202
|
value: string;
|
|
203
|
+
parentId?: string | null;
|
|
210
204
|
};
|
|
211
205
|
export type FormSchemaField = {
|
|
212
206
|
id: string;
|
|
@@ -248,24 +242,19 @@ export type SnapshotCardItem = {
|
|
|
248
242
|
placeholderThumbnailUrl?: string;
|
|
249
243
|
fallbackThumbnailUrl?: string;
|
|
250
244
|
};
|
|
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
245
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
260
246
|
data: T[];
|
|
261
247
|
};
|
|
248
|
+
export type NotificationTitleSegment = {
|
|
249
|
+
text: string;
|
|
250
|
+
isBold?: boolean;
|
|
251
|
+
};
|
|
262
252
|
export type FormattedNotificationData = {
|
|
263
253
|
title: string;
|
|
254
|
+
titleSegments?: NotificationTitleSegment[];
|
|
264
255
|
link: string;
|
|
265
256
|
thumbnail?: string;
|
|
266
|
-
icon
|
|
267
|
-
drone?: boolean;
|
|
268
|
-
is360?: boolean;
|
|
257
|
+
icon: string;
|
|
269
258
|
};
|
|
270
259
|
export type FormattedNotification = FormattedNotificationData & {
|
|
271
260
|
date: string;
|
|
@@ -294,6 +283,20 @@ export type AutodeskUploadFormData = {
|
|
|
294
283
|
project: AutodeskProject | null;
|
|
295
284
|
folder: AutodeskFolder | null;
|
|
296
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
|
+
};
|
|
297
300
|
export interface MediaHubFilters {
|
|
298
301
|
title: string;
|
|
299
302
|
requesterEmail: string | undefined;
|
|
@@ -327,3 +330,39 @@ export type BimUploadFileResult = {
|
|
|
327
330
|
title: string;
|
|
328
331
|
fileExtension: string;
|
|
329
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,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
|
-
};
|