(key: IntegrationTaskKey, params: { id: string })
| 198 | } |
| 199 | |
| 200 | attachment(key: IntegrationTaskKey, params: { id: string }): LinearReturnType<Attachment> { |
| 201 | return this.runTask( |
| 202 | key, |
| 203 | async (client) => { |
| 204 | const entity = await client.attachment(params.id); |
| 205 | return serializeLinearOutput(entity); |
| 206 | }, |
| 207 | { |
| 208 | name: "Get Attachment", |
| 209 | params, |
| 210 | properties: [{ label: "Attachment ID", text: params.id }], |
| 211 | } |
| 212 | ); |
| 213 | } |
| 214 | |
| 215 | attachments( |
| 216 | key: IntegrationTaskKey, |
nothing calls this directly
no test coverage detected