UNPKG

hades-cli

Version:
80 lines (79 loc) 2.55 kB
import { SqlRelationship, SqlType, SqlIndex } from './../types'; export declare class Property { [index: string]: any; config: any; id: string; private _name; type: SqlType; primaryKey?: boolean; private _enumOptions?; decimals?: number[]; length?: number; minLength?: number; maxLength?: number; nullable?: boolean; defaultValue?: string | number; relationship?: SqlRelationship; relationshipSingularName?: string; relationshipAggregate?: string; relationshipModulePath?: string; relationshipKey?: string; relationshipField?: string; intermediateTable?: string; intermediateModel?: string; intermediateModelModuleSection?: string; intermediateModelFile?: string; index?: SqlIndex; example?: any; faker?: string; constructor(payload: { name: string; type: SqlType; primaryKey?: boolean; enumOptions?: string; decimals?: number[]; length?: number; minLength?: number; maxLength?: number; nullable?: boolean; defaultValue?: string | number; relationship?: SqlRelationship; relationshipSingularName?: string; relationshipAggregate?: string; relationshipModulePath?: string; relationshipKey?: string; relationshipField?: string; intermediateTable?: string; intermediateModel?: string; intermediateModelModuleSection?: string; intermediateModelFile?: string; index?: SqlIndex; example?: any; faker?: any; }); get hasTimezone(): boolean; get hasColumnDecorator(): boolean; get hasHasOneDecorator(): boolean; get hasBelongsToDecorator(): boolean; get hasHasManyDecorator(): boolean; get hasBelongsToManyDecorator(): boolean; get getDefaultValue(): any; get getReferenceKey(): any; get nativeName(): string; get name(): string; get enumOptionsArrayItems(): string | undefined; get enumOptions(): string[] | undefined; get nameGraphqlType(): string; get getRelationshipBoundedContext(): string | null; get getRelationshipModule(): string | null; get getApiType(): string; get getJavascriptType(): string; get getSequelizeType(): string; get getGraphqlType(): string | undefined; get getGraphqlCreateType(): string; get getGraphqlUpdateType(): string; get hasQuotation(): boolean; fakerPostman(force?: boolean): any; private parseModuleSection; toDto(): any; }