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
8 lines (7 loc) • 822 B
TypeScript
import { ProfileCollection } from "./types";
export declare function listAllCompanyProfiles(): Promise<import("pocketbase").RecordModel[] | null>;
export declare function checkProfileCollectionExists(): Promise<boolean | null>;
export declare function createProfileCollection(): Promise<import("pocketbase").CollectionModel | null>;
export declare function addCompanyProfile(companyNameOrProfile: string | ProfileCollection, contactEmail?: string, contactPhone?: string, companyAddress?: string, allowRegistration?: boolean): Promise<import("pocketbase").RecordModel | null>;
export declare function updateCompanyProfile(recordId: string, updatedFields: Partial<ProfileCollection>): Promise<import("pocketbase").RecordModel | null>;
export declare function deleteCompanyProfile(recordId: string): Promise<boolean | null>;