@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
52 lines • 1.68 kB
TypeScript
import { z } from "zod";
import { Components } from "../core/components";
import * as val from "../validators";
import { Crud } from "./crud";
export declare class RevisionCrud extends Crud {
constructor(components: Components);
private checkPermission;
get(parentId: number, id: number): Promise<{
data: import("../types").WpPosts;
info: undefined;
}>;
restore(parentId: number, id: number): Promise<{
data: boolean;
info: undefined;
}>;
list(parentId: number, args: Partial<z.infer<typeof val.crud.revisionListParams>>): Promise<{
data: {
ID: number;
post_author: number;
post_date: string | undefined;
post_date_gmt: string | undefined;
post_content: string;
post_title: string;
post_excerpt: string;
post_status: string;
comment_status: string;
ping_status: string;
post_password: string;
post_name: string;
to_ping: string;
pinged: string;
post_modified: string | undefined;
post_modified_gmt: string | undefined;
post_content_filtered: string;
post_parent: number;
guid: string;
menu_order: number;
post_type: string;
post_mime_type: string;
comment_count: number;
}[];
info: {
pagination: {
page: number;
limit: number;
totalPage: number;
count: number;
};
};
}>;
}
//# sourceMappingURL=revision.crud.d.ts.map