import { InputType, SchemaTypes } from '../types'; import { ArgBuilder, FieldRequiredness, InputFieldRef, InputShapeFromTypeParam, NormalizeArgs } from '..'; export default class InputFieldBuilder { builder: GiraphQLSchemaTypes.SchemaBuilder; kind: Kind; typename: string; /** * Create a Boolean input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ boolean: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef extends Req ? Types["DefaultInputFieldRequiredness"] extends false ? ("Boolean" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Boolean"] : never) | null | undefined : "Boolean" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Boolean"] : never : Req extends true ? "Boolean" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Boolean"] : never : ("Boolean" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Boolean"] : never) | null | undefined, Kind>; /** * Create a Float input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ float: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef extends Req ? Types["DefaultInputFieldRequiredness"] extends false ? ("Float" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Float"] : never) | null | undefined : "Float" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Float"] : never : Req extends true ? "Float" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Float"] : never : ("Float" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Float"] : never) | null | undefined, Kind>; /** * Create a ID input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ id: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef extends Req ? Types["DefaultInputFieldRequiredness"] extends false ? ("ID" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "ID"] : never) | null | undefined : "ID" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "ID"] : never : Req extends true ? "ID" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "ID"] : never : ("ID" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "ID"] : never) | null | undefined, Kind>; /** * Create a Int input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ int: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef extends Req ? Types["DefaultInputFieldRequiredness"] extends false ? ("Int" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Int"] : never) | null | undefined : "Int" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Int"] : never : Req extends true ? "Int" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Int"] : never : ("Int" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "Int"] : never) | null | undefined, Kind>; /** * Create a String input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ string: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef extends Req ? Types["DefaultInputFieldRequiredness"] extends false ? ("String" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "String"] : never) | null | undefined : "String" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "String"] : never : Req extends true ? "String" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "String"] : never : ("String" extends keyof Types["inputShapes"] ? Types["inputShapes"][keyof Types["inputShapes"] & "String"] : never) | null | undefined, Kind>; /** * Create a Boolean list input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ booleanList: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef, Kind>; /** * Create a Float list input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ floatList: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef, Kind>; /** * Create a ID list input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ idList: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef, Kind>; /** * Create a Int list input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ intList: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef, Kind>; /** * Create a String list input field * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ stringList: >(...args: NormalizeArgs<[options?: Omit[Kind], "type"> | undefined]>) => InputFieldRef, Kind>; constructor(builder: GiraphQLSchemaTypes.SchemaBuilder, kind: Kind, typename: string); argBuilder(): ArgBuilder; /** * Create in input field or argument for the current type * @param {GiraphQLSchemaTypes.InputFieldOptions} [options={}] - Options for this field */ field | [InputType], Req extends FieldRequiredness>(options: GiraphQLSchemaTypes.InputFieldOptionsByKind[Kind]): InputFieldRef, Kind>; private helper; } //# sourceMappingURL=input.d.ts.map