@rnaga/wp-node
Version:
👉 **[View Full Documentation at rnaga.github.io/wp-node →](https://rnaga.github.io/wp-node/)**
64 lines • 1.77 kB
TypeScript
import { Components } from "../core/components";
import { ApplicationPasswordsUtil } from "../core/utils/application-passwords.util";
import { Crud } from "./crud";
export declare class ApplicationPasswordsCrud extends Crud {
private applicationPasswordsUtil;
constructor(components: Components, applicationPasswordsUtil: ApplicationPasswordsUtil);
get(uuid: string): Promise<{
data: {
uuid: string;
app_id: string;
name: string;
password: string;
created: number;
last_used: number | null;
last_ip: string | null;
};
info: undefined;
}>;
list(): Promise<{
data: {
uuid: string;
app_id: string;
name: string;
password: string;
created: number;
last_used: number | null;
last_ip: string | null;
}[];
info: undefined;
}>;
create(data: {
name: string;
app_id?: string;
}): Promise<{
data: {
password: string;
item: {
uuid: string;
app_id: string;
name: string;
password: string;
created: number;
last_used: number | null;
last_ip: string | null;
};
};
info: undefined;
}>;
update(uuid: string, data: {
name: string;
}): Promise<{
data: boolean;
info: undefined;
}>;
delete(uuid: string): Promise<{
data: boolean;
info: undefined;
}>;
deleteAll(): Promise<{
data: boolean;
info: undefined;
}>;
}
//# sourceMappingURL=application-passwords.crud.d.ts.map