-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(abstracts): add
AbstractMangoRepository
- Loading branch information
1 parent
ea6708a
commit 7ac2164
Showing
14 changed files
with
867 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import type { CreateEntityDTO, EntityDTO, PatchEntityDTO } from '@/dtos' | ||
import type { UID } from '@/types' | ||
import type { OneOrMany, OrPromise, Path } from '@flex-development/tutils' | ||
import type { | ||
CarParams, | ||
CarQuery, | ||
CarUID, | ||
ICar | ||
} from '@tests/fixtures/cars.fixture' | ||
import AbstractMangoRepository from '../../mango-repo.abstract' | ||
|
||
/** | ||
* @file Test Fixture - CarsRepo | ||
* @module abstracts/tests/fixtures/cars-repo.fixture | ||
*/ | ||
|
||
export default class CarsRepo extends AbstractMangoRepository< | ||
ICar, | ||
CarUID, | ||
CarParams, | ||
CarQuery | ||
> { | ||
create<F extends Path<ICar>>(dto: CreateEntityDTO<ICar, F>): OrPromise<ICar> { | ||
throw new Error('Method not implemented') | ||
} | ||
|
||
patch<F extends Path<ICar>>( | ||
uid: UID, | ||
dto: PatchEntityDTO<ICar, F>, | ||
rfields?: string[] | ||
): OrPromise<ICar> { | ||
throw new Error('Method not implemented') | ||
} | ||
|
||
save<F extends Path<ICar>>( | ||
dto: OneOrMany<EntityDTO<ICar, F>> | ||
): OrPromise<ICar[]> { | ||
throw new Error('Method not implemented') | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.