Skip to content

Commit 3d079b6

Browse files
committed
feat(locate): add customOptions and exportMeta schema
1 parent c60cd87 commit 3d079b6

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

functions/definition/project/common.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ FbEnumProjectType:
4141
- label: 'STREET'
4242
value: 7
4343
- label: 'LOCATE'
44-
value: 8
44+
value: 9
4545

4646
FbProjectReadonlyType:
4747
model: alias

functions/definition/project/project_types/locate.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ FBEnumSubGridSize:
1212
- label: 'SIZE_8X8'
1313
value: '8x8'
1414

15+
1516
FbProjectLocateCreateOnlyInput:
1617
model: alias
1718
docs: Represents LOCATE project fields that are valid while creating a project
@@ -24,3 +25,12 @@ FbProjectLocateCreateOnlyInput:
2425
type: FbObjRasterTileServer
2526
subGridSize:
2627
type: FBEnumSubGridSize
28+
customOptions:
29+
optional: true
30+
type:
31+
type: list
32+
elementType: FbObjCustomOption
33+
exportMetaKey:
34+
type: string
35+
exportMetaValue:
36+
type: string

functions/generated/pyfirebase/pyfirebase_mapswipe/models.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class FbEnumProjectType(enum.Enum):
122122
COMPARE = 3
123123
COMPLETENESS = 4
124124
STREET = 7
125-
LOCATE = 8
125+
LOCATE = 9
126126

127127

128128
class FbProjectReadonlyType(TypesyncModel):
@@ -602,13 +602,18 @@ class FbProjectLocateCreateOnlyInput(TypesyncModel):
602602
zoomLevel: int
603603
tileServer: FbObjRasterTileServer
604604
subGridSize: FBEnumSubGridSize
605+
customOptions: list[FbObjCustomOption] | TypesyncUndefined | None = UNDEFINED
606+
exportMetaKey: str
607+
exportMetaValue: str
605608

606609
class Config:
607610
use_enum_values = False
608611
extra = "forbid"
609612

610613
@typing.override
611614
def __setattr__(self, name: str, value: typing.Any) -> None:
615+
if name == "customOptions" and value is None:
616+
raise ValueError("'customOptions' field cannot be set to None")
612617
super().__setattr__(name, value)
613618

614619

0 commit comments

Comments
 (0)