1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.ParamsTokenFactory = void 0;
|
4 | const route_paramtypes_enum_1 = require("@nestjs/common/enums/route-paramtypes.enum");
|
5 | class ParamsTokenFactory {
|
6 | exchangeEnumForString(type) {
|
7 | switch (type) {
|
8 | case route_paramtypes_enum_1.RouteParamtypes.BODY:
|
9 | return 'body';
|
10 | case route_paramtypes_enum_1.RouteParamtypes.PARAM:
|
11 | return 'param';
|
12 | case route_paramtypes_enum_1.RouteParamtypes.QUERY:
|
13 | return 'query';
|
14 | default:
|
15 | return 'custom';
|
16 | }
|
17 | }
|
18 | }
|
19 | exports.ParamsTokenFactory = ParamsTokenFactory;
|