MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / webhooks

Method webhooks

integrations/linear/src/webhooks.ts:47–68  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params?: L.WebhooksQueryVariables
  )

Source from the content-addressed store, hash-verified

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,

Callers 1

createWebhookEventSourceFunction · 0.45

Calls 3

serializeLinearOutputFunction · 0.90
queryPropertiesFunction · 0.90
runTaskMethod · 0.45

Tested by

no test coverage detected