import { Process, ProcessUpdate } from '../types/settingsProcessService.type'; export interface ProcessData { id: string; name: string; description: string; active: boolean; updatedAt: Date; updatedBy: string; updatedByPicture: string; createdAt: Date; default: boolean; } export interface ProcessName { id: string; name: string; } export interface UpdatedBy { id: string; name: string; } export interface PathActive { active: boolean; } export interface DetailResponse { status: number; message: string; data: { _id: string; name: string; description: string; process: { _id: string; name: string; team: string[]; parentOf: string[]; parentOfId: string[]; dependentTo: string[]; dependentToId: string[]; processPosition: 'beforeDeploy' | 'duringDeploy' | 'afterDeploy'; reviewLeader: boolean; active: boolean; activable: boolean; related: 'FE' | 'Mobile' | 'no'; default: boolean; }[]; default: boolean; }; } export interface ProcessDefault { _id: string; nonactivable: boolean; active: boolean; default: boolean; name: string; team: { _id: string; teamName: string; teamInitial: string; }[]; dependencies: { _id: string; name: string; }[]; processPosition: 'Before Deploy' | 'During Deploy' | 'After Deploy'; reviewLeader: boolean; createdAt: string; updatedAt: string; } export interface PostProcessBody { name: string; description: string; process: { name: string; team: string[]; dependentTo?: string[]; processPosition: 'beforeDeploy' | 'duringDeploy' | 'afterDeploy'; reviewLeader: boolean; active: boolean; default: boolean; }[]; } export interface TeamsResponse { _id: string; figma: boolean; github: boolean; testing: boolean; teamName: string; teamInitial: string; memberCount: number; lastUpdate: Date | null; updatedBy: string | null; role: { create: boolean; view: boolean; update: boolean; delete: boolean; }; } export interface DeleteProcessBulkBody { ids: string[]; } export interface DeleteTemplateProcessBody { ids: string[]; } export interface CreateTemplateBody { name: string; description: string; processes: Process[]; } export interface PatchTemplateProcess { name: string | undefined; description?: string; processes?: ProcessUpdate[]; } export interface TemplateActivationBody { active: boolean; templateIds: string[]; }