(
key: IntegrationTaskKey,
params: L.ReactionCreateInput & { emoji: string }
)
| 1462 | } |
| 1463 | |
| 1464 | createReaction( |
| 1465 | key: IntegrationTaskKey, |
| 1466 | params: L.ReactionCreateInput & { emoji: string } |
| 1467 | ): LinearReturnType<ReactionPayload, "reaction"> { |
| 1468 | return this.runTask( |
| 1469 | key, |
| 1470 | async (client) => { |
| 1471 | const payload = await client.createReaction(params); |
| 1472 | return serializeLinearOutput(await payload.reaction); |
| 1473 | }, |
| 1474 | { |
| 1475 | name: "Create Reaction", |
| 1476 | params, |
| 1477 | properties: [ |
| 1478 | ...(params.commentId ? [{ label: "Comment ID", text: params.commentId }] : []), |
| 1479 | ...(params.issueId ? [{ label: "Issue ID", text: params.issueId }] : []), |
| 1480 | ...(params.projectUpdateId |
| 1481 | ? [{ label: "ProjectUpdate ID", text: params.projectUpdateId }] |
| 1482 | : []), |
| 1483 | { label: "Emoji", text: params.emoji }, |
| 1484 | ], |
| 1485 | } |
| 1486 | ); |
| 1487 | } |
| 1488 | |
| 1489 | deleteReaction(key: IntegrationTaskKey, params: { id: string }): Promise<DeletePayload> { |
| 1490 | return this.runTask(key, (client) => client.deleteReaction(params.id), { |
no test coverage detected