"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:"Fetches a specific Admin Profit record",operationId:"getAdminProfitById",tags:["Admin","Finance","Profits"],parameters:[{name:"id",in:"path",description:"ID of the Admin Profit to fetch",required:!0,schema:{type:"string"}}],responses:{200:{description:"Admin Profit details",content:{"application/json":{schema:{type:"object",properties:utils_1.adminProfitSchema}}}}},requiresAuth:!0,permission:"view.admin.profit"};exports.default=async e=>{const{params:t}=e,{id:i}=t;return await(0,query_1.getRecord)("adminProfit",i)};