(endpoint: string, defaultQuery?: URLSearchParams): EndpointFind
; protected createEndpointGetAll
(endpoint: string, defaultQuery?: URLSearchParams): EndpointFindAll
; protected createEndpointPost
(endpoint: string): (body: Partial
, id?: number) => Promise
; protected createEndpointDelete
(endpoint: string, params?: URLSearchParams): EndpointDelete
;
protected createEndpointCustomGet (endpoint: string, defaultParams?: URLSearchParams): DefaultEndpoint ;
protected addPostType (endpoint: string, withRevisions: true, defaultParams?: URLSearchParams): DefaultEndpointWithRevision ;
protected addPostType (endpoint: string, withRevisions?: false, defaultParams?: URLSearchParams): DefaultEndpoint ;
blockType (): Promise ;
blockType (blockType: WP_Post_Type_Name | string): Promise ;
blockDirectory (term: string, page?: number, perPage?: number): Promise ;
comment (): DefaultEndpoint ;
media (): {
find: EndpointFind ;
create: (fileName: string, file: Buffer, mimeType?: string, data?: Partial , caption?: string) => Promise ;
delete: EndpointDeleteUntrashable ;
update: EndpointUpdateMedia ;
};
page (): DefaultEndpointWithRevision ;
plugin (): {
create: (plugin: string, status?: 'active' | 'inactive') => Promise ;
find: (plugin?: string) => Promise ;
update: (plugin: string, status?: 'active' | 'inactive', context?: WpRestApiContext) => Promise ;
delete: (plugin: string) => Promise ;
};
post (): DefaultEndpointWithRevision ;
postCategory (): DefaultEndpoint ;
postTag (): DefaultEndpoint ;
postType (): Promise ;
postType (postType: WP_Post_Type_Name | string): Promise ;
renderedBlock (body: RenderedBlockDto): Promise ;
reusableBlock (): DefaultEndpoint & {
autosave: (blockId: number) => {
create: EndpointCreate ;
find: EndpointFind ;
};
};
search (): {
find: EndpointFindOnly ;
update: EndpointUpdatePartial ;
};
status (): Promise ;
status (status: WP_Post_Type_Name | string): Promise ;
user (): {
find: EndpointFind ;
findMe: EndpointFindOnly ;
create: (body: Partial & Required<{
email: string;
username: string;
password: string;
}>) => Promise ;
update: (body: Partial & Required<{
password: string;
}>, userId: number) => Promise ;
delete: (reassign: number, ...userIds: number[]) => Promise<(P | null)[]>;
deleteMe: (reassign: number) => Promise ;
};
taxonomy (query: {
context?: 'edit' | 'embed' | 'view';
type?: string;
}, ...slugs: string[]): Promise ;
taxonomy (...slugs: string[]): Promise ;
theme (): Promise ;
applicationPassword(): {
create: (userId: number, appId: string, name: string) => Promise(search?: string, params?: Record;
siteSettings