import{HttpStatusCodes as e}from"./httpStatusCodes.mjs";const t=t=>t===e.OK_200||t===e.CREATED_201||t===e.ACCEPTED_202||t===e.NON_AUTHORITATIVE_INFORMATION_203||t===e.NO_CONTENT_204||t===e.RESET_CONTENT_205||t===e.PARTIAL_CONTENT_206||t===e.MULTI_STATUS_207||t===e.ALREADY_REPORTED_208||t===e.IM_USED_226;function n({message:n,description:r,data:i,error:a,status:o=e.OK_200}){return{success:t(o),message:n??void 0,description:r??void 0,data:i??null,error:a??void 0,status:o}}function r({status:n=e.OK_200,message:r,description:i,data:a,error:o,page:s,pageSize:c,totalPages:l,totalItems:u}){return{success:t(n),message:r??void 0,description:i??void 0,data:a??null,error:o??void 0,status:n,page:s??null,page_size:c??null,total_pages:l??null,total_items:u??null}}export{r as formatPaginatedResponse,n as formatResponse};
//# sourceMappingURL=responseData.mjs.map