17 lines
939 B
TypeScript
17 lines
939 B
TypeScript
import { MikroORM } from '@mikro-orm/core';
|
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
import { Gift, GiftContribution } from '../entities/gift.entity';
|
|
import { CreateGiftDto } from '../api/dto/create-gift.dto';
|
|
import { CreateContributionDto } from '../api/dto/create-contribution.dto';
|
|
export declare class GiftService {
|
|
private readonly orm;
|
|
private readonly eventEmitter;
|
|
constructor(orm: MikroORM, eventEmitter: EventEmitter2);
|
|
private get em();
|
|
createGift(tenantId: string, dto: CreateGiftDto): Promise<Gift>;
|
|
createContribution(tenantId: string, dto: CreateContributionDto): Promise<GiftContribution>;
|
|
listGifts(tenantId: string): Promise<Gift[]>;
|
|
getGiftById(tenantId: string, id: string, requesterId?: string): Promise<Gift | null>;
|
|
listContributions(tenantId: string, giftId: string, requesterId?: string): Promise<GiftContribution[]>;
|
|
}
|
|
//# sourceMappingURL=gift.service.d.ts.map
|