54 lines
1.6 KiB
TypeScript
54 lines
1.6 KiB
TypeScript
import { Prisma } from '@prisma/client';
|
|
import type { CreatePageBlockInput, UpdatePageBlockInput, ListPageBlocksInput } from './pages.schemas';
|
|
export declare const blocksService: {
|
|
findAll(filters: ListPageBlocksInput): Promise<{
|
|
type: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
schema: Prisma.JsonValue;
|
|
category: string | null;
|
|
label: string;
|
|
sortOrder: number;
|
|
defaults: Prisma.JsonValue;
|
|
thumbnail: string | null;
|
|
}[]>;
|
|
findById(id: string): Promise<{
|
|
type: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
schema: Prisma.JsonValue;
|
|
category: string | null;
|
|
label: string;
|
|
sortOrder: number;
|
|
defaults: Prisma.JsonValue;
|
|
thumbnail: string | null;
|
|
}>;
|
|
create(data: CreatePageBlockInput): Promise<{
|
|
type: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
schema: Prisma.JsonValue;
|
|
category: string | null;
|
|
label: string;
|
|
sortOrder: number;
|
|
defaults: Prisma.JsonValue;
|
|
thumbnail: string | null;
|
|
}>;
|
|
update(id: string, data: UpdatePageBlockInput): Promise<{
|
|
type: string;
|
|
id: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
schema: Prisma.JsonValue;
|
|
category: string | null;
|
|
label: string;
|
|
sortOrder: number;
|
|
defaults: Prisma.JsonValue;
|
|
thumbnail: string | null;
|
|
}>;
|
|
delete(id: string): Promise<void>;
|
|
};
|
|
//# sourceMappingURL=blocks.service.d.ts.map
|