@evercam/api 1.0.0-7f2a06308 → 1.0.0-802693295

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 (106) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +212 -15
  3. package/dist/api/api/adminApi.d.ts +151 -119
  4. package/dist/api/api/aiApi.d.ts +184 -57
  5. package/dist/api/api/authzApi.d.ts +26 -16
  6. package/dist/api/api/client/axios.d.ts +1 -1
  7. package/dist/api/api/client/swr/Swr.d.ts +1 -1
  8. package/dist/api/api/evercamApi.d.ts +153 -95
  9. package/dist/api/api/evercamLabsApi.d.ts +10 -19
  10. package/dist/api/api/exNvrApi.d.ts +2 -2
  11. package/dist/api/api/index.d.ts +1 -0
  12. package/dist/api/api/ingestApi.d.ts +132 -58
  13. package/dist/api/api/ptzApi.d.ts +9 -4
  14. package/dist/api/api/reportsApi.d.ts +15 -0
  15. package/dist/api/api/videoWallApi.d.ts +2 -2
  16. package/dist/api/api/weatherApi.d.ts +2 -2
  17. package/dist/api/types/360.d.ts +182 -88
  18. package/dist/api/types/aconex.d.ts +9 -9
  19. package/dist/api/types/admin.d.ts +85 -0
  20. package/dist/api/types/aiConfigs.d.ts +244 -0
  21. package/dist/api/types/analytics.d.ts +162 -74
  22. package/dist/api/types/anpr.d.ts +49 -2
  23. package/dist/api/types/apiKey.d.ts +70 -0
  24. package/dist/api/types/auditLogs.d.ts +179 -21
  25. package/dist/api/types/authz.d.ts +115 -6
  26. package/dist/api/types/autodesk.d.ts +7 -7
  27. package/dist/api/types/automation.d.ts +65 -3
  28. package/dist/api/types/axios.d.ts +20 -15
  29. package/dist/api/types/bim.d.ts +65 -16
  30. package/dist/api/types/camera.d.ts +316 -193
  31. package/dist/api/types/comments.d.ts +68 -31
  32. package/dist/api/types/company.d.ts +53 -6
  33. package/dist/api/types/compare.d.ts +21 -6
  34. package/dist/api/types/connector.d.ts +5 -5
  35. package/dist/api/types/coolify.d.ts +18 -2
  36. package/dist/api/types/detections.d.ts +26 -18
  37. package/dist/api/types/drone.d.ts +95 -6
  38. package/dist/api/types/emailMessages.d.ts +27 -0
  39. package/dist/api/types/errors.d.ts +19 -2
  40. package/dist/api/types/gateReport.d.ts +48 -69
  41. package/dist/api/types/gateReportManagement.d.ts +170 -0
  42. package/dist/api/types/hammertech.d.ts +98 -0
  43. package/dist/api/types/hdd.d.ts +27 -2
  44. package/dist/api/types/index.d.ts +17 -3
  45. package/dist/api/types/ingest.d.ts +280 -17
  46. package/dist/api/types/kit.d.ts +108 -121
  47. package/dist/api/types/map.d.ts +12 -0
  48. package/dist/api/types/media.d.ts +33 -4
  49. package/dist/api/types/notification.d.ts +83 -3
  50. package/dist/api/types/nvr.d.ts +39 -8
  51. package/dist/api/types/oauth.d.ts +62 -0
  52. package/dist/api/types/observationEvents.d.ts +167 -0
  53. package/dist/api/types/observations.d.ts +89 -0
  54. package/dist/api/types/planner.d.ts +98 -8
  55. package/dist/api/types/posthog.d.ts +71 -0
  56. package/dist/api/types/procore.d.ts +13 -6
  57. package/dist/api/types/progressPhoto.d.ts +42 -25
  58. package/dist/api/types/project.d.ts +153 -33
  59. package/dist/api/types/recording.d.ts +9 -15
  60. package/dist/api/types/recycleBin.d.ts +9 -3
  61. package/dist/api/types/reports.d.ts +109 -0
  62. package/dist/api/types/ring.d.ts +53 -0
  63. package/dist/api/types/roi.d.ts +3 -11
  64. package/dist/api/types/routeParams.d.ts +1 -0
  65. package/dist/api/types/router.d.ts +15 -10
  66. package/dist/api/types/shared.d.ts +47 -30
  67. package/dist/api/types/shares.d.ts +1 -14
  68. package/dist/api/types/sim.d.ts +23 -11
  69. package/dist/api/types/siteAnalytics.d.ts +81 -43
  70. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  71. package/dist/api/types/siteView.d.ts +79 -0
  72. package/dist/api/types/smartSeach.d.ts +5 -0
  73. package/dist/api/types/snapshots.d.ts +99 -14
  74. package/dist/api/types/socket.d.ts +4 -0
  75. package/dist/api/types/sso.d.ts +11 -37
  76. package/dist/api/types/storageProvider.d.ts +30 -0
  77. package/dist/api/types/storyblok.d.ts +27 -0
  78. package/dist/api/types/streaming.d.ts +3 -3
  79. package/dist/api/types/tag.d.ts +1 -1
  80. package/dist/api/types/time.d.ts +0 -18
  81. package/dist/api/types/timelapse.d.ts +7 -11
  82. package/dist/api/types/user.d.ts +139 -54
  83. package/dist/api/types/videoWall.d.ts +21 -21
  84. package/dist/api/types/weather.d.ts +75 -11
  85. package/dist/api/types/widget.d.ts +83 -15
  86. package/dist/api/types/xweather.d.ts +4 -4
  87. package/dist/api/utils.d.ts +1 -1
  88. package/dist/index.js +2483 -972
  89. package/dist/index.js.map +1 -1
  90. package/dist/index.umd.cjs +1 -1
  91. package/dist/index.umd.cjs.map +1 -1
  92. package/dist/shared/types/components.d.ts +598 -34
  93. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  94. package/dist/shared/types/droneUpload.d.ts +93 -0
  95. package/dist/shared/types/imagePlayer.d.ts +9 -2
  96. package/dist/shared/types/index.d.ts +5 -0
  97. package/dist/shared/types/observations.d.ts +25 -0
  98. package/dist/shared/types/rbac.d.ts +67 -0
  99. package/dist/shared/types/report.d.ts +107 -0
  100. package/dist/shared/types/timeline.d.ts +2 -1
  101. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  102. package/dist/shared/utils/datePresets.d.ts +31 -0
  103. package/package.json +4 -2
  104. package/dist/api/types/copilot.d.ts +0 -157
  105. package/dist/api/types/storageServers.d.ts +0 -4
  106. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,8 +1,9 @@
1
- import { CameraExid, DateType, ProjectExid, PaginationParams } from "@/types";
1
+ import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
2
2
  export declare enum CommentsScope {
3
3
  Recordings = "recordings",
4
4
  ThreeSixty = "360",
5
- Drone = "drone"
5
+ Drone = "drone",
6
+ Timeline = "timeline"
6
7
  }
7
8
  export declare enum CommentsLabel {
8
9
  Info = "Info",
@@ -10,50 +11,86 @@ export declare enum CommentsLabel {
10
11
  Restricted = "Restricted"
11
12
  }
12
13
  export type CommentsRequestPayload = {
13
- cameraExid: CameraExid;
14
- fromDate: string;
15
- toDate: string;
16
14
  scope: CommentsScope;
17
- page?: number;
18
- limit?: number;
19
- };
20
- export type CommentsListRequestPayload = PaginationParams & {
21
- projectExid?: ProjectExid;
22
15
  cameraExid?: CameraExid;
23
- fromDate?: string;
24
- toDate?: string;
25
- scope?: CommentsScope;
26
- creatorEmail?: string;
27
- content?: string;
28
- includeArchived?: boolean;
16
+ };
17
+ export type CommentsListRequestPayload = PaginationParams & Partial<{
18
+ scope: CommentsScope;
19
+ archivedAt: boolean | string;
20
+ createdBy: string;
21
+ project: string;
22
+ camera: string;
23
+ content: string;
24
+ label: CommentsLabel;
25
+ timestamp: string;
26
+ createdAtFrom: string;
27
+ createdAtTo: string;
28
+ }>;
29
+ export type AdminCommentProject = {
30
+ id: number;
31
+ exid: ProjectExid;
32
+ name: string;
33
+ };
34
+ export type AdminCommentCamera = {
35
+ id: number;
36
+ exid: CameraExid;
37
+ name: string;
38
+ };
39
+ export type AdminCommentCreatedBy = {
40
+ id: number;
41
+ firstname: string;
42
+ lastname: string;
43
+ email: string;
44
+ };
45
+ export type AdminComment = {
46
+ id: number;
47
+ content: string;
48
+ scope: CommentsScope;
49
+ timestamp: string;
50
+ label?: CommentsLabel;
51
+ archivedAt?: string;
52
+ project: AdminCommentProject | null;
53
+ camera: AdminCommentCamera | null;
54
+ createdBy: AdminCommentCreatedBy | null;
55
+ createdAt: string;
29
56
  };
30
57
  export type Comment = {
31
- fromDate?: string;
32
- toDate?: string;
58
+ fromTimestamp?: string;
59
+ toTimestamp?: string;
33
60
  timestamp: string;
34
- projectExid: ProjectExid;
35
- updatedAt?: string;
61
+ projectExid?: ProjectExid;
62
+ scope?: CommentsScope;
36
63
  id?: number;
37
64
  cameraExid: CameraExid;
38
65
  content: string;
39
66
  createdAt?: string;
67
+ updatedAt?: string;
40
68
  creatorEmail?: string;
41
69
  creatorName?: string;
42
- position2d?: [number, number];
43
- position3d?: [number, number, number];
70
+ position2d?: TuplePoint2D;
71
+ position3d?: TuplePoint3D;
44
72
  context?: Record<string, unknown>;
45
73
  canDelete?: boolean;
46
74
  archivedAt?: string;
75
+ label?: CommentsLabel;
47
76
  };
48
- export type CommentCreationRequestPayload = {
49
- fromDate?: DateType;
50
- toDate?: DateType;
51
- timestamp?: DateType;
52
- scope?: CommentsScope;
77
+ export type CommentCreationRequestPayload = Partial<{
78
+ fromTimestamp: DateType;
79
+ toTimestamp: DateType;
80
+ timestamp: DateType;
81
+ scope: CommentsScope;
53
82
  projectExid: ProjectExid;
54
- cameraExid?: CameraExid;
83
+ cameraExid: CameraExid;
84
+ label: CommentsLabel;
85
+ position2d: TuplePoint2D;
86
+ position3d: [number, number, number];
87
+ context: Record<string, unknown>;
88
+ }> & {
55
89
  content: string;
56
- position2d?: [number, number];
57
- position3d?: [number, number, number];
58
- context?: Record<string, unknown>;
90
+ };
91
+ export type CommentThreeSixtyContext = {
92
+ floorId: string;
93
+ dateId: string;
94
+ currentRoom: string;
95
+ cameraRotation: _360CameraRotation;
59
96
  };
@@ -1,11 +1,16 @@
1
- import type { DateType, PaginationParams } from "@/types";
1
+ import type { DateType, PaginationParams } from "@evercam/api/types";
2
2
  export type CompanyUser = {
3
3
  id: number;
4
4
  fullname: string;
5
5
  email: string;
6
6
  eventsCount: number;
7
- lastSeenAt: string;
8
- active: boolean;
7
+ lastLoginAt: string;
8
+ };
9
+ export type AdminCompanyUser = {
10
+ id: number;
11
+ email: string;
12
+ fullname: string;
13
+ lastLoginAt: string;
9
14
  };
10
15
  export type CompanyProject = {
11
16
  exid: string;
@@ -13,6 +18,16 @@ export type CompanyProject = {
13
18
  status: string;
14
19
  startedAt: DateType;
15
20
  };
21
+ export type AdminCompanyProject = {
22
+ id: number;
23
+ name: string;
24
+ status: string;
25
+ insertedAt: DateType;
26
+ exid: string;
27
+ endDate: string | null;
28
+ startDate: string | null;
29
+ archiveTier: string | null;
30
+ };
16
31
  export type CompanyKit = {
17
32
  id: number;
18
33
  name: string;
@@ -55,6 +70,31 @@ export type Company = {
55
70
  activeUsers: number;
56
71
  insertedAt: DateType;
57
72
  };
73
+ export type CompanySummary = {
74
+ id: number;
75
+ name: string;
76
+ users: number;
77
+ insertedAt: DateType;
78
+ exid: string;
79
+ sessions: number;
80
+ projects: number;
81
+ zohoId: string;
82
+ domains: string;
83
+ linkedinUrl: string | null;
84
+ ssoProviders: string[];
85
+ cameras: number;
86
+ kits: number;
87
+ };
88
+ export type CompanyCameraSummary = {
89
+ id: number;
90
+ name: string;
91
+ status: string;
92
+ exid: string;
93
+ projectExid: string | null;
94
+ ownerEmail: string;
95
+ ownerFullname: string;
96
+ usersCount: number;
97
+ };
58
98
  export type CompanyQueryParams = PaginationParams & {
59
99
  name: string;
60
100
  exid: string;
@@ -62,13 +102,20 @@ export type CompanyQueryParams = PaginationParams & {
62
102
  projects: string;
63
103
  cameras: string;
64
104
  users: string;
65
- activeUsers: string;
66
105
  sessions: string;
67
106
  };
68
107
  export type CompanyUpdatePayload = {
69
- name: string;
70
- exid: string;
108
+ companyName: string;
109
+ companyExid: string;
71
110
  linkedinUrl?: string;
72
111
  domains?: string;
73
112
  zohoId?: string;
113
+ ssoProviders: string[];
114
+ };
115
+ export type CompanyUpdateResponse = {
116
+ name: string;
117
+ exid: string;
118
+ domains: string;
119
+ zohoId: string;
120
+ ssoProviders: string[];
74
121
  };
@@ -1,4 +1,4 @@
1
- import { DateType, PaginationParams } from "@/types";
1
+ import { DateType, PaginationParams } from "@evercam/api/types";
2
2
  export type Compare = {
3
3
  cameraExid: string;
4
4
  createdAt: string;
@@ -28,14 +28,29 @@ export declare enum CompareStatus {
28
28
  Failed = 2
29
29
  }
30
30
  export type CompareRequestPayload = {
31
+ compareExid: string;
31
32
  name: string;
32
- afterDate: string;
33
33
  beforeDate: string;
34
- embed: string;
35
- compareExid: string;
36
- cameraExid?: string;
34
+ afterDate: string;
35
+ cameraExid: string;
36
+ embed?: string;
37
+ bim?: boolean;
38
+ custom?: boolean;
39
+ options?: {
40
+ type: string;
41
+ beforeSnap: string;
42
+ afterSnap: string;
43
+ };
37
44
  createAnimation: boolean;
38
- evercamWatermark?: boolean;
45
+ evercamWatermark: boolean;
46
+ logo?: CompareLogoPosition;
47
+ };
48
+ export type CompareLogoPosition = {
49
+ id?: number;
50
+ width: number;
51
+ height: number;
52
+ x: number;
53
+ y: number;
39
54
  };
40
55
  export type AdminCompare = {
41
56
  id: number;
@@ -1,6 +1,7 @@
1
1
  export type ConnectorDetail = {
2
2
  login: string;
3
3
  hostname: string;
4
+ provider: string;
4
5
  };
5
6
  export declare enum Connector {
6
7
  Aconex = "aconex",
@@ -8,14 +9,13 @@ export declare enum Connector {
8
9
  Autodesk = "autodesk",
9
10
  AutodeskViewer = "autodesk_viewer",
10
11
  VoyageControl = "voyage_control",
12
+ Ring = "ring",
13
+ Email = "email",
14
+ Hammertech = "hammertech",
11
15
  XWeather = "xweather"
12
16
  }
13
17
  export declare enum ProcoreType {
14
18
  Observations = "observations",
15
19
  Photos = "photos"
16
20
  }
17
- export type ConnectorResponsePayload = Array<{
18
- hostname: string;
19
- login: string;
20
- provider: string;
21
- }>;
21
+ export type ConnectorResponsePayload = Array<ConnectorDetail>;
@@ -1,6 +1,5 @@
1
- import { DateType } from "@/types/time";
1
+ import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
2
2
  export type CreateCoolifyAppRequestPayload = {
3
- cameraExid: string;
4
3
  startDate: DateType;
5
4
  modelVersion: string;
6
5
  snapshotRequestTimeout: string | number;
@@ -18,3 +17,20 @@ export type SaveCoolifyAppRequestPayload = {
18
17
  serverUuid: string;
19
18
  useThirdParty: boolean;
20
19
  };
20
+ export type CoolifyApp = {
21
+ id: number;
22
+ projectExid: ProjectExid;
23
+ anprCameraExid: CameraExid;
24
+ contextCameraExid: CameraExid;
25
+ modelVersion: string;
26
+ isActive: boolean;
27
+ insertedAt: DateType;
28
+ updatedAt: DateType;
29
+ };
30
+ export type RegisterCoolifyAppResponsePayload = {
31
+ created: boolean;
32
+ id: number;
33
+ data: CoolifyApp;
34
+ count: number;
35
+ message: string;
36
+ };
@@ -1,4 +1,4 @@
1
- import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision, DateRangeFilter, ProjectDateRangeFilter, CameraDateRangeFilter } from "@/types";
1
+ import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision, CameraDateRangeFilter } from "@evercam/api/types";
2
2
  export type BaseDetectionsFilters = {
3
3
  fromDate: string | Date;
4
4
  toDate: string | Date;
@@ -13,15 +13,6 @@ export type SegmentsFilters = BaseDetectionsFilters & {
13
13
  cameraExid: CameraExid;
14
14
  };
15
15
  export type BBox = number[];
16
- export type SelectedObjectPath = {
17
- label: string;
18
- trackId: string;
19
- paths: Array<{
20
- timestamp: number;
21
- center: [number, number];
22
- bbox: BBox;
23
- }>;
24
- };
25
16
  export type Label = DetectionLabel | PpeLabel;
26
17
  export type Detection = {
27
18
  bbox: BBox;
@@ -31,7 +22,8 @@ export type Detection = {
31
22
  };
32
23
  export type DetectionsGroup = {
33
24
  timestamp: DateType;
34
- detections: Detection[];
25
+ cameraExid: CameraExid;
26
+ trackings: Detection[];
35
27
  };
36
28
  export type DetectionsCounts = {
37
29
  timestamps: number;
@@ -74,22 +66,36 @@ export type SegmentSimilarityResult = {
74
66
  };
75
67
  export type SegmentsSimilaritySearchParams = {
76
68
  cameraExid: CameraExid;
77
- referenceId: string;
69
+ referenceId: string | number;
78
70
  iouThreshold?: number;
79
71
  fromDate: string;
80
72
  toDate: string;
81
73
  };
82
- export type BaseCountsParams = DateRangeFilter & {
83
- precision: keyof typeof TimelinePrecision;
84
- trackId: number;
85
- labels: DetectionLabel | DetectionLabel[];
74
+ export type BaseCountsParams = {
75
+ fromDate?: string;
76
+ toDate?: string;
77
+ precision?: TimelinePrecision;
78
+ trackId?: number;
79
+ labels?: DetectionLabel | DetectionLabel[];
86
80
  };
87
- export type DetectionsCountsParams = ProjectDateRangeFilter & BaseCountsParams & {
81
+ export type DetectionsCountsParams = BaseCountsParams & {
88
82
  cameraExids?: CameraExid[];
83
+ projectExid?: ProjectExid;
84
+ modelId?: DetectionModel;
85
+ labels?: Label[];
86
+ excludeLabels?: Label[];
87
+ confidenceThreshold?: number;
88
+ mergedClasses?: string[];
89
89
  };
90
90
  export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
91
91
  export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
92
+ export type DetectionsPresenceResponse = {
93
+ intervals: DetectionsPresenceByLabel;
94
+ };
92
95
  export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
96
+ export type SegmentsPresenceResponse = {
97
+ intervals: SegmentsPresenceByLabel;
98
+ };
93
99
  export type LuminanceReading = {
94
100
  timestamp: string;
95
101
  luminanceDelta: number;
@@ -99,6 +105,7 @@ export declare enum PpeLabel {
99
105
  Helmet = "helmet",
100
106
  HighVisibilityVest = "high-visibility-vest",
101
107
  SafetyGlasses = "safety-glasses",
108
+ Gloves = "gloves",
102
109
  Person = "person",
103
110
  Man = "man",
104
111
  Woman = "woman"
@@ -108,5 +115,6 @@ export declare enum DetectionModel {
108
115
  Yolov11 = 2,
109
116
  Yolov112 = 3,
110
117
  GroundingDino = 4,
111
- Owlv2 = 5
118
+ Owlv2 = 5,
119
+ PpeV2 = 6
112
120
  }
@@ -1,17 +1,106 @@
1
+ import { Point3D } from "@evercam/api/types/shared";
2
+ export type DroneCameraTransform = {
3
+ position: Point3D;
4
+ direction: Point3D;
5
+ up: Point3D;
6
+ right: Point3D;
7
+ };
1
8
  export type DroneModel = {
2
- cesiumId: string;
3
- cesiumId2D: string;
9
+ cesiumId: number;
10
+ cesiumId2D: number;
4
11
  date: string;
5
12
  cesiumPointCloudId: string;
13
+ cesiumGausianSplatId: string;
6
14
  pointSize: string;
7
- maximumScreenSpaceError: string;
15
+ maximumScreenSpaceError: number;
8
16
  link: string;
9
17
  trueIndex: number;
10
18
  };
11
- export type DroneProjectJsonResponse = {
12
- models: DroneModel[];
13
- [key: string]: any;
19
+ export type DroneProjectTransform = {
20
+ initialCameraTransform?: DroneCameraTransform;
21
+ initial2DCameraTransform?: DroneCameraTransform;
22
+ markers?: Record<string, DroneMarker>;
23
+ imageryPlans?: Record<string, DroneImageryPlan>;
24
+ bimData?: DroneBimData;
25
+ terrainPoints?: Record<string, Point3D[]>;
26
+ projectWGS84Coordinates?: DroneProjectCoordinates | null;
27
+ tags?: Record<string, DroneTag>;
28
+ };
29
+ export type DroneProjectData = {
30
+ models?: DroneModel[];
31
+ transform?: DroneProjectTransform;
32
+ integrationType?: DroneProvider;
33
+ origin?: string;
34
+ params?: string;
35
+ pointSize?: number;
36
+ };
37
+ export type DroneProjectDataPatch = {
38
+ models?: Record<number, Partial<DroneModel>>;
39
+ integrationType?: DroneProvider;
40
+ origin?: string;
41
+ params?: string;
42
+ };
43
+ export type DroneProjectCoordinates = {
44
+ lat: number | null;
45
+ lon: number | null;
46
+ alt: number | null;
47
+ };
48
+ export type DroneTransformPatch = {
49
+ projectWGS84Coordinates?: DroneProjectCoordinates | null;
50
+ };
51
+ export declare enum DroneTagType {
52
+ AerialShot = "AerialShot"
53
+ }
54
+ export type DroneTag<T extends DroneTagType = DroneTagType> = {
55
+ id?: number;
56
+ type: T;
57
+ comment: string;
58
+ position?: Point3D;
59
+ cameraTransform?: string;
60
+ creationDate: string;
61
+ hyperlink?: string;
62
+ height?: number;
63
+ };
64
+ export type AerialShotPoint = DroneTag<DroneTagType.AerialShot>;
65
+ export type DroneMarkerTransform = {
66
+ fovAngle: number;
67
+ fovRadius: number;
68
+ heading: number;
69
+ height: number;
70
+ latitude: string;
71
+ longitude: string;
72
+ pitch: number;
73
+ roll: number;
74
+ scale: number;
75
+ };
76
+ export declare enum DroneMarkerType {
77
+ Default = "Default",
78
+ Gate = "Gate",
79
+ Indoor = "Indoor"
80
+ }
81
+ export type DroneMarker = {
82
+ type: DroneMarkerType;
83
+ name: string;
84
+ cameraExid: string;
85
+ transform: DroneMarkerTransform;
86
+ };
87
+ export type DroneImageryPlan = {
88
+ cesiumId: number;
89
+ uuid: string;
90
+ name: string;
91
+ alpha: number;
92
+ order: number;
93
+ };
94
+ export type DroneBimData = {
95
+ cesiumId: string | null;
96
+ iModelId: string | null;
97
+ changeSetId: string | null;
98
+ isItwin: boolean;
14
99
  };
15
100
  export declare enum DroneUrlParams {
16
101
  Date = "date"
17
102
  }
103
+ export declare enum DroneProvider {
104
+ Evercam = "Evercam",
105
+ DroneDeploy = "DroneDeploy"
106
+ }
@@ -0,0 +1,27 @@
1
+ export type EmailInlineImage = {
2
+ cid: string;
3
+ mimeType: "image/jpeg" | "image/png" | "image/gif";
4
+ content: string;
5
+ };
6
+ export type EmailAttachment = {
7
+ name: string;
8
+ mimeType: string;
9
+ content: string;
10
+ };
11
+ export type EmailMessage = {
12
+ to: string[];
13
+ cc?: string[];
14
+ subject: string;
15
+ html: string;
16
+ inlineImages?: EmailInlineImage[];
17
+ attachments?: EmailAttachment[];
18
+ };
19
+ export type EmailAcceptance = {
20
+ status: "accepted";
21
+ requestId: string | null;
22
+ };
23
+ export type EmailRejection = {
24
+ detail: string | {
25
+ msg: string;
26
+ }[];
27
+ };
@@ -23,7 +23,10 @@ export declare enum ErrorCode {
23
23
  UnauthorizedError = 401,
24
24
  ForbiddenError = 403,
25
25
  NotFoundError = 404,
26
- ConflictError = 409
26
+ ConflictError = 409,
27
+ GoneError = 410,
28
+ TooManyRequestsError = 429,
29
+ UnprocessableEntityError = 422
27
30
  }
28
31
  export declare enum EvercamApiErrorCode {
29
32
  IntegrationError = "INTEGRATION_ERROR",
@@ -37,7 +40,8 @@ export declare enum EvercamApiErrorCode {
37
40
  ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
38
41
  PasswordReset = "PASSWORD_RESET",
39
42
  RequireShareRequest = "REQUIRE_SHARE_REQUEST",
40
- Generic = "GENERIC"
43
+ Generic = "GENERIC",
44
+ VideoWallInUse = "VIDEO_WALL_IN_USE"
41
45
  }
42
46
  type _EvercamApiError = {
43
47
  code: EvercamApiErrorCode;
@@ -46,4 +50,17 @@ type _EvercamApiError = {
46
50
  innerError?: _EvercamApiError;
47
51
  };
48
52
  export type EvercamApiError = AxiosError<_EvercamApiError>;
53
+ export declare function isEvercamApiError(error: unknown): error is EvercamApiError;
54
+ export declare function getEvercamApiErrorCode(error: unknown): EvercamApiErrorCode | undefined;
55
+ export type AppError = {
56
+ statusCode?: number;
57
+ message?: string;
58
+ redirect?: {
59
+ url?: string;
60
+ label?: string;
61
+ delay?: number;
62
+ };
63
+ withSupportMessage?: boolean;
64
+ isWidget?: boolean;
65
+ };
49
66
  export {};