first init
This commit is contained in:
Vendored
+79
@@ -0,0 +1,79 @@
|
||||
export type Role = 'admin' | 'member';
|
||||
export type Priority = 'LOW' | 'MEDIUM' | 'HIGH' | 'URGENT';
|
||||
export interface Subtask {
|
||||
id: string;
|
||||
title: string;
|
||||
completed: boolean;
|
||||
}
|
||||
export interface ActivityLogPayload {
|
||||
id: string;
|
||||
boardId: string;
|
||||
ticketId?: string | null;
|
||||
ticketTitle: string;
|
||||
action: 'MOVED' | 'CREATED' | 'BLOCKED' | 'UNBLOCKED' | 'DELETED';
|
||||
fromColumnTitle?: string | null;
|
||||
toColumnTitle?: string | null;
|
||||
userName: string;
|
||||
details?: string | null;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface BoardCreationResult {
|
||||
id: string;
|
||||
title: string;
|
||||
adminKey: string;
|
||||
memberKey: string;
|
||||
adminUrlFragment: string;
|
||||
memberUrlFragment: string;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface BoardPayload {
|
||||
id: string;
|
||||
title: string;
|
||||
role: Role;
|
||||
autoMoveStale: boolean;
|
||||
columns: ColumnPayload[];
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
export interface ColumnPayload {
|
||||
id: string;
|
||||
boardId: string;
|
||||
title: string;
|
||||
order: number;
|
||||
maxWipLimit: number;
|
||||
autoStaleHours: number;
|
||||
tickets: TicketPayload[];
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
export interface TicketPayload {
|
||||
id: string;
|
||||
columnId: string;
|
||||
title: string;
|
||||
description: string;
|
||||
order: number;
|
||||
priority: Priority;
|
||||
tags: string[];
|
||||
subtasks: Subtask[];
|
||||
dueDate?: string | null;
|
||||
isBlocked?: boolean;
|
||||
blockedReason?: string | null;
|
||||
assignee?: string | null;
|
||||
movedAt: string;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
export interface FieldLockInfo {
|
||||
ticketId: string;
|
||||
field: 'title' | 'description';
|
||||
socketId: string;
|
||||
userId: string;
|
||||
userName: string;
|
||||
lockedAt: number;
|
||||
}
|
||||
export interface SocketAuthData {
|
||||
boardId: string;
|
||||
key: string;
|
||||
userName?: string;
|
||||
userId?: string;
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
export {};
|
||||
Reference in New Issue
Block a user