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

143 lines
4.7 KiB
TypeScript

import { Prisma } from '@prisma/client';
import type { CreateLandingPageInput, UpdateLandingPageInput, ListLandingPagesInput } from './pages.schemas';
export declare const pagesService: {
findAll(filters: ListLandingPagesInput): Promise<{
pages: {
id: string;
createdAt: Date;
updatedAt: Date;
blocks: Prisma.JsonValue;
title: string;
description: string | null;
slug: string;
htmlOutput: string | null;
cssOutput: string | null;
editorMode: import(".prisma/client").$Enums.EditorMode;
mkdocsPath: string | null;
mkdocsStubPath: string | null;
mkdocsExportMode: import(".prisma/client").$Enums.MkdocsExportMode;
mkdocsHideNav: boolean;
mkdocsHideToc: boolean;
mkdocsSkipExport: boolean;
published: boolean;
listed: boolean;
seoTitle: string | null;
seoDescription: string | null;
seoImage: string | null;
}[];
pagination: {
page: number;
limit: number;
total: number;
totalPages: number;
};
}>;
findById(id: string): Promise<{
id: string;
createdAt: Date;
updatedAt: Date;
blocks: Prisma.JsonValue;
title: string;
description: string | null;
slug: string;
htmlOutput: string | null;
cssOutput: string | null;
editorMode: import(".prisma/client").$Enums.EditorMode;
mkdocsPath: string | null;
mkdocsStubPath: string | null;
mkdocsExportMode: import(".prisma/client").$Enums.MkdocsExportMode;
mkdocsHideNav: boolean;
mkdocsHideToc: boolean;
mkdocsSkipExport: boolean;
published: boolean;
listed: boolean;
seoTitle: string | null;
seoDescription: string | null;
seoImage: string | null;
}>;
findBySlugPublic(slug: string): Promise<{
id: string;
createdAt: Date;
updatedAt: Date;
blocks: Prisma.JsonValue;
title: string;
description: string | null;
slug: string;
htmlOutput: string | null;
cssOutput: string | null;
editorMode: import(".prisma/client").$Enums.EditorMode;
mkdocsPath: string | null;
mkdocsStubPath: string | null;
mkdocsExportMode: import(".prisma/client").$Enums.MkdocsExportMode;
mkdocsHideNav: boolean;
mkdocsHideToc: boolean;
mkdocsSkipExport: boolean;
published: boolean;
listed: boolean;
seoTitle: string | null;
seoDescription: string | null;
seoImage: string | null;
}>;
create(data: CreateLandingPageInput): Promise<{
id: string;
createdAt: Date;
updatedAt: Date;
blocks: Prisma.JsonValue;
title: string;
description: string | null;
slug: string;
htmlOutput: string | null;
cssOutput: string | null;
editorMode: import(".prisma/client").$Enums.EditorMode;
mkdocsPath: string | null;
mkdocsStubPath: string | null;
mkdocsExportMode: import(".prisma/client").$Enums.MkdocsExportMode;
mkdocsHideNav: boolean;
mkdocsHideToc: boolean;
mkdocsSkipExport: boolean;
published: boolean;
listed: boolean;
seoTitle: string | null;
seoDescription: string | null;
seoImage: string | null;
}>;
update(id: string, data: UpdateLandingPageInput): Promise<{
id: string;
createdAt: Date;
updatedAt: Date;
blocks: Prisma.JsonValue;
title: string;
description: string | null;
slug: string;
htmlOutput: string | null;
cssOutput: string | null;
editorMode: import(".prisma/client").$Enums.EditorMode;
mkdocsPath: string | null;
mkdocsStubPath: string | null;
mkdocsExportMode: import(".prisma/client").$Enums.MkdocsExportMode;
mkdocsHideNav: boolean;
mkdocsHideToc: boolean;
mkdocsSkipExport: boolean;
published: boolean;
listed: boolean;
seoTitle: string | null;
seoDescription: string | null;
seoImage: string | null;
}>;
delete(id: string): Promise<void>;
syncOverrides(): Promise<{
imported: number;
updated: number;
stubs: number;
}>;
validateExports(): Promise<{
validated: number;
repaired: number;
errors: Array<{
pageId: string;
slug: string;
error: string;
}>;
}>;
};
//# sourceMappingURL=pages.service.d.ts.map