type-graphql
Advanced tools
Comparing version 0.12.1 to 0.12.2
@@ -7,4 +7,4 @@ import { GraphQLScalarType } from "graphql"; | ||
export declare type TypeValueThunk = (type?: void) => TypeValue; | ||
export declare type ClassTypeResolver = (classType?: void) => ClassType; | ||
export declare type ReturnTypeFunc = (returnType?: void) => ReturnTypeFuncValue; | ||
export declare type ClassTypeResolver = (of?: void) => ClassType; | ||
export declare type ReturnTypeFunc = (returns?: void) => ReturnTypeFuncValue; | ||
export declare type SubscriptionFilterFunc = (resolverFilterData: ResolverFilterData<any, any, any>) => boolean | Promise<boolean>; | ||
@@ -11,0 +11,0 @@ export interface DecoratorTypeOptions { |
@@ -15,2 +15,2 @@ import { ReturnTypeFunc, TypeOptions, TypeValueThunk } from "../decorators/types"; | ||
} | ||
export declare function findType({metadataKey, prototype, propertyKey, returnTypeFunc, typeOptions, parameterIndex}: GetTypeParams): TypeInfo; | ||
export declare function findType({ metadataKey, prototype, propertyKey, returnTypeFunc, typeOptions, parameterIndex, }: GetTypeParams): TypeInfo; |
@@ -10,2 +10,2 @@ import { ReturnTypeFunc, TypeOptions, ValidateOptions } from "../decorators/types"; | ||
} | ||
export declare function getParamInfo({prototype, propertyKey, parameterIndex, returnTypeFunc, options}: ParamInfo): CommonArgMetadata; | ||
export declare function getParamInfo({ prototype, propertyKey, parameterIndex, returnTypeFunc, options, }: ParamInfo): CommonArgMetadata; |
@@ -35,9 +35,9 @@ import { ResolverMetadata, ClassMetadata, FieldMetadata, ParamMetadata, FieldResolverMetadata, AuthorizedMetadata, EnumMetadata, UnionMetadata, UnionMetadataWithSymbol, ResolverClassMetadata, SubscriptionResolverMetadata, MiddlewareMetadata } from "./definitions"; | ||
clear(): void; | ||
private buildClassMetadata(definitions); | ||
private buildResolversMetadata(definitions); | ||
private buildFieldResolverMetadata(definitions); | ||
private buildExtendedResolversMetadata(); | ||
private findFieldRoles(target, fieldName); | ||
private mapMiddlewareMetadataToArray(metadata); | ||
private mapSuperResolverHandlers<T>(definitions, superResolver, resolverMetadata); | ||
private buildClassMetadata; | ||
private buildResolversMetadata; | ||
private buildFieldResolverMetadata; | ||
private buildExtendedResolversMetadata; | ||
private findFieldRoles; | ||
private mapMiddlewareMetadataToArray; | ||
private mapSuperResolverHandlers; | ||
} |
{ | ||
"name": "type-graphql", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"main": "./index.js", | ||
@@ -53,9 +53,9 @@ "author": { | ||
"@types/gulp-shell": "0.0.31", | ||
"@types/ioredis": "^3.2.8", | ||
"@types/ioredis": "^3.2.9", | ||
"@types/jest": "^22.2.3", | ||
"@types/node": "^10.1.4", | ||
"@types/ws": "^5.1.1", | ||
"apollo-cache-inmemory": "^1.2.2", | ||
"apollo-client": "^2.3.2", | ||
"apollo-engine": "^1.1.1", | ||
"@types/node": "^10.3.5", | ||
"@types/ws": "^5.1.2", | ||
"apollo-cache-inmemory": "^1.2.5", | ||
"apollo-client": "^2.3.5", | ||
"apollo-engine": "^1.1.2", | ||
"apollo-link": "^1.2.2", | ||
@@ -67,22 +67,22 @@ "apollo-link-ws": "^1.0.8", | ||
"graphql-tag": "^2.9.2", | ||
"graphql-yoga": "^1.14.6", | ||
"graphql-yoga": "^1.14.10", | ||
"gulp-replace": "^0.6.1", | ||
"gulp-shell": "^0.6.5", | ||
"gulp-typescript": "^4.0.2", | ||
"gulpclass": "^0.1.2", | ||
"husky": "^1.0.0-rc.8", | ||
"gulpclass": "^0.2.0", | ||
"husky": "^1.0.0-rc.9", | ||
"ioredis": "^3.2.2", | ||
"jest": "^23.1.0", | ||
"mysql": "^2.15.0", | ||
"prettier": "^1.13.4", | ||
"prettier": "^1.13.5", | ||
"reflect-metadata": "^0.1.12", | ||
"subscriptions-transport-ws": "^0.9.9", | ||
"subscriptions-transport-ws": "^0.9.11", | ||
"ts-jest": "^22.4.6", | ||
"ts-node": "^6.0.5", | ||
"ts-node": "^7.0.0", | ||
"tslint": "^5.10.0", | ||
"tslint-eslint-rules": "^5.3.1", | ||
"typedi": "^0.7.3", | ||
"typeorm": "^0.2.6", | ||
"typeorm": "^0.2.7", | ||
"typeorm-typedi-extensions": "^0.2.1", | ||
"typescript": "^2.8.4", | ||
"typescript": "^2.9.2", | ||
"ws": "^5.2.0" | ||
@@ -89,0 +89,0 @@ }, |
@@ -6,4 +6,4 @@ import { PubSubEngine } from "graphql-subscriptions"; | ||
import { Middleware } from "../interfaces/Middleware"; | ||
export declare function getParams(params: ParamMetadata[], {root, args, context, info}: ResolverData<any>, globalValidate: boolean | ValidatorOptions, pubSub: PubSubEngine): Promise<any[]>; | ||
export declare function getParams(params: ParamMetadata[], { root, args, context, info }: ResolverData<any>, globalValidate: boolean | ValidatorOptions, pubSub: PubSubEngine): Promise<any[]>; | ||
export declare function applyAuthChecker(middlewares: Array<Middleware<any>>, authMode: AuthMode, authChecker?: AuthChecker<any, any>, roles?: any[]): void; | ||
export declare function applyMiddlewares(resolverData: ResolverData<any>, middlewares: Array<Middleware<any>>, resolverHandlerFunction: () => any): Promise<any>; |
@@ -15,5 +15,2 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!arg) { | ||
return; | ||
} | ||
const validate = argValidate !== undefined ? argValidate : globalValidate; | ||
@@ -20,0 +17,0 @@ if (validate === false || arg == null || typeof arg !== "object") { |
@@ -13,14 +13,14 @@ import { GraphQLSchema } from "graphql"; | ||
static generateFromMetadataSync(options: SchemaGeneratorOptions): GraphQLSchema; | ||
private static checkForErrors(options); | ||
private static buildTypesInfo(); | ||
private static buildRootQueryType(); | ||
private static buildRootMutationType(); | ||
private static buildRootSubscriptionType(); | ||
private static buildOtherTypes(); | ||
private static generateHandlerFields<T, U>(handlers); | ||
private static generateSubscriptionsFields<T, U>(subscriptionsHandlers); | ||
private static generateHandlerArgs(params); | ||
private static mapArgFields(argumentType, args?); | ||
private static getGraphQLOutputType(typeOwnerName, type, typeOptions?); | ||
private static getGraphQLInputType(typeOwnerName, type, typeOptions?); | ||
private static checkForErrors; | ||
private static buildTypesInfo; | ||
private static buildRootQueryType; | ||
private static buildRootMutationType; | ||
private static buildRootSubscriptionType; | ||
private static buildOtherTypes; | ||
private static generateHandlerFields; | ||
private static generateSubscriptionsFields; | ||
private static generateHandlerArgs; | ||
private static mapArgFields; | ||
private static getGraphQLOutputType; | ||
private static getGraphQLInputType; | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122001
148
2533