2026-06-09 11:58:20 +03:30
|
|
|
using TeamUp.Modules.OrgBoard.Domain;
|
2026-06-09 23:49:28 +03:30
|
|
|
using TeamUp.SharedKernel.Access;
|
2026-06-09 11:58:20 +03:30
|
|
|
|
|
|
|
|
namespace TeamUp.Modules.OrgBoard.Endpoints;
|
|
|
|
|
|
|
|
|
|
internal sealed record CreateOrganizationRequest(Guid OrganizationId, string Name);
|
|
|
|
|
|
|
|
|
|
internal sealed record OrganizationResponse(Guid Id, string Name);
|
|
|
|
|
|
|
|
|
|
internal sealed record CreateTeamRequest(Guid OrganizationId, string Name);
|
|
|
|
|
|
|
|
|
|
internal sealed record TeamResponse(Guid Id, Guid OrganizationId, string Name);
|
|
|
|
|
|
|
|
|
|
internal sealed record CreateTaskRequest(Guid TeamId, string Title, string? Description, WorkItemType Type);
|
|
|
|
|
|
|
|
|
|
internal sealed record MoveTaskRequest(WorkItemStatus Status);
|
|
|
|
|
|
|
|
|
|
internal sealed record AssignTaskRequest(Guid MemberId);
|
|
|
|
|
|
|
|
|
|
internal sealed record TaskResponse(
|
|
|
|
|
Guid Id,
|
|
|
|
|
Guid TeamId,
|
|
|
|
|
string Title,
|
|
|
|
|
string? Description,
|
|
|
|
|
string Type,
|
|
|
|
|
string Status,
|
|
|
|
|
string AssigneeKind,
|
|
|
|
|
Guid? AssigneeId,
|
|
|
|
|
Guid? ParentId);
|
|
|
|
|
|
|
|
|
|
internal sealed record BoardColumn(string Status, IReadOnlyList<TaskResponse> Items);
|
|
|
|
|
|
|
|
|
|
internal sealed record BoardResponse(Guid TeamId, IReadOnlyList<BoardColumn> Columns);
|
2026-06-09 23:49:28 +03:30
|
|
|
|
|
|
|
|
internal sealed record CreateSeatRequest(Guid TeamId, string RoleName);
|
|
|
|
|
|
|
|
|
|
internal sealed record SeatResponse(Guid Id, Guid TeamId, string RoleName, string State, Guid? MemberId, Guid? AgentId);
|
|
|
|
|
|
|
|
|
|
internal sealed record ConfigureAgentRequest(
|
|
|
|
|
string Name,
|
|
|
|
|
string? Monogram,
|
|
|
|
|
Autonomy Autonomy,
|
|
|
|
|
Guid ApiConfigId,
|
|
|
|
|
Guid? FallbackApiConfigId,
|
|
|
|
|
List<string> SkillKeys,
|
|
|
|
|
List<string> Docs);
|
|
|
|
|
|
|
|
|
|
internal sealed record AgentResponse(
|
|
|
|
|
Guid Id,
|
|
|
|
|
Guid SeatId,
|
|
|
|
|
string Name,
|
|
|
|
|
string? Monogram,
|
|
|
|
|
string Autonomy,
|
|
|
|
|
Guid ApiConfigId,
|
|
|
|
|
Guid? FallbackApiConfigId,
|
|
|
|
|
List<string> SkillKeys,
|
|
|
|
|
List<string> Docs);
|