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
11 lines (10 loc) • 517 B
TypeScript
import type { ProfileCollection } from "./types/profile.types";
export interface ProfileService {
addCompanyProfile(profile: ProfileCollection): Promise<any>;
updateCompanyProfile(recordId: string, updatedFields: Partial<ProfileCollection>): Promise<any>;
deleteCompanyProfile(recordId: string): Promise<any>;
createProfileCollection(): Promise<any>;
listAllCompanyProfiles(): Promise<ProfileCollection[]>;
checkProfileCollectionExists(): Promise<boolean>;
}
export * from "./profile.action";