2021-01-14 21:33:10 +00:00
|
|
|
// License: LGPL-3.0-or-later
|
2021-02-02 17:42:56 +00:00
|
|
|
import type { IdType, HoudiniObject, HoudiniEvent } from '../../common';
|
2021-01-14 21:33:10 +00:00
|
|
|
import type Nonprofit from '../';
|
2021-01-19 22:51:07 +00:00
|
|
|
import type { SupporterAddress } from './SupporterAddress';
|
2021-01-14 21:33:10 +00:00
|
|
|
|
|
|
|
export default interface Supporter extends HoudiniObject {
|
2021-01-19 22:51:07 +00:00
|
|
|
anonymous: boolean;
|
2021-01-14 21:33:10 +00:00
|
|
|
deleted: boolean;
|
|
|
|
email: string;
|
2021-01-19 22:51:07 +00:00
|
|
|
merged_into: IdType | Supporter | null;
|
2021-01-14 21:33:10 +00:00
|
|
|
name: string;
|
|
|
|
nonprofit: IdType | Nonprofit;
|
|
|
|
object: "supporter";
|
|
|
|
organization: string;
|
2021-01-19 22:51:07 +00:00
|
|
|
phone: string;
|
|
|
|
supporter_addresses: IdType[] | SupporterAddress[];
|
2021-01-14 21:33:10 +00:00
|
|
|
}
|
|
|
|
|
2021-02-01 23:16:06 +00:00
|
|
|
export type SupporterCreated = HoudiniEvent<'supporter_address.created', Supporter>;
|
|
|
|
export type SupporterUpdated = HoudiniEvent<'supporter_address.updated', Supporter>;
|
|
|
|
export type SupporterDeleted = HoudiniEvent<'supporter_address.deleted', Supporter>;
|
|
|
|
|
2021-01-14 21:33:10 +00:00
|
|
|
export * from './SupporterNote';
|
2021-01-19 22:51:07 +00:00
|
|
|
export * from './SupporterAddress';
|