@evercam/api 1.0.0-b275917d0 → 1.0.0-b3c76d7c7

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 (147) hide show
  1. package/README.md +6 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +215 -0
  3. package/dist/api/api/adminApi.d.ts +381 -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 +365 -0
  12. package/dist/api/api/evercamLabsApi.d.ts +34 -0
  13. package/dist/api/{exNvrApi.d.ts → api/exNvrApi.d.ts} +1 -1
  14. package/dist/api/api/index.d.ts +14 -0
  15. package/dist/api/api/ingestApi.d.ts +161 -0
  16. package/dist/api/{ptzApi.d.ts → api/ptzApi.d.ts} +13 -4
  17. package/dist/api/api/videoWallApi.d.ts +9 -0
  18. package/dist/api/api/weatherApi.d.ts +9 -0
  19. package/dist/api/api/workflowsApi.d.ts +15 -0
  20. package/dist/api/index.d.ts +3 -13
  21. package/dist/api/types/360.d.ts +364 -0
  22. package/dist/api/types/aconex.d.ts +143 -0
  23. package/dist/api/types/admin.d.ts +51 -0
  24. package/dist/api/types/aiConfigs.d.ts +244 -0
  25. package/dist/{types → api/types}/analytics.d.ts +251 -121
  26. package/dist/{types → api/types}/anpr.d.ts +64 -19
  27. package/dist/{types → api/types}/auditLogs.d.ts +20 -5
  28. package/dist/api/types/authz.d.ts +132 -0
  29. package/dist/{types → api/types}/autodesk.d.ts +7 -7
  30. package/dist/api/types/automation.d.ts +123 -0
  31. package/dist/{types → api/types}/axios.d.ts +32 -12
  32. package/dist/{types → api/types}/bim.d.ts +39 -10
  33. package/dist/{types → api/types}/camera.d.ts +145 -166
  34. package/dist/api/types/comments.d.ts +64 -0
  35. package/dist/api/types/company.d.ts +114 -0
  36. package/dist/{types → api/types}/compare.d.ts +21 -6
  37. package/dist/api/types/connector.d.ts +21 -0
  38. package/dist/api/types/coolify.d.ts +36 -0
  39. package/dist/{types → api/types}/countries.d.ts +0 -7
  40. package/dist/{types → api/types}/credentials.d.ts +1 -0
  41. package/dist/api/types/detections.d.ts +117 -0
  42. package/dist/api/types/drone.d.ts +106 -0
  43. package/dist/{types → api/types}/errors.d.ts +29 -1
  44. package/dist/{types → api/types}/gateReport.d.ts +49 -168
  45. package/dist/api/types/gateReportManagement.d.ts +170 -0
  46. package/dist/api/types/hammertech.d.ts +98 -0
  47. package/dist/api/types/hdd.d.ts +88 -0
  48. package/dist/{types → api/types}/index.d.ts +25 -5
  49. package/dist/api/types/ingest.d.ts +234 -0
  50. package/dist/{types → api/types}/kit.d.ts +132 -101
  51. package/dist/api/types/map.d.ts +16 -0
  52. package/dist/{types → api/types}/media.d.ts +9 -3
  53. package/dist/api/types/notification.d.ts +107 -0
  54. package/dist/{types → api/types}/nvr.d.ts +2 -1
  55. package/dist/api/types/oauth.d.ts +62 -0
  56. package/dist/api/types/observationEvents.d.ts +141 -0
  57. package/dist/api/types/observations.d.ts +84 -0
  58. package/dist/api/types/planner.d.ts +125 -0
  59. package/dist/api/types/posthog.d.ts +53 -0
  60. package/dist/api/types/procore.d.ts +229 -0
  61. package/dist/{types → api/types}/progressPhoto.d.ts +11 -23
  62. package/dist/api/types/project.d.ts +259 -0
  63. package/dist/{types → api/types}/recording.d.ts +10 -16
  64. package/dist/api/types/recycleBin.d.ts +14 -0
  65. package/dist/api/types/ring.d.ts +53 -0
  66. package/dist/{types → api/types}/roi.d.ts +2 -9
  67. package/dist/{types → api/types}/routeParams.d.ts +5 -2
  68. package/dist/{types → api/types}/router.d.ts +20 -1
  69. package/dist/{types → api/types}/shared.d.ts +31 -40
  70. package/dist/api/types/shares.d.ts +45 -0
  71. package/dist/{types → api/types}/sim.d.ts +6 -6
  72. package/dist/api/types/siteAnalytics.d.ts +285 -0
  73. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  74. package/dist/api/types/siteView.d.ts +78 -0
  75. package/dist/api/types/smartSeach.d.ts +5 -0
  76. package/dist/api/types/snapshots.d.ts +104 -0
  77. package/dist/api/types/socket.d.ts +4 -0
  78. package/dist/api/types/sso.d.ts +55 -0
  79. package/dist/api/types/storageProvider.d.ts +19 -0
  80. package/dist/api/types/storyblok.d.ts +27 -0
  81. package/dist/api/types/streaming.d.ts +97 -0
  82. package/dist/api/types/systemCheck.d.ts +11 -0
  83. package/dist/api/types/tag.d.ts +12 -0
  84. package/dist/api/types/time.d.ts +7 -0
  85. package/dist/{types → api/types}/timelapse.d.ts +22 -11
  86. package/dist/{types → api/types}/user.d.ts +121 -40
  87. package/dist/api/types/videoWall.d.ts +66 -0
  88. package/dist/api/types/weather.d.ts +153 -0
  89. package/dist/{types → api/types}/widget.d.ts +103 -20
  90. package/dist/api/types/workflows.d.ts +108 -0
  91. package/dist/api/types/xweather.d.ts +12 -0
  92. package/dist/{utils.d.ts → api/utils.d.ts} +1 -0
  93. package/dist/index.d.ts +2 -3
  94. package/dist/index.js +3118 -1099
  95. package/dist/index.js.map +1 -1
  96. package/dist/index.umd.cjs +1 -1
  97. package/dist/index.umd.cjs.map +1 -1
  98. package/dist/shared/api/index.d.ts +3 -0
  99. package/dist/shared/components/timelinePlayer/providers/index.d.ts +3 -0
  100. package/dist/shared/components/timelinePlayer/providers/timelineAnprProvider.d.ts +17 -0
  101. package/dist/shared/components/timelinePlayer/providers/timelineDataProvider.d.ts +13 -0
  102. package/dist/shared/components/timelinePlayer/providers/timelineLuminanceProvider.d.ts +16 -0
  103. package/dist/shared/types/components.d.ts +512 -0
  104. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  105. package/dist/shared/types/imagePlayer.d.ts +41 -0
  106. package/dist/shared/types/index.d.ts +7 -0
  107. package/dist/shared/types/observations.d.ts +25 -0
  108. package/dist/shared/types/rbac.d.ts +67 -0
  109. package/dist/shared/types/timeline.d.ts +10 -0
  110. package/package.json +10 -7
  111. package/dist/api/3dFirebaseApi.d.ts +0 -9
  112. package/dist/api/adminApi.d.ts +0 -289
  113. package/dist/api/aiApi.d.ts +0 -76
  114. package/dist/api/authzApi.d.ts +0 -21
  115. package/dist/api/evercamApi.d.ts +0 -266
  116. package/dist/api/evercamLabsApi.d.ts +0 -50
  117. package/dist/api/ingestApi.d.ts +0 -65
  118. package/dist/api/videoWallApi.d.ts +0 -9
  119. package/dist/api/weatherApi.d.ts +0 -25
  120. package/dist/types/360.d.ts +0 -83
  121. package/dist/types/aconex.d.ts +0 -45
  122. package/dist/types/automation.d.ts +0 -6
  123. package/dist/types/comments.d.ts +0 -36
  124. package/dist/types/company.d.ts +0 -46
  125. package/dist/types/connector.d.ts +0 -16
  126. package/dist/types/copilot.d.ts +0 -156
  127. package/dist/types/detections.d.ts +0 -70
  128. package/dist/types/devices.d.ts +0 -228
  129. package/dist/types/drone.d.ts +0 -17
  130. package/dist/types/ingest.d.ts +0 -43
  131. package/dist/types/map.d.ts +0 -4
  132. package/dist/types/notification.d.ts +0 -27
  133. package/dist/types/procore.d.ts +0 -76
  134. package/dist/types/project.d.ts +0 -120
  135. package/dist/types/shares.d.ts +0 -192
  136. package/dist/types/siteAnalytics.d.ts +0 -5
  137. package/dist/types/sitePlanner.d.ts +0 -23
  138. package/dist/types/snapshots.d.ts +0 -50
  139. package/dist/types/storageServers.d.ts +0 -4
  140. package/dist/types/streaming.d.ts +0 -119
  141. package/dist/types/time.d.ts +0 -19
  142. package/dist/types/vendorModel.d.ts +0 -15
  143. package/dist/types/videoWall.d.ts +0 -33
  144. package/dist/types/weather.d.ts +0 -83
  145. /package/dist/api/{client → api/client}/index.d.ts +0 -0
  146. /package/dist/api/{webRtcApi.d.ts → api/webRtcApi.d.ts} +0 -0
  147. /package/dist/{types → api/types}/voyageControl.d.ts +0 -0
@@ -1,120 +0,0 @@
1
- import { AdminCamera, Camera, CameraExid, DateTime, DateType, EntityByExid, Exid, PaginationParams } from "@/types";
2
- export type ProjectExid = Exid;
3
- export type ProjectsByExid = EntityByExid<Project>;
4
- export type Project = {
5
- id: string | number;
6
- exid: ProjectExid;
7
- name: string;
8
- status?: ProjectStatus;
9
- insertedAt?: string;
10
- startedAt?: string;
11
- timezone?: string;
12
- zohoId?: string;
13
- cameras?: Array<Camera | AdminCamera>;
14
- featureFlags: Array<ProjectFeatureFlag>;
15
- owner?: {
16
- email?: string;
17
- };
18
- };
19
- export declare enum ProjectStatus {
20
- ToStart = "To Start",
21
- InProgress = "In Progress",
22
- Completed = "Completed",
23
- NotAplicable = "Not Applicable"
24
- }
25
- export declare enum ProjectArchiveTier {
26
- Full = "Full",
27
- Partial = "Partial",
28
- Minimal = "Minimal",
29
- ScheduledForDeletion = "Scheduled for Deletion"
30
- }
31
- export type ProjectResponsePayload = {
32
- data?: Project[];
33
- };
34
- export type Logo = {
35
- name: string;
36
- url: string;
37
- };
38
- export type ProjectLogoResponsePayload = Logo[];
39
- export declare enum ProjectFeatureFlag {
40
- AnprLegacy = "anpr_legacy",
41
- DroneView = "drone_view",
42
- Bim = "4d_bim",
43
- BimItwin = "4d_bim_itwin",
44
- BimForge = "4d_bim_forge",
45
- ThreeSixtyView = "360_view",
46
- NdaMc = "NDA/MC",
47
- GateReport = "gate_report",
48
- GateReportAutoVerify = "auto_publish",
49
- GateReportMotionDetection = "motion_detection",
50
- FullEmpty = "full_empty",
51
- MediaHubSharing = "archives_sharing",
52
- GateReportAnprBased = "anpr_sourced",
53
- NoLicensePlate = "no_license_plate",
54
- DefaultToProjectApp = "default_to_project_app",
55
- Go = "evercam_go"
56
- }
57
- export type ProjectBatteryReading = {
58
- exid: number;
59
- voltage: number;
60
- lastSeen: DateType;
61
- };
62
- export type ThumbnailData = {
63
- cameraExid: CameraExid;
64
- custom: boolean;
65
- image: string;
66
- };
67
- export type ProjectsQueryParams = PaginationParams & {
68
- name: string;
69
- exid: string;
70
- status: ProjectStatus;
71
- cameras: string;
72
- featureFlags: Array<ProjectFeatureFlag>;
73
- archived: string;
74
- };
75
- export type ProjectCreateRequestPayload = {
76
- projectExid?: string;
77
- projectName: string;
78
- ownerId: number;
79
- cameras: string[];
80
- };
81
- export type ProjectCreateResponse = {
82
- name: string;
83
- exid: string;
84
- id: number;
85
- userId: number;
86
- zohoId: string;
87
- };
88
- export type ProjectUpdateRequestPayload = {
89
- name: string;
90
- timezone: string;
91
- featureFlags: ProjectFeatureFlag[];
92
- cameras: string[];
93
- };
94
- export type ProjectStatusStats = {
95
- nil: number;
96
- Completed: number;
97
- "In Progress": number;
98
- "Not Applicable": number;
99
- "To Start": number;
100
- };
101
- export type ProjectUserProperty = {
102
- active: boolean;
103
- activeOneMonth: boolean;
104
- cameraExid: string;
105
- cameraName: string;
106
- cameraRights: string;
107
- email: string;
108
- eventsCount: number;
109
- fullname: string;
110
- id: number;
111
- lastSeenAt: DateTime;
112
- persona: string;
113
- };
114
- export type ProjectUsers = {
115
- cameras: {
116
- exid: string;
117
- name: string;
118
- }[];
119
- users: Record<string, ProjectUserProperty[]>;
120
- };
@@ -1,192 +0,0 @@
1
- import type { CameraExid, DateTime, DateType } from "@/types";
2
- export type ShareRequest = {
3
- cameraId: string;
4
- createdAt: DateType | number;
5
- email: string;
6
- id: number;
7
- rights: string;
8
- sharerEmail: string;
9
- sharerName: string;
10
- userId: number;
11
- };
12
- export type Share = {
13
- cameraId: string;
14
- createdAt: DateType | number;
15
- email: string;
16
- fullname: string;
17
- id: number;
18
- lastSeenAt: DateType;
19
- rights: string;
20
- sessionCount: number;
21
- sharerEmail: string;
22
- sharerId: number;
23
- sharerName: string;
24
- userId: number;
25
- };
26
- export type ShareRequestsResponsePayload = {
27
- shareRequests: ShareRequest[];
28
- };
29
- export type ShareOwner = {
30
- email: string;
31
- fullname: string;
32
- lastSeenAt: DateType;
33
- sessionCount: number;
34
- };
35
- export type SharesResponsePayload = {
36
- owner: ShareOwner;
37
- shares: Share[];
38
- };
39
- export type ShareDeletionRequestPayload = {
40
- email?: string;
41
- key?: string;
42
- origin?: string;
43
- };
44
- export type SharedUsersResponsePayload = Array<{
45
- email: string;
46
- name: string;
47
- }>;
48
- export type ShareCreateRequestPayload = {
49
- email: string[] | string;
50
- message?: string;
51
- permission?: string;
52
- rights: string;
53
- apiId?: string;
54
- apiKey?: string;
55
- };
56
- export type ShareProjectCamerasRequestPayload = {
57
- email: string[];
58
- cameraExids: CameraExid[];
59
- message: string;
60
- permission?: string;
61
- rights: string;
62
- };
63
- export type ShareCreateResponsePayload = {
64
- shares: Share[];
65
- shareRequests: ShareRequest[];
66
- };
67
- export type ShareRequestByKeyResponsePayload = {
68
- shareRequests: Array<{
69
- id: string;
70
- email: string;
71
- rights: string;
72
- cameraId: string;
73
- sharerName: string;
74
- userId: string;
75
- sharerEmail: string;
76
- createdAt: DateType;
77
- }>;
78
- };
79
- export type ResendShareRequestPayload = {
80
- email: string;
81
- apiId?: string;
82
- apiKey?: string;
83
- };
84
- export declare enum SharePermission {
85
- Minimum = "minimum",
86
- Share = "minimal+share",
87
- Full = "full",
88
- Custom = "custom"
89
- }
90
- export declare enum ShareType {
91
- Share = "share",
92
- Request = "request"
93
- }
94
- export declare enum ShareRequestStatus {
95
- All = "",
96
- Pending = -1,
97
- Cancelled = -2,
98
- Failed = -3,
99
- Used = 1
100
- }
101
- export declare enum ShareVisibility {
102
- PublicDiscoverable = "publicDiscoverable",
103
- PublicUndiscoverable = "publicUndiscoverable",
104
- Private = "private"
105
- }
106
- export type ProjectShare = {
107
- id: number;
108
- projectId: string;
109
- userId: number;
110
- email: string;
111
- fullname: string;
112
- sharerId: number;
113
- sharerEmail: string;
114
- sharerName: string;
115
- role: "member" | "admin";
116
- cameras: Record<string, string>;
117
- message: string | null;
118
- updatedAt: DateType;
119
- insertedAt: DateType;
120
- };
121
- export type ProjectShareRequest = ProjectShare;
122
- export type ProjectShareResponse = {
123
- projectShares: ProjectShare[];
124
- projectShareRequests: ProjectShareRequest[];
125
- };
126
- export type AdminShare = {
127
- sharerId: number;
128
- sharerFullname: string;
129
- sharerApiId: string;
130
- sharerApiKey: string;
131
- shareeId: number;
132
- shareeFullname: string;
133
- shareeApiId: string;
134
- shareeApiKey: string;
135
- shareeEmail: string;
136
- cameraId: number;
137
- exid: string;
138
- projectId: string;
139
- name: string;
140
- id: number;
141
- message: string;
142
- createdAt: DateType;
143
- };
144
- export type CameraShareRequestPayload = {
145
- email: string[];
146
- rights: string;
147
- message?: string;
148
- };
149
- export type ShareQueryParams = {
150
- exid: string;
151
- sharerFullname: string;
152
- shareeFullname: string;
153
- shareeEmail: string;
154
- };
155
- export type CameraShare = {
156
- sharerId: number;
157
- sharerFullname: string;
158
- sharerApiId: string;
159
- sharerApiKey: string;
160
- shareeId: number;
161
- shareeFullname: string;
162
- shareeApiId: string;
163
- shareeApiKey: string;
164
- shareeEmail: string;
165
- cameraId: number;
166
- exid: string;
167
- projectId: string;
168
- name: string;
169
- id: number;
170
- message: string;
171
- createdAt: DateTime;
172
- };
173
- export type CameraShareRequestsQueryParams = {
174
- shareeEmail: string;
175
- camera: string;
176
- sharer: string;
177
- status: string;
178
- };
179
- export type CameraShareRequest = {
180
- id: number;
181
- shareeEmail: string;
182
- camera: string;
183
- sharer: string;
184
- message: number;
185
- rights: string;
186
- status: number;
187
- projectId: string;
188
- cameraExid: string;
189
- apiId: string;
190
- apiKey: number;
191
- createdAt: DateTime;
192
- };
@@ -1,5 +0,0 @@
1
- export declare enum SiteAnalyticsMode {
2
- Cranes = "cranes",
3
- Detections = "detections",
4
- Segments = "segments"
5
- }
@@ -1,23 +0,0 @@
1
- export declare enum EMapTypes {
2
- Blank = "Blank",
3
- Satellite = "Satellite",
4
- Street = "Street",
5
- GoogleSatellite = "hybrid",
6
- GoogleStreet = "roadmap"
7
- }
8
- export declare enum EPageType {
9
- List = "list",
10
- Item = "item"
11
- }
12
- export declare enum EPaths {
13
- Home = "/",
14
- Session = "/session"
15
- }
16
- export declare enum EProjectItems {
17
- Camera = "camera",
18
- Overlay = "overlay"
19
- }
20
- export declare enum ERoles {
21
- Admin = "admin",
22
- User = "user"
23
- }
@@ -1,50 +0,0 @@
1
- import { CameraExid, DateType, PaginationParams, Schedule } from "@/types";
2
- export type SnapshotExtractionQyeryParams = PaginationParams & {
3
- camera: string;
4
- cameraExid: CameraExid;
5
- status: SnapshotExtractionStatus;
6
- };
7
- export declare enum SnapshotExtractionStatus {
8
- Completed = "completed",
9
- Failed = "failed",
10
- Processing = "processing"
11
- }
12
- export declare enum SnapshotExtractionType {
13
- Cloud = "cloud",
14
- Local = "local",
15
- Timelapse = "timelapse"
16
- }
17
- export type SnapshotExtraction = {
18
- id: number;
19
- cameraId: number;
20
- cameraExid: CameraExid;
21
- cameraName: string;
22
- fromDate: DateType;
23
- toDate: DateType;
24
- type: SnapshotExtractionType;
25
- notes: string;
26
- status: SnapshotExtractionStatus;
27
- interval: number;
28
- requestor: string;
29
- jpegsToDropbox: boolean;
30
- injectTo_cr: Boolean;
31
- schedule: Schedule;
32
- created_at: DateType;
33
- };
34
- export type SnapshotTestPayload = {
35
- cameraExid?: CameraExid;
36
- camUsername: string;
37
- camPassword: string;
38
- externalUrl: string;
39
- jpgUrl: string;
40
- };
41
- export type SnapshotTestResponse = {
42
- status: string;
43
- data: string;
44
- };
45
- export type DeleteSnapshotQueryParams = {
46
- fromDate: DateType;
47
- toDate: DateType;
48
- adminEmail: string;
49
- adminFullname: string;
50
- };
@@ -1,4 +0,0 @@
1
- export type StorageServer = string;
2
- export type StorageServersResponsePayload = {
3
- servers: StorageServer[];
4
- };
@@ -1,119 +0,0 @@
1
- import { MilesightCameraNetworkConfiguration, MilesightCameraOsdConfiguration, MilesightCameraSdCardInfo, MilesightCameraSystemSettings, MilesightCameraTimeInfo, MilesightCameraVideoConfig, TaskStatus, DateTime_Z_micros, KitMetricData } from "@/types";
2
- export declare enum ExNvrHealthCheckTaskId {
3
- ExNvrLogin = "exNvrLogin",
4
- ExNvrConfigCheck = "exNvrGetDeviceInfo",
5
- ExNvrSystemStatus = "exNvrSystemStatus",
6
- ExNvrRecordings = "exNvrGetRecordings",
7
- CameraSystemConfigCheck = "getCameraSystemInfo",
8
- CameraTimeConfigCheck = "getCameraTimeInfo",
9
- CameraStreamsConfigCheck = "getCameraStreamsInfo",
10
- CameraNetworkConfigCheck = "getCameraNetworkInfo",
11
- CameraOsdConfigCheck = "getCameraOsdInfo",
12
- CameraStorageConfigCheck = "getCameraStorageInfo"
13
- }
14
- export type ExNvrHealthCheckTaskResult<T extends ExNvrHealthCheckTaskId> = T extends ExNvrHealthCheckTaskId.ExNvrLogin ? ExNvrLoginResponse : T extends ExNvrHealthCheckTaskId.ExNvrConfigCheck ? ExNvrDeviceConfig : T extends ExNvrHealthCheckTaskId.ExNvrSystemStatus ? ExNvrSystemStatus : T extends ExNvrHealthCheckTaskId.ExNvrRecordings ? ExNvrRecordingInterval[] : T extends ExNvrHealthCheckTaskId.CameraStreamsConfigCheck ? MilesightCameraVideoConfig : T extends ExNvrHealthCheckTaskId.CameraSystemConfigCheck ? MilesightCameraSystemSettings : T extends ExNvrHealthCheckTaskId.CameraTimeConfigCheck ? MilesightCameraTimeInfo : T extends ExNvrHealthCheckTaskId.CameraNetworkConfigCheck ? MilesightCameraNetworkConfiguration : T extends ExNvrHealthCheckTaskId.CameraOsdConfigCheck ? MilesightCameraOsdConfiguration : T extends ExNvrHealthCheckTaskId.CameraStorageConfigCheck ? MilesightCameraSdCardInfo : never;
15
- export type ExNvrHealthCheckTask<T extends ExNvrHealthCheckTaskId> = {
16
- id: T;
17
- status: TaskStatus;
18
- duration?: number;
19
- result?: ExNvrHealthCheckTaskResult<T>;
20
- error?: Error;
21
- };
22
- export type ExNvrLoginResponse = {
23
- accessToken: string;
24
- };
25
- export type ExNvrRecordingInterval = {
26
- active: boolean;
27
- startDate: DateTime_Z_micros;
28
- endDate: DateTime_Z_micros;
29
- };
30
- export type ExNvrDeviceConfig = {
31
- id: string;
32
- name: string;
33
- type: string;
34
- state: ExNvrDeviceState;
35
- credentials: {
36
- password: string;
37
- username: string;
38
- };
39
- mac: string;
40
- url: string;
41
- insertedAt: string;
42
- updatedAt: string;
43
- settings: {
44
- storageAddress: string;
45
- overrideOnFullDisk: boolean;
46
- overrideOnFullDiskThreshold: number;
47
- generateBif: boolean;
48
- };
49
- vendor: string;
50
- model: string;
51
- streamConfig: {
52
- filename: string | null;
53
- duration: string | null;
54
- temporaryPath: string | null;
55
- snapshotUri: string;
56
- streamUri: string;
57
- subStreamUri: string;
58
- };
59
- timezone: string;
60
- };
61
- export declare enum ExNvrFootageAvailableStatus {
62
- Active = "Active",
63
- NotActive = "Not Active",
64
- NotAvailable = "Not Available"
65
- }
66
- export declare enum ExNvrDeviceState {
67
- Recording = "recording",
68
- Failed = "failed",
69
- Stopped = "stopped"
70
- }
71
- export type ExNvrCpuStatus = {
72
- load: number[];
73
- numCores: number;
74
- };
75
- export type ExNvrMemoryStatus = {
76
- systemTotalMemory: number;
77
- freeMemory: number;
78
- totalMemory: number;
79
- bufferedMemory: number;
80
- cachedMemory: number;
81
- totalSwap: number;
82
- freeSwap: number;
83
- availableMemory: number;
84
- };
85
- export type ExNvrSolarChargerStatus = {
86
- v: number;
87
- vpv: number;
88
- ppv: number;
89
- i: number;
90
- il: number;
91
- load: string;
92
- relayState: string;
93
- offReason: number;
94
- h19: number;
95
- h20: number;
96
- h21: number;
97
- h22: number;
98
- h23: number;
99
- err: number;
100
- cs: string;
101
- fw: string;
102
- pid: string;
103
- serialNumber: string;
104
- };
105
- export type ExNvrSystemStatus = {
106
- version: string;
107
- cpu: ExNvrCpuStatus;
108
- memory: ExNvrMemoryStatus;
109
- solarCharger: ExNvrSolarChargerStatus;
110
- };
111
- export declare enum ExNvrMetricId {
112
- CpuLoad = "cpu_load",
113
- RamUsage = "ram_usage",
114
- SwapUsage = "swap_usage"
115
- }
116
- export type ExNvrMetric = KitMetricData & {
117
- metricId: ExNvrMetricId;
118
- value: number;
119
- };
@@ -1,19 +0,0 @@
1
- export type DateType = Date | string | number;
2
- type YYYY = number;
3
- type MM = number;
4
- type DD = number;
5
- type HH = number;
6
- type mm = number;
7
- type ss = number;
8
- type microS = number;
9
- export type Date_YYYY = `${YYYY}` | string;
10
- export type Date_YYYY_MM = `${YYYY}-${MM}` | string;
11
- export type Date_YYYY_MM_DD = `${YYYY}-${MM}-${DD}` | string;
12
- export type Time_HH_mm_ss = `${HH}:${mm}:${ss}` | string;
13
- export type Date_HH = `${HH}` | string;
14
- export type DateTime = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}` | string;
15
- export type DateTime_tz = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}${"+" | "-"}${HH}:${mm}` | string;
16
- export type DateTime_Z = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}Z` | string;
17
- export type DateTime_Z_micros = `${Date_YYYY_MM_DD}T${Time_HH_mm_ss}.${microS}Z` | string;
18
- export type DateTimeSpaceSeparated = `${Date_YYYY_MM_DD} ${Time_HH_mm_ss}` | string;
19
- export {};
@@ -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
- };
@@ -1,33 +0,0 @@
1
- import { Camera, Media } from "@/types";
2
- export declare enum VideoWallItemType {
3
- LiveView = "live",
4
- Video = "video",
5
- Image = "image"
6
- }
7
- export type VideoWallItem<T extends Camera | Media> = {
8
- value: T;
9
- type: VideoWallItemType;
10
- };
11
- export type VideoWallPresetItemConfig = {
12
- camera: Camera;
13
- h: number;
14
- i: string | number;
15
- moved: boolean;
16
- w: number;
17
- x: number;
18
- y: number;
19
- };
20
- export type VideoWallPreset = {
21
- name?: string;
22
- configuration: Array<VideoWallPresetItemConfig>;
23
- };
24
- export type VideoWallPresetItem = {
25
- i: string | number;
26
- x: number;
27
- y: number;
28
- w: number;
29
- h: number;
30
- camera: Camera;
31
- weather?: Record<string, unknown>;
32
- media?: Media;
33
- };
@@ -1,83 +0,0 @@
1
- import { Date_YYYY_MM_DD, DateType } from "@/types/time";
2
- export type HistoryWeatherRequestPayload = {
3
- day: string;
4
- };
5
- export type WeatherResponsePayload = Array<{
6
- hour?: number;
7
- temp?: number;
8
- clouds?: number;
9
- feelsLike?: number;
10
- pressure?: number;
11
- humidity?: number;
12
- windSpeed?: number;
13
- windDegree?: number;
14
- weather?: [WeatherSummary];
15
- rain?: HourlyReading;
16
- snow?: HourlyReading;
17
- }>;
18
- export type WeatherSummary = {
19
- id?: number;
20
- main?: string;
21
- description?: string;
22
- icon?: string;
23
- };
24
- export type HourlyReading = {
25
- "1h"?: number;
26
- "3h"?: number;
27
- };
28
- export declare enum WeatherProvider {
29
- WeatherStack = "WeatherStack",
30
- AerisWeather = "AerisWeather"
31
- }
32
- export type Weatherstatus = {
33
- description: string;
34
- hour: DateType;
35
- id: number;
36
- temp: number;
37
- };
38
- export type WeatherDataResponse = {
39
- minFeelsLike: number;
40
- id: number;
41
- sunhour: number;
42
- maxFeelsLike: number;
43
- minWindchill: number;
44
- minPressure: number;
45
- minWindDegree: number;
46
- minDewpoint: number;
47
- maxClouds: number;
48
- maxWindgust: number;
49
- minWindSpeed: number;
50
- astro: {
51
- moonIllumination: number;
52
- moonPhase: string;
53
- moonrise: string;
54
- moonset: string;
55
- sunrise: string;
56
- sunset: string;
57
- };
58
- insertedAt: string;
59
- maxDewpoint: number;
60
- maxTemp: number;
61
- minClouds: number;
62
- weather: Weatherstatus[];
63
- minHeatindex: number;
64
- minPrecip: number;
65
- maxWindDegree: number;
66
- maxUvIndex: number;
67
- minHumidity: number;
68
- maxWindSpeed: number;
69
- minWindgust: number;
70
- updatedAt: DateType;
71
- maxPrecip: number;
72
- uvIndex: number;
73
- maxHeatindex: number;
74
- minTemp: number;
75
- date: Date_YYYY_MM_DD;
76
- totalsnow: number;
77
- maxPressure: number;
78
- maxWindchill: number;
79
- maxHumidity: number;
80
- avgtemp: number;
81
- projectId: number;
82
- minUvIndex: number;
83
- };
File without changes
File without changes
File without changes