Skip to content

Commit 93b3ffc

Browse files
authored
Merge pull request #45 from mapswipe/feat/add-project-stats-update
2 parents b7b1b68 + 9dfa6af commit 93b3ffc

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

functions/definition/project/common.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,17 @@ FbProjectReadonlyType:
5050
resultCount:
5151
type: int
5252

53+
FbProjectUpdateStatsInput:
54+
model: alias
55+
docs: Represents project fields that are valid while updating a project stats
56+
type:
57+
type: object
58+
fields:
59+
contributorCount:
60+
type: int
61+
progress:
62+
type: int
63+
5364
FbProjectUpdateInput:
5465
model: alias
5566
docs: Represents project fields that are valid while updating a project

functions/generated/pyfirebase/pyfirebase_mapswipe/models.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,21 @@ def __setattr__(self, name: str, value: typing.Any) -> None:
138138
super().__setattr__(name, value)
139139

140140

141+
class FbProjectUpdateStatsInput(TypesyncModel):
142+
"""Represents project fields that are valid while updating a project stats"""
143+
144+
contributorCount: int
145+
progress: int
146+
147+
class Config:
148+
use_enum_values = False
149+
extra = "forbid"
150+
151+
@typing.override
152+
def __setattr__(self, name: str, value: typing.Any) -> None:
153+
super().__setattr__(name, value)
154+
155+
141156
class FbProjectUpdateInput(TypesyncModel):
142157
"""Represents project fields that are valid while updating a project"""
143158

0 commit comments

Comments
 (0)