changemaker.lite/api/dist/modules/pages/pages.schemas.d.ts

192 lines
7.1 KiB
TypeScript

import { z } from 'zod';
export declare const createLandingPageSchema: z.ZodObject<{
title: z.ZodString;
description: z.ZodOptional<z.ZodString>;
editorMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["VISUAL", "CODE"]>>>;
blocks: z.ZodDefault<z.ZodOptional<z.ZodAny>>;
htmlOutput: z.ZodOptional<z.ZodString>;
cssOutput: z.ZodOptional<z.ZodString>;
mkdocsPath: z.ZodOptional<z.ZodString>;
mkdocsExportMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<["THEMED", "STANDALONE"]>>>;
mkdocsHideNav: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
mkdocsHideToc: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
mkdocsSkipExport: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
published: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
listed: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
seoTitle: z.ZodOptional<z.ZodString>;
seoDescription: z.ZodOptional<z.ZodString>;
seoImage: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
title: string;
editorMode: "VISUAL" | "CODE";
mkdocsExportMode: "THEMED" | "STANDALONE";
mkdocsHideNav: boolean;
mkdocsHideToc: boolean;
mkdocsSkipExport: boolean;
published: boolean;
listed: boolean;
blocks?: any;
description?: string | undefined;
htmlOutput?: string | undefined;
cssOutput?: string | undefined;
mkdocsPath?: string | undefined;
seoTitle?: string | undefined;
seoDescription?: string | undefined;
seoImage?: string | undefined;
}, {
title: string;
blocks?: any;
description?: string | undefined;
htmlOutput?: string | undefined;
cssOutput?: string | undefined;
editorMode?: "VISUAL" | "CODE" | undefined;
mkdocsPath?: string | undefined;
mkdocsExportMode?: "THEMED" | "STANDALONE" | undefined;
mkdocsHideNav?: boolean | undefined;
mkdocsHideToc?: boolean | undefined;
mkdocsSkipExport?: boolean | undefined;
published?: boolean | undefined;
listed?: boolean | undefined;
seoTitle?: string | undefined;
seoDescription?: string | undefined;
seoImage?: string | undefined;
}>;
export declare const updateLandingPageSchema: z.ZodObject<{
title: z.ZodOptional<z.ZodString>;
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
editorMode: z.ZodOptional<z.ZodEnum<["VISUAL", "CODE"]>>;
blocks: z.ZodOptional<z.ZodAny>;
htmlOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
cssOutput: z.ZodOptional<z.ZodNullable<z.ZodString>>;
mkdocsPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
mkdocsExportMode: z.ZodOptional<z.ZodEnum<["THEMED", "STANDALONE"]>>;
mkdocsHideNav: z.ZodOptional<z.ZodBoolean>;
mkdocsHideToc: z.ZodOptional<z.ZodBoolean>;
mkdocsSkipExport: z.ZodOptional<z.ZodBoolean>;
published: z.ZodOptional<z.ZodBoolean>;
listed: z.ZodOptional<z.ZodBoolean>;
seoTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
seoDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
seoImage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
}, "strip", z.ZodTypeAny, {
blocks?: any;
title?: string | undefined;
description?: string | null | undefined;
htmlOutput?: string | null | undefined;
cssOutput?: string | null | undefined;
editorMode?: "VISUAL" | "CODE" | undefined;
mkdocsPath?: string | null | undefined;
mkdocsExportMode?: "THEMED" | "STANDALONE" | undefined;
mkdocsHideNav?: boolean | undefined;
mkdocsHideToc?: boolean | undefined;
mkdocsSkipExport?: boolean | undefined;
published?: boolean | undefined;
listed?: boolean | undefined;
seoTitle?: string | null | undefined;
seoDescription?: string | null | undefined;
seoImage?: string | null | undefined;
}, {
blocks?: any;
title?: string | undefined;
description?: string | null | undefined;
htmlOutput?: string | null | undefined;
cssOutput?: string | null | undefined;
editorMode?: "VISUAL" | "CODE" | undefined;
mkdocsPath?: string | null | undefined;
mkdocsExportMode?: "THEMED" | "STANDALONE" | undefined;
mkdocsHideNav?: boolean | undefined;
mkdocsHideToc?: boolean | undefined;
mkdocsSkipExport?: boolean | undefined;
published?: boolean | undefined;
listed?: boolean | undefined;
seoTitle?: string | null | undefined;
seoDescription?: string | null | undefined;
seoImage?: string | null | undefined;
}>;
export declare const listLandingPagesSchema: z.ZodObject<{
page: z.ZodDefault<z.ZodNumber>;
limit: z.ZodDefault<z.ZodNumber>;
search: z.ZodOptional<z.ZodString>;
published: z.ZodOptional<z.ZodEnum<["true", "false"]>>;
}, "strip", z.ZodTypeAny, {
limit: number;
page: number;
search?: string | undefined;
published?: "false" | "true" | undefined;
}, {
search?: string | undefined;
limit?: number | undefined;
page?: number | undefined;
published?: "false" | "true" | undefined;
}>;
export declare const createPageBlockSchema: z.ZodObject<{
type: z.ZodString;
label: z.ZodString;
schema: z.ZodDefault<z.ZodOptional<z.ZodAny>>;
defaults: z.ZodDefault<z.ZodOptional<z.ZodAny>>;
thumbnail: z.ZodOptional<z.ZodString>;
category: z.ZodOptional<z.ZodString>;
sortOrder: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
}, "strip", z.ZodTypeAny, {
type: string;
sortOrder: number;
label: string;
schema?: any;
category?: string | undefined;
defaults?: any;
thumbnail?: string | undefined;
}, {
type: string;
label: string;
schema?: any;
category?: string | undefined;
sortOrder?: number | undefined;
defaults?: any;
thumbnail?: string | undefined;
}>;
export declare const updatePageBlockSchema: z.ZodObject<{
type: z.ZodOptional<z.ZodString>;
label: z.ZodOptional<z.ZodString>;
schema: z.ZodOptional<z.ZodAny>;
defaults: z.ZodOptional<z.ZodAny>;
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
category: z.ZodOptional<z.ZodNullable<z.ZodString>>;
sortOrder: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type?: string | undefined;
schema?: any;
category?: string | null | undefined;
sortOrder?: number | undefined;
label?: string | undefined;
defaults?: any;
thumbnail?: string | null | undefined;
}, {
type?: string | undefined;
schema?: any;
category?: string | null | undefined;
sortOrder?: number | undefined;
label?: string | undefined;
defaults?: any;
thumbnail?: string | null | undefined;
}>;
export declare const listPageBlocksSchema: z.ZodObject<{
category: z.ZodOptional<z.ZodString>;
}, "strip", z.ZodTypeAny, {
category?: string | undefined;
}, {
category?: string | undefined;
}>;
export declare const pageIdSchema: z.ZodObject<{
id: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
}, {
id: string;
}>;
export type CreateLandingPageInput = z.infer<typeof createLandingPageSchema>;
export type UpdateLandingPageInput = z.infer<typeof updateLandingPageSchema>;
export type ListLandingPagesInput = z.infer<typeof listLandingPagesSchema>;
export type CreatePageBlockInput = z.infer<typeof createPageBlockSchema>;
export type UpdatePageBlockInput = z.infer<typeof updatePageBlockSchema>;
export type ListPageBlocksInput = z.infer<typeof listPageBlocksSchema>;
//# sourceMappingURL=pages.schemas.d.ts.map