"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.authorStoreSchema=exports.authorUpdateSchema=exports.authorCreateSchema=exports.baseAuthorSchema=void 0;const schema_1=require("@b/utils/schema"),id=(0,schema_1.baseStringSchema)("ID of the author"),userId=(0,schema_1.baseStringSchema)("User ID associated with the author"),status=(0,schema_1.baseEnumSchema)("Current status of the author",["PENDING","APPROVED","REJECTED"]),createdAt=(0,schema_1.baseDateTimeSchema)("Creation date of the author",!0),deletedAt=(0,schema_1.baseDateTimeSchema)("Deletion date of the author",!0),updatedAt=(0,schema_1.baseDateTimeSchema)("Last update date of the author",!0);exports.baseAuthorSchema={id:id,userId:userId,status:status,createdAt:createdAt,deletedAt:deletedAt,updatedAt:updatedAt};exports.authorCreateSchema={type:"object",properties:{userId:userId,status:status},required:["userId","status"]};exports.authorUpdateSchema={type:"object",properties:{status:status},required:["status"]};exports.authorStoreSchema={description:"Author created or updated successfully",content:{"application/json":{schema:{type:"object",properties:exports.baseAuthorSchema}}}};