@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,127 @@
1
+ import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
2
+ export declare enum VisionProvider {
3
+ Gemini = "gemini",
4
+ Gemma = "gemma"
5
+ }
6
+ export declare const VISION_PROVIDER_OPTIONS: {
7
+ text: string;
8
+ value: VisionProvider;
9
+ }[];
10
+ export type SiteAnalyticsCoolifyStatus = {
11
+ appUuid: string | null;
12
+ name: string | null;
13
+ serverUuid: string | null;
14
+ serverName: string | null;
15
+ appUrl: string | null;
16
+ status: string | null;
17
+ isRunning: boolean;
18
+ updatedAt: string | null;
19
+ };
20
+ export type SiteAnalyticsProjectMeta = {
21
+ exid: ProjectExid;
22
+ name: string | null;
23
+ timezone: string | null;
24
+ featureFlags: string[] | null;
25
+ };
26
+ export type SiteAnalyticsCameraMeta = {
27
+ exid: CameraExid;
28
+ name: string | null;
29
+ status: string | null;
30
+ featureFlags: string[] | null;
31
+ };
32
+ export type SiteAnalyticsManagedApp = {
33
+ id: number;
34
+ projectExid: ProjectExid;
35
+ cameraExid: CameraExid;
36
+ coolifyAppId: string | null;
37
+ appVersion: string;
38
+ modelId: number | null;
39
+ startDate: DateType | null;
40
+ endDate: DateType | null;
41
+ startHour: number;
42
+ endHour: number;
43
+ source: string;
44
+ override: boolean;
45
+ timeIncreaseFrequency: number;
46
+ skipWeekends: boolean;
47
+ tracking: boolean;
48
+ observations: boolean;
49
+ visionProvider?: VisionProvider | null;
50
+ insertedAt: DateType | null;
51
+ updatedAt: DateType | null;
52
+ coolify: SiteAnalyticsCoolifyStatus | null;
53
+ project: SiteAnalyticsProjectMeta | null;
54
+ camera: SiteAnalyticsCameraMeta | null;
55
+ lastTrackingAt: DateType | null;
56
+ };
57
+ export type CreateSiteAnalyticsAppPayload = {
58
+ projectExid: ProjectExid;
59
+ cameraExid: CameraExid;
60
+ coolifyServerUuid: string;
61
+ appVersion?: string;
62
+ modelId?: number | null;
63
+ startDate?: DateType | null;
64
+ endDate?: DateType | null;
65
+ startHour?: number;
66
+ endHour?: number;
67
+ source?: string;
68
+ override?: boolean;
69
+ skipWeekends?: boolean;
70
+ timeIncreaseFrequency?: number;
71
+ tracking?: boolean;
72
+ observations?: boolean;
73
+ observationPromptId?: number | null;
74
+ visionProvider?: VisionProvider;
75
+ };
76
+ export type UpdateSiteAnalyticsAppPayload = Partial<Omit<CreateSiteAnalyticsAppPayload, "projectExid" | "cameraExid" | "coolifyServerUuid">>;
77
+ export type ModelOption = {
78
+ modelId: number;
79
+ version: string;
80
+ };
81
+ export type SiteAnalyticsAppConfigFormValue = {
82
+ appVersion: string;
83
+ modelId: number | null;
84
+ startDate: string | null;
85
+ endDate: string | null;
86
+ startHour: number;
87
+ endHour: number;
88
+ source: string;
89
+ override: boolean;
90
+ timeIncreaseFrequency: number;
91
+ skipWeekends: boolean;
92
+ };
93
+ export type SiteAnalyticsManagementListParams = PaginationParams & {
94
+ projectExid?: ProjectExid;
95
+ includeStatus?: boolean;
96
+ };
97
+ export type CreateSiteAnalyticsAppResponse = {
98
+ created: boolean;
99
+ id: number | null;
100
+ data: SiteAnalyticsManagedApp | null;
101
+ count: number | null;
102
+ message: string;
103
+ };
104
+ export type DeleteSiteAnalyticsAppResponse = {
105
+ deleted: boolean;
106
+ count: number;
107
+ message: string;
108
+ };
109
+ export type ObservationConfigActivity = {
110
+ observationTypeId: number;
111
+ every: number | null;
112
+ };
113
+ export type ObservationConfig = {
114
+ id: number;
115
+ cameraExid: CameraExid;
116
+ projectExid: ProjectExid | null;
117
+ enabled: boolean;
118
+ activities: ObservationConfigActivity[];
119
+ createdBy: string | null;
120
+ insertedAt: DateType | null;
121
+ updatedAt: DateType | null;
122
+ };
123
+ export type UpsertObservationConfigPayload = {
124
+ projectExid?: ProjectExid;
125
+ enabled: boolean;
126
+ activities: ObservationConfigActivity[];
127
+ };
@@ -0,0 +1,79 @@
1
+ import { ForgeView } from "@evercam/api/types/360";
2
+ import { Point2D, Point3D } from "@evercam/api/types/shared";
3
+ import { DroneProvider } from "@evercam/api/types/drone";
4
+ export declare enum SiteViewSoftwareType {
5
+ Revit = "Revit",
6
+ Navisworks = "Navisworks",
7
+ Drone = "Drone",
8
+ Synchro = "Synchro"
9
+ }
10
+ export declare enum SiteViewerType {
11
+ ITwin = "iTwin",
12
+ Cesium = "Cesium",
13
+ Forge = "Forge"
14
+ }
15
+ export type SiteViewCameraListItem = {
16
+ projectId: string;
17
+ projectName: string;
18
+ software: SiteViewSoftwareType;
19
+ type: SiteViewerType;
20
+ uniqueId: string;
21
+ integrationType?: DroneProvider;
22
+ };
23
+ export type ForgeUrn = {
24
+ id?: string;
25
+ displayName: string;
26
+ urn: string;
27
+ isModelHostedByEvercamACC?: boolean;
28
+ savedViews?: Record<string, ForgeView>;
29
+ };
30
+ export type ForgeAccAlignmentData = {
31
+ bbox: {
32
+ min: Point2D;
33
+ max: Point2D;
34
+ };
35
+ transform: number[];
36
+ coordinateSystem?: {
37
+ context?: {
38
+ type?: string;
39
+ };
40
+ } | null;
41
+ };
42
+ export type TimelineItem = {
43
+ taskNumber: number;
44
+ taskID: string;
45
+ actualStartDate: string;
46
+ actualEndDate: string;
47
+ plannedStartDate: string;
48
+ plannedEndDate: string;
49
+ objectIDs: number[];
50
+ };
51
+ export type ForgeMarkerTransform = {
52
+ position?: Point3D;
53
+ hidden?: boolean;
54
+ };
55
+ export type ForgeMarker = {
56
+ name: string;
57
+ cameraExid: string;
58
+ type: string;
59
+ transforms: Record<string, ForgeMarkerTransform>;
60
+ };
61
+ export type ForgeProjectData = {
62
+ urns?: ForgeUrn[];
63
+ accDrawingsAlignments?: Record<string, ForgeAccAlignmentData>;
64
+ timeline?: TimelineItem[];
65
+ cameraMarkers?: Record<string, ForgeMarker>;
66
+ };
67
+ export type ItwinModel = {
68
+ name: string;
69
+ iTwinId: string;
70
+ iModelId: string;
71
+ changeSetId?: string;
72
+ isIModel: boolean;
73
+ height?: number;
74
+ cesiumId?: number;
75
+ markerDistanceThreshold: number;
76
+ };
77
+ export type ItwinProjectData = {
78
+ models: ItwinModel[];
79
+ };
@@ -0,0 +1,5 @@
1
+ import { CameraExid } from "@evercam/api/types";
2
+ export type SmartSearchQueriesRequestPayload = {
3
+ camerasExid: CameraExid[];
4
+ name?: string;
5
+ };
@@ -0,0 +1,144 @@
1
+ import { CameraExid, DateType, PaginationParams, Schedule } from "@evercam/api/types";
2
+ export type SnapshotExtractionQueryParams = PaginationParams & {
3
+ camera: string;
4
+ cameraExid: CameraExid;
5
+ status: SnapshotExtractionStatus;
6
+ requestor: string;
7
+ type: SnapshotExtractionType;
8
+ from: string;
9
+ to: string;
10
+ };
11
+ export declare enum SnapshotExtractionStatus {
12
+ Cancelling = "canceling",
13
+ Cancelled = "cancelled",
14
+ Completed = "completed",
15
+ Failed = "failed",
16
+ Pending = "pending",
17
+ Processing = "processing"
18
+ }
19
+ export declare enum SnapshotExtractionType {
20
+ Cloud = "cloud",
21
+ Local = "local",
22
+ Timelapse = "timelapse"
23
+ }
24
+ export type SnapshotExtraction = {
25
+ id: number;
26
+ cameraId: number;
27
+ cameraExid: CameraExid;
28
+ cameraName: string;
29
+ fromDate: DateType;
30
+ toDate: DateType;
31
+ type: SnapshotExtractionType;
32
+ notes: string | null;
33
+ status: SnapshotExtractionStatus;
34
+ interval: number;
35
+ requestor: string | null;
36
+ jpegsToDropbox: boolean | null;
37
+ injectToCr: boolean | null;
38
+ schedule: Schedule;
39
+ createdAt: DateType;
40
+ jpegCount: number;
41
+ expectedCount: number;
42
+ uploadCounts: Record<string, number>;
43
+ obanJobId: number | null;
44
+ };
45
+ export type CreatedSnapshotExtraction = {
46
+ id: number;
47
+ cameraExid: CameraExid;
48
+ cameraName: string;
49
+ cameraTimezone: string;
50
+ fromDate: DateType;
51
+ toDate: DateType;
52
+ type: SnapshotExtractionType;
53
+ status: SnapshotExtractionStatus;
54
+ interval: number;
55
+ requestor: string | null;
56
+ schedule: Schedule;
57
+ createdAt: DateType;
58
+ updatedAt: DateType;
59
+ jpegCount: number;
60
+ expectedCount: number;
61
+ uploadCounts: Record<string, number>;
62
+ };
63
+ export type SnapshotExtractionCreatePayload = {
64
+ camera: string;
65
+ fromDate: DateType;
66
+ toDate: DateType;
67
+ schedule: Schedule | string;
68
+ interval: number;
69
+ jpegsToDropbox: boolean;
70
+ injectToCr: boolean;
71
+ requestor: string;
72
+ type: SnapshotExtractionType;
73
+ ignoreCasingFromParams?: string[];
74
+ };
75
+ export type SnapshotTestPayload = {
76
+ cameraExid?: CameraExid;
77
+ camUsername: string;
78
+ camPassword: string;
79
+ externalUrl: string;
80
+ jpgUrl: string;
81
+ model?: string | null;
82
+ };
83
+ export type SnapshotTestResponse = {
84
+ status: string;
85
+ data: string;
86
+ };
87
+ export type SnapshotEmailDeliveryRequestPayload = {
88
+ snapshot: string;
89
+ recipients?: string[];
90
+ message?: string;
91
+ };
92
+ export type SnapshotEmailDeliveryResponsePayload = {
93
+ warning?: string;
94
+ };
95
+ export type DeleteSnapshotQueryParams = {
96
+ fromDate: DateType;
97
+ toDate: DateType;
98
+ };
99
+ export type SnapshotTransfer = {
100
+ id: number;
101
+ sourceCamera: SnapshotTransferCamera;
102
+ targetCamera: SnapshotTransferCamera;
103
+ fromDate: DateType;
104
+ toDate: DateType;
105
+ overwriteExisting?: boolean | null;
106
+ deleteSource?: boolean | null;
107
+ requestor: SnapshotTransferRequestor;
108
+ status: SnapshotTransferStatus;
109
+ insertedAt: DateType;
110
+ attempts?: number | null;
111
+ errorMessage?: string | null;
112
+ snapshotsTransferred?: number | null;
113
+ };
114
+ export type SnapshotTransferCamera = {
115
+ id: number;
116
+ exid: CameraExid;
117
+ name: string;
118
+ };
119
+ export type SnapshotTransferRequestor = {
120
+ id: number;
121
+ email: string;
122
+ firstname: string;
123
+ lastname: string;
124
+ };
125
+ export declare enum SnapshotTransferStatus {
126
+ Completed = "completed",
127
+ Failed = "failed",
128
+ Processing = "processing",
129
+ Pending = "pending",
130
+ Cancelled = "cancelled"
131
+ }
132
+ export type TransferCloudRecordingsQueryParams = PaginationParams & {
133
+ targetCameraExid: CameraExid;
134
+ fromDate: DateType;
135
+ toDate: DateType;
136
+ overwriteExisting?: boolean;
137
+ deleteSource?: boolean;
138
+ };
139
+ export type SnapshotTransfersQueryParams = PaginationParams & {
140
+ sourceCamera?: string;
141
+ targetCamera?: string;
142
+ requestor?: string;
143
+ status?: string;
144
+ };
@@ -0,0 +1,4 @@
1
+ export type SocketAuthResponsePayload = {
2
+ wsToken: string;
3
+ expiresIn: number;
4
+ };
@@ -0,0 +1,29 @@
1
+ export type SsoUserInfoMappings = {
2
+ id: string;
3
+ email: string;
4
+ firstname: string;
5
+ lastname: string;
6
+ };
7
+ export type SsoProvider = {
8
+ id: number;
9
+ name: string;
10
+ exid: string;
11
+ clientId: string;
12
+ clientSecret: string;
13
+ scope: string;
14
+ responseType: string;
15
+ loginUrl: string;
16
+ iconUrl: string;
17
+ options: {
18
+ showOnLogin: boolean;
19
+ showOnSignup: boolean;
20
+ };
21
+ tokenUri: string;
22
+ tokenIntrospectionUri: string;
23
+ userInfoUri: string;
24
+ prompt: string;
25
+ userInfoMappings: SsoUserInfoMappings;
26
+ createdAt: string;
27
+ };
28
+ export type SsoUpdatePayload = Omit<SsoProvider, "id" | "createdAt">;
29
+ export type SsoCreatePayload = Omit<SsoProvider, "id" | "createdAt">;
@@ -0,0 +1,30 @@
1
+ import type { DateType } from "@evercam/api/types";
2
+ import type { CameraExid } from "@evercam/api/types/camera";
3
+ export type StorageProviderS3Config = {
4
+ bucket?: string;
5
+ accessKeyId?: string;
6
+ secretAccessKey?: string;
7
+ region?: string;
8
+ vendor?: string;
9
+ };
10
+ export type StorageProviderSeaweedfsConfig = {
11
+ jwtSigningKey?: string;
12
+ jwtReadSigningKey?: string;
13
+ };
14
+ export type StorageProviderConfig = StorageProviderS3Config & StorageProviderSeaweedfsConfig;
15
+ export type StorageProvider = {
16
+ id?: number;
17
+ cameraId: number | CameraExid;
18
+ type: string;
19
+ provider: string;
20
+ url: string;
21
+ startDate: DateType;
22
+ endDate: DateType;
23
+ config: StorageProviderConfig;
24
+ insertedAt?: DateType;
25
+ updatedAt?: DateType;
26
+ };
27
+ export declare enum ProjectStorageProvider {
28
+ Seaweedfs = "seaweedfs",
29
+ S3 = "s3"
30
+ }
@@ -0,0 +1,27 @@
1
+ import type { JsonObject, JsonValue } from "@evercam/api/types";
2
+ export type StoryblokStory<TContent extends JsonObject = JsonObject> = {
3
+ id: number;
4
+ uuid: string;
5
+ name: string;
6
+ slug: string;
7
+ fullSlug: string;
8
+ content: TContent;
9
+ createdAt: string;
10
+ publishedAt: string | null;
11
+ updatedAt: string;
12
+ position: number;
13
+ tagList: string[];
14
+ isStartpage: boolean;
15
+ parentId: number | null;
16
+ groupId: string;
17
+ firstPublishedAt: string | null;
18
+ releaseId: number | null;
19
+ lang: string;
20
+ path: string;
21
+ };
22
+ export type StoryblokResponse<TContent extends JsonObject = JsonObject> = {
23
+ story: StoryblokStory<TContent>;
24
+ cv: number;
25
+ rels: JsonValue[];
26
+ links: JsonValue[];
27
+ };
@@ -0,0 +1,97 @@
1
+ import { KitMetricData } from "@evercam/api/types";
2
+ export type ExNvrLoginResponse = {
3
+ accessToken: string;
4
+ };
5
+ export type ExNvrRecordingInterval = {
6
+ active: boolean;
7
+ startDate: string;
8
+ endDate: string;
9
+ };
10
+ export type ExNvrDeviceConfig = {
11
+ id: string;
12
+ name: string;
13
+ type: string;
14
+ state: ExNvrDeviceState;
15
+ credentials: {
16
+ password: string;
17
+ username: string;
18
+ };
19
+ mac: string;
20
+ url: string;
21
+ insertedAt: string;
22
+ updatedAt: string;
23
+ settings: {
24
+ storageAddress: string;
25
+ overrideOnFullDisk: boolean;
26
+ overrideOnFullDiskThreshold: number;
27
+ generateBif: boolean;
28
+ };
29
+ vendor: string;
30
+ model: string;
31
+ streamConfig: {
32
+ filename: string | null;
33
+ duration: string | null;
34
+ temporaryPath: string | null;
35
+ snapshotUri: string;
36
+ streamUri: string;
37
+ subStreamUri: string;
38
+ };
39
+ timezone: string;
40
+ };
41
+ export declare enum ExNvrFootageAvailableStatus {
42
+ Available = "Available",
43
+ NotAvailable = "Not Available"
44
+ }
45
+ export declare enum ExNvrDeviceState {
46
+ Recording = "recording",
47
+ Failed = "failed",
48
+ Stopped = "stopped"
49
+ }
50
+ export type ExNvrCpuStatus = {
51
+ load: number[];
52
+ numCores: number;
53
+ };
54
+ export type ExNvrMemoryStatus = {
55
+ systemTotalMemory: number;
56
+ freeMemory: number;
57
+ totalMemory: number;
58
+ bufferedMemory: number;
59
+ cachedMemory: number;
60
+ totalSwap: number;
61
+ freeSwap: number;
62
+ availableMemory: number;
63
+ };
64
+ export type ExNvrSolarChargerStatus = {
65
+ v: number;
66
+ vpv: number;
67
+ ppv: number;
68
+ i: number;
69
+ il: number;
70
+ load: string;
71
+ relayState: string;
72
+ offReason: number;
73
+ h19: number;
74
+ h20: number;
75
+ h21: number;
76
+ h22: number;
77
+ h23: number;
78
+ err: number;
79
+ cs: string;
80
+ fw: string;
81
+ pid: string;
82
+ serialNumber: string;
83
+ };
84
+ export type ExNvrSystemStatus = {
85
+ version: string;
86
+ cpu: ExNvrCpuStatus;
87
+ memory: ExNvrMemoryStatus;
88
+ solarCharger: ExNvrSolarChargerStatus;
89
+ };
90
+ export declare enum ExNvrMetricId {
91
+ CpuLoad = "cpu_load",
92
+ RamUsage = "ram_usage"
93
+ }
94
+ export type ExNvrMetric = KitMetricData & {
95
+ metricId: ExNvrMetricId;
96
+ value: number;
97
+ };
@@ -0,0 +1,11 @@
1
+ export declare enum PerformanceStatus {
2
+ Pending = "pending",
3
+ Done = "done"
4
+ }
5
+ export declare enum WebGLExtensions {
6
+ OESTextureFloat = "OES_texture_float",
7
+ EXTFloatBlend = "EXT_float_blend",
8
+ EXTTextureFilterAnisotropic = "EXT_texture_filter_anisotropic",
9
+ OESElementIndexUint = "OES_element_index_uint",
10
+ WEBGLDebugRendererInfo = "WEBGL_debug_renderer_info"
11
+ }
@@ -0,0 +1,12 @@
1
+ import { Kit } from "@evercam/api/types/kit";
2
+ export type Tag<T = string> = {
3
+ id?: number;
4
+ name: T;
5
+ description?: string;
6
+ createdAt?: string;
7
+ updatedAt?: string;
8
+ };
9
+ export type KitTag = {
10
+ kit: Kit;
11
+ tag: Tag;
12
+ };
@@ -0,0 +1,7 @@
1
+ import { Moment } from "moment-timezone";
2
+ export type DateType = Date | string | number;
3
+ export type ExtendedDateType = Moment | DateType;
4
+ export type DateRangeFilter = {
5
+ fromDate: DateType;
6
+ toDate: DateType;
7
+ };
@@ -1,4 +1,4 @@
1
- import { DateType, Schedule } from "@/types";
1
+ import { Point2D, Schedule } from "@evercam/api/types";
2
2
  export declare enum TimelapseStatus {
3
3
  Pending = 11,
4
4
  Completed = 5,
@@ -7,7 +7,8 @@ export declare enum TimelapseStatus {
7
7
  export declare enum TimelapseDuration {
8
8
  ThirtySeconds = 30,
9
9
  SixtySeconds = 60,
10
- NintySeconds = 90
10
+ NintySeconds = 90,
11
+ TwoMinutes = 120
11
12
  }
12
13
  export type TimelapseVideoOptions = {
13
14
  width?: number;
@@ -15,15 +16,24 @@ export type TimelapseVideoOptions = {
15
16
  removeTimestamp: boolean;
16
17
  smoothTransition: boolean;
17
18
  evercamWatermark: boolean;
19
+ sectionBlur?: boolean;
20
+ timestampPosition?: TimestampPositionCoordinates;
21
+ blurRegions?: BlurRegionCoordinates[];
18
22
  };
23
+ export type TimestampPositionCoordinates = {
24
+ x: number;
25
+ y: number;
26
+ w: number;
27
+ h: number;
28
+ };
29
+ export type BlurRegionCoordinates = Point2D[];
19
30
  export type TimelapseLogoOptions = {
20
- id: number;
31
+ id?: number;
21
32
  x: number;
22
33
  y: number;
23
34
  width: number;
24
35
  height: number;
25
36
  };
26
- export type TimelapseSchedules = string | Schedule;
27
37
  export declare enum TimelapseScheduleType {
28
38
  Continuous = "continuous",
29
39
  WorkingHours = "workingHours",
@@ -36,13 +46,14 @@ export declare enum TimelapsePeriod {
36
46
  WholeProject = "whole_project",
37
47
  Custom = "custom"
38
48
  }
39
- export type TimelapseFilterQueryParams = {
40
- from?: DateType;
41
- to?: DateType;
42
- period?: TimelapsePeriod;
43
- duration?: number;
44
- schedule?: TimelapseSchedules;
45
- };
49
+ export declare enum TimelapseType {
50
+ Hour = "hour",
51
+ Day = "day",
52
+ Week = "week",
53
+ Month = "month",
54
+ Year = "year",
55
+ FullProject = "full_project"
56
+ }
46
57
  export type TimelapseCreationRequestPayload = {
47
58
  title: string;
48
59
  duration: number;