1 | import { ActionMetadata } from './ActionMetadata';
|
2 | import { ControllerMetadataArgs } from './args/ControllerMetadataArgs';
|
3 | import { UseMetadata } from './UseMetadata';
|
4 | import { ControllerOptions } from '../decorator-options/ControllerOptions';
|
5 | import { ResponseHandlerMetadata } from './ResponseHandleMetadata';
|
6 | import { InterceptorMetadata } from './InterceptorMetadata';
|
7 | import { Action } from '../Action';
|
8 |
|
9 |
|
10 |
|
11 | export declare class ControllerMetadata {
|
12 | |
13 |
|
14 |
|
15 | actions: ActionMetadata[];
|
16 | |
17 |
|
18 |
|
19 | target: Function;
|
20 | |
21 |
|
22 |
|
23 | route: string;
|
24 | |
25 |
|
26 |
|
27 | type: 'default' | 'json';
|
28 | |
29 |
|
30 |
|
31 | options: ControllerOptions;
|
32 | |
33 |
|
34 |
|
35 | uses: UseMetadata[];
|
36 | |
37 |
|
38 |
|
39 | interceptors: InterceptorMetadata[];
|
40 | |
41 |
|
42 |
|
43 | isAuthorizedUsed: boolean;
|
44 | |
45 |
|
46 |
|
47 | authorizedRoles: any[];
|
48 | constructor(args: ControllerMetadataArgs);
|
49 | /**
|
50 | * Gets instance of the controller.
|
51 | * @param action Details around the request session
|
52 | */
|
53 | getInstance(action: Action): any;
|
54 | /**
|
55 | * Builds everything controller metadata needs.
|
56 | * Controller metadata should be used only after its build.
|
57 | */
|
58 | build(responseHandlers: ResponseHandlerMetadata[]): void;
|
59 | }
|