@evercam/api 1.0.0-3ff33d7a8 → 1.0.0-41bb6af5a
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 +29 -2
- package/dist/api/api/authzApi.d.ts +4 -1
- package/dist/api/api/evercamApi.d.ts +19 -6
- package/dist/api/api/evercamLabsApi.d.ts +5 -5
- package/dist/api/api/ingestApi.d.ts +9 -2
- package/dist/api/types/360.d.ts +132 -3
- package/dist/api/types/analytics.d.ts +11 -1
- package/dist/api/types/authz.d.ts +46 -0
- package/dist/api/types/axios.d.ts +2 -0
- package/dist/api/types/bim.d.ts +9 -1
- package/dist/api/types/camera.d.ts +1 -0
- package/dist/api/types/comments.d.ts +2 -1
- package/dist/api/types/connector.d.ts +2 -0
- package/dist/api/types/detections.d.ts +1 -0
- package/dist/api/types/hammertech.d.ts +98 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/ingest.d.ts +12 -1
- package/dist/api/types/kit.d.ts +38 -2
- package/dist/api/types/media.d.ts +8 -2
- package/dist/api/types/notification.d.ts +12 -2
- package/dist/api/types/observations.d.ts +85 -0
- 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 +2 -1
- package/dist/api/types/roi.d.ts +2 -1
- package/dist/api/types/routeParams.d.ts +1 -0
- package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
- package/dist/api/types/socket.d.ts +4 -0
- package/dist/api/types/user.d.ts +0 -3
- package/dist/index.js +864 -527
- 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 -2
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/observations.d.ts +21 -0
- package/package.json +3 -1
|
@@ -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, TaskStatus, Tag, TuplePoint2D } from "@evercam/shared/types";
|
|
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, TaskStatus, 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",
|
|
@@ -182,12 +196,14 @@ export type TagSelectorItem = Tag & {
|
|
|
182
196
|
};
|
|
183
197
|
export declare enum FormSchemaComponents {
|
|
184
198
|
SelectField = "SelectField",
|
|
199
|
+
HierarchicalSelect = "HierarchicalSelectField",
|
|
185
200
|
MultiOption = "MultiOption",
|
|
186
201
|
TextField = "TextField",
|
|
187
202
|
SwitchField = "SwitchField",
|
|
188
203
|
CheckBox = "CheckBoxField",
|
|
189
204
|
Date = "DatePickerInput",
|
|
190
205
|
DateTime = "DateTimeField",
|
|
206
|
+
Time = "TimeField",
|
|
191
207
|
TextArea = "Textarea",
|
|
192
208
|
Search = "Autocomplete",
|
|
193
209
|
ReadOnly = "ReadOnly",
|
|
@@ -202,6 +218,7 @@ export declare enum FormSchemaDataType {
|
|
|
202
218
|
export type FormSchemaOptions = {
|
|
203
219
|
title: string;
|
|
204
220
|
value: string;
|
|
221
|
+
parentId?: string | null;
|
|
205
222
|
};
|
|
206
223
|
export type FormSchemaField = {
|
|
207
224
|
id: string;
|
|
@@ -254,8 +271,13 @@ export type DocumentExtended = Document & {
|
|
|
254
271
|
export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
|
|
255
272
|
data: T[];
|
|
256
273
|
};
|
|
274
|
+
export type NotificationTitleSegment = {
|
|
275
|
+
text: string;
|
|
276
|
+
isBold?: boolean;
|
|
277
|
+
};
|
|
257
278
|
export type FormattedNotificationData = {
|
|
258
279
|
title: string;
|
|
280
|
+
titleSegments?: NotificationTitleSegment[];
|
|
259
281
|
link: string;
|
|
260
282
|
thumbnail?: string;
|
|
261
283
|
icon?: string;
|
|
@@ -289,6 +311,20 @@ export type AutodeskUploadFormData = {
|
|
|
289
311
|
project: AutodeskProject | null;
|
|
290
312
|
folder: AutodeskFolder | null;
|
|
291
313
|
};
|
|
314
|
+
export type HammertechUploadFormData = {
|
|
315
|
+
project: HammertechProject | null;
|
|
316
|
+
issueType: HammertechIssueType | null;
|
|
317
|
+
description: string;
|
|
318
|
+
priority: HammertechPriority | null;
|
|
319
|
+
dueDate: string | null;
|
|
320
|
+
classification: HammertechClassification | null;
|
|
321
|
+
locationId: string | null;
|
|
322
|
+
isPositiveObservation: boolean;
|
|
323
|
+
isPhotoForFixRequired: boolean;
|
|
324
|
+
customFieldFormId: string | null;
|
|
325
|
+
customFieldValues: Record<string, unknown>;
|
|
326
|
+
fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
|
|
327
|
+
};
|
|
292
328
|
export interface MediaHubFilters {
|
|
293
329
|
title: string;
|
|
294
330
|
requesterEmail: string | undefined;
|
|
@@ -322,3 +358,39 @@ export type BimUploadFileResult = {
|
|
|
322
358
|
title: string;
|
|
323
359
|
fileExtension: string;
|
|
324
360
|
};
|
|
361
|
+
export type CameraCardItem = {
|
|
362
|
+
thumbnail: string;
|
|
363
|
+
title: string;
|
|
364
|
+
exid: string;
|
|
365
|
+
status: CameraStatus;
|
|
366
|
+
disabled: boolean;
|
|
367
|
+
to: string;
|
|
368
|
+
isOffline: boolean;
|
|
369
|
+
isWaiting: boolean;
|
|
370
|
+
isUnderNda: boolean;
|
|
371
|
+
isAdmin: boolean;
|
|
372
|
+
batteryVoltage: number | null;
|
|
373
|
+
};
|
|
374
|
+
export interface ThreeSixtyWalk {
|
|
375
|
+
id: string;
|
|
376
|
+
name: string;
|
|
377
|
+
date: string;
|
|
378
|
+
color: string;
|
|
379
|
+
dateId: string;
|
|
380
|
+
floorId: string;
|
|
381
|
+
}
|
|
382
|
+
export interface ThreeSixtyWalkGroup {
|
|
383
|
+
date: string;
|
|
384
|
+
walks: ThreeSixtyWalk[];
|
|
385
|
+
}
|
|
386
|
+
export type DatePresetContext = {
|
|
387
|
+
minDate?: string;
|
|
388
|
+
maxDate: string;
|
|
389
|
+
effectiveMinDate?: string;
|
|
390
|
+
effectiveMaxDate: string;
|
|
391
|
+
};
|
|
392
|
+
export type DatePreset = {
|
|
393
|
+
name: string;
|
|
394
|
+
resolveRange?: (ctx: DatePresetContext) => [string, string];
|
|
395
|
+
isHide?: (ctx: DatePresetContext) => boolean;
|
|
396
|
+
};
|
|
@@ -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-41bb6af5a",
|
|
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",
|