Skip to content

Commit beee417

Browse files
committed
refactor: split announcement, team, organisation types
1 parent bd93940 commit beee417

File tree

4 files changed

+37
-44
lines changed

4 files changed

+37
-44
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FbAnnouncement:
2+
model: document
3+
path: v2/announcement
4+
docs: Represents app announcements for the contributors.
5+
type:
6+
type: object
7+
fields:
8+
url:
9+
type: string
10+
text:
11+
type: string

functions/definition/models.yaml

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -105,49 +105,6 @@ FbEnumProjectType:
105105
- label: 'COMPLETENESS'
106106
value: 4
107107

108-
# ANNOUNCEMENT
109-
110-
FbAnnouncement:
111-
model: document
112-
path: v2/announcement
113-
type:
114-
type: object
115-
fields:
116-
url:
117-
type: string
118-
text:
119-
type: string
120-
121-
# ORGANISATION
122-
123-
FbOrganisation:
124-
model: document
125-
path: organisations/{organisation_id}
126-
type:
127-
type: object
128-
fields:
129-
name:
130-
type: string
131-
description:
132-
type: string
133-
# NOTE: We can remove this
134-
nameKey:
135-
type: string
136-
137-
# TEAM
138-
139-
FbTeam:
140-
model: document
141-
path: teams/{teamId}
142-
docs: Represents a team
143-
type:
144-
type: object
145-
fields:
146-
teamName:
147-
type: string
148-
teamToken:
149-
type: timestamp
150-
151108
# PROJECT
152109

153110
FbBaseObjCustomSubOption:
@@ -405,7 +362,7 @@ FbProjectValidateCreateOnlyInput:
405362
type: object
406363
fields:
407364
customOptions:
408-
optional: true
365+
# optional: true
409366
type:
410367
type: list
411368
elementType: FbObjCustomOption
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FbOrganisation:
2+
model: document
3+
path: organisations/{organisation_id}
4+
docs: Represents the requesting organisation.
5+
type:
6+
type: object
7+
fields:
8+
name:
9+
type: string
10+
description:
11+
type: string
12+
nameKey: # NOTE: this is deprecated
13+
type: string

functions/definition/team.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
FbTeam:
2+
model: document
3+
path: teams/{teamId}
4+
docs: Represents a team to limit project visibility.
5+
type:
6+
type: object
7+
fields:
8+
teamName:
9+
type: string
10+
teamToken:
11+
type: timestamp
12+

0 commit comments

Comments
 (0)