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
18 lines (17 loc) • 630 B
TypeScript
export interface ProfileCollection {
companyName: string;
contactEmail: string;
contactPhone: string;
companyAddress: string;
allowRegistration: boolean;
}
export interface ProfileAction {
addCompanyProfile(profile: ProfileCollection): Promise<any>;
updateCompanyProfile(recordId: string, updatedFields: Partial<ProfileCollection>): Promise<any>;
deleteCompanyProfile(recordId: string): Promise<any>;
createProfileCollection(): Promise<any>;
}
export interface ProfileService {
listAllCompanyProfiles(): Promise<ProfileCollection[]>;
checkProfileCollectionExists(): Promise<boolean>;
}