import {DistributionRepresentation} from './distribution'; import {NameValue} from '@varmasagi/ics-common-types'; export class ActionPlanRepresentation { assigneeList: DistributionRepresentation[]; kpiTarget: string; critical: NameValue; metric: NameValue; actionStatus: NameValue; area: NameValue; category: NameValue; proposedDate: string | Date; situationDescription: string; active?: any; application: NameValue; recommendedAction: string; completeStatus: boolean ; textResponse: boolean; imageDocUpload: boolean; private constructor() { } static create(application: NameValue): ActionPlanRepresentation { const actionPlan = new ActionPlanRepresentation(); actionPlan.application = application; actionPlan.completeStatus = true; return actionPlan; } public withKpiTarget(kpiTarget: string): ActionPlanRepresentation { this.kpiTarget = kpiTarget; return this; } public withCritical(critical: NameValue): ActionPlanRepresentation { this.critical = critical; return this; } public withSituationDescription(situationDescription: string): ActionPlanRepresentation { this.situationDescription = situationDescription; return this; } public withRecommendedAction(recommendedAction: string): ActionPlanRepresentation { this.recommendedAction = recommendedAction; return this; } }