| 1 |
mutation publish( |
| 2 |
$domain: String! |
| 3 |
$content: Upload! |
| 4 |
$protocol: Protocol! |
| 5 |
$subdirectory: String! |
| 6 |
$siteConfig: SiteConfig! |
| 7 |
) { |
| 8 |
publish( |
| 9 |
domain: $domain |
| 10 |
content: $content |
| 11 |
protocol: $protocol |
| 12 |
subdirectory: $subdirectory |
| 13 |
siteConfig: $siteConfig |
| 14 |
) { |
| 15 |
domain |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
mutation unpublish($domain: String!, $protocol: Protocol!) { |
| 20 |
unpublish(domain: $domain, protocol: $protocol) { |
| 21 |
domain |
| 22 |
} |
| 23 |
} |
| 24 |
|
| 25 |
mutation createUserWebhook($config: UserWebhookInput!) { |
| 26 |
createUserWebhook(config: $config) { |
| 27 |
id |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
mutation deleteUserWebhook($id: Int!) { |
| 32 |
deleteUserWebhook(id: $id) { |
| 33 |
id |
| 34 |
} |
| 35 |
} |
| 36 |
|
| 37 |
mutation updateSiteACL($siteId: Int!, $userId: Int!, $input: ACLInput!) { |
| 38 |
updateSiteACL(siteId: $siteId, userId: $userId, input: $input) { |
| 39 |
entity { |
| 40 |
canonicalName |
| 41 |
} |
| 42 |
} |
| 43 |
} |
| 44 |
|
| 45 |
mutation deleteSiteACL($id: Int!) { |
| 46 |
deleteSiteACL(id: $id) { |
| 47 |
entity { |
| 48 |
canonicalName |
| 49 |
} |
| 50 |
} |
| 51 |
} |
| 52 |
|
| 53 |
query sites($cursor: Cursor) { |
| 54 |
sites(cursor: $cursor) { |
| 55 |
results { |
| 56 |
id |
| 57 |
domain |
| 58 |
protocol |
| 59 |
} |
| 60 |
cursor |
| 61 |
} |
| 62 |
} |
| 63 |
|
| 64 |
query userWebhooks($cursor: Cursor) { |
| 65 |
userWebhooks(cursor: $cursor) { |
| 66 |
results { |
| 67 |
id |
| 68 |
url |
| 69 |
} |
| 70 |
cursor |
| 71 |
} |
| 72 |
} |
| 73 |
|
| 74 |
query userID($username: String!) { |
| 75 |
user(username: $username) { |
| 76 |
id |
| 77 |
} |
| 78 |
} |
| 79 |
|
| 80 |
query acls($domain: String!, $protocol: Protocol!, $cursor: Cursor) { |
| 81 |
site(domain: $domain, protocol: $protocol) { |
| 82 |
acls(cursor: $cursor) { |
| 83 |
results { |
| 84 |
id |
| 85 |
created |
| 86 |
entity { |
| 87 |
canonicalName |
| 88 |
} |
| 89 |
publish |
| 90 |
} |
| 91 |
cursor |
| 92 |
} |
| 93 |
} |
| 94 |
} |