Files
task-stream/libs/api/tracker/presenters/src/lib/graphql/enums.ts
Josep Piguillem 93d028e870 feat: ask a teammate to review a ticket
«Pedir revisión» on a ticket asks a member (with an optional note): they
are notified and see it under «Te piden revisión» in my work until they
answer «Todo bien» or «Pedir cambios» (with what to change) from the
ticket's Revisiones box; whoever asked hears the answer and can withdraw
an open request. Events of the ticket (requested, answered, cancelled),
so they show in its history and the activity feed. Viewers can be asked
and answer; not oneself, nor twice the same person with one pending.

API: requestReview / answerReview / cancelReview, Issue.reviews,
myIssues(reviewing); POST /api/issues/{issue}/reviews,
POST …/reviews/{id}/answer, DELETE …/reviews/{id}. MCP: request_review,
answer_review, my_issues reviewing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-20 20:38:30 +02:00

66 lines
1.9 KiB
TypeScript

import { registerEnumType } from '@nestjs/graphql';
import {
AutomationActionKind,
AutomationTriggerKind,
IssueSort,
} from '@task-stream/api/tracker/application';
import {
CustomFieldType,
IssueLinkType,
IssuePriority,
NotificationKind,
ProjectRole,
ReleaseStatus,
SprintStatus,
StatusCategory,
DevLinkKind,
DevLinkState,
ReviewVerdict,
} from '@task-stream/api/tracker/domain';
export enum LinkDirection {
OUTWARD = 'OUTWARD',
INWARD = 'INWARD',
}
registerEnumType(IssuePriority, { name: 'IssuePriority' });
registerEnumType(ReviewVerdict, {
name: 'ReviewVerdict',
description: 'APPROVED: all good. CHANGES: something to change',
});
registerEnumType(CustomFieldType, {
name: 'CustomFieldType',
description: 'What a custom field holds (DATE: YYYY-MM-DD)',
});
registerEnumType(StatusCategory, {
name: 'StatusCategory',
description:
'What a status means, whatever each project calls it. DONE and CANCELLED are finished.',
});
registerEnumType(IssueLinkType, { name: 'IssueLinkType' });
registerEnumType(DevLinkKind, { name: 'DevLinkKind' });
registerEnumType(DevLinkState, { name: 'DevLinkState' });
registerEnumType(ProjectRole, { name: 'ProjectRole' });
registerEnumType(ReleaseStatus, { name: 'ReleaseStatus' });
registerEnumType(SprintStatus, {
name: 'SprintStatus',
description: 'PLANNED, ACTIVE (one per project at a time) or CLOSED',
});
registerEnumType(LinkDirection, { name: 'LinkDirection' });
registerEnumType(AutomationTriggerKind, {
name: 'AutomationTrigger',
description: 'What starts a rule',
});
registerEnumType(AutomationActionKind, {
name: 'AutomationAction',
description: 'What a rule does to the ticket',
});
registerEnumType(IssueSort, {
name: 'IssueSort',
description: 'RECENT: last updated first. RANK: backlog order.',
});
registerEnumType(NotificationKind, {
name: 'NotificationKind',
description: 'Why someone is told',
});