"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query"),utils_1=require("../utils");exports.metadata={summary:"Retrieves detailed information of a specific announcement by ID",operationId:"getAnnouncementById",tags:["Admin","Announcements"],parameters:[{index:0,name:"id",in:"path",required:!0,description:"ID of the announcement to retrieve",schema:{type:"string"}}],responses:{200:{description:"Announcement details",content:{"application/json":{schema:{type:"object",properties:utils_1.announcementSchema}}}},401:query_1.unauthorizedResponse,404:(0,query_1.notFoundMetadataResponse)("Announcement"),500:query_1.serverErrorResponse},permission:"view.announcement",requiresAuth:!0};exports.default=async e=>{const{params:n}=e;return await(0,query_1.getRecord)("announcement",n.id)};