"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.announcementStoreSchema=exports.announcementUpdateSchema=exports.baseAnnouncementSchema=exports.announcementSchema=void 0;const schema_1=require("@b/utils/schema"),id=(0,schema_1.baseStringSchema)("ID of the Announcement"),type=(0,schema_1.baseEnumSchema)("Type of the Announcement",["GENERAL","EVENT","UPDATE"]),title=(0,schema_1.baseStringSchema)("Title of the Announcement",255),message={type:"string",description:"Message of the Announcement",nullable:!1},link=(0,schema_1.baseStringSchema)("Link of the Announcement",255,0,!0),status=(0,schema_1.baseBooleanSchema)("Status of the Announcement"),createdAt=(0,schema_1.baseDateTimeSchema)("Creation Date of the Announcement"),updatedAt=(0,schema_1.baseDateTimeSchema)("Last Update Date of the Announcement",!0),deletedAt=(0,schema_1.baseDateTimeSchema)("Deletion Date of the Announcement",!0);exports.announcementSchema={id:id,type:type,title:title,message:message,link:link,status:status,createdAt:createdAt,updatedAt:updatedAt,deletedAt:deletedAt};exports.baseAnnouncementSchema={id:id,type:type,title:title,message:message,link:link,status:status,createdAt:createdAt,updatedAt:updatedAt,deletedAt:deletedAt};exports.announcementUpdateSchema={type:"object",properties:{type:type,title:title,message:message,link:link,status:status},required:["type","title","message"]};exports.announcementStoreSchema={description:"Announcement created or updated successfully",content:{"application/json":{schema:{type:"object",properties:exports.baseAnnouncementSchema}}}};