1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.ApiOperation = void 0;
|
4 | const lodash_1 = require("lodash");
|
5 | const constants_1 = require("../constants");
|
6 | const helpers_1 = require("./helpers");
|
7 | const defaultOperationOptions = {
|
8 | summary: ''
|
9 | };
|
10 | function ApiOperation(options) {
|
11 | return helpers_1.createMethodDecorator(constants_1.DECORATORS.API_OPERATION, lodash_1.pickBy(Object.assign(Object.assign({}, defaultOperationOptions), options), lodash_1.negate(lodash_1.isUndefined)));
|
12 | }
|
13 | exports.ApiOperation = ApiOperation;
|