-
-
Notifications
You must be signed in to change notification settings - Fork 524
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(3.0.0) wip: a lot of cool features
- Loading branch information
1 parent
bcecdc3
commit 6a37d9e
Showing
66 changed files
with
758 additions
and
319 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
import { BadRequestException, NotFoundException } from '@nestjs/common'; | ||
import { RestfulOptions } from '../interfaces'; | ||
import { RestfulOptions, GetManyDefaultResponse } from '../interfaces'; | ||
export declare abstract class RestfulService<T> { | ||
protected abstract options: RestfulOptions; | ||
constructor(); | ||
abstract getMany(...args: any[]): Promise<T[]>; | ||
abstract getMany(...args: any[]): Promise<GetManyDefaultResponse<T>>; | ||
abstract getOne(...args: any[]): Promise<T>; | ||
abstract createOne(...args: any[]): Promise<T>; | ||
abstract createMany(...args: any[]): Promise<T[]>; | ||
abstract updateOne(...args: any[]): Promise<T>; | ||
abstract deleteOne(...args: any[]): Promise<void>; | ||
abstract deleteOne(...args: any[]): Promise<void | T>; | ||
throwBadRequestException(msg?: any): BadRequestException; | ||
throwNotFoundException(name: string): NotFoundException; | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.