@evercam/api 1.0.0-4976cdc31 → 1.0.0-49fa7f1d4

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 (59) hide show
  1. package/README.md +1 -0
  2. package/dist/api/api/3dFirebaseApi.d.ts +59 -19
  3. package/dist/api/api/adminApi.d.ts +8 -10
  4. package/dist/api/api/aiApi.d.ts +58 -3
  5. package/dist/api/api/authzApi.d.ts +4 -1
  6. package/dist/api/api/evercamApi.d.ts +23 -12
  7. package/dist/api/api/evercamLabsApi.d.ts +5 -5
  8. package/dist/api/api/ingestApi.d.ts +19 -6
  9. package/dist/api/types/360.d.ts +136 -42
  10. package/dist/api/types/aiConfigs.d.ts +99 -11
  11. package/dist/api/types/analytics.d.ts +12 -1
  12. package/dist/api/types/authz.d.ts +71 -0
  13. package/dist/api/types/automation.d.ts +23 -4
  14. package/dist/api/types/axios.d.ts +8 -8
  15. package/dist/api/types/bim.d.ts +11 -5
  16. package/dist/api/types/camera.d.ts +5 -8
  17. package/dist/api/types/comments.d.ts +2 -1
  18. package/dist/api/types/connector.d.ts +2 -0
  19. package/dist/api/types/copilot.d.ts +0 -3
  20. package/dist/api/types/detections.d.ts +3 -1
  21. package/dist/api/types/drone.d.ts +1 -1
  22. package/dist/api/types/errors.d.ts +13 -1
  23. package/dist/api/types/gateReport.d.ts +1 -11
  24. package/dist/api/types/gateReportManagement.d.ts +28 -9
  25. package/dist/api/types/hammertech.d.ts +98 -0
  26. package/dist/api/types/index.d.ts +5 -1
  27. package/dist/api/types/ingest.d.ts +88 -1
  28. package/dist/api/types/kit.d.ts +41 -51
  29. package/dist/api/types/media.d.ts +8 -2
  30. package/dist/api/types/notification.d.ts +41 -2
  31. package/dist/api/types/observationEvents.d.ts +61 -0
  32. package/dist/api/types/observations.d.ts +85 -0
  33. package/dist/api/types/planner.d.ts +0 -8
  34. package/dist/api/types/posthog.d.ts +20 -0
  35. package/dist/api/types/project.d.ts +7 -0
  36. package/dist/api/types/recording.d.ts +5 -5
  37. package/dist/api/types/ring.d.ts +16 -16
  38. package/dist/api/types/roi.d.ts +2 -10
  39. package/dist/api/types/routeParams.d.ts +1 -0
  40. package/dist/api/types/shared.d.ts +0 -19
  41. package/dist/api/types/shares.d.ts +0 -13
  42. package/dist/api/types/siteAnalytics.d.ts +1 -3
  43. package/dist/api/types/siteAnalyticsManagement.d.ts +117 -0
  44. package/dist/api/types/siteView.d.ts +0 -1
  45. package/dist/api/types/snapshots.d.ts +5 -0
  46. package/dist/api/types/socket.d.ts +4 -0
  47. package/dist/api/types/storyblok.d.ts +0 -13
  48. package/dist/api/types/timelapse.d.ts +1 -8
  49. package/dist/api/types/user.d.ts +1 -3
  50. package/dist/index.js +1215 -713
  51. package/dist/index.js.map +1 -1
  52. package/dist/index.umd.cjs +1 -1
  53. package/dist/index.umd.cjs.map +1 -1
  54. package/dist/shared/types/components.d.ts +82 -31
  55. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  56. package/dist/shared/types/index.d.ts +2 -0
  57. package/dist/shared/types/observations.d.ts +21 -0
  58. package/package.json +3 -1
  59. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -1,4 +1,4 @@
1
- import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase } from "@evercam/api/types";
1
+ import { AuditLogActionType, DateType, EntityByExid, KitAlarm, NvrDeviceType, PaginationParams, PowerSchedule, PowerType, ProjectExid, ProjectFeatureFlag, Schedule, ScheduleLowercase, TimestampPositionCoordinates } from "@evercam/api/types";
2
2
  import { DateRangeFilter } from "@evercam/api/types/time";
3
3
  import { GeoPoint, TuplePoint2D } from "@evercam/api/types/shared";
4
4
  export type CameraExid = string;
@@ -80,6 +80,8 @@ export type Camera = {
80
80
  vendorName: string;
81
81
  isAccessRestricted?: boolean;
82
82
  kitAlarms?: KitAlarm[];
83
+ timestampPosition?: TimestampPositionCoordinates;
84
+ position?: number | null;
83
85
  };
84
86
  export type AdminCamera = {
85
87
  id: number;
@@ -199,17 +201,12 @@ export declare enum CameraFeatureFlag {
199
201
  PpeOwlv2 = "ppe_owlv2",
200
202
  PpeGemini = "ppe_gemini",
201
203
  PpeYolo = "ppe_yolo",
204
+ PpeV2 = "ppe_v2",
202
205
  NoLiveView = "no_live_view",
206
+ NoRecordings = "no_recordings",
203
207
  Ring = "ring",
204
208
  CloudOnly = "cloud_only"
205
209
  }
206
- export type CameraLogsRequestPayload = {
207
- limit: number;
208
- page: number;
209
- types: string;
210
- from: string;
211
- to: string;
212
- };
213
210
  export type CameraUpdateRequestPayload = {
214
211
  status?: string;
215
212
  timezone?: string;
@@ -48,9 +48,10 @@ export type CommentCreationRequestPayload = {
48
48
  toDate?: DateType;
49
49
  timestamp?: DateType;
50
50
  scope?: CommentsScope;
51
- projectExid: ProjectExid;
51
+ projectExid?: ProjectExid;
52
52
  cameraExid?: CameraExid;
53
53
  content: string;
54
+ label?: CommentsLabel;
54
55
  position2d?: TuplePoint2D;
55
56
  position3d?: [number, number, number];
56
57
  context?: Record<string, unknown>;
@@ -10,6 +10,8 @@ export declare enum Connector {
10
10
  AutodeskViewer = "autodesk_viewer",
11
11
  VoyageControl = "voyage_control",
12
12
  Ring = "ring",
13
+ Email = "email",
14
+ Hammertech = "hammertech",
13
15
  XWeather = "xweather"
14
16
  }
15
17
  export declare enum ProcoreType {
@@ -45,9 +45,6 @@ export type CopilotMissingField<T = unknown> = {
45
45
  error?: T;
46
46
  };
47
47
  export type CopilotMissingFields = Record<number, CopilotMissingField[]>;
48
- export type UserConversations = CopilotConversation & {
49
- Message: CopilotMessage[];
50
- };
51
48
  export declare enum CopilotSocketEvent {
52
49
  ConversationStart = "conversation:start",
53
50
  ConversationCreated = "conversation:created",
@@ -102,6 +102,7 @@ export declare enum PpeLabel {
102
102
  Helmet = "helmet",
103
103
  HighVisibilityVest = "high-visibility-vest",
104
104
  SafetyGlasses = "safety-glasses",
105
+ Gloves = "gloves",
105
106
  Person = "person",
106
107
  Man = "man",
107
108
  Woman = "woman"
@@ -111,5 +112,6 @@ export declare enum DetectionModel {
111
112
  Yolov11 = 2,
112
113
  Yolov112 = 3,
113
114
  GroundingDino = 4,
114
- Owlv2 = 5
115
+ Owlv2 = 5,
116
+ PpeV2 = 6
115
117
  }
@@ -57,7 +57,7 @@ export type DroneTag<T extends DroneTagType = DroneTagType> = {
57
57
  type: T;
58
58
  comment: string;
59
59
  position?: Point3D;
60
- cameraTransform?: DroneCameraTransform;
60
+ cameraTransform?: string;
61
61
  creationDate: string;
62
62
  hyperlink?: string;
63
63
  height?: number;
@@ -23,7 +23,8 @@ export declare enum ErrorCode {
23
23
  UnauthorizedError = 401,
24
24
  ForbiddenError = 403,
25
25
  NotFoundError = 404,
26
- ConflictError = 409
26
+ ConflictError = 409,
27
+ GoneError = 410
27
28
  }
28
29
  export declare enum EvercamApiErrorCode {
29
30
  IntegrationError = "INTEGRATION_ERROR",
@@ -46,4 +47,15 @@ type _EvercamApiError = {
46
47
  innerError?: _EvercamApiError;
47
48
  };
48
49
  export type EvercamApiError = AxiosError<_EvercamApiError>;
50
+ export type AppError = {
51
+ statusCode?: number;
52
+ message?: string;
53
+ redirect?: {
54
+ url?: string;
55
+ label?: string;
56
+ delay?: number;
57
+ };
58
+ withSupportMessage?: boolean;
59
+ isWidget?: boolean;
60
+ };
49
61
  export {};
@@ -166,12 +166,6 @@ export type GateReportEvent = {
166
166
  truckType: GateReportVehicleType;
167
167
  thumbnailUrl?: string;
168
168
  };
169
- export type GateReportArrivedEvent = GateReportEvent & {
170
- eventType: GateReportEventType.Arrived;
171
- };
172
- export type GateReportLeftEvent = GateReportEvent & {
173
- eventType: GateReportEventType.Left;
174
- };
175
169
  export type GateReportVerifiedDay = {
176
170
  id: number;
177
171
  day: string;
@@ -188,7 +182,6 @@ export type BoundingBox = {
188
182
  ymax: number;
189
183
  ymin: number;
190
184
  };
191
- export type EventsCountsByVehicleType = Record<GateReportVehicleType, number>;
192
185
  export type EventsCount = {
193
186
  in: number;
194
187
  out: number;
@@ -203,10 +196,6 @@ export type MonthlyEventCount = EventsCount & {
203
196
  export type DailyEventCount = EventsCount & {
204
197
  day: string;
205
198
  };
206
- export type HourlyEventCount = {
207
- hour: string;
208
- count: number;
209
- };
210
199
  export type EventCountRequestPayload = {
211
200
  vehicleTypes?: GateReportVehicleType[];
212
201
  isPublic?: boolean;
@@ -249,6 +238,7 @@ export type AnprExportBaseParams = {
249
238
  toDate?: string;
250
239
  camerasExid?: CameraExid[];
251
240
  isPublic?: boolean;
241
+ columns?: string[];
252
242
  };
253
243
  export type EventsExportRequestParameters = AnprExportBaseParams & {
254
244
  eventType: GateReportEventType;
@@ -1,4 +1,4 @@
1
- import { CameraExid, DateType, ProjectExid } from "@evercam/api/types";
1
+ import { CameraExid, DateType, PaginationParams, ProjectExid } from "@evercam/api/types";
2
2
  export declare enum VehicleClassifierSource {
3
3
  Local = "local",
4
4
  Api = "api"
@@ -11,6 +11,7 @@ export type GateReportCoolifyStatus = {
11
11
  appUrl: string | null;
12
12
  status: string | null;
13
13
  isRunning: boolean;
14
+ imageTag?: string | null;
14
15
  fqdn: string | null;
15
16
  updatedAt: string | null;
16
17
  };
@@ -39,8 +40,12 @@ export type GateReportManagedApp = {
39
40
  endHour: number;
40
41
  enabled: boolean;
41
42
  enableEnrichments: boolean;
43
+ enableGemini: boolean;
44
+ geminiStartHour: number;
45
+ geminiEndHour: number;
42
46
  reviewModel: string;
43
47
  enrichmentModel: string;
48
+ reviewerPromptSlug: string | null;
44
49
  geminiTimeoutSeconds: number;
45
50
  geminiMaxAttempts: number;
46
51
  vehicleClassifierSource: VehicleClassifierSource;
@@ -50,12 +55,16 @@ export type GateReportManagedApp = {
50
55
  plateClassifierHighConfidence: number;
51
56
  maxPriorEvents: number;
52
57
  recordsFetchInterval: number;
58
+ priorRecentLimit: number;
59
+ priorSimilarLimit: number;
53
60
  insertedAt: DateType;
54
61
  updatedAt: DateType;
55
62
  coolify: GateReportCoolifyStatus | null;
56
63
  project: GateReportProjectMeta | null;
57
64
  anprCamera: GateReportCameraMeta | null;
58
65
  contextCamera: GateReportCameraMeta | null;
66
+ anprHasRoi: boolean;
67
+ contextHasRoi: boolean;
59
68
  lastProcessedEventAt: DateType | null;
60
69
  lastUnprocessedEventAt: DateType | null;
61
70
  };
@@ -72,8 +81,12 @@ export type AppConfigFormValue = {
72
81
  endHour: number;
73
82
  enabled: boolean;
74
83
  enableEnrichments: boolean;
84
+ enableGemini: boolean;
85
+ geminiStartHour: number;
86
+ geminiEndHour: number;
75
87
  reviewModel: string;
76
88
  enrichmentModel: string;
89
+ reviewerPromptSlug: string | null;
77
90
  geminiTimeoutSeconds: number;
78
91
  geminiMaxAttempts: number;
79
92
  vehicleClassifierSource: VehicleClassifierSource;
@@ -81,8 +94,9 @@ export type AppConfigFormValue = {
81
94
  snapshotRequestTimeout: number;
82
95
  plateClassifierThreshold: number;
83
96
  plateClassifierHighConfidence: number;
84
- maxPriorEvents: number;
85
97
  recordsFetchInterval: number;
98
+ priorRecentLimit: number;
99
+ priorSimilarLimit: number;
86
100
  };
87
101
  export type CreateGateReportAppPayload = {
88
102
  projectExid: ProjectExid;
@@ -97,8 +111,12 @@ export type CreateGateReportAppPayload = {
97
111
  endHour?: number;
98
112
  enabled?: boolean;
99
113
  enableEnrichments?: boolean;
114
+ enableGemini?: boolean;
115
+ geminiStartHour?: number;
116
+ geminiEndHour?: number;
100
117
  reviewModel?: string;
101
118
  enrichmentModel?: string;
119
+ reviewerPromptSlug?: string | null;
102
120
  geminiTimeoutSeconds?: number;
103
121
  geminiMaxAttempts?: number;
104
122
  vehicleClassifierSource?: VehicleClassifierSource;
@@ -108,13 +126,13 @@ export type CreateGateReportAppPayload = {
108
126
  plateClassifierHighConfidence?: number;
109
127
  maxPriorEvents?: number;
110
128
  recordsFetchInterval?: number;
129
+ priorRecentLimit?: number;
130
+ priorSimilarLimit?: number;
111
131
  };
112
132
  export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
113
- export type GateReportManagementListParams = {
133
+ export type GateReportAppsQueryParams = PaginationParams & {
114
134
  projectExid?: ProjectExid;
115
135
  includeStatus?: boolean;
116
- page?: number;
117
- limit?: number;
118
136
  };
119
137
  export type CoolifyProjectOption = {
120
138
  uuid: string;
@@ -127,10 +145,11 @@ export type CoolifyServerOption = {
127
145
  isReachable: boolean;
128
146
  isUsable: boolean;
129
147
  };
130
- export type AppRuntimeState = "running" | "stopped" | "restarting";
131
- export type AppRuntimeStateRequest = {
132
- state: AppRuntimeState;
133
- };
148
+ export declare enum AppRuntimeState {
149
+ Running = "running",
150
+ Stopped = "stopped",
151
+ Restarting = "restarting"
152
+ }
134
153
  export type AppActionResponse = {
135
154
  success: boolean;
136
155
  message: string | null;
@@ -0,0 +1,98 @@
1
+ export declare enum HammertechRegion {
2
+ US = "us",
3
+ AU = "au",
4
+ EU = "eu"
5
+ }
6
+ export type HammertechConnectPayload = {
7
+ email: string;
8
+ password: string;
9
+ tenant: string;
10
+ region: HammertechRegion;
11
+ };
12
+ export type HammertechProject = {
13
+ projectId: string;
14
+ name: string;
15
+ };
16
+ export type HammertechLocation = {
17
+ id: string;
18
+ name: string;
19
+ parentId: string | null;
20
+ };
21
+ export type HammertechCustomFieldDataType = "FreeText" | "TextArea" | "Number" | "Date" | "Time" | "DateTime" | "ExpiryDate" | "Checkbox" | "YesNoRadio" | "YesNoNaRadio" | "Dropdown" | "Radio" | "MultiSelectDropdown" | "ImageUpload" | "FileUpload" | "Signature" | "SignatureWithName" | "Heading" | "BigLabel" | "ExpandingLabel" | "Separator" | "NoMargin" | "Image" | "FileDownload" | "ChildForm" | "SectionStart" | "SectionEnd" | "SystemField" | string;
22
+ export type HammertechCustomField = {
23
+ id: string;
24
+ internalName: string;
25
+ name?: string;
26
+ customFieldType: HammertechCustomFieldDataType;
27
+ isRequired?: boolean;
28
+ answerOptions?: string[];
29
+ };
30
+ export type HammertechCustomFieldForm = {
31
+ id: string;
32
+ customFields: HammertechCustomField[];
33
+ };
34
+ export declare enum HammertechPriority {
35
+ Low = "Low",
36
+ Medium = "Medium",
37
+ High = "High",
38
+ Critical = "Critical"
39
+ }
40
+ export declare enum HammertechClassification {
41
+ Undefined = "Undefined",
42
+ Positive = "Positive",
43
+ Negative = "Negative",
44
+ Neutral = "Neutral"
45
+ }
46
+ export type HammertechIssueType = {
47
+ id: string;
48
+ name: string;
49
+ forcePriority?: boolean;
50
+ suggestedPriority?: HammertechPriority | null;
51
+ canBeNegative?: boolean;
52
+ canBeNeutral?: boolean;
53
+ canBePositive?: boolean;
54
+ openIssueCustomFieldForm?: HammertechCustomFieldForm | null;
55
+ };
56
+ export type HammertechCustomFieldValue = {
57
+ customFieldId: string;
58
+ value?: unknown;
59
+ storedFileId?: string;
60
+ };
61
+ export declare const HAMMERTECH_FILE_FIELD_TYPES: string[];
62
+ export declare function isHammertechFileFieldType(type?: string): boolean;
63
+ export declare function isHammertechSignatureWithName(type?: string): boolean;
64
+ export type HammertechStoredFilePayload = {
65
+ fileName?: string;
66
+ base64FileContent: string;
67
+ annotation?: string;
68
+ id?: string;
69
+ };
70
+ export type HammertechStoredFileResponse = {
71
+ isSuccess: boolean;
72
+ httpStatusCode: number;
73
+ messageText: string;
74
+ createdEntityId: string;
75
+ xRequestId: string;
76
+ };
77
+ export type HammertechFileFieldValue = {
78
+ file: File | null;
79
+ name: string;
80
+ };
81
+ export type HammertechCreateIssuePayload = {
82
+ projectId: string;
83
+ issueTypeId: string;
84
+ snapshot: string;
85
+ issueDate?: string;
86
+ description?: string;
87
+ priority?: HammertechPriority;
88
+ dueDate?: string;
89
+ classification?: HammertechClassification;
90
+ locationId?: string;
91
+ isPositiveObservation?: boolean;
92
+ isPhotoForFixRequired?: boolean;
93
+ openIssueCustomFieldFormId?: string;
94
+ openIssueCustomFieldValues?: HammertechCustomFieldValue[];
95
+ };
96
+ export type HammertechIssueResponse = {
97
+ id: string;
98
+ };
@@ -36,12 +36,13 @@ export * from "./storyblok";
36
36
  export * from "./time";
37
37
  export * from "./timelapse";
38
38
  export * from "./user";
39
- export * from "./vendorModel";
40
39
  export * from "./videoWall";
41
40
  export * from "./voyageControl";
41
+ export * from "./hammertech";
42
42
  export * from "./weather";
43
43
  export * from "./comments";
44
44
  export * from "./detections";
45
+ export * from "./observations";
45
46
  export * from "./axios";
46
47
  export * from "./shared";
47
48
  export * from "./company";
@@ -49,6 +50,7 @@ export * from "./kit";
49
50
  export * from "./auditLogs";
50
51
  export * from "./snapshots";
51
52
  export * from "./siteAnalytics";
53
+ export * from "./siteAnalyticsManagement";
52
54
  export * from "./widget";
53
55
  export * from "./countries";
54
56
  export * from "./automation";
@@ -65,3 +67,5 @@ export * from "./smartSeach";
65
67
  export * from "./siteView";
66
68
  export * from "./aiConfigs";
67
69
  export * from "./gateReportManagement";
70
+ export * from "./socket";
71
+ export * from "./observationEvents";
@@ -8,7 +8,8 @@ export declare enum IngestProcessingStatus {
8
8
  Aborted = "aborted",
9
9
  Paused = "paused",
10
10
  InProgress = "inprogress",
11
- Pending = "pending"
11
+ Pending = "pending",
12
+ Downloading = "downloading"
12
13
  }
13
14
  export declare enum MobileAssetsType {
14
15
  Audio = "mobile_audios",
@@ -38,6 +39,80 @@ export type IngestPaginatedResponse<T> = {
38
39
  total: number;
39
40
  pageCount?: number;
40
41
  };
42
+ export declare enum IngestProcessingStepStatus {
43
+ Running = "running",
44
+ Completed = "completed",
45
+ Failed = "failed",
46
+ Skipped = "skipped"
47
+ }
48
+ export declare enum IngestProcessingRunStatus {
49
+ Processing = "processing",
50
+ Completed = "completed",
51
+ Failed = "failed"
52
+ }
53
+ export type IngestProcessingMetricStat = {
54
+ avg?: number;
55
+ peak?: number;
56
+ };
57
+ export type IngestProcessingStepMetrics = {
58
+ cpu?: IngestProcessingMetricStat;
59
+ ram?: IngestProcessingMetricStat;
60
+ gpuUtil?: IngestProcessingMetricStat;
61
+ gpuMemDevice?: IngestProcessingMetricStat;
62
+ gpuMemStep?: IngestProcessingMetricStat;
63
+ ramTotalMb?: number;
64
+ diskTotalMb?: number;
65
+ };
66
+ export type IngestProcessingStepDetail = {
67
+ input?: Record<string, JsonValue>;
68
+ params?: Record<string, JsonValue>;
69
+ output?: Record<string, JsonValue>;
70
+ metrics?: IngestProcessingStepMetrics;
71
+ error?: string;
72
+ };
73
+ export type IngestProcessingStep = {
74
+ name: string;
75
+ tool?: string;
76
+ status: IngestProcessingStepStatus | string;
77
+ startedAt?: string;
78
+ endedAt?: string;
79
+ durationSec?: number;
80
+ durationPct?: number;
81
+ detail?: IngestProcessingStepDetail;
82
+ };
83
+ export type IngestProcessingDiskUsage = {
84
+ sourceMb?: number;
85
+ framesMb?: number;
86
+ resultMb?: number;
87
+ totalMb?: number;
88
+ };
89
+ export type IngestProcessingPeakUsage = {
90
+ cpu?: number;
91
+ ram?: number;
92
+ gpuUtil?: number;
93
+ gpuMemDevice?: number;
94
+ gpuMemStep?: number;
95
+ };
96
+ export type IngestProcessingFootprint = {
97
+ disk?: IngestProcessingDiskUsage;
98
+ peak?: IngestProcessingPeakUsage;
99
+ };
100
+ export type IngestProcessingProgress = {
101
+ available: boolean;
102
+ status?: IngestProcessingRunStatus | string;
103
+ processingStatus?: IngestProcessingStatus | string;
104
+ currentStep?: string | null;
105
+ error?: string | null;
106
+ startedAt?: string;
107
+ steps: IngestProcessingStep[];
108
+ footprint?: IngestProcessingFootprint;
109
+ };
110
+ export type IngestTrackedAsset = {
111
+ id: number;
112
+ projectId: string;
113
+ name?: string;
114
+ processingStatus?: IngestProcessingStatus | string;
115
+ };
41
116
  export type DroneUploadItem = {
42
117
  id: number;
43
118
  projectId: string;
@@ -48,11 +123,14 @@ export type DroneUploadItem = {
48
123
  modelZip: string;
49
124
  orthomosaicZip: string;
50
125
  reportPdf: string;
126
+ processingLog: string;
51
127
  uploadedBy: string;
52
128
  processingStatus: IngestProcessingStatus | string;
53
129
  modelCesiumAssetId: string;
54
130
  updatedAt: string;
55
131
  hasTusLinks: boolean;
132
+ hasSteps: boolean;
133
+ aerialShots: AerialShotItem[];
56
134
  };
57
135
  export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
58
136
  export type DroneQueueResponse = {
@@ -88,6 +166,15 @@ export type CalculateMeasuringOperationRequestPayload = {
88
166
  export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
89
167
  date: DateType;
90
168
  };
169
+ export type AerialShotItem = {
170
+ id: number;
171
+ droneUploadId: number;
172
+ fileLink: string;
173
+ thumbnailLink: string;
174
+ gpsLatitude: string;
175
+ gpsLongitude: string;
176
+ gpsAltitude: string;
177
+ };
91
178
  export type InspectionToolRequestPayload = {
92
179
  date: DateType;
93
180
  gpsAltitude: string;
@@ -22,6 +22,36 @@ export type Kit = {
22
22
  storages: KitStorage[];
23
23
  createdAt: string;
24
24
  };
25
+ export declare enum KitSupportCheckId {
26
+ RouterSmsRoundTrip = "router_sms_round_trip",
27
+ NvrRecordingAllCameras = "nvr_recording_all_cameras",
28
+ NvrRecordingThirdStream = "nvr_recording_third_stream",
29
+ CamerasHaveDeviceId = "cameras_have_device_id",
30
+ CamerasRecording = "cameras_recording",
31
+ CamerasSdCardMounted = "cameras_sd_card_mounted",
32
+ BatteryReadings = "battery_readings"
33
+ }
34
+ export declare enum KitSupportCheckStatus {
35
+ Passed = "passed",
36
+ Failed = "failed",
37
+ Skipped = "skipped"
38
+ }
39
+ export type KitSupportCheck = {
40
+ id: KitSupportCheckId;
41
+ name: string;
42
+ status: KitSupportCheckStatus;
43
+ error: string | null;
44
+ };
45
+ export type KitSupportChecklist = {
46
+ checks: KitSupportCheck[];
47
+ };
48
+ export type KitDiagnosticRun = {
49
+ kitId: number;
50
+ kitSerial: string;
51
+ checks: KitSupportCheck[];
52
+ ranAt: string;
53
+ isSeen: boolean;
54
+ };
25
55
  export declare enum KitStatus {
26
56
  New = "new",
27
57
  Active = "active",
@@ -45,11 +75,14 @@ export declare enum KitAlarm {
45
75
  NoHdd = "no_hdd",
46
76
  MissingRouterInfo = "missing_router_info",
47
77
  AcFailure = "ac_failure",
48
- LowBattery = "low_battery"
78
+ LowBattery = "low_battery",
79
+ GeneratorOff = "generator_off"
49
80
  }
50
81
  export declare enum KitMetricId {
51
82
  SolarCharger = "solar_charger",
52
- PanelPower = "panel_power"
83
+ PanelPower = "panel_power",
84
+ Fan = "fan",
85
+ FanTemperature = "fan_temperature"
53
86
  }
54
87
  export declare enum KitMetricPeriod {
55
88
  Last15Minutes = "now-15m",
@@ -115,55 +148,6 @@ export declare enum KitChartType {
115
148
  TimeSeries = "timeseries",
116
149
  BarChart = "barchart"
117
150
  }
118
- export type GrafanaDataSource = {
119
- type: string;
120
- uid: string;
121
- };
122
- export type GrafanaTarget = {
123
- expr: string;
124
- refId: string;
125
- datasourceId?: string;
126
- intervalMs?: number;
127
- maxDataPoints?: number;
128
- };
129
- export type GrafanaPanel = {
130
- [key: string]: unknown;
131
- id: GrafanaMetricId;
132
- name: keyof GrafanaMetricId;
133
- title: string;
134
- description: string;
135
- type: KitChartType;
136
- datasource: GrafanaDataSource;
137
- targets: GrafanaTarget[];
138
- maxDataPoints?: number;
139
- interval?: string;
140
- timeFrom?: string;
141
- timeShift?: string;
142
- options?: {
143
- maxDataPoints?: number;
144
- interval?: string;
145
- };
146
- };
147
- export type GrafanaDashboard = {
148
- [key: string]: unknown;
149
- panels: GrafanaPanel[];
150
- time?: {
151
- from: string;
152
- to: string;
153
- };
154
- timepicker?: {
155
- refresh_intervals: string[];
156
- time_options: string[];
157
- };
158
- };
159
- export type GrafanaQueryOptions = {
160
- metricId: GrafanaMetricId;
161
- host: string;
162
- job?: string;
163
- from?: string;
164
- to?: string;
165
- variables?: Record<string, string>;
166
- };
167
151
  export type GrafanaTimeSeriesValue = number | string | null;
168
152
  export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
169
153
  export type GrafanaFieldConfig = {
@@ -312,6 +296,12 @@ export type KitMetricStatsEntry = {
312
296
  panelVoltage: number;
313
297
  panelPower: number;
314
298
  };
299
+ export type KitFanStatsEntry = {
300
+ timestamp: string;
301
+ speed: number;
302
+ internalTemperature: number;
303
+ externalTemperature: number | null;
304
+ };
315
305
  export type KitUpdatePayload = {
316
306
  countryId: number;
317
307
  name: string;
@@ -43,7 +43,8 @@ export declare enum MediaFileType {
43
43
  Mp4 = "mp4",
44
44
  Png = "png",
45
45
  Pdf = "pdf",
46
- Jpeg = "jpeg"
46
+ Jpeg = "jpeg",
47
+ Csv = "csv"
47
48
  }
48
49
  export declare enum MediaStatus {
49
50
  Pending = "Pending",
@@ -93,7 +94,7 @@ export type MediaCreateRequestPayload = {
93
94
  cameraExid?: string;
94
95
  requestedBy?: string;
95
96
  notes?: string;
96
- category?: ClipsCategory;
97
+ category?: MediaCategory | ClipsCategory;
97
98
  isUrgent?: boolean;
98
99
  storeAsType?: MediaType;
99
100
  };
@@ -108,6 +109,11 @@ export declare enum ClipsCategory {
108
109
  Marketing = "marketing",
109
110
  BestPracticies = "best_practices"
110
111
  }
112
+ export declare enum MediaCategory {
113
+ Weather = "weather",
114
+ SmartSearch = "smart_search",
115
+ Copilot = "copilot"
116
+ }
111
117
  export type MediaDeleteRequestPayload = {
112
118
  timelapseIds: (string | number)[];
113
119
  compareIds: (string | number)[];