From 9dfa6af77e93ef22c4e090cd955f435538bc4a0f Mon Sep 17 00:00:00 2001 From: tnagorra Date: Wed, 15 Oct 2025 13:21:20 +0545 Subject: [PATCH] feat(project): add input to update only project stats --- functions/definition/project/common.yaml | 11 +++++++++++ .../pyfirebase/pyfirebase_mapswipe/models.py | 15 +++++++++++++++ 2 files changed, 26 insertions(+) diff --git a/functions/definition/project/common.yaml b/functions/definition/project/common.yaml index 5f5c3b9..43a0763 100644 --- a/functions/definition/project/common.yaml +++ b/functions/definition/project/common.yaml @@ -50,6 +50,17 @@ FbProjectReadonlyType: resultCount: type: int +FbProjectUpdateStatsInput: + model: alias + docs: Represents project fields that are valid while updating a project stats + type: + type: object + fields: + contributorCount: + type: int + progress: + type: int + FbProjectUpdateInput: model: alias docs: Represents project fields that are valid while updating a project diff --git a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py index cd7d019..72d9fd0 100644 --- a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py +++ b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py @@ -138,6 +138,21 @@ def __setattr__(self, name: str, value: typing.Any) -> None: super().__setattr__(name, value) +class FbProjectUpdateStatsInput(TypesyncModel): + """Represents project fields that are valid while updating a project stats""" + + contributorCount: int + progress: int + + class Config: + use_enum_values = False + extra = "forbid" + + @typing.override + def __setattr__(self, name: str, value: typing.Any) -> None: + super().__setattr__(name, value) + + class FbProjectUpdateInput(TypesyncModel): """Represents project fields that are valid while updating a project"""