@evercam/api 1.0.0-93d7383e0 → 1.0.0-946af3a76

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 (69) hide show
  1. package/dist/api/api/3dFirebaseApi.d.ts +63 -24
  2. package/dist/api/api/adminApi.d.ts +17 -10
  3. package/dist/api/api/aiApi.d.ts +95 -3
  4. package/dist/api/api/authzApi.d.ts +4 -1
  5. package/dist/api/api/evercamApi.d.ts +39 -25
  6. package/dist/api/api/evercamLabsApi.d.ts +5 -16
  7. package/dist/api/api/index.d.ts +1 -0
  8. package/dist/api/api/ingestApi.d.ts +41 -31
  9. package/dist/api/api/workflowsApi.d.ts +15 -0
  10. package/dist/api/types/360.d.ts +117 -42
  11. package/dist/api/types/admin.d.ts +1 -1
  12. package/dist/api/types/aiConfigs.d.ts +102 -12
  13. package/dist/api/types/analytics.d.ts +29 -24
  14. package/dist/api/types/auditLogs.d.ts +1 -4
  15. package/dist/api/types/authz.d.ts +71 -0
  16. package/dist/api/types/automation.d.ts +32 -4
  17. package/dist/api/types/axios.d.ts +9 -8
  18. package/dist/api/types/bim.d.ts +12 -6
  19. package/dist/api/types/camera.d.ts +27 -22
  20. package/dist/api/types/comments.d.ts +9 -2
  21. package/dist/api/types/company.d.ts +1 -2
  22. package/dist/api/types/compare.d.ts +1 -1
  23. package/dist/api/types/connector.d.ts +2 -0
  24. package/dist/api/types/detections.d.ts +1 -0
  25. package/dist/api/types/drone.d.ts +1 -2
  26. package/dist/api/types/errors.d.ts +7 -2
  27. package/dist/api/types/gateReport.d.ts +0 -11
  28. package/dist/api/types/gateReportManagement.d.ts +2 -7
  29. package/dist/api/types/hammertech.d.ts +98 -0
  30. package/dist/api/types/index.d.ts +6 -2
  31. package/dist/api/types/ingest.d.ts +178 -25
  32. package/dist/api/types/kit.d.ts +44 -101
  33. package/dist/api/types/media.d.ts +7 -2
  34. package/dist/api/types/notification.d.ts +52 -2
  35. package/dist/api/types/observationEvents.d.ts +141 -0
  36. package/dist/api/types/observations.d.ts +84 -0
  37. package/dist/api/types/planner.d.ts +1 -8
  38. package/dist/api/types/posthog.d.ts +20 -0
  39. package/dist/api/types/project.d.ts +15 -3
  40. package/dist/api/types/recording.d.ts +5 -5
  41. package/dist/api/types/ring.d.ts +16 -16
  42. package/dist/api/types/roi.d.ts +2 -10
  43. package/dist/api/types/routeParams.d.ts +1 -0
  44. package/dist/api/types/shared.d.ts +5 -22
  45. package/dist/api/types/shares.d.ts +0 -13
  46. package/dist/api/types/siteAnalytics.d.ts +1 -3
  47. package/dist/api/types/siteAnalyticsManagement.d.ts +127 -0
  48. package/dist/api/types/siteView.d.ts +6 -1
  49. package/dist/api/types/socket.d.ts +4 -0
  50. package/dist/api/types/storyblok.d.ts +0 -13
  51. package/dist/api/types/timelapse.d.ts +1 -8
  52. package/dist/api/types/user.d.ts +16 -3
  53. package/dist/api/types/workflows.d.ts +108 -0
  54. package/dist/api/utils.d.ts +1 -0
  55. package/dist/index.js +1592 -941
  56. package/dist/index.js.map +1 -1
  57. package/dist/index.umd.cjs +1 -1
  58. package/dist/index.umd.cjs.map +1 -1
  59. package/dist/shared/types/components.d.ts +221 -44
  60. package/dist/shared/types/customDataTableFilters.d.ts +10 -0
  61. package/dist/shared/types/droneUpload.d.ts +67 -0
  62. package/dist/shared/types/index.d.ts +4 -0
  63. package/dist/shared/types/observations.d.ts +25 -0
  64. package/dist/shared/types/report.d.ts +101 -0
  65. package/dist/shared/utils/datePickerValue.d.ts +36 -0
  66. package/dist/shared/utils/datePresets.d.ts +31 -0
  67. package/package.json +3 -1
  68. package/dist/api/types/copilot.d.ts +0 -162
  69. package/dist/api/types/vendorModel.d.ts +0 -15
@@ -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"
@@ -130,11 +130,9 @@ export type CreateGateReportAppPayload = {
130
130
  priorSimilarLimit?: number;
131
131
  };
132
132
  export type UpdateGateReportAppPayload = Partial<Omit<CreateGateReportAppPayload, "projectExid" | "anprCameraExid" | "coolifyServerUuid" | "geminiApiKey">>;
133
- export type GateReportManagementListParams = {
133
+ export type GateReportAppsQueryParams = PaginationParams & {
134
134
  projectExid?: ProjectExid;
135
135
  includeStatus?: boolean;
136
- page?: number;
137
- limit?: number;
138
136
  };
139
137
  export type CoolifyProjectOption = {
140
138
  uuid: string;
@@ -152,9 +150,6 @@ export declare enum AppRuntimeState {
152
150
  Stopped = "stopped",
153
151
  Restarting = "restarting"
154
152
  }
155
- export type AppRuntimeStateRequest = {
156
- state: AppRuntimeState;
157
- };
158
153
  export type AppActionResponse = {
159
154
  success: boolean;
160
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
+ };
@@ -8,7 +8,6 @@ export * from "./autodesk";
8
8
  export * from "./bim";
9
9
  export * from "./camera";
10
10
  export * from "./compare";
11
- export * from "./copilot";
12
11
  export * from "./credentials";
13
12
  export * from "./drone";
14
13
  export * from "./errors";
@@ -36,12 +35,13 @@ export * from "./storyblok";
36
35
  export * from "./time";
37
36
  export * from "./timelapse";
38
37
  export * from "./user";
39
- export * from "./vendorModel";
40
38
  export * from "./videoWall";
41
39
  export * from "./voyageControl";
40
+ export * from "./hammertech";
42
41
  export * from "./weather";
43
42
  export * from "./comments";
44
43
  export * from "./detections";
44
+ export * from "./observations";
45
45
  export * from "./axios";
46
46
  export * from "./shared";
47
47
  export * from "./company";
@@ -49,6 +49,7 @@ export * from "./kit";
49
49
  export * from "./auditLogs";
50
50
  export * from "./snapshots";
51
51
  export * from "./siteAnalytics";
52
+ export * from "./siteAnalyticsManagement";
52
53
  export * from "./widget";
53
54
  export * from "./countries";
54
55
  export * from "./automation";
@@ -65,3 +66,6 @@ export * from "./smartSeach";
65
66
  export * from "./siteView";
66
67
  export * from "./aiConfigs";
67
68
  export * from "./gateReportManagement";
69
+ export * from "./socket";
70
+ export * from "./workflows";
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",
@@ -27,8 +28,6 @@ export declare enum IngestTypes {
27
28
  }
28
29
  export type DronesQueryParams = Omit<PaginationParams, "sort"> & {
29
30
  projectId: string;
30
- consumed: string;
31
- token: string;
32
31
  processingStatus: IngestProcessingStatus;
33
32
  };
34
33
  export type IngestPaginatedResponse<T> = {
@@ -38,11 +37,83 @@ export type IngestPaginatedResponse<T> = {
38
37
  total: number;
39
38
  pageCount?: number;
40
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
+ };
41
114
  export type DroneUploadItem = {
42
115
  id: number;
43
116
  projectId: string;
44
- consumed: boolean;
45
- token: string;
46
117
  flightDate: string;
47
118
  flightGeolocation: string;
48
119
  modelZip: string;
@@ -53,33 +124,106 @@ export type DroneUploadItem = {
53
124
  processingStatus: IngestProcessingStatus | string;
54
125
  modelCesiumAssetId: string;
55
126
  updatedAt: string;
56
- hasTusLinks: boolean;
127
+ canDelete: boolean;
128
+ canReprocess: boolean;
129
+ hasSteps: boolean;
130
+ aerialShotsCount: number;
57
131
  };
58
132
  export type DroneUploadsResponse = IngestPaginatedResponse<DroneUploadItem>;
59
133
  export type DroneQueueResponse = {
60
134
  size: number;
61
135
  assetsDrone: DroneUploadItem[];
62
136
  };
63
- export type DroneUploadUpdateRequestPayload = {
64
- flightMetadata: {
65
- dateTime: string;
66
- gpsAltitude: string;
67
- gpsCoordinates: string;
68
- };
69
- upload: {
70
- url: string;
71
- title: string;
72
- fileExtension: string;
73
- }[];
74
- aerialShots: {
75
- url: string;
76
- title: string;
77
- fileExtension: string;
78
- gpsLatitude: string;
79
- gpsLongitude: string;
80
- gpsAltitude: string;
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;
81
225
  }[];
82
- projectName: string;
226
+ errors: DroneFileError[];
83
227
  };
84
228
  export type CalculateMeasuringOperationRequestPayload = {
85
229
  date: DateType;
@@ -89,6 +233,15 @@ export type CalculateMeasuringOperationRequestPayload = {
89
233
  export type FlightImagesQueryParams = Partial<Omit<PaginationParams, "sort">> & {
90
234
  date: DateType;
91
235
  };
236
+ export type AerialShotItem = {
237
+ id: number;
238
+ droneUploadId: number;
239
+ fileLink: string;
240
+ thumbnailLink: string;
241
+ gpsLatitude: string;
242
+ gpsLongitude: string;
243
+ gpsAltitude: string;
244
+ };
92
245
  export type InspectionToolRequestPayload = {
93
246
  date: DateType;
94
247
  gpsAltitude: string;
@@ -1,4 +1,4 @@
1
- import { CameraExid, CountryCode, CountryId, DateType, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
1
+ import { CameraExid, CountryCode, CountryId, Nvr, PaginationParams, PowerType, Project, Router, Schedule, Tag } from "@evercam/api/types";
2
2
  export type Kit = {
3
3
  alarms: KitAlarm[];
4
4
  countryCode: CountryCode;
@@ -21,6 +21,38 @@ export type Kit = {
21
21
  tags: Tag[];
22
22
  storages: KitStorage[];
23
23
  createdAt: string;
24
+ decommissionedAt?: string;
25
+ deletedAt?: string;
26
+ };
27
+ export declare enum KitSupportCheckId {
28
+ RouterSmsRoundTrip = "router_sms_round_trip",
29
+ NvrRecordingAllCameras = "nvr_recording_all_cameras",
30
+ NvrRecordingThirdStream = "nvr_recording_third_stream",
31
+ CamerasHaveDeviceId = "cameras_have_device_id",
32
+ CamerasRecording = "cameras_recording",
33
+ CamerasSdCardMounted = "cameras_sd_card_mounted",
34
+ BatteryReadings = "battery_readings"
35
+ }
36
+ export declare enum KitSupportCheckStatus {
37
+ Passed = "passed",
38
+ Failed = "failed",
39
+ Skipped = "skipped"
40
+ }
41
+ export type KitSupportCheck = {
42
+ id: KitSupportCheckId;
43
+ name: string;
44
+ status: KitSupportCheckStatus;
45
+ error: string | null;
46
+ };
47
+ export type KitSupportChecklist = {
48
+ checks: KitSupportCheck[];
49
+ };
50
+ export type KitDiagnosticRun = {
51
+ kitId: number;
52
+ kitSerial: string;
53
+ checks: KitSupportCheck[];
54
+ ranAt: string;
55
+ isSeen: boolean;
24
56
  };
25
57
  export declare enum KitStatus {
26
58
  New = "new",
@@ -45,11 +77,14 @@ export declare enum KitAlarm {
45
77
  NoHdd = "no_hdd",
46
78
  MissingRouterInfo = "missing_router_info",
47
79
  AcFailure = "ac_failure",
48
- LowBattery = "low_battery"
80
+ LowBattery = "low_battery",
81
+ GeneratorOff = "generator_off"
49
82
  }
50
83
  export declare enum KitMetricId {
51
84
  SolarCharger = "solar_charger",
52
- PanelPower = "panel_power"
85
+ PanelPower = "panel_power",
86
+ Fan = "fan",
87
+ FanTemperature = "fan_temperature"
53
88
  }
54
89
  export declare enum KitMetricPeriod {
55
90
  Last15Minutes = "now-15m",
@@ -115,55 +150,6 @@ export declare enum KitChartType {
115
150
  TimeSeries = "timeseries",
116
151
  BarChart = "barchart"
117
152
  }
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
153
  export type GrafanaTimeSeriesValue = number | string | null;
168
154
  export type GrafanaTimeSeriesValues = GrafanaTimeSeriesValue[][];
169
155
  export type GrafanaFieldConfig = {
@@ -256,55 +242,6 @@ export type KitQueryParams = PaginationParams & {
256
242
  status: KitStatus;
257
243
  tagId: number | number[];
258
244
  };
259
- export type AdminKit = {
260
- id: number;
261
- name: string;
262
- serial: string;
263
- status: string;
264
- powerType: PowerType;
265
- location: string;
266
- countryId: number;
267
- countryName: string;
268
- countryRegion: string;
269
- nvr: Nvr;
270
- router: {
271
- id: number;
272
- serialNumber: number;
273
- vpnUserId: string;
274
- vpnPassword: string;
275
- routerType: string;
276
- routerUserId: string;
277
- routerPassword: string;
278
- routerHttpPort: number;
279
- powerType: PowerType;
280
- powerSchedule: Schedule;
281
- vpnServer: string;
282
- netbirdUrl: string;
283
- sims: {
284
- id: number;
285
- number: string;
286
- }[];
287
- };
288
- project: {
289
- id: number;
290
- exid: string;
291
- name: string;
292
- timezone: string;
293
- status: string;
294
- zohoId: string;
295
- insertedAt: DateType;
296
- };
297
- };
298
- export type KitCreatePayload = {
299
- projectId?: number;
300
- countryCode?: string;
301
- name: string;
302
- status: KitStatus;
303
- powerType: PowerType;
304
- config: {
305
- region: KitRegion;
306
- };
307
- };
308
245
  export type KitMetricStatsEntry = {
309
246
  timestamp: string;
310
247
  voltage: number;
@@ -312,6 +249,12 @@ export type KitMetricStatsEntry = {
312
249
  panelVoltage: number;
313
250
  panelPower: number;
314
251
  };
252
+ export type KitFanStatsEntry = {
253
+ timestamp: string;
254
+ speed: number;
255
+ internalTemperature: number;
256
+ externalTemperature: number | null;
257
+ };
315
258
  export type KitUpdatePayload = {
316
259
  countryId: number;
317
260
  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,10 @@ 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
+ }
111
116
  export type MediaDeleteRequestPayload = {
112
117
  timelapseIds: (string | number)[];
113
118
  compareIds: (string | number)[];
@@ -1,11 +1,32 @@
1
+ import { CommentsScope, CommentThreeSixtyContext } from "./comments";
1
2
  export declare enum NotificationType {
2
3
  CameraShare = "camera_share",
3
4
  CameraStatusChange = "camera_status_changed",
4
5
  Mention = "mention",
6
+ CommentMention = "comment_mention",
5
7
  TimelapseCreated = "timelapse_created",
6
8
  TimelapseFailed = "timelapse_failed",
7
9
  DroneProcessing = "drone_processing_done",
8
- Processing360 = "three_sixty_done"
10
+ Processing360 = "three_sixty_done",
11
+ SmartSearchExportReady = "smart_search_export_ready",
12
+ SmartSearchExportFailed = "smart_search_export_failed",
13
+ GateReportExportReady = "gate_report_export_ready",
14
+ GateReportExportFailed = "gate_report_export_failed",
15
+ PpeExportReady = "ppe_export_ready",
16
+ PpeExportFailed = "ppe_export_failed",
17
+ WeatherExportReady = "weather_export_ready",
18
+ WeatherExportFailed = "weather_export_failed",
19
+ CompareReady = "compare_ready",
20
+ CompareFailed = "compare_failed",
21
+ ClipExportReady = "clip_export_ready",
22
+ ClipExportFailed = "clip_export_failed",
23
+ NvrClipReady = "nvr_clip_ready",
24
+ NvrClipFailed = "nvr_clip_failed",
25
+ UploadComplete = "upload_complete",
26
+ UploadFailed = "upload_failed",
27
+ RingCamerasImported = "ring_cameras_imported",
28
+ StorageWarning = "storage_warning",
29
+ Other = "other"
9
30
  }
10
31
  export interface NotificationContextBase {
11
32
  cameraExid?: string;
@@ -41,7 +62,36 @@ export interface Processing360Context extends NotificationContextBase {
41
62
  date: string;
42
63
  floor: string;
43
64
  }
44
- export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context;
65
+ export interface ExportNotificationContext extends NotificationContextBase {
66
+ projectExid: string;
67
+ archiveExid?: string;
68
+ compareExid?: string;
69
+ }
70
+ export interface UploadNotificationContext extends NotificationContextBase {
71
+ projectExid: string;
72
+ }
73
+ export interface RingCamerasImportedContext extends NotificationContextBase {
74
+ projectExid: string;
75
+ projectName: string;
76
+ cameras: Array<{
77
+ exid: string;
78
+ name: string;
79
+ }>;
80
+ }
81
+ export interface StorageWarningContext extends NotificationContextBase {
82
+ projectExid: string;
83
+ cameraName: string;
84
+ }
85
+ export interface CommentMentionContext extends NotificationContextBase {
86
+ projectExid: string;
87
+ commentId: number;
88
+ scope: CommentsScope;
89
+ commentContext: CommentThreeSixtyContext;
90
+ content?: string;
91
+ label?: string;
92
+ projectName?: string;
93
+ }
94
+ export type NotificationContext = CameraShareContext | CameraStatusChangeContext | MentionContext | TimelapseCreatedContext | TimelapseFailedContext | DroneProcessingContext | Processing360Context | ExportNotificationContext | UploadNotificationContext | RingCamerasImportedContext | StorageWarningContext | CommentMentionContext;
45
95
  export type Notification = {
46
96
  id: number;
47
97
  type: NotificationType;