-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.gql
More file actions
286 lines (241 loc) · 6.61 KB
/
schema.gql
File metadata and controls
286 lines (241 loc) · 6.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
scalar Date
"""
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSONObject @specifiedBy(url: "http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf")
"""The `Long` scalar type represents 52-bit integers"""
scalar Long
type Query {
supportedSocialAuthProviders: [String]
"""Find all Boards"""
boardsAll(limit: Int, offset: Int, fields: [String], sort: [String], search: String, searchFields: [String], scope: [String], query: JSONObject): [Board]
"""Number of Boards"""
boardsCount(search: String, searchFields: [String], scope: [String], query: JSONObject): Int!
"""List boards (with pagination)"""
boards(page: Int, pageSize: Int, fields: [String], sort: [String], search: String, searchFields: [String], scope: [String], query: JSONObject): BoardListResponse
"""Get a Board by ID"""
boardById(id: String!, fields: [String], scopes: [String]): Board
"""Find all Lists"""
listsAll(board: String!, limit: Int, offset: Int, fields: [String], sort: [String], search: String, searchFields: [String], scope: [String], query: JSONObject): [List]
"""Number of Lists"""
listsCount(board: String!, search: String, searchFields: [String], scope: [String], query: JSONObject): Int!
"""List lists (with pagination)"""
lists(board: String!, page: Int, pageSize: Int, fields: [String], sort: [String], search: String, searchFields: [String], scope: [String], query: JSONObject): ListListResponse
"""Get a List by ID"""
listById(id: String!, fields: [String], scopes: [String]): List
"""Find all Cards"""
cardsAll(list: String!, limit: Int, offset: Int, fields: [String], sort: [String], search: String, searchFields: [String], scope: [String], query: JSONObject): [Card]
"""Number of Cards"""
cardsCount(list: String!, search: String, searchFields: [String], scope: [String], query: JSONObject): Int!
"""List cards (with pagination)"""
cards(list: String!, page: Int, pageSize: Int, fields: [String], sort: [String], search: String, searchFields: [String], scope: [String], query: JSONObject): CardListResponse
"""Get a Card by ID"""
cardById(id: String!, fields: [String], scopes: [String]): Card
me: Profile
}
type Mutation {
"""Create a new Board"""
boardCreate(input: BoardCreateInput!): Board!
"""Update an existing Board"""
boardUpdate(input: BoardUpdateInput!): Board!
"""Delete an existing Board"""
boardRemove(id: String!): String!
boardAddMembers(id: String!, members: [String!]!): Board!
boardRemoveMembers(id: String!, members: [String!]!): Board!
boardTransferOwnership(id: String!, owner: String!): Board!
boardArchive(id: String!): Board!
boardUnarchive(id: String!): Board!
"""Create a new List"""
listCreate(input: ListCreateInput!): List!
"""Update an existing List"""
listUpdate(input: ListUpdateInput!): List!
"""Delete an existing List"""
listRemove(id: String!): String!
"""Create a new Card"""
cardCreate(input: CardCreateInput!): Card!
"""Update an existing Card"""
cardUpdate(input: CardUpdateInput!): Card!
"""Delete an existing Card"""
cardRemove(id: String!): String!
register(username: String!, fullName: String!, email: String!, password: String, avatar: String): Profile!
login(email: String!, password: String, token: String): LoginResponse!
accountVerify(token: String!): LoginResponse!
passwordlessLogin(token: String!): LoginResponse!
forgotPassword(email: String!): Boolean!
resetPassword(token: String!, password: String!): LoginResponse!
accountLink(id: String, provider: String, profile: JSONObject): Profile!
accountUnlink(id: String, provider: String): Profile!
accountEnable2FA: Enable2FAResponse!
accountFinalize2FA(token: String): Boolean!
accountDisable2FA(token: String!): Boolean!
}
type BoardLabel {
id: Int
name: String!
color: String!
}
type Board {
id: String!
owner: Member
title: String!
slug: String
description: String
position: Int
public: Boolean
labels: [BoardLabel]
members: [Member]
lists(page: Int, pageSize: Int, sort: String): ListListResponse
archived: Boolean
archivedAt: Long
createdAt: Long
updatedAt: Long
}
type BoardListResponse {
total: Int!
page: Int!
pageSize: Int!
totalPages: Int!
rows: [Board]!
}
input CreateBoardLabelInput {
id: Int
name: String!
color: String!
}
input BoardCreateInput {
title: String!
description: String
position: Int
public: Boolean
labels: [CreateBoardLabelInput]
}
input UpdateBoardLabelInput {
id: Int
name: String
color: String
}
input BoardUpdateInput {
id: String!
title: String
description: String
position: Int
public: Boolean
labels: [UpdateBoardLabelInput]
}
type List {
id: String!
board: Board!
title: String!
description: String
color: String
position: Float
cards(page: Int, pageSize: Int, sort: String): CardListResponse
createdAt: Long
updatedAt: Long
}
type ListListResponse {
total: Int!
page: Int!
pageSize: Int!
totalPages: Int!
rows: [List]!
}
input ListCreateInput {
board: String!
title: String!
description: String
color: String
position: Float
}
input ListUpdateInput {
id: String!
board: String
title: String
description: String
color: String
position: Float
}
type Card {
id: String!
board: Board
list: List!
title: String!
description: String
color: String
position: Float
labels: [Int]
members: [Member]
archived: Boolean
archivedAt: Long
createdAt: Long
updatedAt: Long
}
type CardListResponse {
total: Int!
page: Int!
pageSize: Int!
totalPages: Int!
rows: [Card]!
}
input CardCreateInput {
board: String
list: String!
title: String!
description: String
color: String
position: Float
labels: [Int]
members: String
}
input CardUpdateInput {
id: String!
board: String
list: String
title: String
description: String
color: String
position: Float
labels: [Int]
members: String
}
type LoginResponse {
token: String
passwordless: Boolean
email: String
}
type Enable2FAResponse {
otpauthURL: String!
secret: String!
}
type Member {
id: String!
username: String
fullName: String!
avatar: String
}
type ProfileSocialLink {
github: String
google: String
facebook: String
}
type ProfileTotp {
enabled: Boolean
}
type Profile {
id: String!
username: String
fullName: String!
email: String!
passwordless: Boolean
avatar: String
roles: [String]
socialLinks: ProfileSocialLink
status: Int
plan: String
verified: Boolean
token: String
totp: ProfileTotp
createdAt: Long
updatedAt: Long
lastLoginAt: Long
}