UNPKG

gen-jhipster

Version:

Spring Boot + Angular/React/Vue in one handy generator

91 lines (75 loc) 2.4 kB
import type { Field as BaseField } from '../../../lib/types/base/field.js'; import type { Property } from './property.js'; import { ProtoField } from '../../../generators/spring-grpc/proto-field.js'; export interface Field extends Property, BaseField, ProtoField { propertyName: string; documentation?: string; enumFileName?: string; enumValues?: { name: string; value: string }[]; fieldIsEnum?: boolean; columnName?: string; // Annotations skipClient?: boolean; skipServer?: boolean; filterableField?: boolean; transient?: boolean; columnRequired?: boolean; id?: boolean; autoGenerate?: boolean; nullable?: boolean; /** * Faker template passed to `faker.helpers.fake()`. * @see https://fakerjs.dev/api/helpers.html#fake */ fakerTemplate?: string; // Validation fieldValidate?: boolean; unique?: boolean; maxlength?: number; // Temporary fields for Faker uniqueValue?: any[]; generateFakeDataFromPattern?: () => string | undefined; /** @deprecated */ createRandexp: () => any; generateFakeData?: (type?: 'csv' | 'cypress' | 'json-serializable' | 'ts') => any; // Java specific propertyJavaBeanName?: string; propertyDtoJavaType?: string; propertyJavaFilterType?: string; fieldInJavaBeanMethod?: string; fieldJavaBuildSpecification?: string; fieldJavadoc?: string; fieldJavaValueGenerator?: string; javaValueGenerator?: string; propertyJavaFilteredType?: string; liquibaseDefaultValueAttributeValue?: string; propertyJavaCustomFilter?: { type: string; superType: string; fieldType: string }; // Blob fieldWithContentType?: boolean; contentTypeFieldName?: string; blobContentTypeText?: string; // Derived properties fieldTypeBinary?: boolean; fieldTypeDuration?: boolean; fieldTypeBoolean: boolean; fieldTypeTimed?: boolean; fieldTypeLocalDate?: boolean; fieldTypeDateTime?: boolean; /** @deprecated */ fieldTypeTemporal: boolean; /** @deprecated */ fieldTypeCharSequence: boolean; /** @deprecated */ fieldTypeNumeric: boolean; /** @deprecated */ reference?: any; relationshipsPath?: string[]; liquibaseDefaultValueAttributeName?: string; shouldDropDefaultValue?: boolean; shouldCreateContentType?: boolean; loadColumnType?: string; liquibaseGenerateFakeData?: boolean; columnType?: string; defaultValueComputed: any; defaultValue: any; }