"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.postStoreSchema=exports.postUpdateSchema=exports.basePostSchema=void 0;const schema_1=require("@b/utils/schema"),id=(0,schema_1.baseStringSchema)("ID of the Post"),title=(0,schema_1.baseStringSchema)("Title of the Post"),content=(0,schema_1.baseStringSchema)("Content of the Post"),categoryId=(0,schema_1.baseStringSchema)("Category ID linked to the Post"),authorId=(0,schema_1.baseStringSchema)("Author ID who wrote the Post"),slug=(0,schema_1.baseStringSchema)("Slug for the Post URL"),description=(0,schema_1.baseStringSchema)("Description of the Post"),status=(0,schema_1.baseEnumSchema)("Publication status of the Post",["PUBLISHED","DRAFT","TRASH"]),image=(0,schema_1.baseStringSchema)("Image URL of the Post"),createdAt=(0,schema_1.baseDateTimeSchema)("Creation date of the Post"),updatedAt=(0,schema_1.baseDateTimeSchema)("Last update date of the Post"),deletedAt=(0,schema_1.baseDateTimeSchema)("Deletion date of the Post, if applicable");exports.basePostSchema={id:id,title:title,content:content,categoryId:categoryId,authorId:authorId,slug:slug,description:description,status:status,image:image,createdAt:createdAt,updatedAt:updatedAt,deletedAt:deletedAt};exports.postUpdateSchema={type:"object",properties:{title:title,content:content,categoryId:categoryId,authorId:authorId,slug:slug,description:description,status:status,image:image},required:["title","content","categoryId","authorId","slug","status"]};exports.postStoreSchema={description:"Post created or updated successfully",content:{"application/json":{schema:{type:"object",properties:exports.basePostSchema}}}};