@evercam/api 1.0.0-07cc45493 → 1.0.0-095233f21

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.
Files changed (55) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +56 -23
  2. package/dist/api/api/adminApi.d.ts +10 -9
  3. package/dist/api/api/aiApi.d.ts +85 -3
  4. package/dist/api/api/authzApi.d.ts +4 -1
  5. package/dist/api/api/evercamApi.d.ts +23 -7
  6. package/dist/api/api/ingestApi.d.ts +14 -6
  7. package/dist/api/types/360.d.ts +111 -42
  8. package/dist/api/types/aiConfigs.d.ts +102 -12
  9. package/dist/api/types/analytics.d.ts +12 -8
  10. package/dist/api/types/auditLogs.d.ts +0 -1
  11. package/dist/api/types/authz.d.ts +71 -0
  12. package/dist/api/types/automation.d.ts +32 -4
  13. package/dist/api/types/axios.d.ts +2 -4
  14. package/dist/api/types/bim.d.ts +3 -5
  15. package/dist/api/types/camera.d.ts +24 -21
  16. package/dist/api/types/comments.d.ts +7 -1
  17. package/dist/api/types/connector.d.ts +1 -0
  18. package/dist/api/types/copilot.d.ts +0 -3
  19. package/dist/api/types/detections.d.ts +1 -0
  20. package/dist/api/types/drone.d.ts +1 -2
  21. package/dist/api/types/errors.d.ts +2 -1
  22. package/dist/api/types/gateReport.d.ts +0 -11
  23. package/dist/api/types/gateReportManagement.d.ts +2 -7
  24. package/dist/api/types/hammertech.d.ts +98 -0
  25. package/dist/api/types/index.d.ts +4 -1
  26. package/dist/api/types/ingest.d.ts +87 -1
  27. package/dist/api/types/kit.d.ts +41 -50
  28. package/dist/api/types/media.d.ts +2 -1
  29. package/dist/api/types/notification.d.ts +52 -2
  30. package/dist/api/types/observationEvents.d.ts +141 -0
  31. package/dist/api/types/observations.d.ts +84 -0
  32. package/dist/api/types/planner.d.ts +1 -8
  33. package/dist/api/types/project.d.ts +12 -0
  34. package/dist/api/types/recording.d.ts +2 -4
  35. package/dist/api/types/ring.d.ts +16 -16
  36. package/dist/api/types/roi.d.ts +0 -9
  37. package/dist/api/types/routeParams.d.ts +1 -0
  38. package/dist/api/types/shared.d.ts +0 -19
  39. package/dist/api/types/shares.d.ts +0 -13
  40. package/dist/api/types/siteAnalytics.d.ts +1 -3
  41. package/dist/api/types/siteAnalyticsManagement.d.ts +39 -4
  42. package/dist/api/types/socket.d.ts +4 -0
  43. package/dist/api/types/storyblok.d.ts +0 -13
  44. package/dist/api/types/timelapse.d.ts +1 -8
  45. package/dist/api/types/user.d.ts +15 -3
  46. package/dist/api/utils.d.ts +1 -0
  47. package/dist/index.js +1196 -677
  48. package/dist/index.js.map +1 -1
  49. package/dist/index.umd.cjs +1 -1
  50. package/dist/index.umd.cjs.map +1 -1
  51. package/dist/shared/types/components.d.ts +93 -33
  52. package/dist/shared/types/index.d.ts +1 -0
  53. package/dist/shared/types/observations.d.ts +25 -0
  54. package/package.json +1 -1
  55. 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, TaskStatus, Tag, TuplePoint2D } from "@evercam/shared/types";
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,7 +51,11 @@ export declare enum IframeMessageType {
42
51
  ForgeTokenResponse = "ForgeTokenResponse",
43
52
  ShowBimUploadChoice = "showBimUploadChoice",
44
53
  ViewerLaunchFlags = "viewerLaunchFlags",
45
- CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
54
+ Fetch360DrawingIds = "fetch360DrawingIds",
55
+ DrawingIdsResponse = "drawingIdsResponse",
56
+ CloseCameraMarkerPreview = "CloseCameraMarkerPreview",
57
+ ProjectMembers = "projectMembers",
58
+ FocusComment = "focusComment"
46
59
  }
47
60
  export declare enum NavigationArrow {
48
61
  Previous = "previous",
@@ -59,24 +72,6 @@ export declare enum PlayerMode {
59
72
  Video = "video",
60
73
  Jpegs = "jpegs"
61
74
  }
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
75
  export type TimelineProviderRequestParams = TimelineDateInterval & {
81
76
  precision?: TimelinePrecision;
82
77
  labels?: string[];
@@ -187,12 +182,14 @@ export type TagSelectorItem = Tag & {
187
182
  };
188
183
  export declare enum FormSchemaComponents {
189
184
  SelectField = "SelectField",
185
+ HierarchicalSelect = "HierarchicalSelectField",
190
186
  MultiOption = "MultiOption",
191
187
  TextField = "TextField",
192
188
  SwitchField = "SwitchField",
193
189
  CheckBox = "CheckBoxField",
194
190
  Date = "DatePickerInput",
195
191
  DateTime = "DateTimeField",
192
+ Time = "TimeField",
196
193
  TextArea = "Textarea",
197
194
  Search = "Autocomplete",
198
195
  ReadOnly = "ReadOnly",
@@ -207,6 +204,7 @@ export declare enum FormSchemaDataType {
207
204
  export type FormSchemaOptions = {
208
205
  title: string;
209
206
  value: string;
207
+ parentId?: string | null;
210
208
  };
211
209
  export type FormSchemaField = {
212
210
  id: string;
@@ -248,24 +246,25 @@ export type SnapshotCardItem = {
248
246
  placeholderThumbnailUrl?: string;
249
247
  fallbackThumbnailUrl?: string;
250
248
  };
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
249
  export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
260
250
  data: T[];
261
251
  };
252
+ export type NotificationTitleSegment = {
253
+ text: string;
254
+ isBold?: boolean;
255
+ };
262
256
  export type FormattedNotificationData = {
263
257
  title: string;
258
+ titleSegments?: NotificationTitleSegment[];
264
259
  link: string;
265
260
  thumbnail?: string;
266
- icon?: string;
267
- drone?: boolean;
268
- is360?: boolean;
261
+ icon: string;
262
+ excerpt?: string;
263
+ commentTarget?: {
264
+ commentId: number;
265
+ dateId: string | number;
266
+ floorId: string;
267
+ };
269
268
  };
270
269
  export type FormattedNotification = FormattedNotificationData & {
271
270
  date: string;
@@ -294,6 +293,20 @@ export type AutodeskUploadFormData = {
294
293
  project: AutodeskProject | null;
295
294
  folder: AutodeskFolder | null;
296
295
  };
296
+ export type HammertechUploadFormData = {
297
+ project: HammertechProject | null;
298
+ issueType: HammertechIssueType | null;
299
+ description: string;
300
+ priority: HammertechPriority | null;
301
+ dueDate: string | null;
302
+ classification: HammertechClassification | null;
303
+ locationId: string | null;
304
+ isPositiveObservation: boolean;
305
+ isPhotoForFixRequired: boolean;
306
+ customFieldFormId: string | null;
307
+ customFieldValues: Record<string, unknown>;
308
+ fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
309
+ };
297
310
  export interface MediaHubFilters {
298
311
  title: string;
299
312
  requesterEmail: string | undefined;
@@ -310,7 +323,6 @@ export interface MediaHubSortParameter {
310
323
  export type TableHeaderParams<TItem = unknown> = {
311
324
  value: string;
312
325
  text: string;
313
- cellClass?: string;
314
326
  align?: string;
315
327
  sortable?: boolean;
316
328
  visible?: boolean;
@@ -327,3 +339,51 @@ export type BimUploadFileResult = {
327
339
  title: string;
328
340
  fileExtension: string;
329
341
  };
342
+ export type CameraCardItem = {
343
+ thumbnail: string;
344
+ title: string;
345
+ exid: string;
346
+ status: CameraStatus;
347
+ disabled: boolean;
348
+ to: string;
349
+ isOffline: boolean;
350
+ isWaiting: boolean;
351
+ isUnderNda: boolean;
352
+ isAdmin: boolean;
353
+ batteryVoltage: number | null;
354
+ };
355
+ export type ThreeSixtyGalleryView = "drawings" | "walks";
356
+ export interface ThreeSixtyWalk {
357
+ id: string;
358
+ name: string;
359
+ date: string;
360
+ monthKey: string;
361
+ color: string;
362
+ dateId: string;
363
+ floorId: string;
364
+ commentCount: number;
365
+ hasBim: boolean;
366
+ hasMinimodel: boolean;
367
+ }
368
+ export interface ThreeSixtyWalkGroup {
369
+ date: string;
370
+ walks: ThreeSixtyWalk[];
371
+ }
372
+ export type DrawingSelection = {
373
+ pageNumber: number;
374
+ size: number;
375
+ thumbnail: string | null;
376
+ pageCount: number;
377
+ };
378
+ export type CommentCardComment = {
379
+ id?: number | string;
380
+ content?: string;
381
+ createdAt?: string;
382
+ archivedAt?: string;
383
+ creatorName?: string;
384
+ label?: string;
385
+ timestamp?: string;
386
+ cameraExid?: string;
387
+ position3d?: number[];
388
+ canDelete?: boolean;
389
+ };
@@ -4,3 +4,4 @@ export * from "./customDataTableFilters";
4
4
  export * from "./imagePlayer";
5
5
  export * from "./timeline";
6
6
  export * from "./rbac";
7
+ export * from "./observations";
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@evercam/api",
3
- "version": "1.0.0-07cc45493",
3
+ "version": "1.0.0-095233f21",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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
- };