contact-item.d.ts 891 B

123456789101112131415161718192021222324252627
  1. import { ContactAddress } from "./contact-address";
  2. import { ContactParams } from "./contact-params";
  3. export declare class ContactItem {
  4. readonly data: ContactParams;
  5. readonly id: string;
  6. readonly hash: string;
  7. name: string;
  8. addrs: ContactAddress[];
  9. me: boolean;
  10. groups: string[];
  11. alternateNames: string[];
  12. notes: string;
  13. lastSent?: Date;
  14. lastReceived?: Date;
  15. lastChanged?: Date;
  16. constructor(props: ContactParams);
  17. matchesGroup(group: string): boolean;
  18. getFirstEmail(): string | undefined;
  19. getFirstPhone(): string | undefined;
  20. getFirstUh(): string | undefined;
  21. search(search: string): boolean;
  22. getMatchingAddresses(search: string): ContactAddress[];
  23. matchesAddressExactly(addressType: string, addressValue: string): boolean;
  24. ensureAlternateNameExists(altName: string): void;
  25. getData(): ContactParams;
  26. }