@evercam/api 1.0.0-ea5c7d976 → 1.0.0-eb137e485

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 +4 -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 +1 -1
  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 +353 -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} +12 -3
  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 +265 -96
  26. package/dist/{types → api/types}/anpr.d.ts +57 -13
  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 -11
  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 +51 -169
  47. package/dist/api/types/gateReportManagement.d.ts +170 -0
  48. package/dist/api/types/hammertech.d.ts +98 -0
  49. package/dist/{types → api/types}/hdd.d.ts +27 -2
  50. package/dist/{types → api/types}/index.d.ts +23 -4
  51. package/dist/api/types/ingest.d.ts +314 -0
  52. package/dist/{types → api/types}/kit.d.ts +170 -108
  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 -36
  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 +80 -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/{types → api/types}/streaming.d.ts +4 -25
  85. package/dist/api/types/systemCheck.d.ts +11 -0
  86. package/dist/{types → api/types}/tag.d.ts +1 -1
  87. package/dist/api/types/time.d.ts +7 -0
  88. package/dist/{types → api/types}/timelapse.d.ts +7 -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 +108 -19
  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 +3174 -1147
  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 +7 -4
  117. package/dist/api/3dFirebaseApi.d.ts +0 -9
  118. package/dist/api/adminApi.d.ts +0 -313
  119. package/dist/api/aiApi.d.ts +0 -110
  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 -46
  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 -27
  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 -565
  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/coolify.d.ts +0 -18
  135. package/dist/types/copilot.d.ts +0 -157
  136. package/dist/types/detections.d.ts +0 -76
  137. package/dist/types/devices.d.ts +0 -228
  138. package/dist/types/drone.d.ts +0 -17
  139. package/dist/types/ingest.d.ts +0 -43
  140. package/dist/types/map.d.ts +0 -4
  141. package/dist/types/notification.d.ts +0 -27
  142. package/dist/types/nvr.d.ts +0 -36
  143. package/dist/types/planner.d.ts +0 -28
  144. package/dist/types/procore.d.ts +0 -76
  145. package/dist/types/project.d.ts +0 -119
  146. package/dist/types/shares.d.ts +0 -192
  147. package/dist/types/siteAnalytics.d.ts +0 -84
  148. package/dist/types/snapshots.d.ts +0 -50
  149. package/dist/types/storageServers.d.ts +0 -4
  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
@@ -2,14 +2,13 @@ export * from "./360";
2
2
  export * from "./aconex";
3
3
  export * from "./analytics";
4
4
  export * from "./anpr";
5
+ export * from "./admin";
5
6
  export * from "./media";
6
7
  export * from "./autodesk";
7
8
  export * from "./bim";
8
9
  export * from "./camera";
9
10
  export * from "./compare";
10
- export * from "./copilot";
11
11
  export * from "./credentials";
12
- export * from "./devices";
13
12
  export * from "./drone";
14
13
  export * from "./errors";
15
14
  export * from "./gateReport";
@@ -28,18 +27,21 @@ export * from "./routeParams";
28
27
  export * from "./router";
29
28
  export * from "./shares";
30
29
  export * from "./sim";
30
+ export * from "./systemCheck";
31
31
  export * from "./planner";
32
- export * from "./storageServers";
32
+ export * from "./storageProvider";
33
33
  export * from "./streaming";
34
+ export * from "./storyblok";
34
35
  export * from "./time";
35
36
  export * from "./timelapse";
36
37
  export * from "./user";
37
- export * from "./vendorModel";
38
38
  export * from "./videoWall";
39
39
  export * from "./voyageControl";
40
+ export * from "./hammertech";
40
41
  export * from "./weather";
41
42
  export * from "./comments";
42
43
  export * from "./detections";
44
+ export * from "./observations";
43
45
  export * from "./axios";
44
46
  export * from "./shared";
45
47
  export * from "./company";
@@ -47,8 +49,25 @@ export * from "./kit";
47
49
  export * from "./auditLogs";
48
50
  export * from "./snapshots";
49
51
  export * from "./siteAnalytics";
52
+ export * from "./siteAnalyticsManagement";
50
53
  export * from "./widget";
51
54
  export * from "./countries";
52
55
  export * from "./automation";
56
+ export * from "./sso";
53
57
  export * from "./coolify";
54
58
  export * from "./tag";
59
+ export * from "./xweather";
60
+ export * from "./posthog";
61
+ export * from "./recycleBin";
62
+ export * from "./authz";
63
+ export * from "./oauth";
64
+ export * from "./apiKey";
65
+ export * from "./ring";
66
+ export * from "./smartSeach";
67
+ export * from "./siteView";
68
+ export * from "./aiConfigs";
69
+ export * from "./gateReportManagement";
70
+ export * from "./socket";
71
+ export * from "./reports";
72
+ export * from "./observationEvents";
73
+ export * from "./emailMessages";
@@ -0,0 +1,314 @@
1
+ import { PaginationParams, DateType, JsonValue, TuplePoint2D } from "@evercam/api/types";
2
+ import type { _360FloorV2, _360WalkV2 } from "@evercam/api/types/360";
3
+ export declare enum IngestProcessingStatus {
4
+ Completed = "completed",
5
+ Uploading = "uploading",
6
+ Created = "created",
7
+ Failed = "failed",
8
+ Aborted = "aborted",
9
+ Paused = "paused",
10
+ InProgress = "inprogress",
11
+ Pending = "pending",
12
+ Downloading = "downloading"
13
+ }
14
+ export declare enum MobileAssetsType {
15
+ Audio = "mobile_audios",
16
+ Photo = "mobile_photos"
17
+ }
18
+ export declare enum IngestVersions {
19
+ V1 = "v1",
20
+ V2 = "v2",
21
+ V3 = "v3",
22
+ V4 = "v4",
23
+ V5 = "v5"
24
+ }
25
+ export declare enum IngestTypes {
26
+ Drone = "drone",
27
+ ThreeSixty = "360"
28
+ }
29
+ export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
30
+ projectId: string;
31
+ processingStatus: IngestProcessingStatus;
32
+ };
33
+ export type IngestPaginatedResponse<T> = {
34
+ items: T[];
35
+ page: number;
36
+ limit: number;
37
+ total: number;
38
+ pageCount?: number;
39
+ };
40
+ export declare enum IngestProcessingStepStatus {
41
+ Running = "running",
42
+ Completed = "completed",
43
+ Failed = "failed",
44
+ Skipped = "skipped"
45
+ }
46
+ export declare enum IngestProcessingRunStatus {
47
+ Processing = "processing",
48
+ Completed = "completed",
49
+ Failed = "failed"
50
+ }
51
+ export type IngestProcessingMetricStat = {
52
+ avg?: number;
53
+ peak?: number;
54
+ };
55
+ export type IngestProcessingStepMetrics = {
56
+ cpu?: IngestProcessingMetricStat;
57
+ ram?: IngestProcessingMetricStat;
58
+ gpuUtil?: IngestProcessingMetricStat;
59
+ gpuMemDevice?: IngestProcessingMetricStat;
60
+ gpuMemStep?: IngestProcessingMetricStat;
61
+ ramTotalMb?: number;
62
+ diskTotalMb?: number;
63
+ };
64
+ export type IngestProcessingStepDetail = {
65
+ input?: Record<string, JsonValue>;
66
+ params?: Record<string, JsonValue>;
67
+ output?: Record<string, JsonValue>;
68
+ metrics?: IngestProcessingStepMetrics;
69
+ error?: string;
70
+ };
71
+ export type IngestProcessingStep = {
72
+ name: string;
73
+ tool?: string;
74
+ status: IngestProcessingStepStatus | string;
75
+ startedAt?: string;
76
+ endedAt?: string;
77
+ durationSec?: number;
78
+ durationPct?: number;
79
+ detail?: IngestProcessingStepDetail;
80
+ };
81
+ export type IngestProcessingDiskUsage = {
82
+ sourceMb?: number;
83
+ framesMb?: number;
84
+ resultMb?: number;
85
+ totalMb?: number;
86
+ };
87
+ export type IngestProcessingPeakUsage = {
88
+ cpu?: number;
89
+ ram?: number;
90
+ gpuUtil?: number;
91
+ gpuMemDevice?: number;
92
+ gpuMemStep?: number;
93
+ };
94
+ export type IngestProcessingFootprint = {
95
+ disk?: IngestProcessingDiskUsage;
96
+ peak?: IngestProcessingPeakUsage;
97
+ };
98
+ export type IngestProcessingProgress = {
99
+ available: boolean;
100
+ status?: IngestProcessingRunStatus | string;
101
+ processingStatus?: IngestProcessingStatus | string;
102
+ currentStep?: string | null;
103
+ error?: string | null;
104
+ startedAt?: string;
105
+ steps: IngestProcessingStep[];
106
+ footprint?: IngestProcessingFootprint;
107
+ };
108
+ export type IngestTrackedAsset = {
109
+ id: number;
110
+ projectId: string;
111
+ name?: string;
112
+ processingStatus?: IngestProcessingStatus | string;
113
+ };
114
+ export type DroneUploadItem = {
115
+ id: number;
116
+ projectId: string;
117
+ flightDate: string;
118
+ flightGeolocation: string;
119
+ modelZip: string;
120
+ orthomosaicZip: string;
121
+ reportPdf: string;
122
+ processingLog: string;
123
+ uploadedBy: string;
124
+ processingStatus: IngestProcessingStatus | string;
125
+ modelCesiumAssetId: string;
126
+ updatedAt: string;
127
+ canDelete: boolean;
128
+ canReprocess: boolean;
129
+ hasSteps: boolean;
130
+ aerialShotsCount: number;
131
+ };
132
+ export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
133
+ export type DroneQueueResponse = {
134
+ size: number;
135
+ assetsDrone: DroneUploadItem[];
136
+ };
137
+ export type DroneFlightMetadata = {
138
+ dateTime: string;
139
+ gpsAltitude: string;
140
+ gpsCoordinates: string;
141
+ };
142
+ export type DroneFileAllocation = {
143
+ filename: string;
144
+ contentType: string;
145
+ };
146
+ export declare enum UploadFileStatus {
147
+ Allocated = "allocated",
148
+ Acknowledged = "acknowledged"
149
+ }
150
+ export type DroneFileState = DroneFileAllocation & {
151
+ status: UploadFileStatus;
152
+ uploadUrl?: string;
153
+ };
154
+ export type DroneFileError = {
155
+ filename?: string;
156
+ id?: number;
157
+ code: string;
158
+ detail: string;
159
+ retryable: boolean;
160
+ };
161
+ export type DroneFileStates = {
162
+ files: DroneFileState[];
163
+ errors: DroneFileError[];
164
+ nextCursor?: string | null;
165
+ };
166
+ export type DroneCompletion = DroneFileStates & {
167
+ processingId: number;
168
+ processingStatus: IngestProcessingStatus;
169
+ };
170
+ export type DroneReprocessResponse = Pick<DroneCompletion, "processingId" | "processingStatus">;
171
+ export type AerialAllocation = DroneFileAllocation & {
172
+ gpsLatitude: string;
173
+ gpsLongitude: string;
174
+ gpsAltitude: string;
175
+ };
176
+ export type AerialUploadState = AerialAllocation & {
177
+ id: number;
178
+ status: UploadFileStatus;
179
+ processingStatus: IngestProcessingStatus;
180
+ uploadUrl?: string;
181
+ fileLink?: string;
182
+ thumbnailLink?: string;
183
+ };
184
+ export type AerialUploadStates = {
185
+ aerialShots: AerialUploadState[];
186
+ errors: DroneFileError[];
187
+ nextCursor?: string | null;
188
+ complete: boolean;
189
+ };
190
+ export type AerialShotState = {
191
+ id: number;
192
+ filename?: string | null;
193
+ status?: UploadFileStatus | null;
194
+ contentType?: string | null;
195
+ processingStatus?: AerialUploadState["processingStatus"] | null;
196
+ gpsLatitude: string;
197
+ gpsLongitude: string;
198
+ gpsAltitude: string;
199
+ fileLink?: string | null;
200
+ thumbnailLink?: string | null;
201
+ };
202
+ export type AerialShotPage = Omit<AerialUploadStates, "aerialShots"> & {
203
+ aerialShots: AerialShotState[];
204
+ };
205
+ export type DroneCreation = {
206
+ projectId: string;
207
+ flightMetadata: DroneFlightMetadata;
208
+ aerialShots?: AerialAllocation[];
209
+ };
210
+ export type DroneProcessingTarget = {
211
+ ingestUrl: string;
212
+ id: number;
213
+ };
214
+ export type DroneCreated = {
215
+ id: number;
216
+ projectId: string;
217
+ processingStatus: IngestProcessingStatus;
218
+ aerialShots: AerialUploadState[];
219
+ errors: DroneFileError[];
220
+ };
221
+ export type DroneDeletion = {
222
+ deleted: {
223
+ filename: string;
224
+ id?: number;
225
+ }[];
226
+ errors: DroneFileError[];
227
+ };
228
+ export type DroneComparisonFrames = {
229
+ beforeImage?: string;
230
+ afterImage: string;
231
+ beforeDate?: string;
232
+ afterDate: string;
233
+ };
234
+ export type DronePreviewImages = Pick<DroneComparisonFrames, "beforeImage" | "afterImage">;
235
+ export type DronePreview = {
236
+ mimeType: "image/gif" | "image/jpeg";
237
+ content: string;
238
+ width: number;
239
+ height: number;
240
+ };
241
+ export type CalculateMeasuringOperationRequestPayload = {
242
+ date: DateType;
243
+ points: TuplePoint2D[];
244
+ operation: string;
245
+ };
246
+ export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
247
+ date: DateType;
248
+ };
249
+ export type AerialShotItem = {
250
+ id: number;
251
+ droneUploadId: number;
252
+ fileLink: string;
253
+ thumbnailLink: string;
254
+ gpsLatitude: string;
255
+ gpsLongitude: string;
256
+ gpsAltitude: string;
257
+ };
258
+ export type InspectionToolRequestPayload = {
259
+ date: DateType;
260
+ gpsAltitude: string;
261
+ gpsCoordinates: string;
262
+ };
263
+ export type _360AssetsResponse = IngestPaginatedResponse<_360WalkV2>;
264
+ export type _360AssetsCountsDay = {
265
+ day: number;
266
+ walks?: number;
267
+ mobilePhotos?: number;
268
+ [key: string]: JsonValue | undefined;
269
+ };
270
+ export type _360AssetsCountsResponse = {
271
+ days: _360AssetsCountsDay[];
272
+ };
273
+ export type _360QueueResponse = {
274
+ size: number;
275
+ assets360: _360WalkV2[];
276
+ };
277
+ export type _360FloorsResponse = IngestPaginatedResponse<_360FloorV2>;
278
+ export type BimUploadItem = {
279
+ id: number;
280
+ projectId: string;
281
+ uploadedBy: string;
282
+ files: string[];
283
+ updatedAt: string;
284
+ archive?: string | null;
285
+ };
286
+ export type BimUploadsResponse = IngestPaginatedResponse<BimUploadItem>;
287
+ export type IngestUploadInitResponse = {
288
+ id: number;
289
+ projectId: string;
290
+ token?: string;
291
+ projectName?: string;
292
+ };
293
+ export type MobileAssetsQueryParams = Partial<Omit<PaginationParams, "sort">> & {
294
+ projectId?: string;
295
+ project_id?: string;
296
+ assetType?: MobileAssetsType | string;
297
+ date?: DateType;
298
+ isPaginated?: boolean;
299
+ };
300
+ export type MobileCaptureAssetsResponse = IngestPaginatedResponse<{
301
+ id: string;
302
+ projectId?: string;
303
+ uploadedBy: string;
304
+ updatedAt: string;
305
+ assetType: string;
306
+ thumbnailUrl: string;
307
+ }> | Array<{
308
+ id: string;
309
+ projectId?: string;
310
+ uploadedBy: string;
311
+ updatedAt: string;
312
+ assetType: string;
313
+ thumbnailUrl: string;
314
+ }>;
@@ -1,10 +1,10 @@
1
- import { CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Region, Router, Schedule, Tag } from "@/types";
1
+ import { CameraStatus, CountryId, Nvr, PaginationParams, PowerType, Project, ProjectExid, Router, Schedule, SimSummary, Tag } from "@evercam/api/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
- countryCode: CountryCode;
4
+ sims?: SimSummary[];
5
5
  countryId: CountryId;
6
6
  countryName: string;
7
- countryRegion: Region;
7
+ countryRegion: KitRegion;
8
8
  id?: number;
9
9
  jobId: number;
10
10
  name: string;
@@ -12,11 +12,51 @@ export type Kit = {
12
12
  powerType: PowerType;
13
13
  project: Project;
14
14
  projectId: number;
15
+ projectExid?: ProjectExid;
15
16
  router: Partial<Router>;
16
17
  serial: string;
17
18
  status: KitStatus;
18
19
  powerSchedule: Schedule;
20
+ ups: boolean;
21
+ boxId: string;
19
22
  tags: Tag[];
23
+ createdAt: string;
24
+ deletedAt?: string | null;
25
+ decommissionedAt?: string | null;
26
+ deletedById?: number | null;
27
+ location?: string;
28
+ locationId?: number | null;
29
+ lastHealthCheck?: string | null;
30
+ };
31
+ export declare enum KitSupportCheckId {
32
+ RouterSmsRoundTrip = "router_sms_round_trip",
33
+ NvrRecordingAllCameras = "nvr_recording_all_cameras",
34
+ NvrRecordingThirdStream = "nvr_recording_third_stream",
35
+ CamerasHaveDeviceId = "cameras_have_device_id",
36
+ CamerasRecording = "cameras_recording",
37
+ CamerasSdCardMounted = "cameras_sd_card_mounted",
38
+ BatteryReadings = "battery_readings"
39
+ }
40
+ export declare enum KitSupportCheckStatus {
41
+ Passed = "passed",
42
+ Failed = "failed",
43
+ Skipped = "skipped"
44
+ }
45
+ export type KitSupportCheck = {
46
+ id: KitSupportCheckId;
47
+ name: string;
48
+ status: KitSupportCheckStatus;
49
+ error: string | null;
50
+ };
51
+ export type KitSupportChecklist = {
52
+ checks: KitSupportCheck[];
53
+ };
54
+ export type KitDiagnosticRun = {
55
+ kitId: number;
56
+ kitSerial: string;
57
+ checks: KitSupportCheck[];
58
+ ranAt: string;
59
+ isSeen: boolean;
20
60
  };
21
61
  export declare enum KitStatus {
22
62
  New = "new",
@@ -24,19 +64,31 @@ export declare enum KitStatus {
24
64
  Deployed = "deployed",
25
65
  Decommissioned = "decommissioned"
26
66
  }
67
+ export declare enum KitRegion {
68
+ APAC = "apac",
69
+ EMEA = "emea",
70
+ LATAM = "latam",
71
+ US = "na"
72
+ }
27
73
  export declare enum KitAlarm {
28
74
  NvrOffline = "nvr_offline",
75
+ OfflineScheduled = "offline_scheduled",
29
76
  UnknownCamera = "unknown_camera",
30
77
  NotRecordingCamera = "not_recording_camera",
31
- OfflineScheduled = "offline_scheduled",
32
78
  FullSD = "full_sd",
33
79
  FullStorage = "full_storage",
34
80
  HddUnmounted = "hdd_unmounted",
35
- NoHdd = "no_hdd"
81
+ NoHdd = "no_hdd",
82
+ MissingRouterInfo = "missing_router_info",
83
+ AcFailure = "ac_failure",
84
+ LowBattery = "low_battery",
85
+ GeneratorOff = "generator_off"
36
86
  }
37
87
  export declare enum KitMetricId {
38
- BatteryStats = "battery",
39
- PanelPowerStats = "panel_power"
88
+ SolarCharger = "solar_charger",
89
+ PanelPower = "panel_power",
90
+ Fan = "fan",
91
+ FanTemperature = "fan_temperature"
40
92
  }
41
93
  export declare enum KitMetricPeriod {
42
94
  Last15Minutes = "now-15m",
@@ -102,55 +154,6 @@ export declare enum KitChartType {
102
154
  TimeSeries = "timeseries",
103
155
  BarChart = "barchart"
104
156
  }
105
- export type GrafanaDataSource = {
106
- type: string;
107
- uid: string;
108
- };
109
- export type GrafanaTarget = {
110
- expr: string;
111
- refId: string;
112
- datasourceId?: string;
113
- intervalMs?: number;
114
- maxDataPoints?: number;
115
- };
116
- export type GrafanaPanel = {
117
- [key: string]: unknown;
118
- id: GrafanaMetricId;
119
- name: keyof GrafanaMetricId;
120
- title: string;
121
- description: string;
122
- type: KitChartType;
123
- datasource: GrafanaDataSource;
124
- targets: GrafanaTarget[];
125
- maxDataPoints?: number;
126
- interval?: string;
127
- timeFrom?: string;
128
- timeShift?: string;
129
- options?: {
130
- maxDataPoints?: number;
131
- interval?: string;
132
- };
133
- };
134
- export type GrafanaDashboard = {
135
- [key: string]: unknown;
136
- panels: GrafanaPanel[];
137
- time?: {
138
- from: string;
139
- to: string;
140
- };
141
- timepicker?: {
142
- refresh_intervals: string[];
143
- time_options: string[];
144
- };
145
- };
146
- export type GrafanaQueryOptions = {
147
- metricId: GrafanaMetricId;
148
- host: string;
149
- job?: string;
150
- from?: string;
151
- to?: string;
152
- variables?: Record<string, string>;
153
- };
154
157
  export type GrafanaTimeSeriesValue = number | string | null;
155
158
  export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
156
159
  export type GrafanaFieldConfig = {
@@ -224,10 +227,9 @@ export type GrafanaQueryResult = {
224
227
  status: number;
225
228
  frames: GrafanaFrame[];
226
229
  };
230
+ export type GrafanaMetricResults = Record<string, GrafanaQueryResult>;
227
231
  export type GrafanaMetricData = KitMetricData & {
228
- results: {
229
- [key: string]: GrafanaQueryResult;
230
- };
232
+ results: GrafanaMetricResults;
231
233
  };
232
234
  export type EvercamMetricData = KitMetricData & {
233
235
  stats: EvercamStats[];
@@ -237,60 +239,49 @@ export type EvercamStats = {
237
239
  [k: string]: number | string;
238
240
  timestamp: string;
239
241
  };
240
- export type KitQueryParams = PaginationParams & {
242
+ export type KitQueryParams = PaginationParams & Partial<{
243
+ boxId: string;
241
244
  name: string;
242
245
  serial: string;
243
246
  status: KitStatus;
244
247
  tagId: number | number[];
248
+ tags: number[];
249
+ noTags: number[];
250
+ sims: string;
251
+ countryId: CountryId;
252
+ region: KitRegion;
253
+ powerType: PowerType[];
254
+ projectName: string;
255
+ projectExid: string;
256
+ nvrVersion: string;
257
+ nvrNerves: boolean;
258
+ nvrSerial: string;
259
+ nvrModel: string;
260
+ nvrDeviceType: string;
261
+ ups: boolean;
262
+ alarms: KitAlarm[];
263
+ cameraStatus: CameraStatus[];
264
+ routerSerial: string;
265
+ createdAtFrom: string;
266
+ createdAtTo: string;
267
+ }>;
268
+ export type KitMetricStatsEntry = {
269
+ timestamp: string;
270
+ voltage: number;
271
+ current: number;
272
+ panelVoltage: number;
273
+ panelPower: number;
274
+ yieldTotal: number;
275
+ yieldToday: number;
276
+ yieldYesterday: number;
277
+ maxPowerToday: number;
278
+ maxPowerYesterday: number;
245
279
  };
246
- export type AdminKit = {
247
- id: number;
248
- name: string;
249
- serial: string;
250
- status: string;
251
- powerType: PowerType;
252
- location: string;
253
- countryId: number;
254
- countryName: string;
255
- countryRegion: string;
256
- nvr: Nvr;
257
- router: {
258
- id: number;
259
- serialNumber: number;
260
- vpnUserId: string;
261
- vpnPassword: string;
262
- routerType: string;
263
- routerUserId: string;
264
- routerPassword: string;
265
- routerHttpPort: number;
266
- powerType: PowerType;
267
- powerSchedule: Schedule;
268
- vpnServer: string;
269
- netbirdUrl: string;
270
- sims: {
271
- id: number;
272
- number: string;
273
- }[];
274
- };
275
- project: {
276
- id: number;
277
- exid: string;
278
- name: string;
279
- timezone: string;
280
- status: string;
281
- zohoId: string;
282
- insertedAt: DateType;
283
- };
284
- };
285
- export type KitCreatePayload = {
286
- projectId?: number;
287
- countryCode?: string;
288
- name: string;
289
- status: KitStatus;
290
- powerType: PowerType;
291
- config: {
292
- region: Region;
293
- };
280
+ export type KitFanStatsEntry = {
281
+ timestamp: string;
282
+ speed: number;
283
+ internalTemperature: number;
284
+ externalTemperature: number | null;
294
285
  };
295
286
  export type KitUpdatePayload = {
296
287
  countryId: number;
@@ -299,3 +290,74 @@ export type KitUpdatePayload = {
299
290
  kitStatus: KitStatus;
300
291
  type: string;
301
292
  };
293
+ export declare enum KitStorageTransport {
294
+ Sata = "sata",
295
+ Nvme = "nvme",
296
+ Usb = "usb"
297
+ }
298
+ export type KitStorageQueryParams = PaginationParams & Partial<{
299
+ kitId: number;
300
+ serial: string;
301
+ vendor: string;
302
+ transport: KitStorageTransport;
303
+ }>;
304
+ export type KitStorage = {
305
+ id: number;
306
+ serial: string;
307
+ status: string;
308
+ type: string;
309
+ metadata: {
310
+ formFactor: string;
311
+ };
312
+ model: string;
313
+ insertedAt: string;
314
+ updatedAt: string;
315
+ vendor: string;
316
+ kitId: number;
317
+ capacity: number;
318
+ freeSpace: number;
319
+ tran: KitStorageTransport;
320
+ };
321
+ export type KitFootageRequestPayload = Partial<{
322
+ cameraId: number;
323
+ storageId: number;
324
+ }>;
325
+ export type KitFootage = {
326
+ id: number;
327
+ startDate: string;
328
+ endDate: string;
329
+ cameraId: number;
330
+ storageId: number;
331
+ };
332
+ export type KitAlarmItem = {
333
+ id: number;
334
+ kitId: number;
335
+ alarm: KitAlarm;
336
+ startDate: string;
337
+ endDate: string | null;
338
+ };
339
+ export type KitBox = {
340
+ id: string;
341
+ gatewaySerial: string;
342
+ gatewayMac: string;
343
+ gatewayConfig: {
344
+ defaultPassword: string;
345
+ } | null;
346
+ kitSerials: string[];
347
+ insertedAt: string;
348
+ updatedAt: string;
349
+ };
350
+ export type KitBoxCreatePayload = {
351
+ id?: string;
352
+ gatewaySerial: string;
353
+ gatewayMac: string;
354
+ gatewayConfig?: {
355
+ defaultPassword?: string;
356
+ };
357
+ };
358
+ export type KitBoxQueryParams = PaginationParams & Partial<{
359
+ id: string;
360
+ gatewaySerial: string;
361
+ gatewayMac: string;
362
+ hasKits: boolean;
363
+ }>;