Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions functions/definition/project/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ FbProjectReadonlyType:
type:
type: object
fields:
contributorCount:
type: int
progress:
type: int
resultCount:
type: int

Expand Down Expand Up @@ -99,6 +95,13 @@ FbProjectUpdateInput:
type: string
status:
type: FbEnumProjectStatus
maxTasksPerUser:
optional: true
type: int
contributorCount:
type: int
progress:
type: int

FbProjectCreateOnlyInput:
model: alias
Expand All @@ -114,9 +117,6 @@ FbProjectCreateOnlyInput:
type: int
groupSize:
type: int
maxTasksPerUser:
optional: true
type: int
projectId:
type: string
projectType:
Expand Down
10 changes: 5 additions & 5 deletions functions/generated/pyfirebase/pyfirebase_mapswipe/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,6 @@ class FbEnumProjectType(enum.Enum):
class FbProjectReadonlyType(TypesyncModel):
"""Represents project fields that cannot be updated from backend"""

contributorCount: int
progress: int
resultCount: int

class Config:
Expand Down Expand Up @@ -159,6 +157,9 @@ class FbProjectUpdateInput(TypesyncModel):
manualUrl: str | TypesyncUndefined | None = UNDEFINED
teamId: str | TypesyncUndefined | None = UNDEFINED
status: FbEnumProjectStatus
maxTasksPerUser: int | TypesyncUndefined | None = UNDEFINED
contributorCount: int
progress: int

class Config:
use_enum_values = False
Expand All @@ -176,6 +177,8 @@ def __setattr__(self, name: str, value: typing.Any) -> None:
raise ValueError("'manualUrl' field cannot be set to None")
if name == "teamId" and value is None:
raise ValueError("'teamId' field cannot be set to None")
if name == "maxTasksPerUser" and value is None:
raise ValueError("'maxTasksPerUser' field cannot be set to None")
super().__setattr__(name, value)


Expand All @@ -186,7 +189,6 @@ class FbProjectCreateOnlyInput(TypesyncModel):
createdBy: str
groupMaxSize: int
groupSize: int
maxTasksPerUser: int | TypesyncUndefined | None = UNDEFINED
projectId: str
projectType: FbEnumProjectType
requiredResults: int
Expand All @@ -198,8 +200,6 @@ class Config:

@typing.override
def __setattr__(self, name: str, value: typing.Any) -> None:
if name == "maxTasksPerUser" and value is None:
raise ValueError("'maxTasksPerUser' field cannot be set to None")
super().__setattr__(name, value)


Expand Down