@ptc-org/nestjs-query-rest 11.0.0-alpha.1 → 11.0.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ptc-org/nestjs-query-rest",
|
|
3
|
-
"version": "11.0.
|
|
3
|
+
"version": "11.0.1-alpha.0",
|
|
4
4
|
"description": "Nestjs rest query adapter",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rest",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"lodash.omit": "^4.18.0",
|
|
32
32
|
"pluralize": "^8.0.0",
|
|
33
33
|
"tslib": "^2.8.1",
|
|
34
|
-
"@ptc-org/nestjs-query-core": "11.0.
|
|
34
|
+
"@ptc-org/nestjs-query-core": "11.0.1-alpha.0",
|
|
35
35
|
"lodash.merge": "4.6.2",
|
|
36
36
|
"reflect-metadata": "0.2.2"
|
|
37
37
|
},
|
|
@@ -20,6 +20,8 @@ export declare function Post(options: MutationMethodDecoratorArg, ...methodOpts:
|
|
|
20
20
|
export declare function Post(returnTypeFunction?: ReturnTypeFunc, options?: MutationMethodDecoratorArg, ...methodOpts: MethodOpts[]): PropertyDecorator & MethodDecorator;
|
|
21
21
|
export declare function Put(options: MutationMethodDecoratorArg, ...methodOpts: MethodOpts[]): PropertyDecorator & MethodDecorator;
|
|
22
22
|
export declare function Put(returnTypeFunction?: ReturnTypeFunc, options?: MutationMethodDecoratorArg, ...methodOpts: MethodOpts[]): PropertyDecorator & MethodDecorator;
|
|
23
|
+
export declare function Patch(options: MutationMethodDecoratorArg, ...methodOpts: MethodOpts[]): PropertyDecorator & MethodDecorator;
|
|
24
|
+
export declare function Patch(returnTypeFunction?: ReturnTypeFunc, options?: MutationMethodDecoratorArg, ...methodOpts: MethodOpts[]): PropertyDecorator & MethodDecorator;
|
|
23
25
|
export declare function Delete(options: MutationMethodDecoratorArg, ...methodOpts: MethodOpts[]): PropertyDecorator & MethodDecorator;
|
|
24
26
|
export declare function Delete(returnTypeFunction?: ReturnTypeFunc, options?: MutationMethodDecoratorArg, ...methodOpts: MethodOpts[]): PropertyDecorator & MethodDecorator;
|
|
25
27
|
export {};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.Get = Get;
|
|
4
4
|
exports.Post = Post;
|
|
5
5
|
exports.Put = Put;
|
|
6
|
+
exports.Patch = Patch;
|
|
6
7
|
exports.Delete = Delete;
|
|
7
8
|
const common_1 = require("@nestjs/common");
|
|
8
9
|
const swagger_1 = require("@nestjs/swagger");
|
|
@@ -73,6 +74,9 @@ function Post(returnTypeFuncOrOptions, maybeOptions, ...methodOpts) {
|
|
|
73
74
|
function Put(returnTypeFuncOrOptions, maybeOptions, ...methodOpts) {
|
|
74
75
|
return methodDecorator(common_1.Put, common_1.HttpStatus.OK)(returnTypeFuncOrOptions, maybeOptions, ...methodOpts);
|
|
75
76
|
}
|
|
77
|
+
function Patch(returnTypeFuncOrOptions, maybeOptions, ...methodOpts) {
|
|
78
|
+
return methodDecorator(common_1.Patch, common_1.HttpStatus.OK)(returnTypeFuncOrOptions, maybeOptions, ...methodOpts);
|
|
79
|
+
}
|
|
76
80
|
function Delete(returnTypeFuncOrOptions, maybeOptions, ...methodOpts) {
|
|
77
81
|
return methodDecorator(common_1.Delete, common_1.HttpStatus.OK)(returnTypeFuncOrOptions, maybeOptions, ...methodOpts);
|
|
78
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controller-methods.decorator.js","sourceRoot":"","sources":["../../../../../packages/query-rest/src/decorators/controller-methods.decorator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"controller-methods.decorator.js","sourceRoot":"","sources":["../../../../../packages/query-rest/src/decorators/controller-methods.decorator.ts"],"names":[],"mappings":";;AAuHA,kBAMC;AASD,oBAMC;AASD,kBAMC;A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