import { operation, buildingBase, requestBodySchema, response200, response500, security, statusSchema, tags, } from '../../chunks.ts'; const base = buildingBase('Warehouse'); // Warehouse.pod documents no methods beyond those shared by all Modules (see Modules.pod), so // this only defines `view`. export const warehouse = { [`${base}/view`]: { post: { ...tags(base), ...security(), ...operation( "Retrieve this module's properties.", 'Retrieves the properties of this module.' ), ...requestBodySchema({ type: 'object', required: ['building_id'], properties: { building_id: { type: 'integer', description: 'The unique id of the building.' }, }, }), responses: { ...response200('Retrieves the properties of this module.', { type: 'object', required: ['building', 'status'], properties: { building: { type: 'object', properties: { id: { type: 'integer' }, name: { type: 'string' }, image: { type: 'string' }, level: { type: 'integer' }, x: { type: 'integer' }, y: { type: 'integer' }, efficiency: { type: 'integer' }, }, required: ['id', 'name', 'image', 'level', 'x', 'y', 'efficiency'], }, status: statusSchema(), }, }), ...response500(), }, }, }, };