import { DMMF } from '@prisma/client/runtime' ; import AwaitEventEmitter from 'await-event-emitter' ; import { Project , SourceFile } from 'ts-morph' ; import { createConfig } from './helpers/create-config' ; import { ObjectSetting , ObjectSettings } from './helpers/object-settings' ; export { DMMF } ; export { ObjectSetting } ; export { ObjectSettings } ; export type InputType = DMMF . InputType ; export type FieldLocation = DMMF . FieldLocation ; export type OutputType = DMMF . OutputType ; export type SchemaField = DMMF . SchemaField ; export type SchemaEnum = DMMF . SchemaEnum ; export type Model = DMMF . Model ; export type FieldOutputType = SchemaField [ 'outputType' ] ; export type TypeRecord = Partial < { type { string } fieldType : string ; fieldModule : string ; graphqlType : string ; graphqlModule : string ; } > ; export type GeneratorConfiguration = ReturnType < typeof createConfig > ; export type EventArguments = { models : Map < string , Model > ; modelNames : string [ ] ; modelFields : Map < string , Map < string , Field > > ; fieldSettings : Map < string , Map < string , ObjectSettings > > ; config : GeneratorConfiguration ; project : Project ; output : string ; getSourceFile ( args ) : SourceFile ; eventEmitter : AwaitEventEmitter ; typeNames : Set < string > ; removeTypes : Set < string > ; enums : Record < string , DMMF . DatamodelEnum | undefined > ; getModelName ( name ) : string | undefined ; } ; export type Field = DMMF . Field ;