"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.pageStoreSchema=exports.pageUpdateSchema=exports.basePageSchema=void 0;const schema_1=require("@b/utils/schema"),id={...(0,schema_1.baseStringSchema)("ID of the CMS page"),nullable:!0},title=(0,schema_1.baseStringSchema)("Title of the CMS page"),content={...(0,schema_1.baseStringSchema)("Content of the CMS page"),maxLength:16777215,minLength:0},description={...(0,schema_1.baseStringSchema)("Short description of the CMS page"),nullable:!0,maxLength:1e3},image={...(0,schema_1.baseStringSchema)("URL to the image associated with the CMS page"),nullable:!0},slug={...(0,schema_1.baseStringSchema)("Slug for the CMS page URL"),pattern:"^[a-z0-9-_/]+$",maxLength:255},path={...(0,schema_1.baseStringSchema)("URL path for the CMS page"),nullable:!0},status=(0,schema_1.baseEnumSchema)("Publication status of the CMS page",["PUBLISHED","DRAFT"]),order=(0,schema_1.baseIntegerSchema)("Display order of the page"),visits=(0,schema_1.baseIntegerSchema)("Page view count"),isHome=(0,schema_1.baseBooleanSchema)("Marks this page as the home page"),isBuilderPage=(0,schema_1.baseBooleanSchema)("Indicates if the page is created with builder"),template={...(0,schema_1.baseStringSchema)("Template name for the builder page"),nullable:!0,maxLength:100},category={...(0,schema_1.baseStringSchema)("Category for the page"),nullable:!0,maxLength:100},seoTitle={...(0,schema_1.baseStringSchema)("SEO title for the page"),nullable:!0,maxLength:255},seoDescription={...(0,schema_1.baseStringSchema)("SEO description for the page"),nullable:!0,maxLength:500},seoKeywords={...(0,schema_1.baseStringSchema)("SEO keywords for the page (comma separated)"),nullable:!0},ogImage={...(0,schema_1.baseStringSchema)("Open Graph image URL"),nullable:!0},ogTitle={...(0,schema_1.baseStringSchema)("Open Graph title"),nullable:!0,maxLength:255},ogDescription={...(0,schema_1.baseStringSchema)("Open Graph description"),nullable:!0},settings={...(0,schema_1.baseStringSchema)("JSON string for additional page-level settings"),nullable:!0},customCss={...(0,schema_1.baseStringSchema)("Custom CSS for the page"),nullable:!0},customJs={...(0,schema_1.baseStringSchema)("Custom JS for the page"),nullable:!0},lastModifiedBy={...(0,schema_1.baseStringSchema)("ID of the user who last modified the page"),nullable:!0},publishedAt={type:"string",format:"date-time",description:"When the page was published",nullable:!0},createdAt={type:"string",format:"date-time",description:"Page creation date",nullable:!0},updatedAt={type:"string",format:"date-time",description:"Page last update date",nullable:!0},deletedAt={type:"string",format:"date-time",description:"Page deletion date (if soft deleted)",nullable:!0};exports.basePageSchema={id:id,title:title,content:content,description:description,image:image,slug:slug,path:path,status:status,order:order,visits:visits,isHome:isHome,isBuilderPage:isBuilderPage,template:template,category:category,seoTitle:seoTitle,seoDescription:seoDescription,seoKeywords:seoKeywords,ogImage:ogImage,ogTitle:ogTitle,ogDescription:ogDescription,settings:settings,customCss:customCss,customJs:customJs,lastModifiedBy:lastModifiedBy,publishedAt:publishedAt,createdAt:createdAt,updatedAt:updatedAt,deletedAt:deletedAt};exports.pageUpdateSchema={type:"object",properties:{title:title,content:content,description:description,image:image,slug:slug,path:path,status:status,order:order,visits:visits,isHome:isHome,isBuilderPage:isBuilderPage,template:template,category:category,seoTitle:seoTitle,seoDescription:seoDescription,seoKeywords:seoKeywords,ogImage:ogImage,ogTitle:ogTitle,ogDescription:ogDescription,settings:settings,customCss:customCss,customJs:customJs,lastModifiedBy:lastModifiedBy,publishedAt:publishedAt},required:["title","content","slug","status"]};exports.pageStoreSchema={description:"Page created or updated successfully",content:{"application/json":{schema:{type:"object",properties:exports.basePageSchema}}}};