UNPKG

pocketbase-tools

Version:

A TypeScript toolkit for PocketBase, featuring a standard service/action/types layered structure. It provides interfaces and implementations for common business logic such as users, products, company profiles, and file utilities, making it suitable for se

23 lines (22 loc) 611 B
import type { User, UserCreate, UserUpdate } from "./types/user.types"; /** * 获取所有用户列表 * @param options 可选过滤 */ export declare function getAllUsers(options?: { filter?: string; sort?: string; expand?: string[]; }): Promise<User[] | null>; /** * 添加用户 */ export declare function addUser(user: Partial<UserCreate>): Promise<User | null>; /** * 更新用户 */ export declare function updateUser(id: string, updatedFields: Partial<UserUpdate>): Promise<User | null>; /** * 删除用户 */ export declare function deleteUser(id: string): Promise<boolean | null>;