@evercam/api 1.0.0-4976cdc31 → 1.0.0-49fa7f1d4

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 (59) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +59 -19
  3. package/dist/api/api/adminApi.d.ts +8 -10
  4. package/dist/api/api/aiApi.d.ts +58 -3
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +23 -12
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -5
  8. package/dist/api/api/ingestApi.d.ts +19 -6
  9. package/dist/api/types/360.d.ts +136 -42
  10. package/dist/api/types/aiConfigs.d.ts +99 -11
  11. package/dist/api/types/analytics.d.ts +12 -1
  12. package/dist/api/types/authz.d.ts +71 -0
  13. package/dist/api/types/automation.d.ts +23 -4
  14. package/dist/api/types/axios.d.ts +8 -8
  15. package/dist/api/types/bim.d.ts +11 -5
  16. package/dist/api/types/camera.d.ts +5 -8
  17. package/dist/api/types/comments.d.ts +2 -1
  18. package/dist/api/types/connector.d.ts +2 -0
  19. package/dist/api/types/copilot.d.ts +0 -3
  20. package/dist/api/types/detections.d.ts +3 -1
  21. package/dist/api/types/drone.d.ts +1 -1
  22. package/dist/api/types/errors.d.ts +13 -1
  23. package/dist/api/types/gateReport.d.ts +1 -11
  24. package/dist/api/types/gateReportManagement.d.ts +28 -9
  25. package/dist/api/types/hammertech.d.ts +98 -0
  26. package/dist/api/types/index.d.ts +5 -1
  27. package/dist/api/types/ingest.d.ts +88 -1
  28. package/dist/api/types/kit.d.ts +41 -51
  29. package/dist/api/types/media.d.ts +8 -2
  30. package/dist/api/types/notification.d.ts +41 -2
  31. package/dist/api/types/observationEvents.d.ts +61 -0
  32. package/dist/api/types/observations.d.ts +85 -0
  33. package/dist/api/types/planner.d.ts +0 -8
  34. package/dist/api/types/posthog.d.ts +20 -0
  35. package/dist/api/types/project.d.ts +7 -0
  36. package/dist/api/types/recording.d.ts +5 -5
  37. package/dist/api/types/ring.d.ts +16 -16
  38. package/dist/api/types/roi.d.ts +2 -10
  39. package/dist/api/types/routeParams.d.ts +1 -0
  40. package/dist/api/types/shared.d.ts +0 -19
  41. package/dist/api/types/shares.d.ts +0 -13
  42. package/dist/api/types/siteAnalytics.d.ts +1 -3
  43. package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
  44. package/dist/api/types/siteView.d.ts +0 -1
  45. package/dist/api/types/snapshots.d.ts +5 -0
  46. package/dist/api/types/socket.d.ts +4 -0
  47. package/dist/api/types/storyblok.d.ts +0 -13
  48. package/dist/api/types/timelapse.d.ts +1 -8
  49. package/dist/api/types/user.d.ts +1 -3
  50. package/dist/index.js +1215 -713
  51. package/dist/index.js.map +1 -1
  52. package/dist/index.umd.cjs +1 -1
  53. package/dist/index.umd.cjs.map +1 -1
  54. package/dist/shared/types/components.d.ts +82 -31
  55. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  56. package/dist/shared/types/index.d.ts +2 -0
  57. package/dist/shared/types/observations.d.ts +21 -0
  58. package/package.json +3 -1
  59. 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, 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, 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;
@@ -229,6 +228,7 @@ export type DrawingStats = {
229
228
  };
230
229
  export interface ScrollListener {
231
230
  element: Element | Window;
231
+ event: "scroll" | "resize";
232
232
  handler: () => void;
233
233
  }
234
234
  export interface LeaderLineInstance {
@@ -242,24 +242,19 @@ export type SnapshotCardItem = {
242
242
  placeholderThumbnailUrl?: string;
243
243
  fallbackThumbnailUrl?: string;
244
244
  };
245
- export type DocumentExtended = Document & {
246
- webkitIsFullScreen?: boolean;
247
- mozFullScreen?: boolean;
248
- msFullscreenElement?: Element | null;
249
- fullscreenElement?: Element;
250
- webkitFullscreenElement?: Element;
251
- mozFullScreenElement?: Element;
252
- };
253
245
  export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
254
246
  data: T[];
255
247
  };
248
+ export type NotificationTitleSegment = {
249
+ text: string;
250
+ isBold?: boolean;
251
+ };
256
252
  export type FormattedNotificationData = {
257
253
  title: string;
254
+ titleSegments?: NotificationTitleSegment[];
258
255
  link: string;
259
256
  thumbnail?: string;
260
- icon?: string;
261
- drone?: boolean;
262
- is360?: boolean;
257
+ icon: string;
263
258
  };
264
259
  export type FormattedNotification = FormattedNotificationData & {
265
260
  date: string;
@@ -288,6 +283,20 @@ export type AutodeskUploadFormData = {
288
283
  project: AutodeskProject | null;
289
284
  folder: AutodeskFolder | null;
290
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
+ };
291
300
  export interface MediaHubFilters {
292
301
  title: string;
293
302
  requesterEmail: string | undefined;
@@ -321,3 +330,45 @@ export type BimUploadFileResult = {
321
330
  title: string;
322
331
  fileExtension: string;
323
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
+ };
369
+ export type DrawingSelection = {
370
+ pageNumber: number;
371
+ size: number;
372
+ thumbnail: string | null;
373
+ pageCount: number;
374
+ };
@@ -0,0 +1,10 @@
1
+ export declare enum CustomDataTableFilterType {
2
+ Select = "SelectSearchFilter",
3
+ Text = "TextFieldSearchFilter"
4
+ }
5
+ export interface CustomDataTableFilterField<T = unknown> {
6
+ component: CustomDataTableFilterType;
7
+ attributes?: Record<string, unknown>;
8
+ customFilter?: (item: T, fieldName: string, search: unknown) => boolean;
9
+ }
10
+ export type CustomDataTableFilterFields<T = unknown> = Record<string, CustomDataTableFilterField<T>>;
@@ -1,5 +1,7 @@
1
1
  export * from "@evercam/api/types";
2
2
  export * from "./components";
3
+ export * from "./customDataTableFilters";
3
4
  export * from "./imagePlayer";
4
5
  export * from "./timeline";
5
6
  export * from "./rbac";
7
+ export * from "./observations";
@@ -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-4976cdc31",
3
+ "version": "1.0.0-49fa7f1d4",
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",
@@ -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
- };