/** This file was generated by Nexus Schema Do not make changes to this file directly */ import { core } from 'nexus' ; import { FieldAuthorizeResolver } from 'nexus/dist/plugins/fieldAuthorizePlugin' ; import { Context } from './../data-sources/Context' ; import * as db from './ghost-db-types' ; declare global { interface NexusGenCustomInputMethods < TypeName extends string > { /**
         * A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the
         * RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
         */ date < FieldName extends string > ( fieldName , opts ? ) : void ; } } declare global { interface NexusGenCustomOutputMethods < TypeName extends string > { /**
         * A date string, such as 2007-12-03, compliant with the `full-date` format outlined in section 5.6 of the
         * RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
         */ date < FieldName extends string > ( fieldName , ... opts ) : void ; } } declare global { interface NexusGen extends NexusGenTypes { } } export interface NexusGenInputs { } export interface NexusGenEnums { } export interface NexusGenScalars { String : string ; Int : number ; Float : number ; Boolean : boolean ; ID : string ; Date : Date ; } export interface NexusGenObjects { Post : db . Posts ; Query : { } ; User : db . Users ; } export interface NexusGenInterfaces { } export interface NexusGenUnions { } export type NexusGenRootTypes = NexusGenObjects ; export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars ; export interface NexusGenFieldTypes { Post : { html : string ; slug : string ; title : string ; uuid : string ; } ; Query : { me : NexusGenRootTypes [ 'User' ] | null ; postById : NexusGenRootTypes [ 'Post' ] ; userById : NexusGenRootTypes [ 'User' ] ; } ; User : { accessibility : string | null ; bio : string | null ; coverImage : string | null ; createdAt : NexusGenScalars [ 'Date' ] ; createdBy : NexusGenRootTypes [ 'User' ] ; email : string ; facebook : string | null ; ghostAuthAccessToken : string | null ; ghostAuthId : string | null ; id : string ; lastSeen : NexusGenScalars [ 'Date' ] | null ; locale : string | null ; location : string | null ; metaDescription : string | null ; metaTitle : string | null ; name : string ; profileImage : string | null ; slug : string ; status : string ; tour : string | null ; twitter : string | null ; updatedAt : NexusGenScalars [ 'Date' ] | null ; updatedBy : string | null ; visibility : string ; website : string | null ; } ; } export interface NexusGenFieldTypeNames { Post : { html : 'String' ; slug : 'String' ; title : 'String' ; uuid : 'String' ; } ; Query : { me : 'User' ; postById : 'Post' ; userById : 'User' ; } ; User : { accessibility : 'String' ; bio : 'String' ; coverImage : 'String' ; createdAt : 'Date' ; createdBy : 'User' ; email : 'String' ; facebook : 'String' ; ghostAuthAccessToken : 'String' ; ghostAuthId : 'String' ; id : 'String' ; lastSeen : 'Date' ; locale : 'String' ; location : 'String' ; metaDescription : 'String' ; metaTitle : 'String' ; name : 'String' ; profileImage : 'String' ; slug : 'String' ; status : 'String' ; tour : 'String' ; twitter : 'String' ; updatedAt : 'Date' ; updatedBy : 'String' ; visibility : 'String' ; website : 'String' ; } ; } export interface NexusGenArgTypes { Query : { postById : { id : string ; } ; userById : { id : string ; } ; } ; } export interface NexusGenAbstractTypeMembers { } export interface NexusGenTypeInterfaces { } export type NexusGenObjectNames = keyof NexusGenObjects ; export type NexusGenInputNames = never ; export type NexusGenEnumNames = never ; export type NexusGenInterfaceNames = never ; export type NexusGenScalarNames = keyof NexusGenScalars ; export type NexusGenUnionNames = never ; export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never ; export type NexusGenAbstractsUsingStrategyResolveType = never ; export type NexusGenFeaturesConfig = { abstractTypeStrategies : { isTypeOf : false ; resolveType : true ; __typename : false ; } ; } ; export interface NexusGenTypes { context : Context ; inputTypes : NexusGenInputs ; rootTypes : NexusGenRootTypes ; inputTypeShapes : NexusGenInputs & NexusGenEnums & NexusGenScalars ; argTypes : NexusGenArgTypes ; fieldTypes : NexusGenFieldTypes ; fieldTypeNames : NexusGenFieldTypeNames ; allTypes : NexusGenAllTypes ; typeInterfaces : NexusGenTypeInterfaces ; objectNames : NexusGenObjectNames ; inputNames : NexusGenInputNames ; enumNames : NexusGenEnumNames ; interfaceNames : NexusGenInterfaceNames ; scalarNames : NexusGenScalarNames ; unionNames : NexusGenUnionNames ; allInputTypes : NexusGenTypes [ 'inputNames' ] | NexusGenTypes [ 'enumNames' ] | NexusGenTypes [ 'scalarNames' ] ; allOutputTypes : NexusGenTypes [ 'objectNames' ] | NexusGenTypes [ 'enumNames' ] | NexusGenTypes [ 'unionNames' ] | NexusGenTypes [ 'interfaceNames' ] | NexusGenTypes [ 'scalarNames' ] ; allNamedTypes : NexusGenTypes [ 'allInputTypes' ] | NexusGenTypes [ 'allOutputTypes' ] ; abstractTypes : NexusGenTypes [ 'interfaceNames' ] | NexusGenTypes [ 'unionNames' ] ; abstractTypeMembers : NexusGenAbstractTypeMembers ; objectsUsingAbstractStrategyIsTypeOf : NexusGenObjectsUsingAbstractStrategyIsTypeOf ; abstractsUsingStrategyResolveType : NexusGenAbstractsUsingStrategyResolveType ; features : NexusGenFeaturesConfig ; } declare global { interface NexusGenPluginTypeConfig < TypeName extends string > { } interface NexusGenPluginFieldConfig < TypeName extends string , FieldName extends string > { /**
         * Authorization for an individual field. Returning "true" or "Promise<true>" means the field can be
         * accessed. Returning "false" or "Promise<false>" will respond with a "Not Authorized" error for the
         * field. Returning or throwing an error will also prevent the resolver from executing.
         */ authorize ? : FieldAuthorizeResolver < TypeName , FieldName > ; default see declarativeWrappingPlugin nullable ? : boolean ; see declarativeWrappingPlugin list ? : true | boolean [ ] ; default see declarativeWrappingPlugin required ? : boolean ; } interface NexusGenPluginInputFieldConfig < TypeName extends string , FieldName extends string > { default see declarativeWrappingPlugin nullable ? : boolean ; see declarativeWrappingPlugin list ? : true | boolean [ ] ; default see declarativeWrappingPlugin required ? : boolean ; } interface NexusGenPluginSchemaConfig { } interface NexusGenPluginArgConfig { default see declarativeWrappingPlugin nullable ? : boolean ; see declarativeWrappingPlugin list ? : true | boolean [ ] ; default see declarativeWrappingPlugin required ? : boolean ; } }