@churchapps/helpers
Version:
Library of helper functions not specific to any one ChurchApps project or framework.
14 lines • 875 B
TypeScript
import { PersonInterface, ContactInfoInterface } from "./interfaces";
export declare class PersonHelper {
static getPhotoPath(churchId: string, person: any): string;
static getPhotoUrl(person: PersonInterface): string;
static getAge(birthdate: Date): string;
static getDisplayNameFromPerson(person: any): string;
static getDisplayName(firstName: string, lastName: string, nickName: string): string;
static getBirthMonth(birthdate: Date): number;
static compareAddress(address1: ContactInfoInterface, address2: ContactInfoInterface): boolean;
static addressToString(address: ContactInfoInterface): string;
static changeOnlyAddress(contactInfo1: ContactInfoInterface, contactInfo2: ContactInfoInterface): ContactInfoInterface;
static checkAddressAvailabilty(person: PersonInterface): boolean;
}
//# sourceMappingURL=PersonHelper.d.ts.map