"use strict" ; import { NurseParam } from "../lambda/definitions/types" ; export default class Formatter { getCenterFormatter ( queryResult ) { return queryResult . Items [ 0 ] ; } buildNurseParam ( nurseId , centerIds ) { const centers = centerIds . map ( ( centerId ) : { centerId : string ; } => { return { centerId : centerId } ; } ) ; return { nurseId : nurseId , manageCenters : centers , } ; } }