From f661c4b68b54dd8dc1026688db9257f6ef3c8e0a Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Sun, 3 Feb 2019 22:36:27 -0500 Subject: [PATCH] feat(gg): allow delegated-parent-resolvers (#429) closes #428 --- .../graphqlgen/src/generators/ts-generator.ts | 13 +- .../__snapshots__/basic.test.ts.snap | 3536 +++-- .../__snapshots__/large-schema.test.ts.snap | 11074 +++++++++++----- 3 files changed, 10416 insertions(+), 4207 deletions(-) diff --git a/packages/graphqlgen/src/generators/ts-generator.ts b/packages/graphqlgen/src/generators/ts-generator.ts index 67b5ef97..08ab2918 100644 --- a/packages/graphqlgen/src/generators/ts-generator.ts +++ b/packages/graphqlgen/src/generators/ts-generator.ts @@ -542,11 +542,18 @@ const renderTypeResolver = ( ` } - const func = ` - ${params} => ${resolverReturnType(returnType)} + const func = `${params} => ${resolverReturnType(returnType)}` + + const DelegatedParentResolver = ` + { + fragment: string + resolver: ${func} + } ` - return func + const resolver = union([`(${func})`, DelegatedParentResolver]) + + return resolver } function renderResolvers(args: GenerateArgs): string { diff --git a/packages/graphqlgen/tests/typescript/__snapshots__/basic.test.ts.snap b/packages/graphqlgen/tests/typescript/__snapshots__/basic.test.ts.snap index bb909ee0..05d0bacb 100644 --- a/packages/graphqlgen/tests/typescript/__snapshots__/basic.test.ts.snap +++ b/packages/graphqlgen/tests/typescript/__snapshots__/basic.test.ts.snap @@ -18,20 +18,40 @@ export namespace QueryResolvers { type: EnumAnnotation; } - export type CreateUserResolver = ( - parent: undefined, - args: ArgsCreateUser, - ctx: Context, - info: GraphQLResolveInfo - ) => User | null | Promise; + export type CreateUserResolver = + | (( + parent: undefined, + args: ArgsCreateUser, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCreateUser, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise; + }; export interface Type { - createUser: ( - parent: undefined, - args: ArgsCreateUser, - ctx: Context, - info: GraphQLResolveInfo - ) => User | null | Promise; + createUser: + | (( + parent: undefined, + args: ArgsCreateUser, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCreateUser, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise; + }; } } @@ -42,62 +62,142 @@ export namespace UserResolvers { enumAsUnionType: (parent: User) => parent.enumAsUnionType }; - export type IdResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NameResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type EnumAnnotationResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => EnumAnnotation | Promise; - - export type EnumAsUnionTypeResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => EnumAsUnionType | Promise; + export type IdResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NameResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type EnumAnnotationResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAnnotation | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAnnotation | Promise; + }; + + export type EnumAsUnionTypeResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAsUnionType | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAsUnionType | Promise; + }; export interface Type { - id: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - name: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - enumAnnotation: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => EnumAnnotation | Promise; - - enumAsUnionType: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => EnumAsUnionType | Promise; + id: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + name: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + enumAnnotation: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAnnotation | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAnnotation | Promise; + }; + + enumAsUnionType: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAsUnionType | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => EnumAsUnionType | Promise; + }; } } @@ -204,34 +304,74 @@ export namespace MutationResolvers { data: AddMemberData[]; } - export type AddMemberResolver = ( - parent: undefined, - args: ArgsAddMember, - ctx: Context, - info: GraphQLResolveInfo - ) => AddMemberPayload | Promise; - - export type AddMembersResolver = ( - parent: undefined, - args: ArgsAddMembers, - ctx: Context, - info: GraphQLResolveInfo - ) => AddMemberPayload | Promise; + export type AddMemberResolver = + | (( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise; + }; + + export type AddMembersResolver = + | (( + parent: undefined, + args: ArgsAddMembers, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddMembers, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise; + }; export interface Type { - addMember: ( - parent: undefined, - args: ArgsAddMember, - ctx: Context, - info: GraphQLResolveInfo - ) => AddMemberPayload | Promise; - - addMembers: ( - parent: undefined, - args: ArgsAddMembers, - ctx: Context, - info: GraphQLResolveInfo - ) => AddMemberPayload | Promise; + addMember: + | (( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise; + }; + + addMembers: + | (( + parent: undefined, + args: ArgsAddMembers, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddMembers, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise; + }; } } @@ -240,34 +380,74 @@ export namespace AddMemberPayloadResolvers { newUserId: (parent: AddMemberPayload) => parent.newUserId }; - export type NewUserIdResolver = ( - parent: AddMemberPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type ExistingUserInviteSentResolver = ( - parent: AddMemberPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; + export type NewUserIdResolver = + | (( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type ExistingUserInviteSentResolver = + | (( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; export interface Type { - newUserId: ( - parent: AddMemberPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - existingUserInviteSent: ( - parent: AddMemberPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; + newUserId: + | (( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + existingUserInviteSent: + | (( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; } } @@ -354,40 +534,88 @@ export namespace QueryResolvers { id: number; } - export type MediaResolver = ( - parent: undefined, - args: ArgsMedia, - ctx: Context, - info: GraphQLResolveInfo - ) => - | Array - | null - | Promise | null>; - - export type MediaItemResolver = ( - parent: undefined, - args: ArgsMediaItem, - ctx: Context, - info: GraphQLResolveInfo - ) => Image | Video | null | Promise; + export type MediaResolver = + | (( + parent: undefined, + args: ArgsMedia, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null> + ) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsMedia, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + export type MediaItemResolver = + | (( + parent: undefined, + args: ArgsMediaItem, + ctx: Context, + info: GraphQLResolveInfo + ) => Image | Video | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsMediaItem, + ctx: Context, + info: GraphQLResolveInfo + ) => Image | Video | null | Promise; + }; export interface Type { - media: ( - parent: undefined, - args: ArgsMedia, - ctx: Context, - info: GraphQLResolveInfo - ) => - | Array - | null - | Promise | null>; - - mediaItem: ( - parent: undefined, - args: ArgsMediaItem, - ctx: Context, - info: GraphQLResolveInfo - ) => Image | Video | null | Promise; + media: + | (( + parent: undefined, + args: ArgsMedia, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null> + ) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsMedia, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + mediaItem: + | (( + parent: undefined, + args: ArgsMediaItem, + ctx: Context, + info: GraphQLResolveInfo + ) => Image | Video | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsMediaItem, + ctx: Context, + info: GraphQLResolveInfo + ) => Image | Video | null | Promise; + }; } } @@ -397,34 +625,74 @@ export namespace DimensionsResolvers { height: (parent: Dimensions) => parent.height }; - export type WidthResolver = ( - parent: Dimensions, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type HeightResolver = ( - parent: Dimensions, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type WidthResolver = + | (( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type HeightResolver = + | (( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - width: ( - parent: Dimensions, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - height: ( - parent: Dimensions, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + width: + | (( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + height: + | (( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Dimensions, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -433,48 +701,108 @@ export namespace ImageResolvers { dimensions: (parent: Image) => parent.dimensions }; - export type IdResolver = ( - parent: Image, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type UrlResolver = ( - parent: Image, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type DimensionsResolver = ( - parent: Image, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Dimensions | Promise; + export type IdResolver = + | (( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type UrlResolver = + | (( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type DimensionsResolver = + | (( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Dimensions | Promise) + | { + fragment: string; + resolver: ( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Dimensions | Promise; + }; export interface Type { - id: ( - parent: Image, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - url: ( - parent: Image, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - dimensions: ( - parent: Image, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Dimensions | Promise; + id: + | (( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + url: + | (( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + dimensions: + | (( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Dimensions | Promise) + | { + fragment: string; + resolver: ( + parent: Image, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Dimensions | Promise; + }; __isTypeOf?: GraphQLIsTypeOfFn; } @@ -483,48 +811,108 @@ export namespace ImageResolvers { export namespace VideoResolvers { export const defaultResolvers = {}; - export type IdResolver = ( - parent: Video, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type UrlResolver = ( - parent: Video, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type DurationResolver = ( - parent: Video, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type IdResolver = + | (( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type UrlResolver = + | (( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type DurationResolver = + | (( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - id: ( - parent: Video, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - url: ( - parent: Video, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - duration: ( - parent: Video, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + id: + | (( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + url: + | (( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + duration: + | (( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Video, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; __isTypeOf?: GraphQLIsTypeOfFn; } @@ -685,20 +1073,40 @@ export namespace MutationResolvers { data: AddMemberData; } - export type AddMemberResolver = ( - parent: undefined, - args: ArgsAddMember, - ctx: Context, - info: GraphQLResolveInfo - ) => AddMemberPayload | Promise; + export type AddMemberResolver = + | (( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise; + }; export interface Type { - addMember: ( - parent: undefined, - args: ArgsAddMember, - ctx: Context, - info: GraphQLResolveInfo - ) => AddMemberPayload | Promise; + addMember: + | (( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddMember, + ctx: Context, + info: GraphQLResolveInfo + ) => AddMemberPayload | Promise; + }; } } @@ -707,20 +1115,40 @@ export namespace AddMemberPayloadResolvers { json: (parent: AddMemberPayload) => parent.json }; - export type JsonResolver = ( - parent: AddMemberPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; + export type JsonResolver = + | (( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; export interface Type { - json: ( - parent: AddMemberPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; + json: + | (( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: AddMemberPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; } } @@ -808,188 +1236,461 @@ export namespace QueryResolvers { id: Number; } - export type IdResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type Custom_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - export type Custom_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | null | Promise; - - export type Custom_array_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - export type Custom_array_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - export type Custom_with_argResolver = ( - parent: undefined, - args: ArgsCustom_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - export type Custom_with_custom_argResolver = ( - parent: undefined, - args: ArgsCustom_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - export type Scalar_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type Scalar_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type Scalar_array_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - export type Scalar_array_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - export type Scalar_with_argResolver = ( - parent: undefined, - args: ArgsScalar_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type Scalar_with_custom_argResolver = ( - parent: undefined, - args: ArgsScalar_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + export type IdResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type Custom_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + export type Custom_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise; + }; + + export type Custom_array_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>; + }; + + export type Custom_array_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + export type Custom_with_argResolver = + | (( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + export type Custom_with_custom_argResolver = + | (( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + export type Scalar_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type Scalar_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type Scalar_array_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + export type Scalar_array_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + export type Scalar_with_argResolver = + | (( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type Scalar_with_custom_argResolver = + | (( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; export interface Type { - id: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - custom_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - custom_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | null | Promise; - - custom_array_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - custom_array_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - custom_with_arg: ( - parent: undefined, - args: ArgsCustom_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - custom_with_custom_arg: ( - parent: undefined, - args: ArgsCustom_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - scalar_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - scalar_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - scalar_array_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - scalar_array_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - scalar_with_arg: ( - parent: undefined, - args: ArgsScalar_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - scalar_with_custom_arg: ( - parent: undefined, - args: ArgsScalar_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + id: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + custom_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + custom_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise; + }; + + custom_array_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + custom_array_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + custom_with_arg: + | (( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + custom_with_custom_arg: + | (( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + scalar_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + scalar_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + scalar_array_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null> + ) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + scalar_array_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + scalar_with_arg: + | (( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + scalar_with_custom_arg: + | (( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; } } @@ -999,34 +1700,74 @@ export namespace NumberResolvers { value: (parent: Number) => parent.value }; - export type IdResolver = ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type ValueResolver = ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + export type IdResolver = + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type ValueResolver = + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; export interface Type { - id: ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - value: ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + id: + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + value: + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; } } @@ -1138,20 +1879,40 @@ export namespace QueryResolvers { first?: number | null; } - export type UsersResolver = ( - parent: undefined, - args: ArgsUsers, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; + export type UsersResolver = + | (( + parent: undefined, + args: ArgsUsers, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsUsers, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; export interface Type { - users: ( - parent: undefined, - args: ArgsUsers, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; + users: + | (( + parent: undefined, + args: ArgsUsers, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsUsers, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; } } @@ -1160,20 +1921,40 @@ export namespace StudentResolvers { age: (parent: Student) => parent.age }; - export type AgeResolver = ( - parent: Student, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type AgeResolver = + | (( + parent: Student, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Student, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - age: ( - parent: Student, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + age: + | (( + parent: Student, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Student, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; __isTypeOf?: GraphQLIsTypeOfFn; } @@ -1184,20 +1965,40 @@ export namespace ProfessorResolvers { degree: (parent: Professor) => parent.degree }; - export type DegreeResolver = ( - parent: Professor, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; + export type DegreeResolver = + | (( + parent: Professor, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Professor, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; export interface Type { - degree: ( - parent: Professor, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; + degree: + | (( + parent: Professor, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Professor, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; __isTypeOf?: GraphQLIsTypeOfFn; } @@ -1209,34 +2010,74 @@ export namespace UserResolvers { name: (parent: User) => parent.name }; - export type IdResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NameResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type IdResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NameResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - id: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - name: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + id: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + name: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -1365,20 +2206,40 @@ import { User, Context } from \\"../../fixtures/context/types\\"; export namespace QueryResolvers { export const defaultResolvers = {}; - export type CreateUserResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | null | Promise; + export type CreateUserResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise; + }; export interface Type { - createUser: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | null | Promise; + createUser: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | null | Promise; + }; } } @@ -1387,20 +2248,40 @@ export namespace UserResolvers { id: (parent: User) => parent.id }; - export type IdResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type IdResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - id: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + id: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -1488,194 +2369,472 @@ export namespace QueryResolvers { id: NumberNode; } - export type IdResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type Custom_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | Promise; - - export type Custom_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | null | Promise; - - export type Custom_array_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => - | Array - | null - | Promise | null>; - - export type Custom_array_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - export type Custom_with_argResolver = ( - parent: undefined, - args: ArgsCustom_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | Promise; - - export type Custom_with_custom_argResolver = ( - parent: undefined, - args: ArgsCustom_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | Promise; - - export type Scalar_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type Scalar_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type Scalar_array_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - export type Scalar_array_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - export type Scalar_with_argResolver = ( - parent: undefined, - args: ArgsScalar_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type Scalar_with_custom_argResolver = ( - parent: undefined, - args: ArgsScalar_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + export type IdResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type Custom_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise; + }; + + export type Custom_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | null | Promise; + }; + + export type Custom_array_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null> + ) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + export type Custom_array_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + export type Custom_with_argResolver = + | (( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise; + }; + + export type Custom_with_custom_argResolver = + | (( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise; + }; + + export type Scalar_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type Scalar_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type Scalar_array_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + export type Scalar_array_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + export type Scalar_with_argResolver = + | (( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type Scalar_with_custom_argResolver = + | (( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; export interface Type { - id: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - custom_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | Promise; - - custom_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | null | Promise; - - custom_array_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => - | Array - | null - | Promise | null>; - - custom_array_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - custom_with_arg: ( - parent: undefined, - args: ArgsCustom_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | Promise; - - custom_with_custom_arg: ( - parent: undefined, - args: ArgsCustom_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => NumberNode | Promise; - - scalar_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - scalar_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - scalar_array_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - scalar_array_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - scalar_with_arg: ( - parent: undefined, - args: ArgsScalar_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - scalar_with_custom_arg: ( - parent: undefined, - args: ArgsScalar_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + id: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + custom_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise; + }; + + custom_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | null | Promise; + }; + + custom_array_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null> + ) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + custom_array_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + custom_with_arg: + | (( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise; + }; + + custom_with_custom_arg: + | (( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => NumberNode | Promise; + }; + + scalar_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + scalar_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + scalar_array_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null> + ) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + scalar_array_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + scalar_with_arg: + | (( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + scalar_with_custom_arg: + | (( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; } } @@ -1685,34 +2844,74 @@ export namespace NumberResolvers { value: (parent: NumberNode) => parent.value }; - export type IdResolver = ( - parent: NumberNode, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type ValueResolver = ( - parent: NumberNode, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + export type IdResolver = + | (( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type ValueResolver = + | (( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; export interface Type { - id: ( - parent: NumberNode, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - value: ( - parent: NumberNode, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + id: + | (( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + value: + | (( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: NumberNode, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; } } @@ -1836,188 +3035,461 @@ export namespace QueryResolvers { id: Number; } - export type IdResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type Custom_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - export type Custom_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | null | Promise; - - export type Custom_array_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - export type Custom_array_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - export type Custom_with_argResolver = ( - parent: undefined, - args: ArgsCustom_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - export type Custom_with_custom_argResolver = ( - parent: undefined, - args: ArgsCustom_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - export type Scalar_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type Scalar_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type Scalar_array_nullableResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - export type Scalar_array_requiredResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - export type Scalar_with_argResolver = ( - parent: undefined, - args: ArgsScalar_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type Scalar_with_custom_argResolver = ( - parent: undefined, - args: ArgsScalar_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + export type IdResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type Custom_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + export type Custom_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise; + }; + + export type Custom_array_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>; + }; + + export type Custom_array_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + export type Custom_with_argResolver = + | (( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + export type Custom_with_custom_argResolver = + | (( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + export type Scalar_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type Scalar_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type Scalar_array_nullableResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + export type Scalar_array_requiredResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + export type Scalar_with_argResolver = + | (( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type Scalar_with_custom_argResolver = + | (( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; export interface Type { - id: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - custom_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - custom_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | null | Promise; - - custom_array_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - custom_array_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - custom_with_arg: ( - parent: undefined, - args: ArgsCustom_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - custom_with_custom_arg: ( - parent: undefined, - args: ArgsCustom_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => Number | Promise; - - scalar_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - scalar_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - scalar_array_nullable: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | null | Promise | null>; - - scalar_array_required: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Array | Promise>; - - scalar_with_arg: ( - parent: undefined, - args: ArgsScalar_with_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - scalar_with_custom_arg: ( - parent: undefined, - args: ArgsScalar_with_custom_arg, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + id: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + custom_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + custom_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | null | Promise; + }; + + custom_array_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | null | Promise | null>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + custom_array_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + custom_with_arg: + | (( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + custom_with_custom_arg: + | (( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsCustom_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => Number | Promise; + }; + + scalar_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + scalar_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + scalar_array_nullable: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null> + ) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | Array + | null + | Promise | null>; + }; + + scalar_array_required: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Array | Promise>; + }; + + scalar_with_arg: + | (( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + scalar_with_custom_arg: + | (( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsScalar_with_custom_arg, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; } } @@ -2027,34 +3499,74 @@ export namespace NumberResolvers { value: (parent: Number) => parent.value }; - export type IdResolver = ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type ValueResolver = ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + export type IdResolver = + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type ValueResolver = + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; export interface Type { - id: ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - value: ( - parent: Number, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + id: + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + value: + | (( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Number, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; } } @@ -2200,20 +3712,40 @@ export namespace UserResolvers { name: (parent: User) => parent.name }; - export type NameResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type NameResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - name: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + name: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } diff --git a/packages/graphqlgen/tests/typescript/__snapshots__/large-schema.test.ts.snap b/packages/graphqlgen/tests/typescript/__snapshots__/large-schema.test.ts.snap index 1e11565f..4f3955fa 100644 --- a/packages/graphqlgen/tests/typescript/__snapshots__/large-schema.test.ts.snap +++ b/packages/graphqlgen/tests/typescript/__snapshots__/large-schema.test.ts.snap @@ -66,118 +66,278 @@ export namespace QueryResolvers { cities: string[]; } - export type TopExperiencesResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience[] | Promise; - - export type TopHomesResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Home[] | Promise; - - export type HomesInPriceRangeResolver = ( - parent: undefined, - args: ArgsHomesInPriceRange, - ctx: Context, - info: GraphQLResolveInfo - ) => Home[] | Promise; - - export type TopReservationsResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Reservation[] | Promise; - - export type FeaturedDestinationsResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Neighbourhood[] | Promise; - - export type ExperiencesByCityResolver = ( - parent: undefined, - args: ArgsExperiencesByCity, - ctx: Context, - info: GraphQLResolveInfo - ) => ExperiencesByCity[] | Promise; - - export type ViewerResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Viewer | null | Promise; - - export type MyLocationResolver = ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | null | Promise; + export type TopExperiencesResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise; + }; + + export type TopHomesResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise; + }; + + export type HomesInPriceRangeResolver = + | (( + parent: undefined, + args: ArgsHomesInPriceRange, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsHomesInPriceRange, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise; + }; + + export type TopReservationsResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Reservation[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Reservation[] | Promise; + }; + + export type FeaturedDestinationsResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Neighbourhood[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Neighbourhood[] | Promise; + }; + + export type ExperiencesByCityResolver = + | (( + parent: undefined, + args: ArgsExperiencesByCity, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperiencesByCity[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsExperiencesByCity, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperiencesByCity[] | Promise; + }; + + export type ViewerResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Viewer | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Viewer | null | Promise; + }; + + export type MyLocationResolver = + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | null | Promise; + }; export interface Type { - topExperiences: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience[] | Promise; - - topHomes: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Home[] | Promise; - - homesInPriceRange: ( - parent: undefined, - args: ArgsHomesInPriceRange, - ctx: Context, - info: GraphQLResolveInfo - ) => Home[] | Promise; - - topReservations: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Reservation[] | Promise; - - featuredDestinations: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Neighbourhood[] | Promise; - - experiencesByCity: ( - parent: undefined, - args: ArgsExperiencesByCity, - ctx: Context, - info: GraphQLResolveInfo - ) => ExperiencesByCity[] | Promise; - - viewer: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Viewer | null | Promise; - - myLocation: ( - parent: undefined, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | null | Promise; + topExperiences: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise; + }; + + topHomes: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise; + }; + + homesInPriceRange: + | (( + parent: undefined, + args: ArgsHomesInPriceRange, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsHomesInPriceRange, + ctx: Context, + info: GraphQLResolveInfo + ) => Home[] | Promise; + }; + + topReservations: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Reservation[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Reservation[] | Promise; + }; + + featuredDestinations: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Neighbourhood[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Neighbourhood[] | Promise; + }; + + experiencesByCity: + | (( + parent: undefined, + args: ArgsExperiencesByCity, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperiencesByCity[] | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsExperiencesByCity, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperiencesByCity[] | Promise; + }; + + viewer: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Viewer | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Viewer | null | Promise; + }; + + myLocation: + | (( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | null | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | null | Promise; + }; } } @@ -194,118 +354,278 @@ export namespace ExperienceResolvers { popularity: (parent: Experience) => parent.popularity }; - export type IdResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type CategoryResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => ExperienceCategory | null | Promise; - - export type TitleResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type LocationResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - export type PricePerPersonResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type ReviewsResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Review[] | Promise; - - export type PreviewResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture | Promise; - - export type PopularityResolver = ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type IdResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type CategoryResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperienceCategory | null | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperienceCategory | null | Promise; + }; + + export type TitleResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type LocationResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + export type PricePerPersonResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type ReviewsResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise; + }; + + export type PreviewResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | Promise; + }; + + export type PopularityResolver = + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - id: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - category: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => ExperienceCategory | null | Promise; - - title: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - location: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - pricePerPerson: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - reviews: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Review[] | Promise; - - preview: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture | Promise; - - popularity: ( - parent: Experience, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + id: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + category: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperienceCategory | null | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => ExperienceCategory | null | Promise; + }; + + title: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + location: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + pricePerPerson: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + reviews: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise; + }; + + preview: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | Promise; + }; + + popularity: + | (( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Experience, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -318,62 +638,142 @@ export namespace ExperienceCategoryResolvers { parent.experience === undefined ? null : parent.experience }; - export type IdResolver = ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type MainColorResolver = ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NameResolver = ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type ExperienceResolver = ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience | null | Promise; + export type IdResolver = + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type MainColorResolver = + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NameResolver = + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type ExperienceResolver = + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience | null | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience | null | Promise; + }; export interface Type { - id: ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - mainColor: ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - name: ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - experience: ( - parent: ExperienceCategory, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience | null | Promise; + id: + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + mainColor: + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + name: + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + experience: + | (( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience | null | Promise) + | { + fragment: string; + resolver: ( + parent: ExperienceCategory, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience | null | Promise; + }; } } @@ -388,76 +788,176 @@ export namespace LocationResolvers { parent.directions === undefined ? null : parent.directions }; - export type IdResolver = ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type LatResolver = ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type LngResolver = ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type AddressResolver = ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type DirectionsResolver = ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; + export type IdResolver = + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type LatResolver = + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type LngResolver = + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type AddressResolver = + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type DirectionsResolver = + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; export interface Type { - id: ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - lat: ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - lng: ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - address: ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - directions: ( - parent: Location, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; + id: + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + lat: + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + lng: + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + address: + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + directions: + | (( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Location, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; } } @@ -475,146 +975,346 @@ export namespace ReviewResolvers { value: (parent: Review) => parent.value }; - export type AccuracyResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CheckInResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CleanlinessResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CommunicationResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CreatedAtResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type LocationResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type StarsResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type TextResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type ValueResolver = ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type AccuracyResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CheckInResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CleanlinessResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CommunicationResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type LocationResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type StarsResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type TextResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type ValueResolver = + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - accuracy: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - checkIn: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - cleanliness: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - communication: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - createdAt: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - location: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - stars: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - text: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - value: ( - parent: Review, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + accuracy: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + checkIn: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + cleanliness: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + communication: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + createdAt: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + location: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + stars: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + text: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + value: + | (( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Review, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -624,34 +1324,74 @@ export namespace PictureResolvers { url: (parent: Picture) => parent.url }; - export type IdResolver = ( - parent: Picture, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type UrlResolver = ( - parent: Picture, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type IdResolver = + | (( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type UrlResolver = + | (( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - id: ( - parent: Picture, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - url: ( - parent: Picture, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + id: + | (( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + url: + | (( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Picture, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -671,104 +1411,244 @@ export namespace HomeResolvers { first?: number | null; } - export type IdResolver = ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NameResolver = ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type DescriptionResolver = ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NumRatingsResolver = ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type AvgRatingResolver = ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type PicturesResolver = ( - parent: Home, - args: ArgsPictures, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture[] | Promise; - - export type PerNightResolver = ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type IdResolver = + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NameResolver = + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type DescriptionResolver = + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NumRatingsResolver = + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type AvgRatingResolver = + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type PicturesResolver = + | (( + parent: Home, + args: ArgsPictures, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: ArgsPictures, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise; + }; + + export type PerNightResolver = + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - id: ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - name: ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - description: ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - numRatings: ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - avgRating: ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - pictures: ( - parent: Home, - args: ArgsPictures, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture[] | Promise; - - perNight: ( - parent: Home, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + id: + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + name: + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + description: + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + numRatings: + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + avgRating: + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + pictures: + | (( + parent: Home, + args: ArgsPictures, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: ArgsPictures, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise; + }; + + perNight: + | (( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Home, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -784,118 +1664,278 @@ export namespace ReservationResolvers { popularity: (parent: Reservation) => parent.popularity }; - export type IdResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type TitleResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type AvgPricePerPersonResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type PicturesResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture[] | Promise; - - export type LocationResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - export type IsCuratedResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type SlugResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type PopularityResolver = ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type IdResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type TitleResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type AvgPricePerPersonResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type PicturesResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise; + }; + + export type LocationResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + export type IsCuratedResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type SlugResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type PopularityResolver = + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - id: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - title: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - avgPricePerPerson: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - pictures: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture[] | Promise; - - location: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - isCurated: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - slug: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - popularity: ( - parent: Reservation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + id: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + title: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + avgPricePerPerson: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + pictures: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | Promise; + }; + + location: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + isCurated: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + slug: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + popularity: + | (( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Reservation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -911,104 +1951,244 @@ export namespace NeighbourhoodResolvers { popularity: (parent: Neighbourhood) => parent.popularity }; - export type IdResolver = ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NameResolver = ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type SlugResolver = ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type HomePreviewResolver = ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture | null | Promise; - - export type CityResolver = ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => City | Promise; - - export type FeaturedResolver = ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type PopularityResolver = ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type IdResolver = + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NameResolver = + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type SlugResolver = + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type HomePreviewResolver = + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise; + }; + + export type CityResolver = + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise; + }; + + export type FeaturedResolver = + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type PopularityResolver = + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - id: ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - name: ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - slug: ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - homePreview: ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture | null | Promise; - - city: ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => City | Promise; - - featured: ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - popularity: ( - parent: Neighbourhood, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + id: + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + name: + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + slug: + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + homePreview: + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise; + }; + + city: + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise; + }; + + featured: + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + popularity: + | (( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Neighbourhood, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -1018,34 +2198,74 @@ export namespace CityResolvers { name: (parent: City) => parent.name }; - export type IdResolver = ( - parent: City, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NameResolver = ( - parent: City, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type IdResolver = + | (( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NameResolver = + | (( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - id: ( - parent: City, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - name: ( - parent: City, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + id: + | (( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + name: + | (( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: City, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -1055,34 +2275,74 @@ export namespace ExperiencesByCityResolvers { city: (parent: ExperiencesByCity) => parent.city }; - export type ExperiencesResolver = ( - parent: ExperiencesByCity, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience[] | Promise; - - export type CityResolver = ( - parent: ExperiencesByCity, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => City | Promise; + export type ExperiencesResolver = + | (( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise) + | { + fragment: string; + resolver: ( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise; + }; + + export type CityResolver = + | (( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise) + | { + fragment: string; + resolver: ( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise; + }; export interface Type { - experiences: ( - parent: ExperiencesByCity, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience[] | Promise; - - city: ( - parent: ExperiencesByCity, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => City | Promise; + experiences: + | (( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise) + | { + fragment: string; + resolver: ( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | Promise; + }; + + city: + | (( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise) + | { + fragment: string; + resolver: ( + parent: ExperiencesByCity, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => City | Promise; + }; } } @@ -1092,34 +2352,74 @@ export namespace ViewerResolvers { bookings: (parent: Viewer) => parent.bookings }; - export type MeResolver = ( - parent: Viewer, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - export type BookingsResolver = ( - parent: Viewer, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking[] | Promise; + export type MeResolver = + | (( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + export type BookingsResolver = + | (( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise) + | { + fragment: string; + resolver: ( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise; + }; export interface Type { - me: ( - parent: Viewer, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - bookings: ( - parent: Viewer, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking[] | Promise; + me: + | (( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + bookings: + | (( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise) + | { + fragment: string; + resolver: ( + parent: Viewer, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise; + }; } } @@ -1147,286 +2447,686 @@ export namespace UserResolvers { updatedAt: (parent: User) => parent.updatedAt }; - export type BookingsResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking[] | null | Promise; - - export type CreatedAtResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type EmailResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type FirstNameResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type HostingExperiencesResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience[] | null | Promise; - - export type IdResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IsSuperHostResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type LastNameResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type LocationResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - export type NotificationsResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Notification[] | null | Promise; - - export type OwnedPlacesResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Place[] | null | Promise; - - export type PaymentAccountResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount[] | null | Promise; - - export type PhoneResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type ProfilePictureResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture | null | Promise; - - export type ReceivedMessagesResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Message[] | null | Promise; - - export type ResponseRateResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type ResponseTimeResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type SentMessagesResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Message[] | null | Promise; - - export type UpdatedAtResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type TokenResolver = ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type BookingsResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | null | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type EmailResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type FirstNameResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type HostingExperiencesResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | null | Promise; + }; + + export type IdResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IsSuperHostResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type LastNameResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type LocationResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + export type NotificationsResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Notification[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Notification[] | null | Promise; + }; + + export type OwnedPlacesResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place[] | null | Promise; + }; + + export type PaymentAccountResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount[] | null | Promise; + }; + + export type PhoneResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type ProfilePictureResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise; + }; + + export type ReceivedMessagesResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise; + }; + + export type ResponseRateResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type ResponseTimeResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type SentMessagesResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise; + }; + + export type UpdatedAtResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type TokenResolver = + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - bookings: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking[] | null | Promise; - - createdAt: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - email: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - firstName: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - hostingExperiences: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Experience[] | null | Promise; - - id: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - isSuperHost: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - lastName: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - location: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - notifications: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Notification[] | null | Promise; - - ownedPlaces: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Place[] | null | Promise; - - paymentAccount: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount[] | null | Promise; - - phone: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - profilePicture: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture | null | Promise; - - receivedMessages: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Message[] | null | Promise; - - responseRate: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - responseTime: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - sentMessages: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Message[] | null | Promise; - - updatedAt: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - token: ( - parent: User, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + bookings: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | null | Promise; + }; + + createdAt: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + email: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + firstName: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + hostingExperiences: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Experience[] | null | Promise; + }; + + id: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + isSuperHost: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + lastName: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + location: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + notifications: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Notification[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Notification[] | null | Promise; + }; + + ownedPlaces: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place[] | null | Promise; + }; + + paymentAccount: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount[] | null | Promise; + }; + + phone: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + profilePicture: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture | null | Promise; + }; + + receivedMessages: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise; + }; + + responseRate: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + responseTime: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + sentMessages: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Message[] | null | Promise; + }; + + updatedAt: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + token: + | (( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: User, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -1441,104 +3141,244 @@ export namespace BookingResolvers { payment: (parent: Booking) => parent.payment }; - export type IdResolver = ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type CreatedAtResolver = ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type BookeeResolver = ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - export type PlaceResolver = ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Place | Promise; - - export type StartDateResolver = ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type EndDateResolver = ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type PaymentResolver = ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Payment | Promise; + export type IdResolver = + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type BookeeResolver = + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + export type PlaceResolver = + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place | Promise; + }; + + export type StartDateResolver = + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type EndDateResolver = + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type PaymentResolver = + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment | Promise; + }; export interface Type { - id: ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - createdAt: ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - bookee: ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - place: ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Place | Promise; - - startDate: ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - endDate: ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - payment: ( - parent: Booking, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Payment | Promise; + id: + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + createdAt: + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + bookee: + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + place: + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Place | Promise; + }; + + startDate: + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + endDate: + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + payment: + | (( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment | Promise) + | { + fragment: string; + resolver: ( + parent: Booking, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment | Promise; + }; } } @@ -1571,314 +3411,754 @@ export namespace PlaceResolvers { popularity: (parent: Place) => parent.popularity }; - export type IdResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type NameResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type SizeResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PLACE_SIZES | null | Promise; - - export type ShortDescriptionResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type DescriptionResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type SlugResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type MaxGuestsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type NumBedroomsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type NumBedsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type NumBathsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type ReviewsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Review[] | Promise; - - export type AmenitiesResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Amenities | Promise; - - export type HostResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - export type PricingResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Pricing | Promise; - - export type LocationResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - export type ViewsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PlaceViews | Promise; - - export type GuestRequirementsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => GuestRequirements | null | Promise; - - export type PoliciesResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Policies | null | Promise; - - export type HouseRulesResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => HouseRules | null | Promise; - - export type BookingsResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking[] | Promise; - - export type PicturesResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture[] | null | Promise; - - export type PopularityResolver = ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type IdResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type NameResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type SizeResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PLACE_SIZES | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PLACE_SIZES | null | Promise; + }; + + export type ShortDescriptionResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type DescriptionResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type SlugResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type MaxGuestsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type NumBedroomsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type NumBedsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type NumBathsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type ReviewsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise; + }; + + export type AmenitiesResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Amenities | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Amenities | Promise; + }; + + export type HostResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + export type PricingResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Pricing | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Pricing | Promise; + }; + + export type LocationResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + export type ViewsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PlaceViews | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PlaceViews | Promise; + }; + + export type GuestRequirementsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => GuestRequirements | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => GuestRequirements | null | Promise; + }; + + export type PoliciesResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Policies | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Policies | null | Promise; + }; + + export type HouseRulesResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => HouseRules | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => HouseRules | null | Promise; + }; + + export type BookingsResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise; + }; + + export type PicturesResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | null | Promise; + }; + + export type PopularityResolver = + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - id: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - name: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - size: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PLACE_SIZES | null | Promise; - - shortDescription: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - description: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - slug: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - maxGuests: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - numBedrooms: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - numBeds: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - numBaths: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - reviews: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Review[] | Promise; - - amenities: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Amenities | Promise; - - host: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - pricing: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Pricing | Promise; - - location: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Location | Promise; - - views: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PlaceViews | Promise; - - guestRequirements: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => GuestRequirements | null | Promise; - - policies: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Policies | null | Promise; - - houseRules: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => HouseRules | null | Promise; - - bookings: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking[] | Promise; - - pictures: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Picture[] | null | Promise; - - popularity: ( - parent: Place, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + id: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + name: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + size: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PLACE_SIZES | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PLACE_SIZES | null | Promise; + }; + + shortDescription: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + description: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + slug: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + maxGuests: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + numBedrooms: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + numBeds: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + numBaths: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + reviews: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Review[] | Promise; + }; + + amenities: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Amenities | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Amenities | Promise; + }; + + host: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + pricing: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Pricing | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Pricing | Promise; + }; + + location: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Location | Promise; + }; + + views: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PlaceViews | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PlaceViews | Promise; + }; + + guestRequirements: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => GuestRequirements | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => GuestRequirements | null | Promise; + }; + + policies: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Policies | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Policies | null | Promise; + }; + + houseRules: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => HouseRules | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => HouseRules | null | Promise; + }; + + bookings: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking[] | Promise; + }; + + pictures: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | null | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Picture[] | null | Promise; + }; + + popularity: + | (( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Place, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -1931,580 +4211,1400 @@ export namespace AmenitiesResolvers { wirelessInternet: (parent: Amenities) => parent.wirelessInternet }; - export type AirConditioningResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type BabyBathResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type BabyMonitorResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type BabysitterRecommendationsResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type BathtubResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type BreakfastResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type BuzzerWirelessIntercomResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type CableTvResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type ChangingTableResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type ChildrensBooksAndToysResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type ChildrensDinnerwareResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type CribResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type DoormanResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type DryerResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type ElevatorResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type EssentialsResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type FamilyKidFriendlyResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type FreeParkingOnPremisesResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type FreeParkingOnStreetResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type GymResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type HairDryerResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type HangersResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type HeatingResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type HotTubResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type IdResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IndoorFireplaceResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type InternetResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type IronResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type KitchenResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type LaptopFriendlyWorkspaceResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type PaidParkingOffPremisesResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type PetsAllowedResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type PoolResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type PrivateEntranceResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type ShampooResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type SmokingAllowedResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type SuitableForEventsResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type TvResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type WasherResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type WheelchairAccessibleResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type WirelessInternetResolver = ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + export type AirConditioningResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type BabyBathResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type BabyMonitorResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type BabysitterRecommendationsResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type BathtubResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type BreakfastResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type BuzzerWirelessIntercomResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type CableTvResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type ChangingTableResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type ChildrensBooksAndToysResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type ChildrensDinnerwareResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type CribResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type DoormanResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type DryerResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type ElevatorResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type EssentialsResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type FamilyKidFriendlyResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type FreeParkingOnPremisesResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type FreeParkingOnStreetResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type GymResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type HairDryerResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type HangersResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type HeatingResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type HotTubResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type IdResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IndoorFireplaceResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type InternetResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type IronResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type KitchenResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type LaptopFriendlyWorkspaceResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type PaidParkingOffPremisesResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type PetsAllowedResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type PoolResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type PrivateEntranceResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type ShampooResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type SmokingAllowedResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type SuitableForEventsResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type TvResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type WasherResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type WheelchairAccessibleResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type WirelessInternetResolver = + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; export interface Type { - airConditioning: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - babyBath: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - babyMonitor: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - babysitterRecommendations: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - bathtub: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - breakfast: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - buzzerWirelessIntercom: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - cableTv: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - changingTable: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - childrensBooksAndToys: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - childrensDinnerware: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - crib: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - doorman: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - dryer: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - elevator: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - essentials: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - familyKidFriendly: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - freeParkingOnPremises: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - freeParkingOnStreet: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - gym: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - hairDryer: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - hangers: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - heating: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - hotTub: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - id: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - indoorFireplace: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - internet: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - iron: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - kitchen: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - laptopFriendlyWorkspace: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - paidParkingOffPremises: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - petsAllowed: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - pool: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - privateEntrance: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - shampoo: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - smokingAllowed: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - suitableForEvents: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - tv: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - washer: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - wheelchairAccessible: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - wirelessInternet: ( - parent: Amenities, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + airConditioning: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + babyBath: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + babyMonitor: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + babysitterRecommendations: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + bathtub: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + breakfast: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + buzzerWirelessIntercom: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + cableTv: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + changingTable: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + childrensBooksAndToys: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + childrensDinnerware: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + crib: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + doorman: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + dryer: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + elevator: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + essentials: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + familyKidFriendly: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + freeParkingOnPremises: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + freeParkingOnStreet: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + gym: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + hairDryer: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + hangers: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + heating: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + hotTub: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + id: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + indoorFireplace: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + internet: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + iron: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + kitchen: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + laptopFriendlyWorkspace: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + paidParkingOffPremises: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + petsAllowed: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + pool: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + privateEntrance: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + shampoo: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + smokingAllowed: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + suitableForEvents: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + tv: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + washer: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + wheelchairAccessible: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + wirelessInternet: + | (( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Amenities, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; } } @@ -2532,188 +5632,448 @@ export namespace PricingResolvers { parent.weeklyDiscount === undefined ? null : parent.weeklyDiscount }; - export type AverageMonthlyResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type AverageWeeklyResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type BasePriceResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CleaningFeeResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type CurrencyResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => CURRENCY | null | Promise; - - export type ExtraGuestsResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type IdResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type MonthlyDiscountResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type PerNightResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type SecurityDepositResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type SmartPricingResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type WeekendPricingResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - export type WeeklyDiscountResolver = ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + export type AverageMonthlyResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type AverageWeeklyResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type BasePriceResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CleaningFeeResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type CurrencyResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => CURRENCY | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => CURRENCY | null | Promise; + }; + + export type ExtraGuestsResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type IdResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type MonthlyDiscountResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type PerNightResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type SecurityDepositResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type SmartPricingResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type WeekendPricingResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + export type WeeklyDiscountResolver = + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; export interface Type { - averageMonthly: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - averageWeekly: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - basePrice: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - cleaningFee: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - currency: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => CURRENCY | null | Promise; - - extraGuests: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - id: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - monthlyDiscount: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - perNight: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - securityDeposit: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - smartPricing: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - weekendPricing: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; - - weeklyDiscount: ( - parent: Pricing, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | null | Promise; + averageMonthly: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + averageWeekly: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + basePrice: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + cleaningFee: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + currency: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => CURRENCY | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => CURRENCY | null | Promise; + }; + + extraGuests: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + id: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + monthlyDiscount: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + perNight: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + securityDeposit: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + smartPricing: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + weekendPricing: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; + + weeklyDiscount: + | (( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise) + | { + fragment: string; + resolver: ( + parent: Pricing, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | null | Promise; + }; } } @@ -2723,34 +6083,74 @@ export namespace PlaceViewsResolvers { lastWeek: (parent: PlaceViews) => parent.lastWeek }; - export type IdResolver = ( - parent: PlaceViews, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type LastWeekResolver = ( - parent: PlaceViews, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type IdResolver = + | (( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type LastWeekResolver = + | (( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - id: ( - parent: PlaceViews, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - lastWeek: ( - parent: PlaceViews, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + id: + | (( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + lastWeek: + | (( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: PlaceViews, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -2764,62 +6164,142 @@ export namespace GuestRequirementsResolvers { parent.recommendationsFromOtherHosts }; - export type GovIssuedIdResolver = ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type GuestTripInformationResolver = ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - export type IdResolver = ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type RecommendationsFromOtherHostsResolver = ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + export type GovIssuedIdResolver = + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type GuestTripInformationResolver = + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + export type IdResolver = + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type RecommendationsFromOtherHostsResolver = + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; export interface Type { - govIssuedId: ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - guestTripInformation: ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; - - id: ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - recommendationsFromOtherHosts: ( - parent: GuestRequirements, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + govIssuedId: + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + guestTripInformation: + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; + + id: + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + recommendationsFromOtherHosts: + | (( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: GuestRequirements, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; } } @@ -2833,90 +6313,210 @@ export namespace PoliciesResolvers { updatedAt: (parent: Policies) => parent.updatedAt }; - export type CheckInEndTimeResolver = ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CheckInStartTimeResolver = ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CheckoutTimeResolver = ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type CreatedAtResolver = ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type UpdatedAtResolver = ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type CheckInEndTimeResolver = + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CheckInStartTimeResolver = + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CheckoutTimeResolver = + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type UpdatedAtResolver = + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - checkInEndTime: ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - checkInStartTime: ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - checkoutTime: ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - createdAt: ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - updatedAt: ( - parent: Policies, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + checkInEndTime: + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + checkInStartTime: + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + checkoutTime: + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + createdAt: + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + updatedAt: + | (( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Policies, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -2945,132 +6545,312 @@ export namespace HouseRulesResolvers { updatedAt: (parent: HouseRules) => parent.updatedAt }; - export type AdditionalRulesResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - export type CreatedAtResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type PartiesAndEventsAllowedResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type PetsAllowedResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type SmokingAllowedResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type SuitableForChildrenResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type SuitableForInfantsResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - export type UpdatedAtResolver = ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type AdditionalRulesResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type PartiesAndEventsAllowedResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type PetsAllowedResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type SmokingAllowedResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type SuitableForChildrenResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type SuitableForInfantsResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + export type UpdatedAtResolver = + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - additionalRules: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | null | Promise; - - createdAt: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - partiesAndEventsAllowed: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - petsAllowed: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - smokingAllowed: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - suitableForChildren: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - suitableForInfants: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | null | Promise; - - updatedAt: ( - parent: HouseRules, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + additionalRules: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | null | Promise; + }; + + createdAt: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + partiesAndEventsAllowed: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + petsAllowed: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + smokingAllowed: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + suitableForChildren: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + suitableForInfants: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | null | Promise; + }; + + updatedAt: + | (( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: HouseRules, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -3083,76 +6863,176 @@ export namespace PaymentResolvers { serviceFee: (parent: Payment) => parent.serviceFee }; - export type BookingResolver = ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking | Promise; - - export type CreatedAtResolver = ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type PaymentMethodResolver = ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount | Promise; - - export type ServiceFeeResolver = ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + export type BookingResolver = + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type PaymentMethodResolver = + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise; + }; + + export type ServiceFeeResolver = + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; export interface Type { - booking: ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Booking | Promise; - - createdAt: ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - paymentMethod: ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount | Promise; - - serviceFee: ( - parent: Payment, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; + booking: + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Booking | Promise; + }; + + createdAt: + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + paymentMethod: + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise; + }; + + serviceFee: + | (( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: Payment, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; } } @@ -3170,104 +7050,254 @@ export namespace PaymentAccountResolvers { parent.creditcard === undefined ? null : parent.creditcard }; - export type IdResolver = ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type CreatedAtResolver = ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type TypeResolver = ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PAYMENT_PROVIDER | null | Promise; - - export type UserResolver = ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - export type PaymentsResolver = ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Payment[] | Promise; - - export type PaypalResolver = ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaypalInformation | null | Promise; - - export type CreditcardResolver = ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => CreditCardInformation | null | Promise; + export type IdResolver = + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type TypeResolver = + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PAYMENT_PROVIDER | null | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PAYMENT_PROVIDER | null | Promise; + }; + + export type UserResolver = + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + export type PaymentsResolver = + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment[] | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment[] | Promise; + }; + + export type PaypalResolver = + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaypalInformation | null | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaypalInformation | null | Promise; + }; + + export type CreditcardResolver = + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => CreditCardInformation | null | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | CreditCardInformation + | null + | Promise; + }; export interface Type { - id: ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - createdAt: ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - type: ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PAYMENT_PROVIDER | null | Promise; - - user: ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; - - payments: ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => Payment[] | Promise; - - paypal: ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaypalInformation | null | Promise; - - creditcard: ( - parent: PaymentAccount, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => CreditCardInformation | null | Promise; + id: + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + createdAt: + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + type: + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PAYMENT_PROVIDER | null | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PAYMENT_PROVIDER | null | Promise; + }; + + user: + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; + + payments: + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment[] | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => Payment[] | Promise; + }; + + paypal: + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaypalInformation | null | Promise) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaypalInformation | null | Promise; + }; + + creditcard: + | (( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | CreditCardInformation + | null + | Promise + ) + | { + fragment: string; + resolver: ( + parent: PaymentAccount, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => + | CreditCardInformation + | null + | Promise; + }; } } @@ -3279,62 +7309,142 @@ export namespace PaypalInformationResolvers { paymentAccount: (parent: PaypalInformation) => parent.paymentAccount }; - export type CreatedAtResolver = ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type EmailResolver = ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type PaymentAccountResolver = ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount | Promise; + export type CreatedAtResolver = + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type EmailResolver = + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type PaymentAccountResolver = + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise; + }; export interface Type { - createdAt: ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - email: ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - paymentAccount: ( - parent: PaypalInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount | Promise; + createdAt: + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + email: + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + paymentAccount: + | (( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise) + | { + fragment: string; + resolver: ( + parent: PaypalInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | Promise; + }; } } @@ -3354,160 +7464,380 @@ export namespace CreditCardInformationResolvers { securityCode: (parent: CreditCardInformation) => parent.securityCode }; - export type CardNumberResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type CountryResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type CreatedAtResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type ExpiresOnMonthResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type ExpiresOnYearResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - export type FirstNameResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type LastNameResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type PaymentAccountResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount | null | Promise; - - export type PostalCodeResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type SecurityCodeResolver = ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type CardNumberResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type CountryResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type CreatedAtResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type ExpiresOnMonthResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type ExpiresOnYearResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + export type FirstNameResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type LastNameResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type PaymentAccountResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | null | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | null | Promise; + }; + + export type PostalCodeResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type SecurityCodeResolver = + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - cardNumber: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - country: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - createdAt: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - expiresOnMonth: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - expiresOnYear: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => number | Promise; - - firstName: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - lastName: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - paymentAccount: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => PaymentAccount | null | Promise; - - postalCode: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - securityCode: ( - parent: CreditCardInformation, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + cardNumber: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + country: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + createdAt: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + expiresOnMonth: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + expiresOnYear: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => number | Promise; + }; + + firstName: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + lastName: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + paymentAccount: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | null | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => PaymentAccount | null | Promise; + }; + + postalCode: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + securityCode: + | (( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: CreditCardInformation, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -3522,90 +7852,210 @@ export namespace NotificationResolvers { user: (parent: Notification) => parent.user }; - export type CreatedAtResolver = ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type LinkResolver = ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type ReadDateResolver = ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type TypeResolver = ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => NOTIFICATION_TYPE | null | Promise; - - export type UserResolver = ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; + export type CreatedAtResolver = + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type LinkResolver = + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type ReadDateResolver = + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type TypeResolver = + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NOTIFICATION_TYPE | null | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NOTIFICATION_TYPE | null | Promise; + }; + + export type UserResolver = + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; export interface Type { - createdAt: ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - link: ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - readDate: ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - type: ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => NOTIFICATION_TYPE | null | Promise; - - user: ( - parent: Notification, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; + createdAt: + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + link: + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + readDate: + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + type: + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NOTIFICATION_TYPE | null | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => NOTIFICATION_TYPE | null | Promise; + }; + + user: + | (( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: Notification, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; } } @@ -3617,62 +8067,142 @@ export namespace MessageResolvers { readAt: (parent: Message) => parent.readAt }; - export type CreatedAtResolver = ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type DeliveredAtResolver = ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type IdResolver = ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type ReadAtResolver = ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + export type CreatedAtResolver = + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type DeliveredAtResolver = + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type IdResolver = + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type ReadAtResolver = + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; export interface Type { - createdAt: ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - deliveredAt: ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - id: ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - readAt: ( - parent: Message, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; + createdAt: + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + deliveredAt: + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + id: + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + readAt: + | (( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: Message, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; } } @@ -3710,62 +8240,142 @@ export namespace MutationResolvers { numGuests: number; } - export type SignupResolver = ( - parent: undefined, - args: ArgsSignup, - ctx: Context, - info: GraphQLResolveInfo - ) => AuthPayload | Promise; - - export type LoginResolver = ( - parent: undefined, - args: ArgsLogin, - ctx: Context, - info: GraphQLResolveInfo - ) => AuthPayload | Promise; - - export type AddPaymentMethodResolver = ( - parent: undefined, - args: ArgsAddPaymentMethod, - ctx: Context, - info: GraphQLResolveInfo - ) => MutationResult | Promise; - - export type BookResolver = ( - parent: undefined, - args: ArgsBook, - ctx: Context, - info: GraphQLResolveInfo - ) => MutationResult | Promise; + export type SignupResolver = + | (( + parent: undefined, + args: ArgsSignup, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsSignup, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise; + }; + + export type LoginResolver = + | (( + parent: undefined, + args: ArgsLogin, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsLogin, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise; + }; + + export type AddPaymentMethodResolver = + | (( + parent: undefined, + args: ArgsAddPaymentMethod, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddPaymentMethod, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise; + }; + + export type BookResolver = + | (( + parent: undefined, + args: ArgsBook, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsBook, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise; + }; export interface Type { - signup: ( - parent: undefined, - args: ArgsSignup, - ctx: Context, - info: GraphQLResolveInfo - ) => AuthPayload | Promise; - - login: ( - parent: undefined, - args: ArgsLogin, - ctx: Context, - info: GraphQLResolveInfo - ) => AuthPayload | Promise; - - addPaymentMethod: ( - parent: undefined, - args: ArgsAddPaymentMethod, - ctx: Context, - info: GraphQLResolveInfo - ) => MutationResult | Promise; - - book: ( - parent: undefined, - args: ArgsBook, - ctx: Context, - info: GraphQLResolveInfo - ) => MutationResult | Promise; + signup: + | (( + parent: undefined, + args: ArgsSignup, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsSignup, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise; + }; + + login: + | (( + parent: undefined, + args: ArgsLogin, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsLogin, + ctx: Context, + info: GraphQLResolveInfo + ) => AuthPayload | Promise; + }; + + addPaymentMethod: + | (( + parent: undefined, + args: ArgsAddPaymentMethod, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsAddPaymentMethod, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise; + }; + + book: + | (( + parent: undefined, + args: ArgsBook, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise) + | { + fragment: string; + resolver: ( + parent: undefined, + args: ArgsBook, + ctx: Context, + info: GraphQLResolveInfo + ) => MutationResult | Promise; + }; } } @@ -3775,34 +8385,74 @@ export namespace AuthPayloadResolvers { user: (parent: AuthPayload) => parent.user }; - export type TokenResolver = ( - parent: AuthPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - export type UserResolver = ( - parent: AuthPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; + export type TokenResolver = + | (( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + export type UserResolver = + | (( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; export interface Type { - token: ( - parent: AuthPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => string | Promise; - - user: ( - parent: AuthPayload, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => User | Promise; + token: + | (( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise) + | { + fragment: string; + resolver: ( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => string | Promise; + }; + + user: + | (( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise) + | { + fragment: string; + resolver: ( + parent: AuthPayload, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => User | Promise; + }; } } @@ -3811,20 +8461,40 @@ export namespace MutationResultResolvers { success: (parent: MutationResult) => parent.success }; - export type SuccessResolver = ( - parent: MutationResult, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + export type SuccessResolver = + | (( + parent: MutationResult, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: MutationResult, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; export interface Type { - success: ( - parent: MutationResult, - args: {}, - ctx: Context, - info: GraphQLResolveInfo - ) => boolean | Promise; + success: + | (( + parent: MutationResult, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise) + | { + fragment: string; + resolver: ( + parent: MutationResult, + args: {}, + ctx: Context, + info: GraphQLResolveInfo + ) => boolean | Promise; + }; } }