1 | import { Entity, EntityCrudRepository, Getter, HasManyDefinition, InclusionResolver } from '../..';
|
2 | import { HasManyThroughRepository } from './has-many-through.repository';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export type HasManyThroughRepositoryFactory<TargetEntity extends Entity, TargetID, ThroughEntity extends Entity, SourceID> = {
|
11 | (fkValue: SourceID): HasManyThroughRepository<TargetEntity, TargetID, ThroughEntity>;
|
12 | |
13 |
|
14 |
|
15 | inclusionResolver: InclusionResolver<Entity, TargetEntity>;
|
16 | };
|
17 | export declare function createHasManyThroughRepositoryFactory<Target extends Entity, TargetID, Through extends Entity, ThroughID, SourceID>(relationMetadata: HasManyDefinition, targetRepositoryGetter: Getter<EntityCrudRepository<Target, TargetID>> | {
|
18 | [repoType: string]: Getter<EntityCrudRepository<Target, TargetID>>;
|
19 | }, throughRepositoryGetter: Getter<EntityCrudRepository<Through, ThroughID>>): HasManyThroughRepositoryFactory<Target, TargetID, Through, SourceID>;
|