@evercam/api 1.0.0-9fea602cf → 1.0.0-a1882feb0

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 (36) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +56 -16
  2. package/dist/api/api/adminApi.d.ts +5 -4
  3. package/dist/api/api/aiApi.d.ts +29 -2
  4. package/dist/api/api/authzApi.d.ts +4 -1
  5. package/dist/api/api/evercamApi.d.ts +15 -6
  6. package/dist/api/api/evercamLabsApi.d.ts +5 -5
  7. package/dist/api/api/ingestApi.d.ts +6 -2
  8. package/dist/api/types/360.d.ts +132 -3
  9. package/dist/api/types/analytics.d.ts +9 -0
  10. package/dist/api/types/authz.d.ts +46 -0
  11. package/dist/api/types/axios.d.ts +2 -0
  12. package/dist/api/types/bim.d.ts +1 -1
  13. package/dist/api/types/comments.d.ts +2 -1
  14. package/dist/api/types/connector.d.ts +1 -0
  15. package/dist/api/types/detections.d.ts +1 -0
  16. package/dist/api/types/hammertech.d.ts +98 -0
  17. package/dist/api/types/index.d.ts +3 -0
  18. package/dist/api/types/ingest.d.ts +12 -1
  19. package/dist/api/types/kit.d.ts +38 -2
  20. package/dist/api/types/media.d.ts +2 -1
  21. package/dist/api/types/notification.d.ts +12 -2
  22. package/dist/api/types/observations.d.ts +85 -0
  23. package/dist/api/types/posthog.d.ts +20 -0
  24. package/dist/api/types/recording.d.ts +2 -1
  25. package/dist/api/types/roi.d.ts +2 -1
  26. package/dist/api/types/routeParams.d.ts +1 -0
  27. package/dist/api/types/siteAnalyticsManagement.d.ts +92 -0
  28. package/dist/api/types/user.d.ts +0 -3
  29. package/dist/index.js +838 -526
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.umd.cjs +1 -1
  32. package/dist/index.umd.cjs.map +1 -1
  33. package/dist/shared/types/components.d.ts +52 -2
  34. package/dist/shared/types/index.d.ts +1 -0
  35. package/dist/shared/types/observations.d.ts +21 -0
  36. package/package.json +1 -1
@@ -1,5 +1,5 @@
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 } from "@evercam/shared/types";
2
+ import type { AdminCamera, 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";
@@ -7,6 +7,11 @@ export type SelectItem = {
7
7
  text: string;
8
8
  value: string | number;
9
9
  };
10
+ export type RoiProjectGroup = {
11
+ exid: string;
12
+ name: string;
13
+ cameras: AdminCamera[];
14
+ };
10
15
  export declare enum IframeMessageType {
11
16
  LiveView = "liveView",
12
17
  EditSnapshot = "editSnapshot",
@@ -182,12 +187,14 @@ export type TagSelectorItem = Tag & {
182
187
  };
183
188
  export declare enum FormSchemaComponents {
184
189
  SelectField = "SelectField",
190
+ HierarchicalSelect = "HierarchicalSelectField",
185
191
  MultiOption = "MultiOption",
186
192
  TextField = "TextField",
187
193
  SwitchField = "SwitchField",
188
194
  CheckBox = "CheckBoxField",
189
195
  Date = "DatePickerInput",
190
196
  DateTime = "DateTimeField",
197
+ Time = "TimeField",
191
198
  TextArea = "Textarea",
192
199
  Search = "Autocomplete",
193
200
  ReadOnly = "ReadOnly",
@@ -202,6 +209,7 @@ export declare enum FormSchemaDataType {
202
209
  export type FormSchemaOptions = {
203
210
  title: string;
204
211
  value: string;
212
+ parentId?: string | null;
205
213
  };
206
214
  export type FormSchemaField = {
207
215
  id: string;
@@ -254,8 +262,13 @@ export type DocumentExtended = Document & {
254
262
  export type HighchartsSeriesWithData<T extends number = number> = SeriesOptionsType & {
255
263
  data: T[];
256
264
  };
265
+ export type NotificationTitleSegment = {
266
+ text: string;
267
+ isBold?: boolean;
268
+ };
257
269
  export type FormattedNotificationData = {
258
270
  title: string;
271
+ titleSegments?: NotificationTitleSegment[];
259
272
  link: string;
260
273
  thumbnail?: string;
261
274
  icon?: string;
@@ -289,6 +302,20 @@ export type AutodeskUploadFormData = {
289
302
  project: AutodeskProject | null;
290
303
  folder: AutodeskFolder | null;
291
304
  };
305
+ export type HammertechUploadFormData = {
306
+ project: HammertechProject | null;
307
+ issueType: HammertechIssueType | null;
308
+ description: string;
309
+ priority: HammertechPriority | null;
310
+ dueDate: string | null;
311
+ classification: HammertechClassification | null;
312
+ locationId: string | null;
313
+ isPositiveObservation: boolean;
314
+ isPhotoForFixRequired: boolean;
315
+ customFieldFormId: string | null;
316
+ customFieldValues: Record<string, unknown>;
317
+ fileCustomFieldValues: Record<string, HammertechFileFieldValue>;
318
+ };
292
319
  export interface MediaHubFilters {
293
320
  title: string;
294
321
  requesterEmail: string | undefined;
@@ -322,3 +349,26 @@ export type BimUploadFileResult = {
322
349
  title: string;
323
350
  fileExtension: string;
324
351
  };
352
+ export interface ThreeSixtyWalk {
353
+ id: string;
354
+ name: string;
355
+ date: string;
356
+ color: string;
357
+ dateId: string;
358
+ floorId: string;
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
+ };
@@ -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,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-9fea602cf",
3
+ "version": "1.0.0-a1882feb0",
4
4
  "description": "Evercam API client",
5
5
  "repository": {
6
6
  "type": "git",