diff --git a/functions/definition/tutorial/project_types/locate.yaml b/functions/definition/tutorial/project_types/locate.yaml new file mode 100644 index 0000000..abc158c --- /dev/null +++ b/functions/definition/tutorial/project_types/locate.yaml @@ -0,0 +1,25 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json + +FbLocateTutorial: + model: alias + type: + type: object + fields: + projectType: + type: + type: literal + value: 9 + tileServer: + type: FbObjRasterTileServer + subGridSize: + type: FBEnumSubGridSize + zoomLevel: + type: int + +FbLocateTutorialTask: + model: alias + type: + type: object + fields: + url: + type: string diff --git a/functions/definition/tutorial/project_types/tileMapService.yaml b/functions/definition/tutorial/project_types/tileMapService.yaml index 7e7eb9f..ec3e58e 100644 --- a/functions/definition/tutorial/project_types/tileMapService.yaml +++ b/functions/definition/tutorial/project_types/tileMapService.yaml @@ -25,6 +25,9 @@ FbTileMapServiceTutorialTask: type: string referenceAnswer: type: int + taskPartitionIndex: + type: int + optional: true screen: type: int taskId: diff --git a/functions/generated/pyfirebase/pyfirebase_mapswipe/extended_models.py b/functions/generated/pyfirebase/pyfirebase_mapswipe/extended_models.py index 6f04f84..8957a26 100644 --- a/functions/generated/pyfirebase/pyfirebase_mapswipe/extended_models.py +++ b/functions/generated/pyfirebase/pyfirebase_mapswipe/extended_models.py @@ -76,3 +76,13 @@ class Config: # type: ignore[reportIncompatibleVariableOverride] use_enum_values = True frozen = True extra = "forbid" + + +class FbLocateTutorialTaskComplete( + models.FbTileMapServiceTutorialTask, + models.FbLocateTutorialTask, +): + class Config: # type: ignore[reportIncompatibleVariableOverride] + use_enum_values = True + frozen = True + extra = "forbid" diff --git a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py index 4eeb100..81eb479 100644 --- a/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py +++ b/functions/generated/pyfirebase/pyfirebase_mapswipe/models.py @@ -968,6 +968,33 @@ def __setattr__(self, name: str, value: typing.Any) -> None: super().__setattr__(name, value) +class FbLocateTutorial(TypesyncModel): + projectType: typing.Literal[9] + tileServer: FbObjRasterTileServer + subGridSize: FBEnumSubGridSize + zoomLevel: 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 FbLocateTutorialTask(TypesyncModel): + url: str + + class Config: + use_enum_values = False + extra = "forbid" + + @typing.override + def __setattr__(self, name: str, value: typing.Any) -> None: + super().__setattr__(name, value) + + class FbStreetTutorial(TypesyncModel): projectType: typing.Literal[7] customOptions: list[FbObjCustomOption] | TypesyncUndefined | None = UNDEFINED @@ -1020,6 +1047,7 @@ class FbTileMapServiceTutorialTask(TypesyncModel): groupId: int projectId: str referenceAnswer: int + taskPartitionIndex: int | TypesyncUndefined | None = UNDEFINED screen: int taskId: str taskId_real: str @@ -1032,6 +1060,8 @@ class Config: @typing.override def __setattr__(self, name: str, value: typing.Any) -> None: + if name == "taskPartitionIndex" and value is None: + raise ValueError("'taskPartitionIndex' field cannot be set to None") super().__setattr__(name, value)