first commit

This commit is contained in:
2026-10-03 13:40:26 +02:00
parent 732a5b5a16
commit 566f415fa7
555 changed files with 62704 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
import {
IssueArea,
IssueLinkType,
IssuePriority,
IssueStatus,
IssueType,
} from '../issue/issue.enums';
import { UserRefReadModel } from './user-ref.read-model';
export type LinkDirection = 'OUTWARD' | 'INWARD';
export class IssueLinkReadModel {
type!: IssueLinkType;
/** OUTWARD: this issue → other (e.g. "blocks"). INWARD: other → this ("is blocked by"). */
direction!: LinkDirection;
issueId!: string;
issueKey!: string;
}
export class IssueReadModel {
id!: string;
projectId!: string;
projectKey!: string;
number!: number;
key!: string;
type!: IssueType;
area!: IssueArea | null;
title!: string;
description!: string | null;
status!: IssueStatus;
priority!: IssuePriority;
reporter!: UserRefReadModel;
assignee!: UserRefReadModel | null;
release!: { id: string; name: string } | null;
labels!: string[];
figmaUrl!: string | null;
storyPoints!: number | null;
dueDate!: string | null;
links!: IssueLinkReadModel[];
commentCount!: number;
createdAt!: string;
updatedAt!: string;
/** Position of the last projected event. */
version!: number;
}