@evercam/api 1.0.0-8c3d33cd2 → 1.0.0-8d4c81f92

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 (61) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +60 -34
  3. package/dist/api/api/adminApi.d.ts +19 -15
  4. package/dist/api/api/aiApi.d.ts +125 -2
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +36 -12
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -5
  8. package/dist/api/api/ingestApi.d.ts +21 -7
  9. package/dist/api/types/360.d.ts +122 -43
  10. package/dist/api/types/aiConfigs.d.ts +244 -0
  11. package/dist/api/types/analytics.d.ts +37 -9
  12. package/dist/api/types/anpr.d.ts +31 -2
  13. package/dist/api/types/authz.d.ts +71 -0
  14. package/dist/api/types/automation.d.ts +23 -4
  15. package/dist/api/types/axios.d.ts +8 -9
  16. package/dist/api/types/bim.d.ts +28 -5
  17. package/dist/api/types/camera.d.ts +7 -10
  18. package/dist/api/types/comments.d.ts +4 -3
  19. package/dist/api/types/connector.d.ts +2 -0
  20. package/dist/api/types/copilot.d.ts +0 -3
  21. package/dist/api/types/detections.d.ts +3 -10
  22. package/dist/api/types/drone.d.ts +7 -7
  23. package/dist/api/types/errors.d.ts +13 -1
  24. package/dist/api/types/gateReport.d.ts +1 -11
  25. package/dist/api/types/gateReportManagement.d.ts +170 -0
  26. package/dist/api/types/hammertech.d.ts +98 -0
  27. package/dist/api/types/index.d.ts +7 -1
  28. package/dist/api/types/ingest.d.ts +90 -3
  29. package/dist/api/types/kit.d.ts +42 -51
  30. package/dist/api/types/media.d.ts +8 -2
  31. package/dist/api/types/notification.d.ts +41 -2
  32. package/dist/api/types/observationEvents.d.ts +141 -0
  33. package/dist/api/types/observations.d.ts +84 -0
  34. package/dist/api/types/planner.d.ts +3 -11
  35. package/dist/api/types/posthog.d.ts +20 -0
  36. package/dist/api/types/project.d.ts +7 -0
  37. package/dist/api/types/recording.d.ts +5 -12
  38. package/dist/api/types/ring.d.ts +16 -16
  39. package/dist/api/types/roi.d.ts +2 -10
  40. package/dist/api/types/routeParams.d.ts +1 -0
  41. package/dist/api/types/shared.d.ts +1 -19
  42. package/dist/api/types/shares.d.ts +0 -13
  43. package/dist/api/types/siteAnalytics.d.ts +3 -5
  44. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  45. package/dist/api/types/siteView.d.ts +0 -1
  46. package/dist/api/types/snapshots.d.ts +13 -0
  47. package/dist/api/types/socket.d.ts +4 -0
  48. package/dist/api/types/storyblok.d.ts +0 -13
  49. package/dist/api/types/timelapse.d.ts +2 -13
  50. package/dist/api/types/user.d.ts +16 -4
  51. package/dist/api/utils.d.ts +0 -1
  52. package/dist/index.js +1477 -787
  53. package/dist/index.js.map +1 -1
  54. package/dist/index.umd.cjs +1 -1
  55. package/dist/index.umd.cjs.map +1 -1
  56. package/dist/shared/types/components.d.ts +102 -34
  57. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  58. package/dist/shared/types/index.d.ts +2 -0
  59. package/dist/shared/types/observations.d.ts +25 -0
  60. package/package.json +4 -2
  61. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,11 +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 } from "@evercam/shared/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";
2
3
  import type { TimelineChartType, TimelineEvent, TimelineEventsGroup } from "@evercam/ui";
3
4
  import { TimelineDataProvider } from "@evercam/shared/components/timelinePlayer/providers";
4
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
+ };
5
15
  export type SelectItem = {
6
16
  text: string;
7
17
  value: string | number;
8
18
  };
19
+ export type RoiProjectGroup = {
20
+ exid: string;
21
+ name: string;
22
+ cameras: AdminCamera[];
23
+ };
9
24
  export declare enum IframeMessageType {
10
25
  LiveView = "liveView",
11
26
  EditSnapshot = "editSnapshot",
@@ -34,7 +49,11 @@ export declare enum IframeMessageType {
34
49
  Upload360 = "upload360",
35
50
  FetchForgeToken = "FetchForgeToken",
36
51
  ForgeTokenResponse = "ForgeTokenResponse",
37
- ViewerLaunchFlags = "viewerLaunchFlags"
52
+ ShowBimUploadChoice = "showBimUploadChoice",
53
+ ViewerLaunchFlags = "viewerLaunchFlags",
54
+ Fetch360DrawingIds = "fetch360DrawingIds",
55
+ DrawingIdsResponse = "drawingIdsResponse",
56
+ CloseCameraMarkerPreview = "CloseCameraMarkerPreview"
38
57
  }
39
58
  export declare enum NavigationArrow {
40
59
  Previous = "previous",
@@ -51,24 +70,6 @@ export declare enum PlayerMode {
51
70
  Video = "video",
52
71
  Jpegs = "jpegs"
53
72
  }
54
- export type TasksStatusMap = {
55
- [key: string]: TaskStatus;
56
- };
57
- export type TaskProgressItem = {
58
- status: TaskStatus;
59
- description: string;
60
- percentDone?: number;
61
- duration?: number;
62
- };
63
- export type GlobalSearchMatch = {
64
- path: Array<string>;
65
- value: string | number | boolean;
66
- };
67
- export type GlobalSearchResult = {
68
- index: number;
69
- matches: Array<GlobalSearchMatch>;
70
- };
71
- export type GlobalSearchResultInput = Array<Record<any, any> | Array<any>>;
72
73
  export type TimelineProviderRequestParams = TimelineDateInterval & {
73
74
  precision?: TimelinePrecision;
74
75
  labels?: string[];
@@ -151,8 +152,8 @@ export type LeaderLineOptions = {
151
152
  startPlugSize?: number;
152
153
  endPlugSize?: number;
153
154
  path?: LeaderLinesPathType;
154
- startSocketGravity?: [number, number];
155
- endSocketGravity?: [number, number];
155
+ startSocketGravity?: TuplePoint2D;
156
+ endSocketGravity?: TuplePoint2D;
156
157
  dash?: {
157
158
  animation: boolean | {
158
159
  duration: number;
@@ -179,12 +180,14 @@ export type TagSelectorItem = Tag & {
179
180
  };
180
181
  export declare enum FormSchemaComponents {
181
182
  SelectField = "SelectField",
183
+ HierarchicalSelect = "HierarchicalSelectField",
182
184
  MultiOption = "MultiOption",
183
185
  TextField = "TextField",
184
186
  SwitchField = "SwitchField",
185
187
  CheckBox = "CheckBoxField",
186
188
  Date = "DatePickerInput",
187
189
  DateTime = "DateTimeField",
190
+ Time = "TimeField",
188
191
  TextArea = "Textarea",
189
192
  Search = "Autocomplete",
190
193
  ReadOnly = "ReadOnly",
@@ -199,6 +202,7 @@ export declare enum FormSchemaDataType {
199
202
  export type FormSchemaOptions = {
200
203
  title: string;
201
204
  value: string;
205
+ parentId?: string | null;
202
206
  };
203
207
  export type FormSchemaField = {
204
208
  id: string;
@@ -226,6 +230,7 @@ export type DrawingStats = {
226
230
  };
227
231
  export interface ScrollListener {
228
232
  element: Element | Window;
233
+ event: "scroll" | "resize";
229
234
  handler: () => void;
230
235
  }
231
236
  export interface LeaderLineInstance {
@@ -239,24 +244,19 @@ export type SnapshotCardItem = {
239
244
  placeholderThumbnailUrl?: string;
240
245
  fallbackThumbnailUrl?: string;
241
246
  };
242
- export type DocumentExtended = Document & {
243
- webkitIsFullScreen?: boolean;
244
- mozFullScreen?: boolean;
245
- msFullscreenElement?: Element | null;
246
- fullscreenElement?: Element;
247
- webkitFullscreenElement?: Element;
248
- mozFullScreenElement?: Element;
249
- };
250
247
  export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
251
248
  data: T[];
252
249
  };
250
+ export type NotificationTitleSegment = {
251
+ text: string;
252
+ isBold?: boolean;
253
+ };
253
254
  export type FormattedNotificationData = {
254
255
  title: string;
256
+ titleSegments?: NotificationTitleSegment[];
255
257
  link: string;
256
258
  thumbnail?: string;
257
- icon?: string;
258
- drone?: boolean;
259
- is360?: boolean;
259
+ icon: string;
260
260
  };
261
261
  export type FormattedNotification = FormattedNotificationData & {
262
262
  date: string;
@@ -285,6 +285,20 @@ export type AutodeskUploadFormData = {
285
285
  project: AutodeskProject | null;
286
286
  folder: AutodeskFolder | null;
287
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
+ };
288
302
  export interface MediaHubFilters {
289
303
  title: string;
290
304
  requesterEmail: string | undefined;
@@ -301,7 +315,6 @@ export interface MediaHubSortParameter {
301
315
  export type TableHeaderParams<TItem = unknown> = {
302
316
  value: string;
303
317
  text: string;
304
- cellClass?: string;
305
318
  align?: string;
306
319
  sortable?: boolean;
307
320
  visible?: boolean;
@@ -310,3 +323,58 @@ export type TableHeaderParams<TItem = unknown> = {
310
323
  toStringFn?: (item: TItem, key: string) => any;
311
324
  sort?: (a: unknown, b: unknown) => number;
312
325
  };
326
+ export type BimUploadObject = IngestUploadInitResponse & {
327
+ projectName: string;
328
+ };
329
+ export type BimUploadFileResult = {
330
+ url: string;
331
+ title: string;
332
+ fileExtension: string;
333
+ };
334
+ export type CameraCardItem = {
335
+ thumbnail: string;
336
+ title: string;
337
+ exid: string;
338
+ status: CameraStatus;
339
+ disabled: boolean;
340
+ to: string;
341
+ isOffline: boolean;
342
+ isWaiting: boolean;
343
+ isUnderNda: boolean;
344
+ isAdmin: boolean;
345
+ batteryVoltage: number | null;
346
+ };
347
+ export type ThreeSixtyGalleryView = "drawings" | "walks";
348
+ export interface ThreeSixtyWalk {
349
+ id: string;
350
+ name: string;
351
+ date: string;
352
+ monthKey: string;
353
+ color: string;
354
+ dateId: string;
355
+ floorId: string;
356
+ commentCount: number;
357
+ hasBim: boolean;
358
+ hasMinimodel: boolean;
359
+ }
360
+ export interface ThreeSixtyWalkGroup {
361
+ date: string;
362
+ walks: ThreeSixtyWalk[];
363
+ }
364
+ export type DatePresetContext = {
365
+ minDate?: string;
366
+ maxDate: string;
367
+ effectiveMinDate?: string;
368
+ effectiveMaxDate: string;
369
+ };
370
+ export type DatePreset = {
371
+ name: string;
372
+ resolveRange?: (ctx: DatePresetContext) => [string, string];
373
+ isHide?: (ctx: DatePresetContext) => boolean;
374
+ };
375
+ export type DrawingSelection = {
376
+ pageNumber: number;
377
+ size: number;
378
+ thumbnail: string | null;
379
+ pageCount: number;
380
+ };
@@ -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,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-8c3d33cd2",
3
+ "version": "1.0.0-8d4c81f92",
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",
@@ -36,7 +38,7 @@
36
38
  "publish-api": "cd ../.. && yarn publish-api"
37
39
  },
38
40
  "devDependencies": {
39
- "@types/node": "^25.6.0",
41
+ "@types/node": "^25.9.1",
40
42
  "vite": "latest",
41
43
  "vite-plugin-commonjs": "^0.10.3",
42
44
  "vite-plugin-dts": "^4.5.4"
@@ -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
- };