1 | import { ContextType, Controller, PipeTransform } from '@nestjs/common/interfaces';
|
2 | import { GuardsConsumer } from '@nestjs/core/guards/guards-consumer';
|
3 | import { GuardsContextCreator } from '@nestjs/core/guards/guards-context-creator';
|
4 | import { ParamProperties } from '@nestjs/core/helpers/context-utils';
|
5 | import { ExecutionContextHost } from '@nestjs/core/helpers/execution-context-host';
|
6 | import { ParamsMetadata } from '@nestjs/core/helpers/interfaces';
|
7 | import { InterceptorsConsumer } from '@nestjs/core/interceptors/interceptors-consumer';
|
8 | import { InterceptorsContextCreator } from '@nestjs/core/interceptors/interceptors-context-creator';
|
9 | import { PipesConsumer } from '@nestjs/core/pipes/pipes-consumer';
|
10 | import { PipesContextCreator } from '@nestjs/core/pipes/pipes-context-creator';
|
11 | import { WsParamsFactory } from '../factories/ws-params-factory';
|
12 | import { ExceptionFiltersContext } from './exception-filters-context';
|
13 | import { WsProxy } from './ws-proxy';
|
14 | declare type WsParamProperties = ParamProperties & {
|
15 | metatype?: any;
|
16 | };
|
17 | export interface WsHandlerMetadata {
|
18 | argsLength: number;
|
19 | paramtypes: any[];
|
20 | getParamsMetadata: (moduleKey: string) => WsParamProperties[];
|
21 | }
|
22 | export declare class WsContextCreator {
|
23 | private readonly wsProxy;
|
24 | private readonly exceptionFiltersContext;
|
25 | private readonly pipesContextCreator;
|
26 | private readonly pipesConsumer;
|
27 | private readonly guardsContextCreator;
|
28 | private readonly guardsConsumer;
|
29 | private readonly interceptorsContextCreator;
|
30 | private readonly interceptorsConsumer;
|
31 | private readonly contextUtils;
|
32 | private readonly wsParamsFactory;
|
33 | private readonly handlerMetadataStorage;
|
34 | constructor(wsProxy: WsProxy, exceptionFiltersContext: ExceptionFiltersContext, pipesContextCreator: PipesContextCreator, pipesConsumer: PipesConsumer, guardsContextCreator: GuardsContextCreator, guardsConsumer: GuardsConsumer, interceptorsContextCreator: InterceptorsContextCreator, interceptorsConsumer: InterceptorsConsumer);
|
35 | create<T extends ParamsMetadata = ParamsMetadata>(instance: Controller, callback: (...args: unknown[]) => void, moduleKey: string, methodName: string): (...args: any[]) => Promise<void>;
|
36 | reflectCallbackParamtypes(instance: Controller, callback: (...args: any[]) => any): any[];
|
37 | createGuardsFn<TContext extends string = ContextType>(guards: any[], instance: Controller, callback: (...args: unknown[]) => any, contextType?: TContext): Function | null;
|
38 | getMetadata<TMetadata, TContext extends ContextType = ContextType>(instance: Controller, methodName: string, contextType: TContext): WsHandlerMetadata;
|
39 | exchangeKeysForValues<TMetadata = any>(keys: string[], metadata: TMetadata, moduleContext: string, paramsFactory: WsParamsFactory, contextFactory: (args: unknown[]) => ExecutionContextHost): ParamProperties[];
|
40 | createPipesFn(pipes: PipeTransform[], paramsOptions: (ParamProperties & {
|
41 | metatype?: unknown;
|
42 | })[]): (args: unknown[], ...params: unknown[]) => Promise<void>;
|
43 | getParamValue<T>(value: T, { metatype, type, data }: {
|
44 | metatype: any;
|
45 | type: any;
|
46 | data: any;
|
47 | }, pipes: PipeTransform[]): Promise<any>;
|
48 | }
|
49 | export {};
|