File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44
55[project ]
66name = " trophy"
7- version = " 1.0.11 "
7+ version = " 1.0.12 "
88description = " A Python library for the Trophy API"
99license = {text = " MIT" }
1010readme = " README.md"
Original file line number Diff line number Diff line change 77import typing
88from .completed_achievement_response import CompletedAchievementResponse
99from .metric_event_streak_response import MetricEventStreakResponse
10- from .points_award import PointsAward
10+ from .metric_event_points_response import MetricEventPointsResponse
1111from ..core .pydantic_utilities import IS_PYDANTIC_V2
1212
1313
@@ -45,7 +45,7 @@ class EventResponse(UniversalBaseModel):
4545 The user's current streak for the metric, if the metric has streaks enabled.
4646 """
4747
48- points : typing .Optional [PointsAward ] = pydantic .Field (default = None )
48+ points : typing .Optional [MetricEventPointsResponse ] = pydantic .Field (default = None )
4949 """
5050 The points added by this event, and a breakdown of the points awards that added points.
5151 """
Original file line number Diff line number Diff line change @@ -18,6 +18,16 @@ class PointsAward(UniversalBaseModel):
1818 The points awarded by this trigger
1919 """
2020
21+ date : typing .Optional [str ] = pydantic .Field (default = None )
22+ """
23+ The date these points were awarded, in ISO 8601 format.
24+ """
25+
26+ total : typing .Optional [float ] = pydantic .Field (default = None )
27+ """
28+ The user's total points after this award occurred.
29+ """
30+
2131 trigger : typing .Optional [PointsTrigger ] = None
2232
2333 if IS_PYDANTIC_V2 :
You can’t perform that action at this time.
0 commit comments