2021-01-14 21:33:10 +00:00
|
|
|
// License: LGPL-3.0-or-later
|
2021-02-10 22:04:05 +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-02-10 22:04:05 +00:00
|
|
|
merged_into: IDType | Supporter | null;
|
2021-01-14 21:33:10 +00:00
|
|
|
name: string;
|
2021-02-10 22:04:05 +00:00
|
|
|
nonprofit: IDType | Nonprofit;
|
2021-01-14 21:33:10 +00:00
|
|
|
object: "supporter";
|
|
|
|
organization: string;
|
2021-01-19 22:51:07 +00:00
|
|
|
phone: string;
|
2021-02-10 22:04:05 +00:00
|
|
|
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';
|
2021-02-02 21:04:53 +00:00
|
|
|
export * from './Transaction';
|