import { PrimitiveField, PrimitiveTypescriptType } from "joist-codegen"; import { Code, Import } from "ts-poet"; import { Fs } from "./utils"; /** A type for the fields we want to add to `*.graphql` files. */ export type GqlField = { file: string; objectType: "input" | "output"; objectName: string; fieldName: string; fieldType: string; argsString?: string; extends?: boolean; }; export type GqlUnion = { file: string; objectName: string; objectType: "union"; types: string[]; }; export type GqlEntry = GqlField | GqlUnion; /** Given a `file` and `fields` to go in it (for potentially different objects), upserts into the existing types. */ export declare function upsertIntoFile(fs: Fs, file: string, fields: GqlEntry[]): Promise; export declare function formatGraphQL(content: string): Promise; export type GraphQLType = "Boolean" | "String" | "Int" | "Date" | "DateTime" | string; export type SupportedTypescriptTypes = Exclude; export declare function mapTypescriptTypeToGraphQLType(fieldName: string, type: PrimitiveTypescriptType | Import | Code): GraphQLType | undefined; export declare function isJsonbColumn(p: PrimitiveField): boolean; //# sourceMappingURL=graphqlUtils.d.ts.map