Skip to content

Commit

Permalink
feature(3.0.0) wip: a lot of cool features
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelyali committed Mar 20, 2019
1 parent bcecdc3 commit 6a37d9e
Show file tree
Hide file tree
Showing 66 changed files with 758 additions and 319 deletions.
6 changes: 3 additions & 3 deletions dist/classes/restful-service.class.d.ts
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;
}
3 changes: 3 additions & 0 deletions dist/constants.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export declare const FEAUTURE_NAME_METADATA = "NESTJSX_FEAUTURE_NAME_METADATA";
export declare const ACTION_NAME_METADATA = "NESTJSX_ACTION_NAME_METADATA";
export declare const OVERRIDE_METHOD_METADATA = "NESTJSX_OVERRIDE_METHOD_METADATA";
export declare const PARSED_QUERY_REQUEST_KEY = "NESTJSX_PARSED_QUERY_REQUEST_KEY";
export declare const PARSED_PARAMS_REQUEST_KEY = "NESTJSX_PARSED_PARAMS_REQUEST_KEY";
export declare const PARSED_OPTIONS_METADATA = "NESTJSX_PARSED_OPTIONS_METADATA";
export declare const CREATE_UPDATE: {
groups: string[];
};
Expand Down
3 changes: 3 additions & 0 deletions dist/constants.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/constants.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

164 changes: 90 additions & 74 deletions dist/decorators/crud.decorator.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6a37d9e

Please sign in to comment.