From 02d9a08df310d1c57d5c5874b02e4204acebee59 Mon Sep 17 00:00:00 2001 From: Marcel Barbulescu Date: Sun, 22 Sep 2024 12:50:43 -0400 Subject: [PATCH 1/3] fix(performance_summary_list.py): add type field to Class model --- src/otf_api/models/responses/performance_summary_list.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/otf_api/models/responses/performance_summary_list.py b/src/otf_api/models/responses/performance_summary_list.py index 2913b13..955f85c 100644 --- a/src/otf_api/models/responses/performance_summary_list.py +++ b/src/otf_api/models/responses/performance_summary_list.py @@ -34,6 +34,7 @@ class Class(OtfItemBase): ot_base_class_uuid: str | None = None starts_at_local: str name: str | None = None + type: str | None = None coach: Coach studio: Studio From 74e72f40be02b51ca431474cb91879bc45c0d6ab Mon Sep 17 00:00:00 2001 From: Marcel Barbulescu Date: Sun, 22 Sep 2024 12:51:46 -0400 Subject: [PATCH 2/3] fix(telemetry.py): add rowData fields to Telemetry model --- src/otf_api/models/responses/telemetry.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/otf_api/models/responses/telemetry.py b/src/otf_api/models/responses/telemetry.py index 4b447d0..8abeb3c 100644 --- a/src/otf_api/models/responses/telemetry.py +++ b/src/otf_api/models/responses/telemetry.py @@ -25,6 +25,14 @@ class TreadData(OtfItemBase): agg_tread_distance: int = Field(..., alias="aggTreadDistance") +class RowData(OtfItemBase): + row_speed: float = Field(..., alias="rowSpeed") + row_pps: float = Field(..., alias="rowPps") + row_Spm: float = Field(..., alias="rowSpm") + agg_row_distance: int = Field(..., alias="aggRowDistance") + row_pace: int = Field(..., alias="rowPace") + + class TelemetryItem(OtfItemBase): relative_timestamp: int = Field(..., alias="relativeTimestamp") hr: int @@ -36,6 +44,7 @@ class TelemetryItem(OtfItemBase): description="The timestamp of the telemetry item, calculated from the class start time and relative timestamp.", ) tread_data: TreadData | None = Field(None, alias="treadData") + row_data: RowData | None = Field(None, alias="rowData") class Telemetry(OtfItemBase): From 7568833b08489b87850b577106e6fe4e31297324 Mon Sep 17 00:00:00 2001 From: Marcel Barbulescu Date: Sun, 22 Sep 2024 12:48:41 -0400 Subject: [PATCH 3/3] fix(member_detail.py): allow for no homePhone --- src/otf_api/models/responses/member_detail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/otf_api/models/responses/member_detail.py b/src/otf_api/models/responses/member_detail.py index ef03b87..5023501 100644 --- a/src/otf_api/models/responses/member_detail.py +++ b/src/otf_api/models/responses/member_detail.py @@ -101,7 +101,7 @@ class MemberDetail(OtfItemBase): state: None postal_code: None = Field(..., alias="postalCode") phone_number: str = Field(..., alias="phoneNumber") - home_phone: str = Field(..., alias="homePhone") + home_phone: str | None = Field(..., alias="homePhone") work_phone: None = Field(..., alias="workPhone") phone_type: None = Field(..., alias="phoneType") birth_day: date | str = Field(..., alias="birthDay")