Skip to content

Commit 207e90c

Browse files
chore(user_group): add create, update input type and readonly type.
1 parent 61eafe8 commit 207e90c

File tree

3 files changed

+179
-226
lines changed

3 files changed

+179
-226
lines changed

functions/definition/userGroup.yaml

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# yaml-language-server: $schema=https://raw.githubusercontent.com/toggle-corp/typesync/refs/tags/v1.0.0/schema.local.json
22

3-
FbUserGroup:
3+
FbUserGroupReadOnlyType:
44
model: alias
55
# path: userGroups/{userGroupId}
66
docs: Represents a usergroup
@@ -19,10 +19,46 @@ FbUserGroup:
1919
type: string
2020
deprecated: true
2121
users:
22+
optional: true
2223
type:
2324
type: map
2425
valueType: unknown
2526

27+
FbUserGroupCreateOnlyInput:
28+
model: alias
29+
# path: userGroups/{userGroupId}
30+
docs: Represents a usergroup
31+
type:
32+
type: object
33+
fields:
34+
createdAt:
35+
type: int
36+
createdBy:
37+
type: string
38+
description:
39+
type: string
40+
name:
41+
type: string
42+
nameKey:
43+
type: string
44+
deprecated: true
45+
46+
FbUserGroupUpdateInput:
47+
model: alias
48+
# path: userGroups/{userGroupId}
49+
docs: Represents a usergroup
50+
type:
51+
type: object
52+
fields:
53+
description:
54+
type: string
55+
name:
56+
type: string
57+
nameKey:
58+
type: string
59+
deprecated: true
60+
61+
2662
FbUserGroupObsolete:
2763
model: alias
2864
# path: user_groups/{userGroupId}

functions/generated/pyfirebase/pyfirebase_mapswipe/extended_models.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,14 @@ class Config: # type: ignore[reportIncompatibleVariableOverride]
3737
use_enum_values = True
3838
frozen = True
3939
extra = "forbid"
40+
41+
42+
class FbUserGroup(
43+
models.FbUserGroupCreateOnlyInput,
44+
models.FbUserGroupUpdateInput,
45+
models.FbUserGroupReadOnlyType,
46+
):
47+
class Config: # type: ignore[reportIncompatibleVariableOverride]
48+
use_enum_values = True
49+
frozen = True
50+
extra = "forbid"

0 commit comments

Comments
 (0)