You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
678 B
25 lines
678 B
/**
|
|
* Interfaces for the give records with limited contact information, good to show on a feed.
|
|
**/
|
|
|
|
import { GiveSummaryRecord } from "./records";
|
|
|
|
// Common interface for views with summary contact information
|
|
export interface ContactInfo {
|
|
known: boolean;
|
|
displayName: string;
|
|
profileImageUrl?: string;
|
|
}
|
|
|
|
// Define a subset of contact information fields
|
|
interface GiveContactInfo {
|
|
giver: ContactInfo;
|
|
issuer: ContactInfo;
|
|
receiver: ContactInfo;
|
|
providerPlanName?: string;
|
|
recipientProjectName?: string;
|
|
image?: string;
|
|
}
|
|
|
|
// Combine GiveSummaryRecord with contact information
|
|
export type GiveRecordWithContactInfo = GiveSummaryRecord & GiveContactInfo;
|
|
|