Update the Typescript definition for SupporterAddress

This commit is contained in:
Eric Schultz 2021-01-19 16:51:07 -06:00 committed by Eric Schultz
parent cab6465e30
commit 9f4c94d5a5
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,20 @@
// License: LGPL-3.0-or-later
import type { IdType, HoudiniObject, HoudiniEvent } from '../../common';
import type Nonprofit from '..';
import type Supporter from '.';
export interface SupporterAddress extends HoudiniObject {
address: string;
city: string;
country: string;
deleted: boolean;
nonprofit: IdType | Nonprofit;
object: "supporter_address";
state_code: string;
supporter: IdType | Supporter;
zip_code: string;
}
export type SupporterAddressCreated = HoudiniEvent<'supporter_address.created', SupporterAddress>;
export type SupporterAddressUpdated = HoudiniEvent<'supporter_address.updated', SupporterAddress>;
export type SupporterAddressDeleted = HoudiniEvent<'supporter_address.deleted', SupporterAddress>;

View file

@ -1,14 +1,20 @@
// License: LGPL-3.0-or-later
import type { IdType, HoudiniObject } from '../../common';
import type Nonprofit from '../';
import type { SupporterAddress } from './SupporterAddress';
export default interface Supporter extends HoudiniObject {
anonymous: boolean;
deleted: boolean;
email: string;
merged_into: IdType | Supporter | null;
name: string;
nonprofit: IdType | Nonprofit;
object: "supporter";
organization: string;
phone: string;
supporter_addresses: IdType[] | SupporterAddress[];
}
export * from './SupporterNote';
export * from './SupporterAddress';