import { IStatus } from '@/common/types'; import Api from './Api'; export interface IKanbanTemplateCreate { name: string; } export interface IKanbanTemplateEdit { name: string; boardId: string; objectVersionNumber: number; } export interface IKanbanTemplateStatus { statusId: string; name: string; categoryCode: IStatus['valueCode']; position: number; templateCompleted: boolean; completed?: boolean; organizationId?: string; } export interface IKanbanTemplateColumnCreate { projectId: 0; boardId: string; name: string; categoryCode: IStatus['valueCode']; } export interface IKanbanTemplateColumn { columnId: string; name: string; boardId: string; categoryCode: IStatus['valueCode']; projectId?: any; sequence: number; color?: any; colorCode?: any; statusId?: any; objectVersionNumber: number; status: IKanbanTemplateStatus[]; } export interface IKanbanTemplateMoveStatus { columnId: string; originColumnId: string; position: number; } export interface IKanbanTemplateMoveColumn { projectId: 0; boardId: string; columnId: string; sequence: number; objectVersionNumber: number; } export interface IKanbanTemplateColumnUpdate { projectId: 0; boardId: string; columnId: string; name: string; objectVersionNumber: number; } declare class KanbanTemplateApi extends Api { get prefix(): string; list(page: number, size: number): any; checkEnableCreate(): any; create(data: IKanbanTemplateCreate): any; checkName(name: string): any; edit(boardId: string, data: IKanbanTemplateEdit): any; delete(boardId: string): any; detail(boardId: string): any; createColumn(categoryCode: IStatus['code'], data: IKanbanTemplateColumnCreate): any; columns(boardId: string): Promise; unsetColumn(boardId: string): Promise; moveStatus(statusId: string, data: IKanbanTemplateMoveStatus): any; moveStatusToUnset(statusId: string, data: { columnId: string; }): any; moveColumn(data: IKanbanTemplateMoveColumn): any; updateColumn(boardId: string, columnId: string, data: IKanbanTemplateColumnUpdate): any; deleteColumn(columnId: string): any; updateStatusComplete(statusId: string, completed: boolean): any; } declare const kanbanTemplateApi: KanbanTemplateApi; declare const kanbanTemplateApiConfig: KanbanTemplateApi; export { kanbanTemplateApi, kanbanTemplateApiConfig };