@leash/integration-linear
v0.1.0
Published
Typed Linear integration for Leash
Downloads
17
Readme
@leash/integration-linear
Typed Linear integration for Leash — auto-generated by
leash-codegen.
Installation
npm install @leash/integration-linearRequires @leash/sdk >= 0.2.0 as a peer dependency.
Usage
import { LeashIntegrations } from '@leash/sdk/integrations'
import { createLinearClient } from '@leash/integration-linear'
const leash = new LeashIntegrations({ apiKey: process.env.LEASH_API_KEY! })
const linear = createLinearClient(leash)
// Example: call linearAuthCallback
const result = await linear.linearAuthCallback({ code: '...' })Available Methods
linearAuthCallback(params)— Handle OAuth callbacklinearCreateIssue(params)— Create a new issue in LinearlinearCreateProjectWithIssues(params)— Create a new project with associated issues. Note: Project requires teamIds (...linearBulkUpdateIssues(params)— Update multiple issues at oncelinearEditIssue(params)— Edit an existing issue, updating any of its fields. Note: When setting projec...linearSearchIssues(params)— Search for issues with filtering and paginationlinearSearchIssuesByIdentifier(params)— Search for issues by their identifiers (e.g., ["ENG-78", "ENG-79"])linearGetIssue(params)— Get a single issue by identifier, including all commentslinearGetTeams(params)— Get all teams with their states and labelslinearGetUser(params)— Get current user informationlinearDeleteIssue(params)— Delete an issuelinearGetProject(params)— Get project informationlinearListProjects(params)— List all projects or filter them by criterialinearCreateIssues(params)— Create multiple issues at oncelinearCreateComment(params)— Creates a new comment on an issuelinearUpdateComment(params)— Updates an existing commentlinearDeleteComment(params)— Deletes a commentlinearResolveComment(params)— Resolves a commentlinearUnresolveComment(params)— Unresolves a commentlinearCreateCustomerNeedFromAttachment(params)— Creates a new customer need from an attachmentlinearGetProjectMilestones(params)— Get milestones for a project with filtering and paginationlinearCreateProjectMilestone(params)— Create a new project milestonelinearUpdateProjectMilestone(params)— Update a project milestonelinearDeleteProjectMilestone(params)— Delete a project milestone
License
Apache-2.0
