@evercam/api 1.0.0-779bcb558 → 1.0.0-7e19ed0be

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 (156) hide show
  1. package/README.md +6 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +224 -0
  3. package/dist/api/api/adminApi.d.ts +379 -0
  4. package/dist/api/api/aiApi.d.ts +251 -0
  5. package/dist/api/api/authzApi.d.ts +40 -0
  6. package/dist/api/{client → api/client}/axios.d.ts +2 -1
  7. package/dist/api/{client → api/client}/customErrors.d.ts +10 -0
  8. package/dist/api/{client → api/client}/interceptors.d.ts +3 -2
  9. package/dist/api/api/client/swr/Swr.d.ts +14 -0
  10. package/dist/api/api/client/swr/SwrStore.d.ts +10 -0
  11. package/dist/api/api/evercamApi.d.ts +356 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +37 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +2 -2
  14. package/dist/api/api/index.d.ts +14 -0
  15. package/dist/api/api/ingestApi.d.ts +170 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
  17. package/dist/api/api/reportsApi.d.ts +15 -0
  18. package/dist/api/api/videoWallApi.d.ts +9 -0
  19. package/dist/api/api/weatherApi.d.ts +9 -0
  20. package/dist/api/index.d.ts +3 -13
  21. package/dist/api/types/360.d.ts +368 -0
  22. package/dist/api/types/aconex.d.ts +143 -0
  23. package/dist/api/types/admin.d.ts +85 -0
  24. package/dist/api/types/aiConfigs.d.ts +244 -0
  25. package/dist/{types → api/types}/analytics.d.ts +262 -122
  26. package/dist/{types → api/types}/anpr.d.ts +65 -19
  27. package/dist/api/types/apiKey.d.ts +70 -0
  28. package/dist/api/types/auditLogs.d.ts +257 -0
  29. package/dist/api/types/authz.d.ts +132 -0
  30. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  31. package/dist/api/types/automation.d.ts +123 -0
  32. package/dist/{types → api/types}/axios.d.ts +32 -12
  33. package/dist/{types → api/types}/bim.d.ts +65 -16
  34. package/dist/api/types/camera.d.ts +660 -0
  35. package/dist/api/types/comments.d.ts +96 -0
  36. package/dist/api/types/company.d.ts +121 -0
  37. package/dist/{types → api/types}/compare.d.ts +21 -6
  38. package/dist/api/types/connector.d.ts +21 -0
  39. package/dist/api/types/coolify.d.ts +36 -0
  40. package/dist/{types → api/types}/countries.d.ts +0 -7
  41. package/dist/{types → api/types}/credentials.d.ts +1 -0
  42. package/dist/api/types/detections.d.ts +120 -0
  43. package/dist/api/types/drone.d.ts +106 -0
  44. package/dist/api/types/emailMessages.d.ts +27 -0
  45. package/dist/{types → api/types}/errors.d.ts +31 -1
  46. package/dist/{types → api/types}/gateReport.d.ts +101 -170
  47. package/dist/api/types/gateReportManagement.d.ts +170 -0
  48. package/dist/api/types/hammertech.d.ts +98 -0
  49. package/dist/api/types/hdd.d.ts +88 -0
  50. package/dist/{types → api/types}/index.d.ts +27 -5
  51. package/dist/api/types/ingest.d.ts +314 -0
  52. package/dist/{types → api/types}/kit.d.ts +181 -113
  53. package/dist/api/types/map.d.ts +16 -0
  54. package/dist/{types → api/types}/media.d.ts +33 -4
  55. package/dist/api/types/notification.d.ts +107 -0
  56. package/dist/api/types/nvr.d.ts +67 -0
  57. package/dist/api/types/oauth.d.ts +62 -0
  58. package/dist/api/types/observationEvents.d.ts +167 -0
  59. package/dist/api/types/observations.d.ts +89 -0
  60. package/dist/api/types/planner.d.ts +125 -0
  61. package/dist/api/types/posthog.d.ts +89 -0
  62. package/dist/api/types/procore.d.ts +229 -0
  63. package/dist/{types → api/types}/progressPhoto.d.ts +41 -40
  64. package/dist/api/types/project.d.ts +293 -0
  65. package/dist/{types → api/types}/recording.d.ts +10 -16
  66. package/dist/api/types/recycleBin.d.ts +20 -0
  67. package/dist/api/types/reports.d.ts +109 -0
  68. package/dist/api/types/ring.d.ts +53 -0
  69. package/dist/{types → api/types}/roi.d.ts +2 -9
  70. package/dist/{types → api/types}/routeParams.d.ts +5 -2
  71. package/dist/{types → api/types}/router.d.ts +34 -10
  72. package/dist/{types → api/types}/shared.d.ts +48 -45
  73. package/dist/api/types/shares.d.ts +45 -0
  74. package/dist/{types → api/types}/sim.d.ts +23 -11
  75. package/dist/api/types/siteAnalytics.d.ts +285 -0
  76. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  77. package/dist/api/types/siteView.d.ts +79 -0
  78. package/dist/api/types/smartSeach.d.ts +5 -0
  79. package/dist/api/types/snapshots.d.ts +144 -0
  80. package/dist/api/types/socket.d.ts +4 -0
  81. package/dist/api/types/sso.d.ts +29 -0
  82. package/dist/api/types/storageProvider.d.ts +30 -0
  83. package/dist/api/types/storyblok.d.ts +27 -0
  84. package/dist/api/types/streaming.d.ts +97 -0
  85. package/dist/api/types/systemCheck.d.ts +11 -0
  86. package/dist/api/types/tag.d.ts +12 -0
  87. package/dist/api/types/time.d.ts +7 -0
  88. package/dist/{types → api/types}/timelapse.d.ts +22 -11
  89. package/dist/{types → api/types}/user.d.ts +143 -59
  90. package/dist/api/types/videoWall.d.ts +66 -0
  91. package/dist/api/types/weather.d.ts +153 -0
  92. package/dist/{types → api/types}/widget.d.ts +118 -23
  93. package/dist/api/types/xweather.d.ts +12 -0
  94. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  95. package/dist/index.d.ts +2 -3
  96. package/dist/index.js +3275 -1109
  97. package/dist/index.js.map +1 -1
  98. package/dist/index.umd.cjs +1 -1
  99. package/dist/index.umd.cjs.map +1 -1
  100. package/dist/shared/api/index.d.ts +3 -0
  101. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  102. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  103. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  104. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  105. package/dist/shared/types/components.d.ts +763 -0
  106. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  107. package/dist/shared/types/droneUpload.d.ts +93 -0
  108. package/dist/shared/types/imagePlayer.d.ts +41 -0
  109. package/dist/shared/types/index.d.ts +9 -0
  110. package/dist/shared/types/observations.d.ts +25 -0
  111. package/dist/shared/types/rbac.d.ts +67 -0
  112. package/dist/shared/types/report.d.ts +107 -0
  113. package/dist/shared/types/timeline.d.ts +10 -0
  114. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  115. package/dist/shared/utils/datePresets.d.ts +31 -0
  116. package/package.json +10 -7
  117. package/dist/api/3dFirebaseApi.d.ts +0 -9
  118. package/dist/api/adminApi.d.ts +0 -288
  119. package/dist/api/aiApi.d.ts +0 -73
  120. package/dist/api/authzApi.d.ts +0 -21
  121. package/dist/api/evercamApi.d.ts +0 -266
  122. package/dist/api/evercamLabsApi.d.ts +0 -51
  123. package/dist/api/ingestApi.d.ts +0 -65
  124. package/dist/api/videoWallApi.d.ts +0 -9
  125. package/dist/api/weatherApi.d.ts +0 -25
  126. package/dist/types/360.d.ts +0 -83
  127. package/dist/types/aconex.d.ts +0 -45
  128. package/dist/types/auditLogs.d.ts +0 -99
  129. package/dist/types/automation.d.ts +0 -6
  130. package/dist/types/camera.d.ts +0 -563
  131. package/dist/types/comments.d.ts +0 -36
  132. package/dist/types/company.d.ts +0 -46
  133. package/dist/types/connector.d.ts +0 -16
  134. package/dist/types/copilot.d.ts +0 -155
  135. package/dist/types/detections.d.ts +0 -62
  136. package/dist/types/devices.d.ts +0 -228
  137. package/dist/types/drone.d.ts +0 -17
  138. package/dist/types/ingest.d.ts +0 -43
  139. package/dist/types/map.d.ts +0 -4
  140. package/dist/types/notification.d.ts +0 -27
  141. package/dist/types/nvr.d.ts +0 -35
  142. package/dist/types/procore.d.ts +0 -76
  143. package/dist/types/project.d.ts +0 -120
  144. package/dist/types/shares.d.ts +0 -192
  145. package/dist/types/siteAnalytics.d.ts +0 -5
  146. package/dist/types/sitePlanner.d.ts +0 -23
  147. package/dist/types/snapshots.d.ts +0 -50
  148. package/dist/types/storageServers.d.ts +0 -4
  149. package/dist/types/streaming.d.ts +0 -119
  150. package/dist/types/time.d.ts +0 -19
  151. package/dist/types/vendorModel.d.ts +0 -15
  152. package/dist/types/videoWall.d.ts +0 -33
  153. package/dist/types/weather.d.ts +0 -83
  154. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  155. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  156. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -0,0 +1,96 @@
1
+ import { CameraExid, DateType, ProjectExid, PaginationParams, TuplePoint3D, TuplePoint2D, _360CameraRotation } from "@evercam/api/types";
2
+ export declare enum CommentsScope {
3
+ Recordings = "recordings",
4
+ ThreeSixty = "360",
5
+ Drone = "drone",
6
+ Timeline = "timeline"
7
+ }
8
+ export declare enum CommentsLabel {
9
+ Info = "Info",
10
+ Danger = "Danger",
11
+ Restricted = "Restricted"
12
+ }
13
+ export type CommentsRequestPayload = {
14
+ scope: CommentsScope;
15
+ cameraExid?: CameraExid;
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;
56
+ };
57
+ export type Comment = {
58
+ fromTimestamp?: string;
59
+ toTimestamp?: string;
60
+ timestamp: string;
61
+ projectExid?: ProjectExid;
62
+ scope?: CommentsScope;
63
+ id?: number;
64
+ cameraExid: CameraExid;
65
+ content: string;
66
+ createdAt?: string;
67
+ updatedAt?: string;
68
+ creatorEmail?: string;
69
+ creatorName?: string;
70
+ position2d?: TuplePoint2D;
71
+ position3d?: TuplePoint3D;
72
+ context?: Record<string, unknown>;
73
+ canDelete?: boolean;
74
+ archivedAt?: string;
75
+ label?: CommentsLabel;
76
+ };
77
+ export type CommentCreationRequestPayload = Partial<{
78
+ fromTimestamp: DateType;
79
+ toTimestamp: DateType;
80
+ timestamp: DateType;
81
+ scope: CommentsScope;
82
+ projectExid: ProjectExid;
83
+ cameraExid: CameraExid;
84
+ label: CommentsLabel;
85
+ position2d: TuplePoint2D;
86
+ position3d: [number, number, number];
87
+ context: Record<string, unknown>;
88
+ }> & {
89
+ content: string;
90
+ };
91
+ export type CommentThreeSixtyContext = {
92
+ floorId: string;
93
+ dateId: string;
94
+ currentRoom: string;
95
+ cameraRotation: _360CameraRotation;
96
+ };
@@ -0,0 +1,121 @@
1
+ import type { DateType, PaginationParams } from "@evercam/api/types";
2
+ export type CompanyUser = {
3
+ id: number;
4
+ fullname: string;
5
+ email: string;
6
+ eventsCount: number;
7
+ lastLoginAt: string;
8
+ };
9
+ export type AdminCompanyUser = {
10
+ id: number;
11
+ email: string;
12
+ fullname: string;
13
+ lastLoginAt: string;
14
+ };
15
+ export type CompanyProject = {
16
+ exid: string;
17
+ name: string;
18
+ status: string;
19
+ startedAt: DateType;
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
+ };
31
+ export type CompanyKit = {
32
+ id: number;
33
+ name: string;
34
+ serial: string;
35
+ status: string;
36
+ powerType: string;
37
+ countryName: string;
38
+ nvrId: string;
39
+ nvrSerial: string;
40
+ nvrVersion: string;
41
+ nvrNerves: boolean;
42
+ nvrModel: string;
43
+ nvrDeviceType: string;
44
+ routerId: string;
45
+ routerSerial: string;
46
+ projectExid: string;
47
+ projectName: string;
48
+ alarms: Array<string>;
49
+ sims: Array<{
50
+ id: number;
51
+ number: string;
52
+ }>;
53
+ cameras: Array<{
54
+ exid: string;
55
+ name: string;
56
+ status: string;
57
+ }>;
58
+ };
59
+ export type Company = {
60
+ id: number;
61
+ exid: string;
62
+ name: string;
63
+ zohoId: string;
64
+ domains: string;
65
+ linkedinUrl: string;
66
+ sessions: number;
67
+ projects: number;
68
+ cameras: number;
69
+ users: number;
70
+ activeUsers: number;
71
+ insertedAt: DateType;
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
+ };
98
+ export type CompanyQueryParams = PaginationParams & {
99
+ name: string;
100
+ exid: string;
101
+ domains: string;
102
+ projects: string;
103
+ cameras: string;
104
+ users: string;
105
+ sessions: string;
106
+ };
107
+ export type CompanyUpdatePayload = {
108
+ companyName: string;
109
+ companyExid: string;
110
+ linkedinUrl?: string;
111
+ domains?: string;
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[];
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;
@@ -0,0 +1,21 @@
1
+ export type ConnectorDetail = {
2
+ login: string;
3
+ hostname: string;
4
+ provider: string;
5
+ };
6
+ export declare enum Connector {
7
+ Aconex = "aconex",
8
+ Procore = "procore",
9
+ Autodesk = "autodesk",
10
+ AutodeskViewer = "autodesk_viewer",
11
+ VoyageControl = "voyage_control",
12
+ Ring = "ring",
13
+ Email = "email",
14
+ Hammertech = "hammertech",
15
+ XWeather = "xweather"
16
+ }
17
+ export declare enum ProcoreType {
18
+ Observations = "observations",
19
+ Photos = "photos"
20
+ }
21
+ export type ConnectorResponsePayload = Array<ConnectorDetail>;
@@ -0,0 +1,36 @@
1
+ import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
2
+ export type CreateCoolifyAppRequestPayload = {
3
+ startDate: DateType;
4
+ modelVersion: string;
5
+ snapshotRequestTimeout: string | number;
6
+ serverUuid: string;
7
+ branch: string;
8
+ useThirdParty: boolean;
9
+ };
10
+ export type SaveCoolifyAppRequestPayload = {
11
+ contextCameraExid: string;
12
+ coolifyServiceId: string;
13
+ modelVersion: string;
14
+ startTime: string;
15
+ branchName: string;
16
+ snapshotRequestTimeout: string | number;
17
+ serverUuid: string;
18
+ useThirdParty: boolean;
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
+ };
@@ -490,13 +490,6 @@ export declare enum CountryCode {
490
490
  Zambia = "zm",
491
491
  Zimbabwe = "zw"
492
492
  }
493
- export declare enum Region {
494
- Apac = "apac",
495
- Emea = "emea",
496
- Us = "us",
497
- Latam = "latam",
498
- Na = "na"
499
- }
500
493
  export declare enum CameraRegion {
501
494
  APAC = "apac",
502
495
  AU = "au",
@@ -2,4 +2,5 @@ export type ApiCredentials = {
2
2
  apiKey?: string;
3
3
  apiId?: string;
4
4
  token?: string;
5
+ includeImage?: boolean;
5
6
  };
@@ -0,0 +1,120 @@
1
+ import { type BoundingBox, type ProjectExid, type CameraExid, type DateType, DetectionLabel, SegmentLabel, type TimelineDateInterval, TimelinePrecision, CameraDateRangeFilter } from "@evercam/api/types";
2
+ export type BaseDetectionsFilters = {
3
+ fromDate: string | Date;
4
+ toDate: string | Date;
5
+ labels: DetectionLabel | DetectionLabel[];
6
+ trackId?: number;
7
+ };
8
+ export type DetectionsFilters = BaseDetectionsFilters & {
9
+ projectExid: ProjectExid;
10
+ cameraExids?: CameraExid[];
11
+ };
12
+ export type SegmentsFilters = BaseDetectionsFilters & {
13
+ cameraExid: CameraExid;
14
+ };
15
+ export type BBox = number[];
16
+ export type Label = DetectionLabel | PpeLabel;
17
+ export type Detection = {
18
+ bbox: BBox;
19
+ timestamp: string | Date;
20
+ label: DetectionLabel;
21
+ confidenceScore: number;
22
+ };
23
+ export type DetectionsGroup = {
24
+ timestamp: DateType;
25
+ cameraExid: CameraExid;
26
+ trackings: Detection[];
27
+ };
28
+ export type DetectionsCounts = {
29
+ timestamps: number;
30
+ } & {
31
+ [label in Label]: number;
32
+ };
33
+ export type DetectionsCountsByPeriod = {
34
+ days: Array<{
35
+ day: string;
36
+ } & DetectionsCounts>;
37
+ months: Array<{
38
+ month: string;
39
+ } & DetectionsCounts>;
40
+ years: Array<{
41
+ year: string;
42
+ } & DetectionsCounts>;
43
+ };
44
+ export type Tracking = {
45
+ trackId: number;
46
+ fromDate: string | Date;
47
+ toDate: string | Date;
48
+ detections: Detection[];
49
+ };
50
+ export type TrackingLabel = string;
51
+ export type TrackingsByLabel = Record<TrackingLabel, Tracking[]>;
52
+ export type SegmentsByLabel = Record<SegmentLabel, Segment[]>;
53
+ export type SegmentPolygonCoords = number[][];
54
+ export type Segment = {
55
+ id: number;
56
+ mask?: SegmentPolygonCoords;
57
+ label: string;
58
+ timestamp: string | Date;
59
+ cameraExid?: CameraExid;
60
+ bbox?: BoundingBox;
61
+ area?: number;
62
+ };
63
+ export type SegmentSimilarityResult = {
64
+ distance: number;
65
+ segment: Segment;
66
+ };
67
+ export type SegmentsSimilaritySearchParams = {
68
+ cameraExid: CameraExid;
69
+ referenceId: string | number;
70
+ iouThreshold?: number;
71
+ fromDate: string;
72
+ toDate: string;
73
+ };
74
+ export type BaseCountsParams = {
75
+ fromDate?: string;
76
+ toDate?: string;
77
+ precision?: TimelinePrecision;
78
+ trackId?: number;
79
+ labels?: DetectionLabel | DetectionLabel[];
80
+ };
81
+ export type DetectionsCountsParams = BaseCountsParams & {
82
+ cameraExids?: CameraExid[];
83
+ projectExid?: ProjectExid;
84
+ modelId?: DetectionModel;
85
+ labels?: Label[];
86
+ excludeLabels?: Label[];
87
+ confidenceThreshold?: number;
88
+ mergedClasses?: string[];
89
+ };
90
+ export type SegmentsCountsParams = CameraDateRangeFilter & BaseCountsParams;
91
+ export type DetectionsPresenceByLabel = Record<DetectionLabel, TimelineDateInterval[]>;
92
+ export type DetectionsPresenceResponse = {
93
+ intervals: DetectionsPresenceByLabel;
94
+ };
95
+ export type SegmentsPresenceByLabel = Record<SegmentLabel, TimelineDateInterval[]>;
96
+ export type SegmentsPresenceResponse = {
97
+ intervals: SegmentsPresenceByLabel;
98
+ };
99
+ export type LuminanceReading = {
100
+ timestamp: string;
101
+ luminanceDelta: number;
102
+ luminanceAverage: number;
103
+ };
104
+ export declare enum PpeLabel {
105
+ Helmet = "helmet",
106
+ HighVisibilityVest = "high-visibility-vest",
107
+ SafetyGlasses = "safety-glasses",
108
+ Gloves = "gloves",
109
+ Person = "person",
110
+ Man = "man",
111
+ Woman = "woman"
112
+ }
113
+ export declare enum DetectionModel {
114
+ Yolov10 = 1,
115
+ Yolov11 = 2,
116
+ Yolov112 = 3,
117
+ GroundingDino = 4,
118
+ Owlv2 = 5,
119
+ PpeV2 = 6
120
+ }
@@ -0,0 +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
+ };
8
+ export type DroneModel = {
9
+ cesiumId: number;
10
+ cesiumId2D: number;
11
+ date: string;
12
+ cesiumPointCloudId: string;
13
+ cesiumGausianSplatId: string;
14
+ pointSize: string;
15
+ maximumScreenSpaceError: number;
16
+ link: string;
17
+ trueIndex: number;
18
+ };
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;
99
+ };
100
+ export declare enum DroneUrlParams {
101
+ Date = "date"
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
+ };
@@ -14,17 +14,34 @@ export declare enum ErrorType {
14
14
  UnhandledRejection = "UnhandledRejection",
15
15
  TypeError = "TypeError"
16
16
  }
17
+ export declare enum ErrorCode {
18
+ InternalServerError = 500,
19
+ BadGatewayError = 502,
20
+ ServiceUnavailableError = 503,
21
+ GatewayTimeoutError = 504,
22
+ BadRequestError = 400,
23
+ UnauthorizedError = 401,
24
+ ForbiddenError = 403,
25
+ NotFoundError = 404,
26
+ ConflictError = 409,
27
+ GoneError = 410,
28
+ TooManyRequestsError = 429,
29
+ UnprocessableEntityError = 422
30
+ }
17
31
  export declare enum EvercamApiErrorCode {
32
+ IntegrationError = "INTEGRATION_ERROR",
18
33
  BadArgument = "BAD_ARGUMENT",
19
34
  DeviceError = "DEVICE_ERROR",
20
35
  UnsupportedOperation = "UNSUPPORTED_OPERATION",
21
36
  QuotaExceeded = "QUOTA_EXCEEDED",
22
37
  InvalidCredentials = "INVALID_CREDENTIALS",
38
+ InvalidToken = "INVALID_TOKEN",
23
39
  ProviderAuthFailure = "PROVIDER_AUTH_FAILURE",
24
40
  ProviderEmailRequired = "PROVIDER_EMAIL_REQUIRED",
25
41
  PasswordReset = "PASSWORD_RESET",
26
42
  RequireShareRequest = "REQUIRE_SHARE_REQUEST",
27
- Generic = "GENERIC"
43
+ Generic = "GENERIC",
44
+ VideoWallInUse = "VIDEO_WALL_IN_USE"
28
45
  }
29
46
  type _EvercamApiError = {
30
47
  code: EvercamApiErrorCode;
@@ -33,4 +50,17 @@ type _EvercamApiError = {
33
50
  innerError?: _EvercamApiError;
34
51
  };
35
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
+ };
36
66
  export {};