"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 a specific CMS page by ID",operationId:"getCmsPageById",tags:["Admin","Content","Page"],parameters:[{index:0,name:"id",in:"path",required:!0,description:"ID of the CMS page to retrieve",schema:{type:"string"}}],responses:{200:{description:"CMS page details",content:{"application/json":{schema:{type:"object",properties:utils_1.basePageSchema}}}},401:query_1.unauthorizedResponse,404:(0,query_1.notFoundMetadataResponse)("CMS page not found"),500:query_1.serverErrorResponse},requiresAuth:!0,permission:"view.page",logModule:"ADMIN_CMS",logTitle:"Get page details"};exports.default=async e=>{const{params:t,ctx:s}=e;null==s||s.step(`Fetching page with ID: ${t.id}`);const r=await(0,query_1.getRecord)("page",t.id);null==s||s.success("Page retrieved successfully");return r};