Fix some event definitions

This commit is contained in:
Eric Schultz 2021-02-22 13:01:34 -06:00 committed by Eric Schultz
parent c0c0a4893b
commit 0566f7a0b7
3 changed files with 12 additions and 12 deletions

View file

@ -1,5 +1,5 @@
// License: LGPL-3.0-or-later
import type { HouID, HoudiniObject, HoudiniEvent, Amount, IdType} from '../../common';
import type { HouID, HoudiniObject, HoudiniEvent, Amount, IDType} from '../../common';
import type Nonprofit from '..';
import type Campaign from '.';
import type { CampaignGiftPurchase, CampaignGiftOption } from '.';
@ -16,14 +16,14 @@ export interface TransactionAddress {
export interface CampaignGift extends HoudiniObject<HouID> {
address?: TransactionAddress;
amount: Amount;
campaign: IdType | Campaign;
campaign_gift_option: IdType | CampaignGiftOption;
campaign_gift_purchase: IdType | CampaignGiftPurchase;
campaign: IDType | Campaign;
campaign_gift_option: IDType | CampaignGiftOption;
campaign_gift_purchase: IDType | CampaignGiftPurchase;
deleted: boolean;
event: IdType | Event;
nonprofit: IdType | Nonprofit;
event: IDType | Event;
nonprofit: IDType | Nonprofit;
object: 'campaign_gift';
supporter: IdType | Supporter;
supporter: IDType | Supporter;
}
export type CampaignGiftCreated = HoudiniEvent<'campaign_gift.created', CampaignGift>;

View file

@ -1,5 +1,5 @@
// License: LGPL-3.0-or-later
import type { HouID, HoudiniObject, HoudiniEvent, Amount, IdType} from '../../common';
import type { HouID, HoudiniObject, HoudiniEvent, Amount, IDType} from '../../common';
import type Nonprofit from '..';
import type Campaign from '.';
import type { CampaignGift } from '.';
@ -9,11 +9,11 @@ import { Transaction } from '../Supporter';
export interface CampaignGiftPurchase extends HoudiniObject<HouID> {
amount: Amount;
campaign: IdType | Campaign;
campaign: IDType | Campaign;
campaign_gifts: HouID[] | CampaignGift[];
nonprofit: IdType | Nonprofit;
nonprofit: IDType | Nonprofit;
object: 'campaign_gift_purchase';
supporter: IdType | Supporter;
supporter: IDType | Supporter;
transaction: HouID | Transaction;
}

View file

@ -1,5 +1,5 @@
// License: LGPL-3.0-or-later
import { IDType, HoudiniObject } from './common';
import { HoudiniObject } from './common';
export interface User extends HoudiniObject {
object: 'user';