Fix some event definitions
This commit is contained in:
parent
c0c0a4893b
commit
0566f7a0b7
3 changed files with 12 additions and 12 deletions
|
@ -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>;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
Loading…
Reference in a new issue