The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | fragment LinearUser on User { |
| 2 | id |
| 3 | name |
| 4 | displayName |
| 5 | |
| 6 | avatarUrl |
| 7 | } |
| 8 | |
| 9 | fragment LinearBot on ActorBot { |
| 10 | name |
| 11 | userDisplayName |
| 12 | avatarUrl |
| 13 | } |
| 14 | |
| 15 | fragment LinearWorkflowState on WorkflowState { |
| 16 | id |
| 17 | name |
| 18 | type |
| 19 | position |
| 20 | } |
| 21 | |
| 22 | fragment LinearLabel on IssueLabel { |
| 23 | id |
| 24 | name |
| 25 | color |
| 26 | } |
| 27 | |
| 28 | fragment LinearTeamLabel on IssueLabel { |
| 29 | ...LinearLabel |
| 30 | description |
| 31 | } |
| 32 | |
| 33 | fragment LinearReaction on Reaction { |
| 34 | id |
| 35 | emoji |
| 36 | user { |
| 37 | ...LinearUser |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | fragment LinearComment on Comment { |
| 42 | id |
| 43 | body |
| 44 | createdAt |
| 45 | url |
| 46 | user { |
| 47 | ...LinearUser |
| 48 | } |
| 49 | botActor { |
| 50 | ...LinearBot |
| 51 | } |
| 52 | reactions { |
| 53 | ...LinearReaction |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | fragment LinearIssue on Issue { |
| 58 | id |
| 59 | identifier |
| 60 | number |
| 61 | title |
| 62 | url |
| 63 | createdAt |
| 64 | updatedAt |
| 65 | completedAt |
| 66 | canceledAt |
| 67 | state { |
| 68 | ...LinearWorkflowState |
| 69 | } |
| 70 | team { |
| 71 | key |
| 72 | } |
| 73 | creator { |
| 74 | ...LinearUser |
| 75 | } |
| 76 | botActor { |
| 77 | ...LinearBot |
| 78 | } |
| 79 | assignee { |
| 80 | ...LinearUser |
| 81 | } |
| 82 | labels { |
| 83 | nodes { |
| 84 | ...LinearLabel |
| 85 | } |
| 86 | } |
| 87 | } |
| 88 | |
| 89 | fragment LinearPageInfo on PageInfo { |
| 90 | hasNextPage |
| 91 | endCursor |
| 92 | } |
| 93 | |
| 94 | query T3Viewer { |
| 95 | viewer { |
| 96 | ...LinearUser |
| 97 | } |
| 98 | organization { |
| 99 | urlKey |
| 100 | } |
| 101 | teams(first: 250) { |
| 102 | nodes { |
| 103 | id |
| 104 | key |
| 105 | name |
| 106 | } |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | query T3Issues($first: Int!, $after: String, $filter: IssueFilter!, $orderBy: PaginationOrderBy!) { |
| 111 | issues(first: $first, after: $after, filter: $filter, orderBy: $orderBy) { |
| 112 | nodes { |
| 113 | ...LinearIssue |
| 114 | } |
| 115 | pageInfo { |
| 116 | ...LinearPageInfo |
| 117 | } |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | query T3Issue($id: String!, $comments: Int!) { |
| 122 | issue(id: $id) { |
| 123 | ...LinearIssue |
| 124 | description |
| 125 | team { |
| 126 | states(first: 100) { |
| 127 | nodes { |
| 128 | ...LinearWorkflowState |
| 129 | } |
| 130 | } |
| 131 | } |
| 132 | comments(first: $comments, orderBy: createdAt) { |
| 133 | nodes { |
| 134 | ...LinearComment |
| 135 | } |
| 136 | pageInfo { |
| 137 | ...LinearPageInfo |
| 138 | } |
| 139 | } |
| 140 | reactions { |
| 141 | ...LinearReaction |
| 142 | } |
| 143 | attachments(first: 50) { |
| 144 | nodes { |
| 145 | url |
| 146 | title |
| 147 | sourceType |
| 148 | metadata |
| 149 | } |
| 150 | } |
| 151 | history(first: 100, orderBy: createdAt) { |
| 152 | nodes { |
| 153 | id |
| 154 | createdAt |
| 155 | actor { |
| 156 | ...LinearUser |
| 157 | } |
| 158 | botActor { |
| 159 | ...LinearBot |
| 160 | } |
| 161 | fromState { |
| 162 | ...LinearWorkflowState |
| 163 | } |
| 164 | toState { |
| 165 | ...LinearWorkflowState |
| 166 | } |
| 167 | fromAssignee { |
| 168 | ...LinearUser |
| 169 | } |
| 170 | toAssignee { |
| 171 | ...LinearUser |
| 172 | } |
| 173 | addedLabels { |
| 174 | ...LinearLabel |
| 175 | } |
| 176 | removedLabels { |
| 177 | ...LinearLabel |
| 178 | } |
| 179 | fromTitle |
| 180 | toTitle |
| 181 | } |
| 182 | } |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | query T3Comments($id: String!, $first: Int!, $after: String) { |
| 187 | issue(id: $id) { |
| 188 | comments(first: $first, after: $after, orderBy: createdAt) { |
| 189 | nodes { |
| 190 | ...LinearComment |
| 191 | } |
| 192 | pageInfo { |
| 193 | ...LinearPageInfo |
| 194 | } |
| 195 | } |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | query T3Team($key: String!) { |
| 200 | teams(first: 1, filter: { key: { eq: $key } }) { |
| 201 | nodes { |
| 202 | id |
| 203 | key |
| 204 | name |
| 205 | states(first: 100) { |
| 206 | nodes { |
| 207 | ...LinearWorkflowState |
| 208 | } |
| 209 | pageInfo { |
| 210 | ...LinearPageInfo |
| 211 | } |
| 212 | } |
| 213 | labels(first: 250) { |
| 214 | nodes { |
| 215 | ...LinearTeamLabel |
| 216 | } |
| 217 | pageInfo { |
| 218 | ...LinearPageInfo |
| 219 | } |
| 220 | } |
| 221 | members(first: 250) { |
| 222 | nodes { |
| 223 | ...LinearUser |
| 224 | } |
| 225 | pageInfo { |
| 226 | ...LinearPageInfo |
| 227 | } |
| 228 | } |
| 229 | templates { |
| 230 | nodes { |
| 231 | id |
| 232 | name |
| 233 | description |
| 234 | content |
| 235 | type |
| 236 | hasFormFields |
| 237 | templateData |
| 238 | } |
| 239 | } |
| 240 | } |
| 241 | } |
| 242 | issueLabels(first: 250, filter: { team: { null: true } }) { |
| 243 | nodes { |
| 244 | ...LinearTeamLabel |
| 245 | } |
| 246 | pageInfo { |
| 247 | ...LinearPageInfo |
| 248 | } |
| 249 | } |
| 250 | } |
| 251 | |
| 252 | mutation T3IssueCreate($input: IssueCreateInput!) { |
| 253 | issueCreate(input: $input) { |
| 254 | success |
| 255 | issue { |
| 256 | identifier |
| 257 | url |
| 258 | } |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | mutation T3IssueUpdate($id: String!, $input: IssueUpdateInput!) { |
| 263 | issueUpdate(id: $id, input: $input) { |
| 264 | success |
| 265 | } |
| 266 | } |
| 267 | |
| 268 | mutation T3CommentCreate($input: CommentCreateInput!) { |
| 269 | commentCreate(input: $input) { |
| 270 | success |
| 271 | } |
| 272 | } |
| 273 | |
| 274 | mutation T3ReactionCreate($input: ReactionCreateInput!) { |
| 275 | reactionCreate(input: $input) { |
| 276 | success |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | mutation T3ReactionDelete($id: String!) { |
| 281 | reactionDelete(id: $id) { |
| 282 | success |
| 283 | } |
| 284 | } |
| 285 | |
| 286 | query T3IssueReactions($id: String!) { |
| 287 | issue(id: $id) { |
| 288 | reactions { |
| 289 | ...LinearReaction |
| 290 | } |
| 291 | } |
| 292 | } |
| 293 | |
| 294 | query T3CommentReactions($id: String!) { |
| 295 | comment(id: $id) { |
| 296 | issue { |
| 297 | id |
| 298 | } |
| 299 | reactions { |
| 300 | ...LinearReaction |
| 301 | } |
| 302 | } |
| 303 | } |