UNPKG

@churchapps/helpers

Version:

Library of helper functions not specific to any one ChurchApps project or framework.

14 lines 828 B
import { UserInterface, UserContextInterface, IApiPermission, PersonInterface, LoginUserChurchInterface } from "./interfaces/index.js"; export declare class UserHelper { static currentUserChurch: LoginUserChurchInterface; static userChurches: LoginUserChurchInterface[]; static user: UserInterface; static churchChanged: boolean; static person: PersonInterface; static selectChurch: (context?: UserContextInterface, churchId?: string, keyName?: string) => Promise<void>; static setupApiHelper(userChurch: LoginUserChurchInterface): void; static setupApiHelperNoChurch(user: LoginUserChurchInterface): void; static checkAccess({ api, contentType, action }: IApiPermission): boolean; static createAppUrl(appUrl: string, returnUrl: string): string; } //# sourceMappingURL=UserHelper.d.ts.map