(
key: IntegrationTaskKey,
params: L.AttachmentCreateInput
)
| 231 | } |
| 232 | |
| 233 | createAttachment( |
| 234 | key: IntegrationTaskKey, |
| 235 | params: L.AttachmentCreateInput |
| 236 | ): LinearReturnType<AttachmentPayload, "attachment"> { |
| 237 | return this.runTask( |
| 238 | key, |
| 239 | async (client) => { |
| 240 | const payload = await client.createAttachment(params); |
| 241 | return serializeLinearOutput(await payload.attachment); |
| 242 | }, |
| 243 | { |
| 244 | name: "Create Attachment", |
| 245 | params, |
| 246 | properties: [ |
| 247 | { label: "Issue ID", text: params.issueId }, |
| 248 | { label: "Title", text: params.title }, |
| 249 | { label: "URL", text: params.url }, |
| 250 | ], |
| 251 | } |
| 252 | ); |
| 253 | } |
| 254 | |
| 255 | deleteAttachment(key: IntegrationTaskKey, params: { id: string }): Promise<DeletePayload> { |
| 256 | return this.runTask(key, (client) => client.deleteAttachment(params.id), { |
nothing calls this directly
no test coverage detected