Skip to content

Commit

Permalink
Merge branch 'rbnayax-#13350'
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Mar 22, 2024
2 parents df37ea1 + 34434cd commit 6d5a0db
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
26 changes: 13 additions & 13 deletions packages/common/enums/route-paramtypes.enum.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
export enum RouteParamtypes {
REQUEST,
RESPONSE,
NEXT,
BODY,
RAW_BODY,
QUERY,
PARAM,
HEADERS,
SESSION,
FILE,
FILES,
HOST,
IP,
REQUEST = 0,
RESPONSE = 1,
NEXT = 2,
BODY = 3,
QUERY = 4,
PARAM = 5,
HEADERS = 6,
SESSION = 7,
FILE = 8,
FILES = 9,
HOST = 10,
IP = 11,
RAW_BODY = 12,
}
8 changes: 5 additions & 3 deletions packages/microservices/enums/rpc-paramtype.enum.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum';

export enum RpcParamtype {
PAYLOAD = 3,
CONTEXT = 6,
GRPC_CALL = 9,
PAYLOAD = RouteParamtypes.BODY,
CONTEXT = RouteParamtypes.HEADERS,
GRPC_CALL = RouteParamtypes.FILES,
}
6 changes: 4 additions & 2 deletions packages/websockets/enums/ws-paramtype.enum.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { RouteParamtypes } from '@nestjs/common/enums/route-paramtypes.enum';

export enum WsParamtype {
SOCKET = 0,
PAYLOAD = 3,
SOCKET = RouteParamtypes.REQUEST,
PAYLOAD = RouteParamtypes.BODY,
}

0 comments on commit 6d5a0db

Please sign in to comment.