Files
landscape-template/functions/graphql/nexus-typegen.ts
2022-03-24 17:18:56 +02:00

338 lines
9.0 KiB
TypeScript

/**
* This file was generated by Nexus Schema
* Do not make changes to this file directly
*/
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
}
export interface NexusGenObjects {
Award: { // root type
id: number; // Int!
image: string; // String!
title: string; // String!
url: string; // String!
}
Category: { // root type
cover_image?: string | null; // String
icon?: string | null; // String
id: number; // Int!
title: string; // String!
}
LnurlDetails: { // root type
commentAllowed?: number | null; // Int
maxSendable?: number | null; // Int
metadata?: string | null; // String
minSendable?: number | null; // Int
}
Mutation: {};
Project: { // root type
cover_image: string; // String!
description: string; // String!
id: number; // Int!
lightning_address?: string | null; // String
lnurl_callback_url?: string | null; // String
screenshots: string[]; // [String!]!
thumbnail_image: string; // String!
title: string; // String!
votes_count: number; // Int!
website: string; // String!
}
Query: {};
Tag: { // root type
id: number; // Int!
title: string; // String!
}
Vote: { // root type
amount_in_sat: number; // Int!
id: number; // Int!
paid: boolean; // Boolean!
payment_hash: string; // String!
payment_request: string; // String!
}
}
export interface NexusGenInterfaces {
}
export interface NexusGenUnions {
}
export type NexusGenRootTypes = NexusGenObjects
export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars
export interface NexusGenFieldTypes {
Award: { // field return type
id: number; // Int!
image: string; // String!
project: NexusGenRootTypes['Project']; // Project!
title: string; // String!
url: string; // String!
}
Category: { // field return type
apps_count: number; // Int!
cover_image: string | null; // String
icon: string | null; // String
id: number; // Int!
project: NexusGenRootTypes['Project'][]; // [Project!]!
title: string; // String!
votes_sum: number; // Int!
}
LnurlDetails: { // field return type
commentAllowed: number | null; // Int
maxSendable: number | null; // Int
metadata: string | null; // String
minSendable: number | null; // Int
}
Mutation: { // field return type
confirmVote: NexusGenRootTypes['Vote']; // Vote!
vote: NexusGenRootTypes['Vote']; // Vote!
}
Project: { // field return type
awards: NexusGenRootTypes['Award'][]; // [Award!]!
category: NexusGenRootTypes['Category']; // Category!
cover_image: string; // String!
description: string; // String!
id: number; // Int!
lightning_address: string | null; // String
lnurl_callback_url: string | null; // String
screenshots: string[]; // [String!]!
tags: NexusGenRootTypes['Tag'][]; // [Tag!]!
thumbnail_image: string; // String!
title: string; // String!
votes_count: number; // Int!
website: string; // String!
}
Query: { // field return type
allCategories: NexusGenRootTypes['Category'][]; // [Category!]!
allProjects: NexusGenRootTypes['Project'][]; // [Project!]!
getCategory: NexusGenRootTypes['Category']; // Category!
getLnurlDetailsForProject: NexusGenRootTypes['LnurlDetails']; // LnurlDetails!
getProject: NexusGenRootTypes['Project']; // Project!
hottestProjects: NexusGenRootTypes['Project'][]; // [Project!]!
newProjects: NexusGenRootTypes['Project'][]; // [Project!]!
projectsByCategory: NexusGenRootTypes['Project'][]; // [Project!]!
searchProjects: NexusGenRootTypes['Project'][]; // [Project!]!
}
Tag: { // field return type
id: number; // Int!
project: NexusGenRootTypes['Project'][]; // [Project!]!
title: string; // String!
}
Vote: { // field return type
amount_in_sat: number; // Int!
id: number; // Int!
paid: boolean; // Boolean!
payment_hash: string; // String!
payment_request: string; // String!
project: NexusGenRootTypes['Project']; // Project!
}
}
export interface NexusGenFieldTypeNames {
Award: { // field return type name
id: 'Int'
image: 'String'
project: 'Project'
title: 'String'
url: 'String'
}
Category: { // field return type name
apps_count: 'Int'
cover_image: 'String'
icon: 'String'
id: 'Int'
project: 'Project'
title: 'String'
votes_sum: 'Int'
}
LnurlDetails: { // field return type name
commentAllowed: 'Int'
maxSendable: 'Int'
metadata: 'String'
minSendable: 'Int'
}
Mutation: { // field return type name
confirmVote: 'Vote'
vote: 'Vote'
}
Project: { // field return type name
awards: 'Award'
category: 'Category'
cover_image: 'String'
description: 'String'
id: 'Int'
lightning_address: 'String'
lnurl_callback_url: 'String'
screenshots: 'String'
tags: 'Tag'
thumbnail_image: 'String'
title: 'String'
votes_count: 'Int'
website: 'String'
}
Query: { // field return type name
allCategories: 'Category'
allProjects: 'Project'
getCategory: 'Category'
getLnurlDetailsForProject: 'LnurlDetails'
getProject: 'Project'
hottestProjects: 'Project'
newProjects: 'Project'
projectsByCategory: 'Project'
searchProjects: 'Project'
}
Tag: { // field return type name
id: 'Int'
project: 'Project'
title: 'String'
}
Vote: { // field return type name
amount_in_sat: 'Int'
id: 'Int'
paid: 'Boolean'
payment_hash: 'String'
payment_request: 'String'
project: 'Project'
}
}
export interface NexusGenArgTypes {
Mutation: {
confirmVote: { // args
payment_request: string; // String!
preimage: string; // String!
}
vote: { // args
amount_in_sat: number; // Int!
project_id: number; // Int!
}
}
Query: {
allProjects: { // args
skip?: number | null; // Int
take: number | null; // Int
}
getCategory: { // args
id: number; // Int!
}
getLnurlDetailsForProject: { // args
project_id: number; // Int!
}
getProject: { // args
id: number; // Int!
}
hottestProjects: { // args
skip?: number | null; // Int
take: number | null; // Int
}
newProjects: { // args
skip?: number | null; // Int
take: number | null; // Int
}
projectsByCategory: { // args
category_id: number; // Int!
skip?: number | null; // Int
take: number | null; // Int
}
searchProjects: { // args
search: string; // String!
skip?: number | null; // Int
take: number | null; // Int
}
}
}
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: any;
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 NexusGenPluginInputTypeConfig<TypeName extends string> {
}
interface NexusGenPluginFieldConfig<TypeName extends string, FieldName extends string> {
}
interface NexusGenPluginInputFieldConfig<TypeName extends string, FieldName extends string> {
}
interface NexusGenPluginSchemaConfig {
}
interface NexusGenPluginArgConfig {
}
}