ul-data-logger-api-sdk 3.3.0__tar.gz → 3.3.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ul-data-logger-api-sdk
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: Data logger API sdk
5
5
  Author: Unic-lab
6
6
  License-Expression: MIT
@@ -17,6 +17,7 @@ from data_logger_api_sdk.types.api_base_stations import (
17
17
  ApiBaseStationDevicesResponse,
18
18
  ApiBaseStationLogsStatForIntervalsResponse,
19
19
  ApiBaseStationLogsStatResponse,
20
+ ApiBaseStationLogDetailResponse,
20
21
  ApiBaseStationLogResponse,
21
22
  ApiBaseStationLogsListResult,
22
23
  ApiBaseStationsListResult,
@@ -247,12 +248,12 @@ class DataLoggerApiSdk:
247
248
  self,
248
249
  base_station_id: UUID,
249
250
  log_id: UUID,
250
- ) -> ApiBaseStationLogResponse:
251
- """GET /base-stations/<uuid>/logs/<uuid> — конкретный лог базовой станции."""
251
+ ) -> ApiBaseStationLogDetailResponse:
252
+ """GET /base-stations/<uuid>/logs/<uuid> — конкретный лог БС с сырым JSON пакета."""
252
253
  return self._request_payload_once(
253
254
  ApiMethod.GET,
254
255
  f"/base-stations/{base_station_id}/logs/{log_id}",
255
- ApiBaseStationLogResponse,
256
+ ApiBaseStationLogDetailResponse,
256
257
  )
257
258
 
258
259
  def get_base_station_system_logs(
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "ul-data-logger-api-sdk"
7
- version = "3.3.0"
7
+ version = "3.3.1"
8
8
  description = "Data logger API sdk"
9
9
  license = "MIT"
10
10
  requires-python = ">=3.14"
@@ -84,6 +84,12 @@ class ApiBaseStationLogResponse(JsonApiResponsePayload):
84
84
  external_document_id: UUID4 | None = None
85
85
 
86
86
 
87
+ class ApiBaseStationLogDetailResponse(ApiBaseStationLogResponse):
88
+ """Ответ GET /base-stations/<uuid>/logs/<uuid> — лог с сырым JSON пакета (ApiBsLogDetailResponse в DL)."""
89
+
90
+ data: Dict[str, Any] | None = None
91
+
92
+
87
93
  class ApiBaseStationSystemLogResponse(JsonApiResponsePayload):
88
94
  """Элемент ответа GET /base-stations/<uuid>/system-logs (ApiBsSystemLogsResponse)."""
89
95