diff --git a/functions/definition/organisation.yaml b/functions/definition/organisation.yaml index 61aa63d..dcb3194 100644 --- a/functions/definition/organisation.yaml +++ b/functions/definition/organisation.yaml @@ -8,6 +8,12 @@ FbOrganisation: name: type: string description: + optional: true type: string nameKey: # NOTE: this is deprecated type: string + abbreviation: + optional: true + type: string + isArchived: # This was added on revamp + type: boolean diff --git a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py index c1bfb2a..a863b88 100644 --- a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py +++ b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py @@ -670,14 +670,20 @@ class FbOrganisation(TypesyncModel): """Represents the requesting organisation.""" name: str - description: str + description: TypesyncUndefined | str = UNDEFINED nameKey: str + abbreviation: TypesyncUndefined | str = UNDEFINED + isArchived: bool class Config: use_enum_values = True extra = "forbid" def __setattr__(self, name: str, value: typing.Any) -> None: + if name == "description" and value is None: + raise ValueError("'description' field cannot be set to None") + if name == "abbreviation" and value is None: + raise ValueError("'abbreviation' field cannot be set to None") super().__setattr__(name, value)