| 1 |
mutation deleteMailingList($id: Int!) { |
| 2 |
deleteMailingList(id: $id) { |
| 3 |
name |
| 4 |
} |
| 5 |
} |
| 6 |
|
| 7 |
query mailingLists($cursor: Cursor) { |
| 8 |
me { |
| 9 |
lists(cursor: $cursor) { |
| 10 |
...lists |
| 11 |
} |
| 12 |
} |
| 13 |
} |
| 14 |
|
| 15 |
query exportMailingList($username: String!, $name: String!) { |
| 16 |
user(username: $username) { |
| 17 |
list(name: $name) { |
| 18 |
...mailingListExport |
| 19 |
} |
| 20 |
} |
| 21 |
} |
| 22 |
|
| 23 |
query exportMailingLists($cursor: Cursor) { |
| 24 |
me { |
| 25 |
lists(cursor: $cursor) { |
| 26 |
results { |
| 27 |
...mailingListExport |
| 28 |
} |
| 29 |
cursor |
| 30 |
} |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
fragment mailingListExport on MailingList { |
| 35 |
name |
| 36 |
description |
| 37 |
visibility |
| 38 |
permitMime |
| 39 |
rejectMime |
| 40 |
archive |
| 41 |
} |
| 42 |
|
| 43 |
query mailingListsByUser($username: String!, $cursor: Cursor) { |
| 44 |
user(username: $username) { |
| 45 |
lists(cursor: $cursor) { |
| 46 |
...lists |
| 47 |
} |
| 48 |
} |
| 49 |
} |
| 50 |
|
| 51 |
fragment lists on MailingListCursor { |
| 52 |
results { |
| 53 |
name |
| 54 |
description |
| 55 |
visibility |
| 56 |
} |
| 57 |
cursor |
| 58 |
} |
| 59 |
|
| 60 |
query mailingListIDByName($name: String!) { |
| 61 |
me { |
| 62 |
list(name: $name) { |
| 63 |
id |
| 64 |
} |
| 65 |
} |
| 66 |
} |
| 67 |
|
| 68 |
query mailingListIDByUser($username: String!, $name: String!) { |
| 69 |
user(username: $username) { |
| 70 |
list(name: $name) { |
| 71 |
id |
| 72 |
} |
| 73 |
} |
| 74 |
} |
| 75 |
|
| 76 |
query listPatches($name: String!, $cursor: Cursor) { |
| 77 |
me { |
| 78 |
list(name: $name) { |
| 79 |
...patchsetsByList |
| 80 |
} |
| 81 |
} |
| 82 |
} |
| 83 |
|
| 84 |
query listPatchesByUser($username: String!, $name: String!, $cursor: Cursor) { |
| 85 |
user(username: $username) { |
| 86 |
list(name: $name) { |
| 87 |
...patchsetsByList |
| 88 |
} |
| 89 |
} |
| 90 |
} |
| 91 |
|
| 92 |
fragment patchsetsByList on MailingList { |
| 93 |
patches(cursor: $cursor) { |
| 94 |
results { |
| 95 |
id |
| 96 |
subject |
| 97 |
status |
| 98 |
created |
| 99 |
version |
| 100 |
prefix |
| 101 |
submitter { |
| 102 |
canonicalName |
| 103 |
} |
| 104 |
} |
| 105 |
cursor |
| 106 |
} |
| 107 |
} |
| 108 |
|
| 109 |
query patches($cursor: Cursor) { |
| 110 |
me { |
| 111 |
...patchsets |
| 112 |
} |
| 113 |
} |
| 114 |
|
| 115 |
query patchesByUser($username: String!, $cursor: Cursor) { |
| 116 |
user(username: $username) { |
| 117 |
...patchsets |
| 118 |
} |
| 119 |
} |
| 120 |
|
| 121 |
fragment patchsets on User { |
| 122 |
patches(cursor: $cursor) { |
| 123 |
results { |
| 124 |
id |
| 125 |
subject |
| 126 |
status |
| 127 |
created |
| 128 |
version |
| 129 |
prefix |
| 130 |
list { |
| 131 |
name |
| 132 |
owner { |
| 133 |
canonicalName |
| 134 |
} |
| 135 |
} |
| 136 |
} |
| 137 |
cursor |
| 138 |
} |
| 139 |
} |
| 140 |
|
| 141 |
query patchsetById($id: Int!, $cursor: Cursor) { |
| 142 |
patchset(id: $id) { |
| 143 |
patches(cursor: $cursor) { |
| 144 |
results { |
| 145 |
date |
| 146 |
body |
| 147 |
subject |
| 148 |
header(want: "From") |
| 149 |
} |
| 150 |
cursor |
| 151 |
} |
| 152 |
} |
| 153 |
} |
| 154 |
|
| 155 |
query completePatchsetId($name: String!) { |
| 156 |
me { |
| 157 |
list(name: $name) { |
| 158 |
...completePatchset |
| 159 |
} |
| 160 |
} |
| 161 |
} |
| 162 |
|
| 163 |
query completePatchsetIdByUser($username: String!, $name: String!) { |
| 164 |
user(username: $username) { |
| 165 |
list(name: $name) { |
| 166 |
...completePatchset |
| 167 |
} |
| 168 |
} |
| 169 |
} |
| 170 |
|
| 171 |
fragment completePatchset on MailingList { |
| 172 |
patches { |
| 173 |
results { |
| 174 |
id |
| 175 |
subject |
| 176 |
status |
| 177 |
version |
| 178 |
prefix |
| 179 |
} |
| 180 |
} |
| 181 |
} |
| 182 |
|
| 183 |
query aclByListName($name: String!, $cursor: Cursor) { |
| 184 |
me { |
| 185 |
...acl |
| 186 |
} |
| 187 |
} |
| 188 |
|
| 189 |
query aclByUser($username: String!, $name: String!, $cursor: Cursor) { |
| 190 |
user(username: $username) { |
| 191 |
...acl |
| 192 |
} |
| 193 |
} |
| 194 |
|
| 195 |
fragment acl on User { |
| 196 |
list(name: $name) { |
| 197 |
defaultACL { |
| 198 |
browse |
| 199 |
reply |
| 200 |
post |
| 201 |
moderate |
| 202 |
} |
| 203 |
acl(cursor: $cursor) { |
| 204 |
results { |
| 205 |
id |
| 206 |
created |
| 207 |
entity { |
| 208 |
canonicalName |
| 209 |
} |
| 210 |
browse |
| 211 |
reply |
| 212 |
post |
| 213 |
moderate |
| 214 |
} |
| 215 |
cursor |
| 216 |
} |
| 217 |
} |
| 218 |
} |
| 219 |
|
| 220 |
query userWebhooks($cursor: Cursor) { |
| 221 |
userWebhooks(cursor: $cursor) { |
| 222 |
results { |
| 223 |
id |
| 224 |
url |
| 225 |
} |
| 226 |
cursor |
| 227 |
} |
| 228 |
} |
| 229 |
|
| 230 |
query archive($name: String!) { |
| 231 |
me { |
| 232 |
list(name: $name) { |
| 233 |
archive |
| 234 |
} |
| 235 |
} |
| 236 |
} |
| 237 |
|
| 238 |
query archiveByUser($username: String!, $name: String!) { |
| 239 |
user(username: $username) { |
| 240 |
list(name: $name) { |
| 241 |
archive |
| 242 |
} |
| 243 |
} |
| 244 |
} |
| 245 |
|
| 246 |
query completeLists { |
| 247 |
me { |
| 248 |
lists { |
| 249 |
results { |
| 250 |
name |
| 251 |
} |
| 252 |
} |
| 253 |
} |
| 254 |
} |
| 255 |
|
| 256 |
query mailingListWebhooks($name: String!, $cursor: Cursor) { |
| 257 |
me { |
| 258 |
list(name: $name) { |
| 259 |
...mailingListWebhooks |
| 260 |
} |
| 261 |
} |
| 262 |
} |
| 263 |
|
| 264 |
query mailingListWebhooksByUser( |
| 265 |
$username: String! |
| 266 |
$name: String! |
| 267 |
$cursor: Cursor |
| 268 |
) { |
| 269 |
user(username: $username) { |
| 270 |
list(name: $name) { |
| 271 |
...mailingListWebhooks |
| 272 |
} |
| 273 |
} |
| 274 |
} |
| 275 |
|
| 276 |
fragment mailingListWebhooks on MailingList { |
| 277 |
webhooks(cursor: $cursor) { |
| 278 |
results { |
| 279 |
id |
| 280 |
url |
| 281 |
} |
| 282 |
cursor |
| 283 |
} |
| 284 |
} |
| 285 |
|
| 286 |
query subscriptions($cursor: Cursor) { |
| 287 |
subscriptions(cursor: $cursor) { |
| 288 |
results { |
| 289 |
created |
| 290 |
__typename |
| 291 |
... on MailingListSubscription { |
| 292 |
list { |
| 293 |
name |
| 294 |
owner { |
| 295 |
canonicalName |
| 296 |
} |
| 297 |
} |
| 298 |
} |
| 299 |
} |
| 300 |
cursor |
| 301 |
} |
| 302 |
} |
| 303 |
|
| 304 |
query mailingListDescription($name: String!) { |
| 305 |
me { |
| 306 |
list(name: $name) { |
| 307 |
description |
| 308 |
} |
| 309 |
} |
| 310 |
} |
| 311 |
|
| 312 |
query mailingListDescriptionByUser($username: String!, $name: String!) { |
| 313 |
user(username: $username) { |
| 314 |
list(name: $name) { |
| 315 |
description |
| 316 |
} |
| 317 |
} |
| 318 |
} |
| 319 |
|
| 320 |
mutation mailingListSubscribe($listID: Int!) { |
| 321 |
mailingListSubscribe(listID: $listID) { |
| 322 |
list { |
| 323 |
name |
| 324 |
owner { |
| 325 |
canonicalName |
| 326 |
} |
| 327 |
} |
| 328 |
} |
| 329 |
} |
| 330 |
|
| 331 |
mutation mailingListUnsubscribe($listID: Int!) { |
| 332 |
mailingListUnsubscribe(listID: $listID) { |
| 333 |
list { |
| 334 |
name |
| 335 |
owner { |
| 336 |
canonicalName |
| 337 |
} |
| 338 |
} |
| 339 |
} |
| 340 |
} |
| 341 |
|
| 342 |
mutation updatePatchset($id: Int!, $status: PatchsetStatus!) { |
| 343 |
updatePatchset(id: $id, status: $status) { |
| 344 |
submitter { |
| 345 |
canonicalName |
| 346 |
} |
| 347 |
subject |
| 348 |
} |
| 349 |
} |
| 350 |
|
| 351 |
mutation deleteACL($id: Int!) { |
| 352 |
deleteACL(id: $id) { |
| 353 |
entity { |
| 354 |
canonicalName |
| 355 |
} |
| 356 |
list { |
| 357 |
name |
| 358 |
} |
| 359 |
} |
| 360 |
} |
| 361 |
|
| 362 |
mutation createMailingList( |
| 363 |
$name: String! |
| 364 |
$description: String |
| 365 |
$visibility: Visibility! |
| 366 |
) { |
| 367 |
createMailingList( |
| 368 |
name: $name |
| 369 |
description: $description |
| 370 |
visibility: $visibility |
| 371 |
) { |
| 372 |
id |
| 373 |
name |
| 374 |
} |
| 375 |
} |
| 376 |
|
| 377 |
mutation updateMailingList($id: Int!, $input: MailingListInput!) { |
| 378 |
updateMailingList(id: $id, input: $input) { |
| 379 |
id |
| 380 |
} |
| 381 |
} |
| 382 |
|
| 383 |
mutation clearDescription($id: Int!) { |
| 384 |
updateMailingList(id: $id, input: { description: null }) { |
| 385 |
id |
| 386 |
} |
| 387 |
} |
| 388 |
|
| 389 |
mutation importMailingListSpool($id: Int!, $spool: Upload!) { |
| 390 |
importMailingListSpool(listID: $id, spool: $spool) |
| 391 |
} |
| 392 |
|
| 393 |
mutation createUserWebhook($config: UserWebhookInput!) { |
| 394 |
createUserWebhook(config: $config) { |
| 395 |
id |
| 396 |
} |
| 397 |
} |
| 398 |
|
| 399 |
mutation deleteUserWebhook($id: Int!) { |
| 400 |
deleteUserWebhook(id: $id) { |
| 401 |
id |
| 402 |
} |
| 403 |
} |
| 404 |
|
| 405 |
mutation createMailingListWebhook( |
| 406 |
$listId: Int! |
| 407 |
$config: MailingListWebhookInput! |
| 408 |
) { |
| 409 |
createMailingListWebhook(listId: $listId, config: $config) { |
| 410 |
id |
| 411 |
} |
| 412 |
} |
| 413 |
|
| 414 |
mutation deleteMailingListWebhook($id: Int!) { |
| 415 |
deleteMailingListWebhook(id: $id) { |
| 416 |
id |
| 417 |
} |
| 418 |
} |
| 419 |
|
| 420 |
query getPreferences { |
| 421 |
preferences { |
| 422 |
copySelf |
| 423 |
} |
| 424 |
} |
| 425 |
|
| 426 |
mutation updatePreferences($prefs: PreferencesInput!) { |
| 427 |
updatePreferences(preferences: $prefs) { |
| 428 |
copySelf |
| 429 |
} |
| 430 |
} |