File

src/app/data-dgql/queries/issues.service.ts

Index

Methods

Constructor

constructor(qListProjectIssues: ListProjectIssuesGQL, qListComponentIssues: ListComponentIssuesGQL, qListComponentIssuesOnLocation: ListComponentIssuesOnLocationGQL, qListComponentInterfaceIssuesOnLocation: ListComponentInterfaceIssuesOnLocationGQL, qListIssueLinksToIssues: ListIssueLinksToIssuesGQL, qListIssueLinkedByIssues: ListIssueLinkedByIssuesGQL, qListArtifactIssues: ListArtifactIssuesGQL, qGetIssueHeader: GetIssueHeaderGQL, qListIssueTimelineItems: ListIssueTimelineItemsGQL, qListProjectLabels: ListProjectLabelsGQL, qListComponentLabels: ListComponentLabelsGQL, qListIssueLabels: ListIssueLabelsGQL, qListIssueLocations: ListIssueLocationsGQL, qListIssueComponents: ListIssueComponentsGQL, qListIssueParticipants: ListIssueParticipantsGQL, qListIssueAssignees: ListIssueAssigneesGQL, qGetLabel: GetLabelGQL, qListLabelComponents: ListLabelComponentsGQL, qMutCreateIssue: MutCreateIssueGQL, qMutRenameIssueTitle: MutRenameIssueTitleGQL, qMutChangeIssueCategory: MutChangeIssueCategoryGQL, qMutCloseIssue: MutCloseIssueGQL, qMutReopenIssue: MutReopenIssueGQL, qMutAddIssueComment: MutAddIssueCommentGQL, qMutUpdateIssueComment: MutUpdateIssueCommentGQL, qMutDeleteIssueComment: MutDeleteIssueCommentGQL, qMutAddIssueLabel: MutAddIssueLabelGQL, qMutRemoveIssueLabel: MutRemoveIssueLabelGQL, qMutAddIssueComponent: MutAddIssueToComponentGQL, qMutRemoveIssueComponent: MutRemoveIssueFromComponentGQL, qMutAddIssueLocation: MutAddIssueToLocationGQL, qMutRemoveIssueLocation: MutRemoveIssueFromLocationGQL, qMutAddIssueAssignee: MutAddIssueAssigneeGQL, qMutRemoveIssueAssignee: MutRemoveIssueAssigneeGQL, qMutLinkIssue: MutLinkIssueGQL, qMutUnlinkIssue: MutUnlinkIssueGQL, qMutCreateLabel: MutCreateLabelGQL, qMutUpdateLabel: MutUpdateLabelGQL, qMutAddLabelToComponent: MutAddLabelToComponentGQL, qMutRemoveLabelFromComponent: MutRemoveLabelFromComponentGQL, qMutDeleteLabel: MutDeleteLabelGQL)
Parameters :
Name Type Optional
qListProjectIssues ListProjectIssuesGQL No
qListComponentIssues ListComponentIssuesGQL No
qListComponentIssuesOnLocation ListComponentIssuesOnLocationGQL No
qListComponentInterfaceIssuesOnLocation ListComponentInterfaceIssuesOnLocationGQL No
qListIssueLinksToIssues ListIssueLinksToIssuesGQL No
qListIssueLinkedByIssues ListIssueLinkedByIssuesGQL No
qListArtifactIssues ListArtifactIssuesGQL No
qGetIssueHeader GetIssueHeaderGQL No
qListIssueTimelineItems ListIssueTimelineItemsGQL No
qListProjectLabels ListProjectLabelsGQL No
qListComponentLabels ListComponentLabelsGQL No
qListIssueLabels ListIssueLabelsGQL No
qListIssueLocations ListIssueLocationsGQL No
qListIssueComponents ListIssueComponentsGQL No
qListIssueParticipants ListIssueParticipantsGQL No
qListIssueAssignees ListIssueAssigneesGQL No
qGetLabel GetLabelGQL No
qListLabelComponents ListLabelComponentsGQL No
qMutCreateIssue MutCreateIssueGQL No
qMutRenameIssueTitle MutRenameIssueTitleGQL No
qMutChangeIssueCategory MutChangeIssueCategoryGQL No
qMutCloseIssue MutCloseIssueGQL No
qMutReopenIssue MutReopenIssueGQL No
qMutAddIssueComment MutAddIssueCommentGQL No
qMutUpdateIssueComment MutUpdateIssueCommentGQL No
qMutDeleteIssueComment MutDeleteIssueCommentGQL No
qMutAddIssueLabel MutAddIssueLabelGQL No
qMutRemoveIssueLabel MutRemoveIssueLabelGQL No
qMutAddIssueComponent MutAddIssueToComponentGQL No
qMutRemoveIssueComponent MutRemoveIssueFromComponentGQL No
qMutAddIssueLocation MutAddIssueToLocationGQL No
qMutRemoveIssueLocation MutRemoveIssueFromLocationGQL No
qMutAddIssueAssignee MutAddIssueAssigneeGQL No
qMutRemoveIssueAssignee MutRemoveIssueAssigneeGQL No
qMutLinkIssue MutLinkIssueGQL No
qMutUnlinkIssue MutUnlinkIssueGQL No
qMutCreateLabel MutCreateLabelGQL No
qMutUpdateLabel MutUpdateLabelGQL No
qMutAddLabelToComponent MutAddLabelToComponentGQL No
qMutRemoveLabelFromComponent MutRemoveLabelFromComponentGQL No
qMutDeleteLabel MutDeleteLabelGQL No

Methods

getIssueHeader
getIssueHeader(id: string)
Parameters :
Name Type Optional
id string No
Returns : Promise<GetIssueHeaderQuery>
getLabel
getLabel(id: string)
Parameters :
Name Type Optional
id string No
Returns : Promise<GetLabelQuery>
listArtifactIssues
listArtifactIssues(artifact: string, list: IssueListParams)
Parameters :
Name Type Optional
artifact string No
list IssueListParams No
Returns : Promise<ListArtifactIssuesQuery>
listComponentInterfaceIssuesOnLocation
listComponentInterfaceIssuesOnLocation(cInterface: string, list: IssueListParams)
Parameters :
Name Type Optional
cInterface string No
list IssueListParams No
Returns : Promise<ListComponentInterfaceIssuesOnLocationQuery>
listComponentIssues
listComponentIssues(component: string, list: IssueListParams)
Parameters :
Name Type Optional
component string No
list IssueListParams No
Returns : Promise<ListComponentIssuesQuery>
listComponentIssuesOnLocation
listComponentIssuesOnLocation(component: string, list: IssueListParams)
Parameters :
Name Type Optional
component string No
list IssueListParams No
Returns : Promise<ListComponentIssuesOnLocationQuery>
listComponentLabels
listComponentLabels(project: string, list: QueryListParams)
Parameters :
Name Type Optional
project string No
list QueryListParams<LabelFilter> No
Returns : Promise<ListComponentLabelsQuery>
listIssueAssignees
listIssueAssignees(issue: string, list: QueryListParams)
Parameters :
Name Type Optional
issue string No
list QueryListParams<UserFilter> No
Returns : Promise<ListIssueAssigneesQuery>
listIssueComponents
listIssueComponents(issue: string, list: QueryListParams)
Parameters :
Name Type Optional
issue string No
list QueryListParams<ComponentFilter> No
Returns : Promise<ListIssueComponentsQuery>
listIssueLabels
listIssueLabels(issue: string, list: QueryListParams)
Parameters :
Name Type Optional
issue string No
list QueryListParams<LabelFilter> No
Returns : Promise<ListIssueLabelsQuery>
listIssueLinkedByIssues
listIssueLinkedByIssues(issue: string, list: IssueListParams)
Parameters :
Name Type Optional
issue string No
list IssueListParams No
Returns : Promise<ListIssueLinkedByIssuesQuery>
listIssueLinksToIssues
listIssueLinksToIssues(issue: string, list: IssueListParams)
Parameters :
Name Type Optional
issue string No
list IssueListParams No
Returns : Promise<ListIssueLinksToIssuesQuery>
listIssueLocations
listIssueLocations(issue: string, list: QueryListParams)
Parameters :
Name Type Optional
issue string No
list QueryListParams<IssueLocationFilter> No
Returns : Promise<ListIssueLocationsQuery>
listIssueParticipants
listIssueParticipants(issue: string, list: QueryListParams)
Parameters :
Name Type Optional
issue string No
list QueryListParams<UserFilter> No
Returns : Promise<ListIssueParticipantsQuery>
listIssueTimelineItems
listIssueTimelineItems(id: string, list: QueryListParams)
Parameters :
Name Type Optional
id string No
list QueryListParams<IssueTimelineItemFilter> No
Returns : Promise<ListIssueTimelineItemsQuery>
listLabelComponents
listLabelComponents(label: string, list: QueryListParams)
Parameters :
Name Type Optional
label string No
list QueryListParams<ComponentFilter> No
Returns : Promise<ListLabelComponentsQuery>
listProjectIssues
listProjectIssues(project: string, list: IssueListParams)
Parameters :
Name Type Optional
project string No
list IssueListParams No
Returns : Promise<ListProjectIssuesQuery>
listProjectLabels
listProjectLabels(project: string, list: QueryListParams)
Parameters :
Name Type Optional
project string No
list QueryListParams<LabelFilter> No
Returns : Promise<ListProjectLabelsQuery>
mutAddIssueAssignee
mutAddIssueAssignee(id: string, issue: string, assignee: string)
Parameters :
Name Type Optional
id string No
issue string No
assignee string No
Returns : Promise<MutAddIssueAssigneeMutation>
mutAddIssueComment
mutAddIssueComment(id: string, issue: string, body: string)
Parameters :
Name Type Optional
id string No
issue string No
body string No
Returns : Promise<MutAddIssueCommentMutation>
mutAddIssueComponent
mutAddIssueComponent(id: string, issue: string, component: string)
Parameters :
Name Type Optional
id string No
issue string No
component string No
Returns : Promise<MutAddIssueToComponentMutation>
mutAddIssueLabel
mutAddIssueLabel(id: string, issue: string, label: string)
Parameters :
Name Type Optional
id string No
issue string No
label string No
Returns : Promise<MutAddIssueLabelMutation>
mutAddIssueLocation
mutAddIssueLocation(id: string, issue: string, location: string)
Parameters :
Name Type Optional
id string No
issue string No
location string No
Returns : Promise<MutAddIssueToLocationMutation>
mutAddLabelToComponent
mutAddLabelToComponent(id: string, label: string, component: string)
Parameters :
Name Type Optional
id string No
label string No
component string No
Returns : Promise<MutAddLabelToComponentMutation>
mutChangeIssueCategory
mutChangeIssueCategory(id: string, issue: string, category: IssueCategory)
Parameters :
Name Type Optional
id string No
issue string No
category IssueCategory No
Returns : Promise<MutChangeIssueCategoryMutation>
mutCloseIssue
mutCloseIssue(id: string, issue: string)
Parameters :
Name Type Optional
id string No
issue string No
Returns : Promise<MutCloseIssueMutation>
mutCreateIssue
mutCreateIssue(issue: CreateIssueInput)
Parameters :
Name Type Optional
issue CreateIssueInput No
Returns : Promise<MutCreateIssueMutation>
mutCreateLabel
mutCreateLabel(id: string, components: string[], name: string, color: string, description?: string)
Parameters :
Name Type Optional
id string No
components string[] No
name string No
color string No
description string Yes
Returns : Promise<MutCreateLabelMutation>
mutDeleteIssueComment
mutDeleteIssueComment(id: string, comment: string)
Parameters :
Name Type Optional
id string No
comment string No
Returns : Promise<MutDeleteIssueCommentMutation>
mutDeleteLabel
mutDeleteLabel(id: string, label: string)
Parameters :
Name Type Optional
id string No
label string No
Returns : Promise<MutDeleteLabelMutation>
mutLinkIssue
mutLinkIssue(id: string, issue: string, link: string)
Parameters :
Name Type Optional
id string No
issue string No
link string No
Returns : Promise<MutLinkIssueMutation>
mutRemoveIssueAssignee
mutRemoveIssueAssignee(id: string, issue: string, assignee: string)
Parameters :
Name Type Optional
id string No
issue string No
assignee string No
Returns : Promise<MutRemoveIssueAssigneeMutation>
mutRemoveIssueComponent
mutRemoveIssueComponent(id: string, issue: string, component: string)
Parameters :
Name Type Optional
id string No
issue string No
component string No
Returns : Promise<MutRemoveIssueFromComponentMutation>
mutRemoveIssueLabel
mutRemoveIssueLabel(id: string, issue: string, label: string)
Parameters :
Name Type Optional
id string No
issue string No
label string No
Returns : Promise<MutRemoveIssueLabelMutation>
mutRemoveIssueLocation
mutRemoveIssueLocation(id: string, issue: string, location: string)
Parameters :
Name Type Optional
id string No
issue string No
location string No
Returns : Promise<MutRemoveIssueFromLocationMutation>
mutRemoveLabelFromComponent
mutRemoveLabelFromComponent(id: string, label: string, component: string)
Parameters :
Name Type Optional
id string No
label string No
component string No
Returns : Promise<MutRemoveLabelFromComponentMutation>
mutRenameIssueTitle
mutRenameIssueTitle(id: string, issue: string, title: string)
Parameters :
Name Type Optional
id string No
issue string No
title string No
Returns : Promise<MutRenameIssueTitleMutation>
mutReopenIssue
mutReopenIssue(id: string, issue: string)
Parameters :
Name Type Optional
id string No
issue string No
Returns : Promise<MutReopenIssueMutation>
mutUnlinkIssue
mutUnlinkIssue(id: string, issue: string, link: string)
Parameters :
Name Type Optional
id string No
issue string No
link string No
Returns : Promise<MutUnlinkIssueMutation>
mutUpdateIssueComment
mutUpdateIssueComment(id: string, comment: string, body: string)
Parameters :
Name Type Optional
id string No
comment string No
body string No
Returns : Promise<MutUpdateIssueCommentMutation>
mutUpdateLabel
mutUpdateLabel(id: string, label: string, name?: string, color?: string, description?: string)
Parameters :
Name Type Optional
id string No
label string No
name string Yes
color string Yes
description string Yes
Returns : Promise<MutUpdateLabelMutation>
import {Injectable} from '@angular/core';
import {
  ListProjectIssuesGQL,
  ListComponentIssuesGQL,
  ListComponentIssuesOnLocationGQL,
  ListComponentInterfaceIssuesOnLocationGQL,
  ListIssueLinksToIssuesGQL,
  ListIssueLinkedByIssuesGQL,
  ListArtifactIssuesGQL,
  IssueFilter,
  GetIssueHeaderGQL,
  ListIssueTimelineItemsGQL,
  IssueTimelineItemFilter,
  ListIssueLabelsGQL,
  ListProjectLabelsGQL,
  LabelFilter,
  MutAddIssueLabelGQL,
  MutRemoveIssueLabelGQL,
  IssueLocationFilter,
  ListIssueLocationsGQL,
  MutAddIssueToLocationGQL,
  MutRemoveIssueFromLocationGQL,
  ComponentFilter,
  MutRemoveIssueFromComponentGQL,
  MutAddIssueToComponentGQL,
  ListIssueComponentsGQL,
  ListComponentLabelsGQL,
  MutLinkIssueGQL,
  MutUnlinkIssueGQL,
  ListIssueAssigneesGQL,
  ListIssueParticipantsGQL,
  UserFilter,
  MutAddIssueAssigneeGQL,
  MutRemoveIssueAssigneeGQL,
  MutCreateIssueGQL,
  MutRenameIssueTitleGQL,
  MutAddIssueCommentGQL,
  MutDeleteIssueCommentGQL,
  MutUpdateIssueCommentGQL,
  MutCloseIssueGQL,
  MutReopenIssueGQL,
  MutCreateLabelGQL,
  MutDeleteLabelGQL,
  MutUpdateLabelGQL,
  MutAddLabelToComponentGQL,
  MutRemoveLabelFromComponentGQL,
  ListLabelComponentsGQL,
  GetLabelGQL,
  MutChangeIssueCategoryGQL,
  IssueCategory,
  ListProjectIssuesQuery,
  ListComponentIssuesQuery,
  ListComponentIssuesOnLocationQuery,
  ListComponentInterfaceIssuesOnLocationQuery,
  ListIssueLinksToIssuesQuery,
  ListIssueLinkedByIssuesQuery,
  ListArtifactIssuesQuery,
  GetIssueHeaderQuery,
  ListIssueTimelineItemsQuery,
  ListIssueLabelsQuery,
  ListIssueLocationsQuery,
  ListIssueComponentsQuery,
  ListProjectLabelsQuery,
  ListComponentLabelsQuery,
  ListIssueParticipantsQuery,
  ListIssueAssigneesQuery,
  GetLabelQuery,
  ListLabelComponentsQuery,
  MutCreateIssueMutation,
  MutRenameIssueTitleMutation,
  MutChangeIssueCategoryMutation,
  MutCloseIssueMutation,
  MutReopenIssueMutation,
  MutAddIssueCommentMutation,
  MutUpdateIssueCommentMutation,
  MutDeleteLabelMutation,
  MutRemoveLabelFromComponentMutation,
  MutAddLabelToComponentMutation,
  MutUpdateLabelMutation,
  MutCreateLabelMutation,
  MutUnlinkIssueMutation,
  MutLinkIssueMutation,
  MutRemoveIssueAssigneeMutation,
  MutAddIssueAssigneeMutation,
  MutRemoveIssueFromLocationMutation,
  MutAddIssueToLocationMutation,
  MutRemoveIssueFromComponentMutation,
  MutAddIssueToComponentMutation,
  MutRemoveIssueLabelMutation,
  MutAddIssueLabelMutation,
  MutDeleteIssueCommentMutation
} from 'src/generated/graphql-dgql';
import {promisifyApolloFetch, QueryListParams} from '@app/data-dgql/queries/util';
import {CreateIssueInput} from '../../../generated/graphql';

type IssueListParams = QueryListParams<IssueFilter>;

@Injectable({
  providedIn: 'root'
})
export class IssuesService {
  constructor(
    private qListProjectIssues: ListProjectIssuesGQL,
    private qListComponentIssues: ListComponentIssuesGQL,
    private qListComponentIssuesOnLocation: ListComponentIssuesOnLocationGQL,
    private qListComponentInterfaceIssuesOnLocation: ListComponentInterfaceIssuesOnLocationGQL,
    private qListIssueLinksToIssues: ListIssueLinksToIssuesGQL,
    private qListIssueLinkedByIssues: ListIssueLinkedByIssuesGQL,
    private qListArtifactIssues: ListArtifactIssuesGQL,
    private qGetIssueHeader: GetIssueHeaderGQL,
    private qListIssueTimelineItems: ListIssueTimelineItemsGQL,
    private qListProjectLabels: ListProjectLabelsGQL,
    private qListComponentLabels: ListComponentLabelsGQL,
    private qListIssueLabels: ListIssueLabelsGQL,
    private qListIssueLocations: ListIssueLocationsGQL,
    private qListIssueComponents: ListIssueComponentsGQL,
    private qListIssueParticipants: ListIssueParticipantsGQL,
    private qListIssueAssignees: ListIssueAssigneesGQL,
    private qGetLabel: GetLabelGQL,
    private qListLabelComponents: ListLabelComponentsGQL,
    private qMutCreateIssue: MutCreateIssueGQL,
    private qMutRenameIssueTitle: MutRenameIssueTitleGQL,
    private qMutChangeIssueCategory: MutChangeIssueCategoryGQL,
    private qMutCloseIssue: MutCloseIssueGQL,
    private qMutReopenIssue: MutReopenIssueGQL,
    private qMutAddIssueComment: MutAddIssueCommentGQL,
    private qMutUpdateIssueComment: MutUpdateIssueCommentGQL,
    private qMutDeleteIssueComment: MutDeleteIssueCommentGQL,
    private qMutAddIssueLabel: MutAddIssueLabelGQL,
    private qMutRemoveIssueLabel: MutRemoveIssueLabelGQL,
    private qMutAddIssueComponent: MutAddIssueToComponentGQL,
    private qMutRemoveIssueComponent: MutRemoveIssueFromComponentGQL,
    private qMutAddIssueLocation: MutAddIssueToLocationGQL,
    private qMutRemoveIssueLocation: MutRemoveIssueFromLocationGQL,
    private qMutAddIssueAssignee: MutAddIssueAssigneeGQL,
    private qMutRemoveIssueAssignee: MutRemoveIssueAssigneeGQL,
    private qMutLinkIssue: MutLinkIssueGQL,
    private qMutUnlinkIssue: MutUnlinkIssueGQL,
    private qMutCreateLabel: MutCreateLabelGQL,
    private qMutUpdateLabel: MutUpdateLabelGQL,
    private qMutAddLabelToComponent: MutAddLabelToComponentGQL,
    private qMutRemoveLabelFromComponent: MutRemoveLabelFromComponentGQL,
    private qMutDeleteLabel: MutDeleteLabelGQL
  ) {}

  listProjectIssues(project: string, list: IssueListParams): Promise<ListProjectIssuesQuery> {
    return promisifyApolloFetch(this.qListProjectIssues.fetch({project, ...list}));
  }

  listComponentIssues(component: string, list: IssueListParams): Promise<ListComponentIssuesQuery> {
    return promisifyApolloFetch(this.qListComponentIssues.fetch({component, ...list}));
  }

  listComponentIssuesOnLocation(component: string, list: IssueListParams): Promise<ListComponentIssuesOnLocationQuery> {
    return promisifyApolloFetch(this.qListComponentIssuesOnLocation.fetch({component, ...list}));
  }

  listComponentInterfaceIssuesOnLocation(cInterface: string, list: IssueListParams): Promise<ListComponentInterfaceIssuesOnLocationQuery> {
    return promisifyApolloFetch(
      this.qListComponentInterfaceIssuesOnLocation.fetch({
        interface: cInterface,
        ...list
      })
    );
  }

  listIssueLinksToIssues(issue: string, list: IssueListParams): Promise<ListIssueLinksToIssuesQuery> {
    return promisifyApolloFetch(this.qListIssueLinksToIssues.fetch({issue, ...list}));
  }

  listIssueLinkedByIssues(issue: string, list: IssueListParams): Promise<ListIssueLinkedByIssuesQuery> {
    return promisifyApolloFetch(this.qListIssueLinkedByIssues.fetch({issue, ...list}));
  }

  listArtifactIssues(artifact: string, list: IssueListParams): Promise<ListArtifactIssuesQuery> {
    return promisifyApolloFetch(this.qListArtifactIssues.fetch({artifact, ...list}));
  }

  getIssueHeader(id: string): Promise<GetIssueHeaderQuery> {
    return promisifyApolloFetch(this.qGetIssueHeader.fetch({id}));
  }

  listIssueTimelineItems(id: string, list: QueryListParams<IssueTimelineItemFilter>): Promise<ListIssueTimelineItemsQuery> {
    return promisifyApolloFetch(this.qListIssueTimelineItems.fetch({id, ...list}));
  }

  listIssueLabels(issue: string, list: QueryListParams<LabelFilter>): Promise<ListIssueLabelsQuery> {
    return promisifyApolloFetch(this.qListIssueLabels.fetch({issue, ...list}));
  }

  listIssueLocations(issue: string, list: QueryListParams<IssueLocationFilter>): Promise<ListIssueLocationsQuery> {
    return promisifyApolloFetch(this.qListIssueLocations.fetch({issue, ...list}));
  }

  listIssueComponents(issue: string, list: QueryListParams<ComponentFilter>): Promise<ListIssueComponentsQuery> {
    return promisifyApolloFetch(this.qListIssueComponents.fetch({issue, ...list}));
  }

  listProjectLabels(project: string, list: QueryListParams<LabelFilter>): Promise<ListProjectLabelsQuery> {
    return promisifyApolloFetch(this.qListProjectLabels.fetch({project, ...list}));
  }

  listComponentLabels(project: string, list: QueryListParams<LabelFilter>): Promise<ListComponentLabelsQuery> {
    return promisifyApolloFetch(this.qListComponentLabels.fetch({project, ...list}));
  }

  listIssueParticipants(issue: string, list: QueryListParams<UserFilter>): Promise<ListIssueParticipantsQuery> {
    return promisifyApolloFetch(this.qListIssueParticipants.fetch({issue, ...list}));
  }

  listIssueAssignees(issue: string, list: QueryListParams<UserFilter>): Promise<ListIssueAssigneesQuery> {
    return promisifyApolloFetch(this.qListIssueAssignees.fetch({issue, ...list}));
  }

  getLabel(id: string): Promise<GetLabelQuery> {
    return promisifyApolloFetch(this.qGetLabel.fetch({id}));
  }

  listLabelComponents(label: string, list: QueryListParams<ComponentFilter>): Promise<ListLabelComponentsQuery> {
    return promisifyApolloFetch(this.qListLabelComponents.fetch({label, ...list}));
  }

  mutCreateIssue(issue: CreateIssueInput): Promise<MutCreateIssueMutation> {
    return promisifyApolloFetch(this.qMutCreateIssue.mutate({issue}));
  }

  mutRenameIssueTitle(id: string, issue: string, title: string): Promise<MutRenameIssueTitleMutation> {
    return promisifyApolloFetch(this.qMutRenameIssueTitle.mutate({id, issue, title}));
  }

  mutChangeIssueCategory(id: string, issue: string, category: IssueCategory): Promise<MutChangeIssueCategoryMutation> {
    return promisifyApolloFetch(this.qMutChangeIssueCategory.mutate({id, issue, category}));
  }

  mutCloseIssue(id: string, issue: string): Promise<MutCloseIssueMutation> {
    return promisifyApolloFetch(this.qMutCloseIssue.mutate({id, issue}));
  }

  mutReopenIssue(id: string, issue: string): Promise<MutReopenIssueMutation> {
    return promisifyApolloFetch(this.qMutReopenIssue.mutate({id, issue}));
  }

  mutAddIssueComment(id: string, issue: string, body: string): Promise<MutAddIssueCommentMutation> {
    return promisifyApolloFetch(this.qMutAddIssueComment.mutate({id, issue, body}));
  }

  mutUpdateIssueComment(id: string, comment: string, body: string): Promise<MutUpdateIssueCommentMutation> {
    return promisifyApolloFetch(this.qMutUpdateIssueComment.mutate({id, comment, body}));
  }

  mutDeleteIssueComment(id: string, comment: string): Promise<MutDeleteIssueCommentMutation> {
    return promisifyApolloFetch(this.qMutDeleteIssueComment.mutate({id, comment}));
  }

  mutAddIssueLabel(id: string, issue: string, label: string): Promise<MutAddIssueLabelMutation> {
    return promisifyApolloFetch(this.qMutAddIssueLabel.mutate({id, issue, label}));
  }

  mutRemoveIssueLabel(id: string, issue: string, label: string): Promise<MutRemoveIssueLabelMutation> {
    return promisifyApolloFetch(this.qMutRemoveIssueLabel.mutate({id, issue, label}));
  }

  mutAddIssueComponent(id: string, issue: string, component: string): Promise<MutAddIssueToComponentMutation> {
    return promisifyApolloFetch(this.qMutAddIssueComponent.mutate({id, issue, component}));
  }

  mutRemoveIssueComponent(id: string, issue: string, component: string): Promise<MutRemoveIssueFromComponentMutation> {
    return promisifyApolloFetch(this.qMutRemoveIssueComponent.mutate({id, issue, component}));
  }

  mutAddIssueLocation(id: string, issue: string, location: string): Promise<MutAddIssueToLocationMutation> {
    return promisifyApolloFetch(this.qMutAddIssueLocation.mutate({id, issue, location}));
  }

  mutRemoveIssueLocation(id: string, issue: string, location: string): Promise<MutRemoveIssueFromLocationMutation> {
    return promisifyApolloFetch(this.qMutRemoveIssueLocation.mutate({id, issue, location}));
  }

  mutAddIssueAssignee(id: string, issue: string, assignee: string): Promise<MutAddIssueAssigneeMutation> {
    return promisifyApolloFetch(this.qMutAddIssueAssignee.mutate({id, issue, assignee}));
  }

  mutRemoveIssueAssignee(id: string, issue: string, assignee: string): Promise<MutRemoveIssueAssigneeMutation> {
    return promisifyApolloFetch(this.qMutRemoveIssueAssignee.mutate({id, issue, assignee}));
  }

  mutLinkIssue(id: string, issue: string, link: string): Promise<MutLinkIssueMutation> {
    return promisifyApolloFetch(this.qMutLinkIssue.mutate({id, issue, link}));
  }

  mutUnlinkIssue(id: string, issue: string, link: string): Promise<MutUnlinkIssueMutation> {
    return promisifyApolloFetch(this.qMutUnlinkIssue.mutate({id, issue, link}));
  }

  mutCreateLabel(id: string, components: string[], name: string, color: string, description?: string): Promise<MutCreateLabelMutation> {
    return promisifyApolloFetch(this.qMutCreateLabel.mutate({id, components, name, description, color}));
  }
  mutUpdateLabel(id: string, label: string, name?: string, color?: string, description?: string): Promise<MutUpdateLabelMutation> {
    return promisifyApolloFetch(this.qMutUpdateLabel.mutate({id, label, name, description, color}));
  }
  mutAddLabelToComponent(id: string, label: string, component: string): Promise<MutAddLabelToComponentMutation> {
    return promisifyApolloFetch(this.qMutAddLabelToComponent.mutate({id, label, component}));
  }
  mutRemoveLabelFromComponent(id: string, label: string, component: string): Promise<MutRemoveLabelFromComponentMutation> {
    return promisifyApolloFetch(this.qMutRemoveLabelFromComponent.mutate({id, label, component}));
  }
  mutDeleteLabel(id: string, label: string): Promise<MutDeleteLabelMutation> {
    return promisifyApolloFetch(this.qMutDeleteLabel.mutate({id, label}));
  }
}

results matching ""

    No results matching ""