(
key: IntegrationTaskKey,
params?: L.WebhooksQueryVariables
)
| 45 | } |
| 46 | |
| 47 | webhooks( |
| 48 | key: IntegrationTaskKey, |
| 49 | params?: L.WebhooksQueryVariables |
| 50 | ): LinearReturnType<Webhook[]> { |
| 51 | return this.runTask( |
| 52 | key, |
| 53 | async (client, task, io) => { |
| 54 | let connections = await client.webhooks(params); |
| 55 | const hooks = connections.nodes; |
| 56 | while (connections.pageInfo.hasNextPage) { |
| 57 | connections = await connections.fetchNext(); |
| 58 | hooks.push(...connections.nodes); |
| 59 | } |
| 60 | return serializeLinearOutput(hooks); |
| 61 | }, |
| 62 | { |
| 63 | name: "List Webhooks", |
| 64 | params, |
| 65 | properties: queryProperties(params ?? {}), |
| 66 | } |
| 67 | ); |
| 68 | } |
| 69 | |
| 70 | createWebhook( |
| 71 | key: IntegrationTaskKey, |
no test coverage detected