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

Method attachmentLinkZendesk

integrations/linear/src/index.ts:468–495  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: {
      issueId: string;
      ticketId: string;
      variables?: Omit<L.AttachmentLinkZendeskMutationVariables, "issueId" | "ticketId">;
    }
  )

Source from the content-addressed store, hash-verified

466 }
467
468 attachmentLinkZendesk(
469 key: IntegrationTaskKey,
470 params: {
471 issueId: string;
472 ticketId: string;
473 variables?: Omit<L.AttachmentLinkZendeskMutationVariables, "issueId" | "ticketId">;
474 }
475 ): LinearReturnType<AttachmentPayload, "attachment"> {
476 return this.runTask(
477 key,
478 async (client) => {
479 const payload = await client.attachmentLinkZendesk(
480 params.issueId,
481 params.ticketId,
482 params.variables
483 );
484 return serializeLinearOutput(await payload.attachment);
485 },
486 {
487 name: "Link Zendesk Ticket",
488 params,
489 properties: [
490 { label: "Issue ID", text: params.issueId },
491 { label: "Ticket ID", text: params.ticketId },
492 ],
493 }
494 );
495 }
496
497 comment(key: IntegrationTaskKey, params: { id: string }): LinearReturnType<Comment> {
498 return this.runTask(

Callers

nothing calls this directly

Calls 2

runTaskMethod · 0.95
serializeLinearOutputFunction · 0.85

Tested by

no test coverage detected