1 | import { Type } from '@nestjs/common';
|
2 | import { ClassDirectiveMetadata, ClassExtensionsMetadata, ClassMetadata, EnumMetadata, FieldResolverMetadata, MethodArgsMetadata, PropertyDirectiveMetadata, PropertyExtensionsMetadata, PropertyMetadata, ResolverClassMetadata, ResolverTypeMetadata, UnionMetadata } from '../metadata';
|
3 | import { InterfaceMetadata } from '../metadata/interface.metadata';
|
4 | import { ObjectTypeMetadata } from '../metadata/object-type.metadata';
|
5 | export declare class TypeMetadataStorageHost {
|
6 | private queries;
|
7 | private mutations;
|
8 | private subscriptions;
|
9 | private fieldResolvers;
|
10 | private readonly enums;
|
11 | private readonly unions;
|
12 | private readonly metadataByTargetCollection;
|
13 | addMutationMetadata(metadata: ResolverTypeMetadata): void;
|
14 | getMutationsMetadata(): ResolverTypeMetadata[];
|
15 | addQueryMetadata(metadata: ResolverTypeMetadata): void;
|
16 | getQueriesMetadata(): ResolverTypeMetadata[];
|
17 | addSubscriptionMetadata(metadata: ResolverTypeMetadata): void;
|
18 | getSubscriptionsMetadata(): ResolverTypeMetadata[];
|
19 | addResolverPropertyMetadata(metadata: FieldResolverMetadata): void;
|
20 | addArgsMetadata(metadata: ClassMetadata): void;
|
21 | getArgumentsMetadata(): ClassMetadata[];
|
22 | getArgumentsMetadataByTarget(target: Type<unknown>): ClassMetadata | undefined;
|
23 | addInterfaceMetadata(metadata: InterfaceMetadata): void;
|
24 | getInterfacesMetadata(): InterfaceMetadata[];
|
25 | getInterfaceMetadataByTarget(target: Type<unknown>): InterfaceMetadata | undefined;
|
26 | addInputTypeMetadata(metadata: ClassMetadata): void;
|
27 | getInputTypesMetadata(): ClassMetadata[];
|
28 | getInputTypeMetadataByTarget(target: Type<unknown>): ObjectTypeMetadata | undefined;
|
29 | addObjectTypeMetadata(metadata: ObjectTypeMetadata): void;
|
30 | getObjectTypesMetadata(): ObjectTypeMetadata[];
|
31 | getObjectTypeMetadataByTarget(target: Type<unknown>): ObjectTypeMetadata | undefined;
|
32 | addEnumMetadata(metadata: EnumMetadata): void;
|
33 | getEnumsMetadata(): EnumMetadata[];
|
34 | addUnionMetadata(metadata: UnionMetadata): void;
|
35 | getUnionsMetadata(): UnionMetadata[];
|
36 | addDirectiveMetadata(metadata: ClassDirectiveMetadata): void;
|
37 | addDirectivePropertyMetadata(metadata: PropertyDirectiveMetadata): void;
|
38 | addExtensionsMetadata(metadata: ClassExtensionsMetadata): void;
|
39 | addExtensionsPropertyMetadata(metadata: PropertyExtensionsMetadata): void;
|
40 | addResolverMetadata(metadata: ResolverClassMetadata): void;
|
41 | addClassFieldMetadata(metadata: PropertyMetadata): void;
|
42 | addMethodParamMetadata(metadata: MethodArgsMetadata): void;
|
43 | compile(orphanedTypes?: (Function | object)[]): void;
|
44 | loadClassPluginMetadata(metadata: ClassMetadata[]): void;
|
45 | applyPluginMetadata(prototype: Function): void;
|
46 | compileClassMetadata(metadata: ClassMetadata[], options?: {
|
47 | overrideFields?: boolean;
|
48 | }): void;
|
49 | clear(): void;
|
50 | private getClassFieldsByPredicate;
|
51 | private compileResolversMetadata;
|
52 | private compileFieldResolverMetadata;
|
53 | private compileExternalFieldResolverMetadata;
|
54 | private findModelFieldMetadata;
|
55 | private compileExtendedResolversMetadata;
|
56 | private mergeParentResolverHandlers;
|
57 | private mergeParentFieldHandlers;
|
58 | }
|
59 | export declare const TypeMetadataStorage: TypeMetadataStorageHost;
|
60 |
|
\ | No newline at end of file |