From 4670d47b20117c869260b7cdf6ac76d49ae54f56 Mon Sep 17 00:00:00 2001 From: Nick Bolles Date: Tue, 27 Aug 2019 04:53:15 +0000 Subject: [PATCH 1/6] chore(graphql-api): upgrade code-gen to 1.x --- packages/graphql-api/codegen.yml | 4 +- packages/graphql-api/package.json | 11 +- packages/graphql-api/src/models.ts | 966 ++++++++++++----------------- 3 files changed, 409 insertions(+), 572 deletions(-) diff --git a/packages/graphql-api/codegen.yml b/packages/graphql-api/codegen.yml index 6f447611b..7baab3ec6 100644 --- a/packages/graphql-api/codegen.yml +++ b/packages/graphql-api/codegen.yml @@ -7,6 +7,6 @@ generates: noNamespaces: true plugins: - add: /* tslint:disable */ - - typescript-common - - typescript-server + - typescript - typescript-resolvers + - typescript-operations \ No newline at end of file diff --git a/packages/graphql-api/package.json b/packages/graphql-api/package.json index 1f50dd394..ae7b5bd60 100644 --- a/packages/graphql-api/package.json +++ b/packages/graphql-api/package.json @@ -33,16 +33,17 @@ "@accounts/types": "^0.19.0", "@gql2ts/from-schema": "1.10.1", "@gql2ts/types": "1.9.0", + "@graphql-codegen/add": "^1.6.1", + "@graphql-codegen/cli": "^1.6.1", + "@graphql-codegen/typescript": "^1.6.1", + "@graphql-codegen/typescript-operations": "^1.6.1", + "@graphql-codegen/typescript-resolvers": "^1.6.1", + "@graphql-codegen/typescript-type-graphql": "^1.6.1", "@graphql-modules/core": "0.7.10", "@types/jest": "24.0.18", "@types/request-ip": "0.0.34", "concurrently": "4.1.2", "graphql": "14.5.3", - "graphql-code-generator": "0.18.2", - "graphql-codegen-add": "0.18.2", - "graphql-codegen-typescript-common": "0.18.2", - "graphql-codegen-typescript-resolvers": "0.18.2", - "graphql-codegen-typescript-server": "0.18.2", "graphql-tools": "4.0.5", "jest": "24.9.0", "lodash": "4.17.15", diff --git a/packages/graphql-api/src/models.ts b/packages/graphql-api/src/models.ts index 33934612c..c7255a8f3 100644 --- a/packages/graphql-api/src/models.ts +++ b/packages/graphql-api/src/models.ts @@ -1,611 +1,447 @@ /* tslint:disable */ +import { GraphQLResolveInfo } from 'graphql'; export type Maybe = T | null; - -export interface CreateUserInput { - username?: Maybe; - - email?: Maybe; - - password?: Maybe; -} - -export interface TwoFactorSecretKeyInput { - ascii?: Maybe; - - base32?: Maybe; - - hex?: Maybe; - - qr_code_ascii?: Maybe; - - qr_code_hex?: Maybe; - - qr_code_base32?: Maybe; - - google_auth_qr?: Maybe; - - otpauth_url?: Maybe; -} - -export interface AuthenticateParamsInput { - access_token?: Maybe; - - access_token_secret?: Maybe; - - provider?: Maybe; - - password?: Maybe; - +export type RequireFields = { [X in Exclude]?: T[X] } & + { [P in K]-?: NonNullable }; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; +}; + +export type AuthenticateParamsInput = { + access_token?: Maybe; + access_token_secret?: Maybe; + provider?: Maybe; + password?: Maybe; user?: Maybe; + code?: Maybe; +}; + +export type CreateUserInput = { + username?: Maybe; + email?: Maybe; + password?: Maybe; +}; + +export type EmailRecord = { + __typename?: 'EmailRecord'; + address?: Maybe; + verified?: Maybe; +}; + +export type ImpersonateReturn = { + __typename?: 'ImpersonateReturn'; + authorized?: Maybe; + tokens?: Maybe; + user?: Maybe; +}; - code?: Maybe; -} - -export interface UserInput { - id?: Maybe; - - email?: Maybe; - - username?: Maybe; -} - -// ==================================================== -// Types -// ==================================================== - -export interface Query { - twoFactorSecret?: Maybe; - - getUser?: Maybe; -} - -export interface TwoFactorSecretKey { - ascii?: Maybe; - - base32?: Maybe; - - hex?: Maybe; - - qr_code_ascii?: Maybe; - - qr_code_hex?: Maybe; - - qr_code_base32?: Maybe; - - google_auth_qr?: Maybe; - - otpauth_url?: Maybe; -} - -export interface User { - id: string; - - emails?: Maybe; - - username?: Maybe; -} - -export interface EmailRecord { - address?: Maybe; - - verified?: Maybe; -} - -export interface Mutation { - createUser?: Maybe; - - verifyEmail?: Maybe; +export type LoginResult = { + __typename?: 'LoginResult'; + sessionId?: Maybe; + tokens?: Maybe; +}; +export type Mutation = { + __typename?: 'Mutation'; + createUser?: Maybe; + verifyEmail?: Maybe; resetPassword?: Maybe; - - sendVerificationEmail?: Maybe; - - sendResetPasswordEmail?: Maybe; - - changePassword?: Maybe; - - twoFactorSet?: Maybe; - - twoFactorUnset?: Maybe; - + sendVerificationEmail?: Maybe; + sendResetPasswordEmail?: Maybe; + changePassword?: Maybe; + twoFactorSet?: Maybe; + twoFactorUnset?: Maybe; impersonate?: Maybe; - refreshTokens?: Maybe; - - logout?: Maybe; - + logout?: Maybe; authenticate?: Maybe; -} +}; -export interface LoginResult { - sessionId?: Maybe; - - tokens?: Maybe; -} - -export interface Tokens { - refreshToken?: Maybe; - - accessToken?: Maybe; -} - -export interface ImpersonateReturn { - authorized?: Maybe; +export type MutationCreateUserArgs = { + user: CreateUserInput; +}; - tokens?: Maybe; +export type MutationVerifyEmailArgs = { + token: Scalars['String']; +}; - user?: Maybe; -} +export type MutationResetPasswordArgs = { + token: Scalars['String']; + newPassword: Scalars['String']; +}; -// ==================================================== -// Arguments -// ==================================================== +export type MutationSendVerificationEmailArgs = { + email: Scalars['String']; +}; -export interface CreateUserMutationArgs { - user: CreateUserInput; -} -export interface VerifyEmailMutationArgs { - token: string; -} -export interface ResetPasswordMutationArgs { - token: string; +export type MutationSendResetPasswordEmailArgs = { + email: Scalars['String']; +}; - newPassword: string; -} -export interface SendVerificationEmailMutationArgs { - email: string; -} -export interface SendResetPasswordEmailMutationArgs { - email: string; -} -export interface ChangePasswordMutationArgs { - oldPassword: string; +export type MutationChangePasswordArgs = { + oldPassword: Scalars['String']; + newPassword: Scalars['String']; +}; - newPassword: string; -} -export interface TwoFactorSetMutationArgs { +export type MutationTwoFactorSetArgs = { secret: TwoFactorSecretKeyInput; + code: Scalars['String']; +}; - code: string; -} -export interface TwoFactorUnsetMutationArgs { - code: string; -} -export interface ImpersonateMutationArgs { - accessToken: string; +export type MutationTwoFactorUnsetArgs = { + code: Scalars['String']; +}; - username: string; -} -export interface RefreshTokensMutationArgs { - accessToken: string; +export type MutationImpersonateArgs = { + accessToken: Scalars['String']; + username: Scalars['String']; +}; - refreshToken: string; -} -export interface AuthenticateMutationArgs { - serviceName: string; +export type MutationRefreshTokensArgs = { + accessToken: Scalars['String']; + refreshToken: Scalars['String']; +}; +export type MutationAuthenticateArgs = { + serviceName: Scalars['String']; params: AuthenticateParamsInput; -} - -import { GraphQLResolveInfo } from 'graphql'; +}; -export type Resolver = ( - parent: Parent, - args: Args, +export type Query = { + __typename?: 'Query'; + twoFactorSecret?: Maybe; + getUser?: Maybe; +}; + +export type Tokens = { + __typename?: 'Tokens'; + refreshToken?: Maybe; + accessToken?: Maybe; +}; + +export type TwoFactorSecretKey = { + __typename?: 'TwoFactorSecretKey'; + ascii?: Maybe; + base32?: Maybe; + hex?: Maybe; + qr_code_ascii?: Maybe; + qr_code_hex?: Maybe; + qr_code_base32?: Maybe; + google_auth_qr?: Maybe; + otpauth_url?: Maybe; +}; + +export type TwoFactorSecretKeyInput = { + ascii?: Maybe; + base32?: Maybe; + hex?: Maybe; + qr_code_ascii?: Maybe; + qr_code_hex?: Maybe; + qr_code_base32?: Maybe; + google_auth_qr?: Maybe; + otpauth_url?: Maybe; +}; + +export type User = { + __typename?: 'User'; + id: Scalars['ID']; + emails?: Maybe>; + username?: Maybe; +}; + +export type UserInput = { + id?: Maybe; + email?: Maybe; + username?: Maybe; +}; + +export type ResolverTypeWrapper = Promise | T; + +export type ResolverFn = ( + parent: TParent, + args: TArgs, context: TContext, info: GraphQLResolveInfo -) => Promise | Result; - -export interface ISubscriptionResolverObject { - subscribe( - parent: P, - args: Args, - context: TContext, - info: GraphQLResolveInfo - ): AsyncIterator | Promise>; - resolve?( - parent: P, - args: Args, - context: TContext, - info: GraphQLResolveInfo - ): R | Result | Promise; -} +) => Promise | TResult; + +export type StitchingResolver = { + fragment: string; + resolve: ResolverFn; +}; -export type SubscriptionResolver = - | ((...args: any[]) => ISubscriptionResolverObject) - | ISubscriptionResolverObject; +export type Resolver = + | ResolverFn + | StitchingResolver; -export type TypeResolveFn = ( - parent: Parent, +export type SubscriptionSubscribeFn = ( + parent: TParent, + args: TArgs, context: TContext, info: GraphQLResolveInfo -) => Maybe; +) => AsyncIterator | Promise>; -export type NextResolverFn = () => Promise; - -export type DirectiveResolverFn = ( - next: NextResolverFn, - source: any, +export type SubscriptionResolveFn = ( + parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo ) => TResult | Promise; -export interface QueryResolvers { - twoFactorSecret?: QueryTwoFactorSecretResolver, TypeParent, TContext>; - - getUser?: QueryGetUserResolver, TypeParent, TContext>; -} - -export type QueryTwoFactorSecretResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export type QueryGetUserResolver, Parent = {}, TContext = {}> = Resolver< - R, - Parent, - TContext ->; - -export interface TwoFactorSecretKeyResolvers { - ascii?: TwoFactorSecretKeyAsciiResolver, TypeParent, TContext>; - - base32?: TwoFactorSecretKeyBase32Resolver, TypeParent, TContext>; - - hex?: TwoFactorSecretKeyHexResolver, TypeParent, TContext>; - - qr_code_ascii?: TwoFactorSecretKeyQrCodeAsciiResolver, TypeParent, TContext>; - - qr_code_hex?: TwoFactorSecretKeyQrCodeHexResolver, TypeParent, TContext>; - - qr_code_base32?: TwoFactorSecretKeyQrCodeBase32Resolver, TypeParent, TContext>; - - google_auth_qr?: TwoFactorSecretKeyGoogleAuthQrResolver, TypeParent, TContext>; - - otpauth_url?: TwoFactorSecretKeyOtpauthUrlResolver, TypeParent, TContext>; -} - -export type TwoFactorSecretKeyAsciiResolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; -export type TwoFactorSecretKeyBase32Resolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; -export type TwoFactorSecretKeyHexResolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; -export type TwoFactorSecretKeyQrCodeAsciiResolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; -export type TwoFactorSecretKeyQrCodeHexResolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; -export type TwoFactorSecretKeyQrCodeBase32Resolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; -export type TwoFactorSecretKeyGoogleAuthQrResolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; -export type TwoFactorSecretKeyOtpauthUrlResolver< - R = Maybe, - Parent = TwoFactorSecretKey, - TContext = {} -> = Resolver; - -export interface UserResolvers { - id?: UserIdResolver; - - emails?: UserEmailsResolver, TypeParent, TContext>; - - username?: UserUsernameResolver, TypeParent, TContext>; -} - -export type UserIdResolver = Resolver< - R, - Parent, - TContext ->; -export type UserEmailsResolver, Parent = User, TContext = {}> = Resolver< - R, - Parent, - TContext ->; -export type UserUsernameResolver, Parent = User, TContext = {}> = Resolver< - R, - Parent, - TContext ->; - -export interface EmailRecordResolvers { - address?: EmailRecordAddressResolver, TypeParent, TContext>; - - verified?: EmailRecordVerifiedResolver, TypeParent, TContext>; -} - -export type EmailRecordAddressResolver< - R = Maybe, - Parent = EmailRecord, - TContext = {} -> = Resolver; -export type EmailRecordVerifiedResolver< - R = Maybe, - Parent = EmailRecord, - TContext = {} -> = Resolver; - -export interface MutationResolvers { - createUser?: MutationCreateUserResolver, TypeParent, TContext>; - - verifyEmail?: MutationVerifyEmailResolver, TypeParent, TContext>; - - resetPassword?: MutationResetPasswordResolver, TypeParent, TContext>; - - sendVerificationEmail?: MutationSendVerificationEmailResolver< - Maybe, - TypeParent, - TContext - >; - - sendResetPasswordEmail?: MutationSendResetPasswordEmailResolver< - Maybe, - TypeParent, - TContext - >; - - changePassword?: MutationChangePasswordResolver, TypeParent, TContext>; - - twoFactorSet?: MutationTwoFactorSetResolver, TypeParent, TContext>; - - twoFactorUnset?: MutationTwoFactorUnsetResolver, TypeParent, TContext>; - - impersonate?: MutationImpersonateResolver, TypeParent, TContext>; - - refreshTokens?: MutationRefreshTokensResolver, TypeParent, TContext>; - - logout?: MutationLogoutResolver, TypeParent, TContext>; - - authenticate?: MutationAuthenticateResolver, TypeParent, TContext>; -} - -export type MutationCreateUserResolver, Parent = {}, TContext = {}> = Resolver< - R, - Parent, - TContext, - MutationCreateUserArgs ->; -export interface MutationCreateUserArgs { - user: CreateUserInput; -} - -export type MutationVerifyEmailResolver, Parent = {}, TContext = {}> = Resolver< - R, - Parent, - TContext, - MutationVerifyEmailArgs ->; -export interface MutationVerifyEmailArgs { - token: string; -} - -export type MutationResetPasswordResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationResetPasswordArgs { - token: string; - - newPassword: string; -} - -export type MutationSendVerificationEmailResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationSendVerificationEmailArgs { - email: string; -} - -export type MutationSendResetPasswordEmailResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationSendResetPasswordEmailArgs { - email: string; -} - -export type MutationChangePasswordResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationChangePasswordArgs { - oldPassword: string; - - newPassword: string; -} - -export type MutationTwoFactorSetResolver, Parent = {}, TContext = {}> = Resolver< - R, - Parent, +export interface SubscriptionSubscriberObject< + TResult, + TKey extends string, + TParent, TContext, - MutationTwoFactorSetArgs ->; -export interface MutationTwoFactorSetArgs { - secret: TwoFactorSecretKeyInput; - - code: string; + TArgs +> { + subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>; + resolve?: SubscriptionResolveFn; } -export type MutationTwoFactorUnsetResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationTwoFactorUnsetArgs { - code: string; +export interface SubscriptionResolverObject { + subscribe: SubscriptionSubscribeFn; + resolve: SubscriptionResolveFn; } -export type MutationImpersonateResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationImpersonateArgs { - accessToken: string; - - username: string; -} +export type SubscriptionObject = + | SubscriptionSubscriberObject + | SubscriptionResolverObject; -export type MutationRefreshTokensResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationRefreshTokensArgs { - accessToken: string; +export type SubscriptionResolver< + TResult, + TKey extends string, + TParent = {}, + TContext = {}, + TArgs = {} +> = + | ((...args: any[]) => SubscriptionObject) + | SubscriptionObject; - refreshToken: string; -} - -export type MutationLogoutResolver, Parent = {}, TContext = {}> = Resolver< - R, - Parent, - TContext ->; -export type MutationAuthenticateResolver< - R = Maybe, - Parent = {}, - TContext = {} -> = Resolver; -export interface MutationAuthenticateArgs { - serviceName: string; - - params: AuthenticateParamsInput; -} - -export interface LoginResultResolvers { - sessionId?: LoginResultSessionIdResolver, TypeParent, TContext>; - - tokens?: LoginResultTokensResolver, TypeParent, TContext>; -} - -export type LoginResultSessionIdResolver< - R = Maybe, - Parent = LoginResult, - TContext = {} -> = Resolver; -export type LoginResultTokensResolver< - R = Maybe, - Parent = LoginResult, - TContext = {} -> = Resolver; - -export interface TokensResolvers { - refreshToken?: TokensRefreshTokenResolver, TypeParent, TContext>; - - accessToken?: TokensAccessTokenResolver, TypeParent, TContext>; -} - -export type TokensRefreshTokenResolver< - R = Maybe, - Parent = Tokens, - TContext = {} -> = Resolver; -export type TokensAccessTokenResolver, Parent = Tokens, TContext = {}> = Resolver< - R, - Parent, - TContext ->; - -export interface ImpersonateReturnResolvers { - authorized?: ImpersonateReturnAuthorizedResolver, TypeParent, TContext>; - - tokens?: ImpersonateReturnTokensResolver, TypeParent, TContext>; - - user?: ImpersonateReturnUserResolver, TypeParent, TContext>; -} +export type TypeResolveFn = ( + parent: TParent, + context: TContext, + info: GraphQLResolveInfo +) => Maybe; -export type ImpersonateReturnAuthorizedResolver< - R = Maybe, - Parent = ImpersonateReturn, - TContext = {} -> = Resolver; -export type ImpersonateReturnTokensResolver< - R = Maybe, - Parent = ImpersonateReturn, - TContext = {} -> = Resolver; -export type ImpersonateReturnUserResolver< - R = Maybe, - Parent = ImpersonateReturn, - TContext = {} -> = Resolver; - -export type AuthDirectiveResolver = DirectiveResolverFn< - Result, - {}, - {} ->; /** Directs the executor to skip this field or fragment when the `if` argument is true. */ -export type SkipDirectiveResolver = DirectiveResolverFn; -export interface SkipDirectiveArgs { - /** Skipped when true. */ - if: boolean; -} +export type NextResolverFn = () => Promise; -/** Directs the executor to include this field or fragment only when the `if` argument is true. */ -export type IncludeDirectiveResolver = DirectiveResolverFn< - Result, - IncludeDirectiveArgs, - {} ->; -export interface IncludeDirectiveArgs { - /** Included when true. */ - if: boolean; -} +export type DirectiveResolverFn = ( + next: NextResolverFn, + parent: TParent, + args: TArgs, + context: TContext, + info: GraphQLResolveInfo +) => TResult | Promise; -/** Marks an element of a GraphQL schema as no longer supported. */ -export type DeprecatedDirectiveResolver = DirectiveResolverFn< +/** Mapping between all available schema types and the resolvers types */ +export type ResolversTypes = { + Query: ResolverTypeWrapper<{}>; + TwoFactorSecretKey: ResolverTypeWrapper; + String: ResolverTypeWrapper; + User: ResolverTypeWrapper; + ID: ResolverTypeWrapper; + EmailRecord: ResolverTypeWrapper; + Boolean: ResolverTypeWrapper; + Mutation: ResolverTypeWrapper<{}>; + CreateUserInput: CreateUserInput; + LoginResult: ResolverTypeWrapper; + Tokens: ResolverTypeWrapper; + TwoFactorSecretKeyInput: TwoFactorSecretKeyInput; + ImpersonateReturn: ResolverTypeWrapper; + AuthenticateParamsInput: AuthenticateParamsInput; + UserInput: UserInput; +}; + +/** Mapping between all available schema types and the resolvers parents */ +export type ResolversParentTypes = { + Query: {}; + TwoFactorSecretKey: TwoFactorSecretKey; + String: Scalars['String']; + User: User; + ID: Scalars['ID']; + EmailRecord: EmailRecord; + Boolean: Scalars['Boolean']; + Mutation: {}; + CreateUserInput: CreateUserInput; + LoginResult: LoginResult; + Tokens: Tokens; + TwoFactorSecretKeyInput: TwoFactorSecretKeyInput; + ImpersonateReturn: ImpersonateReturn; + AuthenticateParamsInput: AuthenticateParamsInput; + UserInput: UserInput; +}; + +export type AuthDirectiveResolver< Result, - DeprecatedDirectiveArgs, - {} ->; -export interface DeprecatedDirectiveArgs { - /** Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax (as specified by [CommonMark](https://commonmark.org/). */ - reason?: string; -} - -export type IResolvers = { - Query?: QueryResolvers; - TwoFactorSecretKey?: TwoFactorSecretKeyResolvers; - User?: UserResolvers; - EmailRecord?: EmailRecordResolvers; - Mutation?: MutationResolvers; - LoginResult?: LoginResultResolvers; - Tokens?: TokensResolvers; - ImpersonateReturn?: ImpersonateReturnResolvers; -} & { [typeName: string]: never }; - -export type IDirectiveResolvers = { - auth?: AuthDirectiveResolver; - skip?: SkipDirectiveResolver; - include?: IncludeDirectiveResolver; - deprecated?: DeprecatedDirectiveResolver; -} & { [directiveName: string]: never }; + Parent, + ContextType = any, + Args = {} +> = DirectiveResolverFn; + +export type EmailRecordResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['EmailRecord'] = ResolversParentTypes['EmailRecord'] +> = { + address?: Resolver, ParentType, ContextType>; + verified?: Resolver, ParentType, ContextType>; +}; + +export type ImpersonateReturnResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['ImpersonateReturn'] = ResolversParentTypes['ImpersonateReturn'] +> = { + authorized?: Resolver, ParentType, ContextType>; + tokens?: Resolver, ParentType, ContextType>; + user?: Resolver, ParentType, ContextType>; +}; + +export type LoginResultResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['LoginResult'] = ResolversParentTypes['LoginResult'] +> = { + sessionId?: Resolver, ParentType, ContextType>; + tokens?: Resolver, ParentType, ContextType>; +}; + +export type MutationResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['Mutation'] = ResolversParentTypes['Mutation'] +> = { + createUser?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + verifyEmail?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + resetPassword?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + sendVerificationEmail?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + sendResetPasswordEmail?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + changePassword?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + twoFactorSet?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + twoFactorUnset?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + impersonate?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + refreshTokens?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; + logout?: Resolver, ParentType, ContextType>; + authenticate?: Resolver< + Maybe, + ParentType, + ContextType, + RequireFields + >; +}; + +export type QueryResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['Query'] = ResolversParentTypes['Query'] +> = { + twoFactorSecret?: Resolver, ParentType, ContextType>; + getUser?: Resolver, ParentType, ContextType>; +}; + +export type TokensResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['Tokens'] = ResolversParentTypes['Tokens'] +> = { + refreshToken?: Resolver, ParentType, ContextType>; + accessToken?: Resolver, ParentType, ContextType>; +}; + +export type TwoFactorSecretKeyResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['TwoFactorSecretKey'] = ResolversParentTypes['TwoFactorSecretKey'] +> = { + ascii?: Resolver, ParentType, ContextType>; + base32?: Resolver, ParentType, ContextType>; + hex?: Resolver, ParentType, ContextType>; + qr_code_ascii?: Resolver, ParentType, ContextType>; + qr_code_hex?: Resolver, ParentType, ContextType>; + qr_code_base32?: Resolver, ParentType, ContextType>; + google_auth_qr?: Resolver, ParentType, ContextType>; + otpauth_url?: Resolver, ParentType, ContextType>; +}; + +export type UserResolvers< + ContextType = any, + ParentType extends ResolversParentTypes['User'] = ResolversParentTypes['User'] +> = { + id?: Resolver; + emails?: Resolver>, ParentType, ContextType>; + username?: Resolver, ParentType, ContextType>; +}; + +export type Resolvers = { + EmailRecord?: EmailRecordResolvers; + ImpersonateReturn?: ImpersonateReturnResolvers; + LoginResult?: LoginResultResolvers; + Mutation?: MutationResolvers; + Query?: QueryResolvers; + Tokens?: TokensResolvers; + TwoFactorSecretKey?: TwoFactorSecretKeyResolvers; + User?: UserResolvers; +}; + +/** + * @deprecated + * Use "Resolvers" root object instead. If you wish to get "IResolvers", add "typesPrefix: I" to your config. + */ +export type IResolvers = Resolvers; +export type DirectiveResolvers = { + auth?: AuthDirectiveResolver; +}; + +/** + * @deprecated + * Use "DirectiveResolvers" root object instead. If you wish to get "IDirectiveResolvers", add "typesPrefix: I" to your config. + */ +export type IDirectiveResolvers = DirectiveResolvers; From 323788d48e9479308048b11f965386bbabb80acc Mon Sep 17 00:00:00 2001 From: Nick Bolles Date: Tue, 27 Aug 2019 04:54:18 +0000 Subject: [PATCH 2/6] feat(graphql-api): export Type-graphql types --- packages/graphql-api/codegen.yml | 12 +- packages/graphql-api/src/type-graphql.ts | 234 +++++++++++++++++++++++ packages/graphql-api/tsconfig.json | 1 + 3 files changed, 246 insertions(+), 1 deletion(-) create mode 100644 packages/graphql-api/src/type-graphql.ts diff --git a/packages/graphql-api/codegen.yml b/packages/graphql-api/codegen.yml index 7baab3ec6..9e54d5b3f 100644 --- a/packages/graphql-api/codegen.yml +++ b/packages/graphql-api/codegen.yml @@ -9,4 +9,14 @@ generates: - add: /* tslint:disable */ - typescript - typescript-resolvers - - typescript-operations \ No newline at end of file + - typescript-operations + ./src/type-graphql.ts: + config: + noNamespaces: true +# declarationType: +# type: "abstract class" +# decoratorName: +# type: "InterfaceType" + plugins: + - add: /* tslint:disable */ + - typescript-type-graphql \ No newline at end of file diff --git a/packages/graphql-api/src/type-graphql.ts b/packages/graphql-api/src/type-graphql.ts new file mode 100644 index 000000000..043251908 --- /dev/null +++ b/packages/graphql-api/src/type-graphql.ts @@ -0,0 +1,234 @@ +/* tslint:disable */ +import * as TypeGraphQL from 'type-graphql'; +export type Maybe = T | null; +type FixDecorator = T; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; +}; + +export type AuthenticateParamsInput = { + access_token?: Maybe; + access_token_secret?: Maybe; + provider?: Maybe; + password?: Maybe; + user?: Maybe; + code?: Maybe; +}; + +export type CreateUserInput = { + username?: Maybe; + email?: Maybe; + password?: Maybe; +}; + +@TypeGraphQL.ObjectType() +export class EmailRecord { + __typename?: 'EmailRecord'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + address!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + verified!: Maybe; +} + +@TypeGraphQL.ObjectType() +export class ImpersonateReturn { + __typename?: 'ImpersonateReturn'; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + authorized!: Maybe; + + @TypeGraphQL.Field(type => Tokens, { nullable: true }) + tokens!: Maybe; + + @TypeGraphQL.Field(type => User, { nullable: true }) + user!: Maybe; +} + +@TypeGraphQL.ObjectType() +export class LoginResult { + __typename?: 'LoginResult'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + sessionId!: Maybe; + + @TypeGraphQL.Field(type => Tokens, { nullable: true }) + tokens!: Maybe; +} + +export class Mutation { + __typename?: 'Mutation'; + + @TypeGraphQL.Field(type => TypeGraphQL.ID, { nullable: true }) + createUser!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + verifyEmail!: Maybe; + + @TypeGraphQL.Field(type => LoginResult, { nullable: true }) + resetPassword!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + sendVerificationEmail!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + sendResetPasswordEmail!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + changePassword!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + twoFactorSet!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + twoFactorUnset!: Maybe; + + @TypeGraphQL.Field(type => ImpersonateReturn, { nullable: true }) + impersonate!: Maybe; + + @TypeGraphQL.Field(type => LoginResult, { nullable: true }) + refreshTokens!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + logout!: Maybe; + + @TypeGraphQL.Field(type => LoginResult, { nullable: true }) + authenticate!: Maybe; +} + +export type MutationCreateUserArgs = { + user: CreateUserInput; +}; + +export type MutationVerifyEmailArgs = { + token: Scalars['String']; +}; + +export type MutationResetPasswordArgs = { + token: Scalars['String']; + newPassword: Scalars['String']; +}; + +export type MutationSendVerificationEmailArgs = { + email: Scalars['String']; +}; + +export type MutationSendResetPasswordEmailArgs = { + email: Scalars['String']; +}; + +export type MutationChangePasswordArgs = { + oldPassword: Scalars['String']; + newPassword: Scalars['String']; +}; + +export type MutationTwoFactorSetArgs = { + secret: TwoFactorSecretKeyInput; + code: Scalars['String']; +}; + +export type MutationTwoFactorUnsetArgs = { + code: Scalars['String']; +}; + +export type MutationImpersonateArgs = { + accessToken: Scalars['String']; + username: Scalars['String']; +}; + +export type MutationRefreshTokensArgs = { + accessToken: Scalars['String']; + refreshToken: Scalars['String']; +}; + +export type MutationAuthenticateArgs = { + serviceName: Scalars['String']; + params: AuthenticateParamsInput; +}; + +export class Query { + __typename?: 'Query'; + + @TypeGraphQL.Field(type => TwoFactorSecretKey, { nullable: true }) + twoFactorSecret!: Maybe; + + @TypeGraphQL.Field(type => User, { nullable: true }) + getUser!: Maybe; +} + +@TypeGraphQL.ObjectType() +export class Tokens { + __typename?: 'Tokens'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + refreshToken!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + accessToken!: Maybe; +} + +@TypeGraphQL.ObjectType() +export class TwoFactorSecretKey { + __typename?: 'TwoFactorSecretKey'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + google_auth_qr!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + otpauth_url!: Maybe; +} + +export type TwoFactorSecretKeyInput = { + ascii?: Maybe; + base32?: Maybe; + hex?: Maybe; + qr_code_ascii?: Maybe; + qr_code_hex?: Maybe; + qr_code_base32?: Maybe; + google_auth_qr?: Maybe; + otpauth_url?: Maybe; +}; + +@TypeGraphQL.ObjectType() +export class User { + __typename?: 'User'; + + @TypeGraphQL.Field(type => TypeGraphQL.ID) + id!: Scalars['ID']; + + @TypeGraphQL.Field(type => [EmailRecord], { nullable: true }) + emails!: Maybe>; + + @TypeGraphQL.Field(type => String, { nullable: true }) + username!: Maybe; +} + +export type UserInput = { + id?: Maybe; + email?: Maybe; + username?: Maybe; +}; diff --git a/packages/graphql-api/tsconfig.json b/packages/graphql-api/tsconfig.json index 9ff9c2e86..5844cf062 100644 --- a/packages/graphql-api/tsconfig.json +++ b/packages/graphql-api/tsconfig.json @@ -5,6 +5,7 @@ "outDir": "./lib", "noUnusedParameters": false, "noUnusedLocals": false, + "experimentalDecorators": true, "importHelpers": true }, "exclude": ["node_modules", "__tests__", "lib"] From b6f2707aa127850447a4936bc9a9497d09e9cd63 Mon Sep 17 00:00:00 2001 From: Nick Bolles Date: Wed, 4 Sep 2019 15:14:25 +0000 Subject: [PATCH 3/6] feat(graphql-api): generate interface types upgrade graphql-codegen to 1.7.x and use new decoratorName config from https://github.com/dotansimha/graphql-code-generator/pull/2448 --- packages/graphql-api/codegen.yml | 8 +- packages/graphql-api/package.json | 18 +- packages/graphql-api/src/type-graphql.ts | 284 +++++--- packages/graphql-api/tsconfig.json | 1 + yarn.lock | 787 ++++++++++++----------- 5 files changed, 605 insertions(+), 493 deletions(-) diff --git a/packages/graphql-api/codegen.yml b/packages/graphql-api/codegen.yml index 9e54d5b3f..618d5378c 100644 --- a/packages/graphql-api/codegen.yml +++ b/packages/graphql-api/codegen.yml @@ -13,10 +13,10 @@ generates: ./src/type-graphql.ts: config: noNamespaces: true -# declarationType: -# type: "abstract class" -# decoratorName: -# type: "InterfaceType" + declarationType: + type: "abstract class" + decoratorName: + type: "InterfaceType" plugins: - add: /* tslint:disable */ - typescript-type-graphql \ No newline at end of file diff --git a/packages/graphql-api/package.json b/packages/graphql-api/package.json index ae7b5bd60..f553a94ff 100644 --- a/packages/graphql-api/package.json +++ b/packages/graphql-api/package.json @@ -33,12 +33,12 @@ "@accounts/types": "^0.19.0", "@gql2ts/from-schema": "1.10.1", "@gql2ts/types": "1.9.0", - "@graphql-codegen/add": "^1.6.1", - "@graphql-codegen/cli": "^1.6.1", - "@graphql-codegen/typescript": "^1.6.1", - "@graphql-codegen/typescript-operations": "^1.6.1", - "@graphql-codegen/typescript-resolvers": "^1.6.1", - "@graphql-codegen/typescript-type-graphql": "^1.6.1", + "@graphql-codegen/add": "^1.7.0", + "@graphql-codegen/cli": "^1.7.0", + "@graphql-codegen/typescript": "^1.7.0", + "@graphql-codegen/typescript-operations": "^1.7.0", + "@graphql-codegen/typescript-resolvers": "^1.7.0", + "@graphql-codegen/typescript-type-graphql": "^1.7.0", "@graphql-modules/core": "0.7.10", "@types/jest": "24.0.18", "@types/request-ip": "0.0.34", @@ -48,7 +48,8 @@ "jest": "24.9.0", "lodash": "4.17.15", "nock": "10.0.6", - "ts-node": "8.3.0" + "ts-node": "8.3.0", + "type-graphql": "^0.17.5" }, "peerDependencies": { "@accounts/password": "^0.9.3", @@ -62,5 +63,8 @@ "graphql-toolkit": "^0.5.10", "request-ip": "2.1.3", "tslib": "1.10.0" + }, + "optionalDependencies": { + "type-graphql": "^0.17.5" } } diff --git a/packages/graphql-api/src/type-graphql.ts b/packages/graphql-api/src/type-graphql.ts index 043251908..a65ea5c00 100644 --- a/packages/graphql-api/src/type-graphql.ts +++ b/packages/graphql-api/src/type-graphql.ts @@ -11,33 +11,72 @@ export type Scalars = { Float: number; }; -export type AuthenticateParamsInput = { - access_token?: Maybe; - access_token_secret?: Maybe; - provider?: Maybe; - password?: Maybe; - user?: Maybe; - code?: Maybe; -}; +@TypeGraphQL.InterfaceType() +export class User { + __typename?: 'User'; -export type CreateUserInput = { - username?: Maybe; - email?: Maybe; - password?: Maybe; -}; + @TypeGraphQL.Field(type => TypeGraphQL.ID) + id!: Scalars['ID']; -@TypeGraphQL.ObjectType() -export class EmailRecord { - __typename?: 'EmailRecord'; + @TypeGraphQL.Field(type => [EmailRecord], { nullable: true }) + emails!: Maybe>; @TypeGraphQL.Field(type => String, { nullable: true }) - address!: Maybe; + username!: Maybe; +} - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - verified!: Maybe; +@TypeGraphQL.InterfaceType() +export class TwoFactorSecretKey { + __typename?: 'TwoFactorSecretKey'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + google_auth_qr!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + otpauth_url!: Maybe; +} + +@TypeGraphQL.InterfaceType() +export class Tokens { + __typename?: 'Tokens'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + refreshToken!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + accessToken!: Maybe; +} + +@TypeGraphQL.InterfaceType() +export class LoginResult { + __typename?: 'LoginResult'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + sessionId!: Maybe; + + @TypeGraphQL.Field(type => Tokens, { nullable: true }) + tokens!: Maybe; } -@TypeGraphQL.ObjectType() +@TypeGraphQL.InterfaceType() export class ImpersonateReturn { __typename?: 'ImpersonateReturn'; @@ -51,15 +90,48 @@ export class ImpersonateReturn { user!: Maybe; } -@TypeGraphQL.ObjectType() -export class LoginResult { - __typename?: 'LoginResult'; +@TypeGraphQL.InterfaceType() +export class EmailRecord { + __typename?: 'EmailRecord'; @TypeGraphQL.Field(type => String, { nullable: true }) - sessionId!: Maybe; + address!: Maybe; - @TypeGraphQL.Field(type => Tokens, { nullable: true }) - tokens!: Maybe; + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + verified!: Maybe; +} + +@TypeGraphQL.InputType() +export class AuthenticateParamsInput { + @TypeGraphQL.Field(type => String, { nullable: true }) + access_token!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + access_token_secret!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + provider!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + password!: Maybe; + + @TypeGraphQL.Field(type => UserInput, { nullable: true }) + user!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + code!: Maybe; +} + +@TypeGraphQL.InputType() +export class CreateUserInput { + @TypeGraphQL.Field(type => String, { nullable: true }) + username!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + email!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + password!: Maybe; } export class Mutation { @@ -102,55 +174,89 @@ export class Mutation { authenticate!: Maybe; } -export type MutationCreateUserArgs = { - user: CreateUserInput; -}; +@TypeGraphQL.ArgsType() +export class MutationCreateUserArgs { + @TypeGraphQL.Field(type => CreateUserInput) + user!: FixDecorator; +} -export type MutationVerifyEmailArgs = { - token: Scalars['String']; -}; +@TypeGraphQL.ArgsType() +export class MutationVerifyEmailArgs { + @TypeGraphQL.Field(type => String) + token!: Scalars['String']; +} -export type MutationResetPasswordArgs = { - token: Scalars['String']; - newPassword: Scalars['String']; -}; +@TypeGraphQL.ArgsType() +export class MutationResetPasswordArgs { + @TypeGraphQL.Field(type => String) + token!: Scalars['String']; -export type MutationSendVerificationEmailArgs = { - email: Scalars['String']; -}; + @TypeGraphQL.Field(type => String) + newPassword!: Scalars['String']; +} -export type MutationSendResetPasswordEmailArgs = { - email: Scalars['String']; -}; +@TypeGraphQL.ArgsType() +export class MutationSendVerificationEmailArgs { + @TypeGraphQL.Field(type => String) + email!: Scalars['String']; +} -export type MutationChangePasswordArgs = { - oldPassword: Scalars['String']; - newPassword: Scalars['String']; -}; +@TypeGraphQL.ArgsType() +export class MutationSendResetPasswordEmailArgs { + @TypeGraphQL.Field(type => String) + email!: Scalars['String']; +} -export type MutationTwoFactorSetArgs = { - secret: TwoFactorSecretKeyInput; - code: Scalars['String']; -}; +@TypeGraphQL.ArgsType() +export class MutationChangePasswordArgs { + @TypeGraphQL.Field(type => String) + oldPassword!: Scalars['String']; -export type MutationTwoFactorUnsetArgs = { - code: Scalars['String']; -}; + @TypeGraphQL.Field(type => String) + newPassword!: Scalars['String']; +} -export type MutationImpersonateArgs = { - accessToken: Scalars['String']; - username: Scalars['String']; -}; +@TypeGraphQL.ArgsType() +export class MutationTwoFactorSetArgs { + @TypeGraphQL.Field(type => TwoFactorSecretKeyInput) + secret!: FixDecorator; -export type MutationRefreshTokensArgs = { - accessToken: Scalars['String']; - refreshToken: Scalars['String']; -}; + @TypeGraphQL.Field(type => String) + code!: Scalars['String']; +} -export type MutationAuthenticateArgs = { - serviceName: Scalars['String']; - params: AuthenticateParamsInput; -}; +@TypeGraphQL.ArgsType() +export class MutationTwoFactorUnsetArgs { + @TypeGraphQL.Field(type => String) + code!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationImpersonateArgs { + @TypeGraphQL.Field(type => String) + accessToken!: Scalars['String']; + + @TypeGraphQL.Field(type => String) + username!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationRefreshTokensArgs { + @TypeGraphQL.Field(type => String) + accessToken!: Scalars['String']; + + @TypeGraphQL.Field(type => String) + refreshToken!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationAuthenticateArgs { + @TypeGraphQL.Field(type => String) + serviceName!: Scalars['String']; + + @TypeGraphQL.Field(type => AuthenticateParamsInput) + params!: FixDecorator; +} export class Query { __typename?: 'Query'; @@ -162,21 +268,8 @@ export class Query { getUser!: Maybe; } -@TypeGraphQL.ObjectType() -export class Tokens { - __typename?: 'Tokens'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - refreshToken!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - accessToken!: Maybe; -} - -@TypeGraphQL.ObjectType() -export class TwoFactorSecretKey { - __typename?: 'TwoFactorSecretKey'; - +@TypeGraphQL.InputType() +export class TwoFactorSecretKeyInput { @TypeGraphQL.Field(type => String, { nullable: true }) ascii!: Maybe; @@ -202,33 +295,14 @@ export class TwoFactorSecretKey { otpauth_url!: Maybe; } -export type TwoFactorSecretKeyInput = { - ascii?: Maybe; - base32?: Maybe; - hex?: Maybe; - qr_code_ascii?: Maybe; - qr_code_hex?: Maybe; - qr_code_base32?: Maybe; - google_auth_qr?: Maybe; - otpauth_url?: Maybe; -}; - -@TypeGraphQL.ObjectType() -export class User { - __typename?: 'User'; - - @TypeGraphQL.Field(type => TypeGraphQL.ID) - id!: Scalars['ID']; +@TypeGraphQL.InputType() +export class UserInput { + @TypeGraphQL.Field(type => TypeGraphQL.ID, { nullable: true }) + id!: Maybe; - @TypeGraphQL.Field(type => [EmailRecord], { nullable: true }) - emails!: Maybe>; + @TypeGraphQL.Field(type => String, { nullable: true }) + email!: Maybe; @TypeGraphQL.Field(type => String, { nullable: true }) username!: Maybe; } - -export type UserInput = { - id?: Maybe; - email?: Maybe; - username?: Maybe; -}; diff --git a/packages/graphql-api/tsconfig.json b/packages/graphql-api/tsconfig.json index 5844cf062..512450c8e 100644 --- a/packages/graphql-api/tsconfig.json +++ b/packages/graphql-api/tsconfig.json @@ -5,6 +5,7 @@ "outDir": "./lib", "noUnusedParameters": false, "noUnusedLocals": false, + "noImplicitAny": false, "experimentalDecorators": true, "importHelpers": true }, diff --git a/yarn.lock b/yarn.lock index 8e42018b4..61126fb57 100644 --- a/yarn.lock +++ b/yarn.lock @@ -253,7 +253,7 @@ esutils "^2.0.2" js-tokens "^4.0.0" -"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.2.0", "@babel/parser@^7.4.3", "@babel/parser@^7.4.4", "@babel/parser@^7.5.5": +"@babel/parser@7.5.5", "@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.4.4", "@babel/parser@^7.5.5": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.5.5.tgz#02f077ac8817d3df4a832ef59de67565e71cca4b" integrity sha512-E5BN68cqR7dhKan1SfqgPGhQ178bkVKpXTPEXnFJBrEt8/DKRZlybmy+IgYLTeN7tp1R5Ccmbm2rBk17sHYU3g== @@ -792,7 +792,7 @@ "@babel/parser" "^7.4.4" "@babel/types" "^7.4.4" -"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.1.6", "@babel/traverse@^7.4.3", "@babel/traverse@^7.4.4", "@babel/traverse@^7.5.5": +"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.4.4", "@babel/traverse@^7.5.5": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.5.5.tgz#f664f8f368ed32988cd648da9f72d5ca70f165bb" integrity sha512-MqB0782whsfffYfSjH4TM+LMjrJnhCNEDMDIjeTpl+ASaUvxcjoiVCo/sM1GhS1pHOXYfWVCYneLjMckuUxDaQ== @@ -942,6 +942,127 @@ resolved "https://registry.yarnpkg.com/@gql2ts/util/-/util-1.9.0.tgz#d07a54832757d2f2d1fc9891e5b0e3e3b4886c6a" integrity sha512-mkHar7AdyShUFJE6Mlke1tUbb+lPCK1EozZeAhCuRrhQ5aCCBAG6RxzNUYX1Q2jeGeyU0WRAtQu1oE/GoIsNXA== +"@graphql-codegen/add@^1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-1.7.0.tgz#8969e51913c4013e2ab098205184f38ca517cf7e" + integrity sha512-sk561sxOurcPTUS864pXDEh0sh/E5t0BRWPEdbSIcQ80Ia6WrwA6tuZfs59rkMlw99fpDTOGwjOHzqprZ9DzwQ== + dependencies: + "@graphql-codegen/plugin-helpers" "1.7.0" + tslib "1.10.0" + +"@graphql-codegen/cli@^1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-1.7.0.tgz#aade52f5c265450258e8fe0e45dc91268e8939a8" + integrity sha512-glrk7A7vzazF8mfR3fUL7baorjxL9w3hFqPmLMp9uEMXyIP3Z0MrRacbDkFzeYXcGsm7K4k+ZK5Og2g8shVCuA== + dependencies: + "@babel/parser" "7.5.5" + "@graphql-codegen/core" "1.7.0" + "@graphql-codegen/plugin-helpers" "1.7.0" + "@types/debounce" "1.2.0" + "@types/is-glob" "4.0.1" + "@types/mkdirp" "0.5.2" + "@types/valid-url" "1.0.2" + babel-types "7.0.0-beta.3" + chalk "2.4.2" + change-case "3.1.0" + chokidar "3.0.2" + commander "3.0.1" + common-tags "1.8.0" + debounce "1.2.0" + detect-indent "6.0.0" + glob "7.1.4" + graphql-config "2.2.1" + graphql-import "0.7.1" + graphql-tag-pluck "0.8.4" + graphql-toolkit "0.5.11" + graphql-tools "4.0.5" + indent-string "4.0.0" + inquirer "7.0.0" + is-glob "4.0.1" + is-valid-path "0.1.1" + js-yaml "3.13.1" + json-to-pretty-yaml "1.2.2" + listr "0.14.3" + listr-update-renderer "0.5.0" + log-symbols "3.0.0" + log-update "3.2.0" + mkdirp "0.5.1" + prettier "1.18.2" + request "2.88.0" + ts-log "2.1.4" + tslib "1.10.0" + valid-url "1.0.9" + +"@graphql-codegen/core@1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-1.7.0.tgz#fdad4d3ea9de998f9effd0df492ac3c4c2633bbc" + integrity sha512-NghsdPhI4eqjOJvzC2f8sHPJL7vx4hMTXeg2U90YWtv07lQoxefsJwi4UND6dyALUoH5MdgMyxJl6LM9mYzOVA== + dependencies: + "@graphql-codegen/plugin-helpers" "1.7.0" + graphql-toolkit "0.5.11" + tslib "1.10.0" + +"@graphql-codegen/plugin-helpers@1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.7.0.tgz#b1870a166cf34b2c67c053f2a9ec77823f78ac2d" + integrity sha512-lUWd5A9BQNbPqlMr38Gh5sLsBgMnn26n90/hyTw2J7CFCKFKSMnNBjxfCZU5AFHGxwi6rsNEpwBHRBx3OVWsTA== + dependencies: + change-case "3.1.0" + common-tags "1.8.0" + import-from "3.0.0" + tslib "1.10.0" + +"@graphql-codegen/typescript-operations@^1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-1.7.0.tgz#e57c6f7bc4ce34d47432a1cbb67348d7690bda1c" + integrity sha512-x6WjtTKoVQmR2sAupmDZHQj3TDE1WRrMWhrQiMQwfJmsTuTdzmbUF5DtAN1Lubs4tGoUCBx0+tzlUIzn6WfGZw== + dependencies: + "@graphql-codegen/plugin-helpers" "1.7.0" + "@graphql-codegen/typescript" "1.7.0" + "@graphql-codegen/visitor-plugin-common" "1.7.0" + tslib "1.10.0" + +"@graphql-codegen/typescript-resolvers@^1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-resolvers/-/typescript-resolvers-1.7.0.tgz#4e86c9c7be211b7054039497e302f9bc4c0b750f" + integrity sha512-vsI5Osmm2m9fknu7lcaGtYYURhVPJECg07DxMtkA0T56a4EzzY6rcS2BEOimuM0xmRSug8IORquzRWKF1lUcIA== + dependencies: + "@graphql-codegen/plugin-helpers" "1.7.0" + "@graphql-codegen/typescript" "1.7.0" + "@graphql-codegen/visitor-plugin-common" "1.7.0" + tslib "1.10.0" + +"@graphql-codegen/typescript-type-graphql@^1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-type-graphql/-/typescript-type-graphql-1.7.0.tgz#1da5de02b1a97168c62792676b8552cce0f031e4" + integrity sha512-abXVs5fLS8f25GT0yyZK4ADYEqoujjoPDqZ68AMneaQLboqngcirgUVrhBzm9UqXpnSsjIM6fJyC13VYWsTVmw== + dependencies: + "@graphql-codegen/plugin-helpers" "1.7.0" + "@graphql-codegen/typescript" "1.7.0" + "@graphql-codegen/visitor-plugin-common" "1.7.0" + tslib "1.10.0" + +"@graphql-codegen/typescript@1.7.0", "@graphql-codegen/typescript@^1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-1.7.0.tgz#8c8830f4e6ac9cb001ac26427ff7efeb122949d7" + integrity sha512-SxRSUfcuBG1HW2mEyjDZ7mKBITj/DGa1zjTnZIG8yAPpaIZ3+3toXOLqo2hh+pniMWnDzk19BFB2PImTUenDQQ== + dependencies: + "@graphql-codegen/plugin-helpers" "1.7.0" + "@graphql-codegen/visitor-plugin-common" "1.7.0" + auto-bind "2.0.0" + tslib "1.10.0" + +"@graphql-codegen/visitor-plugin-common@1.7.0": + version "1.7.0" + resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.7.0.tgz#ed71e9131685e586fe3e2d2d194c4635ae0ab358" + integrity sha512-oNSlJA9yjHwhkN/HhEn2GhHsSuSGeTuMvYVYeshc76Kx5+8CACcvIBpKwCdpNEO9os6E0ohpQg3Zg+yJG+14ug== + dependencies: + "@graphql-codegen/plugin-helpers" "1.7.0" + auto-bind "2.0.0" + dependency-graph "0.8.0" + graphql-tag "2.10.1" + tslib "1.10.0" + "@graphql-modules/core@0.7.10": version "0.7.10" resolved "https://registry.yarnpkg.com/@graphql-modules/core/-/core-0.7.10.tgz#892ded63656acbc3b2601032cf607f7b87a99688" @@ -2160,11 +2281,6 @@ dependencies: "@types/node" "*" -"@types/babel-types@*": - version "7.0.7" - resolved "https://registry.yarnpkg.com/@types/babel-types/-/babel-types-7.0.7.tgz#667eb1640e8039436028055737d2b9986ee336e3" - integrity sha512-dBtBbrc+qTHy1WdfHYjBwRln4+LWqASWakLHsWHR2NWHIFkv4W3O070IGoGLEBrJBvct3r0L1BUPuvURi7kYUQ== - "@types/babel__core@^7.1.0": version "7.1.2" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.2.tgz#608c74f55928033fce18b99b213c16be4b3d114f" @@ -2198,13 +2314,6 @@ dependencies: "@babel/types" "^7.3.0" -"@types/babylon@6.16.5": - version "6.16.5" - resolved "https://registry.yarnpkg.com/@types/babylon/-/babylon-6.16.5.tgz#1c5641db69eb8cdf378edd25b4be7754beeb48b4" - integrity sha512-xH2e58elpj1X4ynnKp9qSnWlsRTIs6n3tgLGNfwAGHwePw0mulHQllV34n0T25uYSu1k0hRKkWXF890B1yS47w== - dependencies: - "@types/babel-types" "*" - "@types/bcryptjs@2.4.2": version "2.4.2" resolved "https://registry.yarnpkg.com/@types/bcryptjs/-/bcryptjs-2.4.2.tgz#e3530eac9dd136bfdfb0e43df2c4c5ce1f77dfae" @@ -2259,6 +2368,11 @@ dependencies: "@types/express" "*" +"@types/debounce@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@types/debounce/-/debounce-1.2.0.tgz#9ee99259f41018c640b3929e1bb32c3dcecdb192" + integrity sha512-bWG5wapaWgbss9E238T0R6bfo5Fh3OkeoSt245CM7JJwVwpw6MEBCbIxLq5z8KzsE3uJhzcIuQkyiZmzV3M/Dw== + "@types/eslint-visitor-keys@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" @@ -2337,10 +2451,10 @@ dependencies: "@types/node" "*" -"@types/is-glob@4.0.0": - version "4.0.0" - resolved "https://registry.yarnpkg.com/@types/is-glob/-/is-glob-4.0.0.tgz#fb8a2bff539025d4dcd6d5efe7689e03341b876d" - integrity sha512-zC/2EmD8scdsGIeE+Xg7kP7oi9VP90zgMQtm9Cr25av4V+a+k8slQyiT60qSw8KORYrOKlPXfHwoa1bQbRzskQ== +"@types/is-glob@4.0.1": + version "4.0.1" + resolved "https://registry.yarnpkg.com/@types/is-glob/-/is-glob-4.0.1.tgz#a93eec1714172c8eb3225a1cc5eb88c2477b7d00" + integrity sha512-k3RS5HyBPu4h+5hTmIEfPB2rl5P3LnGdQEZrV2b9OWTJVtsUQ2VBcedqYKGqxvZqle5UALUXdSfVA8nf3HfyWQ== "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": version "2.0.1" @@ -2435,6 +2549,13 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== +"@types/mkdirp@0.5.2": + version "0.5.2" + resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-0.5.2.tgz#503aacfe5cc2703d5484326b1b27efa67a339c1f" + integrity sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg== + dependencies: + "@types/node" "*" + "@types/mongodb@*", "@types/mongodb@3.3.1": version "3.3.1" resolved "https://registry.yarnpkg.com/@types/mongodb/-/mongodb-3.3.1.tgz#9569ffcb356fbb5313ae2d3afa88c230bf8cf0d1" @@ -2458,11 +2579,21 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@12.7.2", "@types/node@>=6", "@types/node@^10.1.0": +"@types/node@*", "@types/node@12.7.2", "@types/node@>=6": version "12.7.2" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.2.tgz#c4e63af5e8823ce9cc3f0b34f7b998c2171f0c44" integrity sha512-dyYO+f6ihZEtNPDcWNR1fkoTDf3zAK3lAABDze3mz6POyIercH0lEUawUFXlG8xaQZmm1yEBON/4TsYv/laDYg== +"@types/node@^10.1.0": + version "10.14.17" + resolved "https://registry.yarnpkg.com/@types/node/-/node-10.14.17.tgz#b96d4dd3e427382482848948041d3754d40fd5ce" + integrity sha512-p/sGgiPaathCfOtqu2fx5Mu1bcjuP8ALFg4xpGgNkcin7LwRyzUKniEHBKdcE1RPsenq5JVPIpMTJSygLboygQ== + +"@types/node@^12.6.2": + version "12.7.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.4.tgz#64db61e0359eb5a8d99b55e05c729f130a678b04" + integrity sha512-W0+n1Y+gK/8G2P/piTkBBN38Qc5Q1ZSO6B5H3QmPCUewaiXOo2GCAWZ4ElZCcNhjJuBSUSLGFUJnmlCn5+nxOQ== + "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -2475,11 +2606,6 @@ dependencies: "@types/node" "*" -"@types/prettier@1.16.1": - version "1.16.1" - resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-1.16.1.tgz#328d1c9b54402e44119398bcb6a31b7bbd606d59" - integrity sha512-db6pZL5QY3JrlCHBhYQzYDci0xnoDuxfseUuguLRr3JNk+bnCfpkK6p8quiUDyO8A0vbpBKkk59Fw125etrNeA== - "@types/prop-types@*": version "15.7.1" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.1.tgz#f1a11e7babb0c3cad68100be381d1e064c68f1f6" @@ -2566,6 +2692,11 @@ "@types/tough-cookie" "*" form-data "^2.5.0" +"@types/semver@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-6.0.1.tgz#a984b405c702fa5a7ec6abc56b37f2ba35ef5af6" + integrity sha512-ffCdcrEE5h8DqVxinQjo+2d1q+FV5z7iNtPofw3JsrltSoSVlOGaW0rY8XxtO9XukdTn8TaCGWmk2VFGhI70mg== + "@types/serve-static@*": version "1.13.3" resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.3.tgz#eb7e1c41c4468272557e897e9171ded5e2ded9d1" @@ -2599,6 +2730,11 @@ resolved "https://registry.yarnpkg.com/@types/valid-url/-/valid-url-1.0.2.tgz#60fa435ce24bfd5ba107b8d2a80796aeaf3a8f45" integrity sha1-YPpDXOJL/VuhB7jSqAeWrq86j0U= +"@types/validator@10.11.2": + version "10.11.2" + resolved "https://registry.yarnpkg.com/@types/validator/-/validator-10.11.2.tgz#48b60ca2cca927081f37a1ad1de3e25d04abc9f0" + integrity sha512-k/ju1RsdP5ACFUWebqsyEy0avP5uNJCs2p3pmTHzOZdd4gMSAJTq7iUEHFY3tt3emBrPTm6oGvfZ4SzcqOgLPQ== + "@types/ws@^6.0.0": version "6.0.3" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-6.0.3.tgz#b772375ba59d79066561c8d87500144d674ba6b3" @@ -2942,14 +3078,6 @@ agentkeepalive@^3.4.1: dependencies: humanize-ms "^1.2.1" -aggregate-error@2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-2.1.0.tgz#051a9a733ad2e95ab503d84fb81989e6419b8f09" - integrity sha512-rIZJqC4XACGWwmPpi18IhDjIzXTJ93KQwYHXuyMCa0Ak9mtzLIbykuei+0i5EnGDy6ts8JVnSyRnZc2cVIMvVg== - dependencies: - clean-stack "^2.0.0" - indent-string "^3.0.0" - aggregate-error@3.0.0, aggregate-error@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.0.tgz#5b5a3c95e9095f311c9ab16c19fb4f3527cd3f79" @@ -3005,6 +3133,13 @@ ansi-escapes@^3.0.0, ansi-escapes@^3.2.0: resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== +ansi-escapes@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.2.1.tgz#4dccdb846c3eee10f6d64dea66273eab90c37228" + integrity sha512-Cg3ymMAdN10wOk/VYfLV7KCQyv7EDirJ64500sU7n9UlmioEtDuU5Gd+hj73hXSU/ex7tHJSssmyftDdkMLO8Q== + dependencies: + type-fest "^0.5.2" + ansi-html@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" @@ -3055,6 +3190,14 @@ anymatch@^2.0.0: micromatch "^3.1.4" normalize-path "^2.1.1" +anymatch@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.0.tgz#e609350e50a9313b472789b2f14ef35808ee14d6" + integrity sha512-Ozz7l4ixzI7Oxj2+cw+p0tVUt27BpaJ+1+q1TCeANWxHpvyn2+Un+YamBdfKu0uh8xLodGhoa1v7595NhKDAuA== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + apollo-boost@0.1.27: version "0.1.27" resolved "https://registry.yarnpkg.com/apollo-boost/-/apollo-boost-0.1.27.tgz#77cc796359503a330d5b31780043430afed47899" @@ -3575,13 +3718,6 @@ async@^1.5.2: resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= -async@^2.6.1: - version "2.6.3" - resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" - integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== - dependencies: - lodash "^4.17.14" - asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -3602,6 +3738,11 @@ atob@^2.1.1: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== +auto-bind@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/auto-bind/-/auto-bind-2.0.0.tgz#9a55a461b521f58daf955169203bed1a07a970a9" + integrity sha512-rvRBv0/O7iriUMqSzTDhAfyAD1vVnElAEruo5rMSFeYLA0iKDEzLPSJiwMnL86+IPpTlhfOIAzjoKZ9TaySYdA== + autoprefixer@^9.6.1: version "9.6.1" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.6.1.tgz#51967a02d2d2300bb01866c1611ec8348d355a47" @@ -3795,11 +3936,6 @@ babel-types@7.0.0-beta.3: lodash "^4.2.0" to-fast-properties "^2.0.0" -babylon@7.0.0-beta.47: - version "7.0.0-beta.47" - resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.47.tgz#6d1fa44f0abec41ab7c780481e62fd9aafbdea80" - integrity sha512-+rq2cr4GDhtToEzKFD6KZZMDBXhjFAr9JjPw9pAppZACeEWqNM294j+NdBzkSHYXwzzBmVjZ3nEVJlOhbR2gOQ== - babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" @@ -3870,6 +4006,11 @@ binary-extensions@^1.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== +binary-extensions@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c" + integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow== + bluebird@3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" @@ -3955,7 +4096,7 @@ braces@^2.3.1, braces@^2.3.2: split-string "^3.0.2" to-regex "^3.0.1" -braces@^3.0.1: +braces@^3.0.1, braces@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -4373,24 +4514,20 @@ check-error@^1.0.2: resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" integrity sha1-V00xLt2Iu13YkS6Sht1sCu1KrII= -chokidar@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.2.tgz#9c23ea40b01638439e0513864d362aeacc5ad058" - integrity sha512-IwXUx0FXc5ibYmPC2XeEj5mpXoV66sR+t3jqu2NS2GYwCktt3KF1/Qqjws/NkegajBA4RbZ5+DDwlOiJsxDHEg== +chokidar@3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.0.2.tgz#0d1cd6d04eb2df0327446188cd13736a3367d681" + integrity sha512-c4PR2egjNjI1um6bamCQ6bUNPDiyofNQruHvKgHQ4gDUP/ITSVSzNsiI5OWtHOsX323i5ha/kk4YmOZ1Ktg7KA== dependencies: - anymatch "^2.0.0" - async-each "^1.0.1" - braces "^2.3.2" - glob-parent "^3.1.0" - inherits "^2.0.3" - is-binary-path "^1.0.0" - is-glob "^4.0.0" + anymatch "^3.0.1" + braces "^3.0.2" + glob-parent "^5.0.0" + is-binary-path "^2.1.0" + is-glob "^4.0.1" normalize-path "^3.0.0" - path-is-absolute "^1.0.0" - readdirp "^2.2.1" - upath "^1.1.0" + readdirp "^3.1.1" optionalDependencies: - fsevents "^1.2.7" + fsevents "^2.0.6" chokidar@^2.0.0, chokidar@^2.0.2, chokidar@^2.0.4, chokidar@^2.1.5: version "2.1.8" @@ -4451,6 +4588,15 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" +class-validator@>=0.9.1: + version "0.10.0" + resolved "https://registry.yarnpkg.com/class-validator/-/class-validator-0.10.0.tgz#5e5f8108fa200d5ce1906cd5537af102c072dbcd" + integrity sha512-RvjxRlvoCvM/ojUq11j78ISpReGdBoMErdmDk1e27aQZK6ppSXq751UE6jB9JI7ayEnL6Nnmllzn/HXVSu3dmg== + dependencies: + "@types/validator" "10.11.2" + google-libphonenumber "^3.1.6" + validator "11.1.0" + clean-css@4.2.x: version "4.2.1" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.1.tgz#2d411ef76b8569b6d0c84068dabe85b0aa5e5c17" @@ -4475,6 +4621,13 @@ cli-cursor@^2.0.0, cli-cursor@^2.1.0: dependencies: restore-cursor "^2.0.0" +cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + cli-highlight@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/cli-highlight/-/cli-highlight-2.1.1.tgz#2180223d51618b112f4509cf96e4a6c750b07e97" @@ -4615,14 +4768,6 @@ color-string@^1.5.2: color-name "^1.0.0" simple-swizzle "^0.2.2" -color@3.0.x: - version "3.0.0" - resolved "https://registry.yarnpkg.com/color/-/color-3.0.0.tgz#d920b4328d534a3ac8295d68f7bd4ba6c427be9a" - integrity sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w== - dependencies: - color-convert "^1.9.1" - color-string "^1.5.2" - color@^3.0.0: version "3.1.2" resolved "https://registry.yarnpkg.com/color/-/color-3.1.2.tgz#68148e7f85d41ad7649c5fa8c8106f098d229e10" @@ -4631,24 +4776,6 @@ color@^3.0.0: color-convert "^1.9.1" color-string "^1.5.2" -colornames@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/colornames/-/colornames-1.1.1.tgz#f8889030685c7c4ff9e2a559f5077eb76a816f96" - integrity sha1-+IiQMGhcfE/54qVZ9Qd+t2qBb5Y= - -colors@^1.2.1: - version "1.3.3" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.3.tgz#39e005d546afe01e01f9c4ca8fa50f686a01205d" - integrity sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg== - -colorspace@1.1.x: - version "1.1.2" - resolved "https://registry.yarnpkg.com/colorspace/-/colorspace-1.1.2.tgz#e0128950d082b86a2168580796a0aa5d6c68d8c5" - integrity sha512-vt+OoIP2d76xLhjwbBaucYlNSpPsrJWPlBTtwCpQKIu6/CSMutyzX93O/Do0qzpH3YoHEes8YEFXyZ797rEhzQ== - dependencies: - color "3.0.x" - text-hex "1.0.x" - columnify@^1.5.4: version "1.5.4" resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb" @@ -4669,16 +4796,21 @@ commander@2.17.x: resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg== -commander@2.19.0, commander@~2.19.0: - version "2.19.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" - integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== +commander@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/commander/-/commander-3.0.1.tgz#4595aec3530525e671fb6f85fb173df8ff8bf57a" + integrity sha512-UNgvDd+csKdc9GD4zjtkHKQbT8Aspt2jCBqNSPp53vAS0L1tS9sXB2TCEOPHJ7kt9bN/niWkYj8T3RQSoMXdSQ== commander@^2.11.0, commander@^2.12.1, commander@^2.20.0, commander@~2.20.0: version "2.20.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== +commander@~2.19.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" + integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== + common-tags@1.8.0, common-tags@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.0.tgz#8e3153e542d4a39e9b10554434afaaf98956a937" @@ -5406,6 +5538,11 @@ dateformat@^3.0.0: resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== +debounce@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" + integrity sha512-mYtLl1xfZLi1m4RtQYlZgJUNQjl4ZxVnHzIR8nLLgi4q1YT8o/WM+MK/f8yfcc9s5Ir5zRaPZyZU6xs1Syoocg== + debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.8, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -5491,11 +5628,6 @@ deep-is@~0.1.3: resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= -deepmerge@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.2.0.tgz#58ef463a57c08d376547f8869fdc5bcee957f44e" - integrity sha512-6+LuZGU7QCNUnAJyX8cIrlzoEgggTM6B7mm+znKOX4t5ltluT9KLjN6g61ECMS0LTsLW7yDpNoxhix5FZcrIow== - deepmerge@4.0.0, deepmerge@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.0.0.tgz#3e3110ca29205f120d7cb064960a39c3d2087c09" @@ -5596,6 +5728,11 @@ depd@~2.0.0: resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== +dependency-graph@0.8.0: + version "0.8.0" + resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.8.0.tgz#2da2d35ed852ecc24a5d6c17788ba57c3708755b" + integrity sha512-DCvzSq2UiMsuLnj/9AL484ummEgLtZIcRS7YvtO38QnpX3vqh9nJ8P+zhu8Ja+SmLrBHO2iDbva20jq38qvBkQ== + deprecated-decorator@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/deprecated-decorator/-/deprecated-decorator-0.1.6.tgz#00966317b7a12fe92f3cc831f7583af329b86c37" @@ -5619,7 +5756,12 @@ destroy@~1.0.4: resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= -detect-indent@5.0.0, detect-indent@^5.0.0: +detect-indent@6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" + integrity sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA== + +detect-indent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" integrity sha1-OHHMCmoALow+Wzz38zYmRnXwa50= @@ -5655,15 +5797,6 @@ dezalgo@^1.0.0: asap "^2.0.0" wrappy "1" -diagnostics@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/diagnostics/-/diagnostics-1.1.1.tgz#cab6ac33df70c9d9a727490ae43ac995a769b22a" - integrity sha512-8wn1PmdunLJ9Tqbx+Fx/ZEuHfJf4NKSN2ZBj7SJC/OWRWha843+WsTjqMe1B5E3p28jqBlp+mJ2fPVxPyNgYKQ== - dependencies: - colorspace "1.1.x" - enabled "1.0.x" - kuler "1.0.x" - dicer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/dicer/-/dicer-0.3.0.tgz#eacd98b3bfbf92e8ab5c2fdb71aaac44bb06b872" @@ -5938,18 +6071,16 @@ emoji-regex@^7.0.1, emoji-regex@^7.0.2: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + emojis-list@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= -enabled@1.0.x: - version "1.0.2" - resolved "https://registry.yarnpkg.com/enabled/-/enabled-1.0.2.tgz#965f6513d2c2d1c5f4652b64a2e3396467fc2f93" - integrity sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M= - dependencies: - env-variable "0.0.x" - encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" @@ -5993,11 +6124,6 @@ env-paths@^1.0.0: resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-1.0.0.tgz#4168133b42bb05c38a35b1ae4397c8298ab369e0" integrity sha1-QWgTO0K7BcOKNbGuQ5fIKYqzaeA= -env-variable@0.0.x: - version "0.0.5" - resolved "https://registry.yarnpkg.com/env-variable/-/env-variable-0.0.5.tgz#913dd830bef11e96a039c038d4130604eba37f88" - integrity sha512-zoB603vQReOFvTg5xMl9I1P2PnHsHQQKTEowsKKD7nseUfJq6UWzK+4YtlWUO1nhiQUxe6XMkk+JleSZD1NZFA== - err-code@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/err-code/-/err-code-1.1.2.tgz#06e0116d3028f6aef4806849eb0ea6a748ae6960" @@ -6575,11 +6701,6 @@ fast-levenshtein@~2.0.4: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= -fast-safe-stringify@^2.0.4: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.6.tgz#04b26106cc56681f51a044cfc0d76cf0008ac2c2" - integrity sha512-q8BZ89jjc+mz08rSxROs8VsrBBcn1SIw1kq9NjolL509tkABRk9io01RAjSaEv1Xb2uFLt8VtRiZbGp5H8iDtg== - fastq@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.6.0.tgz#4ec8a38f4ac25f21492673adb7eae9cfef47d1c2" @@ -6608,11 +6729,6 @@ fb-watchman@^2.0.0: dependencies: bser "^2.0.0" -fecha@^2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fecha/-/fecha-2.3.3.tgz#948e74157df1a32fd1b12c3a3c3cdcb6ec9d96cd" - integrity sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg== - figgy-pudding@^3.4.1, figgy-pudding@^3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790" @@ -6638,6 +6754,13 @@ figures@^2.0.0: dependencies: escape-string-regexp "^1.0.5" +figures@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.0.0.tgz#756275c964646163cc6f9197c7a0295dbfd04de9" + integrity sha512-HKri+WoWoUgr83pehn/SIgLOMZ9nAWC6dcGj26RY2R4F50u4+RTUz0RCrUlOV3nKRAICW1UGzyb+kcX2qK1S/g== + dependencies: + escape-string-regexp "^1.0.5" + file-entry-cache@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" @@ -6903,7 +7026,7 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= -fsevents@2.0.7: +fsevents@2.0.7, fsevents@^2.0.6: version "2.0.7" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.0.7.tgz#382c9b443c6cbac4c57187cdda23aa3bf1ccfc2a" integrity sha512-a7YT0SV3RB+DjYcppwVDLtn13UQnmg0SWZS7ezZD0UjnLwXmy8Zm21GMVGLaFGimIqcvyMQaOJBrop8MyOp1kQ== @@ -7091,19 +7214,7 @@ glob-to-regexp@^0.3.0: resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= -glob@7.1.3: - version "7.1.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" - integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.0.4" - once "^1.3.0" - path-is-absolute "^1.0.0" - -glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: +glob@7.1.4, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.1.4" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== @@ -7195,6 +7306,11 @@ globby@^9.2.0: pify "^4.0.1" slash "^2.0.0" +google-libphonenumber@^3.1.6: + version "3.2.4" + resolved "https://registry.yarnpkg.com/google-libphonenumber/-/google-libphonenumber-3.2.4.tgz#91d3fe62ca531f154165e6580b1c55ff6bd53abf" + integrity sha512-gxUVpo/3+ZlUdbvE/u9E0VoKjimLhugw0pWD4I/j4cRF1jh+1wNzQXcCmf2mMa726ai39o5N7DcXCW3Shv0s3A== + got@^6.7.1: version "6.7.1" resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" @@ -7226,99 +7342,6 @@ graphql-anywhere@^4.1.0-alpha.0: ts-invariant "^0.3.2" tslib "^1.9.3" -graphql-code-generator@0.18.2: - version "0.18.2" - resolved "https://registry.yarnpkg.com/graphql-code-generator/-/graphql-code-generator-0.18.2.tgz#080d91f8b44d26d7c69069118ac9f775f3fd5971" - integrity sha512-9ifA5T6hM6qo3RVQz7oYld1R6XYyglT/TanYDoweVEX+6iLxgi0rvGFjFcQ45bPDgLyVkQ9LEsEJuL1YxFmrDw== - dependencies: - "@types/babylon" "6.16.5" - "@types/is-glob" "4.0.0" - "@types/prettier" "1.16.1" - "@types/valid-url" "1.0.2" - babel-types "7.0.0-beta.3" - babylon "7.0.0-beta.47" - chalk "2.4.2" - change-case "3.1.0" - chokidar "2.1.2" - commander "2.19.0" - common-tags "1.8.0" - detect-indent "5.0.0" - glob "7.1.3" - graphql-codegen-core "0.18.2" - graphql-config "2.2.1" - graphql-import "0.7.1" - graphql-tag-pluck "0.6.0" - graphql-toolkit "0.2.0" - graphql-tools "4.0.4" - indent-string "3.2.0" - inquirer "6.2.2" - is-glob "4.0.0" - is-valid-path "0.1.1" - js-yaml "3.13.1" - json-to-pretty-yaml "1.2.2" - listr "0.14.3" - listr-update-renderer "0.5.0" - log-symbols "2.2.0" - log-update "2.3.0" - mkdirp "0.5.1" - prettier "1.16.4" - request "2.88.0" - valid-url "1.0.9" - -graphql-codegen-add@0.18.2: - version "0.18.2" - resolved "https://registry.yarnpkg.com/graphql-codegen-add/-/graphql-codegen-add-0.18.2.tgz#27625f6b6bcfe29076b5f8b02496425eeb360b46" - integrity sha512-X8i3WEjfI2YYS6giE3BZ0LlOlTnae2btuyjU1TAN7Cec+dOI5XzRz25cPRi6D1Y0++j2h480e60tgXwMORW9pA== - dependencies: - graphql-codegen-core "0.18.2" - -graphql-codegen-core@0.18.2: - version "0.18.2" - resolved "https://registry.yarnpkg.com/graphql-codegen-core/-/graphql-codegen-core-0.18.2.tgz#205b25d2bdb20a35b986495b60d219a8d02ef266" - integrity sha512-fjfIUrDx0KDdr/jYjUs51+07DvcEc5w9tdid/bNezNzT2iJLtmnnmYLR62an3/PKUnKSOAIKLYxFIBOzsFJH9A== - dependencies: - chalk "2.4.2" - change-case "3.1.0" - common-tags "1.8.0" - graphql-tag "2.10.1" - graphql-toolkit "0.2.0" - graphql-tools "4.0.4" - ts-log "2.1.4" - winston "3.2.1" - -graphql-codegen-plugin-helpers@0.18.2: - version "0.18.2" - resolved "https://registry.yarnpkg.com/graphql-codegen-plugin-helpers/-/graphql-codegen-plugin-helpers-0.18.2.tgz#ce03d02ced0bc28ef2f61e0a5205d85ee7e9ccdb" - integrity sha512-WZahfp95RdePwwPWxnxAHgfkXXEQXNrgX9sGrB//uGfj8lygcf7m/rNZQ4iooUzoqBEkTtJpi7bezWCieNcq2A== - dependencies: - graphql-codegen-core "0.18.2" - import-from "2.1.0" - -graphql-codegen-typescript-common@0.18.2: - version "0.18.2" - resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-common/-/graphql-codegen-typescript-common-0.18.2.tgz#1ccbb3bfa1aeb8664127f881db27c658636465da" - integrity sha512-uGGHd/vgwMlnCNOMQkvMxW8Xz0fqPGjPHROsniRNP1ragsa6KfFBrGu9toHgxv8m3MzC6ZPeoUa3wtwtS9oVnA== - dependencies: - change-case "3.1.0" - common-tags "1.8.0" - graphql-codegen-core "0.18.2" - graphql-codegen-plugin-helpers "0.18.2" - -graphql-codegen-typescript-resolvers@0.18.2: - version "0.18.2" - resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-resolvers/-/graphql-codegen-typescript-resolvers-0.18.2.tgz#fa44b2668285184d2976116c2982c17bc6866a23" - integrity sha512-BlS286ap2hsOjx2a7H6WKcwxfQtjRay9d+P/0u4t6zUkjpFSpHWWYgymVopfckrjHCo/8g+THPFCmUgFg34vKQ== - dependencies: - graphql-codegen-plugin-helpers "0.18.2" - graphql-codegen-typescript-common "0.18.2" - -graphql-codegen-typescript-server@0.18.2: - version "0.18.2" - resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-server/-/graphql-codegen-typescript-server-0.18.2.tgz#2e11607512bdf77b152c554afc18f5210c1785ba" - integrity sha512-1marSv3TCry6IsQd+Hdarq/AhDpgJ3Yg+e9Or3Urv7Fkw4YbhtyGp6AkpBK+DMKlyKFPjpLnmjAaHS3hjrCp3Q== - dependencies: - graphql-codegen-typescript-common "0.18.2" - graphql-config@2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-2.2.1.tgz#5fd0ec77ac7428ca5fb2026cf131be10151a0cb2" @@ -7365,6 +7388,13 @@ graphql-import@0.7.1, graphql-import@^0.7.1: lodash "^4.17.4" resolve-from "^4.0.0" +graphql-query-complexity@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/graphql-query-complexity/-/graphql-query-complexity-0.3.0.tgz#71a44e124b7591a185d9d8cde55205aa57680c5d" + integrity sha512-JVqHT81Eh9O17iOjs1r1qzsh5YY2upfA3zoUsQGggT4d+1hajWitk4GQQY5SZtq5eul7y6jMsM9qRUSOAKhDJQ== + dependencies: + lodash.get "^4.4.2" + graphql-request@^1.5.0: version "1.8.2" resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-1.8.2.tgz#398d10ae15c585676741bde3fc01d5ca948f8fbe" @@ -7372,50 +7402,51 @@ graphql-request@^1.5.0: dependencies: cross-fetch "2.2.2" -graphql-subscriptions@^1.0.0: +graphql-subscriptions@^1.0.0, graphql-subscriptions@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/graphql-subscriptions/-/graphql-subscriptions-1.1.0.tgz#5f2fa4233eda44cf7570526adfcf3c16937aef11" integrity sha512-6WzlBFC0lWmXJbIVE8OgFgXIP4RJi3OQgTPa0DVMsDXdpRDjTsM1K9wfl5HSYX7R87QAGlvcv2Y4BIZa/ItonA== dependencies: iterall "^1.2.1" -graphql-tag-pluck@0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/graphql-tag-pluck/-/graphql-tag-pluck-0.6.0.tgz#d03ab981cd8d31e564d37f8b9bac94a523dc29dd" - integrity sha512-C1SRw5zZtl7CN7mv6Q0abFVSJwG8M+FniFCPqWD+AjQMj9igNPthraMUQ02KSo+j19khR60mksqmFN3BwboFaw== +graphql-tag-pluck@0.8.4: + version "0.8.4" + resolved "https://registry.yarnpkg.com/graphql-tag-pluck/-/graphql-tag-pluck-0.8.4.tgz#9425627a9358365be519d532acaa38edde049d28" + integrity sha512-weT9fZPILIOkdW26ZkkiGf2OGvSfHQZBudYxkxnNoiLU+9RH+I0THE95iAvzMWbtKVmoBovLF/qQyK4ay/D7Bw== dependencies: - "@babel/parser" "^7.2.0" - "@babel/traverse" "^7.1.6" - "@babel/types" "^7.2.0" - source-map-support "^0.5.9" - typescript "^3.2.2" + "@babel/parser" "^7.4.4" + "@babel/traverse" "^7.4.4" + "@babel/types" "^7.4.4" + source-map-support "^0.5.12" graphql-tag@2.10.1, graphql-tag@^2.10.0, graphql-tag@^2.4.2, graphql-tag@^2.9.2: version "2.10.1" resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.10.1.tgz#10aa41f1cd8fae5373eaf11f1f67260a3cad5e02" integrity sha512-jApXqWBzNXQ8jYa/HLkZJaVw9jgwNqZkywa2zfFn16Iv1Zb7ELNHkJaXHR7Quvd5SIGsy6Ny7SUKATgnu05uEg== -graphql-toolkit@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.2.0.tgz#91364b69911d51bc915269a37963f4ea2d5f335c" - integrity sha512-dMwb+V2u6vwJF70tWuqSxgNal9fK1xcB8JtmCJUStVUh+PjfNrlKH1X5e17vJlN+lRPz1hatr8jH+Q6lTW0jLw== +graphql-toolkit@0.5.10, graphql-toolkit@^0.5.10: + version "0.5.10" + resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.5.10.tgz#7b4d5e84c421ca72801d436084478d4a7ac06444" + integrity sha512-mMHNezD9oT0IlM/vkZd/aeoIKtXqKnZq3ipJIMcHZPmMDPcZEf7BMzbB8naKWSWPaB1Iskg426DrfzQDUgU25A== dependencies: - aggregate-error "2.1.0" - deepmerge "3.2.0" - glob "7.1.3" + "@kamilkisiela/graphql-tools" "4.0.6" + "@types/glob" "7.1.1" + aggregate-error "3.0.0" + asyncro "^3.0.0" + cross-fetch "^3.0.4" + deepmerge "4.0.0" + globby "10.0.1" graphql-import "0.7.1" - graphql-tag-pluck "0.6.0" - is-glob "4.0.0" + is-glob "4.0.1" is-valid-path "0.1.1" - lodash "4.17.11" - request "2.88.0" + lodash "4.17.15" tslib "^1.9.3" valid-url "1.0.9" -graphql-toolkit@0.5.10, graphql-toolkit@^0.5.10: - version "0.5.10" - resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.5.10.tgz#7b4d5e84c421ca72801d436084478d4a7ac06444" - integrity sha512-mMHNezD9oT0IlM/vkZd/aeoIKtXqKnZq3ipJIMcHZPmMDPcZEf7BMzbB8naKWSWPaB1Iskg426DrfzQDUgU25A== +graphql-toolkit@0.5.11: + version "0.5.11" + resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.5.11.tgz#f9adf1ecc4df455802d0cc223acbd35556f7d78e" + integrity sha512-CKYzzqcAUbG3mzeQ1+KDqggQMj1lcleanhU4h8EH9bKV2+IyY+vMXQcuxBuLF4BgxYeX04LQnPUfGi9F+lo0qw== dependencies: "@kamilkisiela/graphql-tools" "4.0.6" "@types/glob" "7.1.1" @@ -7431,7 +7462,7 @@ graphql-toolkit@0.5.10, graphql-toolkit@^0.5.10: tslib "^1.9.3" valid-url "1.0.9" -graphql-tools@4.0.4, graphql-tools@4.0.5, graphql-tools@^4.0.0, graphql-tools@^4.0.5: +graphql-tools@4.0.5, graphql-tools@^4.0.0, graphql-tools@^4.0.5: version "4.0.5" resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.5.tgz#d2b41ee0a330bfef833e5cdae7e1f0b0d86b1754" integrity sha512-kQCh3IZsMqquDx7zfIGWBau42xe46gmqabwYkpPlCLIjcEY1XK+auP7iGRD9/205BPyoQdY8hT96MPpgERdC9Q== @@ -7943,7 +7974,14 @@ import-fresh@^3.0.0: parent-module "^1.0.0" resolve-from "^4.0.0" -import-from@2.1.0, import-from@^2.1.0: +import-from@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/import-from/-/import-from-3.0.0.tgz#055cfec38cd5a27d8057ca51376d7d3bf0891966" + integrity sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ== + dependencies: + resolve-from "^5.0.0" + +import-from@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1" integrity sha1-M1238qev/VOqpHHUuAId7ja387E= @@ -7968,10 +8006,10 @@ imurmurhash@^0.1.4: resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= -indent-string@3.2.0, indent-string@^3.0.0, indent-string@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= +indent-string@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== indent-string@^2.1.0: version "2.1.0" @@ -7980,6 +8018,11 @@ indent-string@^2.1.0: dependencies: repeating "^2.0.0" +indent-string@^3.0.0, indent-string@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" + integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= + indexes-of@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" @@ -8051,10 +8094,10 @@ inquirer@3.0.6: strip-ansi "^3.0.0" through "^2.3.6" -inquirer@6.2.2: - version "6.2.2" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.2.2.tgz#46941176f65c9eb20804627149b743a218f25406" - integrity sha512-Z2rREiXA6cHRR9KBOarR3WuLlFzlIfAEIiB45ll5SSadMg7WqOh1MKEjjndfuH5ewXdixWCxqnVfGOQzPeiztA== +inquirer@6.5.0: + version "6.5.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" + integrity sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA== dependencies: ansi-escapes "^3.2.0" chalk "^2.4.2" @@ -8062,30 +8105,30 @@ inquirer@6.2.2: cli-width "^2.0.0" external-editor "^3.0.3" figures "^2.0.0" - lodash "^4.17.11" + lodash "^4.17.12" mute-stream "0.0.7" run-async "^2.2.0" rxjs "^6.4.0" string-width "^2.1.0" - strip-ansi "^5.0.0" + strip-ansi "^5.1.0" through "^2.3.6" -inquirer@6.5.0: - version "6.5.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" - integrity sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA== +inquirer@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.0.tgz#9e2b032dde77da1db5db804758b8fea3a970519a" + integrity sha512-rSdC7zelHdRQFkWnhsMu2+2SO41mpv2oF2zy4tMhmiLWkcKbOAs87fWAJhVXttKVwhdZvymvnuM95EyEXg2/tQ== dependencies: - ansi-escapes "^3.2.0" + ansi-escapes "^4.2.1" chalk "^2.4.2" - cli-cursor "^2.1.0" + cli-cursor "^3.1.0" cli-width "^2.0.0" external-editor "^3.0.3" - figures "^2.0.0" - lodash "^4.17.12" - mute-stream "0.0.7" + figures "^3.0.0" + lodash "^4.17.15" + mute-stream "0.0.8" run-async "^2.2.0" rxjs "^6.4.0" - string-width "^2.1.0" + string-width "^4.1.0" strip-ansi "^5.1.0" through "^2.3.6" @@ -8199,6 +8242,13 @@ is-binary-path@^1.0.0: dependencies: binary-extensions "^1.0.0" +is-binary-path@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + is-buffer@^1.0.2, is-buffer@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" @@ -8318,18 +8368,16 @@ is-fullwidth-code-point@^2.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + is-generator-fn@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== -is-glob@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" - integrity sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A= - dependencies: - is-extglob "^2.1.1" - is-glob@4.0.1, is-glob@^4.0.0, is-glob@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" @@ -9404,13 +9452,6 @@ kleur@^3.0.3: resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== -kuler@1.0.x: - version "1.0.1" - resolved "https://registry.yarnpkg.com/kuler/-/kuler-1.0.1.tgz#ef7c784f36c9fb6e16dd3150d152677b2b0228a6" - integrity sha512-J9nVUucG1p/skKul6DU3PUZrhs0LPulNaeUOox0IyXDi8S4CztTHs1gQphhuZmzXG7VOQSf6NJfKuzteQLv9gQ== - dependencies: - colornames "^1.1.1" - last-call-webpack-plugin@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz#9742df0e10e3cf46e5c0381c2de90d3a7a2d7555" @@ -9755,22 +9796,17 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= -lodash@4.17.11: - version "4.17.11" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" - integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== - lodash@4.17.15, "lodash@>=3.5 <5", lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== -log-symbols@2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== +log-symbols@3.0.0, log-symbols@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" + integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== dependencies: - chalk "^2.0.1" + chalk "^2.4.2" log-symbols@^1.0.2: version "1.0.2" @@ -9779,14 +9815,16 @@ log-symbols@^1.0.2: dependencies: chalk "^1.0.0" -log-symbols@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" - integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== +log-update@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/log-update/-/log-update-3.2.0.tgz#719f24293250d65d0165f4e2ec2ed805ff062eec" + integrity sha512-KJ6zAPIHWo7Xg1jYror6IUDFJBq1bQ4Bi4wAEp2y/0ScjBBVi/g0thr0sUVhuvuXauWzczt7T2QHghPDNnKBuw== dependencies: - chalk "^2.4.2" + ansi-escapes "^3.2.0" + cli-cursor "^2.1.0" + wrap-ansi "^5.0.0" -log-update@2.3.0, log-update@^2.3.0: +log-update@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/log-update/-/log-update-2.3.0.tgz#88328fd7d1ce7938b29283746f0b1bc126b24708" integrity sha1-iDKP19HOeTiykoN0bwsbwSayRwg= @@ -9795,17 +9833,6 @@ log-update@2.3.0, log-update@^2.3.0: cli-cursor "^2.0.0" wrap-ansi "^3.0.1" -logform@^2.1.1: - version "2.1.2" - resolved "https://registry.yarnpkg.com/logform/-/logform-2.1.2.tgz#957155ebeb67a13164069825ce67ddb5bb2dd360" - integrity sha512-+lZh4OpERDBLqjiwDLpAWNQu6KMjnlXH2ByZwCuSqVPJletw0kTWJf5CgSNAUKn1KUkv3m2cUz/LK8zyEy7wzQ== - dependencies: - colors "^1.2.1" - fast-safe-stringify "^2.0.4" - fecha "^2.3.3" - ms "^2.1.1" - triple-beam "^1.3.0" - loglevel@^1.4.1: version "1.6.3" resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.3.tgz#77f2eb64be55a404c9fd04ad16d57c1d6d6b1280" @@ -10371,7 +10398,7 @@ mute-stream@0.0.7: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= -mute-stream@~0.0.4: +mute-stream@0.0.8, mute-stream@~0.0.4: version "0.0.8" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== @@ -10887,11 +10914,6 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" -one-time@0.0.4: - version "0.0.4" - resolved "https://registry.yarnpkg.com/one-time/-/one-time-0.0.4.tgz#f8cdf77884826fe4dff93e3a9cc37b1e4480742e" - integrity sha1-+M33eISCb+Tf+T46nMN7HkSAdC4= - onetime@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" @@ -11449,7 +11471,7 @@ pgpass@1.x: dependencies: split "^1.0.0" -picomatch@^2.0.5: +picomatch@^2.0.4, picomatch@^2.0.5: version "2.0.7" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.0.7.tgz#514169d8c7cd0bdbeecc8a2609e34a7163de69f6" integrity sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA== @@ -12253,11 +12275,6 @@ prepend-http@^1.0.1: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= -prettier@1.16.4: - version "1.16.4" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717" - integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g== - prettier@1.18.2: version "1.18.2" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea" @@ -12915,6 +12932,13 @@ readdirp@^2.2.1: micromatch "^3.1.10" readable-stream "^2.0.2" +readdirp@^3.1.1: + version "3.1.2" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.1.2.tgz#fa85d2d14d4289920e4671dead96431add2ee78a" + integrity sha512-8rhl0xs2cxfVsqzreYCvs8EwBfn/DhVdqtoLmw19uI3SC5avYX9teCurlErfpPXGmYtMHReGaP2RsLnFvz/lnw== + dependencies: + picomatch "^2.0.4" + realpath-native@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.1.0.tgz#2003294fea23fb0672f2476ebe22fcf498a2d65c" @@ -13225,6 +13249,11 @@ resolve-from@^4.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + resolve-pathname@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-2.2.0.tgz#7e9ae21ed815fd63ab189adeee64dc831eefa879" @@ -13271,6 +13300,14 @@ restore-cursor@^2.0.0: onetime "^2.0.0" signal-exit "^3.0.2" +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" @@ -13831,7 +13868,7 @@ source-map-resolve@^0.5.0, source-map-resolve@^0.5.2: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.5.6, source-map-support@^0.5.9, source-map-support@~0.5.12: +source-map-support@^0.5.12, source-map-support@^0.5.6, source-map-support@~0.5.12: version "0.5.13" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== @@ -13975,11 +14012,6 @@ stable@^0.1.8: resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== -stack-trace@0.0.x: - version "0.0.10" - resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" - integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA= - stack-utils@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8" @@ -14084,6 +14116,15 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" +string-width@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.1.0.tgz#ba846d1daa97c3c596155308063e075ed1c99aff" + integrity sha512-NrX+1dVVh+6Y9dnQ19pR0pP4FiEIlUvdTGn8pw6CKTNq5sgib2nIhmUNT5TAmhWmvKr3WcxBcP3E8nWezuipuQ== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^5.2.0" + string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -14385,11 +14426,6 @@ text-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-2.0.0.tgz#43eabd1b495482fae4a2bf65e5f56c29f69220f6" integrity sha512-F91ZqLgvi1E0PdvmxMgp+gcf6q8fMH7mhdwWfzXnl1k+GbpQDmi8l7DzLC5JTASKbwpY3TfxajAUzAXcv2NmsQ== -text-hex@1.0.x: - version "1.0.0" - resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5" - integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg== - text-table@0.2.0, text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" @@ -14588,11 +14624,6 @@ trim-right@^1.0.1: resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= -triple-beam@^1.2.0, triple-beam@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9" - integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw== - ts-invariant@^0.3.2: version "0.3.3" resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.3.3.tgz#b5742b1885ecf9e29c31a750307480f045ec0b16" @@ -14643,7 +14674,7 @@ ts-pnp@1.1.2, ts-pnp@^1.1.2: resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.1.2.tgz#be8e4bfce5d00f0f58e0666a82260c34a57af552" integrity sha512-f5Knjh7XCyRIzoC/z1Su1yLLRrPrFCgtUAh/9fCSP6NKbATwpOL1+idQVXQokK9GRFURn/jYPGPfegIctwunoA== -tslib@1.10.0, tslib@^1.0.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: +tslib@1.10.0, tslib@^1.0.0, tslib@^1.10.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: version "1.10.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== @@ -14734,11 +14765,31 @@ type-fest@^0.3.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" integrity sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== +type-fest@^0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.5.2.tgz#d6ef42a0356c6cd45f49485c3b6281fc148e48a2" + integrity sha512-DWkS49EQKVX//Tbupb9TFa19c7+MK1XmzkrZUR8TAktmE/DizXoaoJV6TZ/tSIPXipqNiRI6CyAe7x69Jb6RSw== + type-fest@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== +type-graphql@^0.17.5: + version "0.17.5" + resolved "https://registry.yarnpkg.com/type-graphql/-/type-graphql-0.17.5.tgz#7f2f189ff7b9faef33537291ef333ff9adbee21c" + integrity sha512-wscr63K0j9UKcX/nBTySamLd7nMZeYKmADk8A9sVmcPh+clNJUAw96784dg2VZn/sUdmN1y2AeKzmTjCfVB5sA== + dependencies: + "@types/glob" "^7.1.1" + "@types/node" "^12.6.2" + "@types/semver" "^6.0.1" + class-validator ">=0.9.1" + glob "^7.1.4" + graphql-query-complexity "^0.3.0" + graphql-subscriptions "^1.1.0" + semver "^6.2.0" + tslib "^1.10.0" + type-is@^1.6.16, type-is@~1.6.17, type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" @@ -14777,7 +14828,7 @@ typeorm@0.2.18, typeorm@^0.2.17: yargonaut "^1.1.2" yargs "^13.2.1" -typescript@3.5.3, typescript@^3.2.2: +typescript@3.5.3: version "3.5.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== @@ -14921,7 +14972,7 @@ unzip-response@^2.0.1: resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" integrity sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c= -upath@^1.1.0, upath@^1.1.1: +upath@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.2.tgz#3db658600edaeeccbe6db5e684d67ee8c2acd068" integrity sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q== @@ -15087,6 +15138,11 @@ validate-npm-package-name@^3.0.0: dependencies: builtins "^1.0.3" +validator@11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/validator/-/validator-11.1.0.tgz#ac18cac42e0aa5902b603d7a5d9b7827e2346ac4" + integrity sha512-qiQ5ktdO7CD6C/5/mYV4jku/7qnqzjrxb3C/Q5wR3vGGinHTgJZN/TdFT3ZX4vXhX2R1PXx42fB1cn5W+uJ4lg== + value-equal@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-0.4.0.tgz#c5bdd2f54ee093c04839d71ce2e4758a6890abc7" @@ -15361,29 +15417,6 @@ windows-release@^3.1.0: dependencies: execa "^1.0.0" -winston-transport@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.3.0.tgz#df68c0c202482c448d9b47313c07304c2d7c2c66" - integrity sha512-B2wPuwUi3vhzn/51Uukcao4dIduEiPOcOt9HJ3QeaXgkJ5Z7UwpBzxS4ZGNHtrxrUvTwemsQiSys0ihOf8Mp1A== - dependencies: - readable-stream "^2.3.6" - triple-beam "^1.2.0" - -winston@3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/winston/-/winston-3.2.1.tgz#63061377976c73584028be2490a1846055f77f07" - integrity sha512-zU6vgnS9dAWCEKg/QYigd6cgMVVNwyTzKs81XZtTFuRwJOcDdBg7AU0mXVyNbs7O5RH2zdv+BdNZUlx7mXPuOw== - dependencies: - async "^2.6.1" - diagnostics "^1.1.1" - is-stream "^1.1.0" - logform "^2.1.1" - one-time "0.0.4" - readable-stream "^3.1.1" - stack-trace "0.0.x" - triple-beam "^1.3.0" - winston-transport "^4.3.0" - wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" @@ -15559,7 +15592,7 @@ wrap-ansi@^3.0.1: string-width "^2.1.1" strip-ansi "^4.0.0" -wrap-ansi@^5.1.0: +wrap-ansi@^5.0.0, wrap-ansi@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== From e751c1dc32cb750845424862a46c503d59ccfed0 Mon Sep 17 00:00:00 2001 From: Nick Bolles Date: Wed, 4 Sep 2019 20:07:27 +0000 Subject: [PATCH 4/6] Revert "feat(graphql-api): generate interface types" This reverts commit b6f2707aa127850447a4936bc9a9497d09e9cd63. --- packages/graphql-api/codegen.yml | 8 +- packages/graphql-api/package.json | 18 +- packages/graphql-api/src/type-graphql.ts | 284 +++----- packages/graphql-api/tsconfig.json | 1 - yarn.lock | 787 +++++++++++------------ 5 files changed, 493 insertions(+), 605 deletions(-) diff --git a/packages/graphql-api/codegen.yml b/packages/graphql-api/codegen.yml index 618d5378c..9e54d5b3f 100644 --- a/packages/graphql-api/codegen.yml +++ b/packages/graphql-api/codegen.yml @@ -13,10 +13,10 @@ generates: ./src/type-graphql.ts: config: noNamespaces: true - declarationType: - type: "abstract class" - decoratorName: - type: "InterfaceType" +# declarationType: +# type: "abstract class" +# decoratorName: +# type: "InterfaceType" plugins: - add: /* tslint:disable */ - typescript-type-graphql \ No newline at end of file diff --git a/packages/graphql-api/package.json b/packages/graphql-api/package.json index f553a94ff..ae7b5bd60 100644 --- a/packages/graphql-api/package.json +++ b/packages/graphql-api/package.json @@ -33,12 +33,12 @@ "@accounts/types": "^0.19.0", "@gql2ts/from-schema": "1.10.1", "@gql2ts/types": "1.9.0", - "@graphql-codegen/add": "^1.7.0", - "@graphql-codegen/cli": "^1.7.0", - "@graphql-codegen/typescript": "^1.7.0", - "@graphql-codegen/typescript-operations": "^1.7.0", - "@graphql-codegen/typescript-resolvers": "^1.7.0", - "@graphql-codegen/typescript-type-graphql": "^1.7.0", + "@graphql-codegen/add": "^1.6.1", + "@graphql-codegen/cli": "^1.6.1", + "@graphql-codegen/typescript": "^1.6.1", + "@graphql-codegen/typescript-operations": "^1.6.1", + "@graphql-codegen/typescript-resolvers": "^1.6.1", + "@graphql-codegen/typescript-type-graphql": "^1.6.1", "@graphql-modules/core": "0.7.10", "@types/jest": "24.0.18", "@types/request-ip": "0.0.34", @@ -48,8 +48,7 @@ "jest": "24.9.0", "lodash": "4.17.15", "nock": "10.0.6", - "ts-node": "8.3.0", - "type-graphql": "^0.17.5" + "ts-node": "8.3.0" }, "peerDependencies": { "@accounts/password": "^0.9.3", @@ -63,8 +62,5 @@ "graphql-toolkit": "^0.5.10", "request-ip": "2.1.3", "tslib": "1.10.0" - }, - "optionalDependencies": { - "type-graphql": "^0.17.5" } } diff --git a/packages/graphql-api/src/type-graphql.ts b/packages/graphql-api/src/type-graphql.ts index a65ea5c00..043251908 100644 --- a/packages/graphql-api/src/type-graphql.ts +++ b/packages/graphql-api/src/type-graphql.ts @@ -11,72 +11,33 @@ export type Scalars = { Float: number; }; -@TypeGraphQL.InterfaceType() -export class User { - __typename?: 'User'; - - @TypeGraphQL.Field(type => TypeGraphQL.ID) - id!: Scalars['ID']; - - @TypeGraphQL.Field(type => [EmailRecord], { nullable: true }) - emails!: Maybe>; - - @TypeGraphQL.Field(type => String, { nullable: true }) - username!: Maybe; -} - -@TypeGraphQL.InterfaceType() -export class TwoFactorSecretKey { - __typename?: 'TwoFactorSecretKey'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - ascii!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - base32!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - hex!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - qr_code_ascii!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - qr_code_hex!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - qr_code_base32!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - google_auth_qr!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - otpauth_url!: Maybe; -} - -@TypeGraphQL.InterfaceType() -export class Tokens { - __typename?: 'Tokens'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - refreshToken!: Maybe; +export type AuthenticateParamsInput = { + access_token?: Maybe; + access_token_secret?: Maybe; + provider?: Maybe; + password?: Maybe; + user?: Maybe; + code?: Maybe; +}; - @TypeGraphQL.Field(type => String, { nullable: true }) - accessToken!: Maybe; -} +export type CreateUserInput = { + username?: Maybe; + email?: Maybe; + password?: Maybe; +}; -@TypeGraphQL.InterfaceType() -export class LoginResult { - __typename?: 'LoginResult'; +@TypeGraphQL.ObjectType() +export class EmailRecord { + __typename?: 'EmailRecord'; @TypeGraphQL.Field(type => String, { nullable: true }) - sessionId!: Maybe; + address!: Maybe; - @TypeGraphQL.Field(type => Tokens, { nullable: true }) - tokens!: Maybe; + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + verified!: Maybe; } -@TypeGraphQL.InterfaceType() +@TypeGraphQL.ObjectType() export class ImpersonateReturn { __typename?: 'ImpersonateReturn'; @@ -90,48 +51,15 @@ export class ImpersonateReturn { user!: Maybe; } -@TypeGraphQL.InterfaceType() -export class EmailRecord { - __typename?: 'EmailRecord'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - address!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - verified!: Maybe; -} - -@TypeGraphQL.InputType() -export class AuthenticateParamsInput { - @TypeGraphQL.Field(type => String, { nullable: true }) - access_token!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - access_token_secret!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - provider!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - password!: Maybe; - - @TypeGraphQL.Field(type => UserInput, { nullable: true }) - user!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - code!: Maybe; -} - -@TypeGraphQL.InputType() -export class CreateUserInput { - @TypeGraphQL.Field(type => String, { nullable: true }) - username!: Maybe; +@TypeGraphQL.ObjectType() +export class LoginResult { + __typename?: 'LoginResult'; @TypeGraphQL.Field(type => String, { nullable: true }) - email!: Maybe; + sessionId!: Maybe; - @TypeGraphQL.Field(type => String, { nullable: true }) - password!: Maybe; + @TypeGraphQL.Field(type => Tokens, { nullable: true }) + tokens!: Maybe; } export class Mutation { @@ -174,89 +102,55 @@ export class Mutation { authenticate!: Maybe; } -@TypeGraphQL.ArgsType() -export class MutationCreateUserArgs { - @TypeGraphQL.Field(type => CreateUserInput) - user!: FixDecorator; -} - -@TypeGraphQL.ArgsType() -export class MutationVerifyEmailArgs { - @TypeGraphQL.Field(type => String) - token!: Scalars['String']; -} - -@TypeGraphQL.ArgsType() -export class MutationResetPasswordArgs { - @TypeGraphQL.Field(type => String) - token!: Scalars['String']; - - @TypeGraphQL.Field(type => String) - newPassword!: Scalars['String']; -} - -@TypeGraphQL.ArgsType() -export class MutationSendVerificationEmailArgs { - @TypeGraphQL.Field(type => String) - email!: Scalars['String']; -} - -@TypeGraphQL.ArgsType() -export class MutationSendResetPasswordEmailArgs { - @TypeGraphQL.Field(type => String) - email!: Scalars['String']; -} - -@TypeGraphQL.ArgsType() -export class MutationChangePasswordArgs { - @TypeGraphQL.Field(type => String) - oldPassword!: Scalars['String']; +export type MutationCreateUserArgs = { + user: CreateUserInput; +}; - @TypeGraphQL.Field(type => String) - newPassword!: Scalars['String']; -} +export type MutationVerifyEmailArgs = { + token: Scalars['String']; +}; -@TypeGraphQL.ArgsType() -export class MutationTwoFactorSetArgs { - @TypeGraphQL.Field(type => TwoFactorSecretKeyInput) - secret!: FixDecorator; +export type MutationResetPasswordArgs = { + token: Scalars['String']; + newPassword: Scalars['String']; +}; - @TypeGraphQL.Field(type => String) - code!: Scalars['String']; -} +export type MutationSendVerificationEmailArgs = { + email: Scalars['String']; +}; -@TypeGraphQL.ArgsType() -export class MutationTwoFactorUnsetArgs { - @TypeGraphQL.Field(type => String) - code!: Scalars['String']; -} +export type MutationSendResetPasswordEmailArgs = { + email: Scalars['String']; +}; -@TypeGraphQL.ArgsType() -export class MutationImpersonateArgs { - @TypeGraphQL.Field(type => String) - accessToken!: Scalars['String']; +export type MutationChangePasswordArgs = { + oldPassword: Scalars['String']; + newPassword: Scalars['String']; +}; - @TypeGraphQL.Field(type => String) - username!: Scalars['String']; -} +export type MutationTwoFactorSetArgs = { + secret: TwoFactorSecretKeyInput; + code: Scalars['String']; +}; -@TypeGraphQL.ArgsType() -export class MutationRefreshTokensArgs { - @TypeGraphQL.Field(type => String) - accessToken!: Scalars['String']; +export type MutationTwoFactorUnsetArgs = { + code: Scalars['String']; +}; - @TypeGraphQL.Field(type => String) - refreshToken!: Scalars['String']; -} +export type MutationImpersonateArgs = { + accessToken: Scalars['String']; + username: Scalars['String']; +}; -@TypeGraphQL.ArgsType() -export class MutationAuthenticateArgs { - @TypeGraphQL.Field(type => String) - serviceName!: Scalars['String']; +export type MutationRefreshTokensArgs = { + accessToken: Scalars['String']; + refreshToken: Scalars['String']; +}; - @TypeGraphQL.Field(type => AuthenticateParamsInput) - params!: FixDecorator; -} +export type MutationAuthenticateArgs = { + serviceName: Scalars['String']; + params: AuthenticateParamsInput; +}; export class Query { __typename?: 'Query'; @@ -268,8 +162,21 @@ export class Query { getUser!: Maybe; } -@TypeGraphQL.InputType() -export class TwoFactorSecretKeyInput { +@TypeGraphQL.ObjectType() +export class Tokens { + __typename?: 'Tokens'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + refreshToken!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + accessToken!: Maybe; +} + +@TypeGraphQL.ObjectType() +export class TwoFactorSecretKey { + __typename?: 'TwoFactorSecretKey'; + @TypeGraphQL.Field(type => String, { nullable: true }) ascii!: Maybe; @@ -295,14 +202,33 @@ export class TwoFactorSecretKeyInput { otpauth_url!: Maybe; } -@TypeGraphQL.InputType() -export class UserInput { - @TypeGraphQL.Field(type => TypeGraphQL.ID, { nullable: true }) - id!: Maybe; +export type TwoFactorSecretKeyInput = { + ascii?: Maybe; + base32?: Maybe; + hex?: Maybe; + qr_code_ascii?: Maybe; + qr_code_hex?: Maybe; + qr_code_base32?: Maybe; + google_auth_qr?: Maybe; + otpauth_url?: Maybe; +}; - @TypeGraphQL.Field(type => String, { nullable: true }) - email!: Maybe; +@TypeGraphQL.ObjectType() +export class User { + __typename?: 'User'; + + @TypeGraphQL.Field(type => TypeGraphQL.ID) + id!: Scalars['ID']; + + @TypeGraphQL.Field(type => [EmailRecord], { nullable: true }) + emails!: Maybe>; @TypeGraphQL.Field(type => String, { nullable: true }) username!: Maybe; } + +export type UserInput = { + id?: Maybe; + email?: Maybe; + username?: Maybe; +}; diff --git a/packages/graphql-api/tsconfig.json b/packages/graphql-api/tsconfig.json index 512450c8e..5844cf062 100644 --- a/packages/graphql-api/tsconfig.json +++ b/packages/graphql-api/tsconfig.json @@ -5,7 +5,6 @@ "outDir": "./lib", "noUnusedParameters": false, "noUnusedLocals": false, - "noImplicitAny": false, "experimentalDecorators": true, "importHelpers": true }, diff --git a/yarn.lock b/yarn.lock index 61126fb57..8e42018b4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -253,7 +253,7 @@ esutils "^2.0.2" js-tokens "^4.0.0" -"@babel/parser@7.5.5", "@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.4.3", "@babel/parser@^7.4.4", "@babel/parser@^7.5.5": +"@babel/parser@^7.0.0", "@babel/parser@^7.1.0", "@babel/parser@^7.2.0", "@babel/parser@^7.4.3", "@babel/parser@^7.4.4", "@babel/parser@^7.5.5": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.5.5.tgz#02f077ac8817d3df4a832ef59de67565e71cca4b" integrity sha512-E5BN68cqR7dhKan1SfqgPGhQ178bkVKpXTPEXnFJBrEt8/DKRZlybmy+IgYLTeN7tp1R5Ccmbm2rBk17sHYU3g== @@ -792,7 +792,7 @@ "@babel/parser" "^7.4.4" "@babel/types" "^7.4.4" -"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.4.3", "@babel/traverse@^7.4.4", "@babel/traverse@^7.5.5": +"@babel/traverse@^7.0.0", "@babel/traverse@^7.1.0", "@babel/traverse@^7.1.6", "@babel/traverse@^7.4.3", "@babel/traverse@^7.4.4", "@babel/traverse@^7.5.5": version "7.5.5" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.5.5.tgz#f664f8f368ed32988cd648da9f72d5ca70f165bb" integrity sha512-MqB0782whsfffYfSjH4TM+LMjrJnhCNEDMDIjeTpl+ASaUvxcjoiVCo/sM1GhS1pHOXYfWVCYneLjMckuUxDaQ== @@ -942,127 +942,6 @@ resolved "https://registry.yarnpkg.com/@gql2ts/util/-/util-1.9.0.tgz#d07a54832757d2f2d1fc9891e5b0e3e3b4886c6a" integrity sha512-mkHar7AdyShUFJE6Mlke1tUbb+lPCK1EozZeAhCuRrhQ5aCCBAG6RxzNUYX1Q2jeGeyU0WRAtQu1oE/GoIsNXA== -"@graphql-codegen/add@^1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/add/-/add-1.7.0.tgz#8969e51913c4013e2ab098205184f38ca517cf7e" - integrity sha512-sk561sxOurcPTUS864pXDEh0sh/E5t0BRWPEdbSIcQ80Ia6WrwA6tuZfs59rkMlw99fpDTOGwjOHzqprZ9DzwQ== - dependencies: - "@graphql-codegen/plugin-helpers" "1.7.0" - tslib "1.10.0" - -"@graphql-codegen/cli@^1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/cli/-/cli-1.7.0.tgz#aade52f5c265450258e8fe0e45dc91268e8939a8" - integrity sha512-glrk7A7vzazF8mfR3fUL7baorjxL9w3hFqPmLMp9uEMXyIP3Z0MrRacbDkFzeYXcGsm7K4k+ZK5Og2g8shVCuA== - dependencies: - "@babel/parser" "7.5.5" - "@graphql-codegen/core" "1.7.0" - "@graphql-codegen/plugin-helpers" "1.7.0" - "@types/debounce" "1.2.0" - "@types/is-glob" "4.0.1" - "@types/mkdirp" "0.5.2" - "@types/valid-url" "1.0.2" - babel-types "7.0.0-beta.3" - chalk "2.4.2" - change-case "3.1.0" - chokidar "3.0.2" - commander "3.0.1" - common-tags "1.8.0" - debounce "1.2.0" - detect-indent "6.0.0" - glob "7.1.4" - graphql-config "2.2.1" - graphql-import "0.7.1" - graphql-tag-pluck "0.8.4" - graphql-toolkit "0.5.11" - graphql-tools "4.0.5" - indent-string "4.0.0" - inquirer "7.0.0" - is-glob "4.0.1" - is-valid-path "0.1.1" - js-yaml "3.13.1" - json-to-pretty-yaml "1.2.2" - listr "0.14.3" - listr-update-renderer "0.5.0" - log-symbols "3.0.0" - log-update "3.2.0" - mkdirp "0.5.1" - prettier "1.18.2" - request "2.88.0" - ts-log "2.1.4" - tslib "1.10.0" - valid-url "1.0.9" - -"@graphql-codegen/core@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/core/-/core-1.7.0.tgz#fdad4d3ea9de998f9effd0df492ac3c4c2633bbc" - integrity sha512-NghsdPhI4eqjOJvzC2f8sHPJL7vx4hMTXeg2U90YWtv07lQoxefsJwi4UND6dyALUoH5MdgMyxJl6LM9mYzOVA== - dependencies: - "@graphql-codegen/plugin-helpers" "1.7.0" - graphql-toolkit "0.5.11" - tslib "1.10.0" - -"@graphql-codegen/plugin-helpers@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/plugin-helpers/-/plugin-helpers-1.7.0.tgz#b1870a166cf34b2c67c053f2a9ec77823f78ac2d" - integrity sha512-lUWd5A9BQNbPqlMr38Gh5sLsBgMnn26n90/hyTw2J7CFCKFKSMnNBjxfCZU5AFHGxwi6rsNEpwBHRBx3OVWsTA== - dependencies: - change-case "3.1.0" - common-tags "1.8.0" - import-from "3.0.0" - tslib "1.10.0" - -"@graphql-codegen/typescript-operations@^1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-operations/-/typescript-operations-1.7.0.tgz#e57c6f7bc4ce34d47432a1cbb67348d7690bda1c" - integrity sha512-x6WjtTKoVQmR2sAupmDZHQj3TDE1WRrMWhrQiMQwfJmsTuTdzmbUF5DtAN1Lubs4tGoUCBx0+tzlUIzn6WfGZw== - dependencies: - "@graphql-codegen/plugin-helpers" "1.7.0" - "@graphql-codegen/typescript" "1.7.0" - "@graphql-codegen/visitor-plugin-common" "1.7.0" - tslib "1.10.0" - -"@graphql-codegen/typescript-resolvers@^1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-resolvers/-/typescript-resolvers-1.7.0.tgz#4e86c9c7be211b7054039497e302f9bc4c0b750f" - integrity sha512-vsI5Osmm2m9fknu7lcaGtYYURhVPJECg07DxMtkA0T56a4EzzY6rcS2BEOimuM0xmRSug8IORquzRWKF1lUcIA== - dependencies: - "@graphql-codegen/plugin-helpers" "1.7.0" - "@graphql-codegen/typescript" "1.7.0" - "@graphql-codegen/visitor-plugin-common" "1.7.0" - tslib "1.10.0" - -"@graphql-codegen/typescript-type-graphql@^1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript-type-graphql/-/typescript-type-graphql-1.7.0.tgz#1da5de02b1a97168c62792676b8552cce0f031e4" - integrity sha512-abXVs5fLS8f25GT0yyZK4ADYEqoujjoPDqZ68AMneaQLboqngcirgUVrhBzm9UqXpnSsjIM6fJyC13VYWsTVmw== - dependencies: - "@graphql-codegen/plugin-helpers" "1.7.0" - "@graphql-codegen/typescript" "1.7.0" - "@graphql-codegen/visitor-plugin-common" "1.7.0" - tslib "1.10.0" - -"@graphql-codegen/typescript@1.7.0", "@graphql-codegen/typescript@^1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/typescript/-/typescript-1.7.0.tgz#8c8830f4e6ac9cb001ac26427ff7efeb122949d7" - integrity sha512-SxRSUfcuBG1HW2mEyjDZ7mKBITj/DGa1zjTnZIG8yAPpaIZ3+3toXOLqo2hh+pniMWnDzk19BFB2PImTUenDQQ== - dependencies: - "@graphql-codegen/plugin-helpers" "1.7.0" - "@graphql-codegen/visitor-plugin-common" "1.7.0" - auto-bind "2.0.0" - tslib "1.10.0" - -"@graphql-codegen/visitor-plugin-common@1.7.0": - version "1.7.0" - resolved "https://registry.yarnpkg.com/@graphql-codegen/visitor-plugin-common/-/visitor-plugin-common-1.7.0.tgz#ed71e9131685e586fe3e2d2d194c4635ae0ab358" - integrity sha512-oNSlJA9yjHwhkN/HhEn2GhHsSuSGeTuMvYVYeshc76Kx5+8CACcvIBpKwCdpNEO9os6E0ohpQg3Zg+yJG+14ug== - dependencies: - "@graphql-codegen/plugin-helpers" "1.7.0" - auto-bind "2.0.0" - dependency-graph "0.8.0" - graphql-tag "2.10.1" - tslib "1.10.0" - "@graphql-modules/core@0.7.10": version "0.7.10" resolved "https://registry.yarnpkg.com/@graphql-modules/core/-/core-0.7.10.tgz#892ded63656acbc3b2601032cf607f7b87a99688" @@ -2281,6 +2160,11 @@ dependencies: "@types/node" "*" +"@types/babel-types@*": + version "7.0.7" + resolved "https://registry.yarnpkg.com/@types/babel-types/-/babel-types-7.0.7.tgz#667eb1640e8039436028055737d2b9986ee336e3" + integrity sha512-dBtBbrc+qTHy1WdfHYjBwRln4+LWqASWakLHsWHR2NWHIFkv4W3O070IGoGLEBrJBvct3r0L1BUPuvURi7kYUQ== + "@types/babel__core@^7.1.0": version "7.1.2" resolved "https://registry.yarnpkg.com/@types/babel__core/-/babel__core-7.1.2.tgz#608c74f55928033fce18b99b213c16be4b3d114f" @@ -2314,6 +2198,13 @@ dependencies: "@babel/types" "^7.3.0" +"@types/babylon@6.16.5": + version "6.16.5" + resolved "https://registry.yarnpkg.com/@types/babylon/-/babylon-6.16.5.tgz#1c5641db69eb8cdf378edd25b4be7754beeb48b4" + integrity sha512-xH2e58elpj1X4ynnKp9qSnWlsRTIs6n3tgLGNfwAGHwePw0mulHQllV34n0T25uYSu1k0hRKkWXF890B1yS47w== + dependencies: + "@types/babel-types" "*" + "@types/bcryptjs@2.4.2": version "2.4.2" resolved "https://registry.yarnpkg.com/@types/bcryptjs/-/bcryptjs-2.4.2.tgz#e3530eac9dd136bfdfb0e43df2c4c5ce1f77dfae" @@ -2368,11 +2259,6 @@ dependencies: "@types/express" "*" -"@types/debounce@1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@types/debounce/-/debounce-1.2.0.tgz#9ee99259f41018c640b3929e1bb32c3dcecdb192" - integrity sha512-bWG5wapaWgbss9E238T0R6bfo5Fh3OkeoSt245CM7JJwVwpw6MEBCbIxLq5z8KzsE3uJhzcIuQkyiZmzV3M/Dw== - "@types/eslint-visitor-keys@^1.0.0": version "1.0.0" resolved "https://registry.yarnpkg.com/@types/eslint-visitor-keys/-/eslint-visitor-keys-1.0.0.tgz#1ee30d79544ca84d68d4b3cdb0af4f205663dd2d" @@ -2451,10 +2337,10 @@ dependencies: "@types/node" "*" -"@types/is-glob@4.0.1": - version "4.0.1" - resolved "https://registry.yarnpkg.com/@types/is-glob/-/is-glob-4.0.1.tgz#a93eec1714172c8eb3225a1cc5eb88c2477b7d00" - integrity sha512-k3RS5HyBPu4h+5hTmIEfPB2rl5P3LnGdQEZrV2b9OWTJVtsUQ2VBcedqYKGqxvZqle5UALUXdSfVA8nf3HfyWQ== +"@types/is-glob@4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@types/is-glob/-/is-glob-4.0.0.tgz#fb8a2bff539025d4dcd6d5efe7689e03341b876d" + integrity sha512-zC/2EmD8scdsGIeE+Xg7kP7oi9VP90zgMQtm9Cr25av4V+a+k8slQyiT60qSw8KORYrOKlPXfHwoa1bQbRzskQ== "@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0": version "2.0.1" @@ -2549,13 +2435,6 @@ resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-3.0.3.tgz#3dca0e3f33b200fc7d1139c0cd96c1268cadfd9d" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== -"@types/mkdirp@0.5.2": - version "0.5.2" - resolved "https://registry.yarnpkg.com/@types/mkdirp/-/mkdirp-0.5.2.tgz#503aacfe5cc2703d5484326b1b27efa67a339c1f" - integrity sha512-U5icWpv7YnZYGsN4/cmh3WD2onMY0aJIiTE6+51TwJCttdHvtCYmkBNOobHlXwrJRL0nkH9jH4kD+1FAdMN4Tg== - dependencies: - "@types/node" "*" - "@types/mongodb@*", "@types/mongodb@3.3.1": version "3.3.1" resolved "https://registry.yarnpkg.com/@types/mongodb/-/mongodb-3.3.1.tgz#9569ffcb356fbb5313ae2d3afa88c230bf8cf0d1" @@ -2579,21 +2458,11 @@ dependencies: "@types/node" "*" -"@types/node@*", "@types/node@12.7.2", "@types/node@>=6": +"@types/node@*", "@types/node@12.7.2", "@types/node@>=6", "@types/node@^10.1.0": version "12.7.2" resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.2.tgz#c4e63af5e8823ce9cc3f0b34f7b998c2171f0c44" integrity sha512-dyYO+f6ihZEtNPDcWNR1fkoTDf3zAK3lAABDze3mz6POyIercH0lEUawUFXlG8xaQZmm1yEBON/4TsYv/laDYg== -"@types/node@^10.1.0": - version "10.14.17" - resolved "https://registry.yarnpkg.com/@types/node/-/node-10.14.17.tgz#b96d4dd3e427382482848948041d3754d40fd5ce" - integrity sha512-p/sGgiPaathCfOtqu2fx5Mu1bcjuP8ALFg4xpGgNkcin7LwRyzUKniEHBKdcE1RPsenq5JVPIpMTJSygLboygQ== - -"@types/node@^12.6.2": - version "12.7.4" - resolved "https://registry.yarnpkg.com/@types/node/-/node-12.7.4.tgz#64db61e0359eb5a8d99b55e05c729f130a678b04" - integrity sha512-W0+n1Y+gK/8G2P/piTkBBN38Qc5Q1ZSO6B5H3QmPCUewaiXOo2GCAWZ4ElZCcNhjJuBSUSLGFUJnmlCn5+nxOQ== - "@types/normalize-package-data@^2.4.0": version "2.4.0" resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz#e486d0d97396d79beedd0a6e33f4534ff6b4973e" @@ -2606,6 +2475,11 @@ dependencies: "@types/node" "*" +"@types/prettier@1.16.1": + version "1.16.1" + resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-1.16.1.tgz#328d1c9b54402e44119398bcb6a31b7bbd606d59" + integrity sha512-db6pZL5QY3JrlCHBhYQzYDci0xnoDuxfseUuguLRr3JNk+bnCfpkK6p8quiUDyO8A0vbpBKkk59Fw125etrNeA== + "@types/prop-types@*": version "15.7.1" resolved "https://registry.yarnpkg.com/@types/prop-types/-/prop-types-15.7.1.tgz#f1a11e7babb0c3cad68100be381d1e064c68f1f6" @@ -2692,11 +2566,6 @@ "@types/tough-cookie" "*" form-data "^2.5.0" -"@types/semver@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-6.0.1.tgz#a984b405c702fa5a7ec6abc56b37f2ba35ef5af6" - integrity sha512-ffCdcrEE5h8DqVxinQjo+2d1q+FV5z7iNtPofw3JsrltSoSVlOGaW0rY8XxtO9XukdTn8TaCGWmk2VFGhI70mg== - "@types/serve-static@*": version "1.13.3" resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.3.tgz#eb7e1c41c4468272557e897e9171ded5e2ded9d1" @@ -2730,11 +2599,6 @@ resolved "https://registry.yarnpkg.com/@types/valid-url/-/valid-url-1.0.2.tgz#60fa435ce24bfd5ba107b8d2a80796aeaf3a8f45" integrity sha1-YPpDXOJL/VuhB7jSqAeWrq86j0U= -"@types/validator@10.11.2": - version "10.11.2" - resolved "https://registry.yarnpkg.com/@types/validator/-/validator-10.11.2.tgz#48b60ca2cca927081f37a1ad1de3e25d04abc9f0" - integrity sha512-k/ju1RsdP5ACFUWebqsyEy0avP5uNJCs2p3pmTHzOZdd4gMSAJTq7iUEHFY3tt3emBrPTm6oGvfZ4SzcqOgLPQ== - "@types/ws@^6.0.0": version "6.0.3" resolved "https://registry.yarnpkg.com/@types/ws/-/ws-6.0.3.tgz#b772375ba59d79066561c8d87500144d674ba6b3" @@ -3078,6 +2942,14 @@ agentkeepalive@^3.4.1: dependencies: humanize-ms "^1.2.1" +aggregate-error@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-2.1.0.tgz#051a9a733ad2e95ab503d84fb81989e6419b8f09" + integrity sha512-rIZJqC4XACGWwmPpi18IhDjIzXTJ93KQwYHXuyMCa0Ak9mtzLIbykuei+0i5EnGDy6ts8JVnSyRnZc2cVIMvVg== + dependencies: + clean-stack "^2.0.0" + indent-string "^3.0.0" + aggregate-error@3.0.0, aggregate-error@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.0.0.tgz#5b5a3c95e9095f311c9ab16c19fb4f3527cd3f79" @@ -3133,13 +3005,6 @@ ansi-escapes@^3.0.0, ansi-escapes@^3.2.0: resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b" integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ== -ansi-escapes@^4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.2.1.tgz#4dccdb846c3eee10f6d64dea66273eab90c37228" - integrity sha512-Cg3ymMAdN10wOk/VYfLV7KCQyv7EDirJ64500sU7n9UlmioEtDuU5Gd+hj73hXSU/ex7tHJSssmyftDdkMLO8Q== - dependencies: - type-fest "^0.5.2" - ansi-html@0.0.7: version "0.0.7" resolved "https://registry.yarnpkg.com/ansi-html/-/ansi-html-0.0.7.tgz#813584021962a9e9e6fd039f940d12f56ca7859e" @@ -3190,14 +3055,6 @@ anymatch@^2.0.0: micromatch "^3.1.4" normalize-path "^2.1.1" -anymatch@^3.0.1: - version "3.1.0" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.0.tgz#e609350e50a9313b472789b2f14ef35808ee14d6" - integrity sha512-Ozz7l4ixzI7Oxj2+cw+p0tVUt27BpaJ+1+q1TCeANWxHpvyn2+Un+YamBdfKu0uh8xLodGhoa1v7595NhKDAuA== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - apollo-boost@0.1.27: version "0.1.27" resolved "https://registry.yarnpkg.com/apollo-boost/-/apollo-boost-0.1.27.tgz#77cc796359503a330d5b31780043430afed47899" @@ -3718,6 +3575,13 @@ async@^1.5.2: resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo= +async@^2.6.1: + version "2.6.3" + resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff" + integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg== + dependencies: + lodash "^4.17.14" + asynckit@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" @@ -3738,11 +3602,6 @@ atob@^2.1.1: resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== -auto-bind@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/auto-bind/-/auto-bind-2.0.0.tgz#9a55a461b521f58daf955169203bed1a07a970a9" - integrity sha512-rvRBv0/O7iriUMqSzTDhAfyAD1vVnElAEruo5rMSFeYLA0iKDEzLPSJiwMnL86+IPpTlhfOIAzjoKZ9TaySYdA== - autoprefixer@^9.6.1: version "9.6.1" resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.6.1.tgz#51967a02d2d2300bb01866c1611ec8348d355a47" @@ -3936,6 +3795,11 @@ babel-types@7.0.0-beta.3: lodash "^4.2.0" to-fast-properties "^2.0.0" +babylon@7.0.0-beta.47: + version "7.0.0-beta.47" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-7.0.0-beta.47.tgz#6d1fa44f0abec41ab7c780481e62fd9aafbdea80" + integrity sha512-+rq2cr4GDhtToEzKFD6KZZMDBXhjFAr9JjPw9pAppZACeEWqNM294j+NdBzkSHYXwzzBmVjZ3nEVJlOhbR2gOQ== + babylon@^6.18.0: version "6.18.0" resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.18.0.tgz#af2f3b88fa6f5c1e4c634d1a0f8eac4f55b395e3" @@ -4006,11 +3870,6 @@ binary-extensions@^1.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65" integrity sha512-Un7MIEDdUC5gNpcGDV97op1Ywk748MpHcFTHoYs6qnj1Z3j7I53VG3nwZhKzoBZmbdRNnb6WRdFlwl7tSDuZGw== -binary-extensions@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.0.0.tgz#23c0df14f6a88077f5f986c0d167ec03c3d5537c" - integrity sha512-Phlt0plgpIIBOGTT/ehfFnbNlfsDEiqmzE2KRXoX1bLIlir4X/MR+zSyBEkL05ffWgnRSf/DXv+WrUAVr93/ow== - bluebird@3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/bluebird/-/bluebird-3.5.1.tgz#d9551f9de98f1fcda1e683d17ee91a0602ee2eb9" @@ -4096,7 +3955,7 @@ braces@^2.3.1, braces@^2.3.2: split-string "^3.0.2" to-regex "^3.0.1" -braces@^3.0.1, braces@^3.0.2: +braces@^3.0.1: version "3.0.2" resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== @@ -4514,20 +4373,24 @@ check-error@^1.0.2: resolved "https://registry.yarnpkg.com/check-error/-/check-error-1.0.2.tgz#574d312edd88bb5dd8912e9286dd6c0aed4aac82" integrity sha1-V00xLt2Iu13YkS6Sht1sCu1KrII= -chokidar@3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.0.2.tgz#0d1cd6d04eb2df0327446188cd13736a3367d681" - integrity sha512-c4PR2egjNjI1um6bamCQ6bUNPDiyofNQruHvKgHQ4gDUP/ITSVSzNsiI5OWtHOsX323i5ha/kk4YmOZ1Ktg7KA== +chokidar@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-2.1.2.tgz#9c23ea40b01638439e0513864d362aeacc5ad058" + integrity sha512-IwXUx0FXc5ibYmPC2XeEj5mpXoV66sR+t3jqu2NS2GYwCktt3KF1/Qqjws/NkegajBA4RbZ5+DDwlOiJsxDHEg== dependencies: - anymatch "^3.0.1" - braces "^3.0.2" - glob-parent "^5.0.0" - is-binary-path "^2.1.0" - is-glob "^4.0.1" + anymatch "^2.0.0" + async-each "^1.0.1" + braces "^2.3.2" + glob-parent "^3.1.0" + inherits "^2.0.3" + is-binary-path "^1.0.0" + is-glob "^4.0.0" normalize-path "^3.0.0" - readdirp "^3.1.1" + path-is-absolute "^1.0.0" + readdirp "^2.2.1" + upath "^1.1.0" optionalDependencies: - fsevents "^2.0.6" + fsevents "^1.2.7" chokidar@^2.0.0, chokidar@^2.0.2, chokidar@^2.0.4, chokidar@^2.1.5: version "2.1.8" @@ -4588,15 +4451,6 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -class-validator@>=0.9.1: - version "0.10.0" - resolved "https://registry.yarnpkg.com/class-validator/-/class-validator-0.10.0.tgz#5e5f8108fa200d5ce1906cd5537af102c072dbcd" - integrity sha512-RvjxRlvoCvM/ojUq11j78ISpReGdBoMErdmDk1e27aQZK6ppSXq751UE6jB9JI7ayEnL6Nnmllzn/HXVSu3dmg== - dependencies: - "@types/validator" "10.11.2" - google-libphonenumber "^3.1.6" - validator "11.1.0" - clean-css@4.2.x: version "4.2.1" resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-4.2.1.tgz#2d411ef76b8569b6d0c84068dabe85b0aa5e5c17" @@ -4621,13 +4475,6 @@ cli-cursor@^2.0.0, cli-cursor@^2.1.0: dependencies: restore-cursor "^2.0.0" -cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - cli-highlight@^2.0.0: version "2.1.1" resolved "https://registry.yarnpkg.com/cli-highlight/-/cli-highlight-2.1.1.tgz#2180223d51618b112f4509cf96e4a6c750b07e97" @@ -4768,6 +4615,14 @@ color-string@^1.5.2: color-name "^1.0.0" simple-swizzle "^0.2.2" +color@3.0.x: + version "3.0.0" + resolved "https://registry.yarnpkg.com/color/-/color-3.0.0.tgz#d920b4328d534a3ac8295d68f7bd4ba6c427be9a" + integrity sha512-jCpd5+s0s0t7p3pHQKpnJ0TpQKKdleP71LWcA0aqiljpiuAkOSUFN/dyH8ZwF0hRmFlrIuRhufds1QyEP9EB+w== + dependencies: + color-convert "^1.9.1" + color-string "^1.5.2" + color@^3.0.0: version "3.1.2" resolved "https://registry.yarnpkg.com/color/-/color-3.1.2.tgz#68148e7f85d41ad7649c5fa8c8106f098d229e10" @@ -4776,6 +4631,24 @@ color@^3.0.0: color-convert "^1.9.1" color-string "^1.5.2" +colornames@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/colornames/-/colornames-1.1.1.tgz#f8889030685c7c4ff9e2a559f5077eb76a816f96" + integrity sha1-+IiQMGhcfE/54qVZ9Qd+t2qBb5Y= + +colors@^1.2.1: + version "1.3.3" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.3.3.tgz#39e005d546afe01e01f9c4ca8fa50f686a01205d" + integrity sha512-mmGt/1pZqYRjMxB1axhTo16/snVZ5krrKkcmMeVKxzECMMXoCgnvTPp10QgHfcbQZw8Dq2jMNG6je4JlWU0gWg== + +colorspace@1.1.x: + version "1.1.2" + resolved "https://registry.yarnpkg.com/colorspace/-/colorspace-1.1.2.tgz#e0128950d082b86a2168580796a0aa5d6c68d8c5" + integrity sha512-vt+OoIP2d76xLhjwbBaucYlNSpPsrJWPlBTtwCpQKIu6/CSMutyzX93O/Do0qzpH3YoHEes8YEFXyZ797rEhzQ== + dependencies: + color "3.0.x" + text-hex "1.0.x" + columnify@^1.5.4: version "1.5.4" resolved "https://registry.yarnpkg.com/columnify/-/columnify-1.5.4.tgz#4737ddf1c7b69a8a7c340570782e947eec8e78bb" @@ -4796,21 +4669,16 @@ commander@2.17.x: resolved "https://registry.yarnpkg.com/commander/-/commander-2.17.1.tgz#bd77ab7de6de94205ceacc72f1716d29f20a77bf" integrity sha512-wPMUt6FnH2yzG95SA6mzjQOEKUU3aLaDEmzs1ti+1E9h+CsrZghRlqEM/EJ4KscsQVG8uNN4uVreUeT8+drlgg== -commander@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-3.0.1.tgz#4595aec3530525e671fb6f85fb173df8ff8bf57a" - integrity sha512-UNgvDd+csKdc9GD4zjtkHKQbT8Aspt2jCBqNSPp53vAS0L1tS9sXB2TCEOPHJ7kt9bN/niWkYj8T3RQSoMXdSQ== +commander@2.19.0, commander@~2.19.0: + version "2.19.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" + integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== commander@^2.11.0, commander@^2.12.1, commander@^2.20.0, commander@~2.20.0: version "2.20.0" resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.0.tgz#d58bb2b5c1ee8f87b0d340027e9e94e222c5a422" integrity sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ== -commander@~2.19.0: - version "2.19.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a" - integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg== - common-tags@1.8.0, common-tags@^1.8.0: version "1.8.0" resolved "https://registry.yarnpkg.com/common-tags/-/common-tags-1.8.0.tgz#8e3153e542d4a39e9b10554434afaaf98956a937" @@ -5538,11 +5406,6 @@ dateformat@^3.0.0: resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-3.0.3.tgz#a6e37499a4d9a9cf85ef5872044d62901c9889ae" integrity sha512-jyCETtSl3VMZMWeRo7iY1FL19ges1t55hMo5yaam4Jrsm5EPL89UQkoQRyiI+Yf4k8r2ZpdngkV8hr1lIdjb3Q== -debounce@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/debounce/-/debounce-1.2.0.tgz#44a540abc0ea9943018dc0eaa95cce87f65cd131" - integrity sha512-mYtLl1xfZLi1m4RtQYlZgJUNQjl4ZxVnHzIR8nLLgi4q1YT8o/WM+MK/f8yfcc9s5Ir5zRaPZyZU6xs1Syoocg== - debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.0, debug@^2.6.8, debug@^2.6.9: version "2.6.9" resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" @@ -5628,6 +5491,11 @@ deep-is@~0.1.3: resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" integrity sha1-s2nW+128E+7PUk+RsHD+7cNXzzQ= +deepmerge@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-3.2.0.tgz#58ef463a57c08d376547f8869fdc5bcee957f44e" + integrity sha512-6+LuZGU7QCNUnAJyX8cIrlzoEgggTM6B7mm+znKOX4t5ltluT9KLjN6g61ECMS0LTsLW7yDpNoxhix5FZcrIow== + deepmerge@4.0.0, deepmerge@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/deepmerge/-/deepmerge-4.0.0.tgz#3e3110ca29205f120d7cb064960a39c3d2087c09" @@ -5728,11 +5596,6 @@ depd@~2.0.0: resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== -dependency-graph@0.8.0: - version "0.8.0" - resolved "https://registry.yarnpkg.com/dependency-graph/-/dependency-graph-0.8.0.tgz#2da2d35ed852ecc24a5d6c17788ba57c3708755b" - integrity sha512-DCvzSq2UiMsuLnj/9AL484ummEgLtZIcRS7YvtO38QnpX3vqh9nJ8P+zhu8Ja+SmLrBHO2iDbva20jq38qvBkQ== - deprecated-decorator@^0.1.6: version "0.1.6" resolved "https://registry.yarnpkg.com/deprecated-decorator/-/deprecated-decorator-0.1.6.tgz#00966317b7a12fe92f3cc831f7583af329b86c37" @@ -5756,12 +5619,7 @@ destroy@~1.0.4: resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.0.4.tgz#978857442c44749e4206613e37946205826abd80" integrity sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA= -detect-indent@6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-6.0.0.tgz#0abd0f549f69fc6659a254fe96786186b6f528fd" - integrity sha512-oSyFlqaTHCItVRGK5RmrmjB+CmaMOW7IaNA/kdxqhoa6d17j/5ce9O9eWXmV/KEdRwqpQA+Vqe8a8Bsybu4YnA== - -detect-indent@^5.0.0: +detect-indent@5.0.0, detect-indent@^5.0.0: version "5.0.0" resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-5.0.0.tgz#3871cc0a6a002e8c3e5b3cf7f336264675f06b9d" integrity sha1-OHHMCmoALow+Wzz38zYmRnXwa50= @@ -5797,6 +5655,15 @@ dezalgo@^1.0.0: asap "^2.0.0" wrappy "1" +diagnostics@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/diagnostics/-/diagnostics-1.1.1.tgz#cab6ac33df70c9d9a727490ae43ac995a769b22a" + integrity sha512-8wn1PmdunLJ9Tqbx+Fx/ZEuHfJf4NKSN2ZBj7SJC/OWRWha843+WsTjqMe1B5E3p28jqBlp+mJ2fPVxPyNgYKQ== + dependencies: + colorspace "1.1.x" + enabled "1.0.x" + kuler "1.0.x" + dicer@0.3.0: version "0.3.0" resolved "https://registry.yarnpkg.com/dicer/-/dicer-0.3.0.tgz#eacd98b3bfbf92e8ab5c2fdb71aaac44bb06b872" @@ -6071,16 +5938,18 @@ emoji-regex@^7.0.1, emoji-regex@^7.0.2: resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - emojis-list@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389" integrity sha1-TapNnbAPmBmIDHn6RXrlsJof04k= +enabled@1.0.x: + version "1.0.2" + resolved "https://registry.yarnpkg.com/enabled/-/enabled-1.0.2.tgz#965f6513d2c2d1c5f4652b64a2e3396467fc2f93" + integrity sha1-ll9lE9LC0cX0ZStkouM5ZGf8L5M= + dependencies: + env-variable "0.0.x" + encodeurl@~1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" @@ -6124,6 +5993,11 @@ env-paths@^1.0.0: resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-1.0.0.tgz#4168133b42bb05c38a35b1ae4397c8298ab369e0" integrity sha1-QWgTO0K7BcOKNbGuQ5fIKYqzaeA= +env-variable@0.0.x: + version "0.0.5" + resolved "https://registry.yarnpkg.com/env-variable/-/env-variable-0.0.5.tgz#913dd830bef11e96a039c038d4130604eba37f88" + integrity sha512-zoB603vQReOFvTg5xMl9I1P2PnHsHQQKTEowsKKD7nseUfJq6UWzK+4YtlWUO1nhiQUxe6XMkk+JleSZD1NZFA== + err-code@^1.0.0: version "1.1.2" resolved "https://registry.yarnpkg.com/err-code/-/err-code-1.1.2.tgz#06e0116d3028f6aef4806849eb0ea6a748ae6960" @@ -6701,6 +6575,11 @@ fast-levenshtein@~2.0.4: resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" integrity sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc= +fast-safe-stringify@^2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.0.6.tgz#04b26106cc56681f51a044cfc0d76cf0008ac2c2" + integrity sha512-q8BZ89jjc+mz08rSxROs8VsrBBcn1SIw1kq9NjolL509tkABRk9io01RAjSaEv1Xb2uFLt8VtRiZbGp5H8iDtg== + fastq@^1.6.0: version "1.6.0" resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.6.0.tgz#4ec8a38f4ac25f21492673adb7eae9cfef47d1c2" @@ -6729,6 +6608,11 @@ fb-watchman@^2.0.0: dependencies: bser "^2.0.0" +fecha@^2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fecha/-/fecha-2.3.3.tgz#948e74157df1a32fd1b12c3a3c3cdcb6ec9d96cd" + integrity sha512-lUGBnIamTAwk4znq5BcqsDaxSmZ9nDVJaij6NvRt/Tg4R69gERA+otPKbS86ROw9nxVMw2/mp1fnaiWqbs6Sdg== + figgy-pudding@^3.4.1, figgy-pudding@^3.5.1: version "3.5.1" resolved "https://registry.yarnpkg.com/figgy-pudding/-/figgy-pudding-3.5.1.tgz#862470112901c727a0e495a80744bd5baa1d6790" @@ -6754,13 +6638,6 @@ figures@^2.0.0: dependencies: escape-string-regexp "^1.0.5" -figures@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-3.0.0.tgz#756275c964646163cc6f9197c7a0295dbfd04de9" - integrity sha512-HKri+WoWoUgr83pehn/SIgLOMZ9nAWC6dcGj26RY2R4F50u4+RTUz0RCrUlOV3nKRAICW1UGzyb+kcX2qK1S/g== - dependencies: - escape-string-regexp "^1.0.5" - file-entry-cache@^5.0.1: version "5.0.1" resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-5.0.1.tgz#ca0f6efa6dd3d561333fb14515065c2fafdf439c" @@ -7026,7 +6903,7 @@ fs.realpath@^1.0.0: resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= -fsevents@2.0.7, fsevents@^2.0.6: +fsevents@2.0.7: version "2.0.7" resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.0.7.tgz#382c9b443c6cbac4c57187cdda23aa3bf1ccfc2a" integrity sha512-a7YT0SV3RB+DjYcppwVDLtn13UQnmg0SWZS7ezZD0UjnLwXmy8Zm21GMVGLaFGimIqcvyMQaOJBrop8MyOp1kQ== @@ -7214,7 +7091,19 @@ glob-to-regexp@^0.3.0: resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" integrity sha1-jFoUlNIGbFcMw7/kSWF1rMTVAqs= -glob@7.1.4, glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: +glob@7.1.3: + version "7.1.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.3.tgz#3960832d3f1574108342dafd3a67b332c0969df1" + integrity sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^7.0.3, glob@^7.1.1, glob@^7.1.2, glob@^7.1.3, glob@^7.1.4: version "7.1.4" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== @@ -7306,11 +7195,6 @@ globby@^9.2.0: pify "^4.0.1" slash "^2.0.0" -google-libphonenumber@^3.1.6: - version "3.2.4" - resolved "https://registry.yarnpkg.com/google-libphonenumber/-/google-libphonenumber-3.2.4.tgz#91d3fe62ca531f154165e6580b1c55ff6bd53abf" - integrity sha512-gxUVpo/3+ZlUdbvE/u9E0VoKjimLhugw0pWD4I/j4cRF1jh+1wNzQXcCmf2mMa726ai39o5N7DcXCW3Shv0s3A== - got@^6.7.1: version "6.7.1" resolved "https://registry.yarnpkg.com/got/-/got-6.7.1.tgz#240cd05785a9a18e561dc1b44b41c763ef1e8db0" @@ -7342,6 +7226,99 @@ graphql-anywhere@^4.1.0-alpha.0: ts-invariant "^0.3.2" tslib "^1.9.3" +graphql-code-generator@0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/graphql-code-generator/-/graphql-code-generator-0.18.2.tgz#080d91f8b44d26d7c69069118ac9f775f3fd5971" + integrity sha512-9ifA5T6hM6qo3RVQz7oYld1R6XYyglT/TanYDoweVEX+6iLxgi0rvGFjFcQ45bPDgLyVkQ9LEsEJuL1YxFmrDw== + dependencies: + "@types/babylon" "6.16.5" + "@types/is-glob" "4.0.0" + "@types/prettier" "1.16.1" + "@types/valid-url" "1.0.2" + babel-types "7.0.0-beta.3" + babylon "7.0.0-beta.47" + chalk "2.4.2" + change-case "3.1.0" + chokidar "2.1.2" + commander "2.19.0" + common-tags "1.8.0" + detect-indent "5.0.0" + glob "7.1.3" + graphql-codegen-core "0.18.2" + graphql-config "2.2.1" + graphql-import "0.7.1" + graphql-tag-pluck "0.6.0" + graphql-toolkit "0.2.0" + graphql-tools "4.0.4" + indent-string "3.2.0" + inquirer "6.2.2" + is-glob "4.0.0" + is-valid-path "0.1.1" + js-yaml "3.13.1" + json-to-pretty-yaml "1.2.2" + listr "0.14.3" + listr-update-renderer "0.5.0" + log-symbols "2.2.0" + log-update "2.3.0" + mkdirp "0.5.1" + prettier "1.16.4" + request "2.88.0" + valid-url "1.0.9" + +graphql-codegen-add@0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/graphql-codegen-add/-/graphql-codegen-add-0.18.2.tgz#27625f6b6bcfe29076b5f8b02496425eeb360b46" + integrity sha512-X8i3WEjfI2YYS6giE3BZ0LlOlTnae2btuyjU1TAN7Cec+dOI5XzRz25cPRi6D1Y0++j2h480e60tgXwMORW9pA== + dependencies: + graphql-codegen-core "0.18.2" + +graphql-codegen-core@0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/graphql-codegen-core/-/graphql-codegen-core-0.18.2.tgz#205b25d2bdb20a35b986495b60d219a8d02ef266" + integrity sha512-fjfIUrDx0KDdr/jYjUs51+07DvcEc5w9tdid/bNezNzT2iJLtmnnmYLR62an3/PKUnKSOAIKLYxFIBOzsFJH9A== + dependencies: + chalk "2.4.2" + change-case "3.1.0" + common-tags "1.8.0" + graphql-tag "2.10.1" + graphql-toolkit "0.2.0" + graphql-tools "4.0.4" + ts-log "2.1.4" + winston "3.2.1" + +graphql-codegen-plugin-helpers@0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/graphql-codegen-plugin-helpers/-/graphql-codegen-plugin-helpers-0.18.2.tgz#ce03d02ced0bc28ef2f61e0a5205d85ee7e9ccdb" + integrity sha512-WZahfp95RdePwwPWxnxAHgfkXXEQXNrgX9sGrB//uGfj8lygcf7m/rNZQ4iooUzoqBEkTtJpi7bezWCieNcq2A== + dependencies: + graphql-codegen-core "0.18.2" + import-from "2.1.0" + +graphql-codegen-typescript-common@0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-common/-/graphql-codegen-typescript-common-0.18.2.tgz#1ccbb3bfa1aeb8664127f881db27c658636465da" + integrity sha512-uGGHd/vgwMlnCNOMQkvMxW8Xz0fqPGjPHROsniRNP1ragsa6KfFBrGu9toHgxv8m3MzC6ZPeoUa3wtwtS9oVnA== + dependencies: + change-case "3.1.0" + common-tags "1.8.0" + graphql-codegen-core "0.18.2" + graphql-codegen-plugin-helpers "0.18.2" + +graphql-codegen-typescript-resolvers@0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-resolvers/-/graphql-codegen-typescript-resolvers-0.18.2.tgz#fa44b2668285184d2976116c2982c17bc6866a23" + integrity sha512-BlS286ap2hsOjx2a7H6WKcwxfQtjRay9d+P/0u4t6zUkjpFSpHWWYgymVopfckrjHCo/8g+THPFCmUgFg34vKQ== + dependencies: + graphql-codegen-plugin-helpers "0.18.2" + graphql-codegen-typescript-common "0.18.2" + +graphql-codegen-typescript-server@0.18.2: + version "0.18.2" + resolved "https://registry.yarnpkg.com/graphql-codegen-typescript-server/-/graphql-codegen-typescript-server-0.18.2.tgz#2e11607512bdf77b152c554afc18f5210c1785ba" + integrity sha512-1marSv3TCry6IsQd+Hdarq/AhDpgJ3Yg+e9Or3Urv7Fkw4YbhtyGp6AkpBK+DMKlyKFPjpLnmjAaHS3hjrCp3Q== + dependencies: + graphql-codegen-typescript-common "0.18.2" + graphql-config@2.2.1: version "2.2.1" resolved "https://registry.yarnpkg.com/graphql-config/-/graphql-config-2.2.1.tgz#5fd0ec77ac7428ca5fb2026cf131be10151a0cb2" @@ -7388,13 +7365,6 @@ graphql-import@0.7.1, graphql-import@^0.7.1: lodash "^4.17.4" resolve-from "^4.0.0" -graphql-query-complexity@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/graphql-query-complexity/-/graphql-query-complexity-0.3.0.tgz#71a44e124b7591a185d9d8cde55205aa57680c5d" - integrity sha512-JVqHT81Eh9O17iOjs1r1qzsh5YY2upfA3zoUsQGggT4d+1hajWitk4GQQY5SZtq5eul7y6jMsM9qRUSOAKhDJQ== - dependencies: - lodash.get "^4.4.2" - graphql-request@^1.5.0: version "1.8.2" resolved "https://registry.yarnpkg.com/graphql-request/-/graphql-request-1.8.2.tgz#398d10ae15c585676741bde3fc01d5ca948f8fbe" @@ -7402,51 +7372,50 @@ graphql-request@^1.5.0: dependencies: cross-fetch "2.2.2" -graphql-subscriptions@^1.0.0, graphql-subscriptions@^1.1.0: +graphql-subscriptions@^1.0.0: version "1.1.0" resolved "https://registry.yarnpkg.com/graphql-subscriptions/-/graphql-subscriptions-1.1.0.tgz#5f2fa4233eda44cf7570526adfcf3c16937aef11" integrity sha512-6WzlBFC0lWmXJbIVE8OgFgXIP4RJi3OQgTPa0DVMsDXdpRDjTsM1K9wfl5HSYX7R87QAGlvcv2Y4BIZa/ItonA== dependencies: iterall "^1.2.1" -graphql-tag-pluck@0.8.4: - version "0.8.4" - resolved "https://registry.yarnpkg.com/graphql-tag-pluck/-/graphql-tag-pluck-0.8.4.tgz#9425627a9358365be519d532acaa38edde049d28" - integrity sha512-weT9fZPILIOkdW26ZkkiGf2OGvSfHQZBudYxkxnNoiLU+9RH+I0THE95iAvzMWbtKVmoBovLF/qQyK4ay/D7Bw== +graphql-tag-pluck@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/graphql-tag-pluck/-/graphql-tag-pluck-0.6.0.tgz#d03ab981cd8d31e564d37f8b9bac94a523dc29dd" + integrity sha512-C1SRw5zZtl7CN7mv6Q0abFVSJwG8M+FniFCPqWD+AjQMj9igNPthraMUQ02KSo+j19khR60mksqmFN3BwboFaw== dependencies: - "@babel/parser" "^7.4.4" - "@babel/traverse" "^7.4.4" - "@babel/types" "^7.4.4" - source-map-support "^0.5.12" + "@babel/parser" "^7.2.0" + "@babel/traverse" "^7.1.6" + "@babel/types" "^7.2.0" + source-map-support "^0.5.9" + typescript "^3.2.2" graphql-tag@2.10.1, graphql-tag@^2.10.0, graphql-tag@^2.4.2, graphql-tag@^2.9.2: version "2.10.1" resolved "https://registry.yarnpkg.com/graphql-tag/-/graphql-tag-2.10.1.tgz#10aa41f1cd8fae5373eaf11f1f67260a3cad5e02" integrity sha512-jApXqWBzNXQ8jYa/HLkZJaVw9jgwNqZkywa2zfFn16Iv1Zb7ELNHkJaXHR7Quvd5SIGsy6Ny7SUKATgnu05uEg== -graphql-toolkit@0.5.10, graphql-toolkit@^0.5.10: - version "0.5.10" - resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.5.10.tgz#7b4d5e84c421ca72801d436084478d4a7ac06444" - integrity sha512-mMHNezD9oT0IlM/vkZd/aeoIKtXqKnZq3ipJIMcHZPmMDPcZEf7BMzbB8naKWSWPaB1Iskg426DrfzQDUgU25A== +graphql-toolkit@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.2.0.tgz#91364b69911d51bc915269a37963f4ea2d5f335c" + integrity sha512-dMwb+V2u6vwJF70tWuqSxgNal9fK1xcB8JtmCJUStVUh+PjfNrlKH1X5e17vJlN+lRPz1hatr8jH+Q6lTW0jLw== dependencies: - "@kamilkisiela/graphql-tools" "4.0.6" - "@types/glob" "7.1.1" - aggregate-error "3.0.0" - asyncro "^3.0.0" - cross-fetch "^3.0.4" - deepmerge "4.0.0" - globby "10.0.1" + aggregate-error "2.1.0" + deepmerge "3.2.0" + glob "7.1.3" graphql-import "0.7.1" - is-glob "4.0.1" + graphql-tag-pluck "0.6.0" + is-glob "4.0.0" is-valid-path "0.1.1" - lodash "4.17.15" + lodash "4.17.11" + request "2.88.0" tslib "^1.9.3" valid-url "1.0.9" -graphql-toolkit@0.5.11: - version "0.5.11" - resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.5.11.tgz#f9adf1ecc4df455802d0cc223acbd35556f7d78e" - integrity sha512-CKYzzqcAUbG3mzeQ1+KDqggQMj1lcleanhU4h8EH9bKV2+IyY+vMXQcuxBuLF4BgxYeX04LQnPUfGi9F+lo0qw== +graphql-toolkit@0.5.10, graphql-toolkit@^0.5.10: + version "0.5.10" + resolved "https://registry.yarnpkg.com/graphql-toolkit/-/graphql-toolkit-0.5.10.tgz#7b4d5e84c421ca72801d436084478d4a7ac06444" + integrity sha512-mMHNezD9oT0IlM/vkZd/aeoIKtXqKnZq3ipJIMcHZPmMDPcZEf7BMzbB8naKWSWPaB1Iskg426DrfzQDUgU25A== dependencies: "@kamilkisiela/graphql-tools" "4.0.6" "@types/glob" "7.1.1" @@ -7462,7 +7431,7 @@ graphql-toolkit@0.5.11: tslib "^1.9.3" valid-url "1.0.9" -graphql-tools@4.0.5, graphql-tools@^4.0.0, graphql-tools@^4.0.5: +graphql-tools@4.0.4, graphql-tools@4.0.5, graphql-tools@^4.0.0, graphql-tools@^4.0.5: version "4.0.5" resolved "https://registry.yarnpkg.com/graphql-tools/-/graphql-tools-4.0.5.tgz#d2b41ee0a330bfef833e5cdae7e1f0b0d86b1754" integrity sha512-kQCh3IZsMqquDx7zfIGWBau42xe46gmqabwYkpPlCLIjcEY1XK+auP7iGRD9/205BPyoQdY8hT96MPpgERdC9Q== @@ -7974,14 +7943,7 @@ import-fresh@^3.0.0: parent-module "^1.0.0" resolve-from "^4.0.0" -import-from@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/import-from/-/import-from-3.0.0.tgz#055cfec38cd5a27d8057ca51376d7d3bf0891966" - integrity sha512-CiuXOFFSzkU5x/CR0+z7T91Iht4CXgfCxVOFRhh2Zyhg5wOpWvvDLQUsWl+gcN+QscYBjez8hDCt85O7RLDttQ== - dependencies: - resolve-from "^5.0.0" - -import-from@^2.1.0: +import-from@2.1.0, import-from@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/import-from/-/import-from-2.1.0.tgz#335db7f2a7affd53aaa471d4b8021dee36b7f3b1" integrity sha1-M1238qev/VOqpHHUuAId7ja387E= @@ -8006,10 +7968,10 @@ imurmurhash@^0.1.4: resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" integrity sha1-khi5srkoojixPcT7a21XbyMUU+o= -indent-string@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" - integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== +indent-string@3.2.0, indent-string@^3.0.0, indent-string@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" + integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= indent-string@^2.1.0: version "2.1.0" @@ -8018,11 +7980,6 @@ indent-string@^2.1.0: dependencies: repeating "^2.0.0" -indent-string@^3.0.0, indent-string@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - integrity sha1-Sl/W0nzDMvN+VBmlBNu4NxBckok= - indexes-of@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" @@ -8094,10 +8051,10 @@ inquirer@3.0.6: strip-ansi "^3.0.0" through "^2.3.6" -inquirer@6.5.0: - version "6.5.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" - integrity sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA== +inquirer@6.2.2: + version "6.2.2" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.2.2.tgz#46941176f65c9eb20804627149b743a218f25406" + integrity sha512-Z2rREiXA6cHRR9KBOarR3WuLlFzlIfAEIiB45ll5SSadMg7WqOh1MKEjjndfuH5ewXdixWCxqnVfGOQzPeiztA== dependencies: ansi-escapes "^3.2.0" chalk "^2.4.2" @@ -8105,30 +8062,30 @@ inquirer@6.5.0: cli-width "^2.0.0" external-editor "^3.0.3" figures "^2.0.0" - lodash "^4.17.12" + lodash "^4.17.11" mute-stream "0.0.7" run-async "^2.2.0" rxjs "^6.4.0" string-width "^2.1.0" - strip-ansi "^5.1.0" + strip-ansi "^5.0.0" through "^2.3.6" -inquirer@7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-7.0.0.tgz#9e2b032dde77da1db5db804758b8fea3a970519a" - integrity sha512-rSdC7zelHdRQFkWnhsMu2+2SO41mpv2oF2zy4tMhmiLWkcKbOAs87fWAJhVXttKVwhdZvymvnuM95EyEXg2/tQ== +inquirer@6.5.0: + version "6.5.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-6.5.0.tgz#2303317efc9a4ea7ec2e2df6f86569b734accf42" + integrity sha512-scfHejeG/lVZSpvCXpsB4j/wQNPM5JC8kiElOI0OUTwmc1RTpXr4H32/HOlQHcZiYl2z2VElwuCVDRG8vFmbnA== dependencies: - ansi-escapes "^4.2.1" + ansi-escapes "^3.2.0" chalk "^2.4.2" - cli-cursor "^3.1.0" + cli-cursor "^2.1.0" cli-width "^2.0.0" external-editor "^3.0.3" - figures "^3.0.0" - lodash "^4.17.15" - mute-stream "0.0.8" + figures "^2.0.0" + lodash "^4.17.12" + mute-stream "0.0.7" run-async "^2.2.0" rxjs "^6.4.0" - string-width "^4.1.0" + string-width "^2.1.0" strip-ansi "^5.1.0" through "^2.3.6" @@ -8242,13 +8199,6 @@ is-binary-path@^1.0.0: dependencies: binary-extensions "^1.0.0" -is-binary-path@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - is-buffer@^1.0.2, is-buffer@^1.1.5: version "1.1.6" resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" @@ -8368,16 +8318,18 @@ is-fullwidth-code-point@^2.0.0: resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8= -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - is-generator-fn@^2.0.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-generator-fn/-/is-generator-fn-2.1.0.tgz#7d140adc389aaf3011a8f2a2a4cfa6faadffb118" integrity sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ== +is-glob@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.0.tgz#9521c76845cc2610a85203ddf080a958c2ffabc0" + integrity sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A= + dependencies: + is-extglob "^2.1.1" + is-glob@4.0.1, is-glob@^4.0.0, is-glob@^4.0.1: version "4.0.1" resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.1.tgz#7567dbe9f2f5e2467bc77ab83c4a29482407a5dc" @@ -9452,6 +9404,13 @@ kleur@^3.0.3: resolved "https://registry.yarnpkg.com/kleur/-/kleur-3.0.3.tgz#a79c9ecc86ee1ce3fa6206d1216c501f147fc07e" integrity sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w== +kuler@1.0.x: + version "1.0.1" + resolved "https://registry.yarnpkg.com/kuler/-/kuler-1.0.1.tgz#ef7c784f36c9fb6e16dd3150d152677b2b0228a6" + integrity sha512-J9nVUucG1p/skKul6DU3PUZrhs0LPulNaeUOox0IyXDi8S4CztTHs1gQphhuZmzXG7VOQSf6NJfKuzteQLv9gQ== + dependencies: + colornames "^1.1.1" + last-call-webpack-plugin@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/last-call-webpack-plugin/-/last-call-webpack-plugin-3.0.0.tgz#9742df0e10e3cf46e5c0381c2de90d3a7a2d7555" @@ -9796,17 +9755,22 @@ lodash.uniq@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773" integrity sha1-0CJTc662Uq3BvILklFM5qEJ1R3M= +lodash@4.17.11: + version "4.17.11" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d" + integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg== + lodash@4.17.15, "lodash@>=3.5 <5", lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0: version "4.17.15" resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548" integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A== -log-symbols@3.0.0, log-symbols@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" - integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== +log-symbols@2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" + integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== dependencies: - chalk "^2.4.2" + chalk "^2.0.1" log-symbols@^1.0.2: version "1.0.2" @@ -9815,16 +9779,14 @@ log-symbols@^1.0.2: dependencies: chalk "^1.0.0" -log-update@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/log-update/-/log-update-3.2.0.tgz#719f24293250d65d0165f4e2ec2ed805ff062eec" - integrity sha512-KJ6zAPIHWo7Xg1jYror6IUDFJBq1bQ4Bi4wAEp2y/0ScjBBVi/g0thr0sUVhuvuXauWzczt7T2QHghPDNnKBuw== +log-symbols@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-3.0.0.tgz#f3a08516a5dea893336a7dee14d18a1cfdab77c4" + integrity sha512-dSkNGuI7iG3mfvDzUuYZyvk5dD9ocYCYzNU6CYDE6+Xqd+gwme6Z00NS3dUh8mq/73HaEtT7m6W+yUPtU6BZnQ== dependencies: - ansi-escapes "^3.2.0" - cli-cursor "^2.1.0" - wrap-ansi "^5.0.0" + chalk "^2.4.2" -log-update@^2.3.0: +log-update@2.3.0, log-update@^2.3.0: version "2.3.0" resolved "https://registry.yarnpkg.com/log-update/-/log-update-2.3.0.tgz#88328fd7d1ce7938b29283746f0b1bc126b24708" integrity sha1-iDKP19HOeTiykoN0bwsbwSayRwg= @@ -9833,6 +9795,17 @@ log-update@^2.3.0: cli-cursor "^2.0.0" wrap-ansi "^3.0.1" +logform@^2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/logform/-/logform-2.1.2.tgz#957155ebeb67a13164069825ce67ddb5bb2dd360" + integrity sha512-+lZh4OpERDBLqjiwDLpAWNQu6KMjnlXH2ByZwCuSqVPJletw0kTWJf5CgSNAUKn1KUkv3m2cUz/LK8zyEy7wzQ== + dependencies: + colors "^1.2.1" + fast-safe-stringify "^2.0.4" + fecha "^2.3.3" + ms "^2.1.1" + triple-beam "^1.3.0" + loglevel@^1.4.1: version "1.6.3" resolved "https://registry.yarnpkg.com/loglevel/-/loglevel-1.6.3.tgz#77f2eb64be55a404c9fd04ad16d57c1d6d6b1280" @@ -10398,7 +10371,7 @@ mute-stream@0.0.7: resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab" integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s= -mute-stream@0.0.8, mute-stream@~0.0.4: +mute-stream@~0.0.4: version "0.0.8" resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d" integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA== @@ -10914,6 +10887,11 @@ once@^1.3.0, once@^1.3.1, once@^1.4.0: dependencies: wrappy "1" +one-time@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/one-time/-/one-time-0.0.4.tgz#f8cdf77884826fe4dff93e3a9cc37b1e4480742e" + integrity sha1-+M33eISCb+Tf+T46nMN7HkSAdC4= + onetime@^2.0.0: version "2.0.1" resolved "https://registry.yarnpkg.com/onetime/-/onetime-2.0.1.tgz#067428230fd67443b2794b22bba528b6867962d4" @@ -11471,7 +11449,7 @@ pgpass@1.x: dependencies: split "^1.0.0" -picomatch@^2.0.4, picomatch@^2.0.5: +picomatch@^2.0.5: version "2.0.7" resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.0.7.tgz#514169d8c7cd0bdbeecc8a2609e34a7163de69f6" integrity sha512-oLHIdio3tZ0qH76NybpeneBhYVj0QFTfXEFTc/B3zKQspYfYYkWYgFsmzo+4kvId/bQRcNkVeguI3y+CD22BtA== @@ -12275,6 +12253,11 @@ prepend-http@^1.0.1: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= +prettier@1.16.4: + version "1.16.4" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.16.4.tgz#73e37e73e018ad2db9c76742e2647e21790c9717" + integrity sha512-ZzWuos7TI5CKUeQAtFd6Zhm2s6EpAD/ZLApIhsF9pRvRtM1RFo61dM/4MSRUA0SuLugA/zgrZD8m0BaY46Og7g== + prettier@1.18.2: version "1.18.2" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.18.2.tgz#6823e7c5900017b4bd3acf46fe9ac4b4d7bda9ea" @@ -12932,13 +12915,6 @@ readdirp@^2.2.1: micromatch "^3.1.10" readable-stream "^2.0.2" -readdirp@^3.1.1: - version "3.1.2" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.1.2.tgz#fa85d2d14d4289920e4671dead96431add2ee78a" - integrity sha512-8rhl0xs2cxfVsqzreYCvs8EwBfn/DhVdqtoLmw19uI3SC5avYX9teCurlErfpPXGmYtMHReGaP2RsLnFvz/lnw== - dependencies: - picomatch "^2.0.4" - realpath-native@^1.1.0: version "1.1.0" resolved "https://registry.yarnpkg.com/realpath-native/-/realpath-native-1.1.0.tgz#2003294fea23fb0672f2476ebe22fcf498a2d65c" @@ -13249,11 +13225,6 @@ resolve-from@^4.0.0: resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - resolve-pathname@^2.2.0: version "2.2.0" resolved "https://registry.yarnpkg.com/resolve-pathname/-/resolve-pathname-2.2.0.tgz#7e9ae21ed815fd63ab189adeee64dc831eefa879" @@ -13300,14 +13271,6 @@ restore-cursor@^2.0.0: onetime "^2.0.0" signal-exit "^3.0.2" -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - ret@~0.1.10: version "0.1.15" resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" @@ -13868,7 +13831,7 @@ source-map-resolve@^0.5.0, source-map-resolve@^0.5.2: source-map-url "^0.4.0" urix "^0.1.0" -source-map-support@^0.5.12, source-map-support@^0.5.6, source-map-support@~0.5.12: +source-map-support@^0.5.6, source-map-support@^0.5.9, source-map-support@~0.5.12: version "0.5.13" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.13.tgz#31b24a9c2e73c2de85066c0feb7d44767ed52932" integrity sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w== @@ -14012,6 +13975,11 @@ stable@^0.1.8: resolved "https://registry.yarnpkg.com/stable/-/stable-0.1.8.tgz#836eb3c8382fe2936feaf544631017ce7d47a3cf" integrity sha512-ji9qxRnOVfcuLDySj9qzhGSEFVobyt1kIOSkj1qZzYLzq7Tos/oUUWvotUPQLlrsidqsK6tBH89Bc9kL5zHA6w== +stack-trace@0.0.x: + version "0.0.10" + resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" + integrity sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA= + stack-utils@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/stack-utils/-/stack-utils-1.0.2.tgz#33eba3897788558bebfc2db059dc158ec36cebb8" @@ -14116,15 +14084,6 @@ string-width@^3.0.0, string-width@^3.1.0: is-fullwidth-code-point "^2.0.0" strip-ansi "^5.1.0" -string-width@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.1.0.tgz#ba846d1daa97c3c596155308063e075ed1c99aff" - integrity sha512-NrX+1dVVh+6Y9dnQ19pR0pP4FiEIlUvdTGn8pw6CKTNq5sgib2nIhmUNT5TAmhWmvKr3WcxBcP3E8nWezuipuQ== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^5.2.0" - string_decoder@^1.0.0, string_decoder@^1.1.1: version "1.3.0" resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" @@ -14426,6 +14385,11 @@ text-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/text-extensions/-/text-extensions-2.0.0.tgz#43eabd1b495482fae4a2bf65e5f56c29f69220f6" integrity sha512-F91ZqLgvi1E0PdvmxMgp+gcf6q8fMH7mhdwWfzXnl1k+GbpQDmi8l7DzLC5JTASKbwpY3TfxajAUzAXcv2NmsQ== +text-hex@1.0.x: + version "1.0.0" + resolved "https://registry.yarnpkg.com/text-hex/-/text-hex-1.0.0.tgz#69dc9c1b17446ee79a92bf5b884bb4b9127506f5" + integrity sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg== + text-table@0.2.0, text-table@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" @@ -14624,6 +14588,11 @@ trim-right@^1.0.1: resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" integrity sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM= +triple-beam@^1.2.0, triple-beam@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/triple-beam/-/triple-beam-1.3.0.tgz#a595214c7298db8339eeeee083e4d10bd8cb8dd9" + integrity sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw== + ts-invariant@^0.3.2: version "0.3.3" resolved "https://registry.yarnpkg.com/ts-invariant/-/ts-invariant-0.3.3.tgz#b5742b1885ecf9e29c31a750307480f045ec0b16" @@ -14674,7 +14643,7 @@ ts-pnp@1.1.2, ts-pnp@^1.1.2: resolved "https://registry.yarnpkg.com/ts-pnp/-/ts-pnp-1.1.2.tgz#be8e4bfce5d00f0f58e0666a82260c34a57af552" integrity sha512-f5Knjh7XCyRIzoC/z1Su1yLLRrPrFCgtUAh/9fCSP6NKbATwpOL1+idQVXQokK9GRFURn/jYPGPfegIctwunoA== -tslib@1.10.0, tslib@^1.0.0, tslib@^1.10.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: +tslib@1.10.0, tslib@^1.0.0, tslib@^1.8.0, tslib@^1.8.1, tslib@^1.9.0, tslib@^1.9.3: version "1.10.0" resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.10.0.tgz#c3c19f95973fb0a62973fb09d90d961ee43e5c8a" integrity sha512-qOebF53frne81cf0S9B41ByenJ3/IuH8yJKngAX35CmiZySA0khhkovshKK+jGCaMnVomla7gVlIcc3EvKPbTQ== @@ -14765,31 +14734,11 @@ type-fest@^0.3.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.3.1.tgz#63d00d204e059474fe5e1b7c011112bbd1dc29e1" integrity sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ== -type-fest@^0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.5.2.tgz#d6ef42a0356c6cd45f49485c3b6281fc148e48a2" - integrity sha512-DWkS49EQKVX//Tbupb9TFa19c7+MK1XmzkrZUR8TAktmE/DizXoaoJV6TZ/tSIPXipqNiRI6CyAe7x69Jb6RSw== - type-fest@^0.6.0: version "0.6.0" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== -type-graphql@^0.17.5: - version "0.17.5" - resolved "https://registry.yarnpkg.com/type-graphql/-/type-graphql-0.17.5.tgz#7f2f189ff7b9faef33537291ef333ff9adbee21c" - integrity sha512-wscr63K0j9UKcX/nBTySamLd7nMZeYKmADk8A9sVmcPh+clNJUAw96784dg2VZn/sUdmN1y2AeKzmTjCfVB5sA== - dependencies: - "@types/glob" "^7.1.1" - "@types/node" "^12.6.2" - "@types/semver" "^6.0.1" - class-validator ">=0.9.1" - glob "^7.1.4" - graphql-query-complexity "^0.3.0" - graphql-subscriptions "^1.1.0" - semver "^6.2.0" - tslib "^1.10.0" - type-is@^1.6.16, type-is@~1.6.17, type-is@~1.6.18: version "1.6.18" resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" @@ -14828,7 +14777,7 @@ typeorm@0.2.18, typeorm@^0.2.17: yargonaut "^1.1.2" yargs "^13.2.1" -typescript@3.5.3: +typescript@3.5.3, typescript@^3.2.2: version "3.5.3" resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.5.3.tgz#c830f657f93f1ea846819e929092f5fe5983e977" integrity sha512-ACzBtm/PhXBDId6a6sDJfroT2pOWt/oOnk4/dElG5G33ZL776N3Y6/6bKZJBFpd+b05F3Ct9qDjMeJmRWtE2/g== @@ -14972,7 +14921,7 @@ unzip-response@^2.0.1: resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97" integrity sha1-0vD3N9FrBhXnKmk17QQhRXLVb5c= -upath@^1.1.1: +upath@^1.1.0, upath@^1.1.1: version "1.1.2" resolved "https://registry.yarnpkg.com/upath/-/upath-1.1.2.tgz#3db658600edaeeccbe6db5e684d67ee8c2acd068" integrity sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q== @@ -15138,11 +15087,6 @@ validate-npm-package-name@^3.0.0: dependencies: builtins "^1.0.3" -validator@11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/validator/-/validator-11.1.0.tgz#ac18cac42e0aa5902b603d7a5d9b7827e2346ac4" - integrity sha512-qiQ5ktdO7CD6C/5/mYV4jku/7qnqzjrxb3C/Q5wR3vGGinHTgJZN/TdFT3ZX4vXhX2R1PXx42fB1cn5W+uJ4lg== - value-equal@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/value-equal/-/value-equal-0.4.0.tgz#c5bdd2f54ee093c04839d71ce2e4758a6890abc7" @@ -15417,6 +15361,29 @@ windows-release@^3.1.0: dependencies: execa "^1.0.0" +winston-transport@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/winston-transport/-/winston-transport-4.3.0.tgz#df68c0c202482c448d9b47313c07304c2d7c2c66" + integrity sha512-B2wPuwUi3vhzn/51Uukcao4dIduEiPOcOt9HJ3QeaXgkJ5Z7UwpBzxS4ZGNHtrxrUvTwemsQiSys0ihOf8Mp1A== + dependencies: + readable-stream "^2.3.6" + triple-beam "^1.2.0" + +winston@3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/winston/-/winston-3.2.1.tgz#63061377976c73584028be2490a1846055f77f07" + integrity sha512-zU6vgnS9dAWCEKg/QYigd6cgMVVNwyTzKs81XZtTFuRwJOcDdBg7AU0mXVyNbs7O5RH2zdv+BdNZUlx7mXPuOw== + dependencies: + async "^2.6.1" + diagnostics "^1.1.1" + is-stream "^1.1.0" + logform "^2.1.1" + one-time "0.0.4" + readable-stream "^3.1.1" + stack-trace "0.0.x" + triple-beam "^1.3.0" + winston-transport "^4.3.0" + wordwrap@~0.0.2: version "0.0.3" resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" @@ -15592,7 +15559,7 @@ wrap-ansi@^3.0.1: string-width "^2.1.1" strip-ansi "^4.0.0" -wrap-ansi@^5.0.0, wrap-ansi@^5.1.0: +wrap-ansi@^5.1.0: version "5.1.0" resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-5.1.0.tgz#1fd1f67235d5b6d0fee781056001bfb694c03b09" integrity sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q== From acb13fcc516f95feb827a5f9d8af99b08e09712e Mon Sep 17 00:00:00 2001 From: Nick Bolles Date: Wed, 4 Sep 2019 20:08:14 +0000 Subject: [PATCH 5/6] Revert "feat(graphql-api): export Type-graphql types" This reverts commit 323788d48e9479308048b11f965386bbabb80acc. --- packages/graphql-api/codegen.yml | 12 +- packages/graphql-api/src/type-graphql.ts | 234 ----------------------- packages/graphql-api/tsconfig.json | 1 - 3 files changed, 1 insertion(+), 246 deletions(-) delete mode 100644 packages/graphql-api/src/type-graphql.ts diff --git a/packages/graphql-api/codegen.yml b/packages/graphql-api/codegen.yml index 9e54d5b3f..7baab3ec6 100644 --- a/packages/graphql-api/codegen.yml +++ b/packages/graphql-api/codegen.yml @@ -9,14 +9,4 @@ generates: - add: /* tslint:disable */ - typescript - typescript-resolvers - - typescript-operations - ./src/type-graphql.ts: - config: - noNamespaces: true -# declarationType: -# type: "abstract class" -# decoratorName: -# type: "InterfaceType" - plugins: - - add: /* tslint:disable */ - - typescript-type-graphql \ No newline at end of file + - typescript-operations \ No newline at end of file diff --git a/packages/graphql-api/src/type-graphql.ts b/packages/graphql-api/src/type-graphql.ts deleted file mode 100644 index 043251908..000000000 --- a/packages/graphql-api/src/type-graphql.ts +++ /dev/null @@ -1,234 +0,0 @@ -/* tslint:disable */ -import * as TypeGraphQL from 'type-graphql'; -export type Maybe = T | null; -type FixDecorator = T; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; -}; - -export type AuthenticateParamsInput = { - access_token?: Maybe; - access_token_secret?: Maybe; - provider?: Maybe; - password?: Maybe; - user?: Maybe; - code?: Maybe; -}; - -export type CreateUserInput = { - username?: Maybe; - email?: Maybe; - password?: Maybe; -}; - -@TypeGraphQL.ObjectType() -export class EmailRecord { - __typename?: 'EmailRecord'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - address!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - verified!: Maybe; -} - -@TypeGraphQL.ObjectType() -export class ImpersonateReturn { - __typename?: 'ImpersonateReturn'; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - authorized!: Maybe; - - @TypeGraphQL.Field(type => Tokens, { nullable: true }) - tokens!: Maybe; - - @TypeGraphQL.Field(type => User, { nullable: true }) - user!: Maybe; -} - -@TypeGraphQL.ObjectType() -export class LoginResult { - __typename?: 'LoginResult'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - sessionId!: Maybe; - - @TypeGraphQL.Field(type => Tokens, { nullable: true }) - tokens!: Maybe; -} - -export class Mutation { - __typename?: 'Mutation'; - - @TypeGraphQL.Field(type => TypeGraphQL.ID, { nullable: true }) - createUser!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - verifyEmail!: Maybe; - - @TypeGraphQL.Field(type => LoginResult, { nullable: true }) - resetPassword!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - sendVerificationEmail!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - sendResetPasswordEmail!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - changePassword!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - twoFactorSet!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - twoFactorUnset!: Maybe; - - @TypeGraphQL.Field(type => ImpersonateReturn, { nullable: true }) - impersonate!: Maybe; - - @TypeGraphQL.Field(type => LoginResult, { nullable: true }) - refreshTokens!: Maybe; - - @TypeGraphQL.Field(type => Boolean, { nullable: true }) - logout!: Maybe; - - @TypeGraphQL.Field(type => LoginResult, { nullable: true }) - authenticate!: Maybe; -} - -export type MutationCreateUserArgs = { - user: CreateUserInput; -}; - -export type MutationVerifyEmailArgs = { - token: Scalars['String']; -}; - -export type MutationResetPasswordArgs = { - token: Scalars['String']; - newPassword: Scalars['String']; -}; - -export type MutationSendVerificationEmailArgs = { - email: Scalars['String']; -}; - -export type MutationSendResetPasswordEmailArgs = { - email: Scalars['String']; -}; - -export type MutationChangePasswordArgs = { - oldPassword: Scalars['String']; - newPassword: Scalars['String']; -}; - -export type MutationTwoFactorSetArgs = { - secret: TwoFactorSecretKeyInput; - code: Scalars['String']; -}; - -export type MutationTwoFactorUnsetArgs = { - code: Scalars['String']; -}; - -export type MutationImpersonateArgs = { - accessToken: Scalars['String']; - username: Scalars['String']; -}; - -export type MutationRefreshTokensArgs = { - accessToken: Scalars['String']; - refreshToken: Scalars['String']; -}; - -export type MutationAuthenticateArgs = { - serviceName: Scalars['String']; - params: AuthenticateParamsInput; -}; - -export class Query { - __typename?: 'Query'; - - @TypeGraphQL.Field(type => TwoFactorSecretKey, { nullable: true }) - twoFactorSecret!: Maybe; - - @TypeGraphQL.Field(type => User, { nullable: true }) - getUser!: Maybe; -} - -@TypeGraphQL.ObjectType() -export class Tokens { - __typename?: 'Tokens'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - refreshToken!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - accessToken!: Maybe; -} - -@TypeGraphQL.ObjectType() -export class TwoFactorSecretKey { - __typename?: 'TwoFactorSecretKey'; - - @TypeGraphQL.Field(type => String, { nullable: true }) - ascii!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - base32!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - hex!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - qr_code_ascii!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - qr_code_hex!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - qr_code_base32!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - google_auth_qr!: Maybe; - - @TypeGraphQL.Field(type => String, { nullable: true }) - otpauth_url!: Maybe; -} - -export type TwoFactorSecretKeyInput = { - ascii?: Maybe; - base32?: Maybe; - hex?: Maybe; - qr_code_ascii?: Maybe; - qr_code_hex?: Maybe; - qr_code_base32?: Maybe; - google_auth_qr?: Maybe; - otpauth_url?: Maybe; -}; - -@TypeGraphQL.ObjectType() -export class User { - __typename?: 'User'; - - @TypeGraphQL.Field(type => TypeGraphQL.ID) - id!: Scalars['ID']; - - @TypeGraphQL.Field(type => [EmailRecord], { nullable: true }) - emails!: Maybe>; - - @TypeGraphQL.Field(type => String, { nullable: true }) - username!: Maybe; -} - -export type UserInput = { - id?: Maybe; - email?: Maybe; - username?: Maybe; -}; diff --git a/packages/graphql-api/tsconfig.json b/packages/graphql-api/tsconfig.json index 5844cf062..9ff9c2e86 100644 --- a/packages/graphql-api/tsconfig.json +++ b/packages/graphql-api/tsconfig.json @@ -5,7 +5,6 @@ "outDir": "./lib", "noUnusedParameters": false, "noUnusedLocals": false, - "experimentalDecorators": true, "importHelpers": true }, "exclude": ["node_modules", "__tests__", "lib"] From 2b25500766851763447f3d9272b201f94ab4d5f5 Mon Sep 17 00:00:00 2001 From: Nick Bolles Date: Wed, 4 Sep 2019 20:09:46 +0000 Subject: [PATCH 6/6] feat(type-graphql): add type-graphql packages --- packages/type-graphql/.npmignore | 6 + packages/type-graphql/README.md | 199 ++++++++++++++ packages/type-graphql/codegen.yml | 14 + packages/type-graphql/package.json | 51 ++++ packages/type-graphql/src/index.ts | 1 + packages/type-graphql/src/type-graphql.ts | 308 ++++++++++++++++++++++ packages/type-graphql/tsconfig.json | 13 + 7 files changed, 592 insertions(+) create mode 100755 packages/type-graphql/.npmignore create mode 100755 packages/type-graphql/README.md create mode 100644 packages/type-graphql/codegen.yml create mode 100644 packages/type-graphql/package.json create mode 100644 packages/type-graphql/src/index.ts create mode 100644 packages/type-graphql/src/type-graphql.ts create mode 100644 packages/type-graphql/tsconfig.json diff --git a/packages/type-graphql/.npmignore b/packages/type-graphql/.npmignore new file mode 100755 index 000000000..e65c31dc0 --- /dev/null +++ b/packages/type-graphql/.npmignore @@ -0,0 +1,6 @@ +src/ +coverage/ +node_modules +yarn.lock +tsconfig.json +.npmignore \ No newline at end of file diff --git a/packages/type-graphql/README.md b/packages/type-graphql/README.md new file mode 100755 index 000000000..1670afa2d --- /dev/null +++ b/packages/type-graphql/README.md @@ -0,0 +1,199 @@ +# @accounts/graphql-api + +_Schema, Resolvers and Utils for GraphQL server with JSAccounts_ + +[![npm](https://img.shields.io/npm/v/@accounts/graphql-api.svg?maxAge=2592000)](https://www.npmjs.com/package/@accounts/graphql-api) +![MIT License](https://img.shields.io/badge/license-MIT-blue.svg) + +> This package does not requires any network interface / express in order to combine with your GraphQL - it's just a collection of GraphQL schema, resolvers and utils! + +## How to use this package? + +This package exports GraphQL schema and GraphQL resolvers, which you can extend with your existing GraphQL schema server. + +Start by installing it from NPM / Yarn: + +```bash +// Npm +npm install --save @accounts/server @accounts/graphql-api @graphql-modules/core + +// Yarn +yarn add @accounts/server @accounts/graphql-api @graphql-modules/core +``` + +> This package does not create a transport or anything else, only schema and string and resolvers as object. + +Start by configuring your `AccountsServer` as you wish. For example, using MongoDB: + +```js +import mongoose from 'mongoose' +import AccountsServer from '@accounts/server' +import AccountsPassword from '@accounts/password' +import MongoDBInterface from '@accounts/mongo' + +const db = mongoose.connection + +const password = new AccountsPassword() + +const accountsServer = new AccountsServer({ + { + db: new MongoDBInterface(db), + tokenSecret: 'SECRET', + }, + { + password, + } +}); +``` + +Next, import `AccountsModule` from this package, and run it with your `AccountsServer`: + +```js +import { AccountsModule } from '@accounts/graphql-api'; + +const accountsGraphQL = AccountsModule.forRoot({ + accountsServer, +}); +``` + +Now, add `accountsGraphQL.typeDefs` to your schema definition (just before using it with `makeExecutableSchema`), and merge your resolvers object with `accountsGraphQL.resolvers` by using `@graphql-tools/epoxy`, for example: + +```js +import { makeExecutableSchema } from 'graphql-tools'; +import { mergeGraphQLSchemas, mergeResolvers } from '@graphql-tools/epoxy'; + +const typeDefs = [ + ` + type Query { + myQuery: String + } + + type Mutation { + myMutation: String + } + + schema { + query: Query, + mutation: Mutation + } + `, + accountsGraphQL.typeDefs, +]; + +let myResolvers = { + Query: { + myQuery: () => 'Hello', + }, + Mutation: { + myMutation: () => 'Hello', + }, +}; + +const schema = makeExecutableSchema({ + resolvers: mergeResolvers([accountsGraphQL.resolvers, myResolvers]), + typeDefs: mergeGraphQLSchemas([typeDefs]), +}); +``` + +The last step is to extend your `graphqlExpress` with a context middleware, that extracts the authentication token from the HTTP request, so AccountsServer will automatically validate it: + +```js +app.use( + GRAPHQL_ROUTE, + bodyParser.json(), + graphqlExpress(request => { + return { + context: { + ...accountsGraphQL(request), + // your context + }, + schema, + }; + }) +); +``` + +## Authenticating Resolvers + +You can authenticate your own resolvers with `JSAccounts` authentication flow, by using `authenticated` method from this package. + +This method composer also extends `context` with the current authenticated user! + +This is an example for a protected mutation: + +```js +import AccountsServer from '@accounts/server'; +import { authenticated } from '@accounts/graphql-api'; + +export const resolver = { + Mutation: { + updateUserProfile: authenticated(AccountsServer, (rootValue, args, context) => { + // Write your resolver here + // context.user - the current authenticated user! + }), + }, +}; +``` + +## Customization + +This package allow you to customize the GraphQL schema and it's resolvers. + +For example, some application main query called `MyQuery` or `RootQuery` instead of query, so you can customize the name, without modifying you application's schema. + +These are the available customizations: + +- `rootQueryName` (string) - The name of the root query, default: `Query`. +- `rootMutationName` (string) - The name of the root mutation, default: `Mutation`. +- `extend` (boolean) - whether to add `extend` before the root type declaration, default: `true`. +- `withSchemaDefinition` (boolean): whether to add `schema { ... }` declaration to the generation schema, default: `false`. + +Pass a second object to `createAccountsGraphQL`, for example: + +Another possible customization is to modify the name of the authentication header, use it with `accountsContext` (the default is `Authorization`): + +```js +const myCustomGraphQLAccounts = AccountsModule.forRoot({ + accountsServer, + rootQueryName: 'RootQuery', + rootMutationName: 'RootMutation', + headerName: 'MyCustomHeader', +}); +``` + +## Extending `User` + +To extend `User` object with custom fields and logic, add your own GraphQL type definition of `User` with the prefix of `extend`, and add your fields: + +```graphql +extend type User { + firstName: String + lastName: String +} +``` + +And also implement a regular resolver, for the fields you added: + +```js +const UserResolver = { + firstName: () => 'Dotan', + lastName: () => 'Simha', +}; +``` + +## Extending `User` during password creation + +To extend the user object during the user creation you need to extend the `CreateUserInput` type and add your fields: + +```graphql +extend input CreateUserInput { + profile: CreateUserProfileInput! +} + +input CreateUserProfileInput { + firstName: String! + lastName: String! +} +``` + +The user will be saved in the db with the profile key set. diff --git a/packages/type-graphql/codegen.yml b/packages/type-graphql/codegen.yml new file mode 100644 index 000000000..7e2a93474 --- /dev/null +++ b/packages/type-graphql/codegen.yml @@ -0,0 +1,14 @@ +overwrite: true +schema: ../graphql-api/src/schema.ts +require: ts-node/register/transpile-only +generates: + ./src/type-graphql.ts: + config: + noNamespaces: true + declarationType: + type: "abstract class" + decoratorName: + type: "InterfaceType" + plugins: + - add: /* tslint:disable */ + - typescript-type-graphql \ No newline at end of file diff --git a/packages/type-graphql/package.json b/packages/type-graphql/package.json new file mode 100644 index 000000000..ef89fcb19 --- /dev/null +++ b/packages/type-graphql/package.json @@ -0,0 +1,51 @@ +{ + "name": "@accounts/type-graphql", + "version": "0.19.0", + "description": "Server side type-graphql objects for accounts", + "main": "lib/index.js", + "typings": "lib/index.d.ts", + "scripts": { + "clean": "rimraf lib", + "start": "gql-gen && tsc --watch", + "precompile": "yarn clean && gql-gen", + "compile": "tsc", + "testonly": "jest", + "coverage": "yarn testonly --coverage", + "prepublishOnly": "yarn compile" + }, + "jest": { + "testEnvironment": "node", + "preset": "ts-jest" + }, + "repository": { + "type": "git", + "url": "https://github.com/accounts-js/accounts/tree/master/packages/type-graphql" + }, + "author": "David Yahalomi", + "license": "MIT", + "bugs": { + "url": "https://github.com/accounts-js/accounts/issues" + }, + "homepage": "https://github.com/accounts-js/accounts", + "devDependencies": { + "@graphql-codegen/add": "^1.7.0", + "@graphql-codegen/cli": "^1.7.0", + "@graphql-codegen/typescript": "^1.7.0", + "@graphql-codegen/typescript-type-graphql": "^1.7.0", + "@types/jest": "24.0.18", + "graphql": "14.5.3", + "graphql-tools": "4.0.5", + "jest": "24.9.0" + }, + "peerDependencies": { + "@accounts/password": "^0.9.3", + "@accounts/server": "^0.9.3", + "@accounts/types": "^0.9.3", + "graphql-tag": "^2.10.0", + "graphql-tools": "^4.0.5" + }, + "dependencies": { + "graphql-toolkit": "^0.5.10", + "type-graphql": "^0.17.5" + } +} diff --git a/packages/type-graphql/src/index.ts b/packages/type-graphql/src/index.ts new file mode 100644 index 000000000..349cc7eed --- /dev/null +++ b/packages/type-graphql/src/index.ts @@ -0,0 +1 @@ +export * from './type-graphql'; diff --git a/packages/type-graphql/src/type-graphql.ts b/packages/type-graphql/src/type-graphql.ts new file mode 100644 index 000000000..a65ea5c00 --- /dev/null +++ b/packages/type-graphql/src/type-graphql.ts @@ -0,0 +1,308 @@ +/* tslint:disable */ +import * as TypeGraphQL from 'type-graphql'; +export type Maybe = T | null; +type FixDecorator = T; +/** All built-in and custom scalars, mapped to their actual values */ +export type Scalars = { + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; +}; + +@TypeGraphQL.InterfaceType() +export class User { + __typename?: 'User'; + + @TypeGraphQL.Field(type => TypeGraphQL.ID) + id!: Scalars['ID']; + + @TypeGraphQL.Field(type => [EmailRecord], { nullable: true }) + emails!: Maybe>; + + @TypeGraphQL.Field(type => String, { nullable: true }) + username!: Maybe; +} + +@TypeGraphQL.InterfaceType() +export class TwoFactorSecretKey { + __typename?: 'TwoFactorSecretKey'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + google_auth_qr!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + otpauth_url!: Maybe; +} + +@TypeGraphQL.InterfaceType() +export class Tokens { + __typename?: 'Tokens'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + refreshToken!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + accessToken!: Maybe; +} + +@TypeGraphQL.InterfaceType() +export class LoginResult { + __typename?: 'LoginResult'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + sessionId!: Maybe; + + @TypeGraphQL.Field(type => Tokens, { nullable: true }) + tokens!: Maybe; +} + +@TypeGraphQL.InterfaceType() +export class ImpersonateReturn { + __typename?: 'ImpersonateReturn'; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + authorized!: Maybe; + + @TypeGraphQL.Field(type => Tokens, { nullable: true }) + tokens!: Maybe; + + @TypeGraphQL.Field(type => User, { nullable: true }) + user!: Maybe; +} + +@TypeGraphQL.InterfaceType() +export class EmailRecord { + __typename?: 'EmailRecord'; + + @TypeGraphQL.Field(type => String, { nullable: true }) + address!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + verified!: Maybe; +} + +@TypeGraphQL.InputType() +export class AuthenticateParamsInput { + @TypeGraphQL.Field(type => String, { nullable: true }) + access_token!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + access_token_secret!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + provider!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + password!: Maybe; + + @TypeGraphQL.Field(type => UserInput, { nullable: true }) + user!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + code!: Maybe; +} + +@TypeGraphQL.InputType() +export class CreateUserInput { + @TypeGraphQL.Field(type => String, { nullable: true }) + username!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + email!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + password!: Maybe; +} + +export class Mutation { + __typename?: 'Mutation'; + + @TypeGraphQL.Field(type => TypeGraphQL.ID, { nullable: true }) + createUser!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + verifyEmail!: Maybe; + + @TypeGraphQL.Field(type => LoginResult, { nullable: true }) + resetPassword!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + sendVerificationEmail!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + sendResetPasswordEmail!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + changePassword!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + twoFactorSet!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + twoFactorUnset!: Maybe; + + @TypeGraphQL.Field(type => ImpersonateReturn, { nullable: true }) + impersonate!: Maybe; + + @TypeGraphQL.Field(type => LoginResult, { nullable: true }) + refreshTokens!: Maybe; + + @TypeGraphQL.Field(type => Boolean, { nullable: true }) + logout!: Maybe; + + @TypeGraphQL.Field(type => LoginResult, { nullable: true }) + authenticate!: Maybe; +} + +@TypeGraphQL.ArgsType() +export class MutationCreateUserArgs { + @TypeGraphQL.Field(type => CreateUserInput) + user!: FixDecorator; +} + +@TypeGraphQL.ArgsType() +export class MutationVerifyEmailArgs { + @TypeGraphQL.Field(type => String) + token!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationResetPasswordArgs { + @TypeGraphQL.Field(type => String) + token!: Scalars['String']; + + @TypeGraphQL.Field(type => String) + newPassword!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationSendVerificationEmailArgs { + @TypeGraphQL.Field(type => String) + email!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationSendResetPasswordEmailArgs { + @TypeGraphQL.Field(type => String) + email!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationChangePasswordArgs { + @TypeGraphQL.Field(type => String) + oldPassword!: Scalars['String']; + + @TypeGraphQL.Field(type => String) + newPassword!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationTwoFactorSetArgs { + @TypeGraphQL.Field(type => TwoFactorSecretKeyInput) + secret!: FixDecorator; + + @TypeGraphQL.Field(type => String) + code!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationTwoFactorUnsetArgs { + @TypeGraphQL.Field(type => String) + code!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationImpersonateArgs { + @TypeGraphQL.Field(type => String) + accessToken!: Scalars['String']; + + @TypeGraphQL.Field(type => String) + username!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationRefreshTokensArgs { + @TypeGraphQL.Field(type => String) + accessToken!: Scalars['String']; + + @TypeGraphQL.Field(type => String) + refreshToken!: Scalars['String']; +} + +@TypeGraphQL.ArgsType() +export class MutationAuthenticateArgs { + @TypeGraphQL.Field(type => String) + serviceName!: Scalars['String']; + + @TypeGraphQL.Field(type => AuthenticateParamsInput) + params!: FixDecorator; +} + +export class Query { + __typename?: 'Query'; + + @TypeGraphQL.Field(type => TwoFactorSecretKey, { nullable: true }) + twoFactorSecret!: Maybe; + + @TypeGraphQL.Field(type => User, { nullable: true }) + getUser!: Maybe; +} + +@TypeGraphQL.InputType() +export class TwoFactorSecretKeyInput { + @TypeGraphQL.Field(type => String, { nullable: true }) + ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_ascii!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_hex!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + qr_code_base32!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + google_auth_qr!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + otpauth_url!: Maybe; +} + +@TypeGraphQL.InputType() +export class UserInput { + @TypeGraphQL.Field(type => TypeGraphQL.ID, { nullable: true }) + id!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + email!: Maybe; + + @TypeGraphQL.Field(type => String, { nullable: true }) + username!: Maybe; +} diff --git a/packages/type-graphql/tsconfig.json b/packages/type-graphql/tsconfig.json new file mode 100644 index 000000000..512450c8e --- /dev/null +++ b/packages/type-graphql/tsconfig.json @@ -0,0 +1,13 @@ +{ + "extends": "../../tsconfig", + "compilerOptions": { + "rootDir": "./src", + "outDir": "./lib", + "noUnusedParameters": false, + "noUnusedLocals": false, + "noImplicitAny": false, + "experimentalDecorators": true, + "importHelpers": true + }, + "exclude": ["node_modules", "__tests__", "lib"] +}